/* Compact desktop HUD; original client window images are used by the item, equipment and spell panels. */
.hud-layout{font-family:'Noto Sans TC','Microsoft JhengHei',sans-serif;--console-height:78px}
.hud-layout .viewport{top:94px;height:calc(100dvh - 94px);border-top:2px ridge #8a8268}
.hero-hud{top:5px;left:9px;height:82px;gap:8px;filter:none;z-index:8}.hero-portrait{height:72px;width:46px;border-radius:0}.hero-readout{width:326px;background:none;padding:0}.hero-name{font-size:13px;color:#d1c894}.combat-readout{gap:9px;flex-wrap:wrap;font:11px 'Microsoft JhengHei',sans-serif;margin-top:5px}.combat-readout b{margin-left:2px}.hero-readout .vital-bars{display:grid;grid-template-columns:1fr;gap:3px;margin-top:5px;width:100%;height:25px}.hero-readout .vital{height:11px;border-width:1px;border-radius:1px}.hero-readout .vital span{font-size:9px}.hud-version{font-size:8px;margin-top:4px}.top-ribbon{position:fixed;left:400px;right:8px;top:10px;z-index:8;display:flex;gap:6px;align-items:flex-start}.hud-layout:before{content:'';position:fixed;top:0;left:0;right:0;height:94px;background:linear-gradient(#22292a,#10171c);border:3px ridge #8c8466;z-index:7;pointer-events:none}.top-ribbon .hud-nav{display:flex;flex-wrap:wrap;gap:5px;background:none;border:0;padding:0;flex:1}.top-ribbon .nav,.top-ribbon .system-menu>summary,#nearbyToggle{height:29px;display:flex;flex-direction:row;gap:5px;padding:4px 9px;border:2px ridge #807b62;border-radius:0;background:linear-gradient(#464946,#20292e);font-size:11px;color:#ddd4b2}.top-ribbon .nav>span,.top-ribbon .system-menu>summary>span{font-size:15px}.top-ribbon .system-menu{height:29px}.top-ribbon .system-menu>div{top:34px;bottom:auto;right:0}.top-ribbon .nav #bagCount{display:none}.region-plaque{top:100px;right:9px;width:224px;border-radius:0;border-width:2px;padding:4px;background:#192328e8}.region-plaque strong{font-size:14px}.region-plaque span{font-size:10px}.hud-layout .map-corner{top:155px;right:9px;width:224px;height:158px;border-radius:0;border-width:3px;box-shadow:0 3px 8px #0008}.hud-layout .map-corner canvas{object-fit:cover}.quest-orb{top:56px;right:12px;height:30px;width:80px;border-radius:0;border-width:1px;display:flex;align-items:center;gap:8px;justify-content:center;font-size:18px}.quest-orb small{font-size:11px}.hud-layout .effect-strip{top:98px;left:10px;right:260px}.hud-layout .target-card{top:112px;width:184px}.game-console{height:78px;left:auto;right:8px;bottom:5px;transform:none;width:calc(100% - 340px);padding:5px 7px;grid-template-rows:56px 5px;gap:4px;border:2px ridge #837b5c;border-radius:0;background:#182126e6}.hotbar{height:56px;max-width:600px;gap:4px}.hotkey{border-radius:0;border-width:2px}.hotkey img{height:34px;width:34px}.hotkey b{font-size:9px}.hotkey small{font-size:9px;bottom:12px}.hotkey .slot-symbol{font-size:30px;line-height:35px}.hotkey kbd{font-size:9px}.battle-journal{position:fixed;left:8px;bottom:5px;width:320px;height:182px;z-index:6;padding:6px 7px;background:#162023e8;border:2px ridge #887f61}.battle-journal .log-tabs{gap:2px}.battle-journal .log-tabs button{padding:2px 6px;font-size:9px}.battle-journal .log-tabs #activity{display:none}.hud-layout #log p{font-size:10px}.battle-journal #logSearch{height:20px}.hud-layout.log-collapsed{--console-height:78px}.log-collapsed .battle-journal{height:33px}.touch-combat{right:250px;bottom:100px}.touch-combat button{width:48px;height:48px;border-width:2px;font-size:22px}.touch-combat #touchAttack{width:57px;height:57px;font-size:27px}.touch-combat small{font-size:9px}.nearby-panel{position:fixed;top:323px;right:9px;width:224px;z-index:5;max-height:calc(100dvh - 420px);background:#192228e8;border:2px ridge #8c8468;color:#d2cdb3}.nearby-title{height:27px;padding:4px 7px;border-bottom:1px solid #687064;display:flex;justify-content:space-between;align-items:center;font-size:11px}.nearby-title button{border:1px solid #72776a;background:#313b3d;padding:0 7px}.nearby-tabs{display:flex;gap:4px;padding:5px}.nearby-tabs button{flex:1;border:1px solid #8e8463;background:#333d3d;padding:4px 2px;font-size:10px}.nearby-tabs .selected{color:#fff0bc;background:#5f5940}#nearbyList{overflow:auto;max-height:calc(100dvh - 510px);min-height:32px}.nearby-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center;padding:6px;border-top:1px solid #4c574b;font-size:10px}.nearby-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nearby-row small{margin-left:5px;color:#9cae9d}.nearby-row button{border:1px solid #797d68;background:#35423f;font-size:10px;padding:3px 6px}.nearby-panel>div>small{display:block;padding:5px;color:#9baca4;font-size:9px}.nearby-panel[hidden],#nearbyBody[hidden]{display:none!important}.hud-layout.nearby-collapsed .nearby-panel{display:none}.hud-layout .direction-pad{bottom:104px}.hud-layout .world-toast{top:180px}
/* Separate, functional original-client windows. Their artwork is not a CSS imitation. */
.client-panel{display:grid;grid-template-columns:minmax(210px,382px) minmax(180px,1fr);gap:20px;align-items:start}.original-window{position:relative;max-width:382px;width:100%;aspect-ratio:191/274;background:url('assets/original/ui/inventory.png') center/100% 100% no-repeat;image-rendering:pixelated}.inventory-grid{position:absolute;left:16.2%;top:11.3%;width:70.2%;height:74.5%;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(6,1fr)}.client-slot{position:relative;min-width:0;padding:2px;border:1px solid #8b987825;background:#111c1b22;display:grid;place-items:center}.client-slot img{width:85%;height:85%;max-width:48px;max-height:48px;object-fit:contain;image-rendering:pixelated}.client-slot .loot-icon{margin:0}.client-slot small{position:absolute;bottom:2px;right:3px;font-size:10px;color:#eee2b8;text-shadow:1px 1px #000}.client-slot.equipped{box-shadow:inset 0 0 0 2px #c0b36d}.client-slot .equipped-dot{position:absolute;top:2px;right:3px;color:#d5ca79;font-size:9px}.client-window-title{position:absolute;top:2.5%;left:10%;right:10%;text-align:center;font-size:12px;color:#d7d4bb;text-shadow:1px 1px #000}.client-tools input,.client-tools select{width:100%;padding:8px;margin-bottom:9px;border:1px solid #657367;background:#192525;color:#ddd4b1}.client-tools button,.client-action{border:1px solid #8c8462;background:#3b453d;padding:8px 12px;margin:3px;color:#e0d7b7}.client-pagination{display:flex;justify-content:center;align-items:center;gap:9px;margin:9px}.equipment-window{aspect-ratio:179/275;background-image:url('assets/original/ui/equipment.png');max-width:358px}.equipment-window .gear-slot{position:absolute;width:20%;height:13%;background:#17202844}.gear-slot>span{font-size:9px;color:#c3c5b8}.equipment-ac{position:absolute;left:53%;top:79%;font:17px Georgia;color:#d3d5b9}.gear-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:390px;overflow:auto}.gear-choice{border:1px solid #596d5d;background:#1b2926;padding:6px;text-align:center}.gear-choice button{padding:4px;font-size:11px;width:100%;margin:0}.gear-choice .loot-icon{display:block;margin:0 auto 4px}.gear-choice small{display:block;font-size:10px}.spell-window{aspect-ratio:179/275;background-image:url('assets/original/ui/spellbook.png');max-width:358px}.spell-grid{left:8.4%;top:11.3%;width:76%;height:74.5%}.spell-symbol{font:28px Georgia;color:#d6ce8b;text-shadow:0 0 5px #b2b667}.spell-symbol.fire{color:#ddad73}.spell-symbol.heal{color:#b1cb97}.spell-symbol.haste{color:#a9c3da}.client-panel .source-note{font-size:10px!important}.client-tools .spell-card{padding:9px;border:1px solid #617262;margin-bottom:9px}.client-tools .spell-card h3{margin:0 0 4px!important;font-size:14px!important}
@media(max-width:1000px){.top-ribbon{left:350px}.hero-readout{width:280px}.top-ribbon .nav{padding:4px 6px;font-size:10px}.top-ribbon .nav>span{display:none}.combat-readout{gap:7px;font-size:10px}}
@media(max-width:760px){.hud-layout{--console-height:78px}.hud-layout:before{height:128px}.hud-layout .viewport{top:128px;height:calc(100dvh - 128px)}.hero-hud{top:5px;left:7px;height:80px;gap:7px}.hero-portrait{height:65px;width:40px}.hero-readout{width:min(280px,calc(100vw - 65px))}.combat-readout{font-size:10px;gap:7px;max-width:100%;flex-wrap:wrap}.hero-name{font-size:12px}.hero-readout .vital-bars{width:100%;margin-top:5px}.hud-version{display:none}.top-ribbon{left:7px;right:7px;top:91px;height:30px;gap:4px}.top-ribbon .hud-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:4px;min-width:0}.top-ribbon .nav{flex-shrink:0;padding:4px 7px;font-size:10px}.top-ribbon .nav>span{display:none}.top-ribbon .system-menu{position:static;flex-shrink:0}.top-ribbon .system-menu>summary{font-size:10px;padding:4px 7px}.top-ribbon .system-menu>summary>span{display:none}.top-ribbon .system-menu>div{top:34px;right:0}.top-ribbon #nearbyToggle{font-size:10px;white-space:nowrap;padding:4px 7px;flex-shrink:0}.region-plaque{top:135px;right:7px;width:125px;padding:3px}.region-plaque strong{font-size:11px}.region-plaque span{font-size:9px}.hud-layout .map-corner{top:180px;right:7px;width:125px;height:100px}.quest-orb{top:285px;right:7px;width:60px;height:26px;font-size:13px}.quest-orb small{font-size:10px}.nearby-panel{top:318px;right:7px;width:180px;max-height:calc(100dvh - 420px)}#nearbyList{max-height:calc(100dvh - 510px)}.nearby-panel .nearby-title{font-size:10px}.battle-journal{left:7px;bottom:90px;width:calc(100% - 205px);min-width:170px;height:120px;padding:4px}.hud-layout #log p{font-size:9px}.battle-journal .log-tabs button{font-size:8px;padding:2px 3px}.battle-journal #logSearch{display:none}.game-console{left:7px;right:7px;bottom:5px;width:auto;height:78px;padding:5px;grid-template-rows:56px 5px;border-radius:0}.hotbar{gap:3px}.hotkey{height:56px}.hotkey b{font-size:9px}.hotkey small{font-size:8px}.hud-layout.log-collapsed{--console-height:78px}.log-collapsed .battle-journal{height:29px}.direction-pad{bottom:222px!important;left:9px;width:90px;height:90px}.touch-combat{right:12px;bottom:92px}.touch-combat #touchAttack{width:58px;height:58px;font-size:26px}.touch-combat button{width:44px;height:44px;font-size:22px}.hud-layout .effect-strip{top:136px;left:7px;right:142px}.hud-layout .target-card{top:178px;left:8px;transform:none;width:148px}.hud-layout .world-toast{top:260px}.client-panel{grid-template-columns:1fr;gap:12px}.original-window{max-width:330px;margin:auto}.gear-choices{max-height:240px}.hud-layout #panel{max-height:calc(100dvh - 16px)}.client-window-title{font-size:11px}}
@media(max-height:600px) and (min-width:761px){.hud-layout .viewport{top:94px;height:calc(100dvh - 94px)}.nearby-panel{top:250px;max-height:calc(100dvh - 340px)}#nearbyList{max-height:calc(100dvh - 420px)}.hud-layout .map-corner{height:105px;top:138px}.region-plaque{top:96px;padding:1px}.battle-journal{height:135px}.quest-orb{top:56px}.nearby-title{height:23px}}
.client-float{position:fixed;width:240px;z-index:10;filter:drop-shadow(0 5px 7px #0009);user-select:none;touch-action:manipulation}.client-float[hidden],#clientTooltip[hidden]{display:none!important}.float-equipment{left:10px;top:160px}.float-bag{right:248px;top:160px}.float-skills{left:calc(50% - 120px);top:175px}.client-float .original-window{max-width:none;width:100%}.float-title{position:absolute;top:2.5%;left:9%;right:6%;height:22px;display:flex;align-items:center;justify-content:space-between;z-index:2;cursor:move;touch-action:none;font-size:11px;color:#d9d4b6;text-shadow:1px 1px #000}.float-title button{border:1px solid #777b67;color:#d3d2b9;background:#1c272bcc;height:18px;width:19px;padding:0;font-size:15px;line-height:15px}.client-float .client-slot{border:0;background:transparent;touch-action:manipulation}.client-float .client-slot.equipped{box-shadow:inset 0 0 0 1px #aaa06a}.client-float .client-slot img{max-width:33px;max-height:33px}.client-float .client-slot small{font-size:9px}.client-float .inventory-grid{gap:0}.float-gear-position{position:absolute;width:20%;height:13%;display:grid;place-items:center}.float-gear-position .client-slot{width:100%;height:100%}.empty-gear{font-size:9px;color:#aeb3ac88}.client-float .equipment-ac{font-size:14px}.client-float .spell-symbol{font-size:21px}.float-inventory-tools{position:absolute;left:15%;right:10%;top:89%;display:flex;align-items:center;gap:3px;height:19px;color:#b8bea8;font-size:9px}.float-inventory-tools input{width:65px;min-width:0;background:#142125aa;border:1px solid #5b6657;color:#d5d3b8;font-size:9px;padding:2px}.float-inventory-tools button{border:1px solid #576354;background:#26332b;font-size:12px;line-height:13px;padding:0 4px;color:#d6d2a8}.float-inventory-tools span{white-space:nowrap}#clientTooltip{position:fixed;z-index:18;max-width:220px;width:max-content;min-width:150px;padding:10px 12px;border:1px solid #b5ac7f;background:rgba(13,23,25,.82);color:#e0d9ba;box-shadow:0 3px 9px #0008;font-size:11px;pointer-events:none;backdrop-filter:blur(2px)}#clientTooltip strong{color:#f0dfa9;font-size:12px}#clientTooltip p{margin:6px 0;line-height:1.7}#clientTooltip small{color:#abbcac;font-size:10px}
@media(max-width:760px){.client-float{width:220px}.float-equipment{top:150px;left:5px}.float-bag{top:155px;right:5px}.float-skills{left:calc(50% - 110px);top:180px}.float-title{height:20px;font-size:10px}.client-float .client-slot img{max-width:31px;max-height:31px}#clientTooltip{max-width:190px;font-size:10px;padding:8px}.float-inventory-tools input{width:56px}.client-float .equipment-ac{font-size:13px}}

.client-float{max-width:calc(100vw - 10px)}.float-skills{left:auto;right:8px;top:323px}@media(max-width:760px){.float-skills{left:auto;right:5px;top:180px;width:180px}}

.hud-layout .effect-chip{display:flex;align-items:center;gap:4px;padding:3px;background:#152228bb;border:1px solid #86927577}.effect-chip img{width:25px;height:25px;object-fit:contain;image-rendering:pixelated}.effect-chip>span{font-size:9px}.client-float .spell-grid .client-slot img{width:85%;height:85%;max-width:33px;max-height:33px}@media(max-width:760px){.effect-chip img{width:22px;height:22px}.effect-chip>span{font-size:8px}}

@media(max-width:760px){.client-float{width:180px}.float-bag{right:5px}.float-equipment{left:5px}.float-skills{right:5px;width:180px}}

#clientTooltip{pointer-events:auto}#clientTooltip button{margin-top:6px;font-size:11px;padding:4px 8px}#deathDialog{max-width:430px}

.hud-layout .target-card>div:first-child{display:block}.target-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-card small{display:block;margin-top:3px}

#portalAction{position:fixed;z-index:12;bottom:108px;left:50%;transform:translateX(-50%);padding:9px 18px;background:#302b1deb;border:2px ridge #d0b86c;color:#ffebad}#portalAction[hidden]{display:none}@media(max-width:760px){#portalAction{bottom:160px;max-width:65vw}}

.float-status{left:8px;top:auto;bottom:197px;width:260px;height:350px;border:3px ridge #96866a;background:#131914f2;filter:drop-shadow(0 3px 8px #000)}.float-status .float-title{position:relative;inset:auto;height:28px;padding:3px 9px;border-bottom:2px ridge #8b7c60;background:linear-gradient(#3b3b30,#171e19)}.float-status .float-body{height:calc(100% - 28px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y}.character-sheet{padding:8px;font-size:11px;color:#d8d3b8}.character-sheet h3{font-size:13px;margin:2px 0 7px;color:#e4c981}.character-sheet h4{margin:10px -2px 6px;padding:5px;text-align:center;background:#34372a;border-top:1px solid #a0936b;border-bottom:1px solid #a0936b;color:#ddd5ae}.character-sheet p{line-height:1.6;margin:5px 0}.ability-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px}.attribute-cell{display:grid;grid-template-columns:1fr 25px 22px;align-items:center;padding:3px;background:#080e0bbd;gap:3px}.attribute-cell b{text-align:center;color:#e3d7a0}.attribute-cell button{padding:0;height:21px;background:#39351e;border:1px solid #94875d;color:#f3d98e}.attribute-cell small{grid-column:1/4;color:#889e8c;font-size:9px;text-align:right}.bonus-summary{font-size:11px;text-align:center}.bonus-summary b{color:#f2d37e}.ability-row{display:flex;justify-content:space-between;gap:8px;padding:6px 3px;border-bottom:1px solid #464b36;align-items:center}.ability-row b{text-align:right;color:#e8dfbe;font-weight:500}.sheet-note{color:#98a38d;font-size:10px}@media(max-width:760px){.float-status{left:5px;top:134px;bottom:auto;width:180px;height:max(170px,calc(100dvh - 382px))}.character-sheet{padding:5px;font-size:10px}.attribute-cell{grid-template-columns:1fr 19px 17px;gap:1px}.attribute-cell button{height:18px}.float-status .float-title{height:25px;padding:3px 5px}.ability-row{gap:3px}}
/* Original client 105.img selection arches and 310.img creation hall. */
#welcome{width:min(860px,96vw);max-width:96vw;max-height:95dvh;padding:0;border:2px ridge #9b916b;color:#e4d5ac;background:#12110e;overflow:auto}#welcome::backdrop{background:#050403ed}#welcome button{color:#e4d5ac;border:1px solid #8d805c;background:linear-gradient(#343329,#151712);cursor:pointer}#welcome button:disabled{opacity:.4;cursor:default}#welcome h2{margin:0 0 8px;text-align:center;font-family:serif;color:#e7d5a4}#welcome h3{font-size:14px;color:#d5bd7e;margin:12px 0 6px}#welcome p{margin:6px 0;font-size:12px}#welcome small{font-size:11px;color:#b8b39c}#welcome [data-lobby-message]{min-height:20px;color:#efc473}.lobby-shell{padding:22px;background:linear-gradient(#15110950,#090b09e8),url('assets/original/ui/character-create.png') center/cover}.lobby-shell>p,.lobby-shell>small{display:block;text-align:center}.character-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.character-slot{height:290px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;padding:14px 2px!important;background-image:url('assets/original/ui/character-select.png')!important;background-size:400% 178%!important;background-position:left top!important;border:2px solid transparent!important;box-shadow:inset 0 -55px 25px #000}.character-slot.selected{border-color:#d2af61!important;box-shadow:0 0 15px #b49b4140,inset 0 -55px 25px #000}.character-slot canvas{width:160px;height:182px;object-fit:contain;image-rendering:pixelated}.character-slot>strong{position:absolute;top:85px;font-size:40px;color:#9d8752}.character-slot>b{font-size:16px;margin:5px 0}.character-slot>span{font-size:12px}.lobby-readout{padding:14px;border:1px solid #756946;background:#111610dd;text-align:center;min-height:55px}.lobby-actions{display:flex;gap:12px;justify-content:center;margin:14px 0}.lobby-actions button{padding:10px 24px}.creation-shell{padding:18px;background:linear-gradient(#161610cf,#101511f5),url('assets/original/ui/character-create.png') center/cover}.creation-classes,.creation-sex{display:flex;gap:8px;justify-content:center}.creation-classes button,.creation-sex button{padding:7px 14px}.creation-shell button[aria-pressed=true]{border-color:#e4bd69!important;background:#50472b!important}.creation-columns{display:grid;grid-template-columns:210px 1fr;gap:24px}.creation-preview{text-align:center;padding-top:24px}.creation-preview canvas{width:200px;height:230px;image-rendering:pixelated}.creation-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.creation-stats>div{display:grid;grid-template-columns:32px 25px 26px 25px;gap:5px;align-items:center;background:#080c08a0;padding:5px}.creation-stats b{text-align:center}.creation-stats small{grid-column:2/5;text-align:center}.creation-stats button{padding:3px}.creation-shell input{display:block;width:100%;margin-top:7px;padding:9px;color:#eee;background:#101510;border:1px solid #8c7c50}.creation-shell label{font-size:13px}.creation-bonuses{max-height:130px;overflow:auto;padding:5px 10px;border:1px solid #4a4d3a;background:#090e09aa}.creation-rule{color:#bdbba8;line-height:1.5}.hero-portrait img{image-rendering:pixelated;object-fit:contain}
@media(max-width:760px){#welcome{width:97vw;max-width:97vw}.lobby-shell,.creation-shell{padding:12px}.character-slots{gap:5px}.character-slot{height:240px}.character-slot canvas{width:105px;height:130px}.character-slot>b{font-size:12px}.character-slot>span{font-size:10px}.creation-columns{grid-template-columns:100px 1fr;gap:10px}.creation-preview canvas{width:100px;height:130px}.creation-stats{grid-template-columns:1fr}.creation-sex{flex-wrap:wrap;gap:4px}.creation-sex button{padding:5px}.creation-classes button{padding:7px 10px}.lobby-actions button{padding:9px 16px}}

.lobby-vitals{display:flex;justify-content:center;gap:12px 28px;flex-wrap:wrap;margin:12px 0}.lobby-vitals span{color:#b8b398}.lobby-vitals b{color:#f0ddb0;margin-left:6px}
.automation-bar{position:absolute;top:56px;left:400px;display:flex;gap:6px;z-index:6}.automation-bar button{padding:5px 10px;font-size:12px;background:linear-gradient(#3c3d31,#1a201b);border:1px solid #a29975;color:#e3d2a5}.automation-bar button[data-active=true]{background:#385637;border-color:#c2bb75}.auto-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.auto-list{padding:12px;border:1px solid #6d7152;background:#111b1480}.auto-list p{display:flex;justify-content:space-between;align-items:center;gap:8px}.auto-check{display:flex!important;align-items:center;gap:9px;margin:12px 0}.auto-check input{width:17px!important;height:17px!important;display:inline!important;margin:0!important}.mechanism-actions{display:flex;gap:10px;margin:18px 0}.mechanism-note{color:#c1b99a;font-size:12px}#panelContent input[type=number]{width:90px;padding:6px;color:#e1d8bd;background:#152017;border:1px solid #74765a}#panelContent select{max-width:100%;padding:7px;color:#e1d8bd;background:#152017;border:1px solid #74765a}#panelContent .auto-columns td input[type=number]{width:65px}.auto-list select{width:100%}
@media(max-width:760px){.automation-bar{left:auto;right:7px;top:58px;gap:4px}.automation-bar button{font-size:10px;padding:4px 7px}.auto-columns{grid-template-columns:1fr}.auto-list{padding:8px}#panelContent .panel-table{font-size:11px}#panelContent .auto-columns td input[type=number]{width:55px}}
.automation-bar{position:fixed;top:60px;left:400px;right:auto;width:max-content;white-space:nowrap;z-index:9}.automation-bar button{flex:0 0 auto;min-width:78px;width:auto;height:27px;white-space:nowrap;line-height:1;padding:5px 10px}
@media(max-width:1000px) and (min-width:761px){.automation-bar{left:350px}}
@media(max-width:760px){.automation-bar{left:7px;right:7px;top:91px;width:auto;gap:5px}.automation-bar button{min-width:75px;height:25px;padding:4px 9px}.top-ribbon{top:123px}.hud-layout:before{height:158px}.hud-layout .viewport{top:158px;height:calc(100dvh - 158px)}.region-plaque{top:165px}.hud-layout .map-corner{top:210px}.quest-orb{top:315px}.nearby-panel{top:348px;max-height:calc(100dvh - 450px)}#nearbyList{max-height:calc(100dvh - 540px)}.float-status{top:164px}}
.top-ribbon:has(.system-menu[open]){z-index:30}
.float-warehouse{position:fixed;left:calc(50% - 280px);right:auto;top:calc(50% - 165px);width:560px;height:390px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 110px);background:#111b18f5;border:2px ridge #9e9575;box-shadow:0 4px 18px #0008;color:#d9d2b8}.float-warehouse .float-title{position:relative;inset:auto;height:28px;cursor:move;background:linear-gradient(#373b2c,#172017);border-bottom:1px solid #8b8266}.float-warehouse .float-body{height:calc(100% - 28px);padding:10px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.float-warehouse .float-body>h2{display:none}.float-warehouse .float-body p{font-size:11px;line-height:1.5;margin:6px 0}.float-warehouse h3{font-size:13px}.float-warehouse .auto-columns{gap:10px}.float-warehouse table{width:100%;font-size:11px;border-collapse:collapse}.float-warehouse td{padding:5px 3px;border-bottom:1px solid #68715360}.float-warehouse input[type=number]{width:47px;color:#e2d7ba;background:#16241b;border:1px solid #6e775b}.float-warehouse input[type=file]{max-width:160px;font-size:10px}.float-warehouse button{background:#313e2d;border:1px solid #87896a;color:#e3d9be;font-size:11px;padding:4px 6px}.float-warehouse button:disabled{opacity:.4}.float-warehouse label{font-size:11px}.float-warehouse .auto-columns{grid-template-columns:1fr 1fr}.chat-compose{display:flex;gap:4px;height:24px;margin-top:3px}.chat-compose input{flex:1;min-width:0;border:1px solid #727456;background:#1d291c;color:#e7ddc4;font-size:10px;padding:3px 5px}.chat-compose button{background:#3e452c;border:1px solid #8b865c;color:#e0d3aa;font-size:10px;padding:2px 6px}.battle-journal #log{height:calc(100% - 78px)}
@media(max-width:760px){.float-warehouse{left:7px;top:168px;width:calc(100vw - 14px);height:min(370px,calc(100dvh - 260px));max-height:calc(100dvh - 180px)}.float-warehouse .auto-columns{grid-template-columns:1fr}.chat-compose{height:22px}.battle-journal #log{height:calc(100% - 53px)}}
/* Explicit control colors prevent light native buttons with pale inherited text. */
#panelContent button{appearance:none;background:#303d30;color:#fff3cc;border:1px solid #aaa17a;border-radius:3px;padding:7px 12px;font:600 14px/1.4 'Microsoft JhengHei',sans-serif;text-shadow:0 1px 1px #000;cursor:pointer}
#panelContent button:not(:disabled):hover{background:#46553c;border-color:#e3cb84;color:#fff9e8}
#panelContent button:focus-visible{outline:2px solid #f1d17a;outline-offset:3px}
#panelContent button:disabled{background:#252c28;color:#b5b9b2;border-color:#646e63;opacity:1;text-shadow:none;cursor:not-allowed}
#panelContent .auto-list button,#panelContent .mechanism-actions button{margin-top:8px}
@media(max-width:760px){#panelContent button{font-size:13px;padding:7px 10px}}
/* Original client: background + ornament/grid overlay + controls + interactive slots. */
.classic-ui-window{position:relative;width:100%;aspect-ratio:190/288;isolation:isolate;image-rendering:pixelated}
.classic-bag-window{aspect-ratio:207/289}
.classic-ui-layer{position:absolute;display:block;pointer-events:none;user-select:none;max-width:none;image-rendering:pixelated}
.classic-ui-window .classic-base{left:2.63%;top:3.125%;width:94.21%;height:95.49%;z-index:0}
.classic-bag-window .classic-base{left:3.86%;top:3.11%;width:92.27%;height:94.81%}
.classic-ui-window .classic-frame{inset:0;width:100%;height:100%;z-index:2}
.classic-ui-window .restored-grid{z-index:3;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:0}
.classic-ui-window .client-slot{padding:2px;box-sizing:border-box;min-height:0;overflow:hidden;border:0;border-radius:0;background:transparent;outline-offset:-2px}
.classic-ui-window .client-slot:hover{background:#e5c97820;box-shadow:inset 0 0 0 1px #dbc482}
.classic-ui-window .client-slot img{width:90%;height:90%;max-width:none;max-height:none;object-fit:contain;pointer-events:none}
.classic-ui-window .client-slot.equipped{box-shadow:inset 0 0 0 1px #d4bb7c}
.classic-ui-window .client-slot .equipped-dot{font-size:9px;color:#ffe9a0;text-shadow:1px 1px #000}
.classic-ui-window .restored-gear{z-index:3;box-sizing:border-box}
.classic-ui-window .restored-ac{z-index:3;margin:0;display:grid;place-items:center;font:14px Georgia;color:#f8e8b6}
.classic-stat-value{position:absolute;z-index:3;display:flex;align-items:center;justify-content:center;color:#f4e4bb;font:11px Georgia;white-space:nowrap;text-shadow:1px 1px #000}
.classic-scroll{position:absolute;z-index:4}.classic-scroll>img{position:absolute;width:100%;height:100%;pointer-events:none}
.classic-scroll button{position:absolute;left:18%;width:64%;height:6%;border:0;padding:0;cursor:pointer;image-rendering:pixelated;background:center/100% 100% no-repeat}
.classic-scroll-up{top:0;background-image:url('assets/original/ui/scroll-up.png')!important}.classic-scroll-down{bottom:0;background-image:url('assets/original/ui/scroll-down.png')!important}
.classic-scroll-up:active{background-image:url('assets/original/ui/scroll-up-pressed.png')!important}.classic-scroll-down:active{background-image:url('assets/original/ui/scroll-down-pressed.png')!important}
.classic-scroll button:disabled{opacity:.4;cursor:default}
.classic-equipment-tabs,.classic-spell-tabs{position:absolute;z-index:4;display:flex;background-size:100% 100%;background-repeat:no-repeat}
.classic-equipment-tabs>button,.classic-spell-tabs>button{width:25%;height:100%;padding:0;background:transparent;border:0;cursor:pointer}
.classic-equipment-tabs>button:hover,.classic-spell-tabs>button:not(:disabled):hover{outline:1px solid #d8c58c;outline-offset:-1px}
.classic-spell-tabs>button:disabled{opacity:.4;cursor:not-allowed;background:#0007}
.classic-bag-footer{position:absolute;z-index:4;display:flex;gap:4px;align-items:center;font-size:10px;color:#edda9a;white-space:nowrap}
.classic-bag-footer button{background:#172027bd;color:#eee2b6;border:1px solid #8e876a;padding:1px 4px;font-size:10px;line-height:1.2}
.classic-bag-footer>span:last-child{flex:1;text-align:right;overflow:hidden;text-overflow:ellipsis}
.classic-search-tools{display:flex;gap:4px;align-items:center;padding:5px 8px;border:1px solid #938565;background:#162022;color:#e5d6af;font-size:11px}
.classic-search-tools[hidden]{display:none}.classic-search-tools input{width:80%;min-width:0;background:#0c1419;color:#f4e4bb;border:1px solid #807b60;padding:3px}
#bagWindow .float-title,#equipmentWindow .float-title,#skillsWindow .float-title{top:5%;left:11%;right:6%;height:23px;z-index:5}
#bagWindow .float-title strong,#equipmentWindow .float-title strong,#skillsWindow .float-title strong{font-size:11px;color:#f0e3b9;text-shadow:1px 1px 2px #000,0 0 3px #000}
#bagWindow .float-title button,#equipmentWindow .float-title button,#skillsWindow .float-title button{width:16px;height:16px;color:transparent;border:0;background:url('assets/original/ui/close.png') center/100% 100% no-repeat}
#bagWindow .float-title button:active,#equipmentWindow .float-title button:active,#skillsWindow .float-title button:active{background-image:url('assets/original/ui/close-pressed.png')}
@media(max-width:760px){.classic-stat-value{font-size:9px}.classic-bag-footer,.classic-bag-footer button{font-size:8px}#bagWindow .float-title,#equipmentWindow .float-title,#skillsWindow .float-title{height:18px;top:4.7%}#bagWindow .float-title strong,#equipmentWindow .float-title strong,#skillsWindow .float-title strong{font-size:9px}.classic-ui-window .restored-ac{font-size:12px}}
.classic-bag-footer .classic-trash{border:0;padding:0;width:16px;height:18px;flex:0 0 16px;background:url('assets/original/ui/trash.png') center/contain no-repeat}
.classic-bag-footer .classic-trash:active{background-image:url('assets/original/ui/trash-pressed.png')}.classic-bag-footer .classic-trash:disabled{opacity:.4}
/* Correct original panel roles: inventory has category tabs; magic has SP/MR. */
.classic-bag-window{aspect-ratio:190/288}.classic-spell-window{aspect-ratio:207/289}
.classic-bag-window .classic-base{left:2.63%;top:3.125%;width:94.21%;height:95.49%}
.classic-spell-window .classic-base{left:3.86%;top:3.11%;width:92.27%;height:94.81%}
.classic-inventory-tabs{position:absolute;z-index:4;display:flex;background-size:100% 100%;background-repeat:no-repeat}
.classic-inventory-tabs>button{width:25%;height:100%;padding:0;background:transparent;border:0;cursor:pointer}
.classic-inventory-tabs>button:hover,.classic-inventory-tabs>button:focus-visible{outline:1px solid #e2ce91;outline-offset:-1px}
.classic-bag-footer{position:relative;min-height:22px;padding:2px 8px;background:#121b22e8;border:1px solid #807552;font-size:10px;box-sizing:border-box}
.classic-scroll button{left:0;width:100%;height:9%;background-size:65% 65%;background-position:center;background-repeat:no-repeat}
.classic-scroll button:disabled{opacity:.45;cursor:not-allowed}
.classic-book-label,.classic-book-value{position:absolute;z-index:4;display:grid;place-items:center;font:11px Georgia;color:#e8dfbe;text-shadow:1px 1px #000}
.classic-book-page{padding:3px 4px;background:#111a20e8;border:1px solid #817657;text-align:center;font-size:10px;color:#e6d7b0}
.classic-ui-window .restored-gear{padding:0;overflow:hidden}.classic-ui-window .restored-gear .client-slot{position:absolute;inset:0;margin:0;padding:1px;min-width:0;min-height:0;width:100%;height:100%;box-sizing:border-box}
.classic-ui-window .restored-gear img{display:block;max-width:100%;max-height:100%;margin:0;object-fit:contain}
@media(max-width:760px){.classic-book-label,.classic-book-value{font-size:9px}.classic-book-page{font-size:9px}}
/* Avoid percentage image sizing against an intrinsic CSS-grid track. */
.classic-ui-window .client-slot{display:flex;align-items:center;justify-content:center}
.classic-ui-window .client-slot img{flex:0 1 auto;min-width:0;min-height:0;align-self:center}
/* Desktop magic learning and source status displays. */
.classic-magic-tools{display:flex;gap:3px;padding:4px;background:#111c22ed;border:1px solid #817657}.classic-magic-tools button{flex:1;padding:4px 1px;background:#29352f;color:#e8dcb8;border:1px solid #7c795c;font-size:10px;cursor:pointer}.classic-magic-tools button[aria-pressed=true]{background:#57553c;border-color:#dfca83}
.classic-ui-window .client-slot.unlearned img{opacity:.3}.classic-ui-window .client-slot.unsupported img{filter:grayscale(1);opacity:.18}
.school-tabs{display:flex;gap:7px;margin:12px 0}.school-icon{width:30px;height:30px;object-fit:contain;image-rendering:pixelated;vertical-align:middle;margin-right:6px}.school-known{display:flex;gap:8px;align-items:center;padding:8px;border-bottom:1px solid #667257}.school-known>span{flex:1}.school-known small,.panel-table td>small{display:block;color:#aab69c;font-size:11px}.school-element{padding:10px;background:#243025;border:1px solid #7f835e}.school-element small{display:block;margin-top:6px;color:#c6c4a8}#schoolSearch{width:100%;padding:8px;background:#101d15;color:#f0e6c9;border:1px solid #8b8968;margin-bottom:10px}.school-tabs button[aria-pressed=true]{background:#566340!important;border-color:#e2d295!important}

.original-npc-dialog{white-space:pre-line;line-height:1.7}.original-npc-dialog button{margin:3px;padding:5px 9px;color:#f0e5c8;background:#343b2e;border:1px solid #8b815a}.original-npc-dialog button:disabled{color:#b0afa5;background:#252a23}

#clientTooltip button{background:#313a2c;color:#f5e9c9;border:1px solid #9b8d62;border-radius:2px;cursor:pointer}#clientTooltip button:hover{background:#4d593c}#clientTooltip button:disabled{color:#aaa89c;background:#242921;cursor:default}.hotbar .hotkey>img{object-fit:contain}.hotbar .hotkey>span[hidden],.hotbar .hotkey>img[hidden]{display:none}

.viewport.item-blind::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;background:radial-gradient(circle at 50% 45%,transparent 0px,rgba(0,0,0,.15) 85px,rgba(0,0,0,.98) 150px)}

#clientTooltip{max-height:calc(100vh - 24px);overflow:auto}

.test-hud-button[hidden]{display:none!important}.test-hud-button{color:#ffe3a0!important;border-color:#b49951!important}.test-tools h2 small{font-size:12px;color:#e9bd70}.test-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.test-controls section{border:1px solid #656b50;padding:12px}.test-tools small{display:block;font-size:11px;line-height:1.7;color:#c1c9ad}.test-tools input[type=number]{width:84px}.test-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.test-shop-filters{display:flex;gap:10px;flex-wrap:wrap}.test-shop-filters label{display:flex;flex-direction:column;gap:5px}.test-shop-table td:first-child{overflow-wrap:anywhere}.test-shop-table img{width:28px;height:28px;object-fit:contain;vertical-align:middle;margin-right:8px;image-rendering:pixelated}.test-result{background:#31472c;padding:10px;border-left:3px solid #dfc781}

body.lobby-phase>#viewport,body.lobby-phase>.hud,body.lobby-phase>.topbar,body.lobby-phase>.nearby-panel{visibility:hidden}body.lobby-phase #welcome::backdrop{background:#080d0b}

.hud-layout #loading[hidden]{display:none!important}

#targetEffects{display:flex;gap:3px;flex-wrap:wrap;margin-top:4px}.target-effect{display:flex;align-items:center;background:#101818d9;padding:2px;border:1px solid #8b825e}.target-effect img{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}.target-effect small{font-size:9px;color:#eee2b4}
.hud-layout .game-console{background:transparent;border:0;box-shadow:none;pointer-events:none;padding:0;height:68px;grid-template-rows:56px 4px;gap:6px}.hud-layout .game-console::before,.hud-layout .game-console::after{content:none}.hud-layout .hotbar{pointer-events:none}.hud-layout .hotbar .hotkey{pointer-events:auto;background:rgba(12,20,24,.42);border-color:rgba(187,169,119,.65);box-shadow:inset 0 0 6px #0005;opacity:1}.hud-layout .hotbar .hotkey:disabled{opacity:1}.hud-layout .hotbar .hotkey img{opacity:1}.hud-layout .hotbar .hotkey kbd{background:#10171370}.hud-layout .hotbar .hotkey:disabled kbd,.hud-layout .hotbar .hotkey:disabled b{color:#c3b995}.hud-layout #nearbyToggle{position:fixed;right:9px;top:319px;width:224px;height:27px;z-index:6;justify-content:space-between;background:rgba(25,34,40,.85);cursor:pointer}.hud-layout .nearby-panel{top:351px;max-height:calc(100dvh - 448px)}body.lobby-phase>#nearbyToggle{visibility:hidden}
#travelLoading.illustrated-loading{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#080c10;color:#f0e6cf;overflow:hidden;border-radius:0;box-shadow:none}#travelLoading.illustrated-loading::backdrop{background:#050708}.loading-art{position:absolute;inset:0;background:linear-gradient(180deg,#05080d22,transparent 45%,#05080dee),url('assets/art/aden-loading-v027.webp') center 45%/cover no-repeat}.loading-content{position:relative;width:100%;height:100%;text-align:center;display:flex;align-items:center;flex-direction:column;padding:10vh 24px 5vh;box-sizing:border-box}.loading-kicker{font:11px Georgia;letter-spacing:7px;color:#d1bd89;text-shadow:0 2px 6px #000}.loading-content h2{margin:12px 0 6px;font:clamp(32px,5vw,65px) 'PMingLiU','Noto Serif TC',serif;letter-spacing:.3em;color:#f0dfb8;text-shadow:0 2px 12px #000}.loading-subtitle{font-size:12px;letter-spacing:5px;color:#b5b7ae}.loading-bottom{margin-top:auto;width:min(650px,80vw);text-align:left}.loading-bottom>p:first-child{font-size:13px;color:#ddd4b8;letter-spacing:1px;margin-bottom:12px}.loading-meter{height:10px;border:1px solid #a18b51;background:#080c12dd;padding:2px;box-shadow:0 0 12px #000}.loading-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#76613b,#e3c789);box-shadow:0 0 9px #bda26499;transition:width .14s linear}.loading-caption{display:flex;justify-content:space-between;color:#c4b68c;font-size:10px;letter-spacing:1px;margin:8px 0}.loading-bottom small{font-size:10px;color:#93978f}.loading-content p{max-width:none}.illustrated-loading:focus{outline:none}
@media(min-width:761px) and (max-height:610px){.hud-layout #nearbyToggle{top:319px}.hud-layout .nearby-panel{top:351px;max-height:calc(100dvh - 425px)}}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hud-layout #welcome{width:fit-content;max-width:100vw;max-height:100dvh;padding:12px 18px;border:1px solid #685b3d;border-radius:0;background:#080c0b;overflow:auto;color:#e9d9aa}.native-lobby-wrapper>h2{font:18px 'PMingLiU',serif;letter-spacing:6px;text-align:center;margin:4px 0 9px;color:#e4d4a2}.native-lobby{position:relative;width:min(900px,92vw,calc((100dvh - 132px)*1.333333));aspect-ratio:4/3;container-type:inline-size;background-size:100% 100%;background-repeat:no-repeat;image-rendering:pixelated}.native-selection{background-image:url('assets/original/lobby/105c.png')}.native-creator{background-image:url('assets/original/lobby/1748c.png')}.native-slot,.native-reserved{position:absolute;padding:0;border:0;border-radius:0;background:transparent;color:#dbca9e;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;font-size:1.875cqw}.native-slot:hover:not(:disabled){filter:none;background:#d6bc6320}.native-slot.selected{box-shadow:inset 0 0 13px #d0b77c66}.native-slot .native-model{width:100%;height:95%;object-fit:contain;position:absolute;bottom:0;left:0;mix-blend-mode:screen;pointer-events:none}.native-slot>b,.native-slot>small{position:relative;z-index:1;text-shadow:0 2px 4px #000,0 0 5px #000;background:#080b09a8;padding:2px 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.native-slot small{font-size:1.5cqw}.native-slot>span{font-size:2cqw;color:#bba56e;margin-bottom:8px}.native-reserved{opacity:.55;pointer-events:none;padding-bottom:12px}.native-reserved small{font-size:1.5cqw}.native-value{position:absolute;display:flex;align-items:center;justify-content:center;color:#f0e5c8;font:1.9cqw Georgia,'PMingLiU',serif;white-space:nowrap;text-shadow:1px 1px #000}.native-mr{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:1.5cqw;color:#c1b58f}.native-mr>b{color:#e8e4d8;font:2.3cqw Georgia}.native-empty{position:absolute;text-align:center;font-size:2cqw;color:#bba87e}.native-lobby-controls{display:flex;gap:24px;justify-content:center;height:29px;margin-top:8px}.native-img-button{position:absolute;border:0;background:none;padding:0;box-shadow:none;border-radius:0}.native-img-button>img{width:100%;height:100%;image-rendering:pixelated;display:block}.native-img-button:hover:not(:disabled){filter:brightness(1.25)}.native-lobby-controls>.native-img-button{position:relative!important;inset:auto!important;width:107px!important;height:27px!important}.native-message{margin:5px 0;min-height:1.3em;text-align:center;color:#dfb989;font-size:12px}.native-note{display:block;max-width:850px;text-align:center;color:#a69d80;font-size:10px;line-height:1.6;margin-top:7px}.native-create-model{position:absolute;object-fit:contain;mix-blend-mode:screen;pointer-events:none}.native-class-picker{position:absolute;display:grid;grid-template-columns:1fr 1fr;gap:3%}.native-class-picker button{position:relative;border:1px solid transparent;background:transparent;padding:0;color:#cbbd97;min-height:0}.native-class-picker button[aria-pressed=true]{border-color:#bfa06488;background:#a18b4d18}.native-class-picker img{position:absolute;inset:0;width:100%;height:80%;object-fit:contain;mix-blend-mode:screen;pointer-events:none}.native-class-picker span{position:absolute;bottom:0;left:0;right:0;font-size:1.65cqw}.native-sex-picker{position:absolute;display:flex;justify-content:space-evenly;gap:12px}.native-sex-picker button{border:1px solid transparent;background:transparent;display:flex;align-items:center;gap:2px;padding:0;font-size:1.6cqw;color:#c7b88a;min-width:0}.native-sex-picker button[aria-pressed=true]{border-color:#d2b15b66}.native-sex-picker img{width:40%;height:100%;object-fit:contain;mix-blend-mode:screen}.native-birth{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;font-size:1.6cqw;color:#c9b995}.native-bonuses{position:absolute;overflow:auto;scrollbar-width:thin;color:#d8c9a2;font-size:1.65cqw}.native-bonuses>div{display:flex;justify-content:space-between;gap:5px;min-height:15%;align-items:center;padding:1px 5px}.native-bonuses b{font-weight:400;color:#d5d9c5;white-space:nowrap}.native-stat-change{position:absolute;border:0;background:#070b07ba;color:#d8c996;font:1.65cqw Georgia;line-height:1;padding:0;box-shadow:inset 0 0 1px #d6c28e}.native-stat-change:disabled{opacity:.25}.native-name-input{position:absolute;min-width:0;width:auto;padding:0 3px;border:0;background:transparent;color:#f1e7ce;font-size:1.9cqw;text-align:center;border-radius:0;outline-offset:1px}.native-name-input:focus{outline:1px solid #c9af73}.native-lobby input::placeholder{color:#bba984}
.utility-float{position:fixed;left:10px;top:150px;width:240px;max-height:calc(100dvh - 255px);z-index:13;background:rgba(17,25,27,.94);border:2px ridge #a4946b;color:#e1d3ad;box-shadow:0 4px 12px #0008;display:flex;flex-direction:column;font-size:11px}.utility-float[hidden]{display:none!important}.utility-float>header{display:flex;align-items:center;justify-content:space-between;padding:5px 8px;background:#222d2e;border-bottom:1px solid #8c805d;cursor:move;touch-action:none}.utility-float>header button{padding:0 5px;background:#151d1c;border:1px solid #a29266;color:#dfcc98}.utility-body{padding:8px;overflow:auto;scrollbar-width:thin;min-height:0}.utility-body button{background:#283329;border:1px solid #8a7b51;color:#e5d2a0;padding:3px 6px;font-size:11px}.utility-body p{line-height:1.7;margin:4px 0 9px}.utility-body small{font-size:10px;color:#adae9c;line-height:1.6}.poly-choice{display:flex;justify-content:space-between;gap:5px;align-items:center;border-bottom:1px solid #64735a55;padding:7px 0}.poly-choice span{min-width:0}.poly-choice b,.poly-choice small{display:block}.poly-choice b{font-weight:400}.poly-choice.poly-elite b{color:#ffe47e;font-weight:700;text-shadow:0 0 5px #b28c3644}.poly-choice.poly-elite small{color:#f8dca0}.poly-choice[data-poly-level="52"] b{color:#fff1b0}.hunt-actions{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:9px}.hunt-loot{display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-bottom:1px solid #48573c55;gap:6px}.hunt-loot span{display:flex;align-items:center;gap:5px}.hunt-loot img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}.hunt-loot b{white-space:nowrap;color:#ead3a2}.auto-supply-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;overflow:auto;gap:6px;margin:12px 0}.auto-supply-options label{display:flex;gap:5px;align-items:center;font-size:11px}body.lobby-phase>.utility-float{visibility:hidden}
.hud-layout #welcome .native-slot{background:transparent;border:0;box-shadow:none;border-radius:0}.hud-layout #welcome .native-slot.selected{outline:1px solid #d2b672;outline-offset:-4px;box-shadow:inset 0 0 14px #d0b77c33}.hud-layout #welcome .native-class-picker button,.hud-layout #welcome .native-sex-picker button,.hud-layout #welcome .native-img-button{background:transparent;border-radius:0;box-shadow:none}.hud-layout #welcome .native-class-picker button[aria-pressed=true]{background:#a18b4d18;border:1px solid #bfa06488}.native-lobby{width:min(900px,92vw,calc((100dvh - 172px)*1.333333))}

#quickTravelWindow{left:auto;right:245px;top:100px;width:236px;max-height:calc(100dvh - 210px)}.quick-destination{display:block;width:100%;text-align:left;margin:6px 0;padding:9px!important}.quick-travel-notice{color:#efb38c!important}.utility-body h3{font-size:12px;color:#e8d29b;margin:14px 0 7px}

#quickTravelWindow{left:10px;right:auto;top:150px;width:212px;max-width:calc(100vw - 20px);max-height:min(420px,calc(100dvh - 215px))}#quickTravelWindow>header{flex:none;cursor:default}#quickTravelWindow>.utility-body{padding:5px;overflow-y:auto;min-height:0;overscroll-behavior:contain}#quickTravelWindow .quick-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:7px 6px;margin:2px 0;color:#eed7a2;background:#27302d}#quickTravelWindow .quick-destination{display:flex;flex-direction:column;gap:3px;width:100%;margin:2px 0;padding:6px 8px!important;font-size:11px;background:#18231f}#quickTravelWindow .quick-destination small{color:#e1bd66;font-size:10px}.quick-travel-notice:empty{display:none}#quickTravelWindow [hidden]{display:none!important}

.sound-volume{display:flex;gap:6px;align-items:center;font-size:11px;color:#d9cc9b}.sound-volume input{width:85px}

#regionName[data-zone=safe]{color:#b8dbba}#regionName[data-zone=combat]{color:#f0a18e}#regionName[data-zone=normal]{color:#e2d4ad}

#pvpToggle{display:inline-flex;align-items:center;gap:4px;min-height:33px;padding:0 7px!important}#pvpToggle img{width:35px;height:28px;object-fit:contain;image-rendering:pixelated;opacity:1}#pvpToggle[aria-pressed=true]{border-color:#d06e62;color:#f0b0a4}#pvpToggle[aria-pressed=false]{color:#d2bce5}

img,canvas{-webkit-user-drag:none}#viewport{user-select:none}

body.hud-layout,body.hud-layout button,body.hud-layout a,body.hud-layout select,body.hud-layout summary,body.hud-layout #viewport{cursor:url('assets/ui/cursor-hand.svg?v=0.36') 12 2,pointer!important}body.hud-layout[data-pvp-enabled=true] #viewport,body.hud-layout #viewport[data-combat-hover=true]{cursor:url('assets/ui/cursor-sword.svg') 4 3,crosshair!important}body.hud-layout input:not([type=range]):not([type=checkbox]),body.hud-layout textarea{cursor:text!important}.client-float>header,.utility-float>header{cursor:move}

.hud-layout .hotbar .hotkey.item-shortcut>small{font-size:11px}

#regionName .zone-combat{color:#ff6969}#regionName .zone-normal{color:#fff}#regionName .zone-safe{color:#80dfff}

body.hud-layout #game{cursor:inherit!important}
#npcDialogueWindow{position:fixed;left:22px;top:126px;width:334.6px;height:443.8px;z-index:45;filter:drop-shadow(3px 4px 5px #0009);color:#e5dfc7;font:15px/1.65 "Microsoft JhengHei",sans-serif}#npcDialogueWindow[hidden]{display:none}.npc-original-frame{position:relative;width:100%;height:100%;background:url('./assets/original/ui/npc-1969.png') 0 0/100% 100% no-repeat}.npc-original-frame:before{content:'';position:absolute;left:8.4px;top:12.6px;width:317.8px;height:425.6px;background:url('./assets/original/ui/npc-1968.png') 0 0/100% 100%;z-index:-1}.npc-original-frame header{position:absolute;left:16px;top:0;width:285px;height:42px;cursor:move}.npc-original-frame button{border:0;border-radius:0;box-shadow:none;min-width:0;min-height:0;padding:0;background-color:transparent}.npc-close{position:absolute;left:308px;top:14px;width:24px;height:26px;background:url('./assets/original/ui/npc-1962.png') center/11.2px 11.2px no-repeat}.npc-close:active{background-image:url('./assets/original/ui/npc-1963.png')}.npc-text{position:absolute;left:25.2px;top:50.4px;width:271.6px;height:350px;overflow:auto;scrollbar-width:none;white-space:normal}.npc-text::-webkit-scrollbar{display:none}.npc-text h2{font-size:16px;color:#f2d690;margin:0 0 12px}.npc-text .original-npc-dialog{white-space:pre-wrap}.npc-text button{color:#9ed286;font:inherit;text-align:left;display:block;cursor:pointer;margin:5px 0}.npc-text button:hover{color:#f4df95;text-decoration:underline}.npc-text button:disabled{color:#8b8a78;cursor:default}.npc-text small{font-size:12px}.npc-text hr{border:0;border-top:1px solid #81765b55}.npc-up,.npc-down{position:absolute;left:303.8px;width:16.8px;height:19.6px;background-size:100% 100%}.npc-up{top:51.8px;background-image:url('./assets/original/ui/npc-2042.png')}.npc-up:active{background-image:url('./assets/original/ui/npc-2043.png')}.npc-down{top:385px;background-image:url('./assets/original/ui/npc-2040.png')}.npc-down:active{background-image:url('./assets/original/ui/npc-2041.png')}.npc-track{position:absolute;left:303.8px;top:71.4px;width:16.8px;height:313.6px;background:url('./assets/original/ui/npc-1970.png') 0 0/100% 100%}.npc-thumb{position:absolute;left:0;top:0;width:15.4px;height:22.4px;background:url('./assets/original/ui/npc-2044.png') 0 0/100% 100%;touch-action:none}.npc-thumb:active{background-image:url('./assets/original/ui/npc-2045.png')}
.batch-item-cell{position:relative;min-width:0;min-height:0}.batch-item-cell>.client-slot{width:100%;height:100%}.batch-item-cell>input{position:absolute;left:2px;top:2px;width:17px;height:17px;z-index:4;accent-color:#e2c165;cursor:pointer}.batch-delete-toolbar{display:flex;justify-content:center;gap:5px;padding:3px}.batch-delete-toolbar button{background:#26352b;color:#f2e2b3;border:1px solid #8e815d;font-size:11px;padding:3px 6px}#autoDeleteWindow{left:26px;top:120px;width:330px;height:420px;max-height:calc(100vh - 140px);z-index:46}#autoDeleteWindow .utility-body{overflow-y:auto;height:calc(100% - 32px)}.enchant-selecting .client-slot{cursor:url('./assets/ui/cursor-sword.svg') 4 3,pointer!important}.enchant-selecting #bagWindow .float-title:after{content:'選取強化目標（Esc取消）';font-size:10px;color:#f4d779;margin-left:5px}
@media(min-width:761px){.hud-layout .battle-journal{width:360px;height:218px}.hud-layout.log-collapsed .battle-journal{height:33px}.hud-layout .game-console{width:calc(100% - 380px)}}.battle-journal{overflow:visible}.chat-compose select{max-width:62px;font-size:11px;color:#f1e6c8;background:#233329;border:1px solid #827657}.chat-compose #whisperTarget{flex:0 1 78px;width:78px}.chat-compose [hidden]{display:none!important}#chatFilterOptions{position:absolute;left:0;bottom:100%;width:205px;padding:10px;background:#15231bf5;border:2px ridge #9c8c62;box-shadow:2px 3px 8px #0008;z-index:55;display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:12px;color:#efdfb6}#chatFilterOptions[hidden]{display:none}#chatFilterOptions strong{grid-column:1/-1}#chatFilterOptions label{display:flex;gap:5px;align-items:center}#chatFilterOptions input{accent-color:#d2ba73}#bagWindow .float-body{overflow-y:auto}
#automationWindow{position:fixed;z-index:44;box-sizing:border-box;background:#142019f2;color:#e7ddbe;border:2px ridge #9c8e65;box-shadow:3px 4px 9px #0009;display:flex;flex-direction:column;overflow:hidden;font:12px/1.5 'Microsoft JhengHei',sans-serif;backdrop-filter:none;filter:none}#automationWindow[hidden]{display:none}#automationWindow>header{flex:0 0 28px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;background:linear-gradient(#444737,#1e2a21);border-bottom:1px solid #8b8060;cursor:move;user-select:none;touch-action:none}#automationWindow>header button{border:0;background:none;color:#eddfb8;font-size:20px;line-height:22px;padding:0 3px}.automation-window-body{flex:1;min-height:0;overflow-y:auto;padding:10px;overscroll-behavior:contain;scrollbar-color:#a29368 #17221c}.automation-window-body>h2{display:none}.automation-window-body h3{font-size:13px;margin:12px 0 7px}.automation-window-body p,.automation-window-body small,.automation-window-body label{font-size:12px;line-height:1.6}.automation-window-body p{margin:6px 0}.automation-window-body label{display:block;margin:5px 0}.automation-window-body .auto-columns{display:block}.automation-window-body .auto-list{padding:9px;margin:8px 0;border:1px solid #6d7657}.automation-window-body .auto-supply-options{display:grid;grid-template-columns:1fr 1fr;gap:2px}.automation-window-body .auto-supply-options label{font-size:11px}.automation-window-body button{background:#334631;border:1px solid #8c8b63;color:#f0e5c7;padding:4px 7px;font-size:12px}.automation-window-body button:disabled{opacity:.45}.automation-window-body input,.automation-window-body select{color:#f2e8ca;background:#1b2d21;border:1px solid #7d8060;max-width:100%;box-sizing:border-box}.automation-window-body input[type=number]{width:58px}.automation-window-body input[type=checkbox]{accent-color:#c8b36b}.automation-window-body select{width:100%;padding:4px}.automation-window-body .mechanism-actions{display:flex;gap:6px;flex-wrap:wrap}.automation-window-body .mechanism-note{color:#c2c2a5}
#characterTitleWindow{left:30px;top:120px;width:340px;height:300px;z-index:48;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}#characterTitleWindow[hidden]{display:none}#characterTitleWindow .utility-body{overflow-y:auto;min-height:0;padding:10px}#characterTitleWindow input{width:100%;box-sizing:border-box;background:#17271e;color:#eee3c4;border:1px solid #867c58;padding:6px}.title-colors{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.title-colors button{border:2px solid #5c684d;color:#eee6d0;background:#243126;padding:4px 7px;font-size:12px}.title-colors button:before{content:'';display:inline-block;width:10px;height:10px;background:var(--title-swatch);border:1px solid #bdb597;margin-right:4px}.title-colors button[aria-pressed=true]{border-color:#ffe19b;background:#44543c}.title-preview{padding:8px;background:#34433b;text-align:center;font-weight:bold;text-shadow:-1px 0 #000,1px 0 #000,0 -1px #000,0 1px #000}.title-is-black{text-shadow:-1px 0 #f1edd9,1px 0 #f1edd9,0 -1px #f1edd9,0 1px #f1edd9!important}.title-result{min-height:20px;color:#ead89f;font-size:12px}

/* Desktop eight-slot / three-page hotbar and larger chat. */
.hud-layout .hotbar{grid-template-columns:repeat(8,minmax(0,1fr));max-width:none;gap:5px}.hotbar-pages{position:absolute;right:0;top:-27px;display:flex;gap:3px;pointer-events:auto}.hotbar-pages button{min-width:29px;height:23px;padding:1px 8px;color:#e2d5ac;background:#15201c99;border:1px solid #9b8b65}.hotbar-pages button[aria-pressed=true]{background:#807149;color:#fff4d1}
@media(min-width:761px){.hud-layout .battle-journal{width:min(440px,44vw);height:270px}.hud-layout .game-console{left:auto;right:10px;transform:none;width:min(660px,calc(100vw - 480px))}.hud-layout .hotbar .hotkey{min-width:0}.hud-layout .battle-journal #log{flex:1;min-height:0;overflow:auto}.hud-layout .battle-journal .chat-compose,.hud-layout .battle-journal .log-tabs{flex:none}.hud-layout.log-collapsed .battle-journal{height:33px}}

.gold-readout .gold-icon{width:16px;height:16px;object-fit:contain;vertical-align:middle;image-rendering:pixelated}

/* Revised desktop HUD placement. */
.hero-readout>.experience-track{width:100%;height:6px;margin-top:4px}.hero-readout>.experience-track span{font-size:8px;top:-1px}.hero-portrait>img{position:static!important;display:block;width:32px!important;height:32px!important;object-fit:contain!important;filter:none!important;margin:10px auto 0}.hero-portrait{display:block}.top-ribbon #newGame{margin-left:auto;order:100}.top-ribbon #hudMenu{order:90}
.battle-journal .log-tabs{flex-wrap:wrap;gap:3px}.battle-journal .log-tabs #logSearch{position:static;display:block;flex:0 1 112px;width:112px;min-width:85px;height:20px;max-height:20px;margin:0 0 0 auto;padding:2px 4px;font-size:10px;order:100;border:1px solid #6e7159;background:#111c19;color:#e6ddc3}
@media(min-width:761px){.hud-layout .game-console{right:55px;grid-template-rows:56px;height:61px;bottom:8px}.hud-layout .hotbar-pages{right:auto;left:-47px;top:0;flex-direction:column;gap:2px}.hud-layout .hotbar-pages button{height:18px;min-height:18px;min-width:28px;padding:0 6px;margin:0}.hud-layout .hero-readout .vital-bars{height:25px}.hud-layout .log-tabs #activity{display:none}}

.hud-layout .touch-combat{transform:translateY(-18px)}.hud-layout .touch-combat #touchAttack{width:70px;height:70px;font-size:25px}


.native-lobby .native-model{mix-blend-mode:normal!important}

/* Keep page controls close to the chat edge as the viewport changes. */
@media(min-width:761px){.hud-layout .game-console{left:calc(min(440px,44vw) + 60px);right:auto;width:min(660px,calc(100vw - min(440px,44vw) - 70px))}}
.hud-layout .hero-portrait{border:0!important;background:none!important;box-shadow:none!important;padding:0}
.hud-layout .hero-portrait>img{margin-top:4px}
.hud-layout .hero-portrait>span{background:none}

/* Keep character action labels readable against native browser defaults. */
.character-sheet button:not([data-bonus-attr]){background:#303b2d;color:#fff1bd;border:1px solid #a99058;font:600 14px "Microsoft JhengHei",sans-serif;padding:6px 12px;min-height:30px}.character-sheet button:not([data-bonus-attr]):disabled{background:#242b25;color:#aeb49f;border-color:#616852;opacity:1}

/* Float headers must retain a positioned hit area above the original artwork. */
.client-float{isolation:isolate;max-height:calc(100dvh - 104px)}
.client-float .float-title{user-select:none;-webkit-user-select:none;touch-action:none;pointer-events:auto;z-index:20}
#bagWindow .float-title,#equipmentWindow .float-title,#skillsWindow .float-title{position:absolute;top:5%;left:11%;right:6%;height:25px;padding:0;z-index:20}
#statusWindow .float-title,#warehouseWindow .float-title{position:relative;inset:auto;height:30px;flex:none}
#statusWindow,#warehouseWindow{display:flex;flex-direction:column}
#statusWindow .float-body,#warehouseWindow .float-body{flex:1;min-height:0;height:auto;overflow-y:auto;overscroll-behavior:contain}
#bagWindow .float-body,#equipmentWindow .float-body,#skillsWindow .float-body{max-height:calc(100dvh - 104px);overflow-y:auto;overscroll-behavior:contain}

/* Three chat heights keep controls fixed and let only the history scroll. */
.hud-layout:not(.log-collapsed) .battle-journal[data-chat-height]:not(.log-folded),.online-classic #chat[data-chat-height]:not(.log-folded){height:min(var(--chat-height,270px),calc(100dvh - 110px));display:flex;flex-direction:column}
.battle-journal[data-chat-height] .log-tabs,.battle-journal[data-chat-height] .chat-compose{flex:none}
.battle-journal[data-chat-height] #log,.battle-journal[data-chat-height] #messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.battle-journal #chatHeight{padding:2px 5px;white-space:nowrap;font-size:10px;color:#f3e2af;background:#29382c;border:1px solid #8b805d;cursor:pointer}

/* Native lobby artwork with crisp text and resolution-independent action buttons. */
.native-selection>.native-value,.native-selection>.native-mr{display:none}
.native-info{position:absolute;left:3.7%;right:3.7%;top:60.3%;height:34.5%;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:3%;padding:2.3% 2.4%;background:linear-gradient(110deg,#141811,#22251a,#141811);border:1px solid #8d7d50;box-shadow:inset 0 0 12px #0009;color:#eee6d2;font-family:'Microsoft JhengHei',sans-serif;font-size:clamp(10px,1.8cqw,14px);line-height:1.5}
.native-info-identity{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}
.native-info-identity strong{font-size:clamp(11px,2.3cqw,18px);color:#efda9c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-info-identity>span{color:#d3c8ac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.native-info-vitals{display:flex;flex-direction:column;justify-content:space-evenly;gap:2px}
.native-info-vitals>div,.native-info-stats>div{display:flex;justify-content:space-between;gap:4px;border-bottom:1px solid #96805033;white-space:nowrap}
.native-info-vitals span,.native-info-stats span{color:#c3b38d}
.native-info-vitals b,.native-info-stats b{font-weight:500;font-variant-numeric:tabular-nums;color:#f2e8ce}
.native-info-stats{display:grid;grid-template-columns:1fr;align-content:center;gap:1px;font-size:clamp(9px,1.65cqw,13px);line-height:1.35}
.native-img-button{display:flex;align-items:center;justify-content:center;border:1px solid #a38c57!important;background:linear-gradient(#414130,#20271e 48%,#171d16)!important;box-shadow:inset 0 0 0 2px #171d15,inset 0 0 0 3px #655a3a,0 2px 5px #0008!important;color:#f1dc9f!important;cursor:pointer;overflow:hidden}
.native-img-button>.native-button-label{font:600 clamp(10px,1.7cqw,16px) 'Microsoft JhengHei',sans-serif;white-space:nowrap;letter-spacing:1px;padding:1px 4px;text-shadow:0 1px 2px #000;line-height:1.2}
.native-img-button:hover:not(:disabled){filter:none;background:linear-gradient(#666044,#303926,#20271b)!important;border-color:#f0d68d!important}
.native-img-button:active:not(:disabled){box-shadow:inset 0 2px 6px #000a!important}
.native-img-button:disabled{opacity:.38;cursor:default;filter:grayscale(.5)}
.native-lobby-controls{height:40px;gap:16px;margin-top:8px}
.native-lobby-controls>.native-img-button{width:148px!important;height:40px!important}
.native-lobby-controls .native-button-label{font-size:15px;letter-spacing:3px}

.native-class-picker{grid-template-rows:repeat(3,minmax(0,1fr))}.native-class-picker button[data-create-class="darkelf"]{grid-column:1/-1}.native-class-picker button[data-create-class="darkelf"] img{left:18%;width:30%;height:100%}.native-class-picker button[data-create-class="darkelf"] span{left:48%;bottom:30%;width:auto}
