/* 手机横屏布局（mobile-mode.mjs 判定；#world-panel.is-mobile-hud，底栏 .bottom-bar-mobile）。
   按 844×390 设计，--m 是相对这个基准的缩放。电脑和平板不带这两个类，下面的规则都不生效。

   尺寸和位置按用户给的参考手游截图（2000×924）量出来，按高度换算到 844×390（×0.422）：
     状态栏约 160×36、PK 标签 58×18、小地图约 105 宽、药品格 2×2 直径 34、背包 / 更多直径 32、
     技能格直径 33、攻击直径 47、选怪直径 28、摇杆圈 72（圆点 30）、信息框约 180×51、好友 / 邮箱 / 挂机 / 摆摊直径 26。
   容器是贴在右下角的 0×0 锚点，子元素用 right / bottom 定位（下面的数字），再整体按 --m 缩放。 */
.mobile-pad{display:none}
.mobile-pad[hidden]{display:none!important}

.bottom-bar-mobile{height:6px;--bottom-bar-scale:1}
.bottom-bar-mobile.is-menu-open{z-index:60}
.bottom-bar-mobile>.bottom-bar-frame,.bottom-bar-mobile .bottom-bar-frame-left,.bottom-bar-mobile .bottom-bar-frame-right,.bottom-bar-mobile .bottom-bar-pages{display:none}
/* 经验条：屏幕最底下一条细线 */
.bottom-bar-mobile .bottom-bar-exp{top:0;height:6px;background:#000c;box-shadow:inset 0 1px 0 #6b5a1e}

.bottom-bar-mobile .bottom-bar-quick,.bottom-bar-mobile .mobile-pad{display:block;position:absolute;left:auto;top:auto;right:env(safe-area-inset-right,0px);bottom:0;width:0;height:0;transform:scale(var(--m,1));transform-origin:bottom right}

/* 快捷槽：F1～F6 技能盘（圆），F7～F10 药品格（方） */
.bottom-bar-mobile .bottom-bar-slot{left:auto!important;top:auto;width:33px;height:33px;display:flex;align-items:center;justify-content:center;border:1.5px solid #b49725;border-radius:50%;background:#061108b3;overflow:hidden;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bottom-bar-mobile .bottom-bar-slot.is-bound{background:#081009d9}
.bottom-bar-mobile .bottom-bar-slot:active{background:#1c4a22;transform:scale(.94)}
.bottom-bar-mobile .bottom-bar-slot::before{content:attr(data-key);position:absolute;z-index:2;left:0;right:0;top:3px;text-align:center;font:9px/10px Arial,sans-serif;color:#d8c26899;text-shadow:1px 1px #000;pointer-events:none}
.bottom-bar-mobile .bottom-bar-slot.is-bound::before{color:#ffe9a8cc}
.bottom-bar-mobile .bottom-bar-item-icon{width:25px;height:25px;border-radius:50%}
.bottom-bar-mobile .bottom-bar-quantity{right:3px;bottom:1px;font-size:9px}
/* 冷却遮罩原本按 32 像素宽计算，这里按槽的宽度拉伸 */
.bottom-bar-mobile .bottom-bar-slot .martial-cooldown{top:0;height:100%;transform:scaleX(1.04);transform-origin:left}
.bottom-bar-mobile .bottom-bar-slot[data-index="0"]{right:78px;bottom:15px}
.bottom-bar-mobile .bottom-bar-slot[data-index="1"]{right:74px;bottom:63px}
.bottom-bar-mobile .bottom-bar-slot[data-index="2"]{right:45px;bottom:97px}
.bottom-bar-mobile .bottom-bar-slot[data-index="3"]{right:1px;bottom:107px}
.bottom-bar-mobile .bottom-bar-slot[data-index="4"]{right:116px;bottom:46px}
.bottom-bar-mobile .bottom-bar-slot[data-index="5"]{right:85px;bottom:103px}
.bottom-bar-mobile .bottom-bar-slot[data-index="6"],.bottom-bar-mobile .bottom-bar-slot[data-index="7"],.bottom-bar-mobile .bottom-bar-slot[data-index="8"],.bottom-bar-mobile .bottom-bar-slot[data-index="9"]{width:34px;height:34px;border-radius:50%}
.bottom-bar-mobile .bottom-bar-slot[data-index="6"]{right:119px;bottom:194px}
.bottom-bar-mobile .bottom-bar-slot[data-index="7"]{right:81px;bottom:194px}
.bottom-bar-mobile .bottom-bar-slot[data-index="8"]{right:119px;bottom:157px}
.bottom-bar-mobile .bottom-bar-slot[data-index="9"]{right:81px;bottom:157px}

/* 新增按钮 */
.mobile-pad-button{position:absolute;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1.5px solid #b49725;border-radius:50%;background:#0c2412cc;color:#ffe9a8;font:700 11px/1 "Microsoft YaHei","PingFang SC",sans-serif;text-shadow:0 1px 1px #000;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.mobile-pad-button:active{background:#1c4a22;transform:scale(.94)}
.mobile-pad-button:focus-visible{outline:2px solid #fff3aa;outline-offset:2px}
.mobile-attack{right:22px;bottom:41px;width:47px;height:47px;border-width:2px;border-color:#d8b77b;background:#143a1ccc;font-size:14px}
.mobile-target{right:122px;bottom:117px;width:28px;height:28px;font-size:10px}
.mobile-bag{right:43px;bottom:195px}
.mobile-more{right:4px;bottom:195px}
.mobile-more[aria-expanded="true"]{background:#2a6a31;border-color:#ffe9a8}
.mobile-page{right:158px;bottom:219px;width:20px;height:32px;border-radius:10px;font:700 9px/1 Arial,sans-serif;writing-mode:vertical-rl}
.bottom-bar-mobile[data-ready="false"] .mobile-pad{opacity:.45}

/* “更多”抽屉：原底栏的菜单按钮排成网格，居中弹出 */
.bottom-bar-mobile .bottom-bar-menus{display:none}
.bottom-bar-mobile.is-menu-open::before{content:"";position:fixed;z-index:2;inset:0;background:#0008}
.bottom-bar-mobile.is-menu-open .bottom-bar-menus{display:grid;grid-template-columns:repeat(5,68px);gap:6px;position:fixed;z-index:3;left:50%;top:50%;width:auto;height:auto;padding:12px;border:1px solid #b49725;background:#061108f2;box-shadow:inset 0 0 0 1px #3b3210,0 4px 18px #000c;transform:translate(-50%,-50%) scale(min(1,var(--m,1)));transform-origin:center}
.bottom-bar-mobile .bottom-bar-menu{position:relative;left:auto!important;top:auto;width:68px;height:58px;border:1px solid #8a7432;background:var(--menu-icon) center 7px/26px 27px no-repeat #0c1f10;touch-action:manipulation}
.bottom-bar-mobile .bottom-bar-menu::after{content:attr(aria-label);position:absolute;left:1px;right:1px;bottom:4px;overflow:hidden;text-align:center;white-space:nowrap;font:11px/14px "Microsoft YaHei","PingFang SC",sans-serif;color:#eadbb3}
.bottom-bar-mobile .bottom-bar-menu:active{background-color:#1c4a22;transform:none}
/* PK 按钮的无障碍名称是一整句（“普通模式 · 点击切换模式”），格子里只写短名；图标位置和其他项一致 */
.bottom-bar-mobile .bottom-bar-menu[data-feature="pk"]{background-position:center 7px;background-size:26px 27px}
.bottom-bar-mobile .bottom-bar-menu[data-feature="pk"]::after{content:"PK 模式"}
.bottom-bar-mobile .bottom-bar-menu[data-feature="wardrobe"]{background-position:center 7px;background-size:26px 27px}

/* 其余界面换位置。状态栏、小地图、聊天框的缩放在各自模块的 fit() 里按 mobile-mode 计算。 */
/* 聊天框：展开时是完整的聊天框（盖在两侧按钮上面）；收起时只剩三行文字，夹在两列入口按钮中间（宽度由 chat-window.mjs 算） */
/* 信息框和两侧按钮整组居中：好友 / 邮箱 26 + 间隔 7 + 信息框 240 + 间隔 4 + 挂机 / 摆摊 26，共约 303m，左边缘在画面正中 −152m */
.is-mobile-hud .chat-window{left:calc(50% - 152px * var(--m,1));bottom:calc(8px * var(--m,1));z-index:9}
.is-mobile-hud .chat-window.is-mobile-collapsed{left:calc(50% - 119px * var(--m,1));z-index:6;border:1px solid #6b5a1e99;background:#0000004d}
.is-mobile-hud .chat-window.is-mobile-collapsed .chat-filter-bar,.is-mobile-hud .chat-window.is-mobile-collapsed .chat-input-row,.is-mobile-hud .chat-window.is-mobile-collapsed .chat-scroll{display:none}
.is-mobile-hud .chat-window.is-mobile-collapsed .chat-messages{inset:3px 6px}
/* 原版信息框的黑底（.chat-body::before）往上多铺 21 像素给频道按钮那一行；收起时那一行隐藏了，黑底只铺文字区，否则顶上多出一截黑块 */
.is-mobile-hud .chat-window.is-mobile-collapsed .chat-body::before{inset:0}
/* 入口归拢：邮箱、好友在聊天框左边一列，挂机、摆摊在右边一列；百宝阁在顶部小地图左边 */
/* 邮箱：手机上和好友、挂机、摆摊一样是写字的圆钮“邮件”，不显示飞鸽图；没有邮件也显示（mail-window.mjs）；有未读时右上角仍有红色数字 */
.is-mobile-hud .mail-entry{left:calc(50% - 152px * var(--m,1));right:auto;top:auto;bottom:calc(8px * var(--m,1));width:calc(26px * var(--m,1));height:calc(26px * var(--m,1));padding:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1.5px solid #b49725;border-radius:50%;background:#0c2412cc;z-index:6}
.is-mobile-hud .mail-entry::before{content:"邮件";color:#ffe9a8;font:700 9px/1 "Microsoft YaHei","PingFang SC",sans-serif;text-shadow:0 1px 1px #000}
.is-mobile-hud .mail-entry-icon{display:none}
.is-mobile-hud .mail-entry:active{background:#1c4a22;transform:scale(.94)}
.is-mobile-hud .mail-entry-badge{top:-6px;right:-8px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;font:bold 9px/12px Arial,sans-serif}
/* 百宝阁入口：紧贴小地图左边（小地图宽约 164×0.64×m≈105m，留 4 像素）；层级压在所有窗口下面（mall-window.css 的浮动入口是 56，会盖住传送、换线等窗口） */
.is-mobile-hud .mall-entry{left:auto!important;right:calc(109px * var(--m,1))!important;top:calc(6px * var(--m,1))!important;bottom:auto!important;z-index:6!important;transform:scale(calc(.69 * var(--m,1)));transform-origin:right top}
.is-mobile-hud .feature-bar{left:calc(270px * var(--m,1))!important;right:calc(256px * var(--m,1));top:4px;bottom:auto;width:auto;flex-wrap:wrap;justify-content:center}
/* 左上角的挂机图标手机上不显示：开始 / 停止用信息框旁的“挂机”按钮，设置用小地图下的“辅助” */
.is-mobile-hud .assist-minibar{display:none!important}

/* 窗口：手机上整窗放进屏幕（mobile-mode.mjs mobileWindowScale），用原图上的关闭叉；内容万一比窗口高仍可上下滑动。 */
.is-mobile-hud .bottom-bar-dialog.is-inventory>.bottom-bar-dialog-content{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
/* 武功、制造、人物状态：同上 */
.is-mobile-hud .bottom-bar-dialog.is-martial-window,.is-mobile-hud .bottom-bar-dialog.is-crafting-window,.is-mobile-hud .bottom-bar-dialog.is-character-status{display:flex;flex-direction:column;max-height:calc(100% - 4px);overflow:hidden}
.is-mobile-hud .bottom-bar-dialog.is-martial-window>.bottom-bar-dialog-content,.is-mobile-hud .bottom-bar-dialog.is-crafting-window>.bottom-bar-dialog-content,.is-mobile-hud .bottom-bar-dialog.is-character-status>.bottom-bar-dialog-content{overflow:hidden auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
/* 其他窗口的关闭叉：图不变，可点范围向外扩 10 像素 */
.is-mobile-hud .bottom-bar-close::after{content:"";position:absolute;inset:-10px}


/* 真实数据排查（2026-11-13）。
   增益状态图标：原版贴在右下角从下往上排，手机上正好压住技能盘和攻击按钮。挪到状态栏下面，从左到右横排、自动换行。
   图标原本用内联 right / bottom 定位，这里改成不定位，交给 flex 排。 */
.is-mobile-hud .status-effects-buffs{left:calc(4px * var(--m,1));right:auto;top:calc(58px * var(--m,1));bottom:auto;width:280px;height:auto;display:flex;flex-wrap:wrap;align-content:flex-start;gap:3px;transform:scale(calc(.55 * var(--m,1)));transform-origin:left top}
.is-mobile-hud .status-effects-buffs .status-effect-icon{position:relative;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:none}
/* 组队栏：让出状态图标的两行；按手机比例缩到 0.7 倍（和状态栏一样跟着 --m 变）。
   电脑端拖动后记住的位置是内联样式，手机上用 !important 压住，固定在状态栏下面（手机上不能拖，party-panel.mjs）。
   队员多时列表在框内滚动，最高 250 像素（缩完约 175），底边不碰左下角摇杆。 */
.is-mobile-hud .party-dock{left:calc(4px * var(--m,1))!important;top:calc((58px + var(--mobile-buff-height,0px) * .55 + 6px) * var(--m,1))!important;width:212px;transform:scale(calc(.7 * var(--m,1)));transform-origin:left top}
/* 2026-11-14：增益图标多时换行，原来固定 top 80m 会被第二行图标压住。改成排在图标区下面：--mobile-buff-height 是图标区缩放前的高度（status-effects.mjs 量），
   图标区缩到 0.55m，队伍栏顶 = 58m + 高度 × 0.55m + 6m。列表最高同步缩短，缩完的底边仍在 255m 以内，不碰摇杆（最矮 60 像素）。 */
.is-mobile-hud .party-hud{max-height:max(60px,calc((191px - var(--mobile-buff-height,0px) * .55) / .7))}
/* 邀请提示条（组队邀请 / 等待回应 · 秒数）：原来排在队伍栏下面，名单撑满时会压到摇杆。有队伍栏时挪到标题右边，和标题同一高度，不占下方空间；
   没有队伍栏（还没组队）时仍按原样排在原位。 */
.is-mobile-hud .party-hud:not([hidden])~.party-invite-pill{position:absolute;left:100%;top:0;margin-left:4px;white-space:nowrap}
/* 摆摊的确认框（“开启商店摆摊”）跟着摆摊面板按屏幕高度缩到 0.69 倍，字只有 7 像素；确认框自己不大，手机上按原大小显示 */
.is-mobile-hud .ps-modal{zoom:1!important}
/* “附近”面板：手机上固定在顶部中间（nearby-panel.mjs 里默认收起、不能拖） */
/* 并进“选怪”：平时不显示，长按选怪打开（mobile-hud.mjs） */
.is-mobile-hud:not(.is-nearby-open) .nearby-panel{display:none!important}
.is-mobile-hud .nearby-panel{z-index:8}

/* 第二轮布局调整（2026-11-13，参考手游布局思路）。
   .mobile-dock：铺满屏幕、自己不接收触摸的一层，里面的按钮按屏幕像素定位。 */
.mobile-dock{display:none}
.mobile-dock[hidden]{display:none!important}
.bottom-bar-mobile .mobile-dock{display:block;position:fixed;inset:0;pointer-events:none}
.mobile-dock-button{position:absolute;display:flex;align-items:center;justify-content:center;width:calc(26px * var(--m,1));height:calc(26px * var(--m,1));padding:0;border:1.5px solid #b49725;border-radius:50%;background:#0c2412cc;color:#ffe9a8;font:700 9px/1 "Microsoft YaHei","PingFang SC",sans-serif;text-shadow:0 1px 1px #000;pointer-events:auto;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.mobile-dock-button:active{background:#1c4a22;transform:scale(.94)}
.mobile-dock-button:focus-visible{outline:2px solid #fff3aa;outline-offset:2px}
.mobile-friends{left:calc(50% - 152px * var(--m,1));bottom:calc(36px * var(--m,1))}
.mobile-assist{left:calc(50% + 125px * var(--m,1));bottom:calc(36px * var(--m,1))}
.mobile-store{left:calc(50% + 125px * var(--m,1));bottom:calc(8px * var(--m,1))}
/* PK 模式：状态栏正下方的小标签，显示当前模式，点一下切换 */
.mobile-pk{left:calc(5px * var(--m,1));top:calc(38px * var(--m,1));width:auto;min-width:calc(58px * var(--m,1));height:calc(18px * var(--m,1));padding:0 6px;border-width:1px;border-radius:9px;font-size:10px;white-space:nowrap}
.bottom-bar-mobile[data-ready="false"] .mobile-dock{opacity:.45}


/* 快捷槽：F1～F10 的字样在手机上没有意义，不显示；空槽显示“+”；药品格也用圆形 */
.bottom-bar-mobile .bottom-bar-slot::before{content:"+";top:50%;margin-top:-8px;font:300 16px/16px Arial,sans-serif;color:#d8c26880;text-shadow:none}
.bottom-bar-mobile .bottom-bar-slot.is-bound::before{content:none}
.bottom-bar-mobile .bottom-bar-slot[data-index="6"],.bottom-bar-mobile .bottom-bar-slot[data-index="7"],.bottom-bar-mobile .bottom-bar-slot[data-index="8"],.bottom-bar-mobile .bottom-bar-slot[data-index="9"]{border-radius:50%}

/* 摇杆：按参考手游截图缩小，圈 72、圆点 30，圈心离左边 110、离底边 93（844×390 基准） */
.is-mobile-hud .touch-stick{left:calc(74px * var(--m,1));bottom:calc(57px * var(--m,1));width:calc(72px * var(--m,1));height:calc(72px * var(--m,1));border-width:1.5px}
.is-mobile-hud .touch-stick-knob{width:calc(30px * var(--m,1));height:calc(30px * var(--m,1));margin:calc(-15px * var(--m,1)) 0 0 calc(-15px * var(--m,1));border-width:1.5px}
.is-mobile-hud .touch-stick.is-floating{margin:calc(-36px * var(--m,1)) 0 0 calc(-36px * var(--m,1))}

/* 辅助窗口（江湖辅助）：手机上上下居中，高占屏幕 85%（和其他对话类窗口一致，参考手游百宝阁截图）。
   2026-11-14：原来只把窗口压到 85% 高，里面的字、输入框还是电脑大小（触屏规则还放大到 40 像素高、16 号字），显得又挤又大。
   改成按设计尺寸 440×414 排版，整体 zoom 0.8×--m 缩小（844×390 基准下正好 85% 高，约 352×331），
   --rx-z 同步，标题栏、关闭钮在屏幕上和其他窗口一样大；按钮、输入框恢复电脑端尺寸，跟着窗口一起缩。 */
.is-mobile-hud .assist-overlay{padding:0 8px}
.is-mobile-hud .assist-dialog{--assist-z:calc(.8 * var(--m,1));zoom:var(--assist-z);--rx-z:var(--assist-z);width:440px;height:414px;max-width:none;max-height:none}
.is-mobile-hud .assist-dialog button{min-height:32px}
.is-mobile-hud .assist-dialog input[type=number],.is-mobile-hud .assist-dialog select{min-height:30px;font-size:inherit}
.is-mobile-hud .assist-dialog .assist-skill-header select,.is-mobile-hud .assist-dialog .assist-medicine-header select{font-size:12px;min-height:28px}
.is-mobile-hud .assist-dialog .assist-check{min-height:0}
.is-mobile-hud .assist-dialog .assist-close.rx-frame-close{min-height:0}

/* 通用界面框的标题栏（2026-11-14）。
   window-frame.css 里标题栏、边框、关闭钮都按 --rx-u 画，--rx-u = 1px / --rx-z：设了 --rx-z 的窗口（排行、邮箱、日常、衣柜、神器、人物、传送）
   会抵消自身缩放，标题栏在屏幕上始终是原大小（约 55 像素高）；没缩放的窗口（门派、组队、寻找组队、辅助）本来就是原大小。
   只有百宝阁没设 --rx-z，标题栏跟着窗口一起缩小，所以手机上只有它的标题栏变小了。
   手机上统一改成：标题栏在屏幕上约 27 像素高（0.5 × --m，和百宝阁缩小后的大小一致），不管窗口自己缩放多少。 */
.is-mobile-hud .rx-framed{--rx-u:calc(.5px * var(--m,1) / var(--rx-z,1))}
.is-mobile-hud .mall-window{--rx-z:var(--mall-scale,1)}
.is-mobile-hud .minimap-line-dialog{--rx-z:var(--minimap-line-scale,1)}
/* 这几个窗口的标题区留白写死了 55 像素，跟着标题栏一起缩 */
.is-mobile-hud .guild-manager,.is-mobile-hud .party-manager.rx-framed,.is-mobile-hud .party-search-panel.rx-framed,.is-mobile-hud .minimap-line-dialog,.is-mobile-hud .assist-dialog{padding-top:calc(55 * var(--rx-u))}
/* 组队助手：原样式宽高按屏幕百分比（宽 = 屏宽 − 40、高 = 屏高 − 200），手机上被拉成又宽又扁的长条。
   手机上给固定设计尺寸 600×460，由手机窗口框架按比例缩到高 85% 并居中（844×390 约 0.72 倍）；不能拖动。 */
.is-mobile-hud .party-search-panel{left:50%;top:50%;right:auto;transform:translate(-50%,-50%);width:600px;height:460px}
.is-mobile-hud .ps-header{cursor:default}
/* 组队窗口：原样式高度按屏幕算（最多屏高 − 100），手机上只是变矮、内容滚动，没有按比例缩。
   手机上给固定设计尺寸 372×460，由手机窗口框架按比例缩到高 85% 并居中（844×390 约 0.72 倍，和组队助手一致）；不能拖动。 */
.is-mobile-hud .party-manager{left:50%;top:50%;transform:translate(-50%,-50%);width:372px;height:460px;max-height:none}
.is-mobile-hud .party-header{cursor:default}

/* PK 死亡提示（death-window.css 动态加载，在本文件之后，所以这里用两级选择器压过它）。
   原规则在屏幕高不超过 460 时把整个窗口变成可滚动（手机横屏都满足），“收起”按钮会跟着内容滑走。
   手机上不滚动、窗口按原大小排版，由 mobile-windows.mjs 统一缩进屏幕 85% 高并居中（战场版本 is-war 保持靠上）。 */
.is-mobile-hud .death-window{max-height:none;overflow:visible}
.is-mobile-hud .death-layer:not(.is-war){align-items:center}

/* 挂机按钮的燃烧特效（火焰层沿用 assist.css 的 .assist-mini-flame，这里按 26 像素的按钮缩小）。挂机中文字是“取消”。 */
.mobile-assist{isolation:isolate;overflow:visible}
.mobile-assist .assist-mini-flame{inset:calc(-5px * var(--m,1))}
.mobile-assist .assist-mini-flame::after{inset:calc(-7px * var(--m,1)) calc(8px * var(--m,1)) calc(17px * var(--m,1))!important}
.mobile-assist .mobile-assist-label{position:relative;z-index:1}

/* 手机上快捷栏固定第 1 页，翻页钮不显示（bottom-bar.mjs 进入手机布局时切回第 1 页） */
.mobile-page{display:none!important}
/* 药品格的选药窗口（mobile-shortcut-picker.mjs）。原尺寸 300 宽，由 mobile-windows.mjs 统一缩放、居中。 */
.is-mobile-hud .shortcut-picker-layer{position:absolute;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;background:#0006}
.is-mobile-hud .shortcut-picker-layer[hidden]{display:none}
.is-mobile-hud .shortcut-picker{--rx-frame-fill:linear-gradient(#2a1e10,#140e08);position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:300px;max-height:360px;padding:calc(55 * var(--rx-u)) 12px 12px;color:#ead497;font:13px/18px "Microsoft YaHei","PingFang SC",sans-serif}
.is-mobile-hud .shortcut-picker-title{margin:0;color:#f6d978;font:bold calc(17 * var(--rx-u))/calc(36 * var(--rx-u)) SimSun,"Songti SC",serif;letter-spacing:calc(2 * var(--rx-u));white-space:nowrap}
.is-mobile-hud .shortcut-picker-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8a7432 #140e08}
.is-mobile-hud .shortcut-picker-group{margin:6px 0 4px;padding-bottom:2px;border-bottom:1px solid #6b5a1e;color:#d8c268;font:bold 12px/16px "Microsoft YaHei","PingFang SC",sans-serif}
.is-mobile-hud .shortcut-picker-list{display:flex;flex-direction:column;gap:4px}
.is-mobile-hud .shortcut-picker-row{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:4px 8px;border:1px solid #6b5a1e;background:#1c140a;color:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.is-mobile-hud .shortcut-picker-row:active{background:#3a2a12}
.is-mobile-hud .shortcut-picker-row img,.is-mobile-hud .shortcut-picker-noicon{flex:none;width:30px;height:30px;object-fit:contain}
.is-mobile-hud .shortcut-picker-text{flex:1;min-width:0;display:flex;flex-direction:column}
.is-mobile-hud .shortcut-picker-text strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#ffe9a8;font-weight:bold}
.is-mobile-hud .shortcut-picker-text small{color:#b9d79a;font-size:11px;line-height:15px}
.is-mobile-hud .shortcut-picker-count{flex:none;color:#fff;font:bold 12px Arial,sans-serif}
.is-mobile-hud .shortcut-picker-empty{margin:18px 0;text-align:center;color:#c0ad7c}
.is-mobile-hud .shortcut-picker-foot{padding-top:8px}
.is-mobile-hud .shortcut-picker-foot[hidden]{display:none}
.is-mobile-hud .shortcut-picker-remove{width:100%;min-height:34px;border:1px solid #8a5a22;background:#3a1a10;color:#ffcf9a;font:13px "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}

/* 药品格上方的提示（mobile-hud.mjs）。药品格、背包、更多下移了 24 像素给它让位，离小地图下沿约 12 像素、离选怪约 12 像素。 */
.mobile-medicine-tip{position:absolute;right:75px;bottom:231px;width:84px;text-align:center;white-space:nowrap;color:#9ef05a;font:700 11px/14px "Microsoft YaHei","PingFang SC",sans-serif;text-shadow:0 1px 1px #000,0 0 3px #000;pointer-events:none}

/* 选择窗口的页签和“下面还有”提示（mobile-shortcut-picker.mjs）。手机浏览器默认把滚动条藏起来，这里给列表画一条常显的细滚动条。 */
.is-mobile-hud .shortcut-picker-tabs{display:flex;gap:4px;margin:0 0 6px;border-bottom:1px solid #6b5a1e}
.is-mobile-hud .shortcut-picker-tabs[hidden]{display:none}
.is-mobile-hud .shortcut-picker-tab{flex:1;min-height:32px;padding:0 6px;border:1px solid #6b5a1e;border-bottom:0;background:#140e08;color:#c0ad7c;font:bold 13px/1 "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer;touch-action:manipulation}
.is-mobile-hud .shortcut-picker-tab[aria-selected="true"]{background:#3a2a12;color:#ffe9a8;border-color:#b49725}
.is-mobile-hud .shortcut-picker-body{overflow-y:scroll;padding-right:4px;scrollbar-width:auto;scrollbar-color:#b49725 #140e08}
.is-mobile-hud .shortcut-picker-body::-webkit-scrollbar{width:6px}
.is-mobile-hud .shortcut-picker-body::-webkit-scrollbar-track{background:#140e08}
.is-mobile-hud .shortcut-picker-body::-webkit-scrollbar-thumb{background:#b49725;border-radius:3px}
.is-mobile-hud .shortcut-picker-more{margin-top:4px;text-align:center;color:#d8c268;font:12px/16px "Microsoft YaHei","PingFang SC",sans-serif;pointer-events:none}
.is-mobile-hud .shortcut-picker-more[hidden]{display:none}

/* 灵兽（2026-11-14，方案见实施记录）：人物状态栏右边是圆形头像，技能栏是头像下方的三行面板（位置、缩放在 pet-ui.mjs renderMobileLayout）。
   面板不用原版横 / 竖条底图，改成和队伍栏一样的棕底金边；横竖切换、锁定、关闭、技能格角上的“配置”点都不显示（长按技能格配置）。
   长条状态框在手机上换成圆形头像（下面），点头像展开 / 收起面板。 */
.is-mobile-hud .pet-quickbar[data-orientation=mobile]{box-sizing:border-box;background:#1d160ce6;border:1px solid #a98a45;border-radius:3px;box-shadow:inset 0 0 0 1px #4a3a18,0 3px 10px #0008}
.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quickbar-frame,.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quick-close,.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quick-rotate,.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quick-lock,.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quick-edit{display:none!important}
.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quick-slot{background:#0d0905b3;box-shadow:inset 0 0 0 1px #6d5627}
/* 圆形灵兽头像（2026-11-14，代替长条状态框；位置在 pet-ui.mjs renderMobileLayout，直径 --pet-orb-size = 人物状态栏高度）。
   外圈约 1/10 直径粗的红色是生命、内圈约 1/17 粗的蓝色是内力，用 conic-gradient 按比例画弧，没填满的部分是淡色底；中间是物品图标或“兽”字；右下角等级。 */
.is-mobile-hud .pet-status-hud{display:none!important}
.is-mobile-hud .pet-orb{display:block;position:absolute;width:var(--pet-orb-size,52px);height:var(--pet-orb-size,52px);padding:0;border-radius:50%;background:#140d07e6;box-shadow:0 0 0 1px #a98a45,0 2px 6px #000a;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.is-mobile-hud .pet-orb-ring{position:absolute;border-radius:50%;pointer-events:none}
.is-mobile-hud .pet-orb-hp{inset:0;background:conic-gradient(#e8423f calc(var(--pet-hp,0) * 360deg),#e8423f40 0);-webkit-mask:radial-gradient(farthest-side,transparent 80%,#000 81%);mask:radial-gradient(farthest-side,transparent 80%,#000 81%)}
.is-mobile-hud .pet-orb-mp{inset:11.5%;background:conic-gradient(#3d8fe6 calc(var(--pet-mp,0) * 360deg),#3d8fe640 0);-webkit-mask:radial-gradient(farthest-side,transparent 84%,#000 85%);mask:radial-gradient(farthest-side,transparent 84%,#000 85%)}
.is-mobile-hud .pet-orb-face{position:absolute;inset:21%;border-radius:50%;overflow:hidden;background:#2a1d0f;display:flex;align-items:center;justify-content:center;pointer-events:none}
.is-mobile-hud .pet-orb-icon{width:100%;height:100%;object-fit:cover}
.is-mobile-hud .pet-orb-fallback{color:#ffdf7a;font:bold calc(var(--pet-orb-size,52px) * .3) / 1 "Microsoft YaHei",SimHei,sans-serif;text-shadow:1px 1px 1px #000}
.is-mobile-hud .pet-orb-level{position:absolute;right:-6%;bottom:-6%;min-width:36%;height:36%;padding:0 2px;box-sizing:border-box;border-radius:999px;background:#2a1d0f;box-shadow:0 0 0 1px #a98a45;color:#ffeaa0;font:bold calc(var(--pet-orb-size,52px) * .2) / calc(var(--pet-orb-size,52px) * .36) Arial,sans-serif;text-align:center;pointer-events:none}
.is-mobile-hud .pet-orb.is-low .pet-orb-hp{animation:pet-orb-low 1s ease-in-out infinite}
.is-mobile-hud .pet-orb.is-pending{filter:grayscale(1) brightness(.7)}
.is-mobile-hud .pet-orb[aria-expanded=true]{box-shadow:0 0 0 2px #ffd84a,0 2px 6px #000a}
.is-mobile-hud .pet-quickbar[data-orientation=mobile] .pet-quick-jump{display:block;border:1px solid #a98a45!important;border-radius:3px;background:#5a3f1c!important;color:#ffe9a8;font:bold 13px/22px "Microsoft YaHei",SimHei,sans-serif;letter-spacing:2px;text-align:center}
