/* Transparent world HUD with dark-fantasy glass orbs. Live game elements remain intact. */
:root{--slot:42px;--hud-line:#ffffff38;--hud-glass:#10192329;--hud-white:#f4f6f7;--orb-size:100px;--orb-offset:max(40px,calc(50% - 470px))}
body #world-panel{color:var(--hud-white)}
body #map-banner{top:18px;min-height:30px;max-width:calc(100% - 720px);border:1px solid #ffffff24;border-radius:8px;background:var(--hud-glass);box-shadow:none;color:#f5f3e9;font:12px/30px Tahoma,sans-serif;text-shadow:0 1px 3px #000}
body #location-nation,body #location-nation[data-nation]{min-width:0;padding:0 10px;color:#e3d3a7;border-color:#ffffff24;font-size:10px}
body #location-place{gap:8px;padding:0 10px;font-size:11px}
body #location-coordinates{color:#d2dde3;font-size:10px}
body #world-clock{margin:0;padding:0 10px;border-left:1px solid #ffffff24;font:10px/30px Tahoma;color:#e4e6df}
body .hud-windows{inset:18px 20px auto auto;display:flex;gap:4px;width:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
body .hud-windows button{width:38px;height:42px;padding:4px;background:var(--hud-glass);border:1px solid transparent;border-radius:8px!important;box-shadow:none;color:white}
body .hud-windows img{width:24px;height:24px;filter:drop-shadow(0 1px 2px #0009);opacity:.95;image-rendering:auto}
body .hud-windows kbd{right:3px;bottom:1px;font:9px Tahoma;color:#e1e6e9;opacity:.8;text-shadow:0 1px 2px #000}
body .hud-windows button:hover,body .hud-windows button[aria-expanded=true]{background:#ffffff20;border-color:#ffffff6b}
body .hud-windows #points-dot{top:2px;right:2px;background:#9c2920;box-shadow:0 1px 3px #0009}
/* Metal bezels and layered reflections keep the silhouette crisp over any map. */
body .resource-hud{position:absolute;inset:auto auto 26px var(--orb-offset);width:calc(var(--orb-size) + 16px);height:calc(var(--orb-size) + 16px);padding:8px;box-sizing:border-box;filter:drop-shadow(0 4px 5px #0008);text-align:center;pointer-events:none;color:white;z-index:6;isolation:isolate}
body .resource-mana{left:auto;right:var(--orb-offset)}
body .resource-hud::before{mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px));content:'';position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,#d6c8a366 0deg 1deg,transparent 1deg 30deg),conic-gradient(from 25deg,#a29373,#292b29 12%,#756b55 23%,#c4b58e 28%,#343732 39%,#191e20 51%,#8c7e5e 67%,#b6a683 73%,#252c2d 85%,#a29373);box-shadow:inset 0 0 0 1px #d1c29d80,inset 0 0 0 4px #121a1b,0 0 0 1px #080d10;z-index:-1}
body .resource-hud::after{content:'';position:absolute;inset:5px;border:1px solid #c4b28a88;border-radius:50%;box-shadow:0 0 0 2px #080e12,inset 0 0 4px #000;pointer-events:none}
body .resource-hud .orb{display:block;position:relative;width:var(--orb-size);height:var(--orb-size);margin:0;border:1px solid #080d13;border-radius:50%;box-sizing:border-box;overflow:hidden;background:radial-gradient(ellipse at 38% 28%,#33303a60,#0c0e1570 70%);box-shadow:inset 0 0 12px #0007;isolation:isolate}
body .resource-hud .orb>div{position:absolute;inset:auto 0 0;width:100%!important;height:var(--resource-fill,100%)!important;border-radius:0;opacity:.78;background:radial-gradient(ellipse at 32% 8%,#ff9a875c,transparent 40%),radial-gradient(ellipse at 48% 15%,#e83c42,#ae1728 52%,#4e0717 95%);box-shadow:inset 0 2px 3px #ffb5a866;transition:height .22s ease-out}
body .resource-hud .orb.mana>div{background:radial-gradient(ellipse at 32% 8%,#a2dbff85,transparent 40%),radial-gradient(ellipse at 48% 15%,#358fe1,#174fbb 52%,#101c57 95%);box-shadow:inset 0 2px 3px #bde7ff80}
body .resource-hud .orb.divine>div{background:radial-gradient(ellipse at 32% 8%,#d2ffbc80,transparent 40%),radial-gradient(ellipse at 48% 15%,#74b47a,#286749 52%,#102f2b 95%)}
body .resource-hud .orb::after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse at 32% 18%,#fff7 0%,#fff1 12%,transparent 23%),radial-gradient(ellipse at 70% 79%,#ffffff24,transparent 35%),radial-gradient(ellipse at 50% 40%,transparent 35%,#0005 100%);box-shadow:inset 0 0 0 1px #fff3,inset 0 0 10px #0005;pointer-events:none;z-index:1}
body .resource-hud .orb>span{position:absolute;inset:27% 0 auto;display:block;font:12px/1.4 Georgia,serif;letter-spacing:2px;color:#fff2df;text-shadow:0 1px 4px #000;z-index:2}
body .resource-hud .orb strong{position:absolute;inset:auto 0 24%;display:block;font:10px/1.5 Tahoma,sans-serif;font-variant-numeric:tabular-nums;color:#fff6ed;text-shadow:0 1px 3px #000,0 0 6px #000;white-space:nowrap;z-index:2}
/* Accessible meter; visible hunger is the gold overhead bar. */
body #hunger-bar{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;pointer-events:none}
body #hunger-notice{position:absolute;bottom:210px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;box-sizing:border-box;width:max-content;max-width:calc(100% - 32px);padding:12px 16px;border:1px solid #d29c6680;border-radius:8px;background:#211b16ed;box-shadow:0 4px 18px #0004;color:#f6e9d1;font:12px/1.6 Tahoma,sans-serif;z-index:8;pointer-events:auto}
body #hunger-notice[hidden]{display:none}
body #hunger-notice>div{min-width:0;max-width:480px}
body #hunger-notice strong,body #hunger-notice span{display:block}
body #hunger-notice strong{color:#ffd2a1;font-size:13px;margin-bottom:3px}
body #hunger-notice button{flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid #d5bd8680;border-radius:6px;background:#d5bd8618;color:#fff0d4;font:12px Tahoma,sans-serif}
body #hunger-notice button:hover{background:#d5bd8633}
body #hunger-notice button:focus-visible{outline:2px solid #dfc58f;outline-offset:3px}
/* One shared vertical reserve beside MP: charged skills temporarily show BP. */
body .combat-resources{position:absolute;top:11px;bottom:auto;left:calc(100% + 6px);transform:none;display:block;width:8px;height:calc(var(--orb-size) - 6px);max-width:none;pointer-events:none;z-index:6}
body .combat-resources #cp-bar,body .combat-resources #bp-bar{position:absolute;inset:0;display:block;min-width:0;width:100%;height:100%;margin:0;box-sizing:border-box;border:1px solid #d5bd8680;border-radius:3px;background:#0a111680;overflow:visible;box-shadow:0 1px 3px #0006}
body .combat-resources #bp-bar{border-color:#b9b0d180}
body .combat-resources #cp-bar:not([hidden])~#bp-bar{left:calc(100% + 18px);right:auto}
body .combat-resources #cp-bar[hidden],body .combat-resources #bp-bar[hidden]{display:none}
body .combat-resources #cp-fill,body .combat-resources #bp-fill{position:absolute;inset:auto 0 0;width:100%;max-height:100%;border-radius:2px;transition:height .18s ease-out}
body .combat-resources #cp-fill{background:linear-gradient(90deg,#987b42,#e2c88d);box-shadow:none}
body .combat-resources #bp-fill{background:linear-gradient(90deg,#65518d99,#b7a2e2cc,#746395aa);box-shadow:inset 0 1px #ede2ff70}
body .combat-resources #bp-bar::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0,transparent calc(10% - 1px),#10141b66 calc(10% - 1px),#10141b66 10%);pointer-events:none}
body .combat-resources #cp-text,body .combat-resources #bp-text{position:absolute;inset:calc(100% + 4px) auto auto 50%;transform:translateX(-50%);display:block;width:max-content;text-align:center;white-space:pre-line;font:9px/12px Tahoma,sans-serif;font-variant-numeric:tabular-nums;color:#f4e3ba;text-shadow:0 1px 3px #000;z-index:1}
body .adventure-dock{inset:auto auto 36px 50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:12px;width:max-content;max-width:calc(100% - 32px);padding:5px 0;border:0;border-radius:0;background:none;box-shadow:none}
body #world-panel .hotbar{position:static;display:flex;align-items:center;align-self:stretch;gap:6px;padding:0 12px 0 0;border:0;border-right:1px solid #ffffff24;border-image:none;background:none;box-shadow:none;border-radius:0;transform:none}
body .quick-items[hidden]{display:none!important}
body .hotbar .action-button,body #spell-bar button{position:relative;display:grid;place-items:center;width:var(--slot);height:var(--slot);min-width:0;min-height:0;flex-shrink:0;padding:4px;border:1px solid var(--hud-line);border-radius:7px!important;background:#10192329;box-shadow:none;color:white}
body .hotbar #attack-button{width:48px;height:48px;border-radius:50%!important;background:#10192320}
body .hotbar .weapon-icon{display:grid;place-items:center}
body .hotbar .weapon-icon img{width:28px;height:28px;image-rendering:auto;filter:drop-shadow(0 1px 2px #0009)}
body .hotbar #attack-button .weapon-icon img{width:33px;height:33px}
body .hotbar .action-button:disabled{opacity:.55}
body .hotbar .action-button kbd{inset:3px auto auto 4px;font:8px Tahoma;color:#f5f5f5;text-shadow:0 1px 2px #000}
body .hotbar #attack-button kbd{inset:auto 0 3px;text-align:center;font-size:7px}
/* Persistent mode below Attack and R; text and color both identify the state. */
body:not(.mobile-hud) #world-panel .hotbar{position:relative;padding-bottom:25px;box-sizing:border-box}
body #hud-combat-mode{--mode-color:#a6e5c0;position:absolute;inset:auto 12px 0 0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:23px;padding:2px 7px;border:1px solid var(--mode-color);border-radius:5px!important;background:#101923dc;color:var(--mode-color);font:bold 11px/17px Tahoma,sans-serif;white-space:nowrap;cursor:pointer;pointer-events:auto;text-shadow:0 1px 2px #000}
body #hud-combat-mode[data-mode="1"]{--mode-color:#ffd18a}
body #hud-combat-mode[data-mode="2"]{--mode-color:#ff9999}
body #hud-combat-mode::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--mode-color);flex-shrink:0}
body #hud-combat-mode kbd{position:static;inset:auto;font:9px/14px Tahoma,sans-serif;color:#ecece5;border-left:1px solid #ffffff40;padding-left:5px}
body #hud-combat-mode:hover{background:#27323a}
body.mobile-hud #hud-combat-mode{display:none}
body #spell-bar{--shortcut-size:40px;position:relative;inset:auto;transform:none;display:grid;grid-template-columns:repeat(12,var(--shortcut-size));grid-template-rows:repeat(2,var(--shortcut-size));width:max-content;max-width:none;height:auto;gap:5px;padding:0;margin:0;flex-basis:auto;border:0;background:none;box-shadow:none}
body #spell-bar button{width:var(--shortcut-size);height:var(--shortcut-size);padding:3px}
body #spell-bar button:has(.empty-spell){background:#10192318;border-color:#ffffff30}
body #spell-bar kbd{inset:3px auto auto 4px;font:9px Tahoma;color:#f4f6f7;opacity:.9;text-shadow:0 1px 3px #000,0 0 4px #000}
body #spell-bar img,body #spell-bar .shortcut-item-icon{width:calc(var(--shortcut-size) - 10px);height:calc(var(--shortcut-size) - 10px)}
body #spell-bar #shortcut-lock{position:absolute;top:-31px;right:0;display:grid;place-items:center;min-width:26px;width:26px;height:24px;padding:3px;border:1px solid var(--hud-line);border-radius:5px!important;background:var(--hud-glass);color:white}
body #spell-bar #shortcut-lock span{display:none}
body #spell-bar #shortcut-lock[aria-pressed=true]{color:#edd19b;border-color:#dfc58f80;background:#c5a96720}
body #spell-bar button:hover,body .hotbar .action-button:hover{border-color:#fff9;background:#ffffff26}
body .adventure-progress{bottom:15px;width:min(680px,calc(100% - 40px))}
body #hud-exp{font:10px Tahoma;color:#f4f3e9;text-shadow:0 1px 3px #000}
body .hero-experience .bar{height:3px;border:0;background:#ffffff26;box-shadow:0 1px 2px #0006}
body .hero-experience .bar>div{background:#d4c18d}
body #spell-buffs{top:20px;left:20px}
body #spell-casting{bottom:184px}
body #toast{top:90px;padding:9px 14px;border:1px solid #ffffff26;border-radius:8px;background:#10192388;box-shadow:none;color:#f5f6f7;font:12px/1.6 Tahoma}
/* Chat rests quietly on the map and gains contrast while reading or typing. */
:root body .online-panel{left:20px;bottom:176px;width:300px;min-width:0;color:#f4f5ef;font:12px/1.65 Tahoma,sans-serif;text-shadow:0 1px 3px #000,0 0 4px #000;transition:background .15s}
body .online-status,body .online-log,:root body .online-panel input{border:0;border-radius:6px;background:#0a121b29;box-shadow:none;padding:7px 10px}
body .online-status{display:inline-block;font-size:11px;color:#dce5e2}
body .online-status[data-status=online]{color:#cae8c3}
body .online-log{max-height:90px;overflow:auto;margin-top:4px;scrollbar-width:thin;scrollbar-color:#ffffff60 transparent}
body .online-log:empty{display:none}
:root body .online-panel input{width:100%;margin-top:5px;min-height:40px;border:1px solid #ffffff40;background:#10192399;color:white;font:12px/1.6 Tahoma;outline-offset:3px}
body .online-panel:hover .online-log,body .online-panel:focus-within .online-log{background:#101923b8}
body .online-panel:focus-within .online-log{max-height:160px}
body .online-panel input::placeholder{color:#d2dbdf}
body .online-invite{background:#101923dc;border-color:#d6bd8570;border-radius:6px;text-shadow:none}
body .hud-windows button:focus-visible,body .adventure-dock button:focus-visible{outline:2px solid #ead4a1;outline-offset:3px}
body #joystick{border:1px solid #ffffff60;background:#ffffff08;box-shadow:none}
body #stick{background:#ffffff80;border:1px solid #ffffffb3;box-shadow:0 1px 8px #0002}
body #joystick i{color:white;text-shadow:0 1px 3px #000}
body #world-panel .map-widget{top:80px;right:20px;border:1px solid var(--hud-line);border-image:none;border-radius:10px;background:#10192340;box-shadow:none;color:white}
body .map-widget canvas{border-radius:6px;opacity:.9}
body .map-widget>.minimap-caption{background:transparent;color:white}
body .minimap-controls button{border:1px solid var(--hud-line);border-radius:6px;background:#10192370;color:white}
body #world-panel .map-widget.parchment{width:auto;padding:0;border:0;background:none;box-shadow:none;overflow:hidden}
body .map-widget.parchment canvas{width:281px;height:auto;opacity:.95;border-radius:0;image-rendering:auto;filter:drop-shadow(0 3px 8px #0008)}
body .map-widget.parchment>.minimap-caption{display:none}
body .map-widget.parchment>.minimap-controls{top:auto;bottom:24px;right:20px}
@media(max-width:1250px){
 body #map-banner{left:20px;top:18px;transform:none;max-width:calc(100% - 400px)}
 :root body .online-panel{width:260px}
}
@media(min-width:701px) and (max-width:1000px){
 :root{--orb-size:76px;--orb-offset:14px}
 body #spell-bar{--shortcut-size:34px;gap:4px}
 body .adventure-dock{gap:7px}
 body #world-panel .hotbar{gap:5px;padding-right:7px}
 body .hotbar #attack-button{width:40px;height:40px}body .hotbar .action-button{width:36px;height:36px}
 body .resource-mana{right:calc(var(--orb-offset) + 40px)}
 body .resource-hud .orb>span{font-size:11px}body .resource-hud .orb strong{font-size:9px}
}
@media(max-width:700px){
 :root{--orb-size:62px;--orb-offset:12px}
 body .hud-windows{inset:12px 12px auto auto;display:grid;grid-template-columns:repeat(4,32px);gap:3px;padding:0;width:auto}
 body .hud-windows button{width:32px;height:36px}body .hud-windows img{width:22px;height:22px}body .hud-windows kbd{display:none}
 body #map-banner{top:12px;left:12px;right:auto;transform:none;max-width:calc(100% - 170px);min-height:0;display:flex;flex-wrap:wrap;border-radius:6px}
 body #location-nation{display:none}body #location-place{padding:0 6px;font-size:10px;gap:4px;line-height:24px}body #location-coordinates{font-size:9px}
 body #world-clock{flex:1 0 100%;border-left:0;border-top:1px solid #ffffff20;line-height:20px;padding:0 6px;font-size:9px}
 body #world-panel .map-widget{top:99px;right:12px}body .map-widget.parchment canvas{width:180px}body .map-widget.parchment>.minimap-controls{bottom:14px;right:10px}
 body .resource-hud{bottom:max(12px,env(safe-area-inset-bottom))}
 body .resource-hud .orb>span{font-size:10px;letter-spacing:1px;top:23%}body .resource-hud .orb strong{font-size:8px;bottom:23%}
 body .resource-mana{right:calc(var(--orb-offset) + 40px)}
 body .combat-resources{top:8px;left:calc(100% + 4px);width:8px;height:var(--orb-size)}
 body .combat-resources #cp-text,body .combat-resources #bp-text{font-size:9px}
 body .adventure-dock{inset:auto 12px 104px auto;transform:none;max-width:calc(100% - 24px);gap:8px;padding:0;align-items:flex-end}
 body #world-panel .hotbar{border:0;padding:0;gap:6px;flex-direction:column;align-self:flex-end}
 body .hotbar #attack-button{width:42px;height:42px}body .hotbar .action-button{width:38px;height:38px}
 body #spell-bar{--shortcut-size:clamp(30px,calc((100vw - 96px)/6 - 4px),40px);grid-template-columns:repeat(6,var(--shortcut-size));grid-template-rows:repeat(4,var(--shortcut-size));gap:4px;padding:0;flex-basis:auto}
 body #spell-bar kbd{font-size:8px;top:2px;left:3px}body #spell-bar #shortcut-lock{top:-29px}
 body .adventure-progress{bottom:max(14px,env(safe-area-inset-bottom));left:calc(50% - 20px);width:calc(100% - 236px)}body .hero-experience{height:auto;flex-direction:column;gap:3px}body .hero-experience .bar{flex:none;width:100%;height:3px}body #hud-exp{min-width:0;font-size:8px;text-align:center}
 body #joystick{bottom:304px;left:14px;width:78px;height:78px}body #stick{left:18px;top:18px;width:40px;height:40px}
 :root body .online-panel{left:auto;right:12px;bottom:314px;width:calc(100% - 116px);font-size:11px}body .online-status{font-size:9px;padding:4px 6px}body .online-log{max-height:65px;padding:5px 7px}body .online-panel:focus-within .online-log{max-height:100px}
 body #spell-buffs{top:76px;left:12px}body #spell-casting{bottom:342px}body #toast{top:110px}
}
@media(max-height:500px) and (min-width:701px){
 :root{--orb-size:64px;--orb-offset:12px}
 body .adventure-dock{bottom:28px;padding:0;left:50%;right:auto;transform:translateX(-50%);gap:8px}body #spell-bar{--shortcut-size:30px;gap:4px}body .hotbar #attack-button{width:40px;height:40px}
 body .resource-hud{bottom:22px}body .resource-hud .orb>span{font-size:10px}body .resource-hud .orb strong{font-size:8px}
 body .resource-mana{right:calc(var(--orb-offset) + 40px)}body .adventure-progress{bottom:9px;width:480px}
 :root body .online-panel{bottom:126px;width:230px}body .online-log{max-height:66px}body .online-panel:focus-within .online-log{max-height:100px}body #spell-buffs{top:64px}body #spell-casting{bottom:135px}
}
@media(prefers-reduced-motion:reduce){body .combat-resources #cp-fill,body .combat-resources #bp-fill,body .resource-hud .orb>div,:root body .online-panel{transition:none}}
@media(min-width:701px) and (max-width:800px){body #spell-bar{--shortcut-size:25px}body .hotbar #attack-button{width:36px;height:36px}body .hotbar .action-button{width:34px;height:34px}}
/* Three quiet EXP tracks share the footer; details appear only on request. */
body .adventure-progress{bottom:10px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:min(656px,calc(100% - 300px));pointer-events:auto;z-index:9}
body .adventure-progress .experience-track{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:0;width:100%;height:auto;margin:0;padding:0;border:0;border-image:none;border-radius:0!important;background:none;box-shadow:none;color:#f7f4e9;text-align:left;cursor:pointer;font:10px/14px Tahoma,sans-serif;text-shadow:0 1px 3px #000,0 0 3px #000}
body .experience-summary{display:flex;justify-content:space-between;align-items:center;gap:7px;min-width:0;width:100%}
body .experience-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .experience-percent{flex-shrink:0;font-variant-numeric:tabular-nums;color:#f3eee2}
body .experience-track #hud-exp{min-width:0;font:inherit;text-align:left}
body .experience-bar{display:block;width:100%;height:3px;border-radius:2px;background:#0b121b70;box-shadow:0 1px 2px #0005;overflow:hidden}
body .experience-bar>span,body .experience-bar>div{display:block;width:0;height:100%;background:#d4bd83}
body .experience-tactic .experience-bar>span{background:#7ac8bc}
body .experience-magic .experience-bar>span{background:#bba0e5}
body .experience-track:hover .experience-bar{box-shadow:0 0 5px #ffffff50}
body .experience-track:focus-visible{outline:1px solid #dfc58f;outline-offset:4px}
body #experience-details{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(340px,calc(100vw - 24px));max-height:min(340px,45dvh);overflow:auto;overscroll-behavior:contain;padding:16px 36px 16px 16px;border:1px solid #d5c49a55;border-radius:8px;background:#101923ed;box-shadow:0 4px 18px #0004;color:#f4f2e8;font:12px/1.9 Tahoma,sans-serif;white-space:pre-line;text-shadow:none}
body #experience-details[hidden]{display:none}
body #experience-details>button{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:0;border:0;border-radius:4px!important;background:#ffffff0c;color:#f4f2e8;font:20px/1 Tahoma;cursor:pointer}
body #experience-details>button:focus-visible{outline:2px solid #dfc58f}
@media(max-width:700px){
 body .adventure-progress{bottom:max(12px,env(safe-area-inset-bottom));left:calc(50% - 20px);width:calc(100% - 220px);grid-template-columns:minmax(0,1fr);gap:3px}
 body .adventure-progress .experience-track{gap:2px;padding:2px 0;font:8px/11px Tahoma,sans-serif}
 body .experience-summary{gap:3px}body .experience-bar{height:2px}
}
@media(max-height:500px) and (min-width:701px){body .adventure-progress{bottom:6px;width:480px;gap:10px}body .adventure-progress .experience-track{gap:2px;font:9px/12px Tahoma}}
@media(max-width:700px){body #experience-details{left:calc(50% + 20px)}}

/* Desktop HUD lanes: one left rail, one top bar and one flowing footer. */
.hud-footer{display:contents}
body:not(.mobile-hud){--desktop-edge:16px;--desktop-rail:224px;--orb-size:clamp(64px,calc(10vw - 10px),100px)}
body:not(.mobile-hud) .hud-footer{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:grid;grid-template-columns:calc(var(--orb-size) + 16px) minmax(0,1fr) calc(var(--orb-size) + 16px);align-items:end;column-gap:16px;row-gap:10px;width:min(1000px,calc(100% - 32px));box-sizing:border-box;padding-right:24px;pointer-events:none;z-index:9}
body:not(.mobile-hud) .hud-footer .resource-hud{position:relative;inset:auto;grid-row:1;margin:0;pointer-events:none}
body:not(.mobile-hud) .hud-footer .resource-health{grid-column:1}
body:not(.mobile-hud) .hud-footer .resource-mana{grid-column:3}
body:not(.mobile-hud) .hud-footer .adventure-dock{position:relative;inset:auto;transform:none;grid-column:2;grid-row:1;justify-self:center;width:max-content;max-width:none;padding:0;gap:8px;pointer-events:auto}
body:not(.mobile-hud) .hud-footer #spell-bar{--shortcut-size:clamp(22px,calc((100vw - 440px)/12),40px);gap:4px}
body:not(.mobile-hud) .hud-footer .hotbar{gap:5px;padding-right:8px}
body:not(.mobile-hud) .hud-footer .adventure-progress{position:relative;inset:auto;transform:none;grid-column:2;grid-row:2;width:100%;gap:12px;pointer-events:auto}
body:not(.mobile-hud) #world-panel{--desktop-center-width:360px}
body:not(.mobile-hud) #map-banner{top:16px;left:50%;right:auto;transform:translateX(-50%);max-width:var(--desktop-center-width);min-height:30px;overflow:hidden;border:0;background:linear-gradient(90deg,transparent,#101a2066 18%,#101a2066 82%,transparent);border-radius:0}
body:not(.mobile-hud) .hud-windows{top:10px;right:16px}
:root body:not(.mobile-hud) .party-hud{top:64px;left:16px;max-width:224px;pointer-events:auto}
/* Keep timed buffs in one scrollable row above the party portraits. */
:root body #world-panel #spell-buffs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;pointer-events:auto;max-height:52px}
:root body #world-panel #spell-buffs>span{flex:0 0 auto}
:root body:not(.mobile-hud) #world-panel #spell-buffs{top:4px;left:16px;max-width:224px}
:root body:not(.mobile-hud) .guide-checklist{left:16px;top:64px;width:224px;max-width:224px;max-height:calc(100dvh - 430px);overflow:auto}
:root body:not(.mobile-hud):has(.party-hud:not([hidden])) .guide-checklist{top:140px;left:16px}
:root body:not(.mobile-hud) .leveling-suggestion{left:16px;top:64px;box-sizing:border-box;width:224px;max-width:224px}
:root body:not(.mobile-hud):has(.party-hud:not([hidden])) .leveling-suggestion{top:140px}
:root body:not(.mobile-hud) #nation-prompt{top:88px;left:calc(50% + 12px);box-sizing:border-box;width:max-content;max-width:calc(100% - 560px);gap:12px;padding:10px 12px}
:root body:not(.mobile-hud) #nation-prompt>div{min-width:0}
:root body:not(.mobile-hud) .guide-hint{top:auto;bottom:244px;left:256px;transform:none;width:min(520px,calc(100vw - 272px));max-width:calc(100vw - 272px);animation:none}
:root body:not(.mobile-hud) #world-panel .map-widget{top:88px;right:16px}
:root body:not(.mobile-hud) #world-panel:has(.desktop-menu-open) .map-widget{top:330px}
/* Focusing the composer also sets mobile-chat-open on desktop; keep its anchor stable. */
:root body:not(.mobile-hud) .online-panel{left:max(16px,env(safe-area-inset-left));right:auto;bottom:var(--chat-bottom,166px);transform:none;max-width:calc(100vw - 32px)}
/* Leave room below the wrapped menu for the minimap on smaller desktops. */
@media(max-width:1111px){
 :root body:not(.mobile-hud) #world-panel:not(:has(.desktop-menu-open)) .map-widget{top:208px}
}
@media(min-width:701px) and (max-width:1280px){
 body:not(.mobile-hud) #location-nation{min-width:0;padding:0 6px}
 body:not(.mobile-hud) #location-place{flex:1;padding:0 6px;overflow:hidden}
 body:not(.mobile-hud) #world-clock{padding:0 6px}
 :root body:not(.mobile-hud) #nation-prompt{top:208px;left:256px;transform:none;max-width:calc(100% - 272px)}
 :root body:not(.mobile-hud) .guide-hint{top:272px;bottom:auto}
}
@media(min-width:701px) and (max-width:1100px){
 body:not(.mobile-hud) .hud-footer .hotbar #attack-button{width:36px;height:36px}
 body:not(.mobile-hud) .hud-footer .hotbar .action-button{width:32px;height:32px}
 :root body:not(.mobile-hud) #nation-prompt{left:256px;transform:none;max-width:calc(100% - 272px);flex-wrap:wrap;gap:6px}
 :root body:not(.mobile-hud) #nation-prompt button{min-width:0;max-width:100%;padding:6px;font-size:11px;white-space:normal}
}
