html[data-mobile=true],html[data-mobile=true] body{width:100%;height:100%;min-height:100%;margin:0;padding:0;overflow:hidden;overscroll-behavior:none}#app[data-mobile=true]{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;margin:0;border:0;overflow:hidden;background:#000;--mobile-left:max(16px,calc(env(safe-area-inset-left) + 4px));--mobile-right:max(20px,calc(env(safe-area-inset-right) + 4px));--mobile-top:max(6px,calc(env(safe-area-inset-top) + 2px));--mobile-bottom:max(12px,calc(env(safe-area-inset-bottom) + 4px));--mobile-chat-left:var(--mobile-left);--mobile-chat-top:calc(var(--mobile-top) + 126px);--mobile-chat-width:min(240px,28.8vw);font-family:'Microsoft JhengHei',sans-serif}#app[data-mobile=true] #viewport{width:100%;height:100%;min-height:0}#app[data-mobile=true] :is(#game-header,#game-hud){display:none!important}#app[data-mobile=true] #world{touch-action:none}#mobile-ui{position:absolute;inset:0;pointer-events:none;z-index:10}#mobile-ui[hidden]{display:none!important}#mobile-ui button,#mobile-ui input,#mobile-ui select{pointer-events:auto}#app[data-mobile=true] #world-vitals{top:var(--mobile-top);left:var(--mobile-left);z-index:11}#app[data-mobile=true] .vitals-view-tools{display:none!important}#app[data-mobile=true] #buffs{left:var(--mobile-left);right:auto;top:calc(var(--mobile-top) + 64px);justify-content:start;gap:3px;max-height:58px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;z-index:12;pointer-events:auto}#app[data-mobile=true] #buffs .buff{width:26px;height:26px;min-height:26px;flex-basis:26px;border-color:#a08b60;background:#060a0caa}#app[data-mobile=true] #buffs .buff img{max-width:24px;max-height:24px}#app[data-mobile=true] #buffs .buff span{font-size:9px}#app[data-mobile=true] #buff-inspection{font-size:14px;max-width:min(300px,80vw);z-index:92}#app[data-mobile=true] #world-clock{top:var(--mobile-top);font-size:13px}#app[data-mobile=true] #resource-loading{top:calc(var(--mobile-top) + 24px);font-size:11px}#app[data-mobile=true] #drop-notices{left:calc(var(--mobile-left) + 138px);top:auto;bottom:calc(var(--mobile-bottom) + 52px);width:min(224px,36vw);max-height:min(128px,max(26px,calc(100% - var(--mobile-bottom) - 52px - var(--mobile-chat-top) - 124px)));gap:2px;overflow:hidden;justify-content:flex-end}#app[data-mobile=true] .drop-notice{min-height:26px;padding:2px;font-size:12px;gap:6px}#app[data-mobile=true] .drop-icon{flex-basis:20px;width:20px;height:20px}#app[data-mobile=true] .drop-icon img{max-width:18px;max-height:18px}#app[data-mobile=true] #siege-clock{font-size:16px}#app[data-mobile=true] #feature-menu-open{top:var(--mobile-top);right:var(--mobile-right);width:44px;height:44px;min-height:44px;padding:9px;z-index:71}#app[data-mobile=true] #feature-menu{top:calc(var(--mobile-top) + 52px);right:var(--mobile-right);width:min(440px,calc(100vw - var(--mobile-left) - var(--mobile-right)));max-height:calc(100% - var(--mobile-top) - 62px);overflow:auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 4px;padding:12px;z-index:70;background:linear-gradient(160deg,#111b20f5,#111410ed);border:1px solid #9e8758;box-shadow:0 6px 18px #0008;pointer-events:auto;scrollbar-color:#af965c #111714;scrollbar-width:thin}#app[data-mobile=true] #feature-menu .feature-tile{width:100%;min-width:0;height:64px;min-height:48px;gap:5px;font-size:14px;color:#f0e6ce}#app[data-mobile=true] #feature-menu .feature-tile:is(:active,[aria-pressed=true]){background:#b0944a35;border-radius:5px}#app[data-mobile=true] #feature-menu .feature-tile :is(img,svg){width:27px;height:27px;flex:none;color:#d9c58d}#app[data-mobile=true] #feature-menu .feature-tile span{white-space:normal;line-height:1.2;text-align:center}#app[data-mobile=true] #conversation{position:absolute;left:var(--mobile-chat-left);top:var(--mobile-chat-top);bottom:auto;width:var(--mobile-chat-width);height:116px;max-height:none;margin:0;padding:0;border:0;background:linear-gradient(90deg,#05090e80,#05090e20 85%,transparent);box-shadow:none;display:flex;flex-direction:column;z-index:10;pointer-events:auto;--chat-growth:0px}#app[data-mobile=true] #conversation[hidden]{display:none}#mobile-chat-toggle{position:absolute;left:0;top:0;width:44px;height:44px;min-height:44px;padding:11px;border:1px solid #b49c5e80;border-radius:5px;background:#08101499;color:#e8d499;z-index:11;touch-action:manipulation}#mobile-chat-toggle[aria-expanded=false]{left:var(--mobile-left);top:var(--mobile-chat-top)}#mobile-chat-toggle svg{width:22px;height:22px}#mobile-chat-toggle:is(:hover,:focus){background:#08101499;border-color:#b49c5e80;color:#e8d499}#mobile-chat-toggle:focus:not(:focus-visible){outline:0}#mobile-chat-toggle:active{transform:translateY(1px);background:#2c3123b0}#app[data-mobile=true] #conversation::before,#app[data-mobile=true] #conversation::after{display:none}#app[data-mobile=true] #messages{position:relative;inset:auto;flex:0 0 78px;height:78px;min-height:0;max-height:78px;margin:0;padding:3px 5px 3px 48px;overflow-y:auto;font-size:12px;line-height:18px;color:#f2eddf;text-shadow:1px 1px 2px #000;scrollbar-width:none;pointer-events:auto}#app[data-mobile=true] #messages p{margin:0;white-space:normal;overflow-wrap:anywhere}#app[data-mobile=true] #chat-form{position:relative;inset:auto;display:grid;flex:0 0 38px;grid-template-columns:64px minmax(0,1fr) 36px;height:38px;gap:3px;padding:2px 0;margin:0;background:none;border:0;pointer-events:auto}#app[data-mobile=true] #mobile-ui[data-chat-mode=compact] #conversation{height:44px}#app[data-mobile=true] #mobile-ui[data-chat-mode=compact] #messages{flex-basis:42px;height:42px;max-height:42px}#app[data-mobile=true] #mobile-ui[data-chat-mode=compact] :is(#chat-form,#chat-filter){display:none}#app[data-mobile=true] #chat-form :is(input,select){height:34px;font-size:16px;padding:3px 5px;border-color:#927e534d;background:#08101480;color:#e8e5da;min-width:0}#app[data-mobile=true] #chat{width:100%}#app[data-mobile=true] #chat-channel{width:64px}#app[data-mobile=true] #chat-filter{position:absolute;right:0;top:-24px;display:flex;gap:3px;align-items:center;z-index:2}#app[data-mobile=true] #chat-filter .chat-filter-row{display:flex;gap:3px}#app[data-mobile=true] #chat-filter .chat-filter-row[hidden]{display:none}#app[data-mobile=true] #chat-filter button{width:24px;height:22px;min-height:22px;min-width:24px;padding:3px;background:#08101480;border:1px solid #927e536b;color:#ddcea5}#app[data-mobile=true] #chat-filter svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}#app[data-mobile=true] #send{width:36px;height:34px;min-height:34px;background:#0b131a90;border-color:#927e536b}#app[data-mobile=true] #chat-expand{display:none}#app[data-mobile=true] #minimap-section{position:absolute;left:auto;top:calc(var(--mobile-top) + 54px);right:var(--mobile-right);bottom:auto;width:140px;height:120px;min-height:0;padding:6px 4px 2px;margin:0;background:#0610168c;border:1px solid #ad946f7a;border-radius:4px;display:flex;align-items:center;flex-direction:column;gap:2px;z-index:9;pointer-events:auto;opacity:.86}#app[data-mobile=true] #minimap-section::before,#app[data-mobile=true] #minimap-section::after{display:none}#app[data-mobile=true] #minimap{display:block!important;width:130px;height:82px;max-width:100%;border:0}#app[data-mobile=true] :is(#map-label,#map-coordinates){display:block!important;font-size:10px;line-height:12px;text-shadow:1px 1px 2px #000;text-align:center;color:#eadfbf}#app[data-mobile=true] :is(#mini-extra,#mini-social){display:none!important}#app[data-mobile=true] #minimap-section.mobile-map-closed{display:none}#app[data-mobile=true] #mobile-minimap-close{position:absolute;right:-8px;top:-8px;width:36px;height:36px;min-height:36px;padding:8px;background:#091118d9;border:1px solid #aa946d;border-radius:50%;color:#e2d3aa}#mobile-joystick{position:absolute;left:calc(var(--mobile-left) + 14px);bottom:calc(var(--mobile-bottom) + 19px);width:116px;height:116px;min-height:116px;border:1px solid #b5a16b85;border-radius:50%;padding:0;background:radial-gradient(circle,#afbdc321 0 33%,#080e174d 34% 65%,#a89b671f 66% 68%,#0910183b 69%);box-shadow:inset 0 0 0 5px #02050b38,0 2px 8px #0003;touch-action:none;pointer-events:auto;user-select:none;-webkit-user-select:none}#mobile-joystick>svg{position:absolute;width:85px;height:85px;opacity:.27;color:#e7e0cf;pointer-events:none}.mobile-joystick-thumb{width:44px;height:44px;border:1px solid #d3c28e99;border-radius:50%;background:radial-gradient(circle at 35% 25%,#b2c4c1a6,#536b738c 60%,#102531bb);box-shadow:0 3px 6px #0007,inset 0 1px 3px #fff7;pointer-events:none}#mobile-attack{position:absolute;right:calc(var(--mobile-right) + 16px);bottom:calc(var(--mobile-bottom) + max(36.4px,4.667vw) + 8px);width:88px;height:88px;min-height:88px;padding:12px;border:2px solid #b8a16dba;border-radius:50%;background:radial-gradient(circle at 45% 35%,#555c5670,#111b26aa 64%,#091018cc);box-shadow:inset 0 0 0 4px #080b104f,0 3px 8px #0006;touch-action:none;user-select:none;-webkit-user-select:none}#mobile-attack img{width:60px;height:60px;object-fit:contain;transform:scaleX(-1);filter:brightness(0) invert(1) drop-shadow(0 1px 1px #0009);pointer-events:none}#mobile-attack.pressed{transform:scale(.95);background:radial-gradient(circle,#b8995644,#090e17d9);box-shadow:inset 0 3px 10px #000b}#mobile-quick-dock{position:absolute;left:154px;right:128px;bottom:var(--mobile-bottom);display:flex;align-items:flex-end;justify-content:center;gap:7px;pointer-events:none}#app[data-mobile=true] #quick-slots{display:grid;grid-template-columns:repeat(8,44px);grid-template-rows:none;grid-auto-rows:44px;gap:4px;padding:0;margin:0;width:max-content;height:auto;min-height:0;border:0;background:none;pointer-events:auto}#app[data-mobile=true] #quick-slots .slot{position:relative;width:44px;height:44px;min-height:44px;padding:3px;border:1px solid #b49c5eaa;border-radius:5px;background:linear-gradient(145deg,#343d3d7d,#070e12b8);box-shadow:inset 0 0 0 2px #0206095c;touch-action:none}#app[data-mobile=true] #quick-slots .slot:active{transform:translateY(2px);background:#7b6c3d99}#app[data-mobile=true] #quick-slots .slot img{max-width:36px;max-height:36px;image-rendering:pixelated}#app[data-mobile=true] #quick-slots .key{display:none}#app[data-mobile=true] #quick-slots .count{font-size:11px;color:#fff1b9;text-shadow:1px 1px #000}#mobile-quick-page{flex:none;position:relative;width:36px;height:44px;min-height:44px;padding:6px 3px;background:#09111899;border:1px solid #b49c5e8c;border-radius:4px;color:#e8d499;touch-action:manipulation}#mobile-quick-page svg{width:16px;height:16px}#mobile-quick-page span{position:absolute;bottom:2px;right:5px;font-size:11px}#app[data-mobile=true] :is(#inventory-grid,#skills-grid) .slot{touch-action:none}#mobile-shortcut-drag{position:fixed;transform:translate(-50%,-50%);width:48px;height:48px;z-index:1000;display:grid;place-items:center;border:1px solid #e6c376;border-radius:5px;background:#0b151bcc;box-shadow:0 2px 8px #0008;pointer-events:none}#mobile-shortcut-drag img{max-width:40px;max-height:40px;image-rendering:pixelated}#app[data-mobile=true].mobile-binding #quick-slots .slot{border-color:#f0ce78;box-shadow:0 0 6px #e9be6655}#app[data-mobile=true] #quick-slots .mobile-drop-target{background:#a3803fbd;box-shadow:0 0 0 2px #f1d38a}#app[data-mobile=true] #mobile-social-window{width:300px;height:250px;z-index:28;overflow:hidden}#app[data-mobile=true] #mobile-social-window #vitals{border:0;background:none;padding:8px;min-height:0}#app[data-mobile=true] #mobile-social-window #social-grid{min-height:120px}#app[data-mobile=true] #social-tabs .icon{width:44px;height:40px;min-height:40px}#app[data-mobile=true] .game-window{max-width:calc(100% - var(--mobile-left) - var(--mobile-right));max-height:calc(100% - 94px);font-size:14px;overscroll-behavior:contain}#app[data-mobile=true] .game-window .window-title{min-height:34px}#app[data-mobile=true] .game-window .window-title :is(h2,.window-caption){font-size:17px}#app[data-mobile=true] .game-window .window-title button{min-width:36px;min-height:34px}#app[data-mobile=true] :is(#inventory-window,#skills-window){width:230px;top:8px!important}#app[data-mobile=true] :is(#inventory-grid,#skills-grid){grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:44px}#app[data-mobile=true] :is(#inventory-grid,#skills-grid) .slot{width:44px;height:44px;min-height:44px}#app[data-mobile=true] #function-settings{overflow-y:auto;overflow-x:hidden}#app[data-mobile=true] #function-settings label{min-height:32px;font-size:14px}#app[data-mobile=true] :is(input,textarea,select){font-size:16px}#app[data-mobile=true] #inspection{max-width:min(320px,calc(100% - 16px));max-height:calc(100% - 110px);font-size:14px;overflow:auto;z-index:65}#app[data-mobile=true] #notice{bottom:145px;left:148px;right:130px;text-align:center;font-size:12px}#app[data-mobile=true] #server-marquees{top:72px;max-width:55%;left:50%;transform:translateX(-50%);font-size:17px}#app[data-mobile=true] #viewport:has(.game-window:not([hidden]),.system-layer:not([hidden]),#feature-menu:not([hidden])) :is(#mobile-joystick,#mobile-attack){visibility:hidden}#app[data-mobile=true] #viewport:has(.system-layer:not([hidden]),#helper-window:not([hidden])) #mobile-quick-dock{visibility:hidden}#app[data-mobile=true].mobile-typing :is(#mobile-joystick,#mobile-attack,#mobile-quick-dock,#minimap-section){visibility:hidden}#app[data-mobile=true].mobile-typing #conversation:focus-within{left:var(--mobile-left);right:var(--mobile-right);top:auto;bottom:var(--mobile-bottom);width:auto;height:116px}#mobile-orientation{display:none}@media(max-width:740px){#app[data-mobile=true] #drop-notices{bottom:calc(var(--mobile-bottom) + 96px);max-height:min(128px,max(26px,calc(100% - var(--mobile-bottom) - 96px - var(--mobile-chat-top) - 124px)))}#app[data-mobile=true] #quick-slots{grid-template-columns:repeat(4,44px)}#app[data-mobile=true]{--mobile-chat-width:176px}#app[data-mobile=true] #conversation{font-size:12px}#app[data-mobile=true] #feature-menu{width:min(390px,calc(100vw - 24px));grid-template-columns:repeat(5,minmax(0,1fr))}#app[data-mobile=true] #feature-menu .feature-tile{font-size:13px;height:56px}}@media(max-height:400px){#app[data-mobile=true]{--mobile-chat-top:calc(var(--mobile-top) + 96px)}#app[data-mobile=true] #buffs{max-height:29px}}@media(max-height:360px){#app[data-mobile=true] #buffs{max-width:124px}#app[data-mobile=true] #mobile-ui[data-chat-mode=full]{--mobile-chat-left:calc(var(--mobile-left) + 132px);--mobile-chat-top:calc(var(--mobile-top) + 64px);--mobile-chat-width:min(164.8px,calc((100vw - var(--mobile-left) - var(--mobile-right) - 310px)*.8))}}@media(orientation:portrait){#app[data-mobile=true] #mobile-orientation{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#050b12ec;color:#e9d7a5;z-index:90;font-size:20px;pointer-events:auto}#app[data-mobile=true] #mobile-orientation svg{width:54px;height:54px;transform:rotate(90deg)}#app[data-mobile=true] :is(#mobile-joystick,#mobile-attack){visibility:hidden}}