/* v0.5.7 r3: mobile battle controls have dedicated space outside the board. */
.mobile-version-setting,#closeMobilePack{display:none}
@media(max-width:899px),(max-height:649px){
  .play-page .game{width:100%;max-width:900px;height:100%;padding:0 2px;border:0;border-radius:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px 36px 44px minmax(0,1fr);gap:0;overflow:hidden}
  .play-page .compact-header{grid-row:1;grid-column:1;min-height:44px;padding:0 8px;border-bottom:1px solid #ac8a5340}
  .play-page .compact-header h1{width:104px}.play-page .compact-header h1 img{height:35px}
  .play-page .top-controls{gap:6px}.play-page .menu-toggle{width:44px;height:44px;min-width:44px}.play-page .menu-toggle>img{width:35px;height:35px}.play-page .menu-label{bottom:0;right:0;font-size:8px}
  .play-page .life-bar{grid-row:2;grid-column:1;padding:0 7px;min-height:36px;border:0;gap:4px}
  .play-page .life{min-width:0;gap:3px}.play-page .life.black>div{transform:none}.play-page .life-general{display:block;width:30px;height:30px;flex-basis:30px}.play-page .life-meter i{width:16px;height:16px}.play-page .life>div>b{font-size:9px}
  .play-page .mode-mark{min-width:0;max-width:40%;padding:3px 7px}.play-page .mode-mark b{font-size:11px}.play-page .mode-mark small{font-size:8px}
  .play-page .turn-panel{grid-row:3;grid-column:1;padding:2px 8px;min-height:44px;overflow:visible}.play-page .turn-panel .score{min-height:25px}.play-page #turn{font-size:14px}.play-page .turn-hint{height:15px;min-height:15px;font-size:10px;line-height:15px}
  .play-page .battle-stats{min-width:145px}.play-page .round-line b{font-size:10px}.play-page .battle-stats #count{font-size:9px}.play-page .battle-stats #count b{min-width:54px;padding:2px 5px}
  .play-page .arena{grid-row:4;grid-column:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:46px minmax(0,1fr) 60px;gap:0;position:relative;overflow:visible}
  .play-page .board-wrap{grid-column:1/-1;grid-row:2;min-width:0;min-height:0;padding:0;display:grid;place-items:center;overflow:visible}
  .play-page #board{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none;max-height:none}
  .play-page .skill-bar{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:7px 8px;gap:8px;height:auto;min-height:0;align-items:center}
  .play-page .skill-bar.black{grid-row:1;grid-column:1}.play-page .skill-bar.red{grid-row:3;grid-column:1}
  .play-page .skill-button{min-width:44px;min-height:44px;width:44px;height:44px;flex:0 0 44px}
  .play-page .context-actions{position:fixed;z-index:100;left:50%;bottom:calc(68px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:90vw}
  .play-page .context-actions[hidden]{display:none}
  .mobile-version-setting{display:grid;gap:8px;margin:16px 0;padding:12px;border-top:1px solid #b69b73;color:#5c4b36;font-size:13px}.mobile-version-setting #versionSelect{max-width:none;min-height:44px;font-size:14px}
  .adventure-page .arena{grid-template-columns:76px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 68px}
  .adventure-page .arena::after{display:none}.adventure-page .board-wrap{grid-row:1;grid-column:1/-1}
  .adventure-page .adventure-inventory{display:contents}
  .adventure-page .pack-toggle{grid-row:2;grid-column:1;position:relative;display:grid;place-items:center;align-content:center;gap:0;width:76px;height:68px;min-height:44px;padding:3px;border:0;border-right:1px solid #b3966860;background:#f3e5cf;box-shadow:none;border-radius:0}
  .adventure-page .pack-toggle>img{width:35px;height:35px;margin:0;object-fit:contain}.adventure-page .pack-toggle>span>b{font-size:11px}.adventure-page .pack-toggle small.pack-resources{display:none!important}
  .adventure-page .has-pending-scroll .pack-toggle::after{position:absolute;top:0;right:2px;margin:0}
  .adventure-page .skill-bar.red{grid-row:2;grid-column:2;width:auto;height:68px;min-height:0;padding:8px 6px 6px;gap:4px;background:#f3e5cf;border-top:1px solid #b3966855;justify-content:flex-start;overflow-x:auto;overflow-y:hidden}
  .adventure-page .skill-bar.red .skill-button{flex:0 0 54px;min-width:54px;width:54px;height:52px;min-height:44px;padding:0 3px;box-shadow:none}
  .adventure-page .skill-bar.red .skill-button{display:flex;flex-direction:column;gap:0;justify-content:center}
  .adventure-page .skill-bar.red .skill-picture{width:38px;height:38px;flex-basis:38px}
  .adventure-page .skill-bar.red .skill-copy{display:block;line-height:12px;white-space:nowrap}.adventure-page .skill-bar.red .skill-copy b{font-size:9px}.adventure-page .skill-bar.red .skill-copy small{display:none}
  .adventure-page .skill-bar.red .skill-button::after{top:0!important;right:0!important}
  .adventure-page .skill-bar.black{display:none}
  .adventure-page.deploying .arena{grid-template-rows:minmax(0,1fr) 48px 68px}
  .adventure-page.deploying .pack-toggle,.adventure-page.deploying .skill-bar.red{grid-row:3}
  .adventure-page.deploying #confirmDeployment{grid-column:1/-1;grid-row:2;position:static;width:calc(100% - 24px);height:44px;min-height:44px;justify-self:center;align-self:center;margin:0;padding:0 12px;transform:none;font-size:14px;border-radius:9px;letter-spacing:.06em}
  .adventure-page .deployment-guide{position:absolute;top:4px;left:50%;transform:translateX(-50%);width:max-content;max-width:96%;padding:3px 8px;background:#fff4ded9;border-radius:6px;pointer-events:none;font-size:10px}
  .adventure-page .deployment-guide b{font-size:11px}.adventure-page .deployment-guide span{font-size:10px}
  .adventure-page .pack-panel,.adventure-page .adventure-inventory.open .pack-panel,.adventure-page.deploying .pack-panel,.adventure-page.deploying .adventure-inventory.open .pack-panel{position:fixed;z-index:140;left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));top:auto;bottom:calc(72px + env(safe-area-inset-bottom));width:auto;height:auto;max-height:min(60dvh,480px);padding:8px 10px 12px;transform:none;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border:1px solid #b39668;border-radius:16px 16px 8px 8px;background:#fff5e5;box-shadow:0 -8px 28px #35271640;backdrop-filter:none;display:none}
  .adventure-page .adventure-inventory.open .pack-panel,.adventure-page.deploying .adventure-inventory.open .pack-panel{display:block}
  #closeMobilePack{display:block;position:sticky;top:-8px;z-index:3;width:100%;min-height:44px;margin:0 0 8px;padding:8px;background:#fff5e5;color:#80392b;border:0;border-bottom:1px solid #c9ac7e;box-shadow:none;text-align:right;font-size:13px}
  .adventure-page .pack-panel .pack-heading{display:grid;position:static;height:auto;grid-template-columns:42px 1fr;padding:4px 0 10px;margin:0;border:0}
  .adventure-page .pack-panel .pack-open-art{display:block!important;width:40px;height:40px}.adventure-page .pack-panel .pack-heading small{display:grid}
  .adventure-page .pack-panel .pack-folder{display:block!important}.adventure-page .pack-panel .pack-folder>summary{min-height:44px;font-size:13px}
  .adventure-page .pack-panel .inventory-pieces{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;overflow:visible}
  .adventure-page .pack-panel .inventory-pieces button{width:auto;min-width:0;min-height:60px;display:grid;grid-template-columns:30px minmax(0,1fr) 18px;padding:5px;gap:4px}
  .adventure-page .pack-panel .inventory-pieces button i{width:30px;height:30px}.adventure-page .pack-panel .inventory-pieces button span{display:grid;min-width:0}.adventure-page .pack-panel .inventory-pieces button span b{font-size:12px}.adventure-page .pack-panel .inventory-pieces button span small{font-size:9px;white-space:normal}
  .adventure-page .pack-panel::before{display:none}
  .adventure-page.deploying .pack-panel header.pack-heading,.adventure-page .pack-panel header.pack-heading{display:grid;grid-template-columns:42px 1fr;height:auto;padding:4px 0 10px;border:0}
  .adventure-page .pack-panel header.pack-heading b{padding:0;border:0;background:none;box-shadow:none;font-size:15px;line-height:1.3}.adventure-page .pack-panel header.pack-heading small{display:flex;flex-wrap:wrap;font-size:11px;gap:8px}
  .adventure-page .pack-panel header.pack-heading small.pack-resources{display:flex!important;flex-wrap:wrap;gap:8px}.adventure-page .pack-panel #packTroopMeta{width:auto}
  .adventure-page .pack-panel .inventory-future{display:none}
  .adventure-page .pack-panel .inventory-pieces button{height:auto;min-height:66px;border:1px solid #b49a70;background:#fff9ee;transform:none;filter:none;border-radius:8px}
  .adventure-page .pack-panel .inventory-pieces button[aria-pressed=true]{border:2px solid #9d392b;background:#f7e4c7;transform:none;filter:none}
  .adventure-page .pack-panel .inventory-pieces button span small{display:block;line-height:1.3}
  .adventure-page .pack-panel .inventory-pieces button em{position:static;width:18px;height:18px}
  .adventure-page .mobile-map-dock{position:static;display:flex;width:auto;height:44px;padding:0;gap:4px;pointer-events:auto;transform:none}
  .adventure-page .mobile-map-dock .open-shanhe-map,.adventure-page .mobile-map-dock .shanhe-mini-toggle{position:static;display:flex;width:auto;min-width:44px;height:44px;min-height:44px;margin:0;padding:4px 7px;gap:4px;border:1px solid #b89a6a55;border-radius:8px;background:#f5e7d0;color:#31554c;box-shadow:none;backdrop-filter:none}
  .adventure-page .mobile-map-dock .open-shanhe-map span{display:block;font-size:11px}.adventure-page .mobile-map-dock .shanhe-mini-toggle span{display:none}
  .adventure-page .mobile-map-dock button[hidden]{display:none}.adventure-page .mobile-map-dock i{width:23px;height:23px;font-size:10px}
  .adventure-page .combat-objective-hud,.adventure-page .panyuan-hud{top:126px;max-width:96vw;min-height:30px;pointer-events:none}
}
@media(max-height:500px) and (min-width:621px){
  .play-page .game{grid-template-columns:158px minmax(0,1fr);grid-template-rows:44px 44px minmax(0,1fr)}
  .play-page .compact-header{grid-column:1;grid-row:1}.play-page .compact-header h1{display:none}.play-page .top-controls{width:100%;justify-content:flex-end;gap:0}
  .play-page .life-bar{grid-column:1;grid-row:2}.play-page .mode-mark{display:none}
  .play-page .turn-panel{grid-column:1;grid-row:3;align-self:start;height:auto}.play-page .turn-panel .score{display:grid;gap:7px}.play-page .battle-stats{min-width:0}.play-page .turn-hint{width:100%;height:auto;white-space:normal}
  .play-page .turn-panel::before{display:none}.play-page .turn-panel #turn{color:#953c30;text-shadow:none}.play-page .round-line small{max-width:120px}
  .play-page .arena{grid-column:2;grid-row:1/-1}
  .adventure-page .combat-objective-hud,.adventure-page .panyuan-hud{top:2px;left:calc(50% + 79px);max-width:calc(100vw - 175px)}
  .adventure-page .pack-panel,.adventure-page .adventure-inventory.open .pack-panel,.adventure-page.deploying .pack-panel,.adventure-page.deploying .adventure-inventory.open .pack-panel{left:164px;max-height:calc(100dvh - 80px)}
}

/* Boss 胜利提供两条同等清晰的继续路线，重开退居次要操作。 */
#result .result-actions #continueAdventureFloor,#result .result-actions #exploreAdventureFloor{display:block;min-height:50px;background:#96382a;color:#fff6e8;border:2px solid #713023;box-shadow:0 3px 0 #411f1a;font-size:15px}
#result .result-actions #exploreAdventureFloor{background:#f3e6ca;color:#5b3c25;border-color:#ac8550;box-shadow:0 3px 0 #8c7857}
#result .result-actions #continueAdventureFloor[hidden],#result .result-actions #exploreAdventureFloor[hidden]{display:none}
#result:has(#continueAdventureFloor:not([hidden])) .result-actions #playAgain{background:transparent;border:1px solid #aa9a82;box-shadow:none;color:#77675b;font-size:12px;min-height:44px}
#continueAdventureFloorMap{min-height:44px;padding:7px 14px;border:1px solid #a47137;background:#96382a;color:#fff5de;font-size:13px;box-shadow:none;border-radius:8px}
#continueAdventureFloorMap[hidden]{display:none}
/* v0.5.10: give both life displays real room before the mode mark. */
@media(max-width:620px) and (orientation:portrait){
  .play-page .game{grid-template-rows:44px 46px 44px minmax(0,1fr)}
  .play-page .life-bar{min-height:46px;gap:2px;padding-inline:4px}
  .play-page .life{flex:1 1 0;min-width:0;gap:3px}
  .play-page .life-general{width:36px;height:36px;flex:0 0 36px}
  .play-page .life-meter{height:25px;gap:1px;min-width:0}
  .play-page .life-meter i{width:23px;height:23px;flex:0 0 23px}
  .play-page .mode-mark{flex:0 1 auto;max-width:34%;padding-inline:3px}
  .play-page .realtime-gauge{width:min(164px,54vw);padding:3px 7px}
  .play-page .realtime-gauge i{height:11px}
}
@media(min-width:621px) and (max-height:649px){.play-page .life-general{width:38px;height:38px;flex:0 0 38px}.play-page .life-meter i{width:20px;height:20px;flex:0 0 20px}}
@media(max-width:899px),(max-height:649px){.play-page #result{max-height:calc(100dvh - 24px);overflow:auto}.play-page .result-card{padding:16px 13px}.play-page .victory-emblem{width:68px;height:68px;font-size:38px;margin:6px auto}.play-page #result h2{font-size:25px}.play-page #resultScore{font-size:13px;margin:8px}.play-page .result-actions{margin-top:10px;gap:7px}}

/* v0.5.7 r6: readable full map with its ink landscape on the zoom surface. */
.shanhe-map-viewport{position:relative;width:100%;height:min(65dvh,620px);margin:8px auto;overflow:hidden;overscroll-behavior:contain;touch-action:none;cursor:grab;border:1px solid #ac8955;border-radius:8px;background:#f2e2c4;box-shadow:inset 0 0 20px #77573525}
.shanhe-map-viewport:active{cursor:grabbing}.shanhe-map-stage{position:relative;width:600px;height:600px;min-width:0;min-height:0;margin-inline:auto}
.shanhe-map-stage .shanhe-map-canvas{position:absolute;left:0;top:0;width:600px;height:600px;max-width:none;margin:0;transform-origin:top left;aspect-ratio:1;overflow:visible;border-radius:0;background:linear-gradient(180deg,#fff9e933,#fff9e955 45%,#fff7e948),url('../assets/shanhe-map-backdrop-v053-r4.webp') center/cover no-repeat}
.shanhe-map-stage .shanhe-room{width:calc(11.111% - 4px);min-height:0;padding:2px 1px;border-width:1px}
.shanhe-map-stage .shanhe-room[data-known=true] b{width:43px;height:43px}
.shanhe-map-stage .shanhe-room[data-known=true][data-type=troop_shop] b::after,.shanhe-map-stage .shanhe-room[data-known=true][data-type=element_shop] b::after,.shanhe-map-stage .shanhe-room[data-known=true][data-type=mystic_shop] b::after,.shanhe-map-stage .shanhe-room[data-known=true][data-type=scroll_shop] b::after{font-size:15px;text-shadow:0 1px 2px #17282b}
.shanhe-map-stage .shanhe-room small{font-size:11px;line-height:1.1;white-space:nowrap;font-weight:800;color:#3e3427;text-shadow:0 1px #fff7e6}
.shanhe-map-stage .shanhe-room[data-type=boss] small{color:#6d2923;text-shadow:0 1px #fff2ce80}
.shanhe-map-stage .shanhe-room[data-known=false] b::after{font-size:22px}
.shanhe-map-tools{display:flex;align-items:center;justify-content:center;gap:5px;margin:9px 8px 0;color:#6c5537;font-size:11px}
.shanhe-map-tools span{margin-right:auto}.shanhe-map-tools button{flex:0 0 auto;min-width:44px;height:44px;min-height:44px;padding:4px 8px;border:1px solid #9c794a;border-radius:7px;background:#f9eed8;box-shadow:none;color:#36534d;font-size:17px;font-weight:800}
.shanhe-map-tools #shanheZoomFit{font-size:12px}.shanhe-map-tools output{min-width:39px;text-align:right;font:700 11px/1 system-ui}
@media(max-width:899px),(max-height:649px){
  .shanhe-map{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);margin:auto;overflow:hidden}
  .shanhe-map>article{display:flex;flex-direction:column;width:100%;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:10px 8px 8px;overflow:hidden}
  .shanhe-map header{flex:0 0 auto;padding:3px 5px 6px;gap:5px}.shanhe-map header h2{font-size:22px}.shanhe-map header p{font-size:10px}
  .shanhe-map header button{flex:0 0 44px;width:44px;height:44px;min-height:44px;font-size:26px}
  .shanhe-map-tools{flex:0 0 auto;margin:5px 3px 0}.shanhe-map-tools span{font-size:10px}
  .shanhe-map-viewport{flex:1 1 auto;height:auto;min-height:100px;margin:6px 0 4px}
  .shanhe-map footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 4px 2px;font-size:10px}.shanhe-map footer span{text-align:left}
  .shanhe-map footer #continueAdventureFloorMap{margin-left:auto}
}
@media(max-width:360px){.shanhe-map-tools span{font-size:0}.shanhe-map-tools span::after{content:'双指缩放';font-size:10px}}

/* r7：地图入口保留现有位置，恢复墨绿与鎏金纸钮。 */
@media(max-width:899px),(max-height:649px){
  .adventure-page .mobile-map-dock .open-shanhe-map{min-width:65px;border:1px solid #b99c63;border-radius:18px;background:linear-gradient(110deg,#254942,#37635b);color:#f7e9ca;box-shadow:inset 0 0 0 1px #d3be8790,0 2px 4px #16312d4d}
  .adventure-page .mobile-map-dock .open-shanhe-map i{display:grid;place-items:center;border:1px solid #d4b87b;border-radius:50%;background:#e8d4a9;color:#2a514a}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle{border:1px solid #b59a6d;border-radius:50%;background:#f2e6cf;color:#34594e;box-shadow:inset 0 0 0 1px #fff9ec,0 2px 4px #16312d33}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle i{border:0;border-radius:50%;background:transparent;color:#34594e}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle[aria-pressed=true]{background:#365e55;color:#fff3d8}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle[aria-pressed=true] i{color:#fff3d8}
}
.shanhe-map-tools button{border:1px solid #a78149;border-radius:4px;background:linear-gradient(160deg,#fff7e6,#ebd7ae);color:#325650;box-shadow:inset 0 0 0 1px #fffbf0,0 2px 0 #90734755;font-family:"LXGW WenKai Lite","STKaiti",serif}
.shanhe-map-tools button:focus-visible{outline:2px solid #315e53;outline-offset:2px}
.shanhe-map-tools button:active{transform:translateY(1px);box-shadow:inset 0 0 0 1px #fffbf0}

/* r3 军令按钮可点按展开；不再沿用旧的居中遮挡定位。 */
@media(max-width:899px),(max-height:649px){
  .adventure-page .combat-objective-hud{position:fixed;top:calc(var(--adventure-board-top,126px) + 3px);left:max(6px,calc(var(--adventure-board-left,6px) + 4px));max-width:min(300px,calc(100vw - 20px));min-height:44px;pointer-events:auto;transform:none}
  .adventure-page .combat-objective-hud.is-collapsed{min-height:44px}
}

/* v0.5.10 r2: map tools live wholly inside the header, clear of the life row. */
@media(max-width:899px),(max-height:649px){
  .adventure-page .compact-header{align-items:center;overflow:hidden}
  .adventure-page .top-controls{align-self:center;align-items:center;height:40px;gap:5px}
  .adventure-page .mobile-map-dock{position:static;inset:auto;display:flex;align-items:center;gap:5px;width:auto;height:36px;min-height:36px;margin:0;padding:0;border:0;background:none;box-shadow:none;pointer-events:auto}
  .adventure-page .mobile-map-dock .open-shanhe-map,
  .adventure-page .mobile-map-dock .shanhe-mini-toggle{position:static;display:flex;align-items:center;justify-content:center;min-width:0;height:34px;min-height:34px;margin:0;padding:0 10px;border:1px solid #b5975f;border-radius:5px 11px 5px 11px;background:linear-gradient(145deg,#203f3b,#31564c);color:#f8edce;box-shadow:inset 0 0 0 1px #d8bd794d,0 2px 0 #1b332f55;backdrop-filter:none}
  .adventure-page .mobile-map-dock .open-shanhe-map{min-width:69px;gap:4px}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle{min-width:43px;padding:0 5px;background:linear-gradient(145deg,#f6ead2,#dfcba5);color:#31534b;box-shadow:inset 0 0 0 1px #fff8e9,0 2px 0 #7f694d55}
  .adventure-page .mobile-map-dock i,
  .adventure-page .mobile-map-dock .open-shanhe-map i,
  .adventure-page .mobile-map-dock .shanhe-mini-toggle i{display:block;width:auto;height:auto;flex:none;border:0;border-radius:0;background:none;color:inherit;box-shadow:none;font:900 13px/1 "LXGW WenKai Lite","STKaiti",serif}
  .adventure-page .mobile-map-dock .open-shanhe-map span{display:block;color:inherit;font:800 12px/1 "LXGW WenKai Lite","STKaiti",serif;letter-spacing:.1em}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle[aria-pressed=true]{border-color:#bb9652;background:linear-gradient(145deg,#395e53,#24463f);color:#f5e2af}
  .adventure-page .mobile-map-dock .shanhe-mini-toggle[aria-pressed=true] i{color:inherit}
  .adventure-page .mobile-map-dock button:focus-visible{outline:2px solid #a53a2c;outline-offset:2px}
}
@media(min-width:621px) and (max-height:649px){
  .adventure-page .compact-header{overflow:visible}
  .adventure-page .mobile-map-dock{position:fixed;left:166px;right:auto;top:4px;z-index:125}
}
/* Same circular map seal on phone, tablet and desktop. */
.adventure-page .mobile-map-dock .open-shanhe-map i{display:grid!important;place-items:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;padding:0!important;border:1px solid #cfa962!important;border-radius:50%!important;background:#f0dcae!important;color:#294a43!important;font:800 15px/1 "LXGW WenKai Lite",serif!important;font-style:normal!important}
@media(max-width:899px),(max-height:649px){.mode-entry{min-width:83px!important;padding:6px 9px!important}.mode-entry>span{font-size:11px!important}.adventure-page .pack-panel .folder-title{gap:6px;grid-template-columns:30px max-content minmax(0,1fr) auto}.adventure-page .pack-panel .folder-title>b{font-size:13px}}
.adventure-page .mobile-map-dock .open-shanhe-map span{white-space:nowrap;flex:0 0 auto;letter-spacing:0;font-size:11px}

/* v0.6.8 r3: scaled scenic map on textured parchment, cropped source-edge and copper tools. */
#shanheMapViewport{isolation:isolate;background:#eee4cb url('../assets/technique-info-backdrop-v048-r18.webp') center/cover no-repeat;box-shadow:inset 0 0 0 1px #fff9e69c}
#shanheMapViewport::before{display:none}
#shanheMapStage{z-index:0}
#shanheMapStage .shanhe-map-canvas{border:0;background:linear-gradient(180deg,#fff9e933,#fff9e955 45%,#fff7e948),url('../assets/shanhe-map-backdrop-v053-r4.webp') center/104% 104% no-repeat;box-shadow:none}
#shanheMapStage .shanhe-map-canvas::before,#shanheMapStage .shanhe-map-canvas::after{display:none}
#shanheMap .shanhe-map-tools{gap:0;padding:6px 0 2px}
#shanheMap .shanhe-map-tools>span{margin-right:auto;opacity:.78}
#shanheMap .shanhe-map-tools button{position:relative;min-width:44px;width:44px;height:40px;min-height:40px;padding:0;border:1px solid #a98750;border-radius:0;background:linear-gradient(160deg,#294d46,#183932);color:#f5e5b7;box-shadow:inset 0 1px 0 #d5c29266,inset 0 -2px 0 #0c261c75,0 3px 6px #3e342523;font:800 21px/1 'LXGW WenKai Lite',serif}
#shanheMap .shanhe-map-tools button+button{border-left:0}
#shanheMap .shanhe-map-tools #shanheZoomOut{border-radius:8px 0 0 8px}
#shanheMap .shanhe-map-tools #shanheZoomIn{border-radius:0 8px 8px 0}
#shanheMap .shanhe-map-tools #shanheZoomFit{width:58px;font-size:13px;letter-spacing:.1em}
#shanheMap .shanhe-map-tools button:hover:not(:disabled){background:linear-gradient(160deg,#3d6256,#29483e)}
#shanheMap .shanhe-map-tools button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px #12241e80}
#shanheMap .shanhe-map-tools button:disabled{opacity:.48}
#shanheMap .shanhe-map-tools output{min-width:44px;margin-left:9px;font-size:11px;color:#4b6558}
#shanheMap .shanhe-map-header-actions .story-journal-entry{border-color:#ae905b;border-radius:8px;background:linear-gradient(145deg,#fffaec,#e8d8b9);color:#3c5147;box-shadow:inset 0 0 0 2px #fff9ed,0 2px 5px #67503126}
#shanheMap .shanhe-map-header-actions #closeShanheMap{border-color:#a78e68;border-radius:50%;background:#f4ead5;color:#456057;box-shadow:inset 0 0 0 3px #fff9eb,0 2px 5px #67503120}
.play-page .turn-panel{position:relative}
.play-page .turn-panel>.horse-hint{position:absolute;left:8px;right:auto;top:auto;bottom:1px;display:flex;align-items:center;gap:8px;min-width:0;min-height:17px;height:17px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#355b50;font-size:10px;font-weight:600;letter-spacing:0;pointer-events:none}
.play-page .turn-panel>.horse-hint b{padding-right:8px;border-right:1px solid #ad976650;color:#926239;font-size:10px;font-weight:800}
.play-page .turn-panel>.horse-hint[hidden]{display:none}
.play-page .turn-panel[data-horse-hint=true] .score{padding-right:0}
.play-page .turn-panel[data-horse-hint=true] .battle-stats,.play-page .turn-panel[data-horse-hint=true] #count{visibility:visible}
.play-page .turn-panel[data-horse-hint=true] .turn-hint{visibility:hidden;padding-right:0}
@media(max-width:620px){#shanheMap .shanhe-map-tools button{height:44px;min-height:44px}#shanheMap .shanhe-map-tools>span{font-size:9px}.play-page .turn-panel>.horse-hint{left:8px;font-size:9px}.play-page .turn-panel>.horse-hint b{font-size:9px}}
