/* ControlBoard: left 178, middle 456, right 166, with a 19px title overlap. */
body.inGame{display:flex;align-items:center;min-height:100dvh;height:100dvh;background:#050605;overflow:hidden}
body.inGame>header{display:none}
body.inGame main{width:min(100vw,calc(100dvh / .66625));max-width:1200px;margin:auto;padding:0}
body.inGame .game{border:0;box-shadow:none;background:#000}
body.inGame .game>.top{display:none}
.nativeHud .nativeMiddle{position:absolute;left:22.25%;top:1.50376%;width:57%;height:98.49624%;background:url('/static/assets/mir/hud-middle.webp') center/100% 100%;pointer-events:none}
.nativeHud .nativeHudTitle{position:absolute;left:42.8125%;top:-14.28571%;width:15.875%;height:30.82707%;background:url('/static/assets/mir/hud-title.webp') center/100% 100%;pointer-events:none}
.nativeHud .nativeHudTitle img{position:absolute;left:36.2205%;top:19.5122%;width:28.3465%;height:48.7805%}
.nativeHud #nativeLevel{position:absolute;left:43.3071%;top:41.4634%;width:12.5984%;height:39.0244%;font:clamp(8px,1.25vw,12px)/1 serif;color:#fff1a5;display:grid;place-items:center;text-shadow:1px 1px #000}
.nativeHud #nativeExperience{position:absolute;left:18.9375%;bottom:13.53383%;width:.375%;height:66.91729%;background:url('/static/assets/mir/hud-experience.webp') center/100% 100%;pointer-events:none}
.nativeHud #log{position:absolute!important;left:23.125%!important;top:12.78195%!important;width:43%!important;height:63.15789%!important;min-height:0!important;margin:0!important;padding:0 2px!important;overflow:auto;white-space:normal!important;font:clamp(8px,1.25vw,12px)/1.4 serif!important;scrollbar-width:thin;scrollbar-color:#807d62 #000;pointer-events:auto;color:#ede2c8}
.nativeHud #log>div{overflow-wrap:anywhere;min-height:1.4em}
.nativeHud .nativeCommand{position:absolute;left:23.125%;top:81.20301%;width:43%;height:11.2782%;margin:0;padding:0}
.nativeHud .nativeCommand input{display:block;width:100%;height:100%;border:0;padding:0 3px;margin:0;background:#000;color:#ede2c8;font:clamp(8px,1.25vw,12px)/1 serif;border-radius:0;outline:none}
.nativeHud .nativeCommand input:focus{outline:1px solid #b5a46e}
.nativeHud .nativeTargetFace{position:absolute;left:66.625%;top:12.03008%;width:10.25%;height:72.93233%;overflow:hidden}
.nativeHud .nativeTargetFace img{position:absolute;top:3.09278%;left:0;width:102.43902%;height:96.90722%;max-width:none;image-rendering:pixelated}
.nativeHud #nativeTargetHp{position:absolute;top:0;left:0;height:3.09278%;background:#c12a1e;pointer-events:none}
.nativeHud .nativeVitals{left:3.4%;top:27%;bottom:auto;width:10.75%;height:30%;display:flex;align-items:center;justify-content:space-between;gap:2px;font-size:clamp(6px,.85vw,8px);line-height:1.1;pointer-events:none}
.nativeHud .nativeVitals span{width:49%;text-align:center;text-shadow:1px 1px 2px #000}
.nativeHud .nativeVitals b{display:block;color:#fff1c5;font-size:clamp(8px,1.1vw,11px)}
.nativeHud #nativeMapLocation{position:absolute;left:1%;top:82.7%;width:16.25%;height:13%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#e4d6b2;font:clamp(7px,1.1vw,10px)/1.5 serif;pointer-events:none}
.nativeHud .nativeLeftButton{position:absolute;background-size:100% 100%;background-color:transparent;border:0;border-radius:0;padding:0;font-size:0;color:transparent;box-shadow:none}
.nativeHud #nativeQuickToggle{left:18.5%;top:1.50376%;width:3%;height:12.03008%;background-image:url('/static/assets/mir/hud-quick-toggle.webp')}
.nativeHud #nativeQuickToggle:hover{background-image:url('/static/assets/mir/hud-quick-toggle-hover.webp')}
.nativeHud #nativeQuickToggle:active{background-image:url('/static/assets/mir/hud-quick-toggle-pressed.webp')}
.nativeHud #nativeLevel{display:flex;align-items:center;justify-content:center;font:clamp(8px,1.4vw,12px)/1 serif;color:#ffe98a}
.nativeHud .gameToolbar [data-window=shopView]{left:79.75%;top:4.51128%;width:2.5%;height:15.03759%;font-size:0!important;border-radius:50%;background:none}
.nativeHud .gameToolbar [data-window=shopView]:hover{background:#fff3}
.nativeHud .gameToolbar [data-window=shopView]:active{background:url('/static/assets/mir/hud-trade-pressed.webp') center/100% 100%}
.nativeHud .nativeCombatStat{position:absolute;top:78.94737%;width:9.875%;height:12.03008%;padding:0 0 0 3.25%;border:0;border-radius:0;box-shadow:none;background-color:transparent;background-position:left center;background-repeat:no-repeat;background-size:auto 100%;font:clamp(7px,1.1vw,11px)/1 serif;color:#ffdc63;text-align:left;white-space:nowrap}
.nativeHud #nativeAC{left:79.375%;background-image:url('/static/assets/mir/hud-stat-armor.webp')}
.nativeHud #nativeDC{left:89.75%;background-image:url('/static/assets/mir/hud-stat-attack.webp')}
.nativeHud .nativeCombatStat:hover{color:#ff6c48}
.nativeHud #nativeExit{left:1%;top:54.13534%;width:3%;height:18.04511%;background-image:url('/static/assets/mir/hud-exit.webp')}
.nativeHud #nativeExit:hover{background-image:url('/static/assets/mir/hud-exit-hover.webp')}
.nativeHud #nativeExit:active{background-image:url('/static/assets/mir/hud-exit-pressed.webp')}
.nativeHud #nativeReturn{left:13.625%;top:54.13534%;width:3%;height:18.04511%;background-image:url('/static/assets/mir/hud-return.webp')}
.nativeHud #nativeReturn:hover{background-image:url('/static/assets/mir/hud-return-hover.webp')}
.nativeHud #nativeReturn:active{background-image:url('/static/assets/mir/hud-return-pressed.webp')}
.nativeHud .gameToolbar #nativeTravel{left:79.75%;top:30.07519%;width:2.5%;height:15.03759%;background:none;font-size:0!important;border-radius:50%}
.nativeHud .gameToolbar #nativeTravel:hover{background:#fff3}
#nativeQuickActions{position:absolute;left:50%;right:auto;bottom:calc(100% + 8px);top:auto;transform:translateX(-50%);width:min(280px,calc(100% - 16px));height:auto;aspect-ratio:280/48;display:block;padding:0;border:0;background:url('/static/assets/mir/hud-quick-board.webp') center/100% 100%;z-index:4;box-shadow:none}
#nativeQuickActions[hidden]{display:none!important}
#nativeQuickActions button{position:absolute;top:12.5%;width:12.85714%;height:75%;min-width:0;min-height:0!important;margin:0;padding:0!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center;background-size:contain;background-repeat:no-repeat;box-shadow:none;font-size:0!important;color:transparent}
#nativeQuickActions button:hover,#nativeQuickActions button:focus-visible{background-color:#ffffff30!important;outline:1px solid #cabb8d}
#nativeQuickActions button:active{background-color:#ffffff50!important}
#nativeQuickActions button::after{content:attr(data-key);position:absolute;left:1px;bottom:0;font:9px/1 serif;color:#f7e9ae;text-shadow:1px 1px #000;pointer-events:none}
#nativeQuickActions #quickPotion::before{content:attr(data-count);position:absolute;right:1px;top:0;font:10px/1 serif;color:#fff3cb;text-shadow:1px 1px #000}
#nativeQuickActions #heal::before,#nativeQuickActions #soundToggle::before{position:absolute;inset:0;display:grid;place-items:center;font:21px serif;color:#e7daa9;text-shadow:1px 1px #000}
#nativeQuickActions #heal::before{content:'疗'}
#nativeQuickActions #soundToggle::before{content:'音'}
#nativeQuickActions #soundToggle.muted::before{color:#77745e}
#nativeQuickActions #quickActionsClose{left:93.92857%;top:66.66667%;width:5.71429%;height:33.33333%;background-image:url('/static/assets/mir/hud-quick-close.webp')}
#nativeQuickActions #quickActionsClose:hover{background-image:url('/static/assets/mir/hud-quick-close-hover.webp')}
#nativeQuickActions #quickActionsClose:active{background-image:url('/static/assets/mir/hud-quick-close-pressed.webp')}
@media(pointer:coarse){#nativeQuickActions{width:min(336px,calc(100% - 16px))}.nativeHud .nativeCommand input:focus{position:absolute;bottom:0;height:24px;font-size:16px}}

.nativeHud #nativeExperienceFill{position:absolute;left:18.9375%;top:19.54887%;width:.375%;height:66.91729%;background:url('/static/assets/mir/hud-experience.webp') center/100% 100%;pointer-events:none}
.nativeHud #nativeQuickToggle{left:18.5%;top:1.50376%;width:3%;height:12.03008%;background-image:url('/static/assets/mir/hud-quick-toggle.webp')}
.nativeHud #nativeQuickToggle:hover{background-image:url('/static/assets/mir/hud-quick-toggle-hover.webp')}
.nativeHud #nativeQuickToggle:active{background-image:url('/static/assets/mir/hud-quick-toggle-pressed.webp')}
