html:not(.mobile-hud) .mobile-only {display:none!important}
.chat-toggle-label {font-weight:inherit}
.mobile-hud #world-hud {
  --hud-left:max(6px,env(safe-area-inset-left));--hud-right:max(6px,env(safe-area-inset-right));
  --hud-top:max(6px,env(safe-area-inset-top));--hud-bottom:max(6px,env(safe-area-inset-bottom));
  --action-bottom:calc(var(--hud-bottom) + 47px);
}
.mobile-hud #world-hud .hud-status-stack {top:var(--hud-top);left:var(--hud-left);gap:4px}
.mobile-hud #world-hud #player-status,.mobile-hud #world-hud #combat-panel {
  box-sizing:border-box;width:clamp(144px,38vw,175px);padding:3px 6px 5px;
}
.mobile-hud #world-hud #player-status header,.mobile-hud #world-hud .target-heading {gap:1px}
.mobile-hud #world-hud #open-status {flex:1;min-width:0;gap:3px}
.mobile-hud #world-hud .hud-level {flex:none;width:26px;height:26px}
.mobile-hud #world-hud #hud-name,.mobile-hud #world-hud #target-name {font-size:14px}
.mobile-hud #world-hud #player-status header {margin:0;padding:0;border:0}
.mobile-hud #world-hud .hud-fold {flex:none;width:34px;min-height:38px;padding:0;border:0;background:none;box-shadow:none;color:#e2c99b;font-size:15px}
.mobile-hud #world-hud:not(.show-status) #hud-exp {display:none}
.mobile-hud #world-hud:not(.show-status) .vital {height:10px;font-size:9px}
.mobile-hud #world-hud .hud-status-stack #combat-panel {position:static;transform:none}
.mobile-hud #world-hud .target-heading {position:relative;min-height:40px}
.mobile-hud #world-hud .target-heading h2 {flex:1;min-width:0;margin-right:16px}
.mobile-hud #world-hud .target-heading .hud-fold {position:absolute;inset:0 38px 0 0;width:auto;text-align:right;padding-right:4px}
.mobile-hud #world-hud #combat-panel #clear-target {width:38px;min-height:40px;padding:0;background:none;border:0;box-shadow:none}
.mobile-hud #world-hud:not(.show-target) #combat-panel :is(#target-health,#talk-npc,#attack-npc,#invite-player,#trade-player,#whisper-player,#assist-player,#block-player,#invite-alliance) {display:none}
.mobile-hud #world-hud #target-health-bar {height:5px;margin:0}
.mobile-hud #world-hud.show-target #combat-panel>button {min-height:40px}
.mobile-hud #world-hud:not(.show-effects) #hud-effects {display:none}
.mobile-hud #world-hud #hud-effects {min-height:32px}
.mobile-hud #world-hud #hud-radar {top:calc(var(--hud-top) + 47px);right:var(--hud-right);padding:2px}
.mobile-hud #world-hud #hud-radar button {min-height:38px;min-width:38px}
.mobile-hud main.in-world #world-ui-toggle {min-height:42px}
.mobile-hud #world-hud .mobile-tools {position:absolute;right:var(--hud-right);bottom:var(--hud-bottom);display:flex;gap:4px;pointer-events:auto}
.mobile-hud #world-hud .mobile-tools button,.mobile-hud #world-hud #hud-chat-toggle {
  min-height:42px;padding:5px 12px;background:linear-gradient(#363a34f5,#171d1cf5);border-color:#817659;
}
.mobile-hud #world-hud .mobile-tools span {color:#d5bc8a;margin-left:2px}
.mobile-hud #world-hud #action-bar {
  left:50%;bottom:var(--action-bottom);box-sizing:border-box;max-width:calc(100% - var(--hud-left) - var(--hud-right));padding:3px;
}
.mobile-hud #world-hud .action-slots {min-width:0}
.mobile-hud #world-hud .action-slot {width:clamp(36px,11vw,45px);min-width:0;height:44px}
.mobile-hud #world-hud .action-art {max-width:100%}
.mobile-hud #world-hud .bar-tools .action-edit {display:none}
.mobile-hud #world-hud .action-page {min-width:40px}
.mobile-hud #world-hud .action-slot {-webkit-touch-callout:none;user-select:none}
.mobile-hud #world-hud:not(.show-bar) #action-bar,.mobile-hud #world-hud:not(.show-dock) .hud-dock {display:none}
.mobile-hud #world-hud .hud-dock {right:var(--hud-right);bottom:var(--action-bottom);padding:3px}
.mobile-hud #world-hud.show-bar .hud-dock {bottom:calc(var(--action-bottom) + 56px)}
.mobile-hud #world-hud #chat-panel:has(#chat-content[hidden]) {bottom:var(--hud-bottom);left:var(--hud-left);padding:0;border:0;box-shadow:none}
.mobile-hud #world-hud #chat-panel:not(:has(#chat-content[hidden])) {
  box-sizing:border-box;left:var(--hud-left);bottom:var(--hud-bottom);width:min(410px,calc(100% - var(--hud-left) - var(--hud-right)));
  max-height:70dvh;overflow:auto;padding:4px 6px 6px;background:linear-gradient(#232925f5,#101617fa);
}
.mobile-hud #world-hud #chat-panel:has(#chat-content:not([hidden])) #hud-chat-toggle {
  position:absolute;top:3px;right:5px;left:auto;display:grid;place-items:center;
  box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;
  padding:0;text-align:center;font-size:24px;line-height:1;
}
.mobile-hud #world-hud #hud-chat-toggle[aria-expanded=true] span {display:none}
.mobile-hud #world-hud .chat-views {min-height:44px;padding:0 54px 0 0}
.mobile-hud #world-hud .chat-views button {min-height:38px}
.mobile-hud #world-hud :is(#chat-log,#combat-log) {height:clamp(38px,8dvh,74px);margin:3px 0}
.mobile-hud #sent-chat-picker summary {padding:6px 0;color:#e8d6af;cursor:pointer}
.mobile-hud #sent-chat-picker div {display:grid;gap:3px;max-height:22dvh;overflow:auto}
.mobile-hud #world-hud #sent-chat-picker button {min-height:38px;text-align:left;overflow-wrap:anywhere}
.mobile-hud #world-hud #chat-reply:not([hidden]) {min-height:38px;max-width:100%;margin-block:2px 4px;overflow-wrap:anywhere}
.mobile-hud #world-hud #chat-panel #chat-form {display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:3px}
.mobile-hud #world-hud #chat-form :is(input,select) {box-sizing:border-box;width:100%;min-width:0;min-height:38px}
.mobile-hud #world-hud #chat-form:has(#chat-target:not([hidden])) #chat-target,.mobile-hud #world-hud #chat-form:has(#chat-target:not([hidden])) #chat-text {grid-column:span 2}
.mobile-hud #world-hud:has(#chat-content:not([hidden])) :is(.mobile-tools,.hud-dock,#action-bar) {display:none}
.mobile-hud #world-hud #hud-notice {bottom:var(--action-bottom)}
.mobile-hud #world-hud.show-bar #hud-notice {bottom:calc(var(--action-bottom) + var(--bar-space))}
.mobile-hud #world-hud.show-dock #hud-notice {margin-bottom:70px}
.mobile-hud #world-controls .mobile-options {display:grid;gap:0;margin:8px 0 16px;padding:4px 10px;border:1px solid #6d6147}
.mobile-hud #world-controls .mobile-options legend {padding:0 5px;color:#e8cf98;font:600 15px Georgia,serif}
.mobile-hud #world-controls .mobile-options label {display:flex;gap:9px;align-items:center;min-height:44px;margin:0;color:#e8dfca;border-bottom:1px solid #70654b3d}
.mobile-hud #world-controls .mobile-options input {appearance:none;position:relative;order:1;flex:0 0 38px;width:38px;height:22px;margin:0 0 0 auto;
  padding:0;border:1px solid #8a8068;border-radius:12px;background:#1b2223;cursor:pointer}
.mobile-options input::before {content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#b9b2a0}
.mobile-hud #world-controls .mobile-options input:checked {background:#5a5c3e;border-color:#cbb07a}
.mobile-options input:checked::before {transform:translateX(16px);background:#f4dfac}
.mobile-options input:focus-visible {outline:2px solid #edca85;outline-offset:2px}
@media(forced-colors:active){.mobile-hud #world-controls .mobile-options input {appearance:auto}.mobile-options input::before {content:none}}
@media(orientation:landscape) {
  .mobile-hud #world-hud #action-bar {left:auto;right:var(--hud-right);transform:none}
  .mobile-hud #world-hud #chat-panel:not(:has(#chat-content[hidden])) {width:min(410px,51vw)}
  .mobile-hud #world-hud #chat-panel.keyboard-open {max-height:calc(100dvh - var(--chat-keyboard) - 8px)}
}

/* The native modal keeps world input and focus behind the rotation prompt. */
#rotation-gate {
  box-sizing:border-box;width:min(320px,calc(100vw - 36px));padding:28px 22px;
  text-align:center;color:#f5e9cc;border:1px solid #99845a;border-radius:6px;
  background:linear-gradient(155deg,#303329,#151a18 72%);box-shadow:0 12px 42px #0009;
}
#rotation-gate::backdrop {background:#0b0f10ef}
#rotation-gate h2 {font:600 23px Georgia,serif;margin:18px 0 8px}
#rotation-gate p {font-size:15px;color:#d1c8b5;margin:0}
.rotate-device {width:46px;height:24px;border:2px solid #c8ac72;border-radius:5px;margin:auto}
#rotation-gate button,.mobile-display button {
  min-height:44px;padding:6px 16px;color:#fff0c8;border:1px solid #9e895d;
  background:linear-gradient(#554b36,#302d25);border-radius:4px;
}
.mobile-display {margin:8px 0}
.mobile-hud [data-desktop-fullscreen] {display:none}
[data-display-status]:not(:empty) {display:block;margin-top:6px;color:#ead3a3}

/* Mobile action buttons and the optional camera-relative movement stick. */
#movement-stick,#touch-pickup {display:none}
.mobile-hud #action-page-picker:not([hidden]) {
  display:flex;position:absolute;z-index:4;inset-inline-end:0;bottom:calc(100% + 6px);gap:4px;
  padding:5px;background:#171c1de8;border:1px solid #9a8155;border-radius:4px;pointer-events:auto;
}
.mobile-hud #world-hud #action-page-picker button {min-width:44px;min-height:44px;padding:0}
.mobile-hud #world-hud #action-page-picker button[aria-pressed=true] {background:#655033;color:#ffecb6;border-color:#d6b36d}
.mobile-hud #world-hud {--slot-width:clamp(36px,11vw,45px);--slot-height:44px;--bar-space:calc(var(--slot-height) + 12px)}
.mobile-hud #world-hud[data-bar-size=compact] {--slot-width:36px;--slot-height:38px}
.mobile-hud #world-hud[data-bar-size=large] {--slot-width:54px;--slot-height:54px}
.mobile-hud #world-hud .action-slot {width:var(--slot-width);height:var(--slot-height)}
.mobile-hud #world-hud[data-bar-size=large] .action-slot .action-art {width:40px;height:40px}
.mobile-hud #world-hud[data-bar-size=compact] .action-slot .action-art {width:28px;height:28px}
.mobile-hud #world-hud:is([data-bar-side=right],.show-joystick[data-bar-side=auto]) #action-bar {left:auto;right:var(--hud-right);transform:none}
.mobile-hud #world-hud[data-bar-side=left] #action-bar {left:var(--hud-left);right:auto;transform:none}
.mobile-hud #world-hud.show-bar .hud-dock {bottom:calc(var(--action-bottom) + var(--bar-space))}
.mobile-hud #world-hud.show-joystick[data-bar-side=left] .hud-dock {left:var(--hud-left);right:auto}
.mobile-hud #world-hud.show-joystick #movement-stick {
  display:grid;place-items:center;position:absolute;left:var(--hud-left);bottom:var(--action-bottom);
  width:clamp(78px,17vmin,98px);aspect-ratio:1;border:1px solid #baa577aa;border-radius:50%;
  background:radial-gradient(circle,#22282188 0 38%,#c4b17b59 39% 40%,#19202199 42% 66%,#696b5259 67%);
  box-shadow:inset 0 0 8px #1119,0 2px 5px #0006;touch-action:none;user-select:none;pointer-events:auto;
}
.mobile-hud #movement-stick span {width:42%;aspect-ratio:1;border-radius:50%;border:1px solid #e3cb91bb;box-shadow:0 2px 5px #0008;background:radial-gradient(at 40% 30%,#8b8065ee,#3e4137e8 65%,#232823ee);pointer-events:none}
.mobile-hud #world-hud.show-joystick[data-bar-side=left] #movement-stick {left:auto;right:var(--hud-right)}
.mobile-hud main.ui-open #world-hud #movement-stick,.mobile-hud #world-hud:has(#chat-content:not([hidden])) #movement-stick {display:none}
.mobile-hud #world-controls .mobile-options .bar-choice {display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,45%);gap:6px;margin:4px 0}
@media(max-width:520px) {
  .mobile-hud #world-hud.show-joystick,.mobile-hud #world-hud[data-bar-size=large] {--bar-space:calc(2 * var(--slot-height) + 14px)}
  .mobile-hud #world-hud:is(.show-joystick,[data-bar-size=large]) .action-slots {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .mobile-hud #world-hud.show-joystick #action-bar {max-width:calc(100% - var(--hud-left) - var(--hud-right) - 86px)}
  .mobile-hud #world-hud.show-joystick:not(.show-bar).show-dock #movement-stick {bottom:calc(var(--action-bottom) + 66px)}
}

/* Landscape touch controls use the same saved bindings as the desktop hotbar. */
@media (orientation:landscape) {
  .mobile-hud #world-hud {
    --touch-slot:max(44px,var(--slot-height));--bar-space:calc(2 * var(--touch-slot) + 16px);
  }
  .mobile-hud #world-hud #action-bar {
    align-items:flex-end;gap:6px;background:none;border:0;box-shadow:none;padding:0;
    pointer-events:none;
  }
  .mobile-hud #action-bar .action-slots {display:grid;grid-template-columns:repeat(3,var(--touch-slot));gap:5px}
  .mobile-hud #world-hud #action-bar .action-slot,.mobile-hud #world-hud #action-bar .action-page {
    pointer-events:auto;touch-action:manipulation;border-radius:50%;border:1px solid #a48d60;
    box-shadow:inset 0 0 0 2px #302d25,0 1px 4px #080b0bba;
    background:radial-gradient(at 42% 34%,#414638ec,#1b211ff5 73%);
  }
  .mobile-hud #world-hud #action-bar .action-slot {
    box-sizing:border-box;width:var(--touch-slot);height:var(--touch-slot);padding:4px;
  }
  .mobile-hud #action-bar .action-slot :is(.action-art,img) {border-radius:50%}
  .mobile-hud #action-bar .action-slot kbd {left:50%;top:auto;bottom:0;transform:translateX(-50%);border-radius:3px}
  .mobile-hud #action-bar .action-slot .slot-amount:not(:empty) {right:0;bottom:5px}
  .mobile-hud #world-hud #action-bar .action-page {width:44px;height:44px;color:#f2dfb3}
  .mobile-hud #world-hud #movement-stick {width:clamp(82px,24vmin,112px)}
  .mobile-hud #world-hud #hud-radar canvas {max-height:clamp(58px,20dvh,100px);width:auto;max-width:110px}
  .mobile-hud main.ui-open #world-hud :is(#action-bar,.mobile-tools,.hud-dock) {visibility:hidden}
}

@media (orientation:landscape) {
  .mobile-hud main.ui-open #world-controls.window-open > .active-window {visibility:visible}
  .mobile-hud main.in-world #world-controls.window-open:has(#inventory-panel.active-window) {
    left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));
    width:auto;max-width:1000px;margin-inline:auto;
  }
  .mobile-hud #inventory-panel .collection-body:not([hidden]) {
    display:grid;grid-template-columns:clamp(176px,32%,248px) minmax(0,1fr);
    column-gap:12px;align-items:start;grid-auto-rows:max-content;align-content:start;
  }
  .mobile-hud #inventory-panel .collection-body>* {grid-column:2;min-width:0}
  .mobile-hud #inventory-panel[data-view=bag] .collection-body:has(>#equipment-view[hidden]) {
    grid-template-columns:minmax(0,1fr);
  }
  .mobile-hud #inventory-panel[data-view=bag] .collection-body:has(>#equipment-view[hidden])>* {grid-column:1}
  .mobile-hud #inventory-panel[data-view=bag] .collection-body:has(>#equipment-view[hidden]) #inventory-items {
    max-height:56dvh;
  }
  .mobile-hud #inventory-panel .collection-body>#equipment-view {grid-column:1;grid-row:1 / span 6}
  .mobile-hud #inventory-panel .equipment-board {grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .mobile-hud #inventory-panel .equipment-portrait {grid-column:2/span 2;grid-row:1}
  .mobile-hud #inventory-panel .equipment-portrait .lobby-portrait {display:none}
  .mobile-hud #inventory-panel .gear-slot {min-height:44px}
  .mobile-hud #inventory-panel .gear-slot>span {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-hud #inventory-panel .inventory-modes {margin:0 0 4px}
  .mobile-hud #inventory-panel #inventory-items {max-height:42dvh}
  .mobile-hud #inventory-panel .window-heading {position:sticky;top:0;z-index:2}
}

#auxiliary-bar,.reserve-slots,.hunt-shortcut,.skill-modifiers,#hud-guide {display:none}
@media (orientation:landscape) and (min-height:375px) {
  .mobile-hud #world-hud #player-status #hud-guide {
    display:block;position:absolute;left:0;top:calc(100% + 3px);width:clamp(37px,7.8dvh,53px);aspect-ratio:1;
    padding:0;border:2px ridge #9b8253;border-radius:2px;background:linear-gradient(#30291fee,#151413ed);
    color:#e0be74;font:600 clamp(18px,3dvh,23px) Georgia,serif;pointer-events:auto;
  }
  .mobile-hud #world-hud:has(#combat-panel:not([hidden])) #player-status #hud-guide,
  .mobile-hud main.ui-open #world-hud #player-status #hud-guide {display:none}
}
@media (orientation:landscape) {
  .mobile-hud #world-hud {
    --hud-left:max(clamp(8px,4.1vw,64px),env(safe-area-inset-left));
    --hud-right:max(5px,env(safe-area-inset-right));
    --chat-room:calc(max(65px,clamp(42px,19dvh,130px)) + 6px);
    --stick-size:clamp(64px,18.5dvh,128px);
    --belt-slot:clamp(27px,7dvh,46px);
    --map-size:clamp(82px,min(11vw,21dvh),145px);
    --rail-width:clamp(54px,4.2vw,66px);
  }
  .mobile-hud #world-hud[data-stick-size=compact] {--stick-size:clamp(56px,16dvh,108px)}
  .mobile-hud #world-hud[data-stick-size=large] {--stick-size:clamp(76px,22dvh,148px)}
  .mobile-hud #world-hud.show-joystick #movement-stick {
    bottom:calc(var(--hud-bottom) + var(--chat-room));width:var(--stick-size);
    background:radial-gradient(circle,#31291c70 0 40%,#15171170 41% 67%,#b39a6360 68% 70%,#15171185 71%);
    border:2px solid #bb9d66;box-shadow:inset 0 0 0 3px #17150db0,0 2px 5px #0007;
  }
  .mobile-hud #movement-stick span {
    background:radial-gradient(circle at 38% 30%,#9d8658da,#493c27e8);
    border:2px solid #dbc08a;box-shadow:0 2px 5px #0009;
  }
  .mobile-hud #world-hud.has-nearby-loot #touch-pickup {
    display:grid;place-items:center;position:absolute;left:calc(var(--hud-left) + var(--stick-size) + 8px);
    bottom:calc(var(--hud-bottom) + var(--chat-room) + var(--stick-size) / 4);
    width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #ad946a;
    background:radial-gradient(circle,#3f3524e8,#191812e8);pointer-events:auto;touch-action:manipulation;
  }
  .mobile-hud #world-hud.has-nearby-loot[data-bar-side=left] #touch-pickup {
    left:auto;right:calc(var(--hud-right) + var(--stick-size) + 8px);
  }
  .mobile-hud #world-hud.has-nearby-loot:not(.show-joystick) #touch-pickup {left:var(--hud-left)}
  .mobile-hud #world-hud.has-nearby-loot:not(.show-joystick)[data-bar-side=left] #touch-pickup {left:auto;right:var(--hud-right)}
  .mobile-hud #world-hud.has-nearby-loot:has(#chat-content:not([hidden])) #touch-pickup,
  .mobile-hud main.ui-open #world-hud.has-nearby-loot #touch-pickup {display:none}
  .mobile-hud #movement-stick::before {
    content:"";position:absolute;inset:8%;pointer-events:none;
    background:linear-gradient(#d9bd83,#d9bd83) center top/2px 6px,
      linear-gradient(#d9bd83,#d9bd83) center bottom/2px 6px,
      linear-gradient(#d9bd83,#d9bd83) left center/6px 2px,
      linear-gradient(#d9bd83,#d9bd83) right center/6px 2px;
    background-repeat:no-repeat;
  }
  .mobile-hud #world-hud.show-auxiliary:not(:has(#chat-content:not([hidden]))) #auxiliary-bar {
    position:absolute;bottom:calc(var(--hud-bottom) + var(--chat-room) + var(--stick-size) + 9px);
    left:calc(var(--hud-left) + var(--belt-slot));display:grid;gap:2px;pointer-events:auto;
  }
  .mobile-hud #world-hud[data-bar-side=left] #auxiliary-bar {left:auto;right:calc(var(--hud-right) + var(--belt-slot))}
  .mobile-hud #auxiliary-bar .belt-row {display:grid;grid-template-columns:repeat(6,var(--belt-slot));gap:2px}
  .mobile-hud #world-hud #auxiliary-bar .action-slot {
    width:var(--belt-slot);height:var(--belt-slot);min-height:0;padding:1px;box-sizing:border-box;border-radius:1px;
    background:#181713dc url('samurai-slot.png') center/100% 100%;border:1px solid #54432b;
  }
  .mobile-hud #auxiliary-bar .action-slot .action-art {width:100%;height:100%;box-shadow:none}
  .mobile-hud #auxiliary-bar .action-slot kbd,.mobile-hud #action-bar .action-slot kbd {display:none}
  .mobile-hud #auxiliary-bar .slot-amount {bottom:1px;right:1px}
  .mobile-hud #world-hud .mobile-tools {display:none}
  .mobile-hud main.ui-open #auxiliary-bar {visibility:hidden}
  .mobile-hud #world-hud #action-bar {
    width:calc(4.6 * var(--touch-slot));height:calc(3.65 * var(--touch-slot));
    bottom:var(--hud-bottom);display:block;pointer-events:none;
  }
  .mobile-hud #world-hud[data-bar-side=left] #action-bar {direction:rtl}
  .mobile-hud #world-hud #action-bar :is(.action-slots,.combat-keys,.bar-tools) {display:contents}
  .mobile-hud #world-hud #action-bar :is(.action-slot,.combat-keys button,.action-page) {
    position:absolute;inset-inline-start:var(--x);top:var(--y);pointer-events:auto;
  }
  .mobile-hud #world-hud #action-bar .macro-stop {
    position:absolute;inset-inline-end:0;bottom:100%;min-height:36px;pointer-events:auto;direction:ltr;
  }
  .mobile-hud #world-hud #action-bar .action-slot {
    padding:2px;border:1px solid #ad946a;background:radial-gradient(circle at 45% 35%,#463f2aca,#161911dd);
    box-shadow:inset 0 0 0 1px #221e16,0 1px 2px #100d08;
  }
  .mobile-hud #world-hud #action-bar .action-slot .action-art {width:100%;height:100%;border-radius:50%;overflow:hidden}
  .mobile-hud #action-bar .action-slot:nth-child(1) {--x:0%;--y:72%}
  .mobile-hud #action-bar .action-slot:nth-child(2) {--x:6%;--y:42%}
  .mobile-hud #action-bar .action-slot:nth-child(3) {--x:22%;--y:19%}
  .mobile-hud #action-bar .action-slot:nth-child(4) {--x:43%;--y:0%}
  .mobile-hud #action-bar .action-slot:nth-child(5) {--x:71%;--y:0%}
  .mobile-hud #action-bar .action-slot:nth-child(6) {--x:31%;--y:51%}
  .mobile-hud #world-hud #action-bar .combat-keys button {
    padding:0;text-align:center;direction:ltr;color:#faebcf;touch-action:manipulation;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {
    --x:65%;--y:34%;width:calc(1.55 * var(--touch-slot));height:calc(1.55 * var(--touch-slot));
    border:2px solid #a97455;border-radius:50%;background:radial-gradient(at 45% 35%,#8c3926ee,#60261be6);
    font:600 clamp(12px,2.2dvh,17px) "Segoe UI",sans-serif;letter-spacing:.02em;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=target] {
    --x:61%;--y:79%;width:39%;height:21%;min-height:30px;
    background:#181c24e8;border:1px solid #8098ae;border-radius:2px;font-size:11px;
  }
  .mobile-hud #action-bar .combat-keys .action-art {display:none}
  .mobile-hud #world-hud #action-bar .action-page {
    --x:32%;--y:81%;width:24%;height:19%;min-height:27px;border-radius:12px;direction:ltr;
  }
  .mobile-hud #world-hud:not(.show-bar) #action-bar,.mobile-hud #world-hud:has(#chat-content:not([hidden])) #action-bar {display:none}
  .mobile-hud #world-hud #chat-panel:has(#chat-content[hidden]) {left:calc(var(--hud-left) + min(28vw,420px));background:none}
  .mobile-hud #world-hud #chat-panel:has(#chat-content[hidden]) #hud-chat-toggle {
    padding:3px 10px;min-height:30px;background:#1a1916d9;color:#d9bc78;
  }
  .mobile-hud #world-hud[data-bar-side=left] #chat-panel:has(#chat-content[hidden]) {left:auto;right:calc(var(--hud-right) + min(28vw,420px))}
}
@media (orientation:landscape) and (max-height:374px) {
  .mobile-hud #world-hud #auxiliary-bar .belt-row:first-child {display:none}
}
/* The outer arc holds the active page. Its inner arc keeps the other bindings in reach. */
@media (orientation:landscape) and (min-height:375px), (orientation:landscape) and (min-width:650px) and (min-height:285px) {
  .mobile-hud #world-hud {--touch-slot:max(44px,var(--slot-height),min(7.2dvh,54px))}
  .mobile-hud #world-hud #action-bar {width:calc(5.45 * var(--touch-slot));height:calc(5.25 * var(--touch-slot))}
  .mobile-hud #world-hud #action-bar .reserve-slots {display:contents}
  .mobile-hud #action-bar .action-slots .action-slot:nth-child(1) {--x:3%;--y:81%}
  .mobile-hud #action-bar .action-slots .action-slot:nth-child(2) {--x:0%;--y:58%}
  .mobile-hud #action-bar .action-slots .action-slot:nth-child(3) {--x:6%;--y:35%}
  .mobile-hud #action-bar .action-slots .action-slot:nth-child(4) {--x:21%;--y:16%}
  .mobile-hud #action-bar .action-slots .action-slot:nth-child(5) {--x:40%;--y:3%}
  .mobile-hud #action-bar .action-slots .action-slot:nth-child(6) {--x:62%;--y:0%}
  .mobile-hud #world-hud #action-bar [data-reserve="1"] {--x:81%;--y:10%}
  .mobile-hud #world-hud #action-bar [data-reserve="2"] {--x:60%;--y:22%}
  .mobile-hud #world-hud #action-bar [data-reserve="3"] {--x:38%;--y:31%}
  .mobile-hud #world-hud #action-bar [data-reserve="4"] {--x:23%;--y:51%}
  .mobile-hud #world-hud #action-bar [data-reserve="5"] {--x:19%;--y:70%}
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {--x:69%;--y:49%}
  .mobile-hud #world-hud #action-bar [data-basic-action=target] {--x:38%;--y:84%;width:25%;height:16%}
  .mobile-hud #world-hud #action-bar .skill-modifiers {display:contents}
  .mobile-hud #world-hud #action-bar [data-modifier] {
    position:absolute;inset-inline-start:64%;top:84%;width:17%;height:16%;min-width:0;min-height:30px;padding:0;
    pointer-events:auto;touch-action:manipulation;background:#171619e8;color:#e3ddcf;
    border:1px solid #706448;border-radius:2px;font:600 10px "Segoe UI",sans-serif;
  }
  .mobile-hud #world-hud #action-bar [data-modifier=shift] {inset-inline-start:82%}
  .mobile-hud #world-hud #action-bar [data-modifier][aria-pressed=true] {border-color:#ebc260;background:#655024;color:#fff4cb}
  .mobile-hud #world-hud #action-bar .action-page {--x:61%;--y:39%;width:16%;min-width:33px;height:12%;min-height:26px}
  .mobile-hud #world-hud #action-bar .hunt-shortcut {
    display:block;position:absolute;inset-inline-start:46%;top:62%;width:var(--touch-slot);height:var(--touch-slot);
    min-width:0;padding:0;border:2px ridge #a88443;border-radius:1px;background:#211c14df;
    color:#cfb979;pointer-events:auto;font:600 11px "Segoe UI",sans-serif;
  }
  .mobile-hud #world-hud #action-bar .hunt-shortcut.running {border-color:#f2cb65;color:#ffe39e}
}
@media (orientation:landscape) and (min-height:520px) and (min-width:1000px) {
  .mobile-hud #world-hud #action-bar {height:calc(6.15 * var(--touch-slot))}
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {
    --x:63%;--y:54%;width:calc(1.86 * var(--touch-slot));height:calc(1.86 * var(--touch-slot));
  }
  .mobile-hud #world-hud .hud-status-stack #player-status {padding:7px 9px 13px}
  .mobile-hud #world-hud #player-status #open-status {min-height:29px}
  .mobile-hud #world-hud #open-status #hud-name,.mobile-hud #world-hud #open-status .hud-level b {font-size:16px}
  .mobile-hud #world-hud #player-status #hud-exp {height:16px;font-size:11px}
  .mobile-hud main.in-world #world-hud .mobile-rail {top:calc(var(--hud-top) + 64px);gap:5px}
  .mobile-hud #world-hud .mobile-rail button,.mobile-hud main.in-world:not(.ui-open) button#world-ui-toggle {min-height:59px}
}
.mobile-hud #world-hud .chat-filters {display:flex;gap:2px;overflow-x:auto;overscroll-behavior-x:contain}
.mobile-hud #world-hud .chat-filters button {
  flex:1 0 auto;min-height:38px;padding:4px 8px;border:0;border-bottom:2px solid transparent;border-radius:0;background:#191f1e;
}
.mobile-hud #world-hud .chat-filters button[aria-pressed=true] {border-color:#d2b374;color:#ffecba;background:#403a2c}

.mobile-hud #inventory-panel .collection-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.mobile-hud #inventory-panel .collection-tabs button {min-width:0;min-height:44px;padding-inline:3px;white-space:normal;overflow-wrap:anywhere}

@media (orientation:landscape) {
  .mobile-hud main.in-world #inventory-panel.active-window {
    display:flex;flex-direction:column;box-sizing:border-box;
    max-height:calc(var(--window-visible-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)) - 6px);
  }
  .mobile-hud #inventory-panel .collection-body {min-height:0;overflow:auto;overscroll-behavior:contain}
  .mobile-hud #inventory-panel .inventory-footer {
    display:flex;order:1;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;
    flex:none;margin-top:6px;padding:5px 2px 0;border-top:1px solid #716047;
  }
  .mobile-hud #inventory-panel :is(#inventory-load,#inventory-summary) {padding:0;margin:0}
  .mobile-hud #inventory-panel #inventory-summary {gap:12px}
  .mobile-hud #world-hud #chat-preview {
    position:absolute;left:var(--hud-left);bottom:var(--hud-bottom);max-height:var(--chat-room);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;
    width:min(27vw,410px);pointer-events:none;color:#eee2c3;font:var(--chat-preview-size,clamp(10px,1.9dvh,14px))/1.25 "Segoe UI",sans-serif;
    text-shadow:0 1px 2px #000,1px 0 2px #000;
  }
  .mobile-hud #world-hud #chat-preview div {
    width:fit-content;max-width:100%;padding:0 4px;overflow:hidden;white-space:nowrap;
    text-overflow:ellipsis;
  }
  .mobile-hud #world-hud #chat-preview:not(:empty) {
    padding:3px 0;background:linear-gradient(90deg,#1518119c,#14171160 70%,transparent);
  }
  .mobile-hud #chat-preview [data-channel="system"] {color:#dbcdaa}
  .mobile-hud #chat-preview [data-channel="2"] {color:#f9a9e0}
  .mobile-hud #chat-preview [data-channel="combat"] {color:#adcaf1}
  .mobile-hud #world-hud:not(.show-preview) #chat-preview,.mobile-hud main.ui-open #world-hud #chat-preview,
  .mobile-hud #world-hud:has(#chat-content:not([hidden])) #chat-preview {display:none}
  .mobile-hud #world-hud[data-bar-side=left] #chat-preview {right:var(--hud-right);left:auto}
}

@media (orientation:landscape) {
  .mobile-hud #world-hud .mobile-rail {
    position:absolute;top:calc(var(--hud-top) + 47px);right:var(--hud-right);display:grid;grid-template-columns:minmax(0,1fr);gap:3px;
    width:var(--rail-width);pointer-events:auto;
  }
  .mobile-hud #world-hud .mobile-rail button {box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:2px 0;font-size:clamp(9px,.85vw,12px)}
  .mobile-hud #world-hud .hud-status-stack #player-status {inset:auto}
  .mobile-hud #hud-charges {display:block;margin:4px 0 1px;color:#deaa8b;font-size:clamp(10px,1.7dvh,13px)}
  .mobile-hud #world-hud:not(.show-status) #hud-charges {display:none}
  .mobile-hud #world-hud #player-status {
    width:clamp(146px,17vw,260px);padding:4px 7px 7px;position:relative;border:1px solid #a58a55;
    background:linear-gradient(110deg,#25201dee,#110f11eb 75%);box-shadow:inset 0 0 0 2px #3e3326,0 1px 3px #100c09;
  }
  .mobile-hud #player-status::before,.mobile-hud #player-status::after {
    content:"";position:absolute;width:5px;height:5px;background:#c5a467;clip-path:polygon(0 0,100% 0,0 100%);pointer-events:none;
  }
  .mobile-hud #player-status::before {top:2px;left:2px}
  .mobile-hud #player-status::after {bottom:2px;right:2px;transform:rotate(180deg)}
  .mobile-hud #world-hud #player-status #open-status {flex-direction:row-reverse;justify-content:space-between;min-height:25px}
  .mobile-hud #world-hud #player-status .hud-level {display:flex;align-items:center;gap:2px;width:auto;height:auto;background:none}
  .mobile-hud #player-status .hud-level :is(small,b) {font:600 12px Georgia,serif;color:#cfb67a}
  .mobile-hud #world-hud #player-status .hud-fold {width:20px;min-height:26px;font-size:10px}
  .mobile-hud #player-status .vital {height:clamp(11px,2.5dvh,17px);padding:0;font-size:clamp(9px,1.8dvh,12px)}
  .mobile-hud #player-status .vital b {width:25px;color:#c5b38b}
  .mobile-hud #player-status .vital .vital-track {left:25px;border-color:#3b3228}
  .mobile-hud #player-status .vital .vital-value {flex:1;text-align:center}
  .mobile-hud #world-hud #hud-radar {
    right:calc(var(--hud-right) + var(--rail-width) + 8px);top:var(--hud-top);
    box-sizing:border-box;width:var(--map-size);padding:0;display:grid;grid-template-columns:1fr;
    background:none;box-shadow:none;border:0;
  }
  .mobile-hud #world-hud #hud-radar>div:first-child {
    grid-area:1/1;align-self:start;position:relative;z-index:1;display:flex;background:linear-gradient(#151410ad,transparent);
  }
  .mobile-hud #world-hud #hud-radar :is(.radar-map,.radar-toggle) {
    min-height:25px;min-width:21px;padding:1px 2px;background:none;border:0;font-size:11px;
  }
  .mobile-hud #hud-radar .radar-map {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-hud #world-hud #hud-radar canvas {grid-area:1/1;width:100%;height:var(--map-size);max-width:none;max-height:none;box-sizing:border-box;border:2px ridge #a38a5b}
  .mobile-hud #world-hud #hud-radar .radar-zoom {
    grid-area:1/1;position:static;z-index:1;align-self:end;justify-self:end;display:grid;gap:1px;margin:0 2px 2px 0;
  }
  .mobile-hud #world-hud #hud-radar .radar-zoom button {
    width:clamp(23px,4.3dvh,31px);min-width:0;height:clamp(23px,4.3dvh,31px);min-height:0;padding:0;
    background:#211f19d9;border:1px solid #958259;color:#efd690;font-size:15px;
  }
  .mobile-hud #world-hud #radar-record {grid-row:2;position:static;width:auto;text-align:center;color:#e59c83;font:600 11px/1.4 "Segoe UI",sans-serif;text-shadow:0 1px 3px #000}
  .mobile-hud #world-hud #hunt-radar {grid-row:3;width:100%;min-height:24px;padding:2px 1px;margin:0;background:#1e1b17d9;border-color:#94805a;font-size:11px;line-height:1.1}
  .mobile-hud #world-hud #hunt-radar.running {color:#c4e5a8}
  .mobile-hud main.ui-open #world-hud .mobile-rail,.mobile-hud #world-hud:has(#chat-content:not([hidden])) .mobile-rail {visibility:hidden}
}

@media (orientation:landscape) {
  .mobile-hud #world-hud #hud-effects:not([hidden]) {
    display:grid;position:absolute;top:0;left:calc(100% + 4px);
    grid-template-columns:repeat(6,max-content);gap:1px;min-height:0;padding:1px;
    background:#161b18b8;
  }
  .mobile-hud #world-hud:not(.show-effects) #hud-effects {display:none}
  .mobile-hud #hud-effects .effect-chip {position:relative;display:grid;place-items:center;width:clamp(19px,3.8dvh,29px);height:clamp(19px,3.8dvh,29px)}
  .mobile-hud #hud-effects .action-art {width:100%;height:100%}
  .mobile-hud #hud-effects .effect-clock {
    position:absolute;inset:auto 0 0;text-align:center;font:600 9px/1.1 "Segoe UI",sans-serif;
    color:#fff0c9;background:#15170fcc;pointer-events:none;
  }
}

@media (orientation:landscape) {
  .mobile-hud #world-hud #quest-tracker {
    position:absolute;top:0;right:calc(100% + 50px);width:clamp(112px,16vw,170px);
    max-width:none;margin:0;box-sizing:border-box;
    grid-template-columns:minmax(0,1fr) 38px;
  }
  .mobile-hud #world-hud #quest-tracker-name {min-height:23px}
  .mobile-hud #world-hud #quest-tracker-distance {min-height:26px}
  .mobile-hud #world-hud #clear-quest-tracker {width:38px;min-height:38px}
}
@media (orientation:landscape) and (max-width:720px) {
  .mobile-hud #world-hud #quest-tracker {
    position:fixed;left:calc(var(--hud-left) + 179px);top:calc(var(--hud-top) + 72px);right:auto;
  }
}
@media (orientation:landscape) {
  .mobile-hud #world-hud .mobile-rail button,.mobile-hud main.in-world:not(.ui-open) #world-ui-toggle {
    display:grid;justify-items:center;align-content:center;gap:1px;line-height:1.1;
  }
  .mobile-hud main.in-world:not(.ui-open) #world-ui-toggle {
    right:var(--hud-right,max(6px,env(safe-area-inset-right)));width:clamp(54px,4.2vw,66px);height:44px;padding:2px;font-size:11px;
  }
  .mobile-hud .mobile-rail button::before,.mobile-hud main.in-world:not(.ui-open) #world-ui-toggle::before {
    content:"";width:22px;height:22px;background-image:url('mobile-navigation.png');
    background-size:66px 22px;background-repeat:no-repeat;
  }
  .mobile-hud .mobile-rail [data-rail]::before {width:28px;height:25px;background-size:contain;background-position:center}
  .mobile-hud .mobile-rail [data-rail=bag]::before {background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAIsklEQVR4nO2Ze4hc1R3HP/c17+fu7Et389q4SbOxVTeixESlljZKFEUp0lZaa4kKrSJSS0spFIrQB6WU2j8stojiP1rTpE0VUo2JiSZqkt2Yzewr+8g+sq/ZmTszd+bO3MeUezPCIogWWne19zNzuNw79xw43/v7fc/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Wi66QrjGBuCjig4hnlpooIjhCBiWU5laLr9JUcAJwpEAcN0lkg/5ZLO7tu+q45fmHE2SnqB3660ALx+/Ezh5uuvjqi5JVHN592J65UKVa2MbVnuBBwhwkG/+9ZXKpXdJ++I4YrgRo1z7oxWw65ZyLLk9nPONU1z+2/r6amNTGW0+uRfBB7lU0T4iOv7gW2KLEtr21t9LU1JOZWMKYlYWAooouw4fLns7A6VXH+o6Lprds7EFFl2X5YuPW2Rmm2TbGwkkyuSzeXc85pt0dbaiikE9OO9g4WsWjDrT/5Ty/1Psif4PPDlD98fj0XkllRSbmlqkJsa40o8EpICPlmqVitCsVCgUCy6T9cRxTINV6ju7m4qlSrDIyNcflkbwWjS6B+eLo5MTDv57nAC+DaQZ5VtiiaB3c6LEbAJaAESHx4jEg5Kzamk4ojS3JCQo+GA5PdJkmWZYmZxkVRjI8lkgtGxSevCXE47dXZYq/dNA08BL7PK/xdYzheAHU6KABudsrku1H/CfD3NfsYKI/yXxukErqu3zcsixdntWY4T4geBH7BKEP7H4394x/cz8W+Rh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4cHny/+DflD44Bu5nHNAAAAAElFTkSuQmCC')}
  .mobile-hud .mobile-rail [data-rail=community]::before {background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAR7klEQVR4nOVaaWxc13X+7n3L7EMOt+EqkRzulGha8qItiVtLXmJFXtA/BRLXRQO7BgoU8K8iCIK6buHlR9sfRprWTes2gJqgP5rIjl1rteUokiVbsiyToiRKFLVQEiVxm/Wttzh37nMZ1ZYly0rk8gBv3sy8N2/u+c72nfMeE0JgIQvHAhf9agcZYxqAGIAKAFEABgBtHnCB+3gAcgCm1d4TXxHX0j/tS8aYHo3FkslkRcPSwdvX3DZ4+zd13azXTT1uhkIhQzc0xgDX84TvC1/jXExdunR233u7t4+Pn9xXyOeOMsbOASgJIXzcwsLmG4oxUgvh5uaWxT19S9a2ZdofamxqWd6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sKiKB1JSBylmXl33jrzdyxY0dy3/n2dwaaFjWH+vr768ZPn05fvHhxTMV8AEBAd6/pRshvpQpcZ7UIyiZXQBgqJKoYY52JWOyu3t7eVa1tbeLsxMSvh4aGtk9PT59QOaWo3P0LP3XCbpXH+a4Aw1QjLSqbaTWIMZX7X1AJdC7wgBt5RkDHLSJKCSqfYl75JPGVu4fVd9Y8oALQvvoAfMoA5pOvVIyHVYjMb3Fv+FEZHbegXAFCAEBQNTA/4/+/BOAKEOZziMDtg5J6w4/csVslCV5Dh3nlgDMA5rrq/lcSgEA+7X7/jT4lxr5KANwM4VjgwrHAhWOBC8cCF44FLhwLXDgWuHAscOFY4MKxwIVjgQvHAheOBS78d72A37X8DxYMmIBC15OmAAAAAElFTkSuQmCC')}
  .mobile-hud main.in-world:not(.ui-open) #world-ui-toggle::before {
    width:22px;height:17px;border-block:2px solid #c8a866;background:linear-gradient(#c8a866,#c8a866) center/100% 2px no-repeat;box-sizing:border-box;
  }
  .mobile-hud #world-hud .mobile-rail button,.mobile-hud main.in-world:not(.ui-open) #world-ui-toggle {
    border:1px solid #766347;border-radius:2px;background:linear-gradient(150deg,#211f1de8,#111113f2);color:#dfc793;
  }
}
@media (orientation:landscape) {
  .mobile-hud .hud-status-stack .party-hud {
    position:absolute;left:calc(100% + 4px);top:var(--party-top,0px);
  }
  .mobile-hud #world-hud.show-effects .hud-status-stack:has(#hud-effects:not([hidden])) {--party-top:calc(3 * clamp(19px,3.8dvh,29px) + 5px)}
  .mobile-hud #nearby-party {max-height:min(116px,24dvh)}
}
@media (orientation:landscape) and (max-width:720px) {
  .mobile-hud #world-hud:has(#quest-tracker:not([hidden])) .hud-status-stack .party-hud {left:calc(100% + 120px);top:99px}
}
@media (orientation:landscape) and (max-height:375px) {
  .mobile-hud .party-hud :is(.party-fold,#nearby-party) {display:none}
}

/* Mobile landscape finish. Keep the textured panels separate from the playfield. */
@media (orientation:landscape) {
  .mobile-hud {
    --hud-iron:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAACtUlEQVR42iWUx2HDMAxFeVAXKYlQLzNhSoyEgfLoXBwHJIHf4CCrVLbrrZNmb7WS3To/5bHRJlt8sdsfu3WUw8Wj56C9zJK0kcs7H3gadfdORE8/tPNso19ea/LTk7wmQcdfqaFLw6VGXnm992idXdr4rJ89knX2R0brdA76yuaNd5Q/GXW225JNQBDaiNVAmk100WwzlRR8lMtOHWCxwufxVjZgRqklS5kXRUxslgyGR7YgE1Rri9bY4b/BkLs5XjTJjQAtXHq55JBKs9bBP70teiU3fz90mby2wZLMtkK18ovrjZ2+yianbcEn2zzDY7Eo0S5pIXhZb4NX2iFvB6xKBlCs2koXbLaKgTU+fHI7XsgO1pPjQvNlVms1wrfSaEJW6TVB91ChmABw8TRaq+MPZs2EgdODzwI9hwLCKr+1952OtXa2WStYaMk/2f2S6AeiRxxH6qCVCwZhl35QBICvxEJsYHbWUVtUBKZUvsApIytfs5VSIT/YKLVdiFz0ubk+W9Id3TpFI62CnESqJ2iHjPTcmBRRKnOpYc6EvI9le33XhbjUAYWSDsRu5WhCrcsnvT35SsoICefvr132Rle/A1LOKF+Rxk03QNyAxCYFHNg36A6SbAFmDdMUeL/YiU0EmO7RHqwsCU0yofuJy6/W2luJ/ORwaBDyRJdREqktYjaysEiZ2b2sVHrMfBGeBZAp2FM2DXwLRp340IJ2kEd6nh9akpZthTTO818f/NEO01pcjtKQ0+l/w0hn4uFMxjZ9wN/g9mxtYBSBYE0JrxxFQq9/gR9RaZWPREUvm5Lxp/MpMJy8+/ALX2uR5wc9e3hhKEEsG94DCl8QIgYpvwevMdAzO30X+QDU+cHFhk0UbD1Z5N4KxxbSVpHQmVAc7O9J9ifQb6xRiycdHA/WKjLvKAj+AHqRKuD3j/EqAAAAAElFTkSuQmCC') repeat,repeating-linear-gradient(114deg,#94805a09 0 1px,transparent 1px 5px),
      linear-gradient(143deg,#252420 0%,#141516 46%,#101113 100%);
    --hud-metal-shadow:inset 0 0 0 1px #13100d,inset 0 0 0 3px #87663752,0 2px 5px #0009;
  }
  .mobile-hud #world-hud :is(#player-status,#combat-panel,.party-hud),
  .mobile-hud #world-hud #hud-radar:not([hidden]) {
    border:1px solid #b69a62;
    border-radius:2px;
    background:var(--hud-iron);
    box-shadow:var(--hud-metal-shadow);
    color:#ead9b7;
  }
  .mobile-hud #world-hud #player-status {padding:5px 8px 7px}
  .mobile-hud #world-hud #player-status::before,
  .mobile-hud #world-hud #player-status::after {
    width:12px;height:12px;clip-path:none;background:none;
    border-top:2px solid #e2c285;border-left:2px solid #e2c285;
    filter:drop-shadow(1px 1px 0 #342514);
  }
  .mobile-hud #world-hud #hud-name {font:600 clamp(13px,3.2dvh,19px)/1.1 "Segoe UI",sans-serif}
  .mobile-hud #world-hud #player-status .vital-track {
    background:#0a0b0c;border-color:#584c35;box-shadow:inset 0 1px 2px #000;
  }
  .mobile-hud #world-hud #player-status .vital-value {
    color:#f9f0dc;text-shadow:0 1px 2px #050504,0 0 3px #050504;
  }
  .mobile-hud #world-hud #hud-radar canvas {border:0;box-shadow:inset 0 0 0 1px #8d7046}
  .mobile-hud #world-hud #hud-radar>div:first-child {background:linear-gradient(#151410ed,#15141018)}
  .mobile-hud #world-hud .mobile-rail button,
  .mobile-hud main.in-world:not(.ui-open) #world-ui-toggle,
  .mobile-hud #world-hud #chat-panel:has(#chat-content[hidden]) #hud-chat-toggle {
    background:var(--hud-iron);border-color:#a38551;box-shadow:var(--hud-metal-shadow);
  }
  .mobile-hud #world-hud #action-bar {background:none;border:0;box-shadow:none}
  .mobile-hud #world-hud #action-bar .action-slot {
    border:1px solid #c2a66b;
    background:var(--hud-iron);
    box-shadow:inset 0 0 0 2px #171410,inset 0 0 0 3px #b9a16c58,0 2px 4px #0009;
  }
  .mobile-hud #world-hud #action-bar .action-slot .action-art {box-shadow:inset 0 0 0 1px #21180d}
  .mobile-hud #world-hud :is(#action-bar,#auxiliary-bar) .action-slot:has(.empty-slot) {
    background:#17171370;border-color:#b9a27665;box-shadow:inset 0 0 0 1px #1b160fb0;
  }
  .mobile-hud #world-hud :is(#action-bar,#auxiliary-bar) .empty-slot {
    color:#d6be8a8f;font-size:16px;line-height:1;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {
    background:repeating-linear-gradient(118deg,#f2ae760b 0 1px,transparent 1px 4px),
      radial-gradient(ellipse at 44% 24%,#984a37,#49211d 76%);
    border:1px solid #c59d67;box-shadow:inset 0 0 0 2px #2c1713,inset 0 0 0 4px #d69d6547,0 2px 6px #000a;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=target] {
    border-color:#a39163;background:var(--hud-iron);box-shadow:var(--hud-metal-shadow);
  }
  .mobile-hud #world-hud #action-bar .action-page {
    background:var(--hud-iron);border-color:#a38551;box-shadow:var(--hud-metal-shadow);color:#e1c58c;
  }
  .mobile-hud #world-hud.show-joystick #movement-stick {
    background:radial-gradient(circle,#2f2b1e32 0 38%,#14140f48 39% 66%,#d5b77882 67% 68%,#17160f52 69%);
    border:1px solid #c8ad747d;box-shadow:inset 0 0 0 2px #17150e35,0 1px 3px #14110970;
  }
  .mobile-hud #world-hud #movement-stick span {
    background:radial-gradient(circle at 38% 30%,#b3a27583,#4e452f9c);
    border:1px solid #e1c68eaa;
  }
  .mobile-hud #world-hud #chat-preview:not(:empty) {
    background:linear-gradient(90deg,#0e100e7d,transparent);
  }
}
@media (orientation:landscape) and (min-width:760px) {
  .mobile-hud #world-hud .hud-status-stack #combat-panel {
    position:fixed;top:var(--hud-top);left:55%;transform:translateX(-50%);
    width:clamp(124px,20vw,300px);padding:3px 6px;
  }
  .mobile-hud #world-hud .hud-status-stack .party-hud {
    position:relative;top:auto;left:auto;max-width:clamp(145px,17vw,260px);
  }
}



@media (orientation:landscape) {
  .mobile-hud #world-hud .hud-status-stack {--status-width:clamp(154px,17vw,268px);gap:4px}
  .mobile-hud #world-hud .hud-status-stack #player-status {width:var(--status-width);padding:6px 8px 8px}
  .mobile-hud #world-hud #player-status header {padding-bottom:3px;border-bottom:1px solid #a589554f;margin-bottom:3px}
  .mobile-hud #world-hud #open-status {gap:5px}
  .mobile-hud #world-hud #player-status .hud-level :is(small,b) {font:600 clamp(10px,2.6dvh,15px)/1 "Segoe UI",sans-serif}
  .mobile-hud #world-hud #player-status .vital {min-height:12px}
  .mobile-hud #world-hud #player-status .vital b {font-weight:600}
  .mobile-hud #world-hud #hud-effects:not([hidden]) {
    --effect-size:clamp(19px,4.3dvh,27px);
    left:calc(100% + 5px);grid-template-columns:repeat(7,var(--effect-size));gap:2px;
    padding:0;border:0;background:none;box-shadow:none;
  }
  .mobile-hud #world-hud #hud-effects .effect-chip {
    box-sizing:border-box;width:var(--effect-size);height:var(--effect-size);
    border:1px solid #a99163;border-radius:1px;background:#201c18;box-shadow:0 1px 2px #0009;
  }
  .mobile-hud #world-hud #hud-effects .effect-clock {
    color:#fff4d9;background:#111012d9;font-size:clamp(7px,1.9dvh,10px);
  }
}
@media (orientation:landscape) and (min-width:1000px) {
  .mobile-hud #world-hud #hud-effects:not([hidden]) {grid-template-columns:repeat(9,var(--effect-size))}
}
@media (orientation:landscape) and (max-width:759px) {
  .mobile-hud #world-hud #hud-effects:not([hidden]) {grid-template-columns:repeat(6,var(--effect-size))}
}


@media (orientation:landscape) {
  .mobile-hud #world-hud #hud-radar {isolation:isolate}
  .mobile-hud #world-hud #hud-radar:has(.radar-zoom:not([hidden])) canvas {
    border-bottom:1px solid #a08653;
  }
  .mobile-hud #world-hud #hud-radar .radar-zoom:not([hidden]) {
    grid-area:2/1;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    justify-self:stretch;gap:2px;margin:0;padding:2px;background:#131417;
  }
  .mobile-hud #world-hud #hud-radar .radar-zoom button {
    width:100%;height:28px;min-height:28px;border-radius:1px;
    border:1px solid #91774e;background:linear-gradient(#393024,#181719);
    color:#f5d99a;font-size:17px;line-height:1;touch-action:manipulation;
  }
  .mobile-hud #world-hud #hud-radar .radar-zoom button:disabled {opacity:.42}
  .mobile-hud #world-hud #radar-record {grid-row:3}
  .mobile-hud #world-hud #hunt-radar {grid-row:4}
  .mobile-hud #world-hud #hud-radar .radar-bookmark {grid-row:5}
  .mobile-hud #world-hud #hud-radar .radar-map {
    text-align:left;padding-inline:4px;color:#f1dfb6;text-shadow:0 1px 3px #000;
  }
}
@media (orientation:landscape) and (min-height:520px) {
  .mobile-hud #world-hud #hud-radar .radar-zoom button {height:34px;min-height:34px}
}


@media (orientation:landscape) {
  .mobile-hud #world-hud #combat-panel:not([hidden]) {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;
    max-height:49dvh;overflow:auto;overscroll-behavior:contain;
  }
  .mobile-hud #world-hud #combat-panel :is(.target-heading,#target-health,#target-health-bar) {grid-column:1/-1}
  .mobile-hud #world-hud #combat-panel .target-heading {min-height:34px}
  .mobile-hud #world-hud #combat-panel #target-name {
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font:600 clamp(12px,2.8dvh,17px)/1.25 "Segoe UI",sans-serif;
  }
  .mobile-hud #world-hud #combat-panel #clear-target {
    width:32px;min-width:32px;min-height:32px;border:1px solid #9a7c4a;
    background:linear-gradient(#3a3024,#171619);color:#f0d293;
  }
  .mobile-hud #world-hud #combat-panel #target-health-bar:not([hidden]) {
    height:6px;width:100%;appearance:none;border:1px solid #614836;
    background:#171113;border-radius:1px;overflow:hidden;
  }
  .mobile-hud #world-hud #combat-panel #target-health-bar::-webkit-progress-bar {background:#171113}
  .mobile-hud #world-hud #combat-panel #target-health-bar::-webkit-progress-value {
    background:linear-gradient(#c76964,#73302d);
  }
  .mobile-hud #world-hud #combat-panel #target-health-bar::-moz-progress-bar {
    background:linear-gradient(#c76964,#73302d);
  }
  .mobile-hud #world-hud.show-target #combat-panel>button {
    min-width:0;min-height:38px;white-space:normal;padding-inline:4px;
    font-size:clamp(9px,2.75dvh,12px);
  }
  .mobile-hud #world-hud:not(.show-target) #combat-panel #open-player-store {display:none}
}


@media (orientation:landscape) {
  .mobile-hud #world-hud {--chat-preview-width:min(32vw,400px)}
  .mobile-hud #world-hud #chat-preview {
    width:var(--chat-preview-width);
    font:var(--chat-preview-size,clamp(11px,2.45dvh,15px))/1.24 "Segoe UI",sans-serif;
    text-shadow:0 1px 2px #000,0 0 3px #000,1px 0 2px #000;
  }
  .mobile-hud #world-hud #chat-preview div {
    flex:0 0 auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    white-space:normal;overflow-wrap:anywhere;padding:1px 2px;
  }
  .mobile-hud #world-hud #chat-preview:not(:empty) {
    background:linear-gradient(90deg,#14131085,#15141238 69%,transparent);
  }
  .mobile-hud #world-hud #chat-panel:has(#chat-content[hidden]) {
    left:calc(var(--hud-left) + var(--chat-preview-width) + 5px);
  }
  .mobile-hud #world-hud[data-bar-side=left] #chat-panel:has(#chat-content[hidden]) {
    left:auto;right:calc(var(--hud-right) + var(--chat-preview-width) + 5px);
  }
  .mobile-hud #world-hud #chat-panel:has(#chat-content[hidden]) #hud-chat-toggle {
    min-height:34px;padding:4px 10px;
  }
}


@media (orientation:landscape) {
  .mobile-hud #world-hud .mobile-fullscreen {
    position:absolute;bottom:var(--hud-bottom);left:calc(var(--hud-left) + var(--chat-preview-width) + 107px);pointer-events:auto;
  }
  .mobile-hud #world-hud[data-bar-side=left] .mobile-fullscreen {
    left:auto;right:calc(var(--hud-right) + var(--chat-preview-width) + 107px);
  }
  .mobile-hud #world-hud .mobile-fullscreen button {
    width:34px;height:34px;padding:0;font-size:21px;line-height:1;
    border-color:#a38551;background:var(--hud-iron);box-shadow:var(--hud-metal-shadow);
  }
  .mobile-hud #world-hud .mobile-fullscreen small:not(:empty) {
    position:absolute;bottom:100%;width:135px;padding:4px;
    color:#f3d8a3;background:#171515;border:1px solid #8c7147;
  }
  .mobile-hud #world-hud .mobile-fullscreen small:empty,
  .mobile-hud main.ui-open #world-hud .mobile-fullscreen,
  .mobile-hud #world-hud:has(#chat-content:not([hidden])) .mobile-fullscreen {display:none}
}


@media (orientation:landscape) {
  .mobile-hud #world-hud .hud-status-stack .party-hud:not([hidden]) {
    position:relative;inset:auto;width:var(--status-width);max-width:100%;box-sizing:border-box;
    padding:2px;background:var(--hud-iron);
  }
  .mobile-hud #world-hud .party-hud-head {
    gap:3px;border-bottom:1px solid #765d36;padding-bottom:2px;
  }
  .mobile-hud #world-hud .party-hud-head button:not([hidden]) {
    display:block;min-height:29px;padding:1px 5px;background:#201b17;color:#efd4a0;
  }
  .mobile-hud #world-hud #nearby-party:not([hidden]) {
    display:block;width:auto;max-height:clamp(52px,23dvh,136px);scrollbar-color:#947443 #171617;
  }
  .mobile-hud #world-hud #nearby-party button {
    grid-template-columns:minmax(0,.95fr) minmax(35px,1fr);grid-template-rows:repeat(2,4px);
    align-content:center;align-items:center;gap:2px 5px;min-height:27px;padding:2px 4px;
    border-top:1px solid #6e543064;background:linear-gradient(90deg,#221f1c,#17191b);
  }
  .mobile-hud #world-hud #nearby-party button strong {grid-row:1/span 2;grid-column:1;font-size:10px}
  .mobile-hud #world-hud #nearby-party button progress {grid-column:2;height:4px;margin:0}
  .mobile-hud #world-hud #nearby-party button:hover {background:#3b3021}
}

@media (orientation:landscape) and (max-height:375px) {
  .mobile-hud #world-hud #nearby-party:not([hidden]) {max-height:clamp(28px,calc(100dvh - 282px),72px)}
}


@media (orientation:landscape) {
  .mobile-hud #world-hud.show-joystick #movement-stick {
    background:radial-gradient(circle,#2b271613 0 58%,#17140e42 59% 67%,#c0a06c63 68% 70%,#18150d2b 71%);
    border-color:#d8be8570;box-shadow:inset 0 0 0 2px #21190c57;
  }
  .mobile-hud #world-hud #movement-stick::before {opacity:.46}
  .mobile-hud #world-hud #movement-stick span {
    background:radial-gradient(circle at 40% 32%,#ab956354,#4d43295c);
    border-color:#d2ba8092;box-shadow:inset 0 0 0 1px #5f4b2a8c,0 1px 3px #0008;
  }
  .mobile-hud #world-hud.show-joystick #movement-stick.is-held {
    border-color:#ead29acc;box-shadow:inset 0 0 0 2px #9c78485e,0 1px 6px #17130dc2;
  }
  .mobile-hud #world-hud #movement-stick.is-held::before {opacity:.94}
  .mobile-hud #world-hud #movement-stick.is-held span {
    background:radial-gradient(circle at 40% 32%,#d2ba83bf,#594831af);
    border-color:#f0d39c;
  }
}
@media (orientation:landscape) and (prefers-reduced-motion:no-preference) {
  .mobile-hud #world-hud #movement-stick:not(.is-held) span {transition:transform 120ms ease-out}
}

/* Combat controls use separate silhouettes for actions, skills and page selection. */
@media (orientation:landscape) {
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {
    display:grid;place-content:center;justify-items:center;gap:1px;
    background:repeating-linear-gradient(122deg,#e2a77e0d 0 1px,transparent 1px 4px),
      radial-gradient(ellipse at 40% 16%,#a35c3c,#652b24 52%,#32171a 100%);
    border:1px solid #dfab74;
    box-shadow:inset 0 0 0 2px #381b14,inset 0 0 0 4px #d9ae825c,0 3px 7px #000c;
    font-size:clamp(10px,2.45dvh,15px);
  }
  .mobile-hud #world-hud #action-bar .combat-keys [data-basic-action=attack] .action-art {
    display:block;width:32px;height:32px;min-width:0;margin:0;border:0;border-radius:50%;
    box-shadow:none;opacity:.92;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=target] {
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding-inline:3px;
    border-color:#8ca8b4;background:linear-gradient(#273c43,#101c23);
    box-shadow:inset 0 0 0 1px #49616c8c,0 2px 4px #0008;
  }
  .mobile-hud #world-hud #action-bar .combat-keys [data-basic-action=target] .action-art {
    display:block;width:18px;height:18px;flex:0 0 18px;margin:0;border:0;box-shadow:none;
    background-size:108px auto;background-position:-54px 0;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=target] span:not(.combat-shortcut) {
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .mobile-hud #world-hud #action-bar .action-page {
    display:grid;place-items:center;min-width:0;padding:0;border-radius:50%;width:37px;height:37px;
    border:1px solid #c5a36c;box-shadow:inset 0 0 0 2px #1a1811,0 2px 5px #000a;
    background:radial-gradient(circle,#17191a 0 57%,transparent 59%),
      repeating-conic-gradient(from 12deg,#b79b657a 0deg 3deg,#2c251c 4deg 27deg);
    font-weight:700;color:#f3db9e;
  }
  .mobile-hud #world-hud #action-bar .hunt-shortcut {
    background:var(--hud-iron);border:1px solid #8b744c;box-shadow:inset 0 0 0 1px #211912,0 2px 4px #0008;
  }
  .mobile-hud #world-hud #action-bar .hunt-shortcut.running {
    border-color:#efd186;box-shadow:inset 0 0 0 1px #694721,0 0 8px #c18a3b69;
  }
  .mobile-hud #world-hud #action-bar :is(.action-slot,.combat-keys button,.action-page):active {
    filter:brightness(1.28);
  }
}
@media (orientation:landscape) and (max-height:374px) {
  .mobile-hud #world-hud #action-bar .action-page {--x:38%;--y:78%;width:34px;height:34px}
}
@media (orientation:landscape) and (min-height:375px) {
  .mobile-hud #world-hud #action-bar .action-page {--x:81%;--y:31%;width:40px;height:40px}
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {--x:68%;--y:53%}
}

@media (orientation:landscape) and (min-height:520px) and (min-width:1000px) {
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {--x:66%}
}

@media (orientation:landscape) {
  .mobile-hud #inventory-panel .bag-selection-tray {display:none}
  .mobile-hud #inventory-panel .bag-selection-tray:has(.collection-detail:not([hidden])) {
    display:block;position:relative;order:1;flex:none;min-height:0;
    border:1px solid #90744b;background:#141518;
  }
  .mobile-hud #inventory-panel .inventory-footer {order:2}
  .mobile-hud #inventory-panel .bag-selection-tray .collection-detail {
    max-height:34dvh;overflow:auto;overscroll-behavior:contain;margin:0;
    padding:5px 39px 5px 6px;border:0;background:none;gap:5px;
  }
  .mobile-hud #world-controls #inventory-panel #close-bag-detail {
    position:absolute;z-index:1;top:2px;right:2px;width:34px;min-height:34px;
    margin:0;padding:0;font-size:19px;
  }
}

/* Landscape field instruments. The short layout also covers browser chrome on phones. */
@media (orientation:landscape) {
  .mobile-hud #world-hud {
    --map-size:clamp(64px,17dvh,112px);
    --rail-width:clamp(38px,5.3vw,58px);
    --plate:linear-gradient(165deg,#242226 0%,#17161a 47%,#100f12 95%);
    --edge:inset 0 1px #e7cfa074,inset 0 -1px #31251b,0 1px 2px #070609ad;
  }
  .mobile-hud #world-hud .hud-status-stack #player-status,
  .mobile-hud #world-hud #combat-panel {
    border:1px solid #927547;border-radius:0;background:var(--plate);
    box-shadow:inset 0 0 0 1px #33281b,inset 0 0 0 2px #b79a6557,0 2px 4px #0009;
  }
  .mobile-hud #world-hud .hud-status-stack {--status-width:clamp(140px,18vw,248px)}
  .mobile-hud #world-hud .hud-status-stack #player-status {padding:4px 6px 6px}
  .mobile-hud #world-hud #player-status::before,.mobile-hud #world-hud #player-status::after {
    inset:1px auto auto 1px;width:11px;height:11px;border:0;
    background:linear-gradient(135deg,#f8dda0,#af8b54 50%,#47301c);
    clip-path:polygon(0 0,100% 0,57% 20%,33% 21%,32% 34%,20% 56%,0 100%);
  }
  .mobile-hud #world-hud #player-status::after {inset:auto 1px 1px auto}
  .mobile-hud #world-hud #player-status header {margin:0 0 2px;padding:0;border:0}
  .mobile-hud #world-hud #player-status :is(#open-status,.hud-fold) {min-height:22px}
  .mobile-hud #world-hud #player-status #hud-name {font:600 clamp(12px,2.5dvh,17px)/1.1 "Segoe UI",sans-serif}
  .mobile-hud #world-hud #player-status .vital {height:clamp(10px,2.3dvh,15px);min-height:0}
  .mobile-hud #world-hud #player-status .vital-cp i {background:linear-gradient(#ffe198,#d59a37 44%,#995721)}
  .mobile-hud #world-hud #player-status .vital-hp i {background:linear-gradient(#fc6987,#bc123e 44%,#760c2d)}
  .mobile-hud #world-hud #player-status .vital-mp i {background:linear-gradient(#58cdf3,#1178cf 44%,#124988)}
  .mobile-hud #world-hud #player-status .vital-exp i {background:linear-gradient(#d8d0fd,#ada1c7 48%,#736784)}
  .mobile-hud #world-hud #hud-radar:not([hidden]) {right:calc(var(--hud-right) + var(--rail-width) + 3px);background:#141316c9;border-color:#766044;box-shadow:var(--edge)}
  .mobile-hud #world-hud #hud-radar .radar-zoom:not([hidden]) {
    grid-area:1/1;grid-template-columns:repeat(2,24px);align-self:end;justify-self:end;
    margin:0;padding:0;gap:1px;background:none;
  }
  .mobile-hud #world-hud #hud-radar .radar-zoom button {height:24px;min-height:24px;background:#17151bc7;font-size:13px}
  .mobile-hud #world-hud #hud-radar #radar-record {grid-row:2;font:600 9px/1.3 "Segoe UI",sans-serif}
  .mobile-hud #world-hud #hud-radar #hunt-radar {grid-row:3;min-height:22px;padding:1px;font-size:9px;background:var(--plate)}
  .mobile-hud #world-hud .mobile-rail {top:calc(var(--hud-top) + 41px);gap:2px}
  .mobile-hud #world-hud .mobile-rail button,.mobile-hud main.in-world:not(.ui-open) button#world-ui-toggle {
    width:clamp(38px,5.3vw,58px);height:39px;min-height:39px;
    font-size:9px;letter-spacing:0;background:linear-gradient(155deg,#2c2829,#101014 70%);
    border-color:#86714f;box-shadow:inset 0 1px #c9b28755,0 1px 2px #0009;
  }
  .mobile-hud #world-hud .mobile-rail button::before {width:23px;height:22px}
  .mobile-hud #world-hud.show-joystick #movement-stick {
    background:#211c141e;border:1px solid #ccb68f80;box-shadow:inset 0 0 0 1px #100e132e;
  }
  .mobile-hud #world-hud #movement-stick:not(.is-held)::before {opacity:0}
  .mobile-hud #world-hud #movement-stick:not(.is-held) span {background:#9c856344;border:1px solid #cfb8878c;box-shadow:none}
  .mobile-hud #world-hud #action-bar .action-slot {
    padding:1px;border:1px solid #c8ac71;background:#1d1a16;
    box-shadow:0 0 0 1px #3b2f24,0 1px 3px #0b080999;
  }
  .mobile-hud #world-hud #action-bar .action-slot .action-art img {object-fit:cover}
  .mobile-hud #world-hud #action-bar .action-slot:has(.empty-slot) {background:#1714193d;border-color:#a5916c77;box-shadow:none}
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {
    overflow:hidden;padding:0;align-content:end;border-color:#c7ac7a;
    background:radial-gradient(circle at 48% 34%,#283a42,#12151a 75%);box-shadow:var(--edge);
  }
  .mobile-hud #world-hud #action-bar .combat-keys [data-basic-action=attack] .action-art {
    position:absolute;inset:0;width:100%;height:100%;background-size:600% auto;background-position:80% 0;opacity:1;
  }
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] span {
    position:relative;width:100%;padding:2px 0 4px;background:linear-gradient(transparent,#101015e8);font-size:10px;
  }
  .mobile-hud #world-hud #action-bar .combat-keys [data-basic-action=target] .action-art {display:none}
  .mobile-hud #world-hud #chat-preview:not(:empty) {background:none;text-shadow:0 1px 2px #000,1px 0 2px #000}
}
@media (orientation:landscape) and (min-width:650px) and (min-height:285px) and (max-height:374px) {
  .mobile-hud #world-hud:not([data-bar-size=large]) {--touch-slot:clamp(31px,9.9dvh,37px)}
  .mobile-hud #world-hud #action-bar {width:calc(6.6 * var(--touch-slot));height:calc(5.2 * var(--touch-slot))}
  .mobile-hud #world-hud #action-bar .action-slot {width:var(--touch-slot);height:var(--touch-slot);min-height:0}
  .mobile-hud #world-hud #auxiliary-bar .belt-row:first-child {display:grid}
  .mobile-hud #world-hud #auxiliary-bar {--belt-slot:clamp(24px,7.4dvh,28px)}
  .mobile-hud #world-hud #action-bar .action-page {--x:81%;--y:31%;width:var(--touch-slot);height:var(--touch-slot)}
  .mobile-hud #world-hud #action-bar [data-basic-action=attack] {--x:68%;--y:53%}
}

/* Keep the equipment rack and the icon grid in the same landscape window. */
@media (orientation:landscape) {
  .mobile-hud main.in-world #world-controls.window-open:has(#inventory-panel.active-window) {
    top:max(5px,env(safe-area-inset-top));bottom:auto;
    left:max(5px,env(safe-area-inset-left));right:max(5px,env(safe-area-inset-right));
    width:auto;max-width:1320px;padding:0;background:none;border:0;box-shadow:none;
  }
  .mobile-hud main.in-world #inventory-panel.active-window {
    --bag-cell:clamp(36px,10dvh,54px);
    margin:0;padding:6px;gap:4px;width:100%;
    max-height:calc(var(--window-visible-height,100dvh) - max(5px,env(safe-area-inset-top)) - max(5px,env(safe-area-inset-bottom)) - 3px);
    border:1px solid #b19762;border-radius:2px;background:var(--hud-iron);
    box-shadow:inset 0 0 0 2px #211913,inset 0 0 0 3px #8a6d445e,0 4px 18px #000b;
  }
  .mobile-hud #world-controls #inventory-panel .window-heading {
    background:linear-gradient(180deg,#24211b,#111214);border:0;border-bottom:1px solid #8c7147;
    margin:0;padding:0 0 3px;min-height:32px;
  }
  .mobile-hud #inventory-panel .window-heading h2 {font-size:clamp(15px,4dvh,23px);margin:0;padding-left:6px}
  .mobile-hud #world-controls #inventory-panel #close-inventory {min-height:30px;padding:3px 10px}
  .mobile-hud #inventory-panel .collection-body:not([hidden]) {
    grid-template-columns:clamp(128px,21vw,240px) minmax(0,1fr);
    gap:4px 6px;padding:1px 3px 3px;overscroll-behavior:contain;scrollbar-color:#9a7847 #131315;
  }
  .mobile-hud #inventory-panel .collection-body>#equipment-view {
    grid-row:1 / span 7;align-self:start;padding:4px;
    border:1px solid #66543a;background:#101114;
  }
  .mobile-hud #inventory-panel .equipment-board {
    grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:0;
    border:0;background:none;
  }
  .mobile-hud #inventory-panel .equipment-portrait {
    grid-column:1/-1;grid-row:auto;min-height:20px;align-items:start;background:none;border:0;border-bottom:1px solid #5e4b31;
  }
  .mobile-hud #inventory-panel .equipment-portrait strong {margin:0 0 3px;color:#e7ca8e}
  .mobile-hud main.in-world #inventory-panel .gear-slot {
    min-height:35px;padding:2px;border:1px solid #3b342b;background:#1a1816;border-radius:2px;
  }
  .mobile-hud #inventory-panel .gear-slot>span {display:none}
  .mobile-hud #inventory-panel .gear-slot-art {box-shadow:none;opacity:.65}
  .mobile-hud #inventory-panel .gear-slot.occupied .gear-slot-art {opacity:1;box-shadow:0 0 0 1px #9f8251}
  .mobile-hud #inventory-panel .collection-tabs {
    position:sticky;top:0;z-index:1;
    grid-row:1;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:0;padding-bottom:2px;background:#151416;
  }
  .mobile-hud #world-controls #inventory-panel .collection-tabs button {
    min-height:32px;padding:2px 1px;border:1px solid #776046;
    background:linear-gradient(#28241e,#131418);color:#d5c19c;font-size:clamp(9px,1.5vw,13px);
  }
  .mobile-hud #world-controls #inventory-panel .collection-tabs button[aria-pressed=true] {
    color:#fff1c4;border-color:#bca066;background:linear-gradient(#a17f42,#493415);box-shadow:inset 0 0 0 1px #d2af6833;
  }
  .mobile-hud #inventory-panel .inventory-modes {display:flex;flex-wrap:wrap;margin:0;gap:3px}
  .mobile-hud #world-controls #inventory-panel .inventory-modes button {min-height:29px;padding:2px 5px}
  .mobile-hud #inventory-panel .collection-toolbar {flex-wrap:nowrap}
  .mobile-hud #inventory-panel:not(.bag-search-open) #bag-tools {display:none}
  .mobile-hud #inventory-panel[data-view=gear] #bag-search-toggle {display:none}
  .mobile-hud #inventory-panel .collection-toolbar :is(input,select,button) {min-height:30px;padding:3px 5px}
  .mobile-hud #inventory-panel .collection-toolbar input {flex:2 1 100px;font-size:16px}
  .mobile-hud #inventory-panel .collection-toolbar select {flex:1 1 112px}
  .mobile-hud #inventory-panel:not(.bag-list-view)[data-view=bag] #inventory-items {
    grid-template-columns:repeat(auto-fill,minmax(var(--bag-cell),1fr));grid-auto-rows:var(--bag-cell);
    align-content:start;gap:3px;padding:3px;max-height:none;overflow:visible;
    border:1px solid #52432f;background:#101115;
  }
  .mobile-hud #world-controls #inventory-panel:not(.bag-list-view)[data-view=bag] #inventory-items .collection-tile {
    height:100%;min-height:0;padding:2px;border:1px solid #55422d;border-radius:1px;
    background:#181719 url('samurai-slot.png') center/100% 100% no-repeat;
  }
  .mobile-hud #inventory-panel:not(.bag-list-view)[data-view=bag] #inventory-items .collection-tile .action-art {
    width:100%;height:100%;max-width:var(--bag-cell);max-height:var(--bag-cell);margin:0;
  }
  .mobile-hud #inventory-panel:not(.bag-list-view)[data-view=bag] #inventory-items .collection-tile>.collection-caption {display:none}
  .mobile-hud #inventory-panel:not(.bag-list-view)[data-view=bag] #inventory-items .collection-corner-badge {
    display:block;position:absolute;inset:1px 1px auto auto;pointer-events:none;
    padding:0 2px;color:#f9df9d;background:#3a2113d9;text-shadow:0 1px #000;
    font:700 10px/1.25 "Segoe UI",sans-serif;
  }
  .mobile-hud #inventory-panel:not(.bag-list-view)[data-view=bag] #inventory-items .collection-badge {
    right:1px;bottom:1px;background:#171317df;color:#fff2d1;text-shadow:0 1px #000;
  }
  .mobile-hud #inventory-panel .inventory-footer {margin:0;padding:3px 6px;border:1px solid #655234;background:#111215}
  .mobile-hud #inventory-panel .inventory-footer .collection-pages:not([hidden]) {
    display:flex;gap:4px;margin:0 0 0 auto;align-items:center;
  }
  .mobile-hud #world-controls #inventory-panel .inventory-footer .collection-pages button {
    min-width:34px;min-height:32px;padding:0 3px;border-color:#9a7b4b;background:#211c18;
  }
  .mobile-hud #inventory-panel .inventory-footer .collection-pages output {font-variant-numeric:tabular-nums;color:#ebce95}
  .mobile-hud #inventory-panel .inventory-footer #inventory-summary {flex-direction:row-reverse;align-items:center}
  .mobile-hud #inventory-panel .inventory-footer #inventory-load-text::before {
    content:"";display:inline-block;width:20px;height:20px;vertical-align:middle;margin-inline-end:4px;
    background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAALP0lEQVR4nOVZe3BU1R3+7rl3d7OP7DtvkhgSCIRQiUJi5aVCi/hqB4ECNYpYZAQZhVak6lRqaZWBOkXEFpUCSh0E1MpDCipiBWtQ0QR5hzdJyGOzu9nse++9nd/lpKYU/+gM7e7MfjM7u2fPuY/fd37vI6iqCoIgCHoAFgAO/k3jq4kYgG4AXvpWVZXGSYfU6zcJXQpgGIAyAM6r/KxOAI0APgdwko9TigAzETDltu+vBAQwgSE324G8LDfyCvrA5s6G1eqEPTsHJosZiqxAEBgknQRJp4ccj8Pb0Y5QwIdQMIhzpxvh9XWhrb0DXp8XIhOh0+vw4mtbpwK4mIoEcAiACjBJgCrLCEcj8Hk9YIyBMQlMkhCNhsGYACbqoNPpIOn1iHaH0NbSjGi4G4FAAMFgCMFgANFIGKqiQhE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BSn0vJlv4/+Zw9GojZQ5HhSsRkE5gSHMwpDkY0hwMaQ6GNAdDmoMhzcGQ5mBIczCkORjSHAxpDoY0B0OagyHNwZDmYEhzMKQ5GNIcDGkOhjQHQ5qDIc3BkOZgSHOwZL9AsvFPS8LN2HcwU+IAAAAASUVORK5CYII=') center/contain no-repeat;
  }
  .mobile-hud #inventory-panel .inventory-footer #inventory-summary strong {display:flex;align-items:center;gap:5px;color:#f4d799}
  .mobile-hud #inventory-panel .inventory-footer #inventory-summary strong::before {
    content:"";width:20px;height:20px;background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAFI0lEQVR4nO2Wa2wUVRTHf3dmZ2a33e5uty/6gra0lFJKg7wCVECUR8AYYxvFxKiJAgEUY0yE+CCGL0BCjErU+EANMRUhxAiUqAkSqZQiaAWkUKFQCrSl7912u223u9eMDIkhPBaV+EFOcjOZL/f87v/8z7lXSCmJJoQQNsAAdCAWKACmAZlAK3AI+BlokVIORbUpIG4FIIRwAFnAVEVhlkBkSCnTI5IEr0PYszM0tblThps6QgPAKeBtYD/QJqUM/y0AIYQGuIE065SveOI098LpKYbbqSl97a1MLw4qJdO8qr/ToO5UP+FYI3LgeP/Qjn2+QFdveDPwppSy+bYAhBAqEA9MBJ4A5tgVjOwUzT7zngyjqDAZd5ydYONRnn1nDNhd1H1xkrqadmbMzcHjlez4tj2ydH2rr8MfWQp8daty2K75TwCWqIIX8tLUmOx0hzY2U9XGjXQRHx9D7blu6s85aDs/yMzqVNJHODhcLzl9ro/ufR08OFOhtNShfLrTiKmoDj4N/GD549YA4orJJjh1XnygSHW/tSpNHVGUSMQf4WxLkEBfF46YAQ5UqRxtjrBhTSX3zfbidOuMyInFkB1s3Rbi8dluYpSIqeQkYGTUAFyp+aOZyZqxeUOu6s11sGd7M74+nYxMjZQUJ5PyUyga38eRmjZqDrfi1NqYPDUOuyrpH4gQm5jJ3iMKtkDApgkcIcnDQoiTUsruGwEo1uldZr2BBaGw1L1F2ZCeR8IwG3bRT3tLP5dbQHUMI6lkDPGK4PnlGaxcbidT95MWG2DuY2UkpibhSDXY+HoWq8s8Zvc8Y3aPpe71FRBCxADzdEXZlO5JcOVnuLXj3zVQMDWR9otBfq8NMISOO15Sd6aRC429/FgfYdWc4eTMX0BifjshfydOw4cxdIbRs4pIm+jh3rqQyvZuc14stLxwXTPagCJg06JSt3v1c8Xaicoh1r9bTc7OM5RMSWLcJCeNjf0E/EF6GnqorQlwKQS7tzVQML8M19gS4AC0bmP8VJ2EPB1+66aqusPc3/SC66rSNwK4X4W4Va96tYJiSfhcG7UnQgz4I6xY4ULXJCoBensF8Z5YJk2MJbiphfLPm0jOquCpNebI6IBEGwlqOrKuhS0fnWfr971mf/cBlcDgzQCcuknYBBRf4tBPDYxKtbF23Wjcei9HD9YjA5CZMwzdiCcjWeGNNbEsXlbPZxv3kmfsI6cwkQtNBj2+MGdPdfF+RVCeCtADbAH23Ej+qwAHg7Dkk/e69NJfdaW5VWXKNDf5YzSqvmzDLjzMK0ulR4ap/LqNpMxcXKkqJZN1RiVEqPxFp2R1a1DCoKpgC0cwx685lj+0VpO8ybwX1vB5OcZQlhV6lbjhmmBGUQwrywvA5gNlLthLYPA0NO6GXA/711byzZ4e6noUDjUzcKkrYrZZuZXYLP5BoBbwSSkjN0r+V4hcS65OB/TPShCyep1HSr9576yTUh6TUn4spRwv23elykdykUkGIU3BZyWaY80RJ2C2n808dDQLSx2zFOnAk8BFAf5CN0MfLHfI81WzZffpRfJMxQRZvsqQC/Mxx1zAvO2A14DRgD3ahNcucc1lZNLnWCCLk3RhFGZhc7ukcvninwYPd11x9DFgrfkGkFL6+SchrycLeIGHBOwC2oEuszxAA/CSNeOjljlqBa7zJki2FDG/gxaAuXpv5uzbCRHFi0ixjGpG5N9KHDXAnQ7ljme4C3CLUPiPQ7kLwN0S/Meh/O8B/gA85X4yq/s9gwAAAABJRU5ErkJggg==') center/contain no-repeat;
  }
}



/* Mobile player status. Scale the 258px design as a unit. */
.player-hud-neighbors {display:contents}
.mobile-hud #world-hud .hud-status-stack:has(#player-hud-grip) {
  --player-hud-viewport-scale:1;
  --player-hud-size-multiplier:.525;
  --player-hud-scale:calc(var(--player-hud-viewport-scale) * var(--player-hud-size-multiplier));
  --player-hud-base-width:calc(258px * var(--player-hud-viewport-scale));
  --player-hud-left:max(var(--hud-left),calc(env(safe-area-inset-left) + 22px));
  --player-hud-lane:calc(100vw - var(--player-hud-left) - var(--hud-right));
  --player-hud-size:calc(min(var(--player-hud-base-width),var(--player-hud-lane)) * var(--player-hud-size-multiplier));
  left:var(--player-hud-left);
  width:min(var(--player-hud-lane),calc(var(--player-hud-base-width) + 110px));
}
.mobile-hud #world-hud .hud-status-stack #player-status:has(#player-hud-grip) {
  position:relative;
  width:min(var(--player-hud-size),100%);
  margin:var(--player-hud-y,0px) 0 0 var(--player-hud-x,0px);
  padding:calc(4px * var(--player-hud-scale)) calc(8px * var(--player-hud-scale)) calc(8px * var(--player-hud-scale));
  border:0;
  border-radius:calc(6px * var(--player-hud-scale));
  background:rgb(0 0 0 / .32);
  box-shadow:none;
  color:#fcfdf9;
  font:500 calc(max(11px,12px * var(--player-hud-viewport-scale)) * var(--player-hud-size-multiplier))/1.2 "Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip)::before,
.mobile-hud #world-hud #player-status:has(#player-hud-grip)::after {content:none}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) :is(header,.vital,.vital-value,.hud-level,button) {
  text-shadow:none;
  box-shadow:none;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) header {
  position:relative;
  display:flex;
  align-items:center;
  gap:calc(8px * var(--player-hud-scale));
  margin:0 0 calc(5px * var(--player-hud-scale));
  padding:0 0 0 calc(21px * var(--player-hud-scale));
  border:0;
}
.mobile-hud #world-hud #player-status #player-hud-grip {
  position:absolute;
  z-index:1;
  inset:calc(-4px * var(--player-hud-scale)) auto auto calc(21px * var(--player-hud-scale) - 44px);
  display:grid;
  place-items:start end;
  width:44px;height:44px;
  margin:0;
  /* Center the 15px dots on the 23px header row within the 44px pointer target. */
  padding:calc(8px * var(--player-hud-scale)) calc(10px * var(--player-hud-scale)) 0 0;
  border:0;
  background:none;
  color:rgb(250 248 240 / .82);
  touch-action:none;
  cursor:grab;
}
.mobile-hud #world-hud #player-status #player-hud-grip:active {cursor:grabbing}
.mobile-hud #world-hud #player-hud-grip span {
  width:calc(10px * var(--player-hud-scale));
  height:calc(15px * var(--player-hud-scale));
  background:radial-gradient(circle,currentColor calc(1px * var(--player-hud-size-multiplier)),transparent calc(1.3px * var(--player-hud-size-multiplier))) 0 0 / 50% 33.333% repeat;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #open-status {
  flex:1;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  min-height:calc(23px * var(--player-hud-scale));
  gap:calc(8px * var(--player-hud-scale));
  touch-action:manipulation;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .hud-level {
  display:flex;width:auto;height:auto;
  background:none;border:0;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .hud-level small {display:none}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #hud-level {
  font:500 calc(20px * var(--player-hud-scale))/1 "Segoe UI",sans-serif;
  color:#ead8b1;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #hud-name {
  min-width:0;
  font:600 calc(max(13px,16px * var(--player-hud-viewport-scale)) * var(--player-hud-size-multiplier))/1.2 "Segoe UI",sans-serif;
  color:#fcfdf9;
  text-shadow:none;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #player-vitals {gap:calc(3px * var(--player-hud-scale))}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:0;
  height:calc(21px * var(--player-hud-scale));
  padding:0 calc(7px * var(--player-hud-scale));
  font:inherit;
  color:#fff;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital b {
  width:auto;
  color:inherit;
  font-weight:600;
  letter-spacing:calc(.5px * var(--player-hud-size-multiplier));
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital-value {
  flex:0 1 auto;
  text-align:right;
  color:inherit;
  white-space:nowrap;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital-track {
  inset:0;
  overflow:hidden;
  border:0;
  border-radius:calc(3px * var(--player-hud-scale));
  outline:0;
  box-shadow:none;
  background:rgb(0 0 0 / .46);
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital-track i {
  border-radius:inherit;
  transform-origin:left;
}
.mobile-hud {
  --mobile-hud-cp:#a46a00;
  --mobile-hud-hp:#c41d10;
  --mobile-hud-mp:#155ed1;
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital-cp i {background:var(--mobile-hud-cp)}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital-hp i {background:var(--mobile-hud-hp)}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) .vital-mp i {background:var(--mobile-hud-mp)}
.mobile-hud .party-cp {--gauge:var(--mobile-hud-cp)}
.mobile-hud .party-hp {--gauge:var(--mobile-hud-hp)}
.mobile-hud .party-mp {--gauge:var(--mobile-hud-mp)}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #hud-exp {
  flex:none;
  height:auto;
  margin:0;
  padding:0;
  color:#fff;
  font-size:calc(max(11px,13px * var(--player-hud-viewport-scale)) * var(--player-hud-size-multiplier));
}
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #hud-exp > :is(b,.vital-track),
.mobile-hud #world-hud #player-status:has(#player-hud-grip) #hud-charges,
.mobile-hud #world-hud:not(.show-status) #player-status:has(#player-hud-grip) #hud-exp {display:none}

@media (orientation:landscape) {
  .mobile-hud #world-hud .hud-status-stack:has(#player-hud-grip) {
    --player-hud-neighbor-width:clamp(96px,18vw,152px);
    --player-hud-lane:calc(100vw - var(--player-hud-left) - var(--hud-right) - var(--rail-width) - var(--map-size) - var(--player-hud-neighbor-width) - 54px);
  }
  .mobile-hud #world-hud .player-hud-neighbors {
    position:absolute;
    top:0;
    left:calc(100% + 8px);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    width:var(--player-hud-neighbor-width);
  }
  .mobile-hud #world-hud .hud-status-stack .player-hud-neighbors #combat-panel,
  .mobile-hud #world-hud .hud-status-stack .player-hud-neighbors .party-hud:not([hidden]) {
    position:static;
    inset:auto;
    width:100%;
    transform:none;
  }
  .mobile-hud #world-hud .player-hud-neighbors #hud-effects:not([hidden]) {
    position:static;
    order:-1;
    grid-template-columns:repeat(auto-fit,var(--effect-size));
    width:100%;
  }
  .mobile-hud #world-hud .player-hud-neighbors #combat-panel {order:-2}
  .mobile-hud #world-hud #player-status:has(#player-hud-grip) #hud-guide {
    left:auto;
    right:0;
  }
  .mobile-hud #world-hud:has(#player-hud-grip) #hud-radar #quest-tracker {
    position:static;
    inset:auto;
    grid-row:4;
    grid-template-columns:minmax(0,1fr) 22px;
    gap:1px 2px;
    width:100%;
    max-width:none;
    padding:2px;
  }
  .mobile-hud #world-hud:has(#player-hud-grip) #quest-tracker :is(#quest-tracker-name,#quest-tracker-distance) {min-height:18px}
  .mobile-hud #world-hud:has(#player-hud-grip) #quest-tracker #quest-tracker-items {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .mobile-hud #world-hud:has(#player-hud-grip) #quest-tracker #clear-quest-tracker {width:22px;min-width:0;min-height:36px}
}
@media (orientation:landscape) and (max-width:680px) {
  .mobile-hud #world-hud .hud-status-stack:has(#player-hud-grip) {--player-hud-viewport-scale:.9}
}
@media (orientation:landscape) and (max-height:375px) {
  .mobile-hud #world-hud .player-hud-neighbors .party-hud #nearby-party:not([hidden]) {display:none}
}
@media (orientation:landscape) and (max-width:540px) {
  .mobile-hud #world-hud .hud-status-stack:has(#player-hud-grip) {
    --player-hud-viewport-scale:.82;
    --player-hud-neighbor-width:88px;
  }
}
@media (orientation:portrait) and (max-width:340px) {
  .mobile-hud #world-hud .hud-status-stack:has(#player-hud-grip) {--player-hud-viewport-scale:.9}
}
@media (orientation:landscape) and (min-width:1000px) and (min-height:500px) {
  .mobile-hud #world-hud .hud-status-stack:has(#player-hud-grip) {--player-hud-viewport-scale:1.08}
}

/* Compact mobile chat: preview, expanded history and minimized launcher. */
.mobile-hud #world-hud #mobile-chat {
  --mobile-chat-text:#fcfdf9;
  --mobile-chat-quiet:#d2d5cd;
  --mobile-chat-warm:#ead8b1;
  --mobile-chat-general:var(--mobile-chat-text);
  --mobile-chat-clan:#a7a3ff;
  --mobile-chat-party:#a9e4a9;
  --mobile-chat-whisper:#edb9ed;
  --mobile-chat-shout:#ffc38b;
  --mobile-chat-trade:#f3d578;
  --mobile-chat-system:#d9cba9;
  --mobile-chat-damage:#ffbab0;
  --mobile-chat-alliance:#77ff99;
  --mobile-chat-radius:6px;
  --mobile-chat-touch:44px;
  --mobile-chat-log-height:125px;
  position:absolute;
  inset:auto auto var(--hud-bottom) var(--hud-left);
  z-index:4;
  display:none;
  grid-template-columns:minmax(0,1fr);
  justify-items:start;
  gap:3px;
  width:min(388px,calc(100% - var(--hud-left) - var(--hud-right)));
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  color:var(--mobile-chat-text);
  font:13px/1.25 "Segoe UI",Arial,sans-serif;
  text-shadow:none;
  pointer-events:none;
  color-scheme:dark;
}
.mobile-hud main.in-world #world-hud #mobile-chat:not([hidden]) {display:grid}
.mobile-hud #world-hud #mobile-chat * {box-sizing:border-box}
.mobile-hud #world-hud #mobile-chat [hidden] {display:none!important}
.mobile-hud #world-hud:has(#mobile-chat:not([hidden])) :is(#chat-panel,#chat-preview) {display:none}
.mobile-hud #world-hud:has(#mobile-chat:not([hidden])[data-state="expanded"]) #movement-stick {display:none}
.mobile-hud #world-hud #mobile-chat button {
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:var(--mobile-chat-radius);
  background:none;
  box-shadow:none;
  color:inherit;
  font:inherit;
  text-shadow:none;
  touch-action:manipulation;
  pointer-events:auto;
}
.mobile-hud #world-hud #mobile-chat button:focus-visible,
.mobile-hud #world-hud #mobile-chat input:focus-visible {outline:2px solid var(--mobile-chat-warm);outline-offset:2px}
.mobile-hud #world-hud #mobile-chat [data-channel="general"] {--mobile-message-color:var(--mobile-chat-general)}
.mobile-hud #world-hud #mobile-chat [data-channel="clan"] {--mobile-message-color:var(--mobile-chat-clan)}
.mobile-hud #world-hud #mobile-chat [data-channel="party"] {--mobile-message-color:var(--mobile-chat-party)}
.mobile-hud #world-hud #mobile-chat [data-channel="whisper"] {--mobile-message-color:var(--mobile-chat-whisper)}
.mobile-hud #world-hud #mobile-chat [data-channel="shout"] {--mobile-message-color:var(--mobile-chat-shout)}
.mobile-hud #world-hud #mobile-chat [data-channel="trade"] {--mobile-message-color:var(--mobile-chat-trade)}
.mobile-hud #world-hud #mobile-chat [data-channel="system"] {--mobile-message-color:var(--mobile-chat-system)}
.mobile-hud #world-hud #mobile-chat [data-channel="combat"] {--mobile-message-color:var(--mobile-chat-damage)}
.mobile-hud #world-hud #mobile-chat [data-channel="alliance"] {--mobile-message-color:var(--mobile-chat-alliance)}
.mobile-hud #world-hud #mobile-chat [data-channel] {color:var(--mobile-message-color,var(--mobile-chat-text))}
.mobile-hud #world-hud #mobile-chat[data-state="preview"] {
  width:min(282px,calc(100% - var(--hud-left) - var(--hud-right)));
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview {
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--mobile-chat-touch);
  align-items:end;
  gap:3px 2px;
  width:100%;
  pointer-events:none;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview-open {
  grid-area:2 / 1;
  min-width:0;
  min-height:var(--mobile-chat-touch);
  overflow:hidden;
  padding:3px 7px;
  background:rgb(0 0 0 / .26);
  text-align:left;
}
.mobile-hud #world-hud #mobile-chat :is(.mobile-chat-preview-lines,.mobile-chat-preview-events) {
  display:block;
  min-width:0;
  overflow:hidden;
  font-size:12px;
  line-height:13px;
  text-shadow:0 1px #000;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview-events {
  grid-area:1 / 1;
  padding:2px 7px;
  border-radius:var(--mobile-chat-radius);
  background:rgb(0 0 0 / .14);
  color:#e6e1d9;
  pointer-events:none;
}
.mobile-hud #world-hud #mobile-chat :is(.mobile-chat-preview-lines,.mobile-chat-preview-events) > * {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview-icon {
  position:relative;
  grid-area:2 / 2;
  display:grid;
  place-items:end center;
  width:var(--mobile-chat-touch);
  height:var(--mobile-chat-touch);
  padding-bottom:6px;
  color:var(--mobile-chat-warm);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview-icon::before {
  position:absolute;
  inset:auto 6px 0;
  height:31px;
  border-radius:var(--mobile-chat-radius);
  background:rgb(0 0 0 / .58);
  content:"";
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview-icon svg {
  position:relative;
  width:19px;
  height:19px;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-preview-lines :is(.mobile-chat-tag,.mobile-chat-author) {font-weight:600}
.mobile-hud #world-hud #mobile-chat :is(.mobile-chat-hide,.mobile-chat-contract,.mobile-chat-send) {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-width:var(--mobile-chat-touch);
  height:var(--mobile-chat-touch);
  padding:0 8px;
  color:var(--mobile-chat-warm);
  font-size:12px;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-launch {
  position:relative;
  display:grid;
  place-items:center;
  width:var(--mobile-chat-touch);
  height:var(--mobile-chat-touch);
  padding:0;
  color:var(--mobile-chat-warm);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-launch::before {
  content:"";
  position:absolute;
  inset:2px;
  border-radius:var(--mobile-chat-radius);
  background:rgb(0 0 0 / .84);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-launch :is(i,svg) {
  --icon-size:24px;
  position:relative;
  width:24px;
  height:24px;
  stroke-width:1.65;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-unread {
  position:absolute;
  top:5px;
  right:5px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--mobile-chat-warm);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-panel {
  position:static;
  width:100%;
  min-width:0;
  padding:0 10px 6px;
  border:0;
  border-radius:var(--mobile-chat-radius);
  background:rgb(24 24 24 / .88);
  box-shadow:none;
  color:var(--mobile-chat-text);
  pointer-events:auto;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-panel[data-picker-open] {width:min(306px,100%);background:rgb(28 28 28 / .97)}
.mobile-hud #world-hud #mobile-chat .mobile-chat-header {
  display:flex;
  align-items:center;
  min-height:var(--mobile-chat-touch);
  border-bottom:1px solid rgb(255 255 255 / .13);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-context {
  display:flex;
  align-items:center;
  gap:6px;
  flex:1;
  min-width:0;
  min-height:var(--mobile-chat-touch);
  overflow:hidden;
  padding:0 7px 0 2px;
  font-weight:600;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-context :is(i,svg) {flex:none}
.mobile-hud #world-hud #mobile-chat .mobile-chat-context-label {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-hud #world-hud #mobile-chat .mobile-chat-picker {padding:4px 0}
.mobile-hud #world-hud #mobile-chat .mobile-chat-contract {margin-left:auto;gap:4px}
.mobile-hud #world-hud #mobile-chat :is(.mobile-chat-context,.mobile-chat-contract,.mobile-chat-hide) svg {--icon-size:16px;width:16px;height:16px}
.mobile-hud #world-hud #mobile-chat .mobile-chat-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-tile {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  min-height:var(--mobile-chat-tile-height,var(--mobile-chat-touch));
  padding:0 7px;
  background:color-mix(in srgb,var(--mobile-message-color,var(--mobile-chat-text)) 11%,transparent);
  font-weight:600;
  text-align:left;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-tile[aria-pressed="true"] {
  background:color-mix(in srgb,var(--mobile-message-color,var(--mobile-chat-text)) 22%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mobile-message-color,var(--mobile-chat-text)) 48%,transparent);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-tile[aria-pressed="true"]::after {content:"✓" / ""}
.mobile-hud #world-hud #mobile-chat .mobile-chat-picker-close {
  --icon-size:18px;
  grid-column:1 / -1;
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:var(--mobile-chat-tile-height,var(--mobile-chat-touch));
  padding:0 10px;
  color:var(--mobile-chat-quiet);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-picker-close svg {width:18px;height:18px}
.mobile-hud #world-hud #mobile-chat .mobile-chat-grid:has([data-chat-choice="9"]:not([hidden])) .mobile-chat-picker-close {grid-column:2}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log {
  --mobile-chat-scroll-thumb:rgb(255 255 255 / .24);
  display:grid;
  align-content:start;
  gap:4px;
  height:var(--mobile-chat-log-height);
  margin:0;
  padding:6px 1px;
  overflow:auto;
  overflow-wrap:anywhere;
  overscroll-behavior:contain;
  font-size:12px;
  -webkit-user-select:text;
  user-select:text;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log::-webkit-scrollbar {width:5px}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log > * {margin:0}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log button {min-height:24px;text-align:left;color:inherit}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log > .mobile-chat-row[data-channel] {color:var(--mobile-message-color,var(--mobile-chat-text))}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log::-webkit-scrollbar-track {background:transparent}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log::-webkit-scrollbar-thumb {background:var(--mobile-chat-scroll-thumb);border-radius:4px}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log::-webkit-scrollbar-button {display:none}
@supports not selector(::-webkit-scrollbar) {
  .mobile-hud #world-hud #mobile-chat .mobile-chat-log {scrollbar-width:thin;scrollbar-color:var(--mobile-chat-scroll-thumb) transparent}
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-panel[data-readonly] .mobile-chat-log {height:calc(var(--mobile-chat-log-height) + var(--mobile-chat-touch) + 5px)}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log :is(b,strong) {font-weight:600;color:inherit}
.mobile-hud #world-hud #mobile-chat .mobile-chat-log [data-whisper-reply] {min-height:24px;padding:0;background:none;text-align:left;color:inherit}
.mobile-hud #world-hud #mobile-chat .mobile-chat-form {
  display:flex;
  align-items:center;
  gap:5px;
  margin:0;
  padding:4px 0 0;
  border-top:1px solid rgb(255 255 255 / .13);
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-form input {
  flex:1;
  width:0;
  min-width:0;
  min-height:var(--mobile-chat-touch);
  margin:0;
  padding:0 8px;
  border:0;
  border-radius:var(--mobile-chat-radius);
  background:rgb(255 255 255 / .08);
  color:var(--mobile-message-color,var(--mobile-chat-text));
  font:16px "Segoe UI",Arial,sans-serif;
  text-shadow:none;
  pointer-events:auto;
  -webkit-user-select:text;
  user-select:text;
}
.mobile-hud #world-hud #mobile-chat .mobile-chat-form input::placeholder {color:inherit;opacity:1;font-size:14px}
.mobile-hud #world-hud #mobile-chat .mobile-chat-send {width:var(--mobile-chat-touch);padding:0;color:var(--mobile-chat-text)}
.mobile-hud #world-hud #mobile-chat .mobile-chat-send :is(i,svg) {--icon-size:20px;width:20px;height:20px}
.mobile-hud #world-hud #mobile-chat .mobile-chat-send:disabled {opacity:.46;cursor:default}
.mobile-hud #world-hud #mobile-chat .mobile-chat-send:active:enabled {background:rgb(255 255 255 / .08)}
@media (max-height:375px),(max-width:599px) {
  .mobile-hud #world-hud #mobile-chat {--mobile-chat-log-height:86px;--mobile-chat-tile-height:32px}
  .mobile-hud #world-hud #mobile-chat .mobile-chat-picker {padding:3px 0}
  .mobile-hud #world-hud #mobile-chat .mobile-chat-grid {gap:3px}
}
@media (max-width:399px) {
  .mobile-hud #world-hud #mobile-chat .mobile-chat-form input::placeholder {font-size:13px}
}
/* Keep fullscreen reachable beside the sheet and above the action arc. */
@media (orientation:landscape) {
  .mobile-hud #world-hud:has(#mobile-chat:not([hidden])[data-state="expanded"]) .mobile-fullscreen {
    left:min(calc(var(--hud-left) + 388px + 8px),calc(100% - var(--hud-right) - 34px));
    right:auto;
  }
}
@media (orientation:landscape) and (max-width:740px) {
  .mobile-hud #world-hud.show-bar:has(#mobile-chat:not([hidden])[data-state="expanded"]) .mobile-fullscreen {
    --mobile-chat-fullscreen-arc:calc(3.65 * var(--touch-slot));
    bottom:calc(var(--hud-bottom) + var(--mobile-chat-fullscreen-arc) + 8px);
  }
}
@media (orientation:landscape) and (max-width:740px) and (min-height:375px),
       (orientation:landscape) and (min-width:650px) and (max-width:740px) and (min-height:285px) {
  .mobile-hud #world-hud.show-bar:has(#mobile-chat:not([hidden])[data-state="expanded"]) .mobile-fullscreen {
    --mobile-chat-fullscreen-arc:calc(5.25 * var(--touch-slot));
  }
}
@media (orientation:landscape) and (min-width:650px) and (max-width:740px) and (min-height:285px) and (max-height:374px) {
  .mobile-hud #world-hud.show-bar:has(#mobile-chat:not([hidden])[data-state="expanded"]) .mobile-fullscreen {
    --mobile-chat-fullscreen-arc:calc(5.2 * var(--touch-slot));
  }
}
@media (orientation:portrait) {
  .mobile-hud #world-hud:has(#mobile-chat:not([hidden])[data-state="expanded"]) .mobile-fullscreen {
    position:absolute;
    left:var(--hud-left);
    right:auto;
    bottom:calc(var(--hud-bottom) + 300px);
    pointer-events:auto;
  }
}
@media (orientation:portrait) and (max-width:599px) {
  .mobile-hud #world-hud:has(#mobile-chat:not([hidden])[data-state="expanded"]) .mobile-fullscreen {bottom:calc(var(--hud-bottom) + 230px)}
}

/* Mobile target HUD */
#mobile-target-hud {display:none}
#mobile-target-hud[hidden],#mobile-target-hud [hidden] {display:none!important}

.mobile-hud #world-hud:has(#mobile-target-hud) #combat-panel {display:none!important}
.mobile-hud #world-hud #mobile-target-hud {
  --mobile-target-ink:#fffaf0;
  --mobile-target-quiet:#e2d9c4;
  --mobile-target-gold:#e8d1a0;
  --mobile-target-surface:rgb(0 0 0 / .32);
  --mobile-target-menu-surface:rgb(0 0 0 / .68);
  --mobile-target-clear-surface:rgb(182 49 45 / .96);
  --mobile-target-panel-width:var(--mobile-target-width,122px);
  position:fixed;
  inset:var(--hud-top,8px) auto auto 50%;
  transform:scale(.8);
  transform-origin:top left;
  z-index:3;
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  align-items:center;
  width:calc(var(--mobile-target-panel-width) + 44px);
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  overflow:visible;
  color:var(--mobile-target-ink);
  font:13px/1.2 "Segoe UI",Arial,sans-serif;
  pointer-events:none;
  color-scheme:dark;
}
.mobile-hud #world-hud #mobile-target-hud *,
.mobile-hud #world-hud #mobile-target-hud *::before,
.mobile-hud #world-hud #mobile-target-hud *::after {box-sizing:border-box}
.mobile-hud #world-hud #mobile-target-hud:has(.mobile-target-menu:not([hidden])) {z-index:5}
.mobile-hud #world-hud #mobile-target-hud:has(#mobile-target-primary[data-content="actions"]) {
  --mobile-target-panel-width:calc(var(--mobile-target-width,122px) + 14px);
}
.mobile-hud #world-hud > .mobile-target-safe-area {
  position:fixed;
  inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  display:block;
  margin:0;
  padding:0;
  border:0;
  visibility:hidden;
  pointer-events:none;
}
.mobile-hud #world-hud #mobile-target-hud button {
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  color:inherit;
  font:inherit;
  text-shadow:none;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  pointer-events:auto;
}
.mobile-hud #world-hud #mobile-target-hud button:focus-visible {
  outline:2px solid var(--mobile-target-gold);
  outline-offset:-2px;
}
.mobile-hud #world-hud #mobile-target-hud button:disabled {opacity:.46;cursor:default}
.mobile-hud #world-hud #mobile-target-hud button:active:enabled {background:rgb(255 255 255 / .08)}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-panel {
  position:relative;
  width:var(--mobile-target-panel-width);
  min-width:0;
  border:0;
  border-radius:5px;
  background:var(--mobile-target-surface);
  box-shadow:none;
  pointer-events:auto;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-heading {
  --mobile-target-heading-bottom:0px;
  display:flex;
  align-items:center;
  height:36px;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-panel:has(.mobile-target-vitals:not([hidden]),.mobile-target-loot:not([hidden])) .mobile-target-heading {
  --mobile-target-heading-bottom:20px;
  align-items:flex-start;
  height:24px;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-grip {
  display:flex;
  align-items:center;
  gap:6px;
  flex:1;
  min-width:0;
  min-height:44px;
  padding:0 0 0 7px;
  padding-block-end:var(--mobile-target-heading-bottom);
  border-radius:5px;
  text-align:left;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-grip:active {cursor:grabbing}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-dots {
  flex:0 0 8px;
  width:8px;
  height:12px;
  background:radial-gradient(circle,var(--mobile-target-quiet) .9px,transparent 1.2px) 0 0 / 4px 4px repeat;
  opacity:.84;
}
.mobile-hud #world-hud #mobile-target-hud [data-target-name] {
  display:block;
  min-width:0;
  overflow:hidden;
  color:var(--mobile-target-ink);
  font-size:13px;
  font-weight:600;
  line-height:16px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-primary,
.mobile-hud #world-hud #mobile-target-hud #mobile-target-clear {
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  border-radius:5px;
  color:var(--mobile-target-gold);
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-primary {padding-block-end:var(--mobile-target-heading-bottom)}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-panel:has(.mobile-target-vitals:not([hidden]),.mobile-target-loot:not([hidden])) .mobile-target-heading button:active:enabled {
  background:linear-gradient(rgb(255 255 255 / .08),rgb(255 255 255 / .08)) top / 100% 24px no-repeat;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-primary[data-content="actions"] {
  flex:0 0 auto;
  width:auto;
  padding-inline:8px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-clear {
  position:relative;
  isolation:isolate;
  padding-inline-end:6px;
  color:#ffe100;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-clear::before {
  position:absolute;
  z-index:-1;
  inset-block:9px;
  inset-inline:6px 12px;
  border-radius:4px;
  background:var(--mobile-target-clear-surface);
  pointer-events:none;
  content:"";
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-clear:active:enabled {background:none}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-clear:active:enabled::before {filter:brightness(.87)}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-icon {
  --icon-size:16px;
  display:block;
  flex:none;
  width:16px;
  height:16px;
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-clear > .mobile-target-icon {
  --icon-size:14px;
  width:14px;
  height:14px;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-vitals {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 29px;
  align-items:center;
  gap:5px;
  padding:0 8px 4px;
  color:var(--mobile-target-ink);
  font-size:11px;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
  pointer-events:none;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-loot {pointer-events:none}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-vitals output {text-align:right}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-vitals progress {
  appearance:none;
  display:block;
  width:100%;
  height:6px;
  margin:0;
  border:0;
  border-radius:2px;
  background:rgb(8 7 6 / .66);
  color:var(--mobile-hud-hp);
  overflow:hidden;
}
.mobile-hud #world-hud #mobile-target-hud progress::-webkit-progress-bar {background:rgb(8 7 6 / .66)}
.mobile-hud #world-hud #mobile-target-hud progress::-webkit-progress-value {background:var(--mobile-hud-hp)}
.mobile-hud #world-hud #mobile-target-hud progress::-moz-progress-bar {background:var(--mobile-hud-hp)}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-loot {
  margin:0;
  padding:0 8px 4px;
  color:var(--mobile-target-quiet);
  font-size:11px;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-menu {
  position:absolute;
  z-index:3;
  top:calc(100% + 3px);
  left:var(--mobile-target-menu-offset,0px);
  width:max-content;
  pointer-events:auto;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-actions {
  display:grid;
  grid-template-columns:repeat(var(--mobile-target-columns,3),44px);
  width:max-content;
  border-radius:6px;
  background:var(--mobile-target-menu-surface);
  overflow:hidden;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-action {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0 2px;
  color:var(--mobile-target-ink);
  font-size:11px;
  line-height:1.1;
  text-align:center;
}
.mobile-hud #world-hud #mobile-target-hud .mobile-target-action > .mobile-target-icon {
  --icon-size:14px;
  width:14px;
  height:14px;
  color:var(--mobile-target-gold);
}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-menu-close {grid-column:-2}
.mobile-hud #world-hud #mobile-target-hud #mobile-target-menu-close > .mobile-target-icon {color:var(--mobile-target-quiet)}
#world-touch-surface {display:none}
.mobile-hud main.in-world > #world-frame.world-input-ready:not([hidden],.show-entry-screen) + #world-touch-surface {
  display:block;
  position:absolute;
  inset:0;
  touch-action:none;
  user-select:none;
}

.mobile-hud main.in-world > #mobile-recovery-hud[open] {
  position:fixed;
  inset:0;
  z-index:24;
  box-sizing:border-box;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border:0;
  background:none;
}
#mobile-recovery-hud::backdrop {background:#070d1095}
#mobile-recovery-hud .recovery-card {
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  display:grid;
  gap:3px;
  width:min(202px,calc(100% - 20px));
  margin:0;
  padding:7px;
  border:1px solid #a4aa965b;
  border-radius:8px 3px;
  background:linear-gradient(125deg,#304650df,#20353de0 54%,#121f2bf2);
}
#mobile-recovery-hud .recovery-card::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(90deg,#f4dda177,#d6e0cc20 72%,transparent) top left / 80% 1px no-repeat,
    linear-gradient(123deg,#eaddab1a,#bfddd707 63%,transparent 64%) top left / 60% 100% no-repeat;
}
#mobile-recovery-hud #mobile-restart-town {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  min-height:44px;
  margin:0;
  padding:5px 12px;
  border:1px solid #d4b976;
  border-radius:3px;
  background:linear-gradient(120deg,#f4dfab,#e8ca90 48%,#d3ad6e);
  box-shadow:none;
  color:#2a251b;
  text-shadow:none;
  font:600 13px/1.15 "Segoe UI",sans-serif;
  touch-action:manipulation;
}
#mobile-recovery-hud #mobile-restart-town:enabled:active {filter:brightness(.92)}
#mobile-recovery-hud #mobile-restart-town:focus-visible {outline:2px solid #fff0b7;outline-offset:2px}
#mobile-recovery-hud #mobile-restart-town[data-pending] {cursor:progress}
#mobile-recovery-hud #mobile-recovery-status:not([hidden]) {
  position:absolute;
  inset:calc(50% + 38px) 12px auto;
  box-sizing:border-box;
  width:max-content;
  max-width:min(260px,calc(100% - 24px));
  margin:0 auto;
  padding:6px 9px;
  border:1px solid #a4aa965b;
  border-radius:4px;
  background:#192a34f2;
  color:#f7e0b6;
  font:500 12px/1.35 "Segoe UI",sans-serif;
  text-align:center;
  pointer-events:none;
}
#mobile-recovery-hud .recovery-icon {
  position:relative;
  flex:none;
  width:16px;
  height:16px;
}
#mobile-recovery-hud .recovery-icon::before {
  content:"";
  position:absolute;
  inset:9% 10% 12%;
  background:currentColor;
  clip-path:polygon(0 42%,50% 0,100% 42%,87% 42%,87% 100%,58% 100%,58% 66%,42% 66%,42% 100%,13% 100%,13% 42%);
}
#mobile-recovery-hud [data-pending] .recovery-icon::before {
  inset:1px;
  border:1px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  background:none;
  clip-path:none;
  animation:mobile-recovery-spin .85s linear infinite;
}
@keyframes mobile-recovery-spin {to {transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce) {
  #mobile-recovery-hud [data-pending] .recovery-icon::before {animation:none}
}


.mobile-fullscreen button svg {display:block;margin:auto}
.mobile-fullscreen button[aria-pressed="true"] [data-expand],
.mobile-fullscreen button:not([aria-pressed="true"]) [data-contract] {display:none}
#fullscreen-help {
  box-sizing:border-box;width:min(22rem,calc(100vw - 2rem));max-height:85dvh;
  padding:1rem;color:#f1e6d0;background:#1c2526;border:1px solid #a48b5d;border-radius:6px;
}
#fullscreen-help::backdrop {background:rgb(0 0 0 / .6)}
#fullscreen-help h2 {margin:0;font-size:1.1rem}
#fullscreen-help p {margin:.75rem 0;line-height:1.45}
#fullscreen-help button {min-height:36px}
