/* Original StillwoodValley walnut, forged iron and brass. Shared controls, two layouts. */
:root{--brass:#b69b57;--brass-light:#f0d99c;--ink:#131714;--text:#eee3c6;--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);--wood:repeating-linear-gradient(3deg,#38271e00 0px,#130f0b42 2px,#66482b33 3px,#38271e00 7px),linear-gradient(110deg,#403024,#201b16 45%,#3b2b20);--iron:radial-gradient(ellipse at 35% 20%,#40423a,#111915 68%);--hotbar-h:72px}
html,body{width:100%;height:100%;overflow:hidden;margin:0;overscroll-behavior:none}body{height:100dvh}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}#world canvas{display:block;width:100%;height:100%}.frontierHUD header,.frontierHUD #portrait,.frontierHUD #testSaveNotice{display:none!important}.srOnly{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.frontierHUD button{color:var(--text);font-family:Georgia,serif;touch-action:manipulation;min-height:44px;border:1px solid #ad9158;border-radius:5px;background:var(--wood);box-shadow:inset 0 0 0 2px #161711,inset 0 0 0 3px #80684155,0 3px 8px #0007;cursor:pointer}.frontierHUD button:hover{border-color:var(--brass-light);filter:brightness(1.15)}.frontierHUD button:focus-visible{outline:2px solid #f9d668;outline-offset:3px}.frontierHUD button:disabled{filter:saturate(.3);opacity:.55;cursor:default}.woodPlate{background:var(--wood);border:2px solid var(--brass);box-shadow:inset 0 0 0 2px #151713,inset 0 0 0 3px #cbb27550,0 4px 10px #0008;border-radius:9px;color:var(--text)}
#playerIdentity{position:fixed;z-index:5;left:calc(14px + var(--safe-l));top:calc(12px + var(--safe-t));display:flex;gap:10px;align-items:center;padding:5px 15px 5px 6px;max-width:240px;height:48px;box-sizing:border-box}#playerIdentity>svg{width:42px;height:42px;flex-shrink:0;filter:drop-shadow(0 2px 3px #000)}#playerIdentity div{min-width:0}#playerName{font:bold 20px/1.1 Georgia;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#playerIdentity small{display:block;font:8px/1.5 system-ui;letter-spacing:1.3px;color:#b5ad8a}
#coinBalance{position:fixed;z-index:8;top:calc(12px + var(--safe-t));right:calc(360px + var(--safe-r));height:48px;padding:3px 13px 3px 6px;display:flex;align-items:center;gap:7px;box-sizing:border-box;max-width:280px}#coinBalance svg{width:38px;height:34px;flex-shrink:0}#coinValue{font:bold clamp(14px,2vw,23px)/1 Georgia;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:.3px}
.frontierHUD #gameHUD{position:fixed;z-index:7;left:auto;top:calc(9px + var(--safe-t));right:calc(12px + var(--safe-r));display:flex;gap:7px;align-items:center;width:auto;padding:0}.frontierHUD .roundIcon{padding:8px;width:48px;height:48px;min-width:48px;border-radius:50%;background:var(--iron);border:2px solid #c2a05d;display:grid;place-items:center;position:relative;box-shadow:inset 0 0 0 2px #0c110f,inset 0 0 0 3px #a18a5555,0 3px 5px #0009}.roundIcon svg{width:30px;height:30px;filter:drop-shadow(0 2px 1px #000)}#packValue{position:absolute;bottom:1px;right:1px;background:#14251c;border-radius:6px;padding:1px 3px;font:bold 8px system-ui;border:1px solid #5a623e;white-space:nowrap}#menuToggle{display:none}
.frontierHUD #navigationHUD{position:fixed;top:calc(76px + var(--safe-t));right:calc(17px + var(--safe-r));gap:5px;z-index:5;align-items:center}.frontierHUD #minimap{width:128px;height:128px;border:3px solid #bca362;box-shadow:0 0 0 2px #201c14,0 0 0 4px #7a643c,0 4px 15px #0008;background:#1b4932}.frontierHUD #mapToggle{min-height:44px;padding:3px 12px;background:var(--iron);font:11px Georgia}.frontierHUD #destinationHint{font:10px/1.3 system-ui;max-width:140px;border-radius:4px;color:#f3df9d}.frontierHUD #destinationHint:empty{display:none}
.frontierHUD #joystick{width:116px;height:116px;left:calc(22px + var(--safe-l));bottom:calc(var(--hotbar-h) + 22px + var(--safe-b));border:3px solid #b59a5f;background:radial-gradient(circle at 50% 35%,#4e4d3cc9,#101d17df);box-shadow:inset 0 0 0 3px #18201a,inset 0 0 0 4px #b5a17377,0 5px 12px #0007}#joystick::after{content:'▴';position:absolute;left:50%;top:2px;transform:translateX(-50%);color:#e5cf94;font:20px Georgia;pointer-events:none}.frontierHUD #stick{left:34px;top:34px;width:44px;height:44px;border:2px solid #bda36c;background:radial-gradient(circle at 40% 20%,#8c8465,#3d3a2b);box-shadow:0 3px 7px #0008;box-sizing:border-box}
#actionDock{position:fixed;bottom:calc(var(--hotbar-h) + 16px + var(--safe-b));right:calc(18px + var(--safe-r));display:flex;flex-direction:column;gap:12px;align-items:center;z-index:5}.frontierHUD #runToggle{position:relative;inset:auto;width:60px;height:60px;border-radius:50%;background:var(--iron);border:2px solid #c3a466;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px}.frontierHUD #runToggle svg{width:33px;height:33px}.frontierHUD #runToggle span{font:9px Georgia}.frontierHUD #runToggle[aria-pressed=true]{background:radial-gradient(circle,#466245,#17271a);box-shadow:0 0 9px #d3b95c88,inset 0 0 0 2px #8d844a}.frontierHUD #interact{position:relative;inset:auto;border-radius:50%;width:78px;height:78px;max-width:none;padding:37px 5px 4px;background:var(--iron);border:2px solid #c4a15e;font:10px/1.1 Georgia;overflow:hidden;text-overflow:ellipsis}.frontierHUD #interact:before{content:'✋';position:absolute;top:7px;left:50%;transform:translateX(-50%);font:26px system-ui}.frontierHUD #interact[hidden]{display:none}
#quickbar{position:fixed;z-index:6;left:50%;bottom:calc(12px + var(--safe-b));transform:translateX(-50%);padding:7px;max-width:calc(100% - 320px - var(--safe-l) - var(--safe-r));box-sizing:border-box}#quickSlots{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#998151 #241e17;overscroll-behavior-x:contain;max-width:100%;padding:2px;touch-action:pan-x}.frontierHUD .quickSlot{position:relative;min-width:49px;width:49px;height:52px;padding:4px;flex-shrink:0;background:radial-gradient(ellipse at 50% 70%,#293025,#0c100e);border:1px solid #948052;border-radius:4px;touch-action:pan-x;user-select:none;-webkit-touch-callout:none}.quickSlot svg{width:40px;height:40px;filter:drop-shadow(1px 3px 2px #000)}.quickSlot kbd{position:absolute;left:4px;top:2px;font:bold 11px Georgia;color:#ede4c9;z-index:1}.quickSlot strong{position:absolute;bottom:2px;right:3px;font:bold 11px system-ui;color:#ffe8a8;text-shadow:0 1px 2px #000}.quickSlot i{position:absolute;right:3px;top:1px;color:#96bb78;font-size:9px}.frontierHUD .quickSlot.selected{border:2px solid #f2c758;box-shadow:inset 0 0 7px #c4993f77,0 0 5px #e2b84977}.quickSlot.unavailable svg{opacity:.28;filter:grayscale(1)}.emptySlotMark{color:#776e51;font:22px Georgia}.frontierHUD #collapseQuickbar{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);height:20px;min-height:20px;width:42px;border-radius:6px 6px 0 0;padding:0;font:18px Georgia;background:var(--iron)}#quickbar.collapsed{width:68px;height:12px;padding:0}#quickbar.collapsed #quickSlots{display:none}
.frontierHUD #notice{left:calc(16px + var(--safe-l));right:auto;top:calc(78px + var(--safe-t));max-width:min(350px,calc(100% - 190px));font:11px/1.4 system-ui;color:#e0d6bb}.frontierHUD #journeyHint{top:calc(101px + var(--safe-t));left:calc(16px + var(--safe-l));max-width:min(320px,calc(100% - 190px));background:#13281dc2;border-color:#a78b4d;font:11px/1.4 system-ui;border-radius:0 4px 4px 0}.frontierHUD #activity{bottom:calc(var(--hotbar-h) + 24px + var(--safe-b));left:50%;width:min(260px,32%);background:#14291fe3;border:1px solid #a38a4e;border-radius:5px}.frontierHUD #instructions{bottom:3px;left:10px;font-size:9px;max-width:35%;opacity:.65}.frontierHUD #cloudStatus{position:fixed;right:calc(12px + var(--safe-r));bottom:calc(4px + var(--safe-b));background:#15291fc9;color:#d2c8a5;border:0;font:9px system-ui;padding:3px 5px;z-index:4}.frontierHUD #examine,.frontierHUD #cancelWork,.frontierHUD #sleep{right:calc(105px + var(--safe-r));bottom:calc(var(--hotbar-h) + 19px + var(--safe-b));font:11px Georgia;min-height:44px;max-width:160px}.frontierHUD #cancelWork{bottom:calc(var(--hotbar-h) + 70px + var(--safe-b))}.frontierHUD #sleep{bottom:calc(var(--hotbar-h) + 120px + var(--safe-b))}.frontierHUD #travelHUD{top:calc(178px + var(--safe-t));left:calc(16px + var(--safe-l));max-width:calc(100% - 200px);background:var(--wood);border-color:#9e864f;font:11px system-ui}
.frontierHUD #inventoryPanel,.frontierHUD #settingsPanel,.frontierHUD dialog{color:var(--text);background:var(--wood);border:2px solid #b99d60;box-shadow:inset 0 0 0 2px #161710,inset 0 0 0 3px #a8946244,0 15px 60px #0009;border-radius:9px;padding:16px}.frontierHUD #inventoryPanel{top:calc(76px + var(--safe-t));bottom:calc(92px + var(--safe-b));width:370px;right:calc(17px + var(--safe-r));max-height:none;box-sizing:border-box}.frontierHUD #settingsPanel{position:fixed;z-index:9;top:calc(76px + var(--safe-t));right:calc(17px + var(--safe-r));width:270px;max-height:calc(100dvh - 100px - var(--safe-t) - var(--safe-b));overflow:auto;box-sizing:border-box}.frontierHUD #settingsPanel b{display:block;margin-bottom:10px;font:20px Georgia}.frontierHUD #settingsPanel button,.frontierHUD #settingsPanel select{width:100%;margin:3px 0;min-height:44px}.frontierHUD #settingsPanel[hidden]{display:none}.frontierHUD dialog{width:min(540px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px - var(--safe-t) - var(--safe-b));box-sizing:border-box}.frontierHUD dialog::backdrop{background:#07120b66}.frontierHUD dialog h2{font:23px/1.2 Georgia;color:#e6d3a4}.frontierHUD #dialogText{font:13px/1.4 system-ui}.frontierHUD #dialogActions{font:13px system-ui}.frontierHUD #dialogActions p{color:#d3c7aa}.frontierHUD .huntTabs{background:#28271c}.frontierHUD .guildItem{background:#3d3023;border-color:#9a824d}.frontierHUD input,.frontierHUD select{background:#17251d;color:#eee1bd;border:1px solid #a48a56;border-radius:4px;padding:8px;min-height:44px;font:16px system-ui;box-sizing:border-box}.frontierHUD .skillRow p{font-size:13px}.frontierHUD .itemCell,.frontierHUD .emptyCell{background:radial-gradient(ellipse,#343727,#151b14);border:1px solid #77683e}.frontierHUD .itemCell span{font-size:9px}.frontierHUD .panelTabs{display:grid;grid-template-columns:repeat(4,1fr)}.frontierHUD .panelTabs button{min-width:0}.frontierHUD #quickAssignItems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:50dvh;overflow:auto}.frontierHUD .assignItem{display:flex;align-items:center;gap:8px;text-align:left;padding:8px;min-height:68px;font:12px/1.3 system-ui}.assignItem svg{width:42px;height:42px;flex-shrink:0}#quickAssignHelp{font:12px/1.5 system-ui}.frontierHUD #worldMap{border:2px solid #897847;border-radius:6px;width:min(100%,55dvh)}
/* Portrait has its own header, expandable menu, minimap sizing and thumb zones. */
@media(orientation:portrait){
:root{--hotbar-h:78px}
#playerIdentity{top:calc(12px + var(--safe-t));left:calc(10px + var(--safe-l));width:calc(47% - 30px);height:44px;gap:4px;padding:4px 7px 4px 3px;max-width:none}#playerIdentity>svg{width:30px;height:34px}#playerName{font-size:15px}#playerIdentity small{font-size:6px;letter-spacing:.65px}
#coinBalance{top:calc(12px + var(--safe-t));right:calc(65px + var(--safe-r));height:44px;max-width:calc(53% - 44px);gap:4px;padding:3px 7px 3px 3px}#coinBalance svg{width:27px;height:29px}#coinValue{font-size:clamp(10px,3.8vw,19px);letter-spacing:0}
.frontierHUD #menuToggle{display:grid;position:fixed;z-index:10;right:calc(10px + var(--safe-r));top:calc(12px + var(--safe-t));width:44px;height:44px;min-width:44px;padding:8px}.frontierHUD #menuToggle svg{width:26px;height:26px}
.frontierHUD #gameHUD{display:none;top:calc(68px + var(--safe-t));left:calc(12px + var(--safe-l));right:auto;grid-template-columns:repeat(3,48px);gap:8px;background:var(--wood);border:1px solid var(--brass);padding:10px;border-radius:8px;box-shadow:0 6px 15px #0008}.frontierHUD.menusExpanded #gameHUD{display:grid}
.frontierHUD #navigationHUD{top:calc(76px + var(--safe-t));right:calc(15px + var(--safe-r))}.frontierHUD #minimap{width:106px;height:106px}.frontierHUD #mapToggle{min-height:44px;font-size:10px;padding:2px 10px}.frontierHUD #destinationHint{max-width:112px;font-size:9px}
#quickbar{left:calc(10px + var(--safe-l));right:calc(10px + var(--safe-r));bottom:calc(18px + var(--safe-b));transform:none;max-width:none;width:auto;padding:6px}.frontierHUD .quickSlot{min-width:48px;width:48px;height:53px}#quickSlots{gap:5px}#quickbar.collapsed{left:50%;right:auto;transform:translateX(-50%);width:68px}
.frontierHUD #joystick{left:calc(18px + var(--safe-l));bottom:calc(108px + var(--safe-b));width:112px;height:112px}.frontierHUD #stick{left:32px;top:32px}
#actionDock{bottom:calc(105px + var(--safe-b));right:calc(17px + var(--safe-r));gap:12px}.frontierHUD #runToggle{width:58px;height:58px}.frontierHUD #interact{width:74px;height:74px}
.frontierHUD #notice{top:calc(75px + var(--safe-t));left:calc(12px + var(--safe-l));max-width:calc(100% - 155px);font-size:10px}.frontierHUD #journeyHint{top:calc(103px + var(--safe-t));left:calc(12px + var(--safe-l));max-width:calc(100% - 170px);font-size:10px;padding:6px 8px}.frontierHUD #travelHUD{top:calc(203px + var(--safe-t));max-width:calc(100% - 160px);padding:4px;font-size:10px;gap:4px}.frontierHUD #cancelTravel{padding:4px;min-width:44px}.frontierHUD #activity{bottom:calc(258px + var(--safe-b));width:55%;max-width:none}.frontierHUD #examine,.frontierHUD #cancelWork,.frontierHUD #sleep{right:calc(12px + var(--safe-r));bottom:calc(275px + var(--safe-b));max-width:160px}.frontierHUD #sleep{bottom:calc(325px + var(--safe-b))}
.frontierHUD #inventoryPanel{top:calc(72px + var(--safe-t));left:calc(10px + var(--safe-l));right:calc(10px + var(--safe-r));width:auto;bottom:calc(100px + var(--safe-b));padding:13px}.frontierHUD #settingsPanel{top:calc(72px + var(--safe-t));right:calc(10px + var(--safe-r));width:min(310px,calc(100% - 20px - var(--safe-l) - var(--safe-r)));max-height:calc(100dvh - 160px - var(--safe-t) - var(--safe-b))}.frontierHUD #quickAssignItems{grid-template-columns:1fr}.frontierHUD #instructions{display:none}.frontierHUD .guildGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.frontierHUD .itemCell span{font-size:8px}.frontierHUD #cloudStatus{bottom:calc(2px + var(--safe-b));font-size:8px}
}
@media(orientation:landscape) and (max-height:500px){:root{--hotbar-h:62px}#playerIdentity{height:42px;max-width:160px;top:calc(8px + var(--safe-t))}#playerName{font-size:15px}#playerIdentity>svg{width:30px}#playerIdentity small{font-size:6px}.frontierHUD #gameHUD{top:calc(6px + var(--safe-t));gap:5px}.frontierHUD .roundIcon{width:44px;height:44px;min-width:44px;padding:7px}.roundIcon svg{width:27px;height:27px}#coinBalance{top:calc(7px + var(--safe-t));right:calc(312px + var(--safe-r));height:42px;max-width:calc(100% - 495px);padding:3px 7px;gap:3px}#coinValue{font-size:15px}#coinBalance svg{width:28px}.frontierHUD #navigationHUD{top:calc(64px + var(--safe-t));right:calc(12px + var(--safe-r))}.frontierHUD #minimap{width:86px;height:86px}.frontierHUD #mapToggle{min-height:34px;padding:2px 8px}.frontierHUD #joystick{width:96px;height:96px;left:calc(16px + var(--safe-l));bottom:calc(34px + var(--safe-b))}.frontierHUD #stick{left:24px;top:24px}#actionDock{bottom:calc(35px + var(--safe-b));right:calc(12px + var(--safe-r));gap:8px}.frontierHUD #runToggle{width:48px;height:48px}.frontierHUD #interact{width:60px;height:60px;padding-top:28px;font-size:9px}.frontierHUD #interact:before{font-size:22px;top:3px}#quickbar{bottom:calc(12px + var(--safe-b));max-width:calc(100% - 270px - var(--safe-l) - var(--safe-r));padding:5px}.frontierHUD .quickSlot{width:44px;min-width:44px;height:44px}.quickSlot svg{width:34px;height:34px}.frontierHUD #notice{top:calc(61px + var(--safe-t));font-size:10px}.frontierHUD #journeyHint{top:calc(82px + var(--safe-t));font-size:10px;max-width:245px;padding:4px 7px}.frontierHUD #travelHUD{top:calc(136px + var(--safe-t))}.frontierHUD #inventoryPanel{top:calc(58px + var(--safe-t));bottom:calc(14px + var(--safe-b));width:min(370px,52vw)}.frontierHUD #settingsPanel{top:calc(58px + var(--safe-t));max-height:calc(100dvh - 72px)}.frontierHUD dialog{padding:12px}.frontierHUD #activity{bottom:calc(75px + var(--safe-b))}.frontierHUD #examine{bottom:calc(135px + var(--safe-b));right:calc(12px + var(--safe-r));font-size:9px;max-width:110px}.frontierHUD #cancelWork{bottom:calc(75px + var(--safe-b));right:calc(95px + var(--safe-r))}.frontierHUD #dialogText{max-height:60px}.frontierHUD #worldMap{width:min(100%,50dvh)}}
@media(orientation:landscape) and (max-width:740px){#playerIdentity{max-width:128px}#playerIdentity>svg{display:none}#coinBalance{max-width:calc(100% - 455px)}#coinValue{font-size:12px}}
@media(prefers-reduced-motion:reduce){.frontierHUD *{scroll-behavior:auto!important;transition:none!important}}

/* Keep exact nine-digit balances readable; compact notation begins at one billion. */
#coinValue{font-variant-numeric:tabular-nums}#coinBalance{min-width:0}#coinValue{overflow-wrap:normal}.frontierHUD #gameHUD[hidden]{display:none}

#exactCoinBalance{font:bold 24px/1.4 Georgia;overflow-wrap:anywhere;color:#f1d68a}#coinBalance{cursor:pointer}#coinBalance:focus-visible{outline:2px solid #f9d668;outline-offset:3px}
/* UI020 revision 2: sculpted walnut plates, cast brass rims and painted tool icons. */
:root{--wood:radial-gradient(ellipse at 12% 0%,#ba8b4a20,transparent 65%),repeating-linear-gradient(2deg,#39271c00 0px,#9c73401a 1px,#1d150d15 2px,#38271e00 9px),linear-gradient(105deg,#513722,#2e2118 34%,#1c1c16 62%,#48311f);--iron:radial-gradient(circle at 36% 23%,#454b3b,#252e23 42%,#0c1510 77%);--brass:#c2a064;--brass-light:#f2dfaa}
.woodPlate{border:3px solid transparent;background:var(--wood) padding-box,linear-gradient(145deg,#f4dfa9,#936b34 35%,#352719 50%,#b78c4d 77%,#ebcf8c) border-box;border-radius:10px;box-shadow:inset 0 0 0 2px #16150d,inset 0 0 0 3px #c4a26866,inset 0 3px 8px #cf9e4c15,0 3px 1px #14150e,0 7px 15px #0008}
#playerIdentity{height:61px;top:calc(13px + var(--safe-t));left:calc(22px + var(--safe-l));padding:5px 22px 5px 53px;overflow:visible;min-width:176px;max-width:260px;background:linear-gradient(90deg,#151f17,#151913dd) padding-box,linear-gradient(150deg,#e6c987,#8c6731 38%,#322318 52%,#caad6b 90%) border-box}#playerIdentity>svg{position:absolute;left:-17px;top:-8px;width:68px;height:68px;padding:5px;box-sizing:border-box;background:radial-gradient(ellipse at 35% 20%,#577044,#1b2a1b);border:3px solid #c4a263;clip-path:polygon(20% 0,80% 0,100% 22%,100% 76%,52% 100%,0 77%,0 22%);filter:drop-shadow(0 3px 2px #000)}#playerName{font:700 23px/1.15 Georgia;color:#f5ead2;text-shadow:0 2px 3px #000;letter-spacing:.3px}
#coinBalance{height:56px;top:calc(13px + var(--safe-t));right:calc(437px + var(--safe-r));padding:4px 17px 4px 7px;gap:7px;background:linear-gradient(110deg,#34271a,#101b13 50%,#252b1d) padding-box,linear-gradient(145deg,#f4dfa9,#936b34 35%,#352719 50%,#b78c4d 77%,#ebcf8c) border-box}#coinBalance svg{width:42px;height:42px;filter:drop-shadow(1px 2px 1px #080a05)}#coinValue{font:bold 25px Georgia;text-shadow:0 2px 3px #000}
.frontierHUD #gameHUD{top:calc(9px + var(--safe-t));right:calc(15px + var(--safe-r));gap:8px}.frontierHUD .roundIcon{border:3px solid transparent;width:60px;height:60px;min-width:60px;padding:5px 9px 12px;background:var(--iron) padding-box,linear-gradient(145deg,#fff0bc,#a17a40 35%,#3d2d1b 53%,#d0ae6b 80%,#f0d7a0) border-box;box-shadow:inset 0 0 0 2px #0b120d,inset 0 2px 2px #c5be8b55,inset 0 -4px 7px #000b,0 3px 1px #120f0a,0 6px 10px #0007;position:relative}.roundIcon svg{width:34px;height:34px;filter:drop-shadow(0 2px 1px #000a)}.menuCaption{position:absolute;bottom:6px;left:0;right:0;text-align:center;font:9px/1 Georgia;color:#dac995;text-shadow:0 1px 2px #000;letter-spacing:.1px;pointer-events:none}#packValue{display:none!important}.roundIcon:before{content:'';position:absolute;left:9px;top:6px;width:7px;height:2px;background:#e4cb8b99;border-radius:50%;transform:rotate(-32deg);pointer-events:none}
.frontierHUD #navigationHUD{top:calc(95px + var(--safe-t));right:calc(24px + var(--safe-r))}.frontierHUD #minimap{width:140px;height:140px;border:4px solid #c2a568;box-shadow:0 0 0 2px #211b11,0 0 0 4px #8a713f,inset 0 0 7px #0009,0 5px 15px #0008}.frontierHUD #mapToggle{height:44px;width:54px;border-radius:50%;font:11px Georgia;border:2px solid #bb9c59;background:var(--iron);box-shadow:inset 0 1px 0 #e4d09b66,0 3px 7px #0008}
#quickbar{padding:8px 10px;bottom:calc(15px + var(--safe-b));max-width:calc(100% - 335px - var(--safe-l) - var(--safe-r));border-radius:7px;overflow:visible}#quickbarLabel{position:absolute;bottom:calc(100% + 7px);left:11px;color:#d3be83;font:8px Georgia;letter-spacing:1.8px;text-shadow:0 2px 3px #000;pointer-events:none}#quickSlots{gap:6px;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding:2px;-ms-overflow-style:none;padding:2px;mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 8px),transparent)}#quickSlots::-webkit-scrollbar{display:none;width:0;height:0}.frontierHUD .quickSlot{width:58px;min-width:58px;height:61px;border:2px solid #a68c53;background:radial-gradient(ellipse at 45% 75%,#233123,#0c1410 68%);border-radius:5px;box-shadow:inset 0 0 0 1px #080d09,inset 0 2px 5px #857a3c33,0 2px 1px #000b;scroll-snap-align:start}.quickSlot svg{width:46px;height:46px;filter:drop-shadow(1px 4px 2px #0009)}.quickSlot kbd{font:700 14px Georgia;top:2px;left:4px}.quickSlot strong{font:bold 13px Georgia;bottom:1px;right:4px}.quickSlot.selected{background:radial-gradient(ellipse at 50% 80%,#66542899,#172516 65%)}.frontierHUD .quickSlot.selected{border-color:#f5cf61;box-shadow:0 0 7px #e8b83b88,inset 0 0 8px #e4bc4444,inset 0 0 0 1px #ffe89b99}.emptySlotMark{font:19px Georgia;color:#7e795b}.frontierHUD #collapseQuickbar{width:46px;height:24px;min-height:24px;border:1px solid #b59b61;background:var(--wood);color:#d6c38f}#quickbar.collapsed #quickbarLabel{display:none}
.frontierHUD #joystick{background:radial-gradient(circle at 40% 27%,#555a43d9,#172419e6 70%);border:4px solid #c1a568;box-shadow:inset 0 0 0 2px #172118,inset 0 3px 6px #e0d5a12f,0 0 0 2px #2b2519,0 5px 16px #0008}.frontierHUD #stick{background:radial-gradient(circle at 35% 20%,#c0b181,#70684b 50%,#3a3e29 95%);border:2px solid #c2a56b;box-shadow:inset 0 1px 3px #ead9a777,0 4px 10px #0009}.frontierHUD #runToggle,.frontierHUD #interact{border:3px solid transparent;background:var(--iron) padding-box,linear-gradient(145deg,#f3dfac,#926b34 38%,#3c2d1c 55%,#d1af6a 85%) border-box;box-shadow:inset 0 0 0 2px #0d150f,inset 0 2px 4px #c8ce9b22,0 4px 9px #0009}.frontierHUD #interact:before{display:none}#interactionArt{position:absolute;bottom:30px;width:41px;height:41px;pointer-events:none;filter:drop-shadow(0 2px 2px #0008)}#interactionArt svg{width:100%;height:100%}#actionDock:has(#interact[hidden]) #interactionArt{display:none}.frontierHUD #runToggle svg{width:35px;height:35px}.frontierHUD #runToggle span{font:9px Georgia}.frontierHUD #interact{width:86px;height:86px;padding:46px 7px 5px;font:10px/1.15 Georgia}.frontierHUD #notice{opacity:.8}.frontierHUD #cloudStatus{font:9px/1.1 system-ui;background:#15271b99;color:#bbbda2;padding:3px 5px;border-radius:3px}.frontierHUD #inventoryPanel,.frontierHUD #settingsPanel,.frontierHUD dialog{border:3px solid #ac8d54;box-shadow:inset 0 0 0 2px #16140e,inset 0 0 0 3px #d5bb7d55,0 10px 50px #000a;background:var(--wood)}
@media(orientation:portrait){
#playerIdentity{left:calc(20px + var(--safe-l));top:calc(17px + var(--safe-t));height:42px;min-width:0;width:calc(48% - 40px);padding:3px 6px 3px 31px;max-width:none;border-radius:6px}#playerIdentity>svg{left:-14px;top:-8px;width:49px;height:54px;padding:3px;border-width:2px}#playerName{font-size:16px;letter-spacing:0}
#coinBalance{top:calc(17px + var(--safe-t));right:calc(65px + var(--safe-r));height:42px;max-width:calc(52% - 30px);gap:4px;padding:3px 7px 3px 4px}#coinBalance svg{width:28px;height:30px}#coinValue{font-size:17px}
.frontierHUD #menuToggle{top:calc(16px + var(--safe-t));right:calc(10px + var(--safe-r));width:44px;height:44px;min-width:44px;padding:8px}.frontierHUD #menuToggle svg{width:24px;height:24px}.frontierHUD #gameHUD{top:calc(78px + var(--safe-t));left:calc(12px + var(--safe-l));right:auto;grid-template-columns:repeat(3,52px);gap:10px;padding:11px;border:2px solid #b39b60;border-radius:8px}.frontierHUD #gameHUD .roundIcon{width:52px;height:54px;min-width:52px;padding:5px 6px 12px}.frontierHUD #gameHUD .roundIcon svg{width:31px;height:31px}.frontierHUD #gameHUD .menuCaption{bottom:4px;font-size:9px}
.frontierHUD #navigationHUD{top:calc(84px + var(--safe-t));right:calc(18px + var(--safe-r));gap:6px}.frontierHUD #minimap{width:90px;height:90px;border-width:3px;box-shadow:0 0 0 2px #2b2316,0 0 0 3px #8a754b,0 4px 12px #0008}.frontierHUD #mapToggle{width:46px;height:44px;min-height:44px;font-size:10px}.frontierHUD #destinationHint{max-width:105px}
#quickbar{left:calc(10px + var(--safe-l));right:calc(10px + var(--safe-r));transform:none;max-width:none;padding:7px 8px;bottom:calc(19px + var(--safe-b));border-radius:7px}#quickbarLabel{font-size:7px;letter-spacing:1.4px;left:6px;bottom:calc(100% + 7px)}.frontierHUD .quickSlot{width:60px;min-width:60px;height:62px}#quickSlots{gap:6px;mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 13px),transparent)}.quickSlot svg{width:48px;height:48px}.quickSlot kbd{font-size:14px}.quickSlot strong{font-size:13px}
.frontierHUD #joystick{left:calc(20px + var(--safe-l));bottom:calc(130px + var(--safe-b));width:110px;height:110px}.frontierHUD #stick{left:31px;top:31px}#actionDock{bottom:calc(125px + var(--safe-b));right:calc(17px + var(--safe-r));gap:12px}.frontierHUD #runToggle{width:56px;height:56px}.frontierHUD #interact{width:78px;height:78px;padding:42px 5px 4px;font-size:9px}#interactionArt{width:38px;height:38px;bottom:28px}
.frontierHUD #notice{top:calc(83px + var(--safe-t));max-width:calc(100% - 140px);font-size:10px}.frontierHUD #journeyHint{top:calc(108px + var(--safe-t));max-width:calc(100% - 150px)}.frontierHUD #travelHUD{top:calc(203px + var(--safe-t));max-width:calc(100% - 145px)}.frontierHUD #activity{bottom:calc(275px + var(--safe-b))}.frontierHUD #examine,.frontierHUD #cancelWork{bottom:calc(290px + var(--safe-b));right:calc(12px + var(--safe-r));font-size:10px;max-width:140px}.frontierHUD #inventoryPanel{top:calc(78px + var(--safe-t));bottom:calc(112px + var(--safe-b))}
}
@media(orientation:landscape) and (max-height:500px){
#playerIdentity{height:43px;top:calc(11px + var(--safe-t));left:calc(22px + var(--safe-l));min-width:0;max-width:170px;padding:3px 14px 3px 37px}#playerIdentity>svg{width:54px;height:56px;left:-17px;top:-8px;padding:3px}#playerName{font-size:17px}.frontierHUD #gameHUD{top:calc(7px + var(--safe-t));right:calc(12px + var(--safe-r));gap:6px}.frontierHUD .roundIcon{width:49px;height:49px;min-width:49px;padding:5px 7px 11px}.roundIcon svg{width:29px;height:29px}.menuCaption{font-size:8px;bottom:4px}
#coinBalance{top:calc(11px + var(--safe-t));right:calc(352px + var(--safe-r));height:42px;max-width:calc(100% - 535px);padding:3px 9px 3px 4px;gap:4px}#coinValue{font-size:17px}#coinBalance svg{width:30px;height:30px}.frontierHUD #navigationHUD{top:calc(74px + var(--safe-t));right:calc(15px + var(--safe-r))}.frontierHUD #minimap{width:86px;height:86px;border-width:3px}.frontierHUD #mapToggle{height:38px;min-height:38px;width:44px;font-size:9px}
#quickbar{bottom:calc(13px + var(--safe-b));max-width:calc(100% - 290px - var(--safe-l) - var(--safe-r));padding:6px 8px}.frontierHUD .quickSlot{width:48px;min-width:48px;height:50px}.quickSlot svg{width:38px;height:38px}.quickSlot kbd{font-size:12px}.quickSlot strong{font-size:11px}#quickbarLabel{font-size:7px;letter-spacing:1.4px}.frontierHUD #joystick{bottom:calc(25px + var(--safe-b));width:100px;height:100px}.frontierHUD #stick{left:26px;top:26px}#actionDock{bottom:calc(28px + var(--safe-b));gap:9px}.frontierHUD #runToggle{width:50px;height:50px}.frontierHUD #interact{width:68px;height:68px;padding:36px 4px 3px;font-size:9px}#interactionArt{width:34px;height:34px;bottom:24px}.frontierHUD #notice{top:calc(66px + var(--safe-t));max-width:250px}.frontierHUD #journeyHint{top:calc(88px + var(--safe-t));max-width:245px}.frontierHUD #travelHUD{top:calc(142px + var(--safe-t))}
}
@media(orientation:landscape) and (max-width:740px){#playerIdentity{max-width:135px;padding-left:30px}#playerIdentity>svg{display:block;width:48px;height:53px}#playerName{font-size:14px}.frontierHUD #gameHUD{gap:4px}.frontierHUD .roundIcon{width:45px;min-width:45px;height:47px}#coinBalance{right:calc(310px + var(--safe-r));max-width:calc(100% - 465px)}#coinValue{font-size:14px}.menuCaption{font-size:7px}}
@media(orientation:portrait) and (max-width:350px){#playerName{font-size:13px}#coinValue{font-size:14px}#playerIdentity{width:calc(48% - 35px);padding-left:27px}#playerIdentity>svg{width:46px}#coinBalance svg{width:25px}.frontierHUD #gameHUD{grid-template-columns:repeat(2,52px)}.frontierHUD #notice{max-width:calc(100% - 135px)}.frontierHUD .quickSlot{width:58px;min-width:58px}}
/* Comfortable map targets and expanded invisible hit area on the slim toolbar tab. */
.frontierHUD #mapToggle{min-height:44px;height:44px}.frontierHUD #collapseQuickbar:after{content:'';position:absolute;inset:-10px 0 0;pointer-events:auto}
/* UI020 revision 3: compact HUD. Portrait exposes every slot in two rows. */
#playerIdentity{height:44px;min-width:142px;max-width:205px;padding:3px 14px 3px 40px;left:calc(18px + var(--safe-l));top:calc(12px + var(--safe-t))}#playerIdentity>svg{width:52px;height:54px;left:-13px;top:-7px;padding:3px}#playerName{font-size:18px}
.frontierHUD #gameHUD{gap:5px;top:calc(8px + var(--safe-t));right:calc(10px + var(--safe-r))}.frontierHUD .roundIcon{width:46px;height:46px;min-width:46px;padding:4px 6px 10px}.roundIcon svg{width:26px;height:26px}.menuCaption{font-size:7px;bottom:4px}
#coinBalance{height:40px;top:calc(11px + var(--safe-t));right:calc(330px + var(--safe-r));padding:2px 10px 2px 4px;gap:4px}#coinBalance svg{width:29px;height:29px}#coinValue{font-size:18px}
.frontierHUD #navigationHUD{top:calc(69px + var(--safe-t));right:calc(17px + var(--safe-r));gap:4px}.frontierHUD #minimap{width:100px;height:100px;border-width:3px}.frontierHUD #mapToggle{min-height:36px;height:36px;width:44px;font-size:9px}
#quickbar{padding:5px 7px;bottom:calc(12px + var(--safe-b));max-width:calc(100% - 265px - var(--safe-l) - var(--safe-r))}#quickSlots{gap:4px}.frontierHUD .quickSlot{width:45px;min-width:45px;height:46px;padding:3px}.quickSlot svg{width:34px;height:34px}.quickSlot kbd{font-size:11px}.quickSlot strong{font-size:10px}#quickbarLabel{font-size:6px;letter-spacing:1.2px}
.frontierHUD #joystick{width:84px;height:84px;border-width:3px;left:calc(18px + var(--safe-l));bottom:calc(87px + var(--safe-b))}.frontierHUD #stick{width:30px;height:30px;left:calc(50% - 15px);top:calc(50% - 15px)}#joystick:after{font-size:15px;top:0}
#actionDock{bottom:calc(85px + var(--safe-b));right:calc(15px + var(--safe-r));gap:8px}.frontierHUD #runToggle{width:44px;height:44px}.frontierHUD #runToggle svg{width:26px;height:26px}.frontierHUD #runToggle span{font-size:7px}.frontierHUD #interact{width:60px;height:60px;padding:32px 4px 3px;font-size:8px}#interactionArt{width:29px;height:29px;bottom:22px}
.frontierHUD #notice{top:calc(62px + var(--safe-t));font-size:10px}.frontierHUD #journeyHint{top:calc(84px + var(--safe-t));font-size:10px;max-width:270px}.frontierHUD #travelHUD{top:calc(145px + var(--safe-t));font-size:10px}.frontierHUD #settingsPanel,.frontierHUD #inventoryPanel{top:calc(63px + var(--safe-t))}
@media(orientation:portrait){
:root{--hotbar-h:110px}
#playerIdentity{height:34px;top:calc(14px + var(--safe-t));left:calc(17px + var(--safe-l));width:calc(47% - 34px);min-width:0;max-width:none;padding:2px 5px 2px 27px}#playerIdentity>svg{width:41px;height:44px;left:-12px;top:-6px;padding:2px;border-width:2px}#playerName{font-size:14px}
#coinBalance{height:34px;top:calc(14px + var(--safe-t));right:calc(59px + var(--safe-r));padding:2px 6px 2px 3px;max-width:calc(53% - 32px)}#coinValue{font-size:15px}#coinBalance svg{width:23px;height:24px}.frontierHUD #menuToggle{top:calc(9px + var(--safe-t));right:calc(8px + var(--safe-r));width:44px;height:44px;min-width:44px;padding:11px}.frontierHUD #menuToggle svg{width:20px;height:20px}
.frontierHUD #gameHUD{top:calc(62px + var(--safe-t));left:calc(10px + var(--safe-l));right:auto;grid-template-columns:repeat(3,44px);gap:6px;padding:8px}.frontierHUD #gameHUD .roundIcon{width:44px;height:44px;min-width:44px;padding:4px 5px 10px}.frontierHUD #gameHUD .roundIcon svg{width:25px;height:25px}.frontierHUD #gameHUD .menuCaption{font-size:7px;bottom:3px}
.frontierHUD #navigationHUD{top:calc(65px + var(--safe-t));right:calc(15px + var(--safe-r));gap:4px}.frontierHUD #minimap{width:74px;height:74px;border-width:2px}.frontierHUD #mapToggle{width:40px;height:34px;min-height:34px;font-size:9px}.frontierHUD #destinationHint{max-width:95px;font-size:8px}
#quickbar{left:50%;right:auto;transform:translateX(-50%);width:min(340px,calc(100% - 20px - var(--safe-l) - var(--safe-r)));max-width:none;bottom:calc(14px + var(--safe-b));padding:5px 6px}#quickSlots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible;scroll-snap-type:none;mask-image:none;padding:1px}.frontierHUD .quickSlot{width:100%;min-width:0;height:44px;box-sizing:border-box;padding:3px}.quickSlot svg{width:32px;height:32px}.quickSlot kbd{font-size:10px;top:1px;left:3px}.quickSlot strong{font-size:10px;bottom:1px;right:3px}.quickSlot i{font-size:7px}#quickbarLabel{font-size:6px;letter-spacing:1px;bottom:calc(100% + 5px)}#quickbar.collapsed{width:68px;height:12px}
.frontierHUD #joystick{width:80px;height:80px;left:calc(17px + var(--safe-l));bottom:calc(139px + var(--safe-b))}.frontierHUD #stick{width:30px;height:30px;left:calc(50% - 15px);top:calc(50% - 15px)}#actionDock{bottom:calc(136px + var(--safe-b));right:calc(15px + var(--safe-r));gap:8px}.frontierHUD #runToggle{width:44px;height:44px}.frontierHUD #interact{width:58px;height:58px;padding:30px 3px 3px;font-size:8px}#interactionArt{width:28px;height:28px;bottom:20px}
.frontierHUD #notice{top:calc(64px + var(--safe-t));left:calc(11px + var(--safe-l));max-width:calc(100% - 120px);font-size:9px}.frontierHUD #journeyHint{top:calc(86px + var(--safe-t));left:calc(11px + var(--safe-l));max-width:calc(100% - 130px);font-size:9px;padding:4px 6px}.frontierHUD #travelHUD{top:calc(161px + var(--safe-t));max-width:calc(100% - 125px)}.frontierHUD #activity{bottom:calc(244px + var(--safe-b))}.frontierHUD #examine,.frontierHUD #cancelWork{bottom:calc(254px + var(--safe-b));max-width:120px;font-size:9px}.frontierHUD #settingsPanel,.frontierHUD #inventoryPanel{top:calc(61px + var(--safe-t))}.frontierHUD #inventoryPanel{bottom:calc(129px + var(--safe-b))}
}
@media(orientation:landscape) and (max-height:500px){
#playerIdentity{height:35px;top:calc(10px + var(--safe-t));min-width:0;max-width:140px;padding-left:29px}#playerIdentity>svg{width:42px;height:44px;left:-13px;top:-6px}#playerName{font-size:14px}.frontierHUD #gameHUD{gap:4px}.frontierHUD .roundIcon{width:44px;height:44px;min-width:44px;padding:4px 6px 10px}.roundIcon svg{width:25px;height:25px}.menuCaption{font-size:7px}#coinBalance{top:calc(10px + var(--safe-t));height:35px;right:calc(308px + var(--safe-r));max-width:calc(100% - 475px)}#coinValue{font-size:14px}#coinBalance svg{width:24px;height:25px}.frontierHUD #navigationHUD{top:calc(63px + var(--safe-t));right:calc(13px + var(--safe-r))}.frontierHUD #minimap{width:70px;height:70px;border-width:2px}.frontierHUD #joystick{width:76px;height:76px;bottom:calc(23px + var(--safe-b));left:calc(16px + var(--safe-l))}#actionDock{bottom:calc(23px + var(--safe-b));right:calc(12px + var(--safe-r));gap:7px}.frontierHUD #runToggle{width:44px;height:44px}.frontierHUD #interact{width:54px;height:54px;padding-top:27px}#interactionArt{width:26px;height:26px;bottom:19px}#quickbar{max-width:calc(100% - 225px - var(--safe-l) - var(--safe-r));padding:5px 6px;bottom:calc(11px + var(--safe-b))}.frontierHUD .quickSlot{width:40px;min-width:40px;height:42px}.quickSlot svg{width:30px;height:30px}.quickSlot kbd{font-size:10px}.quickSlot strong{font-size:9px}.frontierHUD #notice{top:calc(58px + var(--safe-t));font-size:9px}.frontierHUD #journeyHint{top:calc(78px + var(--safe-t));font-size:9px}.frontierHUD #travelHUD{top:calc(127px + var(--safe-t))}
}
/* The field guide reuses the actual 3D tree geometry; it never loads or writes character data. */
.treeGuideMode #playerIdentity,.treeGuideMode #gameHUD,.treeGuideMode #coinBalance,.treeGuideMode #quickbar,.treeGuideMode #navigationHUD,.treeGuideMode #actionDock,.treeGuideMode #joystick,.treeGuideMode #notice,.treeGuideMode #journeyHint,.treeGuideMode #activity,.treeGuideMode #travelHUD,.treeGuideMode #menuToggle,.treeGuideMode #instructions,.treeGuideMode #examine{visibility:hidden!important}
.frontierHUD #treeGuide{position:fixed;left:14px;right:auto;bottom:14px;top:auto;transform:none;margin:0;width:310px;max-height:calc(100dvh - 28px);padding:14px;font:12px/1.35 system-ui}.frontierHUD #treeGuide::backdrop{background:transparent}.frontierHUD #treeGuide h2{margin:7px 0;font-size:23px}.frontierHUD #treeGuide p{font-size:12px;line-height:1.4;margin:7px 0}.frontierHUD #treeGuide small{font-size:8px;letter-spacing:1.4px;color:#c2ac70}.frontierHUD #treeGuide select{width:100%;font-size:13px;min-height:36px;padding:5px}.guideRow{display:flex;gap:6px;align-items:end;margin-top:7px}.guideRow>*{flex:1;min-width:0}.frontierHUD #treeGuide button{font-size:11px;min-height:36px;padding:5px}.guideStatus{color:#c7c5a5}.frontierHUD #closeTreeGuide{width:100%}
@media(orientation:portrait){.frontierHUD #treeGuide{left:10px;bottom:calc(10px + var(--safe-b));width:calc(100% - 20px);max-height:290px;padding:11px}.frontierHUD #treeGuide h2{font-size:20px}.frontierHUD #treeGuide p{font-size:11px}.frontierHUD #treeGuide .guideStatus{display:none}.frontierHUD #treeGuide select,.frontierHUD #treeGuide button{min-height:34px}.frontierHUD #guideTreeNote{max-height:44px;overflow:auto}}
@media(orientation:landscape) and (max-height:500px){.frontierHUD #treeGuide{width:240px;max-height:calc(100dvh - 18px);left:9px;bottom:9px;padding:10px}.frontierHUD #treeGuide h2{font-size:19px}.frontierHUD #treeGuide p{font-size:10px}.frontierHUD #treeGuide .guideStatus{display:none}.frontierHUD #treeGuide button,.frontierHUD #treeGuide select{min-height:30px}}
.frontierHUD #treeGuide{scrollbar-width:none}.frontierHUD #treeGuide::-webkit-scrollbar{display:none}.frontierHUD #closeTreeGuide{position:sticky;bottom:0;background-color:#302719;z-index:1}
@media(orientation:portrait){.frontierHUD #treeGuide #guideTreeNote{display:none}.frontierHUD #treeGuide h2{margin:3px 0}.frontierHUD #treeGuide .guideRow{margin-top:4px}.frontierHUD #treeGuide{padding:8px 10px}.frontierHUD #treeGuide button{min-height:32px}.frontierHUD #treeGuide select{min-height:32px}}
/* Character023: dedicated portrait and landscape creation layouts, shared live model. */
body.auth-gated.creatingCharacter>#characterCreation{display:grid!important}body.creatingCharacter{overflow:hidden!important}body.creatingCharacter>#accountWelcome{display:none!important}
#characterCreation{position:fixed;inset:0;z-index:100;display:grid;grid-template-columns:190px minmax(220px,1fr) minmax(300px,390px);grid-template-rows:66px minmax(0,1fr) 66px;gap:14px;padding:calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));box-sizing:border-box;background:radial-gradient(ellipse at 45% 25%,#53765b55,transparent 65%),linear-gradient(125deg,#183e30,#102d25);color:#efe5c9;font:13px/1.4 system-ui}
#characterCreation *{box-sizing:border-box}#characterCreation header,#characterCreation footer{position:static;transform:none;inset:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1/-1;width:auto;margin:0;pointer-events:auto;background:none;border:0;box-shadow:none;padding:0}#characterCreation .creatorHeading h1{display:block;margin:0;font:700 clamp(18px,2.4vw,30px) Georgia,serif;color:#f1e6bf;text-shadow:0 2px #17190e}#characterCreation .creatorBrand{font:700 19px Georgia,serif;color:#cfb676}#characterCreation .creatorBrand small{color:#e4ce92}#characterCreation .creatorCloud{font-size:10px;color:#b1c4a7}
#characterCreation .woodPlate{border:2px solid #9c8045;border-radius:12px;padding:14px;background:repeating-linear-gradient(2deg,#53412b22 0 2px,#201b1644 3px 9px),linear-gradient(120deg,#3c3225,#24241b 75%);box-shadow:inset 0 0 0 2px #171910,inset 0 0 0 4px #846b3533,0 4px 12px #0005}#characterCreation h2{font:700 19px Georgia,serif;color:#e7d8ae;margin:0 0 10px}#characterCreation button{position:static;transform:none;inset:auto;font:600 12px system-ui;min-width:0;min-height:42px;cursor:pointer;padding:8px;border:1px solid #a58d54;border-radius:7px;color:#e4d6ac;background:linear-gradient(145deg,#504432,#28271e);box-shadow:inset 0 0 0 2px #141c1470,0 2px 3px #0005;touch-action:manipulation}#characterCreation button:focus-visible,#characterCreation input:focus-visible{outline:2px solid #f4ce70;outline-offset:2px}#characterCreation button[aria-pressed=true]{border-color:#e3be61;background:linear-gradient(135deg,#605238,#293e2c);box-shadow:inset 0 0 0 1px #d8bd62,0 0 8px #c5a34566}#characterCreation button:disabled{opacity:.45;cursor:default}#characterCreation .creatorBodyChoice{align-self:start}.bodyChoices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bodyChoices button{display:flex;flex-direction:column;align-items:center;gap:6px}.bodyChoices span{font:38px Georgia,serif}.creatorBodyChoice p{font-size:11px;color:#bcbea5}.creatorPreservation{padding-top:12px;border-top:1px solid #a18c4b55}
#creatorStage{position:relative;min-height:0;min-width:0;overflow:hidden;border-radius:16px;background:#294c3b;box-shadow:inset 0 0 20px #0004}#creatorStage canvas{position:absolute;inset:0;display:block;width:100%;height:100%}.previewBadge{position:absolute;top:10px;left:0;width:100%;text-align:center;font:10px system-ui;color:#c8d0b1;pointer-events:none}.creatorViewControls{position:absolute;bottom:32px;left:8px;right:8px;display:flex;justify-content:center;gap:5px}#characterCreation .creatorViewControls button{min-height:38px;min-width:36px;padding:6px}.previewHint{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:9px;color:#c2cfb4;margin:0}
.creatorCustomization{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#8c7848 #27291c}.creatorName label{display:flex;justify-content:space-between;font:700 19px Georgia,serif;color:#eadbb4}.creatorName small{font:11px system-ui;color:#b8b298}.creatorName input{width:100%;height:44px;background:#171f19;border:1px solid #af9455;border-radius:7px;padding:10px;color:#fff1d4;font:16px system-ui}.creatorName p{font-size:10px;min-height:28px;margin:5px 0 10px;color:#c9bd91}#creatorCategories{display:flex;flex-wrap:wrap;gap:5px;border-top:1px solid #86704466;border-bottom:1px solid #86704466;padding:9px 0;margin-bottom:12px}#characterCreation #creatorCategories button{flex:1 0 21%;display:flex;flex-direction:column;align-items:center;font-size:9px;gap:3px;padding:6px 4px;min-height:55px}#creatorCategories svg{width:23px;height:24px}#creatorOptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#characterCreation .creatorOption{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:78px;gap:5px;font-size:10px}.creatorOption svg{width:30px;height:32px}.creatorOption span{display:block}#creatorColors{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:16px}#creatorColors>span{flex:1 0 100%;font:16px Georgia,serif}#characterCreation .creatorSwatch{min-height:35px;width:35px;background:var(--swatch);border-width:2px;border-radius:6px}.creatorCosmeticNote{font-size:10px;color:#b7b89c;margin:14px 0 0}#characterCreation .creatorFooter p{font-size:11px;color:#b6c3a4;max-width:40%;margin:0}#characterCreation #confirmCharacter{background:linear-gradient(#47663a,#284b2e);font-size:15px;min-height:48px;padding:10px 20px;border:2px solid #baa36b}#characterCreation #creatorSignOut{font-size:11px;padding:8px 12px}
@media(orientation:portrait){#characterCreation{grid-template-columns:1fr;grid-template-rows:42px 40px minmax(210px,38dvh) minmax(170px,1fr) 72px;gap:7px;padding:calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}#characterCreation .creatorHeading{grid-row:1}.creatorHeading .creatorBrand{display:none}#characterCreation .creatorHeading h1{font-size:22px}#characterCreation .creatorCloud{font-size:8px;max-width:85px}#characterCreation .creatorBodyChoice{grid-row:2;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;height:40px;border-radius:8px}#characterCreation .creatorBodyChoice h2{font-size:12px;margin:0}.creatorBodyChoice p{display:none}.bodyChoices{display:flex;gap:5px}.bodyChoices button{min-height:30px!important;flex-direction:row;gap:5px!important;padding:3px 8px!important;font-size:11px!important}.bodyChoices span{font-size:19px}#creatorStage{grid-row:3;border-radius:10px}.previewBadge{top:5px;font-size:8px}.creatorViewControls{bottom:18px}#characterCreation .creatorViewControls button{min-height:32px;font-size:10px}.previewHint{font-size:8px;bottom:1px}.creatorCustomization{grid-row:4;padding:9px!important;border-radius:9px!important}.creatorName label{font-size:16px}.creatorName input{height:37px;font-size:16px}.creatorName p{min-height:15px;margin:3px 0 5px;font-size:9px}#creatorCategories{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:4px;padding:5px 0;margin-bottom:5px}#creatorCategories::-webkit-scrollbar{display:none}#characterCreation #creatorCategories button{flex:0 0 48px;min-height:45px;font-size:8px;padding:3px 2px}#creatorCategories svg{height:21px;width:21px}#creatorCategoryTitle{font-size:15px!important;margin:4px 0!important}#creatorOptions{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}#characterCreation .creatorOption{min-height:57px;font-size:8px;padding:4px 2px}.creatorOption svg{width:24px;height:25px}#creatorColors{gap:6px;margin-top:7px}#creatorColors>span{flex:1 0 auto;font-size:13px}#characterCreation .creatorSwatch{width:30px;min-height:30px}.creatorCosmeticNote{font-size:8px;margin:6px 0 0}#characterCreation .creatorFooter{grid-row:5;flex-wrap:wrap;gap:4px}#characterCreation .creatorFooter p{order:3;max-width:100%;width:100%;font-size:9px}#characterCreation #confirmCharacter{font-size:12px;min-height:40px;padding:7px 10px}#characterCreation #creatorSignOut{font-size:9px;min-height:40px;max-width:110px}}
@media(orientation:landscape) and (max-height:520px){#characterCreation{grid-template-columns:130px minmax(160px,1fr) 300px;grid-template-rows:34px minmax(0,1fr) 44px;gap:6px;padding:6px 9px}#characterCreation .creatorHeading h1{font-size:19px}#characterCreation .creatorBrand{font-size:12px}#characterCreation .creatorCloud{font-size:8px}.creatorBodyChoice{padding:8px!important}#characterCreation h2{font-size:14px}.bodyChoices{gap:4px}.bodyChoices span{font-size:27px}.creatorBodyChoice p{font-size:9px}#characterCreation .creatorCustomization{padding:9px}.creatorName label{font-size:15px}.creatorName input{height:36px}.creatorName p{min-height:14px;font-size:9px;margin:3px 0 5px}#creatorCategories{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;padding:5px 0;margin-bottom:6px}#characterCreation #creatorCategories button{flex:0 0 44px;min-height:42px;font-size:8px;padding:3px}#creatorCategories svg{width:19px;height:20px}#creatorOptions{grid-template-columns:repeat(5,1fr);gap:4px}#characterCreation .creatorOption{min-height:54px;font-size:8px;padding:3px}.creatorOption svg{height:24px;width:25px}#creatorColors{margin-top:7px;gap:5px}#creatorColors>span{flex:1 0 auto;font-size:12px}#characterCreation .creatorSwatch{width:28px;min-height:28px}.creatorCosmeticNote{font-size:8px;margin:6px 0 0}#characterCreation #confirmCharacter{min-height:40px;font-size:12px;padding:5px 10px}#characterCreation #creatorSignOut{font-size:10px;min-height:38px}.creatorViewControls{bottom:19px}.previewHint{font-size:8px}#characterCreation .creatorViewControls button{min-height:30px;min-width:27px;font-size:9px;padding:4px}}
.creatorAnimationControls{position:absolute;top:28px;left:8px;right:8px;display:flex;justify-content:center;gap:6px}#characterCreation .creatorAnimationControls select{max-width:48%;height:30px;font:10px system-ui;color:#e7d5ac;background:#233c2e;border:1px solid #928055;border-radius:5px;padding:4px}
@media(orientation:portrait){.creatorAnimationControls{top:20px}#characterCreation .creatorAnimationControls select{height:26px;font-size:9px}}
/* Keep optional animation/tool preview controls clear of the face in narrow layouts. */
#characterCreation .creatorAnimationControls{right:auto;width:120px;max-width:calc(50% - 20px);flex-direction:column;gap:4px}#characterCreation .creatorAnimationControls select{max-width:100%;width:100%}
@media(orientation:portrait){#characterCreation .creatorAnimationControls{width:100px;top:27px}}
@media(orientation:landscape) and (max-height:520px){#characterCreation .creatorAnimationControls{width:90px}}
#characterCreation .creatorHeading h1{padding:7px 18px;border:1px solid #9f854a;border-radius:7px;background:linear-gradient(110deg,#493a25,#27271d);box-shadow:inset 0 0 0 2px #1c2118,0 2px 5px #0003}
@media(orientation:portrait){#characterCreation .creatorHeading h1{font-size:clamp(16px,5vw,22px);padding:5px 8px}#characterCreation .creatorCloud{max-width:68px}}
@media(orientation:landscape) and (max-height:520px){#characterCreation .creatorHeading h1{padding:3px 10px}}

/* Inventory026: persistent portrait backpack access and a reachable settings close. */
.frontierHUD #settingsPanel .settingsHeading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-16px;background:var(--wood);z-index:1;margin:-8px -4px 8px;padding:4px;gap:8px}.frontierHUD #settingsPanel .settingsHeading b{margin:0;font-size:18px}.frontierHUD #settingsPanel #closeSettings{width:44px;min-width:44px;height:44px;margin:0;font-size:26px;padding:0;flex:none}.frontierHUD #backpackQuick{display:none}
@media(orientation:portrait){.frontierHUD #backpackQuick{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;z-index:7;left:calc(116px + var(--safe-l));bottom:calc(144px + var(--safe-b));width:52px;height:52px;min-width:52px;padding:4px;border-radius:9px}.frontierHUD #backpackQuick svg{width:29px;height:29px}.frontierHUD #backpackQuick span{font:9px Georgia}}
.carryAreaLabel{grid-column:1/-1;color:#dcc490;font:13px Georgia}.frontierHUD .emptyCell{min-height:64px}.frontierHUD #inventoryCount{font-size:12px}

#inventoryPreviewNote{position:fixed;z-index:3;left:50%;transform:translateX(-50%);top:calc(3px + var(--safe-t));font:9px system-ui;color:#f3d394;background:#2f2419cc;border-radius:4px;padding:3px 7px;pointer-events:none;white-space:nowrap}@media(orientation:portrait){#inventoryPreviewNote{top:calc(61px + var(--safe-t));font-size:8px}}
/* Bank028: original walnut-and-brass overlay, independent portrait composition. */
#inventoryPanel.inventory28{position:fixed;inset:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));width:auto;max-width:1180px;max-height:none;height:auto;margin:auto;padding:0;border:2px solid #ae8947;border-radius:18px;background:linear-gradient(125deg,#2f2119,#172c25 75%);box-shadow:0 18px 90px #000c,inset 0 0 0 4px #15140f;color:#f0e3c6;z-index:1000;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;font-family:system-ui}#inventoryPanel.inventory28[hidden]{display:none}.inventory28 *{box-sizing:border-box}.inventory28 button,.inventory28 input,.inventory28 select{font:inherit;font-size:13px;min-height:40px;border:1px solid #816b45;border-radius:7px;color:#efdfbd;background:#17241d;padding:8px;touch-action:manipulation}.inventory28 button{cursor:pointer}.inventory28 button:hover{background:#2c4734}.inventory28 button[aria-pressed=true]{background:linear-gradient(#3b6748,#244831);border-color:#d4b16a;color:#fff1cb}.inventory28 button:focus-visible,.inventory28 input:focus-visible{outline:3px solid #e8bf6b;outline-offset:2px}.inventory28 button:disabled{opacity:.45;cursor:default}.inventory28[aria-busy=true] button{pointer-events:none;opacity:.6}.i28Head{position:static!important;transform:none!important;display:flex;align-items:center;gap:14px;padding:16px 22px;background:repeating-linear-gradient(3deg,#ffffff04 0px,#ffffff04 2px,transparent 3px,transparent 14px),linear-gradient(100deg,#38291e,#253d2c);border-bottom:1px solid #9c7e46;flex:none}.i28Head h2{font:700 clamp(22px,2.5vw,34px) Georgia,serif;margin:2px 0;color:#f4e3b9}.i28Head small{font-size:10px;letter-spacing:2px;color:#b9b69a}.i28Crest{width:44px;height:52px;display:grid;place-items:center;color:#e7c073;background:#173e2c;border:1px solid #b99854;border-radius:50% 50% 35% 35%;font-size:34px}.inventory28 .i28Close{margin-left:auto;font-size:24px;min-width:44px;flex:none}.i28Nav{display:flex;gap:7px;padding:9px 20px;background:#111d17;border-bottom:1px solid #6c6540;flex:none}.i28Nav button{flex:0 1 150px}.i28Content{overflow:auto;flex:1;min-height:0;padding:16px}.i28Status{flex:none;margin:0;padding:9px 18px;min-height:38px;font-size:12px;color:#dbcead;background:#111c16;border-top:1px solid #655236}.i28SectionTitle{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:10px}.i28SectionTitle h3{font:700 22px Georgia,serif;margin:0;color:#e2c28b}.i28SectionTitle span{font-size:13px;color:#cfbf97;white-space:nowrap}.i28BackpackLayout{display:grid;grid-template-columns:minmax(280px,430px) minmax(220px,1fr);gap:24px;max-width:950px;margin:auto}.i28Pack{padding:14px;border:1px solid #8b7248;background:linear-gradient(135deg,#302319,#1a221b);border-radius:11px;min-width:0}.i28BagGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.inventory28 button.i28Cell{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1.05;min-height:42px;padding:5px;background:radial-gradient(ellipse at center,#353b2b,#171c17);border:1px solid #9b7f4e;border-radius:7px;box-shadow:inset 0 0 0 2px #100f0b88;overflow:hidden}.i28Cell svg{width:85%;height:85%;max-width:72px;max-height:72px;filter:drop-shadow(0 3px 2px #0009)}.i28Cell.empty{background:#141b1688;border-color:#6a593b77}.i28Cell strong{position:absolute;right:5px;bottom:3px;color:#fff5d6;text-shadow:0 2px 3px #000;font-size:15px;font-variant-numeric:tabular-nums}.i28CellName{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.inventory28 .i28Cell.selected{outline:2px solid #ecc77a;outline-offset:1px;background:#415a37}.i28Details{padding:16px;border:1px solid #776442;border-radius:10px;background:#14251e;align-self:start;min-width:0}.i28Details h3{margin:0 0 8px;font:700 22px Georgia,serif;color:#f0d69d}.i28Details p{font-size:13px;line-height:1.6;color:#c7c6ac}.i28Details button,.i28Details select,.i28Details input{margin:4px;max-width:100%}.inventory28 button.i28Primary{background:linear-gradient(#37623c,#213c29);border-color:#c5a05c;color:#f6e9bc;font-weight:650}.i28BankLayout{display:grid;grid-template-columns:144px minmax(250px,1fr) minmax(228px,30%);gap:14px;min-height:360px}.i28Tabs{display:flex;flex-direction:column;gap:8px}.i28Tabs button{text-align:left}.i28ManageToggle{margin-top:auto}.i28Vault{display:flex;flex-direction:column;min-width:0}.i28Shared{margin:0 0 10px;font-size:11px;color:#b4b89d}.i28BankTools{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.i28BankTools input{min-width:100px;flex:1}.i28BankTools select{max-width:135px}.i28BankScroll{height:clamp(220px,48vh,570px);overflow:auto;overscroll-behavior:contain;background:#101b16aa;border:1px solid #675a3f;border-radius:8px;scrollbar-color:#806d46 #101b16}.i28BankCanvas{position:relative;min-height:92px}.i28BankGrid{position:absolute;left:0;right:0;display:grid;gap:8px;padding:8px}.i28BankGrid .i28Cell{height:84px;aspect-ratio:auto}.i28BankActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.i28BankLayout+.i28Details{margin-top:14px;display:block}.i28Quantities{display:flex;gap:4px;flex-wrap:wrap}.i28Quantities button{min-width:42px;margin:0}.i28Drawer{display:none}.i28Manage{padding:12px;background:#2c3325;border:1px solid #9f8450;border-radius:7px}.i28Manage input{max-width:190px}.i28NoItems{grid-column:1/-1;padding:15px;font-size:13px;color:#b7b69d}.i28EquipmentLayout{display:grid;grid-template-columns:170px minmax(150px,1fr) minmax(250px,35%);gap:15px;min-height:400px}.i28EquipmentSlots{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.i28EquipmentSlot small{display:block;text-align:center;color:#c6bb99;font-size:11px;margin-bottom:5px}.i28EquipmentSlot .i28Cell{width:100%}.i28EquipmentPreview{position:relative;min-height:300px;border:1px solid #7d6943;border-radius:80px 80px 10px 10px;overflow:hidden;background:#192b23}.i28EquipmentPreview canvas{display:block;width:100%;height:100%}.i28CosmeticNote{position:absolute;bottom:8px;left:10px;right:10px;color:#d2c29f;background:#102319a8;padding:7px;text-align:center;font-size:10px}.i28EquipmentLayout+.i28Details{margin-top:14px}.inventory28 .i28Pack.compact .i28Cell{aspect-ratio:1;min-height:46px}.inventory28 .i28Pack.compact .i28Cell strong{font-size:12px}.inventory28 .i28UpgradeConfirm{padding:10px;background:#2e3525}
body.bank028 #quickbar{width:min(490px,calc(100vw - 240px));height:auto;bottom:max(10px,env(safe-area-inset-bottom));padding:5px 24px 5px 8px}body.bank028 #quickbarLabel{display:none}body.bank028 #quickSlots{display:flex!important;overflow-x:auto;overflow-y:hidden;gap:5px;scroll-snap-type:x mandatory;scrollbar-width:thin}body.bank028 .quickSlot{flex:0 0 43px;width:43px;height:43px;min-width:43px;scroll-snap-align:start}body.bank028 .quickSlot svg{width:34px;height:34px}body.bank028 #quickbar.collapsed{width:118px;height:30px}body.bank028 #quickbar.collapsed #quickSlots{display:none!important}body.bank028 #collapseQuickbar{top:1px;right:2px;width:22px;height:27px;min-height:27px}body.bank028 #quickbar.collapsed:before{content:'Quick shortcuts';font:11px system-ui;color:#d4c494}
@media(orientation:portrait){#inventoryPanel.inventory28{inset:max(7px,env(safe-area-inset-top)) 7px max(9px,env(safe-area-inset-bottom));border-radius:13px}.i28Head{padding:10px;gap:9px}.i28Head h2{font-size:23px}.i28Head small{font-size:8px;letter-spacing:1px}.i28Crest{width:34px;height:40px;font-size:28px}.i28Nav{padding:7px;gap:5px}.i28Nav button{font-size:12px;padding:7px;flex:1;min-width:0}.i28Content{padding:9px}.i28BankLayout{display:flex;flex-direction:column;gap:10px}.i28Tabs{flex-direction:row;overflow-x:auto;padding-bottom:4px;flex-shrink:0}.i28Tabs button{white-space:nowrap;flex:none}.i28Tabs .i28ManageToggle{margin-top:0}.i28BankTools input{width:100%;flex-basis:100%}.i28BankTools select{flex:1;max-width:none}.i28BankScroll{height:32vh;min-height:200px}.i28BankGrid .i28Cell{height:84px}.i28Pack{padding:10px}.i28Pack.compact{padding:10px}.i28Drawer{display:block;width:100%;margin-bottom:8px}.i28BagGrid.drawerHidden{display:none}.i28BackpackLayout{display:flex;flex-direction:column;gap:10px}.i28BackpackLayout .i28Pack{width:100%}.i28BackpackLayout .i28Cell{aspect-ratio:1.25}.i28EquipmentLayout{grid-template-columns:120px minmax(0,1fr);gap:10px;min-height:320px}.i28EquipmentLayout>.i28Pack{grid-column:1/-1}.i28EquipmentSlots{gap:5px}.i28EquipmentSlot small{font-size:10px}.i28EquipmentPreview{min-height:340px}.i28Status{font-size:11px;padding:7px 10px;line-height:1.4}.i28Details{padding:12px}.i28Details button{min-height:42px}.i28BankLayout+.i28Details{position:static;margin-top:10px}body.bank028 #quickbar{width:calc(100vw - 190px);max-width:300px;left:50%;bottom:max(10px,env(safe-area-inset-bottom));padding-left:5px}body.bank028 .quickSlot{flex-basis:42px;width:42px;height:42px}body.bank028 #quickbar.collapsed{width:118px}.i28SectionTitle h3{font-size:20px}}
@media(orientation:landscape) and (max-height:500px){.i28Head{padding:7px 15px}.i28Head h2{font-size:24px}.i28Crest{height:36px;width:32px;font-size:27px}.i28Nav{padding:5px 15px}.i28Nav button{min-height:32px;padding:5px}.i28Content{padding:10px}.i28BankLayout{grid-template-columns:105px minmax(220px,1fr) 205px;gap:8px}.i28Tabs{gap:5px}.i28Tabs button{font-size:12px;min-height:34px;padding:6px}.i28BankScroll{min-height:184px;height:184px}.i28BankTools input{width:100%;flex-basis:100%}.i28BankTools select{font-size:11px;max-width:120px}.i28BankLayout .i28BagGrid{gap:4px}.i28BankLayout .i28Pack{padding:8px}.i28EquipmentLayout{grid-template-columns:140px minmax(130px,1fr) minmax(220px,35%)}.i28Status{padding:5px 12px;font-size:11px}}

#inventoryPanel.inventory28 .i28Head{display:flex!important}

#inventoryPanel.inventory28.bankView .i28Details{position:sticky;bottom:0;z-index:4;box-shadow:0 -8px 18px #101b16aa;max-height:230px;overflow:auto}
body.bank028 #quickbar.collapsed{width:144px!important;max-width:144px!important;min-width:0;height:32px!important;white-space:nowrap;line-height:20px}
body.bank028 #quickbar.collapsed:before{position:static!important;display:block!important;white-space:nowrap;font-size:11px!important}
@media(orientation:portrait){.i28Pack.compact .i28BagGrid{max-height:170px;overflow:auto;grid-auto-rows:68px}.i28Pack.compact .i28BagGrid.drawerHidden{display:none}#inventoryPanel.inventory28.bankView .i28Details{max-height:210px}}

@media(orientation:portrait){
 #inventoryPanel.inventory28.bankView[data-pack-open=true] .i28Vault{display:none}
 #inventoryPanel.inventory28.bankView[data-pack-open=true] .i28Pack.compact .i28BagGrid{max-height:none;grid-auto-rows:54px}
 #inventoryPanel.inventory28.bankView[data-pack-open=true] .i28Pack.compact .i28Cell{aspect-ratio:auto;height:54px;min-height:54px}
 .i28BankScroll{height:clamp(146px,21dvh,200px);min-height:146px}
 .i28BankActions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .i28BankActions button{font-size:11px;padding:6px;min-height:40px}
 #inventoryPanel.inventory28.bankView .i28Details{max-height:190px}
 .i28Details h3{font-size:20px;margin-bottom:4px}.i28Details p{margin:7px 0}
}

.i28MobileBankSwitch{display:none}
@media(orientation:portrait){
 .bankView .i28MobileBankSwitch{display:flex;gap:8px;padding:6px 10px;background:#25392b;flex:none;border-bottom:1px solid #7f6d43}
 .i28MobileBankSwitch button{flex:1;min-height:38px}
 .bankView[data-pack-open=false] .i28Pack.compact{display:none}
 .bankView[data-pack-open=true] .i28Tabs{display:none}
 .bankView .i28Pack.compact>.i28Drawer{display:none}
 .bankView .i28Content{padding-top:7px}
}
@media(orientation:landscape) and (max-height:500px){
 #inventoryPanel.inventory28.bankView .i28Content{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;gap:6px}
 .i28BankLayout{min-height:0;height:100%;grid-template-columns:105px minmax(220px,1fr) 205px}
 .i28Tabs,.i28Vault,.i28BankLayout>.i28Pack{overflow:auto;max-height:100%;min-height:0;scrollbar-width:thin}
 .i28Vault{display:block}.i28Shared{display:none}.i28SectionTitle{margin-bottom:4px}.i28SectionTitle h3{font-size:18px}
 .i28BankTools{gap:4px;flex-wrap:nowrap;margin-bottom:5px}.i28BankTools input{width:80px;min-width:80px;flex:1 1 80px}.i28BankTools select{max-width:95px;min-width:0}.i28BankTools button,.i28BankTools input,.i28BankTools select{min-height:30px;font-size:11px;padding:5px}
 .i28BankScroll{height:90px;min-height:90px}.i28BankActions{margin-top:5px}.i28BankActions button{font-size:11px;min-height:32px;padding:5px}
 #inventoryPanel.inventory28.bankView .i28Details{position:static;max-height:94px;min-height:70px;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px}
 .bankView .i28Details h3{font-size:16px;margin:0 6px}.bankView .i28Details p{font-size:11px;margin:0 4px}.bankView .i28Details button,.bankView .i28Details select,.bankView .i28Details input{min-height:32px;font-size:11px;padding:5px;margin:0}
 .bankView .i28Quantities{gap:3px}.bankView .i28Quantities button{min-width:30px}
}
/* Inventory headers contain controls, unlike the noninteractive world HUD header. */
#inventoryPanel.inventory28 .i28Head{pointer-events:auto}
#inventoryPanel.inventory28 .i28Close{pointer-events:auto}
#inventoryPanel.inventory28[aria-busy=true] .i28Close{pointer-events:auto;opacity:1}

#worldContextMenu{position:fixed;z-index:1500;width:190px;max-width:calc(100vw - 16px);padding:7px;border:2px solid #a88c51;border-radius:9px;background:linear-gradient(135deg,#34281e,#10271e);box-shadow:0 10px 35px #0009;color:#edd9af}#worldContextMenu b{display:block;padding:7px;font:14px Georgia}#worldContextMenu button{display:block;width:100%;text-align:left;min-height:42px;margin:3px 0;background:#1a3025;color:#eddfbd;border:1px solid #7e7046}#worldContextMenu[hidden]{display:none!important}
/* Controls030: world-first dock. Each orientation has its own dimensions. */
body.controls030{--dock-w:252px;--hotbar-h:0px}
.controls030 #menuToggle{display:flex!important;position:fixed;top:auto;right:auto;z-index:120;left:max(10px,var(--safe-l));bottom:max(10px,var(--safe-b));width:52px;height:48px;min-height:44px;padding:4px;flex-direction:column;align-items:center;justify-content:center;border-radius:9px;background:var(--wood)}
.controls030 #menuToggle svg{width:26px;height:24px}.controls030 #menuToggle span{font:10px Georgia}
.controls030 #gameHUD{display:none!important;top:auto;bottom:calc(65px + var(--safe-b));left:max(10px,var(--safe-l));right:auto;flex-direction:column;align-items:stretch;padding:8px;width:166px;background:var(--wood);border:1px solid var(--brass);border-radius:10px;z-index:130}
.controls030.menusExpanded #gameHUD{display:flex!important}.controls030 #gameHUD button:not([hidden]){display:flex;align-items:center;gap:9px;width:100%;height:44px;min-height:44px;padding:6px 9px;border-radius:6px;font:13px Georgia}.controls030 #gameHUD svg{width:28px;height:28px}
.controls030 #playerIdentity{left:max(10px,var(--safe-l));top:max(10px,var(--safe-t));max-width:170px;height:46px;padding:4px 9px 4px 4px;gap:6px}.controls030 #playerName{font-size:17px}.controls030 #playerIdentity>svg{width:35px;height:35px}
.controls030 #coinBalance{left:calc(190px + var(--safe-l));right:auto;top:max(10px,var(--safe-t));height:44px;padding:4px 10px 4px 5px;max-width:160px;border-radius:8px}.controls030 #coinBalance svg{width:28px;height:28px}.controls030 #coinValue{font:700 17px Georgia}
.controls030 #actionDock{left:max(10px,var(--safe-l));right:auto;bottom:calc(120px + var(--safe-b));z-index:90}.controls030 #interact{width:90px;height:48px;padding:6px;min-height:44px;max-width:110px;border-radius:8px;font:12px Georgia}.controls030 #interact:before{display:none}
.controls030 #navigationHUD{right:calc(var(--dock-w) + 16px + var(--safe-r));top:max(12px,var(--safe-t))}.controls030 #minimap{width:104px;height:104px}.controls030 #mapToggle{min-height:32px;padding:4px 10px}.controls030 #destinationHint{max-width:104px}
.controls030 #travelHUD{left:max(10px,var(--safe-l));top:calc(72px + var(--safe-t));max-width:calc(100vw - var(--dock-w) - 30px);font-size:11px}.controls030 #notice{top:calc(120px + var(--safe-t));left:max(10px,var(--safe-l));max-width:min(400px,calc(100vw - var(--dock-w) - 24px))}
.controls030 #activity{left:20px;transform:none;bottom:calc(190px + var(--safe-b));width:150px;max-width:calc(100vw - var(--dock-w) - 24px)}.controls030 #cancelWork{left:10px;right:auto;bottom:calc(174px + var(--safe-b));font-size:11px}.controls030 #examine,.controls030 #sleep{display:none!important}
.controls030 #instructions{display:none}.controls030 #cloudStatus{left:max(10px,var(--safe-l));right:auto;bottom:calc(68px + var(--safe-b));max-width:calc(100vw - var(--dock-w) - 22px);font-size:10px;padding:4px 6px;overflow-wrap:anywhere}.controls030 #settingsPanel{left:max(10px,var(--safe-l));right:auto;top:auto;bottom:calc(65px + var(--safe-b));max-height:calc(100dvh - 90px - var(--safe-t) - var(--safe-b));z-index:140}
.controls030 #saveGuard{z-index:2100}.controls030 #error{z-index:2200}
.controls030 #inventoryPanel.inventory28:not(.bankView){position:fixed;inset:auto max(0px,var(--safe-r)) max(0px,var(--safe-b)) auto;width:var(--dock-w);max-width:none;max-height:calc(100dvh - var(--safe-t) - var(--safe-b) - 8px);height:auto;margin:0;border-radius:14px 0 0 0;border-bottom:0;border-right:0;overflow:visible;z-index:100}
.controls030 #inventoryPanel:not(.bankView) .i28Head{padding:3px 7px;min-height:35px;gap:5px;border-radius:12px 0 0 0}.controls030 #inventoryPanel:not(.bankView) .i28Crest,.controls030 #inventoryPanel:not(.bankView) .i28Head small{display:none}.controls030 #inventoryPanel:not(.bankView) .i28Head h2{font:700 17px Georgia;margin:0}.controls030 #inventoryPanel:not(.bankView) .i28Close{min-height:34px;min-width:38px;height:34px;font-size:19px;padding:2px}
.controls030 #inventoryPanel:not(.bankView) .i28Nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px;gap:3px}.controls030 #inventoryPanel:not(.bankView) .i28Nav button{min-width:0;min-height:44px;padding:3px;display:grid;place-items:center;gap:1px;font:9px system-ui}.controls030 #inventoryPanel:not(.bankView) .i28Nav svg{width:25px;height:25px}.controls030 #inventoryPanel.bankView .i28Nav svg{display:none}.controls030 #inventoryPanel.bankView .i28Nav span{font:13px system-ui}
.controls030 #inventoryPanel:not(.bankView) .i28Content{padding:6px;overflow:auto;max-height:calc(100dvh - 100px - var(--safe-t) - var(--safe-b));border-radius:0}.controls030 #inventoryPanel:not(.bankView) .i28BackpackLayout{display:block}.controls030 #inventoryPanel:not(.bankView) .i28Pack{padding:0;border:0;background:none;border-radius:0}.controls030 #inventoryPanel:not(.bankView) .i28Pack .i28SectionTitle{display:none}.controls030 #inventoryPanel:not(.bankView) .i28BagGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.controls030 #inventoryPanel:not(.bankView) .i28Cell{height:52px;min-height:44px;aspect-ratio:auto;padding:4px}.controls030 #inventoryPanel:not(.bankView) .i28Cell svg{max-width:44px;max-height:44px}.controls030 #inventoryPanel:not(.bankView) .i28Cell strong{font-size:12px}
.controls030 #inventoryPanel:not(.bankView) .i28Details{position:fixed;right:max(4px,var(--safe-r));bottom:calc(410px + var(--safe-b));width:var(--dock-w);max-height:190px;overflow:auto;z-index:150;margin:0;padding:10px;box-shadow:0 -7px 30px #0008}.controls030 #inventoryPanel:not(.bankView) .i28Details h3{font-size:18px}.controls030 #inventoryPanel:not(.bankView) .i28Details p{font-size:12px;margin:5px 0}.controls030 #inventoryPanel:not(.bankView) .i28Status{display:none}
.controls030 #inventoryPanel[data-view=equipment]:not(.bankView){width:300px}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentLayout{display:grid;grid-template-columns:58px minmax(100px,1fr) 58px;grid-template-rows:repeat(5,56px);gap:5px;min-height:0}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlots{display:contents}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot{grid-column:1;min-width:0}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot small{font-size:9px;margin-bottom:2px}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot .i28Cell{height:42px;min-height:42px}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(1){grid-row:1}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(2){grid-row:2}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(3){grid-row:3}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(4){grid-row:4}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(n+5){grid-column:3}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(5){grid-row:1}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(6){grid-row:2}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(7){grid-row:3}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(8){grid-row:4}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot:nth-child(9){grid-row:5}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentPreview{grid-column:2;grid-row:1/6;min-height:0;height:100%;border-radius:45px 45px 8px 8px}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentLayout>.i28Pack{display:none}.controls030 #inventoryPanel:not(.bankView) .i28CosmeticNote{font-size:8px;padding:3px;left:3px;right:3px;bottom:3px}.controls030 #inventoryPanel:not(.bankView) .i28BankActions{margin:0 0 7px;gap:5px}.controls030 #inventoryPanel:not(.bankView) .i28BankActions button{font-size:11px;min-height:36px;padding:5px}
.controls030 .i30Restore{position:fixed;z-index:110;right:max(0px,var(--safe-r));bottom:max(0px,var(--safe-b));min-height:44px;padding:8px 14px;border-radius:10px 0 0 0;font:13px Georgia}.controls030 .i30Restore[hidden]{display:none!important}
.i30Skills{display:flex;flex-direction:column;gap:7px}.i30Skill{display:grid;grid-template-columns:35px 1fr;gap:3px 8px;padding:9px;border:1px solid #6f6345;background:#172c22;border-radius:8px}.i30SkillIcon{grid-row:1/4}.i30SkillIcon svg{width:32px;height:32px}.i30Skill b{font:14px Georgia}.i30Skill small{font:10px system-ui}.i30Skill progress{grid-column:2;width:100%;height:7px}.i30Skill p{grid-column:1/-1;font:11px/1.4 system-ui;color:#c4bc9b;margin:5px 0 0}
@media(orientation:portrait){body.controls030{--dock-w:224px}.controls030 #navigationHUD{right:12px;top:max(12px,var(--safe-t))}.controls030 #minimap{width:105px;height:105px}.controls030 #coinBalance{left:max(10px,var(--safe-l));top:calc(68px + var(--safe-t));height:38px;max-width:150px}.controls030 #playerIdentity{max-width:190px}.controls030 #notice{top:calc(120px + var(--safe-t));max-width:calc(100vw - 145px)}.controls030 #travelHUD{top:calc(158px + var(--safe-t));max-width:calc(100vw - 20px);font-size:11px}.controls030 #inventoryPanel:not(.bankView) .i28Cell{height:47px;min-height:44px}.controls030 #inventoryPanel:not(.bankView) .i28Details{bottom:calc(392px + var(--safe-b));max-height:180px}.controls030 #inventoryPanel[data-view=equipment]:not(.bankView){width:min(290px,calc(100vw - 10px))}}
@media(orientation:landscape) and (max-height:500px){body.controls030{--dock-w:224px}.controls030 #inventoryPanel:not(.bankView) .i28Cell{height:40px;min-height:40px}.controls030 #inventoryPanel:not(.bankView) .i28Nav button{min-height:40px;font-size:8px}.controls030 #inventoryPanel:not(.bankView) .i28Nav svg{height:22px;width:22px}.controls030 #inventoryPanel:not(.bankView) .i28Details{bottom:8px;right:calc(var(--dock-w) + 8px + var(--safe-r));width:220px;max-height:250px}.controls030 #minimap{width:86px;height:86px}.controls030 #navigationHUD{right:calc(var(--dock-w) + 14px + var(--safe-r));top:12px}.controls030 #mapToggle{min-height:30px}.controls030 #notice{top:70px}.controls030 #travelHUD{top:105px}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentLayout{grid-template-rows:repeat(5,54px)}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot .i28Cell{height:42px;min-height:42px}.controls030 #inventoryPanel:not(.bankView) .i28EquipmentSlot small{font-size:8px}.controls030 #coinBalance{left:180px;max-width:130px}}
.controls030 #playerIdentity{width:auto;min-width:140px}.controls030 #playerIdentity>svg{position:static;display:block;left:auto;top:auto;padding:2px;width:35px;height:35px}
/* Banking has its own Bank/Backpack switcher; gameplay tabs stay in the dock. */
.controls030 #inventoryPanel.bankView .i28Nav{display:none}
.controls030 #inventoryPanel.bankView .i28Crest svg{width:30px;height:30px}

/* Layout031: approved portrait bottom tray and landscape right-hand backpack. */
.layout031 #inventoryPanel.inventory28:not(.bankView){background:linear-gradient(110deg,#18271eed,#17251aeb);border:2px solid #b0935a;border-bottom:0;border-right:0;box-shadow:inset 0 0 0 2px #292318,0 0 14px #0008}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Head{background:linear-gradient(100deg,#493422,#2c271c);border-bottom:1px solid #9e8149;min-height:34px;padding:3px 7px}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Close{font:700 25px Georgia;min-width:36px;height:32px;min-height:32px;padding:0 6px}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav button{background:linear-gradient(#283325,#17231b);border:1px solid #a38b58;border-radius:8px;color:#e4d9b6}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav button[aria-pressed=true]{background:linear-gradient(#41613c,#23442d);border-color:#d8bb78;box-shadow:inset 0 0 0 1px #b6a16255}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav button:disabled{opacity:.44}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Cell{background:radial-gradient(ellipse at 35% 30%,#203127,#111e17);border:1px solid #b3975d;border-radius:7px;box-shadow:inset 0 0 0 2px #0c181433;padding:5px}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Cell.selected{border-color:#f0cf85;background:#36533a;box-shadow:inset 0 0 0 2px #bfa76b}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Cell svg{max-width:90%;max-height:90%;width:90%;height:90%}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28Cell.empty{opacity:1}
.layout031 #inventoryPanel.inventory28:not(.bankView) .i28CellName{display:none}
@media(orientation:landscape){
 body.layout031{--dock-w:clamp(224px,25vw,330px)}
 .layout031 #inventoryPanel.inventory28:not(.bankView){width:var(--dock-w);border-radius:14px 0 0 0}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav{grid-template-columns:repeat(4,minmax(0,1fr))}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28BagGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .layout031 #inventoryPanel[data-view=inventory]:not(.bankView) .i28Cell{height:clamp(40px,calc((100dvh - 154px - var(--safe-t) - var(--safe-b))/6),74px)}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Head h2{font-size:16px}
}
@media(orientation:portrait){
 .layout031{--portrait-cell-h:clamp(42px,calc((100vw - var(--safe-l) - var(--safe-r) - 104px)/6),64px)}
 .layout031 #inventoryPanel.inventory28:not(.bankView),.layout031 #inventoryPanel[data-view=equipment]:not(.bankView){inset:auto max(0px,var(--safe-r)) max(0px,var(--safe-b)) max(0px,var(--safe-l));width:auto;max-width:none;max-height:calc(100dvh - 190px - var(--safe-t) - var(--safe-b));margin:0;display:grid;grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:auto minmax(0,1fr);border:2px solid #b0935a;border-bottom:0;border-radius:12px 12px 0 0;overflow:visible}
 .layout031 #inventoryPanel[hidden]{display:none!important}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Head{grid-column:1/3;grid-row:1;padding:3px 8px;border-radius:10px 10px 0 0;min-height:34px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Head h2{font-size:17px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(44px,1fr));gap:4px;padding:7px 6px 7px 2px;min-height:0}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav button{font-size:9px;min-height:44px;padding:3px 1px;gap:1px;min-width:0}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Nav svg{width:25px;height:25px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Content{grid-column:1;grid-row:2;padding:7px 4px 7px 8px;max-height:calc(100dvh - 232px - var(--safe-t) - var(--safe-b));min-height:0;overflow:auto}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28BagGrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Cell{height:var(--portrait-cell-h);min-height:42px;min-width:0;padding:3px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Cell strong{font-size:10px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28Details{position:fixed;left:auto;right:max(8px,var(--safe-r));bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 8px);width:min(300px,calc(100vw - 18px));max-height:min(220px,calc(100dvh - var(--inventory-dock-height,250px) - 170px));overflow:auto}
 .layout031 #inventoryPanel[data-view=equipment]:not(.bankView) .i28Content,.layout031 #inventoryPanel[data-view=skills]:not(.bankView) .i28Content{height:min(300px,40dvh)}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28EquipmentLayout{grid-template-columns:48px minmax(70px,1fr) 48px;grid-template-rows:repeat(5,51px);gap:4px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28EquipmentSlot .i28Cell{height:40px;min-height:40px}
 .layout031 #inventoryPanel.inventory28:not(.bankView) .i28CosmeticNote{font-size:7px}
 .layout031.inventoryDockOpen #menuToggle{bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 10px)}
 .layout031.inventoryDockOpen #cloudStatus{bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 64px);max-width:140px}
 .layout031.inventoryDockOpen #gameHUD,.layout031.inventoryDockOpen #settingsPanel{bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 66px);max-height:calc(100dvh - var(--inventory-dock-height,250px) - 100px - var(--safe-t))}
 .layout031.inventoryDockOpen #actionDock{bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 115px)}
 .layout031.inventoryDockOpen #activity{bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 174px)}
 .layout031.inventoryDockOpen #cancelWork{bottom:calc(var(--inventory-dock-height,250px) + var(--safe-b) + 170px)}
 .layout031 .i30Restore{min-height:44px}
 .layout031 #inventoryPanel.bankView .i28BagGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* HUD032: camera-following square minimap and saved-character nameplate. */
.hud032 #navigationHUD{position:fixed;top:calc(10px + var(--safe-t));right:calc(10px + var(--safe-r));left:auto;bottom:auto;width:128px;display:flex;align-items:stretch;gap:6px;z-index:12}
.hud032 #minimap{box-sizing:border-box;display:block;width:128px;height:128px;border-radius:9px;border:2px solid #c0a368;background:#193b2b;box-shadow:inset 0 0 0 2px #3e3523,0 3px 10px #0007;clip-path:none}
.hud032 .mapControls{display:grid;grid-template-columns:1fr 1fr;gap:5px;pointer-events:auto}
.hud032 #navigationHUD #mapToggle,.hud032 #navigationHUD #runToggle{position:static;inset:auto;transform:none;width:auto;min-width:44px;height:44px;min-height:44px;padding:4px 3px;border:1px solid #ae915a;border-radius:7px;background:linear-gradient(#423b29,#202a1e);box-shadow:inset 0 0 0 1px #101c16;color:#e9ddb9;font:12px Georgia;display:flex;align-items:center;justify-content:center;gap:2px}
.hud032 #navigationHUD #runToggle svg{width:21px;height:24px}.hud032 #navigationHUD #runToggle span{font:10px Georgia}.hud032 #navigationHUD #runToggle[aria-pressed=true]{background:linear-gradient(#4b6b3d,#27462d);border-color:#e5c57e;box-shadow:inset 0 0 0 1px #b4a068}
.hud032 #destinationHint{font:10px/1.3 system-ui;max-width:128px;text-align:center;border-radius:4px;padding:2px 3px;overflow-wrap:anywhere}.hud032 #destinationHint:empty{display:none}
.hud032 #playerIdentity{box-sizing:border-box;left:calc(10px + var(--safe-l));top:calc(10px + var(--safe-t));height:76px;width:248px;min-width:0;max-width:calc(100vw - 168px - var(--safe-l) - var(--safe-r));padding:5px 10px 5px 5px;gap:10px;overflow:hidden;border:2px solid #b59a63;border-radius:12px;background:repeating-linear-gradient(3deg,#49352222 0 2px,transparent 2px 7px),linear-gradient(115deg,#3f3023,#1c2b21);box-shadow:inset 0 0 0 2px #181e16,inset 0 0 0 3px #846d3a55,0 4px 12px #0007}
.hud032 .identityPortrait{width:60px;height:60px;flex:0 0 60px;border:1px solid #d3b577;border-radius:9px;overflow:hidden;box-shadow:0 0 0 2px #15241b,0 2px 5px #0007;background:#25412f}.hud032 .playerPortrait{position:static;display:block;width:100%;height:100%}
.hud032 .identityText{display:flex;flex-direction:column;min-width:0;gap:2px}.hud032 .identityText small{font:700 8px system-ui;letter-spacing:1.1px;color:#bca776}.hud032 #playerName{font:700 23px/1.15 Georgia,serif;letter-spacing:.3px;color:#f4e5bd;text-shadow:0 2px 2px #0009;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.hud032 .identityText span{font:10px Georgia;color:#c8c5a5}
.hud032 #coinBalance{left:calc(10px + var(--safe-l));top:calc(94px + var(--safe-t));height:36px;max-width:160px}
@media(orientation:portrait){.hud032 #navigationHUD,.hud032 #minimap{width:112px}.hud032 #minimap{height:112px}.hud032 #playerIdentity{width:246px;max-width:calc(100vw - 144px - var(--safe-l) - var(--safe-r));height:68px;gap:8px;padding-right:8px}.hud032 .identityPortrait{width:52px;height:52px;flex-basis:52px}.hud032 #playerName{font-size:21px}.hud032 .identityText small{font-size:7px;letter-spacing:.8px}.hud032 .identityText span{font-size:9px}.hud032 #coinBalance{top:calc(86px + var(--safe-t))}.hud032 #notice{top:calc(135px + var(--safe-t));max-width:calc(100vw - 145px)}.hud032 #travelHUD{top:calc(181px + var(--safe-t))}}
@media(orientation:landscape) and (max-height:500px){.hud032 #navigationHUD,.hud032 #minimap{width:98px}.hud032 #minimap{height:98px}.hud032 #playerIdentity{height:64px;width:230px}.hud032 .identityPortrait{width:48px;height:48px;flex-basis:48px}.hud032 #playerName{font-size:21px}.hud032 #coinBalance{left:calc(250px + var(--safe-l));top:calc(10px + var(--safe-t))}.hud032 #inventoryPanel.inventory28:not(.bankView){max-height:calc(100dvh - 174px - var(--safe-t) - var(--safe-b))}.hud032 #inventoryPanel.inventory28:not(.bankView) .i28Content{min-height:0;overflow:auto}.hud032 #notice{top:calc(82px + var(--safe-t))}}
@media(max-width:370px) and (orientation:portrait){.hud032 .identityPortrait{width:46px;height:46px;flex-basis:46px}.hud032 #playerName{font-size:18px}.hud032 .identityText span{font-size:8px}.hud032 .identityText small{font-size:6px}}

@media(orientation:landscape) and (max-height:500px){.hud032 #destinationHint{position:absolute;right:calc(100% + 8px);top:0;width:120px;max-width:120px}}
.balancedSetting,.fpsSetting{margin:5px 0;padding:6px;font:12px system-ui;color:#d8ceae}.balancedSetting strong{float:right;color:#e8d18e}.fpsSetting{display:flex;gap:8px;align-items:center;justify-content:space-between}.fpsSetting select{min-height:40px;max-width:130px}#settingsPanel>small{font-size:10px;line-height:1.4}
