/* A compact vault dock on every device, with an intentional overlay drawer. */
body,body.overview-view{overflow:hidden}
#app{display:flex;flex-direction:column;height:100dvh;min-height:0}
#world,.overview-view #world{flex:1;height:auto;min-height:0}
#character-dock,body.playing #character-dock,body.online #character-dock{display:flex;position:relative;flex:0 0 44px;height:44px;min-height:44px;max-height:44px;padding:0 18px;gap:16px;z-index:35;background:#0d1312;border-top:1px solid #b4a47745;overflow:visible}
#character-dock .roster-heading,#character-dock .roster-summary{display:none}
#roster-toggle{display:flex;align-items:center;gap:10px;height:43px;white-space:nowrap;color:#d2c5a1;font-size:12px;min-width:0;padding:0 4px}
#dock-count{font-size:10px;font-weight:400;color:#a49d89}
.dock-symbol{display:block;width:16px;height:19px;border:1px solid #b4a477;box-shadow:3px -3px 0 -1px #0d1312,3px -3px 0 0 #b4a477;border-radius:2px;margin-right:4px}
.dock-chevron{width:6px;height:6px;border-top:1px solid;border-left:1px solid;transform:rotate(45deg);margin:5px 4px 0 9px}
#roster-toggle[aria-expanded=true] .dock-chevron{transform:rotate(225deg);margin-top:-4px}
#character-dock #quick-enter{margin-left:auto;width:auto;min-width:0;max-width:48%;height:32px;padding:4px 10px;font-size:10px;white-space:nowrap;border-radius:3px}
#character-dock .roster{position:absolute;bottom:44px;left:0;right:0;height:170px;padding:14px 22px;gap:12px;background:#101713f5;border-top:1px solid #b4a47755;box-shadow:0 -10px 24px #0005;overflow:auto;display:flex}
#character-dock.roster-closed .roster{display:none!important}
#character-dock .role-card{flex:0 0 150px;width:150px;height:132px;min-width:150px}
#character-dock .empty-roster{min-width:240px;max-width:360px}
#move-stick{display:none}
#reload-touch,#grenade-touch{touch-action:none}
#language-toggle{color:#d9cfb5;border:1px solid #b4a47750;background:#101714;padding:7px 10px;border-radius:3px;white-space:nowrap;font:11px/1.2 sans-serif;min-height:32px;cursor:pointer}
.topbar>#language-toggle{margin-left:12px;flex-shrink:0}
.site-header>#language-toggle{margin-left:8px}
body>.language-control{position:fixed;right:18px;top:15px;z-index:80}
/* All directional and decorative UI symbols use monochrome vector masks. */
:root{--arrow-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M5 5h14v14' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E")}
#network-btn:after,.mint-return:after,.outline-link:after,.hero-enter:after,#quick-enter:after{content:'';display:inline-block;width:12px;height:12px;margin-left:6px;vertical-align:-1px;background:currentColor;mask:var(--arrow-icon) center/contain no-repeat;-webkit-mask:var(--arrow-icon) center/contain no-repeat}
#sound-btn:before{content:'';display:inline-block;width:13px;height:13px;margin-right:5px;vertical-align:-2px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-5v16l-5-5H3zM16 8q5 4 0 8M19 4q9 8 0 16' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:950px){
 #character-dock,body.playing #character-dock{padding:0 12px;gap:6px;flex-basis:42px;height:42px;min-height:42px}
 #roster-toggle{font-size:11px;height:41px;gap:7px}
 #character-dock .roster{height:154px;bottom:42px;padding:10px 14px}
 #character-dock .role-card{height:126px;min-width:138px;flex-basis:138px}
 .topbar{flex:0 0 76px;min-height:76px;height:76px;display:flex;padding:8px 12px 34px;align-items:center;gap:8px}
 .topbar nav{position:absolute;bottom:0;left:12px;right:12px;max-width:none;height:30px;gap:20px;overflow-x:auto;scrollbar-width:none}
 .topbar .brand{font-size:11px;letter-spacing:1.5px}.brand small{display:none}
 .topbar .session,.topbar #loot-status{display:none}
 .topbar>#language-toggle{margin-left:auto;font-size:11px;min-height:30px;padding:6px 9px}
 .topbar .nav{font-size:10px;min-height:28px;padding:0;flex-shrink:0}
 body.playing #mobile-controls{display:contents}
 body.playing #move-stick{display:block;position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:132px;height:132px;z-index:22;touch-action:none;user-select:none;border-radius:50%;border:1px solid #e2d3a845;background:radial-gradient(circle,#151f1b35,#10191360);-webkit-user-select:none}
 .stick-ring{position:absolute;inset:16px;border:1px solid #e2d3a835;border-radius:50%}
 .stick-thumb{position:absolute;left:40px;top:40px;width:50px;height:50px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#777869ad,#293630cc);border:1px solid #ded3b68a;box-shadow:0 3px 10px #0006;pointer-events:none}
 .stick-label{position:absolute;bottom:-16px;left:0;width:100%;text-align:center;font-size:8px;letter-spacing:1px;color:#c9c5b6;pointer-events:none}
 #move-stick.engaged{border-color:#e7c7869c}.engaged .stick-thumb{border-color:#f7e2af}
 body.playing .mobile-actions{display:grid;position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(26px,env(safe-area-inset-bottom));grid-template-columns:46px 52px 68px;grid-template-rows:46px 46px;gap:8px;z-index:22}
 #mobile-controls .mobile-actions button{margin:0;min-height:44px;width:100%;height:100%;font-size:11px!important;padding:0 3px;border-radius:50%;background:#111c18b8;border:1px solid #d3c5a466;color:#e8dfca}
 body.playing #attack-touch{grid-column:3;grid-row:1 / 3;align-self:center;width:68px;height:68px;border-color:#e2c489a3;font-size:13px!important}
 #reload-touch{grid-column:2;grid-row:1}#grenade-touch{grid-column:2;grid-row:2}#interact-touch{grid-column:1;grid-row:1}#jump-btn{grid-column:1;grid-row:2}
 body.playing #combat-hud{left:12px;right:auto;top:46px;bottom:auto;transform:none;width:auto;max-width:66%;padding:5px 7px;border:0;border-left:2px solid #ae9872;border-radius:0;background:#101b17b8;text-align:left;font-size:9px;pointer-events:none}
 body.playing #combat-hud>div{display:none}
 body.playing #aim-btn{right:18px;top:auto;bottom:148px;width:44px;height:40px;font-size:10px;border-radius:50%}
 body.playing #health-edge{max-width:42%;font-size:9px;padding:5px 7px;top:8px;left:12px}
 body.playing .world-tools{top:8px;right:12px;left:auto;max-width:53%;gap:5px;padding:0}
 body.playing .world-tools .glass-btn{font-size:9px;min-height:30px;padding:6px 8px}
 body.playing .panel.folded{top:78px;width:32px;height:32px}
 body.playing #context-hint{top:116px;bottom:auto;left:12px;max-width:225px;font-size:9px;pointer-events:none}
 body.playing #toast{top:145px;left:12px;bottom:auto;max-width:220px;font-size:9px;pointer-events:none}
 body.playing #ammo-notice{top:78px;left:53px;bottom:auto;right:auto;max-width:210px;font-size:10px}
 body.playing .view-footer{display:none}
 .glass-btn,.panel{backdrop-filter:none}
 body.driving #move-stick{display:block}
 body.driving .vehicle-bar{left:auto;right:12px;top:auto;bottom:20px;width:170px;max-width:46%;padding:7px}
 body.driving #driver-help{display:none}
 body.on-rail #character-dock{display:none}
 .overview-view .world-heading h1{font-size:clamp(32px,8.6vw,50px)}
 html[lang=en] .mobile-actions button{font-size:10px!important}
}
@media(max-height:520px) and (max-width:950px){
 .topbar{flex-basis:46px;min-height:46px;height:46px;padding:6px 12px}
 .topbar nav{position:static;min-width:0;max-width:none;flex:1;height:34px;margin-left:15px;gap:17px}
 .topbar .nav{font-size:9px}
 .topbar .brand-mark{display:none}
 #character-dock,body.playing #character-dock{flex-basis:36px;height:36px;min-height:36px}
 #roster-toggle{height:35px}#character-dock .roster{bottom:36px}
 body.playing #move-stick{width:116px;height:116px;bottom:19px}
 .stick-thumb{left:32px;top:32px}
 body.playing #context-hint{left:54px;top:80px;max-width:225px}
 body.playing #toast{left:54px;top:108px;max-width:240px}
 .overview-view .world-heading{bottom:35px}
}
@media(max-width:950px){body.playing .world-tools{justify-content:flex-start!important}.world-tools{scrollbar-width:none}.panel.folded{width:32px!important}#character-dock .role-card .role-status{display:block}body.playing #combat-hud{max-width:40%}}
@media(max-width:950px){body.playing #context-hint[data-actionable=false]{display:none}body.playing #toast{top:160px}}
@media(max-height:520px) and (max-width:950px){body.playing #toast{top:130px}}

/* Touch controls are game input, never selectable text or Safari callout targets. */
#scene,#mobile-controls,#mobile-controls *,#world button,#world button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none}
