@import url('./inventory-window.css?v=use-button-1');
@import url('./pk-death-ui.css');
/* Original 1280 bitmap is sliced at the two fixed 400px end clusters. */
.bottom-bar{--bottom-bar-scale:1;position:absolute;left:0;right:0;bottom:0;height:calc(53px * var(--bottom-bar-scale));z-index:5;isolation:isolate;user-select:none}
.bottom-bar[hidden],.bottom-bar-overlay[hidden]{display:none}
/* 中间底图右移 28px（左段多了排行榜一格），中间的徽记仍居于两段之间的空隙正中；它的左右两端仍被两段盖住。 */
.bottom-bar-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bottom-bar>.bottom-bar-frame{left:calc(28px * var(--bottom-bar-scale));width:calc(100% - 28px * var(--bottom-bar-scale))}
.bottom-bar-frame-left,.bottom-bar-frame-right{position:absolute;top:0;bottom:0;width:calc(400px * var(--bottom-bar-scale));overflow:hidden;pointer-events:none}
.bottom-bar-frame-left{left:0;width:calc(428px * var(--bottom-bar-scale))}.bottom-bar-frame-right{right:0}
.bottom-bar-exp{position:absolute;z-index:3;left:0;right:0;top:calc(4px * var(--bottom-bar-scale));height:calc(4px * var(--bottom-bar-scale))}
.bottom-bar-exp-fill{width:0;height:100%;background-repeat:no-repeat;background-position:left top}
.bottom-bar-exp-tip{position:absolute;z-index:9;padding:0 3px;border:1px solid #ffffff82;background:#000000b0;color:#fff;font:12px/14px "SimSun",serif;white-space:nowrap;pointer-events:none}
.bottom-bar-compact .bottom-bar-exp{top:0;height:4px}
.bottom-bar-frame-left img,.bottom-bar-frame-right img{width:calc(1280px * var(--bottom-bar-scale));max-width:none}.bottom-bar-frame-left img{width:calc(428px * var(--bottom-bar-scale))}.bottom-bar-frame-right img{left:auto;right:0}
.bottom-bar-menus,.bottom-bar-quick{position:absolute;top:0;width:400px;height:53px;transform:scale(var(--bottom-bar-scale));transform-origin:top left}
.bottom-bar-menus{left:0;width:428px}.bottom-bar-quick{right:0;transform-origin:top right}
.bottom-bar-menu,.bottom-bar-slot,.bottom-bar-pages button{position:absolute;padding:0;border:0;background:transparent;color:#ffeb8b;cursor:pointer;border-radius:0;font:11px "SimSun",serif}
.bottom-bar-menu{top:18px;width:25px;height:26px}
.bottom-bar-slot{top:14px;width:32px;height:32px;overflow:hidden}
.bottom-bar-menu:hover,.bottom-bar-slot:hover,.bottom-bar-pages button:hover{background:#fff09a26;box-shadow:inset 0 0 0 1px #ffdf6b}
.bottom-bar-menu:active,.bottom-bar-slot:active{background:#0009;transform:translateY(1px)}
.bottom-bar button:focus-visible,.bottom-bar-dialog button:focus-visible{outline:2px solid #fff3aa;outline-offset:1px}
.bottom-bar button:disabled{cursor:default}.bottom-bar[data-ready="false"] .bottom-bar-menus,.bottom-bar[data-ready="false"] .bottom-bar-quick{opacity:.45}
.bottom-bar-slot.is-bound{background:#081009ed}.bottom-bar-slot.is-drop-target{outline:2px solid #a4f6dc;outline-offset:-2px}
.bottom-bar-slot.is-unavailable img{opacity:.4}
.bottom-bar-slot .martial-cooldown{position:absolute;left:0;top:1px;width:0;height:32px;background:#000000b4;pointer-events:none}
.bottom-bar-slot .martial-cooldown[hidden]{display:none}
.bottom-bar-item-icon{width:30px;height:30px;object-fit:contain;pointer-events:none}.bottom-bar-item-icon[hidden]{display:none}
.bottom-bar-quantity{position:absolute;right:1px;bottom:0;max-width:100%;color:#fff;font:10px/12px "SimSun",serif;text-shadow:1px 1px #000,-1px -1px #000;overflow-wrap:anywhere;pointer-events:none}
.bottom-bar-pages{position:absolute;left:5px;top:13px;width:11px;height:34px}
.bottom-bar-pages button{left:0;width:11px;height:9px}.bottom-bar-pages button img{width:100%;height:100%;pointer-events:none}
.bottom-bar-page-up{top:0}.bottom-bar-page-down{bottom:0}.bottom-bar-page-number{position:absolute;top:10px;left:0;width:11px;height:14px;pointer-events:none}
.bottom-bar-overlay{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;padding:12px 24px;background:#0003}
.bottom-bar-overlay.is-inventory-window{pointer-events:none;background:transparent}
.bottom-bar-overlay.is-inventory-window .bottom-bar-dialog{pointer-events:auto}
.bottom-bar-overlay.is-inventory-window .bottom-bar-dialog.is-positioned{position:absolute;max-width:calc(100% - 16px);max-height:calc(100% - var(--bottom-bar-height,53px) - 24px)}
.inventory-window-handle{display:none}
.bottom-bar-dialog.is-positioned{position:absolute}
.bottom-bar-overlay:not(.is-inventory-window):not([data-window="item-service"]):not([data-window="item-release"]) .inventory-window-handle{display:block;position:absolute;left:0;top:0;right:38px;height:38px;z-index:3;cursor:grab;touch-action:none;user-select:none}
.is-inventory>.inventory-window-handle{display:block;position:absolute;z-index:3;top:0;left:0;right:calc(34px * var(--inventory-ui-scale,1));height:calc(32px * var(--inventory-ui-scale,1));cursor:grab;touch-action:none;user-select:none}
.inventory-window-handle:focus-visible{outline:2px solid #fff3aa;outline-offset:-3px}
.is-window-dragging>.inventory-window-handle{cursor:grabbing}
.bottom-bar-overlay.is-dragging{pointer-events:none;background:transparent}.bottom-bar-overlay.is-dragging .bottom-bar-dialog{opacity:.75}
.bottom-bar-drag-ghost{position:fixed;z-index:100;width:32px;height:32px;transform:translate(calc(-50% - var(--carry-offset-x,2px)),calc(-50% - var(--carry-offset-y,2px)));pointer-events:none;background:transparent;border:0;opacity:.7843137255}.bottom-bar-drag-ghost img{width:100%;height:100%;object-fit:contain}
body.is-carrying-inventory,body.is-carrying-inventory *{cursor:none!important}
.bottom-bar-inventory-slot{touch-action:none}
.bottom-bar-dialog{position:relative;width:330px;max-width:100%;max-height:100%;display:flex;flex-direction:column;color:#e6eac4;background:linear-gradient(135deg,#123022f7,#06120bf7);border:2px solid #ab891e;box-shadow:inset 0 0 0 1px #e9d373,0 3px 18px #000b;padding:0 12px 12px}
.bottom-bar-dialog,.inventory-expanded{-webkit-user-select:none;user-select:none}
.bottom-bar-dialog img,.inventory-expanded img{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}
.bottom-bar-dialog input,.bottom-bar-dialog textarea,.bottom-bar-dialog [contenteditable]:not([contenteditable="false"]){-webkit-user-select:text;user-select:text}
.bottom-bar-dialog h2{flex:none;height:38px;margin:0 22px 12px 0;padding:9px 0 6px;color:#ffe596;font:bold 15px/20px "SimSun",serif;border-bottom:1px solid #7c691e}
.bottom-bar-close:hover{filter:brightness(1.3) saturate(1.15)}
.bottom-bar-close:active{filter:brightness(.85)}
.bottom-bar-close:focus-visible{outline:2px solid #fff3aa;outline-offset:1px;border-radius:50%}
.bottom-bar-close{position:absolute;right:8px;top:8px;width:22px;height:22px;padding:0;border:0;background:url('assets/bottom-bar/web_btn_close.png') center/18px 18px no-repeat;cursor:pointer}
.bottom-bar-dialog-content{overflow:auto;min-height:0;font:13px/1.6 "SimSun",serif;scrollbar-color:#a18524 #07170e}.bottom-bar-dialog-content p{margin:6px 0 12px}
.bottom-bar-empty{padding:20px 4px;color:#dbcda3}.bottom-bar-note{font-size:12px;color:#b4bc9d}
.bottom-bar-facts{display:grid;grid-template-columns:80px 1fr;gap:6px 12px;margin:4px 0 16px}.bottom-bar-facts dt{color:#d5ca81}.bottom-bar-facts dd{margin:0;overflow-wrap:anywhere}
.bottom-bar-inventory-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.bottom-bar-inventory-slot{position:relative;aspect-ratio:1;padding:0;color:#fff1b6;background:#07180ce0;border:1px solid #73824a;cursor:pointer;min-width:0}.bottom-bar-inventory-slot img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.bottom-bar-inventory-slot:hover{background:#254834}.bottom-bar-inventory-slot:disabled{opacity:.5;cursor:wait}.bottom-bar-inventory-index{font-size:10px;opacity:.25}.bottom-bar-item-id{display:block;font:10px/12px "SimSun",serif;overflow-wrap:anywhere}
.bottom-bar-window-actions,.bottom-bar-bind-chooser{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.bottom-bar-bind-chooser p{flex-basis:100%}
.bottom-bar-text-button{min-width:34px;min-height:32px;padding:5px 9px;color:#eee0a2;font:13px "SimSun",serif;border:1px solid #ae8b30;background:#1a2a14;cursor:pointer}.bottom-bar-text-button:hover{background:#394b23}.bottom-bar-text-button[aria-pressed="true"]{outline:1px solid #f5db6e}.bottom-bar-text-button:disabled{opacity:.4;cursor:wait}
#world-panel .world-controls{bottom:calc(var(--status-space,0px) + var(--bottom-bar-height,53px) + 38px)}
#world-panel .world-hint{bottom:calc(var(--status-space,0px) + var(--bottom-bar-height,53px) + 8px)}
@media(max-width:639px){.bottom-bar-compact{height:100px;background:#061108;border-top:2px solid #b49725}.bottom-bar-compact .bottom-bar-frame,.bottom-bar-compact .bottom-bar-frame-left,.bottom-bar-compact .bottom-bar-frame-right{display:none}.bottom-bar-compact .bottom-bar-menus{width:100%;height:48px;top:2px;display:flex;align-items:center;gap:2px;overflow-x:auto;padding:2px 6px;transform:none}.bottom-bar-compact .bottom-bar-menu{position:relative;left:auto!important;top:auto;flex:0 0 36px;width:36px;height:38px;border:1px solid #a18524;background-position:center;background-size:25px 26px;background-repeat:no-repeat}.bottom-bar-compact .bottom-bar-quick{top:50px;width:100%;height:48px;display:flex;gap:2px;align-items:center;padding:2px 4px 2px 23px;overflow-x:auto;transform:none}.bottom-bar-compact .bottom-bar-slot{position:relative;left:auto!important;top:auto;flex:0 0 34px;width:34px;height:38px;border:1px solid #a18524;background-color:#14200c}.bottom-bar-compact .bottom-bar-slot::before{content:attr(data-key);position:absolute;top:1px;left:2px;font:10px/10px "SimSun",serif;color:#baa653}.bottom-bar-compact .bottom-bar-slot.is-bound::before{z-index:2;text-shadow:1px 1px #000}.bottom-bar-compact .bottom-bar-pages{position:sticky;left:-20px;flex:0 0 15px;order:-1;top:auto;height:32px;background:#081609;z-index:2;margin-left:-19px}.bottom-bar-overlay{padding:8px 8px 110px;justify-content:center}.bottom-bar-dialog{width:330px}}
@media(prefers-reduced-motion:reduce){.bottom-bar-menu:active,.bottom-bar-slot:active{transform:none}}
@media(max-width:639px){.bottom-bar-compact .bottom-bar-menu{background-image:var(--menu-icon)}}
body:has(#world-panel:not([hidden])) #preview-status{display:none}
.refinement-sound-setting,.combat-sound-setting{display:flex;align-items:center;gap:8px;margin:8px 0 16px;color:#eee0a2;cursor:pointer}
.refinement-sound-toggle,.combat-sound-toggle{width:18px;height:18px;margin:0;accent-color:#b49b36}
@media(max-width:639px){.bottom-bar-compact .bottom-bar-menu{flex-basis:44px;width:44px;height:44px}.bottom-bar-compact .bottom-bar-slot{flex-basis:44px;width:44px;height:44px}}
/* 聊天框箭头展开的功能入口（feature-bar.mjs）：聊天框右边、底部栏上方，从左下往右排，一排 4 个，排满往上。只有图标和名称，没有背景框 */
.feature-bar{position:absolute;z-index:8;left:31%;bottom:calc(var(--bottom-bar-height,53px) + var(--status-space,0px) + 6px);width:262px;display:flex;flex-wrap:wrap-reverse;justify-content:flex-start;gap:2px;pointer-events:none}
.feature-bar[hidden]{display:none}
.feature-bar-item{display:flex;flex-direction:column;align-items:center;gap:1px;flex:none;width:64px;padding:0;border:0;background:none;color:#ffe9a8;font:13px/14px SimSun,serif;text-shadow:-1px 0 #000,1px 0 #000,0 -1px #000,0 1px #000,0 0 3px #000;cursor:pointer;pointer-events:auto}
.feature-bar-item img{display:block;width:48px;height:48px}
.feature-bar-item span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feature-bar-item:hover,.feature-bar-item:focus-visible{color:#fff;outline:none;filter:brightness(1.18)}
.feature-bar-item:active{transform:translateY(1px)}
.feature-bar-item.is-locked{filter:grayscale(1);opacity:.65;cursor:default}
.feature-bar-empty{padding:6px 14px;border:1px solid #8a6a2a;border-radius:4px;background:#120c05e6;color:#d8c690;font:13px/18px SimSun,serif;pointer-events:auto}
@media(max-width:700px){.feature-bar{left:8px;width:auto;right:8px}}
/* 底部栏的图标画在底图上，按钮本身透明；衣柜这一格是新图标，盖在底图原来的任务图标上 */
.bottom-bar-menu[data-feature="wardrobe"]{background-image:var(--menu-icon);background-position:center;background-size:100% 100%;background-repeat:no-repeat}
/* 设置窗口：声音一栏（sound-settings.mjs，2026-11-18）——音效、背景音乐两行，每行开关 + 名称 + 音量条 + 百分比排在一行；画面一栏标题同样式。窗口里的勾选框、滑条统一金色 */
.bottom-bar-dialog-content input[type=checkbox],.bottom-bar-dialog-content input[type=range]{accent-color:#b49b36}
.bottom-bar-dialog-content .options-section-title{margin:4px 0 4px;padding-bottom:4px;border-bottom:1px solid #b49b3655;font:bold 14px/1.5 "SimSun",serif;color:#eee0a2;letter-spacing:2px}
.sound-settings{margin:0 0 14px}
.sound-setting-row{display:flex;align-items:center;gap:10px;min-height:38px}
.sound-setting-switch{display:flex;align-items:center;gap:8px;flex:none;width:7.5em;color:#eee0a2;cursor:pointer;white-space:nowrap}
.sound-setting-row input[type=checkbox]{width:18px;height:18px;margin:0;flex:none}
.sound-volume{flex:1 1 auto;min-width:60px;margin:0;cursor:var(--client-cursor)}
.sound-volume-value{flex:none;width:3.2em;text-align:right;color:#eee0a2;font-variant-numeric:tabular-nums}
.sound-setting-row.is-off .sound-volume,.sound-setting-row.is-off .sound-volume-value{opacity:.45}
.refinement-sound-toggle,.combat-sound-toggle,.ui-sound-toggle,.background-music-toggle{width:18px;height:18px;margin:0}
