/* Obsidian 4.1 — the game is the canvas; panels are its windows. */
html:has(body.immersive-mode),body.immersive-mode{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body.immersive-mode #app{height:100%;min-height:0;overflow:hidden}
body.immersive-mode{--hud-gold:#dbc38b;--hud-bronze:#846e46;--hud-ink:#0a1015;--hud-line:#b39b604f;background:#080c10}
body.immersive-mode :focus-visible{outline:2px solid #efce85;outline-offset:4px}
.game-viewport{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:0!important;max-width:none!important;padding:0!important;margin:0!important;overflow:hidden;color:#e9e7de;font-size:14px;line-height:1.45}
.hud-surface{position:absolute;inset:0;overflow:hidden}
.game-environment{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 53%;user-select:none;pointer-events:none}
.game-atmosphere{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#03080bb3 0%,#03070b10 28%,#07101500 55%,#050b12c9 100%),linear-gradient(90deg,#02090c64,transparent 25%,transparent 75%,#02090c60)}
.hud-top{position:absolute;top:calc(20px + env(safe-area-inset-top,0px));left:calc(24px + env(safe-area-inset-left,0px));right:calc(24px + env(safe-area-inset-right,0px));display:grid;grid-template-columns:320px 1fr 320px;align-items:start;gap:20px;z-index:5;pointer-events:none}
.hud-top>*{pointer-events:auto}
.hud-hero{display:flex;align-items:center;gap:12px;min-width:0;filter:drop-shadow(0 3px 8px #000b)}
.hud-portrait{position:relative;flex:none;width:84px;height:84px;border:2px solid #b39760;border-radius:50%;background:radial-gradient(#657469,#152027 70%);box-shadow:0 0 0 4px #0a1119d9,0 0 0 5px #7f6c4059,inset 0 0 16px #000;transition:border-color .15s}
.hud-portrait:hover{border-color:#fff0ba}
.hud-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;border-radius:50%}
.hud-portrait>span{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);min-width:36px;text-align:center;background:linear-gradient(#4c4230,#161b1d);border:1px solid #bba06b;color:#f3deac;font-size:13px;padding:1px 5px;border-radius:3px;font-weight:700}
.hud-hero-info{flex:1;min-width:0}
.hud-hero-name{display:flex;align-items:baseline;gap:9px;margin-bottom:6px;white-space:nowrap}
.hud-hero-name h1{font:400 27px/1 Georgia,Cambria,serif;letter-spacing:.3px}
.hud-hero-name>span{color:#c5c8bf;font-size:12px;overflow:hidden;text-overflow:ellipsis}
.hud-small-resource{height:14px;position:relative;border:1px solid #b09b704f;display:flex;align-items:center;justify-content:space-between;padding:0 5px;isolation:isolate;background:#160f13;color:#fff;font-size:10px;line-height:1;margin:3px 0;box-shadow:inset 0 0 3px #000b}
.hud-small-resource>i{position:absolute;inset:0 auto 0 0;z-index:-1;background:linear-gradient(0deg,#681b28,#be4048 70%,#df7c79)}
.hud-small-resource.mp>i{background:linear-gradient(0deg,#17386d,#2a70ac 70%,#65b5df)}
.hud-small-resource b{font-weight:500;text-shadow:0 1px 3px #000}
.hud-small-resource em{font-style:normal;color:#f3f5fac9}
.hud-session-link{display:flex;align-items:center;gap:6px;min-height:28px;font-size:11px;color:#d1d6d6;max-width:100%;text-align:left}
.hud-session-link .icon{width:14px;height:14px;flex-basis:14px;color:#9ec6e7}
.hud-session-link:hover{color:#ffe9ac}
.hud-status-dot{display:inline-block;flex:none;width:5px;height:5px;border-radius:50%;background:#8c9495}
.hud-status-dot.active{background:#93cfa4;box-shadow:0 0 8px #7bd4a466}
.hud-brand{justify-self:center;text-align:center;display:flex;flex-direction:column;padding:0 8px;text-shadow:0 3px 12px #000;line-height:1;min-height:52px}
.hud-brand>span{font:400 27px/1 Georgia,serif;letter-spacing:7px;color:#e1c992}
.hud-brand>small{font-size:9px;letter-spacing:4px;color:#dfd2ae;margin-top:8px}
.hud-global{display:flex;gap:6px;justify-content:flex-end;align-items:center}
.hud-global-button{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:none;background:linear-gradient(#172024d6,#0b1319e8);border:1px solid #99805766;border-radius:4px;color:#d7ccb1;box-shadow:inset 0 0 0 2px #10171c7a,0 3px 10px #0004}
.hud-global-button:hover{background:#263036e8;border-color:#d7bd7b;color:#ffedb8}
.hud-global-button .icon{width:20px;height:20px}
.hud-notification-dot{position:absolute;top:9px;right:10px;width:5px;height:5px;background:#e8b467;border-radius:50%;box-shadow:0 0 5px #d5a861}
.hud-location{position:absolute;top:107px;left:50%;transform:translateX(-50%);width:360px;max-width:40%;display:flex;align-items:center;justify-content:center;gap:20px;text-align:center;text-shadow:0 2px 5px #000;pointer-events:none}
.hud-location-line{height:1px;background:linear-gradient(90deg,transparent,#d0b478a3);flex:1;max-width:64px}
.hud-location-line:last-child{transform:rotate(180deg)}
.hud-location-kicker{font-size:9px;letter-spacing:2.2px;color:#e9d6af;white-space:nowrap}
.hud-location h2{font:400 31px/1.2 Georgia,serif;letter-spacing:1px;margin:3px 0}
.hud-location small{font-size:11px;color:#f0eada}
.hud-location small>span{padding:0 5px;color:#d7bd7b}
.hud-party-rail{position:absolute;top:163px;left:24px;display:grid;gap:8px;width:187px}
.hud-party-member{display:flex;align-items:center;gap:9px;min-height:51px;padding:4px 9px 4px 4px;border:1px solid #ab906c3d;border-left:2px solid #a58d62;background:linear-gradient(90deg,#0b161be8,#0d192282);box-shadow:0 4px 14px #0002}
.hud-party-member>img{width:40px;height:40px;object-fit:cover;border-radius:2px;background:#243036}
.hud-party-member>span{flex:1;min-width:0}
.hud-party-member b{font-weight:500;font-size:13px;display:block}
.hud-party-member small{font-size:10px;color:#b1bfc6;display:block;margin-top:2px}
.hud-party-member:hover{border-color:#d7b373;background:#14282ee8}
.hud-party-all{font-size:11px;display:flex;align-items:center;gap:7px;color:#dbd3bc;min-height:32px;padding-left:5px;text-shadow:0 1px 5px #000}
.hud-party-all>.icon{width:14px;height:14px;flex-basis:14px}.hud-party-all>.icon:last-child{margin-left:auto}
.hud-minimap{position:absolute;right:27px;top:94px;width:182px;aspect-ratio:1;display:block;padding:7px;border:1px solid #bba16a88;border-radius:50%;background:#0c1721e8;box-shadow:0 4px 30px #0007,inset 0 0 0 3px #373c355c;isolation:isolate}
.hud-minimap:before,.hud-minimap:after{content:'';position:absolute;width:8px;height:8px;background:#c7a668;transform:rotate(45deg);left:calc(50% - 4px);top:-5px}
.hud-minimap:after{top:auto;bottom:-5px}
.hud-map-north{position:absolute;left:50%;top:10px;transform:translateX(-50%);font:11px Georgia,serif;z-index:2;color:#f2dcad;text-shadow:0 1px 4px #000}
.hud-minimap-land{position:relative;width:100%;height:100%;overflow:hidden;border-radius:50%;background:#102127;border:1px solid #d5bd7a44}
.hud-minimap-land>img{height:140%;width:140%;max-width:none;object-fit:cover;position:absolute;left:-20%;top:-20%;filter:saturate(.5) brightness(.82)}
.hud-minimap-land:after{content:'';position:absolute;inset:0;background:radial-gradient(transparent 20%,#08172290);box-shadow:inset 0 0 20px #000}
.hud-map-player{position:absolute;z-index:2;left:50%;top:50%;width:8px;height:10px;background:#f4d78d;clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%);transform:translate(-50%,-50%);filter:drop-shadow(0 0 6px #fff)}
.hud-map-ring{position:absolute;z-index:1;left:calc(50% - 23px);top:calc(50% - 23px);width:46px;height:46px;border:1px solid #e1c47591;border-radius:50%}
.hud-minimap-footer{position:absolute;z-index:3;bottom:2px;left:50%;transform:translateX(-50%);background:linear-gradient(#1c272b,#0a151e);border:1px solid #a78e5b;display:flex;align-items:center;gap:7px;min-height:34px;width:max-content;max-width:210px;padding:3px 12px;white-space:nowrap;box-shadow:0 4px 15px #0009;font-size:12px;color:#e6d5ab}
.hud-minimap-footer b{font-weight:500}.hud-minimap-footer .icon{height:15px;width:15px;flex-basis:15px}.hud-minimap-footer kbd{border:0;color:#b1b6af;font-size:9px;padding:0;background:none}
.hud-map-unavailable{font-size:10px;position:absolute;left:15%;top:35%;width:70%;text-align:center;color:#c6c4b3}
.hud-objective{position:absolute;right:28px;top:319px;width:210px;padding:12px 14px 8px;border-left:1px solid #c2a97185;background:linear-gradient(90deg,#07131bc2,#08131c26);text-shadow:0 1px 3px #000}
.hud-section-label{font-size:10px;letter-spacing:1.3px;color:#dac598;display:flex;align-items:center;gap:7px;line-height:1.4}
.hud-section-label>.icon{width:14px;height:14px;flex-basis:14px}
.hud-objective h3{font:400 19px/1.25 Georgia,serif;margin:12px 0 10px;color:#f2ead6}
.hud-objective p{font-size:12px;color:#d4d9d7}.hud-objective p>span{padding:0 5px;color:#b89b63}
.hud-objective-progress{height:3px;background:#303c3e;margin-top:10px}.hud-objective-progress>i{display:block;height:100%;background:linear-gradient(90deg,#867342,#e4c16f)}
.hud-objective-meta{display:flex;justify-content:space-between;font-size:10px;color:#c5c8bd;margin-top:5px}
.hud-objective>a{display:flex;align-items:center;gap:4px;font-size:11px;color:#e5ce9b;min-height:44px}.hud-objective>a>.icon{width:13px;height:13px;flex-basis:13px}
.hud-avatar-stage{position:absolute;left:50%;top:62%;transform:translate(-50%,-50%);height:clamp(150px,30vh,310px);width:clamp(100px,20vh,207px);display:block;isolation:isolate;filter:drop-shadow(0 6px 3px #0007)}
.hud-avatar-sprite{position:absolute;inset:0 auto 0 12.5%;width:75%;background-image:url('./assets/obsidian-avatar-trio.png');background-repeat:no-repeat;background-size:300% 100%;background-position:0% 50%;z-index:2}
.hud-avatar-stage.elf .hud-avatar-sprite{background-position:50% 50%}.hud-avatar-stage.wizard .hud-avatar-sprite{background-position:100% 50%}
.hud-avatar-label{position:absolute;left:50%;top:-4px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;white-space:nowrap;text-shadow:0 1px 4px #000,0 2px 8px #000;z-index:4;font-size:12px;line-height:1.6}
.hud-avatar-label b{font-weight:600;color:#f2d48e;letter-spacing:.5px}.hud-avatar-label small{color:#f2f0dc;font-size:10px}
.hud-avatar-shadow{position:absolute;bottom:7%;left:12%;width:76%;height:12%;background:#071012a8;filter:blur(7px);border-radius:50%;z-index:0}
.hud-avatar-selection{position:absolute;bottom:6%;left:5%;width:90%;height:15%;border:1px solid #edcf8aad;box-shadow:0 0 15px #e8b15030,inset 0 0 8px #e7ba6e3d;border-radius:50%;z-index:1}
.hud-avatar-stage:hover .hud-avatar-selection{border-color:#fff0bd;box-shadow:0 0 20px #ecc66b80}
.hud-avatar-stage.offline{filter:grayscale(.6) drop-shadow(0 6px 3px #0007)}
.hud-world-marker{position:absolute;display:flex;flex-direction:column;align-items:center;gap:6px;color:#f0dbad;text-shadow:0 2px 4px #000,0 0 8px #000;font-size:11px;min-width:60px;min-height:64px}
.hud-world-marker.merchant{left:69%;top:56%}.hud-world-marker.expedition{left:31%;top:46%}
.hud-world-marker-icon{width:38px;height:38px;display:grid;place-items:center;background:#0c1c22ab;border:1px solid #d3b57a99;transform:rotate(45deg);box-shadow:0 0 0 4px #1b24202e}
.hud-world-marker-icon>.icon{transform:rotate(-45deg);height:18px;width:18px}
.hud-world-marker:hover .hud-world-marker-icon{background:#534831c9;border-color:#ffe6aa}
.hud-chat-preview{position:absolute;left:25px;bottom:164px;width:295px;padding:12px 13px 8px;border-left:1px solid #8d9c896b;background:linear-gradient(90deg,#07131bd9,#08131b58);font-size:11px;text-shadow:0 1px 3px #000}
.hud-chat-preview>.hud-section-label{min-height:30px;margin-bottom:5px}.hud-chat-preview>.hud-section-label span{font-size:10px;letter-spacing:0;color:#bbc3c5;margin-left:auto}.hud-chat-preview>.hud-section-label>.icon:last-child{margin-left:4px}
.hud-chat-preview p{display:flex;gap:7px;line-height:1.6;margin:4px 0}.hud-chat-preview p>b{font-weight:500;color:#d7bd7b;flex:none}.hud-chat-preview p>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#d3d8d7}
.hud-chat-input{display:flex;justify-content:space-between;align-items:center;min-height:32px;color:#b7c3ca;border-top:1px solid #8f9b9152;margin-top:8px}.hud-chat-input kbd{font-size:9px;background:none;padding:0;border:0;color:#acb9ba}
.hud-loot-preview{position:absolute;right:25px;bottom:177px;width:265px;display:flex;align-items:center;gap:11px;background:linear-gradient(90deg,#0b1723b8,#0a172558);padding:10px;border-left:1px solid #819da557}
.hud-loot-image{width:46px;height:46px;flex:none;display:grid;place-items:center;background:radial-gradient(#3c5259,#12232c);border:1px solid #a391655c;transform:rotate(3deg)}
.hud-loot-image img{width:39px;height:39px;object-fit:contain;transform:rotate(-3deg)}
.hud-loot-preview small{font-size:9px;letter-spacing:1.1px;color:#d3c5a7;display:block}.hud-loot-preview b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:500;color:#acd7bd;line-height:1.5;margin:4px 0}
.hud-loot-preview em{font-style:normal;font-size:10px;display:flex;align-items:center;gap:4px;color:#d8c395}.hud-loot-preview em .icon{width:12px;height:12px;flex-basis:12px}
.hud-bottom{position:absolute;bottom:0;left:0;right:0;padding:0 max(24px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(24px,env(safe-area-inset-left,0px));background:linear-gradient(transparent,#070d14b5 60%,#070d14ef)}
.hud-dock{display:flex;justify-content:center;align-items:flex-end;gap:10px;margin:0 auto;max-width:1150px;padding:4px 10px 0}
.hud-dock-center{max-width:calc(100% - 196px);position:relative;padding:8px 8px 0;background:linear-gradient(#172227e6,#101b21);border:1px solid #98815394;border-bottom:0;box-shadow:0 -3px 18px #070c1080,inset 0 1px 0 #b49c592b;border-radius:5px 5px 0 0}
.hud-dock-center:before{content:'';position:absolute;left:calc(50% - 4px);top:-5px;width:8px;height:8px;transform:rotate(45deg);background:#ba9e63;border:1px solid #e8ca85}
.hud-hotbar{display:flex;align-items:stretch;gap:5px;padding-bottom:8px}
.hud-command{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:62px;width:70px;min-height:62px;padding:8px 3px 5px;border:1px solid #6e69545e;border-radius:3px;background:linear-gradient(#293238a8,#152027cf);box-shadow:inset 0 0 0 2px #121a21a6;color:#ddceaa;transition:background .15s,border-color .15s}
.hud-command>.icon{height:24px;width:24px;flex-basis:24px;filter:drop-shadow(0 2px 3px #0009)}
.hud-command>span{font-size:10px;white-space:nowrap;line-height:1.3;color:#d5d5cd}.hud-command>kbd{position:absolute;top:3px;left:5px;font-size:8px;font-weight:400;line-height:1;color:#b5b49d;background:none;border:0;padding:0}
.hud-command:hover{background:linear-gradient(#454532,#202e2c);border-color:#d8bd7b;color:#fff0ba}.hud-command:hover>span{color:#fff0ba}
.hud-command-primary{color:#d7e7bc;background:linear-gradient(#354838,#182b27);border-color:#8a9d6f8c;min-width:73px}.hud-command-primary>span{color:#e1e9ce}
.hud-command-menu{border-color:#b29a668c;background:linear-gradient(#3c3b2c,#262b27)}
.hud-experience{position:relative;isolation:isolate;background:#050e13;height:17px;border-top:1px solid #74633e;overflow:hidden;text-align:center;font-size:8px;letter-spacing:1.5px;line-height:16px;color:#fff0cb;margin:0 -8px}
.hud-experience>i{position:absolute;left:0;top:0;height:100%;background:linear-gradient(90deg,#68502a,#94743c,#d6b36a);z-index:-1}.hud-experience>span{text-shadow:0 1px 2px #000,0 0 4px #000}.hud-experience b{font-weight:500}
.hud-orb{width:88px;height:88px;border-radius:50%;padding:6px;background:conic-gradient(from 30deg,#c0a677,#4a4536,#c6ad7c,#2b3030,#a18c66,#c0a677);box-shadow:0 3px 16px #0009,inset 0 0 0 2px #b0a07e;position:relative;flex:none;align-self:center;margin-bottom:5px}
.hud-orb:before,.hud-orb:after{content:'';position:absolute;top:40%;height:19px;width:8px;background:linear-gradient(#b6a374,#4b4d42);left:-4px;clip-path:polygon(100% 0,100% 100%,0 50%)}
.hud-orb:after{left:auto;right:-4px;transform:rotate(180deg)}
.hud-orb-glass{position:relative;border:2px solid #0b1114;border-radius:50%;width:100%;height:100%;overflow:hidden;background:#160e11;box-shadow:inset 0 0 10px 4px #000}
.hud-orb-liquid{position:absolute;inset:var(--resource-fill) 0 0;background:radial-gradient(ellipse at 34% 25%,#e27376 0%,#ad2439 33%,#660c25 67%,#220e1d 100%);border-top:1px solid #e48e97a8}
.hud-orb-glass:after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse 45% 23% at 34% 18%,#ffe8e766,transparent),linear-gradient(115deg,transparent 65%,#0006);box-shadow:inset -5px -6px 9px #070b12aa,inset 2px 1px 5px #ffe3ce3d;pointer-events:none}
.hud-orb-glass>span{position:absolute;top:38%;left:0;right:0;text-align:center;color:#ffefea;font:400 16px/1 Georgia,serif;text-shadow:0 1px 4px #000;z-index:1}
.hud-orb-glass small{display:block;margin-top:5px;font:8px/1.2 system-ui,sans-serif;letter-spacing:1px}
.hud-orb.mana .hud-orb-liquid{background:radial-gradient(ellipse at 34% 25%,#73c8ee 0%,#2d70ad 35%,#153c77 68%,#0a1d3a 100%);border-color:#80bfdb9e}
.hud-footer{height:32px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#c1c7c3;font-size:9px;letter-spacing:.6px;max-width:1550px;margin:0 auto}
.hud-footer>a{min-height:30px;display:flex;align-items:center;gap:6px}.hud-footer>a:hover{color:#e5c78b}.hud-footer>a:first-child{font-size:8px;letter-spacing:1.3px;color:#c9b790}.hud-footer>a:first-child>span{letter-spacing:0;color:#afb7b8}
.hud-footer-center{display:flex;align-items:center;gap:6px;font-size:10px;color:#ead2a2}.hud-footer-center>.icon{width:12px;height:12px;flex-basis:12px}.hud-footer-center>span{font-size:8px;color:#a8b1ab}
.hud-state-banner{position:absolute;top:177px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:55%;padding:5px 7px 5px 12px;border:1px solid #b99a5d85;background:#251e14e8;border-radius:4px;font-size:12px;z-index:6}.hud-state-banner>.icon{width:16px;height:16px;flex-basis:16px;color:#e6c287}.hud-state-banner>button{min-height:36px;white-space:nowrap;padding:0 8px;color:#f7d99c}
.hud-planned-destination{position:absolute;bottom:145px;left:50%;transform:translateX(-50%);max-width:45%;display:flex;align-items:center;gap:8px;padding:9px 14px;font-size:12px;background:#112a2ee8;border:1px solid #7f9c72;min-height:44px}.hud-planned-destination .icon{color:#d1c28e;flex-shrink:0}
.is-empty .hud-party-rail,.is-empty .hud-minimap,.is-empty .hud-objective,.is-empty .hud-avatar-stage,.is-empty .hud-world-objects,.is-empty .hud-loot-preview,.is-empty .hud-dock,.is-empty .hud-chat-preview,.is-empty .hud-footer-center{visibility:hidden;pointer-events:none}
.hud-empty-hero{display:flex;align-items:center;gap:12px;min-height:56px;font:20px Georgia,serif;color:#e1c992}
/* A game window never makes the document taller. Its body is the scroll container. */
.hud-window-scrim{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:calc(32px + env(safe-area-inset-top,0px)) max(32px,env(safe-area-inset-right,0px)) calc(32px + env(safe-area-inset-bottom,0px)) max(32px,env(safe-area-inset-left,0px));background:#030a1166;backdrop-filter:blur(4px)}
.hud-window{width:min(1160px,100%);max-height:100%;min-height:0;display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid #9f8558;border-radius:7px;background:linear-gradient(120deg,#152028fa,#0c1721fc 65%);box-shadow:0 20px 80px #000c,0 0 0 4px #060f16a3,inset 0 0 0 3px #79664025;outline:none}
.hud-window--menu{width:min(950px,100%)}.hud-window--chat{width:min(690px,100%)}.hud-window--map{width:min(1020px,100%)}
.hud-window-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px 17px;background:linear-gradient(100deg,#243035cc,#131f28de);border-bottom:1px solid #8e7a4a69;box-shadow:0 3px 14px #0002;z-index:1}
.hud-window-context{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:#c6b58d;display:block;margin-bottom:5px}.hud-window-context>span{padding:0 6px;color:#787d6a}
.hud-window-head h2{font:400 27px/1.2 Georgia,serif;color:#efe3c7}
.hud-window-close{display:grid;place-items:center;min-width:44px;height:44px;border:1px solid #a087586b;border-radius:3px;background:#141e26;color:#dac595;flex:none}
.hud-window-close:hover{background:#403b2c;border-color:#d4b77a;color:#fff2d4}
.hud-window-body{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8e7e57 #111c24;min-height:0;min-width:0;padding:24px;scroll-padding:20px;flex:1}
.hud-window-body>*{min-width:0;max-width:100%}
.hud-window-footer{flex:none;min-height:48px;padding:5px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#0b151ed9;border-top:1px solid #9b895a38;font-size:11px;color:#9cabad}
.hud-window-footer>a{display:flex;align-items:center;gap:7px;min-height:40px;color:#dcc99a}.hud-window-footer>a>.icon{width:16px;height:16px;flex-basis:16px}.hud-window-footer>a:hover{color:#ffecb5}
.hud-menu-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.hud-menu-intro>p{color:#b8c4ca;font-size:13px}
.hud-menu-search{position:relative;display:flex;align-items:center;gap:8px;background:#0b151ec9;border:1px solid #736a4b6b;border-radius:4px;padding-left:12px;width:280px;max-width:100%}.hud-menu-search>.icon{color:#aa9975;width:18px;height:18px;flex-basis:18px}.hud-menu-search>input{min-width:0;width:100%;border:0!important;background:transparent!important;font-size:13px;min-height:44px}
.hud-menu-group+.hud-menu-group{margin-top:24px}.hud-menu-group>h2{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:500;color:#d8c599;margin:0 0 11px}
.hud-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hud-menu-grid>[hidden],.hud-menu-group[hidden]{display:none!important}
.hud-menu-command{position:relative;display:flex;align-items:center;gap:12px;padding:14px 12px;width:100%;min-height:73px;text-align:left;background:linear-gradient(110deg,#23313988,#14212b);border:1px solid #6d705d55;border-radius:4px;color:#dac697;box-shadow:inset 0 1px 0 #bfb18708}
.hud-menu-command>.icon{height:23px;width:23px;flex-basis:23px}.hud-menu-command>span{font-size:13px;color:#e6e2d4;font-weight:500;min-width:0}.hud-menu-command small{font-size:10px;font-weight:400;line-height:1.6;color:#b1bfc6;display:block;margin-top:3px}.hud-menu-command>kbd{position:absolute;top:6px;right:7px;font-size:8px;color:#9ca99f;background:transparent;border:0;padding:0;line-height:1}
.hud-menu-command:hover{background:#303d3d;border-color:#bda16e}.hud-menu-command:disabled{opacity:.5;cursor:not-allowed}
.hud-menu-empty{padding:36px 16px;text-align:center;color:#c5cbc5;font-size:14px}
.hud-social-actions{display:flex;gap:12px;margin-top:16px}.hud-social-actions .btn>kbd{display:none}
body.immersive-mode .modal-backdrop{overflow:hidden;background:#020811ad;backdrop-filter:blur(5px)}
body.immersive-mode .modal{max-height:calc(100dvh - 48px);min-height:0;overflow:hidden;border-radius:7px;box-shadow:0 20px 80px #000c}
body.immersive-mode .modal-head,body.immersive-mode .modal-footer{flex-shrink:0}
body.immersive-mode .modal-body{min-height:0;overflow:auto;overscroll-behavior:contain}
body.immersive-mode #toast-root{max-height:45dvh;overflow:auto;z-index:200;bottom:144px;right:24px}
body.immersive-mode .skip-link{z-index:500}
body.auth-mode{height:100dvh;overflow:hidden}.auth-mode #app{height:100%;overflow:auto;overscroll-behavior:contain}.auth-mode .auth-wrapper{min-height:100%;height:auto}
@media(min-width:1600px){.hud-top{left:36px;right:36px;top:28px}.hud-party-rail{left:36px;top:175px}.hud-minimap{right:39px;width:198px;top:103px}.hud-objective{right:40px;top:347px}.hud-chat-preview{left:38px;bottom:178px;width:330px}.hud-loot-preview{right:38px;bottom:184px}.hud-command{width:77px;min-height:68px}.hud-orb{width:98px;height:98px}.hud-dock-center{max-width:calc(100% - 218px)}.hud-footer{height:38px}.hud-avatar-stage{top:60%}}
@media(max-width:1199px){.hud-top{grid-template-columns:290px 1fr 240px;left:20px;right:20px;gap:14px}.hud-portrait{width:75px;height:75px}.hud-hero-name h1{font-size:24px}.hud-hero-name>span{font-size:11px}.hud-brand>span{font-size:23px;letter-spacing:5px}.hud-brand>small{font-size:8px;letter-spacing:3px}.hud-priority-3{display:none}.hud-minimap{width:154px;right:24px;top:91px}.hud-objective{top:290px;width:190px;right:22px}.hud-chat-preview{width:255px;left:20px;bottom:156px}.hud-loot-preview{width:226px;right:20px;bottom:166px}.hud-command{width:66px;min-width:61px}.hud-party-rail{left:20px;width:165px}.hud-location{top:100px}.hud-footer-center{display:none}}
@media(max-width:1023px){.hud-top{grid-template-columns:270px 1fr 185px}.hud-priority-2{display:none}.hud-brand>span{font-size:22px}.hud-brand>small{font-size:7px}.hud-global{gap:4px}.hud-global-button{width:42px;height:44px}.hud-global-secondary[data-action=search]{display:none}.hud-objective{display:none}.hud-chat-preview{width:240px;font-size:10px;bottom:151px}.hud-loot-preview{width:205px;bottom:157px}.hud-party-member{min-height:47px}.hud-party-member>img{width:36px;height:36px}.hud-party-rail{width:155px;top:155px}.hud-location{max-width:40%;width:300px;gap:12px;top:101px}.hud-location h2{font-size:27px}.hud-location-kicker{font-size:8px;letter-spacing:1.5px}.hud-location small{font-size:10px}.hud-world-marker.expedition{left:26%;top:43%}.hud-world-marker.merchant{left:72%;top:52%}.hud-window-scrim{padding:20px}.hud-window-body{padding:20px}.hud-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hud-avatar-stage{top:59%;height:clamp(170px,29vh,280px)}}
@media(max-width:767px){.hud-top{top:calc(15px + env(safe-area-inset-top,0px));left:calc(16px + env(safe-area-inset-left,0px));right:calc(16px + env(safe-area-inset-right,0px));grid-template-columns:minmax(0,270px) auto;gap:16px}.hud-brand{display:none}.hud-global{justify-content:flex-end;align-items:flex-start}.hud-global-secondary{display:none}.hud-global-button{height:44px;width:44px}.hud-portrait{height:68px;width:68px}.hud-hero{gap:10px}.hud-hero-name h1{font-size:24px}.hud-hero-name>span{font-size:10px}.hud-small-resource{height:13px;font-size:9px}.hud-session-link{min-height:28px;font-size:10px}.hud-party-rail{top:128px;left:17px;width:132px;gap:6px}.hud-party-member{gap:6px;padding-right:6px;min-height:44px}.hud-party-member>img{width:32px;height:32px}.hud-party-member b{font-size:11px}.hud-party-member small{font-size:9px}.hud-party-all{font-size:10px;min-height:30px}.hud-minimap{right:20px;top:99px;width:115px;padding:5px}.hud-map-north{top:7px;font-size:9px}.hud-minimap-footer{min-height:29px;padding:3px 8px;font-size:10px;gap:5px;bottom:-4px}.hud-minimap-footer kbd{display:none}.hud-location{top:120px;width:190px;max-width:39%;gap:8px}.hud-location h2{font-size:25px}.hud-location-kicker{display:none}.hud-location small{font-size:9px}.hud-location small>span{padding:0 2px}.hud-location-line{max-width:24px}.hud-loot-preview{display:none}.hud-chat-preview{width:238px;left:17px;bottom:147px;background:linear-gradient(90deg,#07131bc9,#08131b35)}.hud-chat-preview>.hud-section-label{min-height:36px}.hud-chat-input{min-height:38px}.hud-orb{width:67px;height:67px;padding:5px}.hud-orb-glass>span{font-size:13px}.hud-orb-glass small{font-size:7px}.hud-dock{gap:8px;padding:0}.hud-dock-center{max-width:calc(100% - 150px);padding:6px 6px 0}.hud-hotbar{gap:4px;padding-bottom:6px}.hud-command{min-width:53px;width:56px;min-height:58px;gap:5px;padding:6px 3px}.hud-command-primary{min-width:57px}.hud-command>span{font-size:9px}.hud-command>.icon{width:22px;height:22px;flex-basis:22px}.hud-command>kbd{display:none}.hud-experience{margin:0 -6px;height:14px;line-height:13px;font-size:7px}.hud-bottom{padding-left:16px;padding-right:16px}.hud-footer{height:31px;font-size:8px;gap:8px}.hud-footer>a:first-child{font-size:7px;letter-spacing:.6px}.hud-footer>a:first-child>span{display:none}.hud-world-marker.merchant{left:76%;top:48%}.hud-world-marker.expedition{left:18%;top:42%}.hud-world-marker{font-size:10px;min-width:50px;min-height:59px}.hud-world-marker-icon{height:30px;width:30px}.hud-world-marker-icon>.icon{height:16px;width:16px}.hud-avatar-stage{height:clamp(170px,29vh,270px);width:clamp(113px,19.3vh,180px);top:57%}.hud-state-banner{max-width:80%;top:230px;font-size:11px}.hud-state-banner>button{min-height:44px}.hud-planned-destination{bottom:130px;max-width:86%;font-size:11px}.hud-window-scrim{padding:12px}.hud-window-head{padding:13px 16px;gap:12px}.hud-window-head h2{font-size:24px}.hud-window-context{font-size:9px}.hud-window-body{padding:16px}.hud-window-footer{padding:4px 16px;min-height:44px}.hud-window-footer>span{font-size:9px}.hud-menu-intro{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:18px}.hud-menu-search{width:100%}.hud-menu-command{padding:12px 10px;gap:10px}.hud-menu-command>.icon{width:20px;height:20px;flex-basis:20px}.hud-menu-command small{font-size:10px}.hud-menu-command>span{font-size:12px}.hud-menu-command>kbd{display:none}body.immersive-mode #toast-root{bottom:122px;right:14px;left:14px;width:auto;max-height:35dvh}}
@media(max-width:619px){.hud-priority-1{display:none}.hud-orb{display:none}.hud-dock-center{max-width:100%;padding:7px 7px 0;width:100%}.hud-dock{max-width:390px}.hud-hotbar{gap:5px}.hud-command{flex:1;min-width:0;width:auto;min-height:60px}.hud-command-primary{min-width:0}.hud-command>span{font-size:10px}.hud-command-menu>span{font-size:9px}.hud-experience{margin:0 -7px}.hud-party-rail{display:none}.hud-top{grid-template-columns:minmax(0,270px) 44px;gap:12px;left:14px;right:14px;top:calc(14px + env(safe-area-inset-top,0px))}.hud-top-menu{display:none}.hud-global{display:block}.hud-hero-name>span{font-size:10px}.hud-portrait{width:62px;height:62px}.hud-portrait>span{font-size:11px;min-width:30px;bottom:-4px}.hud-hero-name{margin-bottom:5px}.hud-hero-name h1{font-size:24px}.hud-hero-info{max-width:188px}.hud-minimap{top:118px;right:17px;width:98px}.hud-minimap-footer{min-height:28px;max-width:140px;font-size:9px}.hud-minimap-footer .icon{height:12px;width:12px;flex-basis:12px}.hud-map-ring{width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px)}.hud-location{left:20px;transform:none;top:125px;text-align:left;max-width:calc(100% - 145px);width:auto;display:block}.hud-location-line{display:none}.hud-location-kicker{display:block;font-size:8px;letter-spacing:1.7px;margin-bottom:5px}.hud-location h2{font-size:30px;margin:1px 0 4px}.hud-location small{font-size:10px}.hud-chat-preview{display:none}.hud-avatar-stage{top:57%;height:clamp(165px,31vh,285px);width:clamp(110px,20.6vh,190px)}.hud-world-marker.merchant{left:76%;top:43%}.hud-world-marker.expedition{left:13%;top:46%}.hud-world-marker>span:last-child{font-size:9px}.hud-world-marker-icon{height:29px;width:29px}.game-environment{object-position:50% 53%}.hud-bottom{padding-left:12px;padding-right:12px}.hud-footer{height:31px;font-size:8px}.hud-footer>a{min-height:30px}.hud-state-banner{top:226px;width:calc(100% - 32px);max-width:none;padding-left:9px;gap:6px}.hud-state-banner>span{flex:1}.hud-planned-destination{bottom:125px;width:calc(100% - 36px);max-width:none;font-size:10px}.hud-window-scrim{padding:max(8px,env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}.hud-window{border-radius:5px;width:100%}.hud-window-head{padding:11px 12px}.hud-window-head h2{font-size:23px}.hud-window-context{font-size:8px;letter-spacing:1.3px}.hud-window-body{padding:14px 12px}.hud-window-footer{padding:4px 12px}.hud-window-footer>span{display:none}.hud-menu-grid{gap:7px}.hud-menu-command{flex-direction:column;align-items:flex-start;gap:7px;min-height:100px;padding:12px}.hud-menu-command>.icon{height:22px;width:22px;flex-basis:22px}.hud-menu-command>span{font-size:12px}.hud-menu-command small{font-size:10px;line-height:1.5}.hud-menu-group+.hud-menu-group{margin-top:22px}.hud-menu-intro>p{font-size:12px}.hud-social-actions{gap:8px}.hud-social-actions .btn{flex:1}body.immersive-mode .modal-backdrop{padding:8px}body.immersive-mode .modal{max-height:calc(100dvh - 16px)}body.immersive-mode .modal-head{padding:14px}body.immersive-mode .modal-body{padding:14px}body.immersive-mode .modal-footer{padding:10px 14px}}
@media(max-height:650px) and (min-width:620px){.hud-chat-preview,.hud-loot-preview,.hud-objective{display:none}.hud-location{top:88px}.hud-party-rail{top:145px}.hud-avatar-stage{top:57%;height:220px;width:147px}.hud-minimap{width:130px;top:86px}.hud-world-marker.expedition{top:41%}.hud-world-marker.merchant{top:49%}}
@media(max-height:500px){.hud-top{top:calc(10px + env(safe-area-inset-top,0px));left:16px;right:16px;grid-template-columns:minmax(240px,290px) 1fr 182px;gap:10px}.hud-portrait{width:54px;height:54px}.hud-hero{gap:10px}.hud-hero-name{margin-bottom:4px;gap:7px}.hud-hero-name h1{font-size:22px}.hud-hero-name>span{font-size:10px}.hud-small-resource{height:11px;font-size:8px;margin:2px 0}.hud-session-link{display:none}.hud-brand{display:none}.hud-global{grid-column:3;display:flex}.hud-global-secondary[data-action=notifications]{display:grid}.hud-top-menu{display:grid}.hud-party-rail,.hud-chat-preview,.hud-loot-preview,.hud-objective,.hud-minimap{display:none}.hud-location{top:16px;left:50%;max-width:30%;transform:translateX(-50%);text-align:center;width:auto;display:block}.hud-location-kicker,.hud-location-line{display:none}.hud-location h2{font-size:23px;line-height:1.1}.hud-location small{font-size:9px}.hud-priority-2,.hud-priority-3{display:none}.hud-bottom{padding-left:14px;padding-right:14px}.hud-orb{height:60px;width:60px;padding:4px}.hud-dock{max-width:680px}.hud-dock-center{max-width:calc(100% - 140px);padding:5px 5px 0}.hud-command{min-height:45px;min-width:54px;width:60px;padding:4px 3px;gap:3px}.hud-command>span{font-size:8px}.hud-command>.icon{width:20px;height:20px;flex-basis:20px}.hud-hotbar{padding-bottom:5px;gap:4px}.hud-experience{height:12px;line-height:11px;font-size:7px;margin:0 -5px}.hud-footer{height:24px;font-size:8px}.hud-footer>a{min-height:24px}.hud-footer>a:first-child{font-size:7px}.hud-avatar-stage{height:clamp(100px,42vh,195px);width:clamp(67px,28vh,130px);top:53%}.hud-avatar-label{font-size:10px;top:-7px}.hud-avatar-label small{font-size:8px}.hud-world-marker.expedition{left:27%;top:34%}.hud-world-marker.merchant{left:72%;top:40%}.hud-world-marker-icon{width:28px;height:28px}.hud-world-marker{font-size:9px;gap:5px;min-height:48px}.hud-state-banner{top:88px;max-width:55%;width:auto;padding:2px 6px 2px 9px;font-size:10px}.hud-state-banner>button{min-height:36px}.hud-planned-destination{left:16px;top:94px;bottom:auto;transform:none;max-width:27%;font-size:10px;padding:7px 8px;gap:4px;width:auto}.hud-planned-destination>.icon{display:none}.hud-window-scrim{padding:8px max(14px,env(safe-area-inset-right,0px)) 8px max(14px,env(safe-area-inset-left,0px))}.hud-window-head{padding:8px 14px;min-height:56px}.hud-window-head h2{font-size:22px}.hud-window-context{display:none}.hud-window-footer{min-height:40px;padding:0 14px}.hud-window-footer>a{min-height:40px}.hud-window-body{padding:14px}.hud-menu-intro{flex-direction:row;align-items:center;margin-bottom:16px}.hud-menu-search{max-width:280px}.hud-menu-command{min-height:70px;flex-direction:row}.hud-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hud-menu-group+.hud-menu-group{margin-top:17px}body.immersive-mode .modal-backdrop{padding:8px 14px}body.immersive-mode .modal{max-height:calc(100dvh - 16px)}body.immersive-mode .modal-head{padding:10px 14px}body.immersive-mode .modal-head .eyebrow{display:none}body.immersive-mode .modal-head h2{font-size:22px}body.immersive-mode .modal-body{padding:14px}body.immersive-mode .modal-footer{padding:8px 14px}body.immersive-mode #toast-root{bottom:106px}}
@media(max-width:619px) and (max-height:500px){.hud-top{grid-template-columns:minmax(0,230px) 44px;gap:8px}.hud-global{grid-column:2}.hud-global-secondary,.hud-top-menu{display:none!important}.hud-location{left:18px;top:83px;transform:none;text-align:left;max-width:60%}.hud-dock-center{max-width:100%}.hud-command{min-width:0}.hud-dock{max-width:390px}.hud-avatar-stage{top:54%;height:135px;width:90px}.hud-world-marker.expedition{left:17%;top:42%}.hud-world-marker.merchant{left:78%;top:34%}.hud-state-banner{top:133px;max-width:calc(100% - 28px);width:calc(100% - 28px)}.hud-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hud-menu-intro{flex-direction:column;align-items:stretch}.hud-menu-search{max-width:100%}.hud-planned-destination{max-width:40%;top:123px}}
@media(prefers-reduced-motion:reduce){.hud-surface *,.hud-window *{transition:none!important;animation:none!important}}
/* Final HUD refinements: complete resources, safe-area edges and empty access. */
.hud-small-resource.sd>i{background:linear-gradient(0deg,#665221,#b29a4e 70%,#d6c487)}
.hud-session-link{min-height:44px}
.hud-minimap-land[data-map=icarus]>img{width:260%;height:260%;left:-20%;top:-80%}
.hud-party-all{min-height:44px}
.hud-footer{height:44px}.hud-footer>a{min-height:44px}
.hud-top{left:max(var(--hud-side,24px),env(safe-area-inset-left,0px));right:max(var(--hud-side,24px),env(safe-area-inset-right,0px))}
.hud-bottom{padding-left:max(var(--hud-bottom-side,24px),env(safe-area-inset-left,0px));padding-right:max(var(--hud-bottom-side,24px),env(safe-area-inset-right,0px))}
.hud-empty-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 36px));padding:28px;text-align:center;background:linear-gradient(#17272de8,#0a1721ed);border:1px solid #a98e61a8;box-shadow:0 12px 50px #0007;border-radius:5px}
.hud-empty-stage>.hud-section-label{justify-content:center}.hud-empty-stage>h2{font:400 30px/1.3 Georgia,serif;color:#efdcad;margin:15px 0}.hud-empty-stage>p{font-size:13px;color:#c5d0d3;line-height:1.6;margin-bottom:20px}.hud-empty-stage>.btn{width:100%;margin-top:8px;min-height:44px}
.is-empty .hud-global{display:flex}.is-empty .hud-top-menu{display:grid!important}.is-empty .hud-top{grid-template-columns:1fr auto}
@media(min-width:1600px){.game-viewport{--hud-side:36px}}
@media(max-width:1199px){.game-viewport{--hud-side:20px}}
@media(max-width:767px){.game-viewport{--hud-side:16px;--hud-bottom-side:16px}}
@media(max-width:619px){.game-viewport{--hud-side:14px;--hud-bottom-side:12px}.hud-location{top:150px}.hud-minimap{top:145px}.hud-state-banner{top:255px}}
@media(max-height:500px){.game-viewport{--hud-side:16px;--hud-bottom-side:14px}.hud-session-link{display:none}.hud-footer{height:44px}.hud-footer>a{min-height:44px}.hud-empty-stage{top:52%;padding:15px 20px;width:min(480px,70%)}.hud-empty-stage>h2{font-size:24px;margin:7px 0}.hud-empty-stage>p{margin-bottom:8px;font-size:12px}.hud-empty-stage>.hud-section-label{display:none}.hud-empty-stage>.btn{width:auto;margin:4px;min-height:44px;font-size:12px}}
@media(max-width:619px) and (max-height:500px){.hud-location{top:88px}.hud-state-banner{top:137px}.hud-empty-stage{width:calc(100% - 28px);top:53%;padding:15px}.hud-empty-stage>.btn{width:100%}}
