body.mobile-mode{overflow:hidden;overscroll-behavior:none;--icon:44px;--edge:6px;--panel:min(33vw,340px);--edge-t:calc(var(--edge) + var(--safe-t));--edge-r:calc(var(--edge) + var(--safe-r));--edge-b:calc(var(--edge) + var(--safe-b));--edge-l:calc(var(--edge) + var(--safe-l));--dialog-gap-x:calc(var(--edge-l) + var(--edge-r));--dialog-gap-y:calc(var(--edge-t) + var(--edge-b))}body.mobile-mode>header,body.mobile-mode .field-footer,body.mobile-mode .own-armour,body.mobile-mode #scene-name{display:none}body.mobile-mode main#game-shell{position:fixed;inset:0;height:100vh;height:100dvh;width:100vw;padding:0;margin:0;max-width:none}body.mobile-mode .workspace{display:block;height:100%;position:relative}body.mobile-mode .field{position:absolute;inset:0;border:0;border-radius:0}body.mobile-mode .canvas-wrap{position:absolute;inset:0;height:100%;min-height:0}body.mobile-mode .vitals-bar{position:fixed;top:var(--edge-t);left:calc(var(--icon) + var(--edge) + var(--edge-l));z-index:var(--z-local-5);display:flex;flex-direction:column;gap:var(--ui-space-2xs);width:150px;margin:0;padding:0}body.mobile-mode .vitals-bar .vital-meter{height:17px;min-height:0;font-size:var(--ui-fs-xs);line-height:17px;padding:0 var(--ui-space-sm)}body.mobile-mode .vitals-bar .vital-meter .vital-word{display:none}body.mobile-mode #target-hud{position:fixed;top:calc(var(--edge-t) + 62px);left:calc(var(--icon) + var(--edge) + var(--edge-l));z-index:var(--z-local-5);font-size:var(--ui-fs-sm);padding:var(--ui-space-2xs) var(--ui-space-sm);max-width:200px}body.mobile-mode #target-hud button{padding:var(--ui-space-xs) var(--ui-space-sm);font-size:var(--ui-fs-xs);min-height:28px}body.mobile-mode aside{display:contents}body.mobile-mode .navigation-dock{position:fixed;top:var(--edge-t);right:calc(var(--icon) + var(--edge) + var(--edge-r));z-index:var(--z-local-5);width:var(--mini-w);margin:0;padding:0;border-radius:var(--ui-radius-sm);overflow:hidden}body.mobile-mode .navigation-dock .minimap-panel>div:first-child{display:flex;gap:var(--ui-space-2xs);padding:var(--ui-space-2xs)}body.mobile-mode .navigation-dock button{min-height:30px;padding:var(--ui-space-2xs) var(--ui-space-xs);font-size:var(--ui-fs-xs)}body.mobile-mode.map-collapsed .navigation-dock :is(#minimap,.map-legend){display:none}body.mobile-mode .commandbar,body.mobile-mode .abilities-bar{position:fixed;left:var(--edge-l);z-index:var(--z-local-5);display:flex;gap:var(--ui-space-sm);padding:0;margin:0;background:none;border:0}body.mobile-mode .commandbar{bottom:calc(var(--edge-b) + 52px)}body.mobile-mode .abilities-bar{bottom:var(--edge-b)}body.mobile-mode .commandbar button,body.mobile-mode .abilities-bar button{min-height:44px;font-size:var(--ui-fs-md);padding:var(--ui-space-sm) var(--ui-space-md);background:color-mix(in srgb,var(--ui-surface-2) 90%,transparent)}body.mobile-mode .abilities-bar .focus-track,body.mobile-mode .abilities-bar #special-energy{display:none}body.mobile-mode .mobile-controls{bottom:var(--edge-b);right:calc(var(--icon) + var(--edge) + var(--edge-r))}body.mobile-mode .kit-panel{position:fixed;top:var(--edge-t);bottom:var(--edge-b);right:calc(var(--icon) + var(--edge) + var(--edge-r));width:var(--panel);z-index:var(--z-hud-bar);margin:0;padding:var(--ui-space-md);background:transparent;border:0}body.mobile-mode .kit-panel>*:not(.kit-tabs){visibility:hidden}body.mobile-mode.panel-open .kit-panel{background:color-mix(in srgb,var(--ui-surface-1) 95%,transparent);border:var(--ui-border) solid var(--ui-line);border-radius:var(--ui-radius-md)}body.mobile-mode.panel-open .kit-panel>*:not(.kit-tabs){visibility:visible}body.mobile-mode .kit-panel .section-title{margin:0 0 var(--ui-space-sm);padding-right:calc(2 * var(--ui-space-xl) + var(--ui-space-md))}body.mobile-mode .kit-panel .dock-content{font-size:var(--ui-fs-num)}body.mobile-mode .kit-panel .inventory-grid{max-width:100%}body.mobile-mode .kit-tabs{position:fixed;top:var(--edge-t);right:var(--edge-r);bottom:var(--edge-b);z-index:var(--z-notice);display:flex;flex-direction:column;gap:var(--ui-space-2xs);width:var(--icon);margin:0;overflow-y:auto;scrollbar-width:none}body.mobile-mode .kit-tabs button{width:var(--icon);height:var(--icon);min-height:var(--icon);flex:none;padding:0;font-size:0;border-radius:var(--ui-radius-md);background:color-mix(in srgb,var(--ui-surface-2) 90%,transparent);display:flex;align-items:center;justify-content:center}body.mobile-mode .kit-tabs button kbd,body.mobile-mode .kit-tabs button[hidden]{display:none}body.mobile-mode .mobile-combat-toggle{position:fixed;top:var(--edge-t);right:calc(var(--icon) + var(--edge) + var(--edge-r) + var(--mini-w) + 38px);z-index:var(--z-hud);width:30px;height:30px;padding:0;font-size:var(--ui-fs-num);border-radius:var(--ui-radius-sm);background:color-mix(in srgb,var(--ui-surface-2) 90%,transparent)}body.mobile-mode.panel-open .kit-tabs:not([data-panel-shown=false]) button.active{border-color:var(--ui-accent);background:var(--ui-accent-bg)}body.mobile-mode .chat-panel{position:fixed;top:var(--edge-t);left:var(--edge-l);z-index:var(--z-hud-bar);width:var(--icon);height:var(--icon);padding:0;border:0;background:none;overflow:visible}body.mobile-mode .chat-panel .chat-content{display:none}body.mobile-mode.chat-open .chat-panel{width:var(--hud-ph-chat-open-w);height:min(55vh,300px);height:min(55dvh,300px)}body.mobile-mode.chat-open .chat-panel .chat-content{display:flex;flex-direction:column;position:absolute;top:calc(var(--icon) + 4px);left:0;right:0;bottom:0;background:color-mix(in srgb,var(--ui-surface-1) 95%,transparent);border:var(--ui-border) solid var(--ui-line);border-radius:var(--ui-radius-md);padding:var(--ui-space-sm)}body.mobile-mode.chat-open #chat-history{flex:1;height:auto;font-size:var(--ui-fs-lg)}body.mobile-mode .chat-panel .chat-filters,body.mobile-mode .chat-panel [role=tablist]{display:none}body.mobile-mode .mobile-chat-toggle{position:absolute;top:0;left:0;width:var(--icon);height:var(--icon);padding:0;font-size:var(--ui-fs-h2);border-radius:var(--ui-radius-md);background:color-mix(in srgb,var(--ui-surface-2) 90%,transparent)}body.mobile-mode .mobile-chat-toggle[data-unread]:after{content:attr(data-unread);position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 var(--ui-space-2xs);border-radius:var(--ui-radius-md);background:var(--ui-danger);color:var(--ui-ink);font:700 var(--ui-fs-xs)/var(--ui-fs-title) var(--ui-font);text-align:center}body.mobile-mode .mobile-map-toggle{position:fixed;top:var(--edge-t);right:calc(var(--icon) + var(--edge) + var(--edge-r) + var(--mini-w) + 4px);z-index:var(--z-hud);width:30px;height:30px;padding:0;font-size:var(--ui-fs-lg);border-radius:var(--ui-radius-sm);background:color-mix(in srgb,var(--ui-surface-2) 90%,transparent)}.mobile-rotate-hint{display:none}@media(orientation:portrait){body.mobile-mode .mobile-rotate-hint{display:flex;flex-direction:column;position:fixed;inset:0;z-index:var(--z-menu);justify-content:center;align-items:center;gap:var(--ui-space-lg);padding:calc(1 * var(--ui-space-xl) + var(--ui-space-md));background:var(--ui-surface-0);color:var(--ui-text);font-size:var(--ui-fs-h3);text-align:center}body.mobile-mode .mobile-rotate-hint .rotation-lock{font-size:var(--ui-fs-num);color:var(--pal-chat-command-hint-text);max-width:300px}body.mobile-mode .rotate-phone{width:46px;height:78px;border:var(--ui-border-chosen) solid var(--ui-accent);border-radius:var(--ui-radius-md);animation:rotate-phone 2.4s ease-in-out infinite}}@keyframes rotate-phone{0%{transform:rotate(0)}25%{transform:rotate(0)}50%{transform:rotate(-90deg)}85%{transform:rotate(-90deg)}to{transform:rotate(0)}}body.mobile-mode .world-menu button,body.mobile-mode .item-menu button{min-height:44px;font-size:var(--ui-fs-num)}body.mobile-mode .item-menu[data-opened-by=touch]{min-width:0;width:max-content;max-width:min(240px,calc(100vw - 16px));padding:var(--ui-space-2xs)}body.mobile-mode .item-menu[data-opened-by=touch] button{width:100%;min-height:44px;height:44px;padding:0 var(--ui-space-lg);font-size:var(--ui-fs-lg);line-height:1.15}body.mobile-mode .item-menu[data-opened-by=touch] .item-menu-name{padding:var(--ui-space-2xs) var(--ui-space-lg) 0;font-size:var(--ui-fs-sm);line-height:16px}body.mobile-mode .world-menu[data-opened-by=touch] .menu-actor{padding:var(--ui-space-2xs) var(--ui-space-lg) 0;font-size:var(--ui-fs-sm)}body.mobile-mode .item-menu[data-opened-by=touch] button img{width:18px;height:18px;margin-right:var(--ui-space-sm)}body.mobile-mode .service-window{position:fixed;inset:var(--edge-t) calc(var(--icon) + var(--edge) + var(--edge-r)) var(--edge-b) var(--edge-l);max-height:none;overflow:auto;z-index:var(--z-panel)}body.mobile-mode .kit-tabs [data-kit-tab=settings]{position:fixed;left:var(--edge-l);top:calc(var(--edge-t) + var(--icon) + 6px)}body.mobile-mode .kit-tabs [data-kit-tab=settings]{z-index:var(--z-control)}body.mobile-mode.chat-open .kit-tabs [data-kit-tab=settings]{top:auto;bottom:calc(var(--edge-b) + 34px)}body.mobile-mode .home-screen-hint{display:flex;gap:var(--ui-space-md);align-items:center;padding:var(--ui-space-md) var(--ui-space-md);background:color-mix(in srgb,var(--ui-surface-1) 95%,transparent);border:var(--ui-border) solid var(--ui-accent);border-radius:var(--ui-radius-md);font-size:var(--ui-fs-lg);color:var(--ui-text)}body.mobile-mode .home-screen-hint button{min-width:36px;min-height:36px;padding:0}body.mobile-mode{touch-action:manipulation}body.mobile-mode #minimap{touch-action:none}body.mobile-mode{--mini-w:176px;--mini-h:146px}body.mobile-mode #open-world-map{font-weight:700;font-size:var(--ui-fs-md);padding:var(--ui-space-2xs) var(--ui-space-md);margin-left:auto}body.mobile-mode #world-map{width:calc(100vw - var(--dialog-gap-x));max-width:none;height:calc(100vh - var(--dialog-gap-y));height:calc(100dvh - var(--dialog-gap-y));max-height:none;padding:var(--ui-space-md);flex-direction:column}body.mobile-mode #world-map[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,30%);grid-template-rows:auto auto minmax(0,1fr);gap:0 var(--ui-space-md)}body.mobile-mode #world-map[open]>.section-title{grid-column:1/-1}body.mobile-mode #world-map[open]>#world-map-canvas{grid-column:1;grid-row:2/4;height:100%}body.mobile-mode #world-map[open]>#map-selection{grid-column:2;grid-row:2}body.mobile-mode #world-map[open]>.map-legend{grid-column:2;grid-row:3;overflow:auto;align-content:start;min-height:0}body.mobile-mode #world-map-canvas{flex:1;min-height:0;height:auto;max-height:none;aspect-ratio:auto;width:100%}body.mobile-mode #world-map .map-description{display:none}body.mobile-mode #world-map>.subtle,body.mobile-mode #world-map #map-region{display:none}body.mobile-mode #world-map .section-title{margin:0 0 var(--ui-space-xs);min-height:0}body.mobile-mode #world-map .section-title h3{font-size:var(--ui-fs-num);margin:0}body.mobile-mode #world-map #close-world-map{min-height:36px;padding:var(--ui-space-xs) var(--ui-space-lg)}body.mobile-mode #world-map .map-legend{font-size:var(--ui-fs-xs);gap:var(--ui-space-2xs) var(--ui-space-md);flex:none}body.mobile-mode #world-map #map-selection{font-size:var(--ui-fs-sm);margin:var(--ui-space-2xs) 0}body.mobile-mode #game-menu-actions .arena-toolbar{display:grid}body.mobile-mode #game-menu-actions #logout-account{order:-1;grid-column:1/-1;min-height:44px;margin-right:calc(2 * var(--ui-space-xl) + var(--ui-space-lg));font-size:var(--ui-fs-num);font-weight:700;border-color:var(--ui-danger);background:var(--ui-danger-bg)}body.mobile-mode .layout-settings label:has(#layout-chat),body.mobile-mode .layout-settings label:has(#layout-panel){display:none}body.mobile-mode .kit-tabs button .tab-icon{width:24px;height:24px;margin:0}body.mobile-mode .kit-tabs button[style*=--tab-colour]{border-left-width:var(--ui-border)}body.mobile-mode dialog[open]{position:fixed;inset:var(--edge-t) var(--edge-r) var(--edge-b) var(--edge-l);margin:auto;max-width:calc(100vw - var(--dialog-gap-x));max-height:calc(100vh - var(--dialog-gap-y));max-height:calc(100dvh - var(--dialog-gap-y));box-sizing:border-box}body.mobile-mode .trade-dialog[open]{width:calc(100vw - var(--dialog-gap-x));height:auto}body.mobile-mode #crafting-panel{position:fixed;top:var(--edge-t);left:var(--edge-l);right:auto;bottom:var(--hud-menu-bottom,var(--edge-b));width:min(420px,50vw);max-height:none;z-index:var(--z-panel);background:var(--ui-surface-sunk)}body.mobile-mode #talk-panel{position:fixed;top:var(--hud-menu-top,var(--edge-t));right:var(--edge-r);bottom:calc(var(--edge-b) + var(--hud-ph-jump) + var(--ui-space-md));left:auto;width:45vw}body.mobile-mode .armour-strip{display:flex;gap:var(--ui-space-xs);align-items:center;height:16px;margin:0;padding:0 var(--ui-space-2xs);border:var(--ui-border) solid var(--ui-line);border-radius:var(--ui-radius-xs);background:color-mix(in srgb,var(--ui-surface-0) 85%,transparent);cursor:pointer;font:700 var(--ui-fs-badge)/1 var(--ui-font);color:var(--ui-text)}body.mobile-mode .armour-strip-part{flex:1;display:flex;align-items:center;gap:var(--ui-space-2xs);min-width:0;border-radius:var(--ui-radius-xs)}body.mobile-mode .armour-strip-part b{width:7px;text-align:center}body.mobile-mode .armour-strip-track{flex:1;height:6px;border:var(--ui-border) solid var(--pal-armour-strip-track-line);border-radius:var(--ui-radius-xs);overflow:hidden;background:color-mix(in srgb,var(--ui-scrim) 76%,transparent)}body.mobile-mode .armour-strip-fill{display:block;height:100%}body.mobile-mode .armour-strip-part.none .armour-strip-track{border-style:dashed;background:transparent}body.mobile-mode .armour-strip-part em{display:none;font-style:normal;font-size:var(--ui-fs-badge)}body.mobile-mode .armour-strip.show-percent .armour-strip-part em{display:inline}body.mobile-mode .armour-strip.show-percent .armour-strip-track{display:none}body.mobile-mode .armour-strip-part.hit{animation:armour-hit 1s ease-out}@keyframes armour-hit{0%,40%{background:color-mix(in srgb,var(--ui-hostile) 80%,transparent);box-shadow:0 0 0 var(--ui-border-active) var(--ui-hostile)}to{background:transparent;box-shadow:none}}body.mobile-mode.chat-open.chat-see-through .chat-panel .chat-content{background:color-mix(in srgb,var(--ui-scrim) 57%,transparent);border-color:color-mix(in srgb,var(--ui-line) 40%,transparent)}body.mobile-mode.chat-open.chat-see-through .chat-panel :is(#chat-history,#chat-filters,.chat-heading){text-shadow:var(--ui-text-shadow-world)}body.mobile-mode.chat-open.chat-see-through #chat-history p{background:transparent}body.mobile-mode .phone-logout{display:flex;align-items:center;justify-content:center;position:fixed;left:var(--edge-l);bottom:calc(var(--edge-b) + 34px);width:var(--icon);height:var(--icon);padding:0;z-index:var(--z-control);border-radius:50%}body.mobile-mode .phone-logout .door-icon{width:20px;height:20px}body.mobile-mode.chat-open .kit-tabs [data-kit-tab=settings]{left:calc(var(--edge-l) + var(--icon) + 6px)}body.mobile-mode .kit-tabs button[data-kit-tab]{background:radial-gradient(circle at 30% 25%,var(--ui-text-faint),var(--pal-button-bg-2) 60%,var(--ui-line-field));border-color:var(--ui-line-subtle)}body.mobile-mode.panel-open .kit-tabs:not([data-panel-shown=false]) button[data-kit-tab].active{background:radial-gradient(circle at 30% 25%,var(--pal-button-active-bg-3),var(--pal-button-active-bg-4) 60%,var(--pal-button-active-bg-5));border-color:var(--ui-line-subtle)}body.mobile-mode .mobile-chat-toggle[data-unread]:after{box-shadow:0 0 0 var(--ui-border) var(--ui-pressed-bg)}body.mobile-mode .state-button{width:40px;height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--ui-space-2xs);padding:0;font-size:var(--ui-fs-num);line-height:1;border-radius:var(--ui-radius-md);background:radial-gradient(circle at 30% 25%,var(--ui-text-faint),var(--pal-button-bg-2) 60%,var(--ui-line-field));border:var(--ui-border) solid var(--ui-line-subtle);color:var(--ui-text)}body.mobile-mode .mobile-map-toggle{right:calc(var(--icon) + var(--edge) + var(--edge-r) + var(--mini-w) + 4px)}body.mobile-mode .mobile-combat-toggle{right:calc(var(--icon) + var(--edge) + var(--edge-r) + var(--mini-w) + 48px)}body.mobile-mode .state-dots{display:flex;gap:var(--ui-space-2xs)}body.mobile-mode .state-dots i{width:5px;height:5px;border-radius:50%;background:var(--ui-pressed-bg);box-shadow:inset 0 0 0 var(--ui-border) var(--ui-text-muted)}body.mobile-mode .state-dots i.on{background:var(--actor-npc);box-shadow:none}body.mobile-mode .state-button{background:var(--ui-surface-1);border-color:var(--ui-line)}body.mobile-mode .state-dots{gap:var(--ui-border)}body.mobile-mode .state-dots i{width:var(--ui-space-sm);height:var(--ui-space-2xs);border-radius:var(--ui-radius-xs);background:var(--ui-text-faint);box-shadow:none}body.mobile-mode .state-dots i.on{background:var(--ui-accent-line)}body.mobile-mode.panel-open .kit-tabs:not([data-panel-shown=false]) button[data-kit-tab].active>kbd{display:block;position:absolute;top:var(--ui-space-xs);right:var(--ui-space-xs);width:var(--ui-space-sm);height:var(--ui-space-sm);font-size:0;opacity:1;padding:0;background:none;box-shadow:none;border-radius:0;color:var(--ui-gold-bright);border:solid currentColor;border-width:0 var(--ui-border-active) var(--ui-border-active) 0;transform:rotate(45deg);pointer-events:none}body.mobile-mode.tabs-pvp .kit-tabs button:is([data-kit-tab=skills],[data-kit-tab=armoury],[data-kit-tab=quests],[data-kit-tab=world],[data-kit-tab=social]){display:none}body.mobile-mode.tabs-hidden .kit-tabs button:not([data-kit-tab=settings]){display:none}body.mobile-mode #phone-toast{z-index:var(--z-toast);padding:var(--ui-space-sm) var(--ui-space-lg);border-radius:var(--ui-radius-md);background:color-mix(in srgb,var(--ui-surface-0) 93%,transparent);border:var(--ui-border) solid var(--ui-line);color:var(--ui-text);font:600 var(--ui-fs-md) var(--ui-font);text-align:center}body.mobile-mode #phone-toast[hidden]{display:none}body.mobile-mode .menu-subtabs{flex-wrap:nowrap;margin-right:calc(2 * var(--ui-space-xl) + var(--ui-space-lg))}body.mobile-mode .menu-subtabs button{flex:1 1 0;min-width:0;min-height:44px;padding:0;display:flex;align-items:center;justify-content:center}body.mobile-mode .menu-subtabs button span{display:none}body.mobile-mode .menu-subtabs button svg{width:20px;height:20px}body.mobile-mode .graphics-notice{z-index:var(--z-toast-top);font-size:var(--ui-fs-lg)}body.mobile-mode .graphics-notice button{min-height:44px;min-width:44px;font-size:var(--ui-fs-num);flex:none}
