.realm-shell{background:#e3dbc9;color:#26322b;padding:12px}.realm-banner{background:linear-gradient(125deg,#183d32,#47394d);color:#f5e9bf;padding:17px;border:2px ridge #b8a17a}.realm-banner h2{font:700 35px Georgia,serif;color:#f5e9bf!important;margin:5px 0}.realm-banner small{letter-spacing:.12em;font-size:10px}.realm-banner p{margin:4px 0}.realm-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,200px);gap:10px}.realm-layout canvas{display:block;width:100%;height:auto;image-rendering:pixelated;border:2px solid #4d583d;background:#24362d;outline-offset:2px}.realm-shell button{margin:3px;padding:5px 8px}.realm-shell input,.realm-shell select{margin:4px;max-width:100%}#realm-stats{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:9px;background:#c7d2b9;border:1px solid #819777;margin-bottom:8px}.realm-bars{flex:1;display:flex;gap:10px;flex-wrap:wrap}.realm-bars label{font-size:11px;display:flex;flex-direction:column;min-width:90px}.realm-bars progress{width:100%;accent-color:#648e49;height:9px}#realm-side{border:1px solid #96967f;background:#f2ecdc;padding:9px;max-height:570px;overflow:auto}#realm-side h3,.realm-bottom h3{font:700 16px Georgia,serif;margin:7px 0}#realm-side p,.realm-bottom p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.realm-bottom{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.realm-bottom section{border:1px solid #96967f;padding:9px;background:#f2ecdc;min-width:0}#realm-chat,#realm-events{max-height:150px;overflow:auto}.realm-hint{font-size:11px}#realm-controls{display:flex;gap:4px}#realm-target{min-height:32px}body[data-theme=dark] .realm-shell{background:#243329;color:#eee9d6}body[data-theme=dark] #realm-side,body[data-theme=dark] .realm-bottom section{background:#303c36;border-color:#677765}body[data-theme=dark] #realm-stats{background:#3b5142}@media(max-width:700px){.realm-layout,.realm-bottom{grid-template-columns:1fr}#realm-side{max-height:240px}}
/* Expanded realm HUD and class hotbar. */
#realm-zone{font-weight:bold;color:inherit;margin:8px 0;padding:8px;border:1px solid #87947b;background:#87947b22}#realm-spells{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0}#realm-spells button{background:linear-gradient(#5368a0,#29365f);color:#fff5cd;border-color:#9ea7d2;min-height:36px}#realm-spells button:disabled{opacity:.5}.realm-bars progress[data-stat=Mana],.realm-bars progress[data-stat=Energy]{accent-color:#527dd3}.realm-bars progress[data-stat=XP]{accent-color:#d1a744}#realm-target{display:flex;flex-wrap:wrap;align-items:center;gap:4px}#realm-side button{white-space:normal;max-width:100%}#realm-controls{flex-wrap:wrap}#realm-controls button{min-width:44px;min-height:40px}.realm-layout canvas{touch-action:manipulation} @media(max-width:700px){#realm-side{max-height:none}#realm-spells button{min-height:44px;flex:1 1 130px}.realm-shell{padding:6px}.realm-banner h2{font-size:28px}}

/* Progression: compact tabs and equipment rarity, with a consistent mobile layout. */
.realm-tabs{display:flex;flex-wrap:wrap;gap:3px;position:sticky;top:0;background:inherit;z-index:1;padding:4px 0 7px;border-bottom:1px solid #968e79}.realm-tabs button{flex:1 1 27%;font-size:12px;margin:0}.realm-tabs button[aria-pressed=true]{background:#314d49;color:#fff4d6;border-color:#88a193}.realm-item{border:1px solid #9c9c89;padding:7px;margin:5px 0;overflow-wrap:anywhere;border-left:4px solid #9d9d96}.realm-item[data-rarity=uncommon]{border-left-color:#51a85b}.realm-item[data-rarity=rare]{border-left-color:#508be2}.realm-item[data-rarity=epic]{border-left-color:#9c62d2}.realm-item strong{font-size:12px}.realm-side-content button{max-width:100%}#realm-supplies{display:flex;gap:4px;flex-wrap:wrap;margin:5px 0}#realm-supplies button{min-height:34px}@media(max-width:700px){.realm-tabs button{min-height:44px}#realm-supplies button{min-height:44px}}

/* Realm viewport: container-aware, touch-first, no forced desktop-sized inner panes. */
.retro-window[data-window-id=realm] .retro-window-content{padding:4px;min-width:0;min-height:0;overflow:auto}.realm-shell{container-type:inline-size;min-width:0;max-width:100%;box-sizing:border-box;padding:10px;overflow:hidden;background:linear-gradient(#e3dbc9,#d2c8ae)}.realm-banner{padding:10px 14px;margin:6px 0;position:relative}.realm-banner h2{font-size:clamp(24px,4cqw,35px);margin:3px 0}.realm-banner p{font-size:13px}.realm-layout{grid-template-columns:minmax(0,1fr) minmax(225px,30%);align-items:start;gap:9px}.realm-layout>div{min-width:0;max-width:100%}.realm-layout canvas{width:100%;height:auto;display:block;box-sizing:border-box;touch-action:manipulation;image-rendering:pixelated}.realm-tabs{background:#e4ddcb}.realm-tabs button{flex:1 1 28%;min-height:34px}.realm-bars{min-width:0}.realm-bars label{flex:1 1 90px}.realm-bars progress{min-width:0}.realm-item input,.realm-item select{width:100%;max-width:100%;min-width:0}.realm-item label{margin:6px 0;display:block}.realm-side-content progress{width:100%;max-width:100%}.realm-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.realm-bottom form{display:flex;flex-wrap:wrap;gap:4px}.realm-bottom input{flex:1 1 130px;min-width:0;width:auto}#realm-controls{display:flex;align-items:center;justify-content:center;gap:4px;margin:5px 0}#realm-controls button{flex:0 1 auto;min-width:44px;min-height:44px}#realm-status{min-height:1.3em;overflow-wrap:anywhere;font-weight:bold}#realm-spells,#realm-supplies{display:flex;flex-wrap:wrap;gap:5px}#realm-spells button,#realm-supplies button{min-height:40px;flex:1 1 90px;margin:0}body[data-theme=dark] .realm-shell{background:linear-gradient(#243329,#1d2924)}body[data-theme=dark] .realm-tabs{background:#303c36}
@container (max-width:750px){.realm-layout,.realm-bottom{grid-template-columns:minmax(0,1fr)}#realm-side{max-height:none;overflow:visible}.realm-tabs{position:static}.realm-banner{padding:9px}.realm-hint{font-size:12px}}
@container (max-width:450px){.realm-banner small{font-size:9px}.realm-banner p{font-size:12px}.realm-shell{padding:4px}#realm-stats{gap:5px;padding:6px}.realm-bars{flex:1 1 100%;gap:5px}.realm-bars label{flex:1 1 80px;min-width:0}#realm-zone{font-size:12px;margin:4px 0;padding:5px}#realm-spells button{flex:1 1 100px;min-height:44px;font-size:12px}#realm-supplies button{min-height:44px}#realm-controls button{min-width:44px;min-height:44px;padding:4px 8px}.realm-tabs button{min-height:44px;flex:1 1 27%}.realm-item button{min-height:44px}.realm-item input,.realm-item select{font-size:16px}.realm-bottom form button{min-height:44px}}

/* Readable combat feedback and marketplace controls. */
#realm-status{padding:7px 9px;border-left:3px solid #8e957b;background:#ffffff22;margin:6px 0}#realm-status[data-feedback=good]{border-color:#4a9560}#realm-status[data-feedback=combat]{border-color:#c48d42}#realm-status[data-feedback=danger]{border-color:#c65346}#realm-target progress{width:100%;max-width:200px;accent-color:#b3574d}#realm-target strong{flex:1 1 100%;font-size:13px}.realm-side-content>select{width:100%;max-width:100%}.realm-side-content>label input{width:100%}#realm-chat-form select{max-width:100%;min-height:34px}.realm-item[data-rarity=rare] strong{color:#2765b3}.realm-item[data-rarity=epic] strong{color:#7948a8}body[data-theme=dark] .realm-item[data-rarity=rare] strong{color:#92bfff}body[data-theme=dark] .realm-item[data-rarity=epic] strong{color:#d4a8fc}
@media(max-height:500px) and (orientation:landscape) and (pointer:coarse){.realm-banner{padding:4px 8px}.realm-banner h2{font-size:20px}.realm-banner small,.realm-banner p{display:none}.realm-shell .realm-hint{font-size:11px}}

/* Inspectable adventurers: readable information, no forced map movement. */
.realm-adventurer{display:block;width:100%;text-align:left;min-height:34px}#realm-target:has(progress){padding:8px;border:1px solid #87947b;background:#87947b22;border-radius:4px}#realm-target span,#realm-target p{font-size:12px;flex:1 1 100%;overflow-wrap:anywhere;margin:3px 0}
@container(max-width:450px){.realm-adventurer{min-height:44px}}

/* Living Realms HUD: lightweight canvas art and responsive controls. */
.realm-map-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}.realm-map-tools #realm-controls{flex:1 1 190px}.realm-minimap-box{flex:0 0 126px;max-width:40%;background:#253a39;color:#e9dfbd;padding:4px;border:1px solid #887c5c}.realm-minimap-box small{display:block;font:700 9px monospace;letter-spacing:.1em;margin:2px 0}.realm-layout #realm-minimap{width:100%;height:auto;border:1px solid #b8a16d}.realm-shell #realm-spells .realm-hotkey{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:6px 8px 6px 26px;min-height:48px;text-align:left;background:linear-gradient(#354c5c,#253340);border:1px solid #9d9278;color:#f6e6b9;flex:1 1 100px}.realm-hotkey kbd{position:absolute;left:4px;top:5px;font:9px monospace;color:#dacdae}.realm-hotkey strong{font-size:12px;white-space:normal}.realm-hotkey small{font-size:10px;color:#b9d1d6}.realm-hotkey:focus-visible{outline:2px solid #e5c76c}.realm-shell #realm-stats{border:1px solid #928a68;background:linear-gradient(120deg,#30483e,#263b3d);color:#f1e5c7;padding:8px}.realm-shell #realm-stats strong,.realm-shell #realm-stats label{color:#f1e5c7}.realm-bars progress{height:11px}.realm-shell #realm-zone{font:700 12px Georgia;letter-spacing:.02em}.realm-layout #realm-map{border:3px ridge #a89970;box-shadow:0 2px 5px #1d25284d}@container(max-width:450px){.realm-minimap-box{flex-basis:100px}.realm-shell #realm-spells .realm-hotkey{min-height:44px;flex-basis:95px}}

#realm-quest-tracker{padding:7px 9px;margin:5px 0;border:1px solid #a59c73;background:#e9dfbb;color:#433a28;font:700 12px Georgia}body[data-theme=dark] #realm-quest-tracker{background:#3c493e;color:#f3dfab}.realm-upgrade,.realm-downgrade,.realm-neutral{display:block;margin:4px 0}.realm-upgrade{color:#287748}.realm-downgrade{color:#a8463a}body[data-theme=dark] .realm-upgrade{color:#a0e4ac}body[data-theme=dark] .realm-downgrade{color:#ffada3}#realm-minimap{cursor:zoom-in}

.realm-item[data-rarity=uncommon] strong{color:#287548}body[data-theme=dark] .realm-item[data-rarity=uncommon] strong{color:#9adcb0}.realm-item small{display:block;margin:4px 0;font-size:11px}.realm-shell #realm-spells .realm-hotkey{flex:1 1 110px}

.realm-story-tabs{display:flex;flex-wrap:wrap;gap:3px;margin:6px 0}.realm-story-tabs button{flex:1 1 30%;margin:0}.realm-story-tabs button[aria-pressed=true]{background:#314d49;color:#fff4d6}.realm-story-quest{border:1px solid #a59c7c;border-left:3px solid #9ca99a;margin:5px 0;padding:7px;overflow-wrap:anywhere}.realm-story-quest[data-main=true]{border-left-color:#d2ad54}.realm-story-quest[data-tracked=true]{background:#b8cfb72b;border-color:#678c73}.realm-story-quest small{display:block;font-size:11px;margin:3px 0}.realm-story-quest progress{width:100%;height:8px;accent-color:#6f9c77}.realm-story-quest button{min-height:34px;font-size:11px}@container(max-width:450px){.realm-story-quest button,.realm-story-tabs button{min-height:44px}}

.realm-encounter-warning{padding:8px;margin:5px 0;background:#4b3030;color:#fff1cb;border:2px solid #e3aa60}.realm-encounter-warning p{margin:3px 0}.realm-encounter-warning button{min-height:36px;margin:2px;color:#202c32;background:#f4d39c;border:1px solid #986c43}#realm-encounter-warnings:empty{display:none}

#realm-event-banner:empty{display:none}.realm-event-summary{display:block;width:100%;margin:4px 0;padding:6px;text-align:left;white-space:normal;background:#324e47;color:#f5e1ae;border:1px solid #a58f57}.realm-regional-event progress{width:100%;accent-color:#648e6b}.realm-regional-event small{display:block;margin:4px 0}

.realm-harmony-set{border-left:3px solid #a580cb}.realm-harmony-set small{display:block;margin:5px 0}.realm-item[data-rarity=legendary] strong{color:#b66a15}body[data-theme=dark] .realm-item[data-rarity=legendary] strong{color:#ffbf66}

.realm-equipment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:4px}.realm-equipment-grid .realm-item{margin:0;min-width:0;overflow-wrap:anywhere}.realm-equipment-grid small{display:block}.realm-inventory-filters{display:flex;flex-wrap:wrap;gap:4px;align-items:end;margin:6px 0}.realm-inventory-filters label{flex:1 1 90px;min-width:0}.realm-inventory-filters select,.realm-inventory-filters input{width:100%;min-width:0}.realm-quick-supplies{display:flex;flex-wrap:wrap;gap:3px;margin-top:5px}.realm-quick-supplies button{min-height:30px;font-size:11px;white-space:normal}.realm-equipment-grid button{font-size:11px;min-height:30px}@container(max-width:450px){.realm-quick-supplies button,.realm-equipment-grid button{min-height:44px}}

.realm-autoplay{display:flex;flex-wrap:wrap;gap:5px;align-items:center;border:1px solid #8b9c8f;padding:6px;margin:4px 0}.realm-autoplay strong{flex:1 1 100%}.realm-autoplay label{display:flex;align-items:center;gap:4px;flex:1 1 115px}.realm-autoplay select{min-width:0;max-width:100%}.realm-autoplay small{flex:1 1 100%}#realm-auto-toggle[aria-pressed=true]{background:#385a49;color:#fff3ce;border-color:#a3bc83}@container(max-width:450px){.realm-autoplay button,.realm-autoplay select{min-height:44px}}

.realm-fishing{border:2px solid #778b88;background:#263e47;color:#f0e6cc;padding:8px;margin:6px 0;border-radius:5px}.realm-fishing[hidden]{display:none}.realm-fishing header{display:flex;justify-content:space-between;align-items:center}.realm-fishing-water{position:relative;height:78px;overflow:hidden;background:repeating-linear-gradient(175deg,#28556c 0 8px,#30667b 9px 12px,#28556c 13px 23px);border:2px solid #9bb6b4;margin:6px 0}.realm-fishing-water::after{content:"";position:absolute;left:50%;top:0;height:34px;border-left:1px solid #ddd7b8}.realm-fishing-bobber{position:absolute;width:14px;height:20px;background:linear-gradient(#f0e3c2 0 48%,#c65544 49%);border:2px solid #402f39;left:calc(50% - 7px);top:28px;border-radius:50%;animation:realm-bob 1s ease-in-out infinite}.realm-fishing-ripple{position:absolute;left:calc(50% - 40px);top:39px;width:80px;height:21px;border:2px solid #a3d6df88;border-radius:50%;animation:realm-ripple 2s ease-out infinite}.realm-fishing[data-phase=perfect] .realm-fishing-water,.realm-fishing[data-phase=bite] .realm-fishing-water{border-color:#f4d67e}.realm-fishing[data-phase=perfect] .realm-fishing-bobber,.realm-fishing[data-phase=bite] .realm-fishing-bobber{animation:realm-bob .22s ease-in-out infinite}.realm-fishing[data-phase=perfect] [data-fish-status]{color:#c4f5ac}.realm-fishing[data-phase=bite] [data-fish-status]{color:#ffdc8e}.realm-fishing progress{width:100%;height:12px;accent-color:#91c489}.realm-fishing-buttons{display:flex;gap:6px}.realm-fishing-buttons button{min-height:44px;flex:1}.realm-fish-log-row{display:flex;justify-content:space-between;gap:6px;padding:4px;border-bottom:1px solid #6e8989}.realm-fishing summary{cursor:pointer;padding:6px}.realm-fishing[data-phase=perfect] [data-fish-reel],.realm-fishing[data-phase=bite] [data-fish-reel]{background:#e8c36c;color:#253841;font-weight:bold}@keyframes realm-bob{50%{transform:translateY(5px)}}@keyframes realm-ripple{0%{transform:scale(.5);opacity:1}100%{transform:scale(1.6);opacity:0}}@media(prefers-reduced-motion:reduce){.realm-fishing-bobber,.realm-fishing-ripple{animation:none!important}}

/* World-first HUD. The stage never resizes when a panel opens. */
#realm-panel:has(#realm-play:not([hidden])){height:100%;max-width:none!important;min-height:0}
.retro-window[data-window-id=realm]:has(#realm-play:not([hidden]))>.retro-window-content{padding:0!important;overflow:hidden}
#realm-panel .realm-shell:has(#realm-play:not([hidden])){position:relative;height:100%;min-height:0;max-width:none!important;padding:0!important;margin:0!important;border:0;overflow:hidden;background:#111f25;color:#f3e8ce}
.realm-shell:has(#realm-play:not([hidden]))>:is(button,.realm-banner){display:none}
#realm-play:not([hidden]){height:100%;min-height:0}
.realm-stage{position:relative;isolation:isolate;width:100%;height:100%;min-height:0;overflow:hidden;background:#13262a;container-type:size}
.realm-stage #realm-map{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;border:0;box-sizing:content-box;image-rendering:pixelated;touch-action:manipulation;outline-offset:-3px}
.realm-hud{position:absolute;z-index:2;pointer-events:none;min-width:0}
.realm-hud>*{pointer-events:auto}
.realm-hud-left{top:8px;left:8px;width:min(300px,34%);display:grid;gap:3px}
.realm-hud-right{top:8px;right:8px;width:min(180px,26%);display:grid;gap:4px;justify-items:end}
.realm-shell .realm-hud #realm-stats,.realm-shell .realm-hud #realm-zone,.realm-shell .realm-hud #realm-quest-tracker,.realm-shell .realm-hud #realm-target:not(:empty){background:#142b30e8;color:#fff0d0;border:1px solid #a59a70;border-radius:5px;padding:5px 7px;margin:0;box-shadow:0 2px 6px #0005;font-size:11px;overflow-wrap:anywhere}
.realm-shell .realm-hud #realm-stats{display:flex;gap:4px}
.realm-hud #realm-stats>strong{font-size:12px}
.realm-hud #realm-stats .realm-quick-supplies{display:none}
.realm-hud .realm-bars{flex:1 1 100%;gap:4px}
.realm-hud .realm-bars label{flex:1 1 27%;min-width:0;font-size:10px}
.realm-hud .realm-bars progress{height:8px}
.realm-hud #realm-quest-tracker{max-height:94px;overflow:auto}
.realm-hud #realm-target:empty{display:none}
.realm-hud #realm-target{max-height:24cqh;overflow:auto}
.realm-hud #realm-target button,.realm-hud #realm-quest-tracker button{font-size:11px;margin:2px;padding:4px 6px}
.realm-hud .realm-minimap-box{width:min(100%,145px);max-width:100%;box-sizing:border-box;border-radius:4px}
.realm-hud #realm-minimap{display:block;width:100%;height:auto;cursor:zoom-in;image-rendering:pixelated}
.realm-hud-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:3px}
.realm-shell .realm-hud-menu button{margin:0;min-width:0;min-height:30px;padding:4px 3px;font-size:11px;white-space:normal;line-height:1.1;background:#183038ed;color:#f4e6c7;border:1px solid #9b946f;border-radius:4px}
.realm-hud-menu button[aria-expanded=true]{background:#53674a;color:#fff}
.realm-hud-alerts{top:8px;left:50%;transform:translateX(-50%);width:min(360px,30%);max-height:24cqh;overflow:auto}
.realm-hud-alerts:has(#realm-event-banner:empty):has(#realm-encounter-warnings:empty){display:none}
.realm-hud-bottom{bottom:8px;left:50%;transform:translateX(-50%);width:min(780px,94%);display:grid;gap:3px}
.realm-shell .realm-hud-bottom #realm-spells,.realm-shell .realm-hud-bottom #realm-supplies{display:flex;flex-wrap:nowrap;overflow-x:auto;justify-content:safe center;margin:0;padding:3px;gap:3px;background:#12252bd9;border:1px solid #92896a;border-radius:5px}
.realm-shell .realm-hud-bottom #realm-spells .realm-hotkey{flex:0 0 auto;min-width:78px;max-width:120px;min-height:38px;padding:4px 5px 4px 19px}
.realm-shell .realm-hud-bottom #realm-spells .realm-hotkey strong{font-size:11px}
.realm-shell .realm-hud-bottom #realm-spells .realm-hotkey small{font-size:9px}
.realm-shell .realm-hud-bottom #realm-supplies button{flex:0 0 auto;min-height:28px;font-size:11px;padding:3px 7px;background:#263d39;color:#fff0cd;border:1px solid #918968}
.realm-shell:has(#realm-play:not([hidden]))>#realm-status{position:absolute;z-index:3;bottom:106px;left:50%;transform:translateX(-50%);width:max-content;max-width:70%;max-height:58px;overflow:hidden;background:#14272de8;color:#fff0ce;margin:0;border-radius:4px;font-size:12px;text-align:center;pointer-events:none}
.realm-shell:has(#realm-play:not([hidden]))>#realm-status:empty{display:none}
.realm-drawer{position:absolute;z-index:5;top:8px;right:8px;bottom:8px;width:min(400px,calc(100% - 16px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#eee6d2;color:#26322b;border:2px solid #a59872;border-radius:7px;box-shadow:0 5px 22px #0009;padding:8px}
.realm-drawer[hidden]{display:none!important}
.realm-drawer>header,.realm-fishing>header{display:flex;align-items:center;justify-content:space-between;gap:6px}
.realm-drawer>header{position:sticky;top:-8px;background:inherit;z-index:3;border-bottom:1px solid #a59872;padding:4px 0}
.realm-drawer>header button,.realm-fishing>header button{min-width:36px;min-height:36px}
.realm-drawer #realm-side{max-height:none;overflow:visible;border:0;background:inherit;padding:0}
.realm-drawer .realm-tabs{position:static;background:inherit}
.realm-drawer .realm-bottom{grid-template-columns:minmax(0,1fr)}
.realm-drawer #realm-chat,.realm-drawer #realm-events{max-height:30cqh}
body[data-theme=dark] .realm-drawer{background:#273a36;color:#f4e8cc}
.realm-stage #realm-fishing{position:absolute;z-index:7;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 24px));max-height:calc(100% - 20px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;margin:0;padding:12px;box-shadow:0 5px 28px #000b;background:#203b47f5;border:2px solid #b0c3af}
.realm-stage #realm-fishing[hidden]{display:none!important}
.realm-stage .realm-fishing-water{height:clamp(90px,24cqh,180px)}
.realm-stage .realm-fishing-water::after{height:48%}
.realm-stage .realm-fishing-bobber{top:42%;left:calc(50% - 11px);width:22px;height:30px}
.realm-stage .realm-fishing-ripple{top:54%;left:calc(50% - 58px);width:116px;height:30px}
.realm-stage [data-fish-status]{font-size:clamp(15px,4cqw,20px);font-weight:bold;margin:8px 0}
.realm-stage .realm-fishing-buttons button{min-height:48px;font-size:16px}
.realm-stage .realm-fishing[data-phase=perfect] .realm-fishing-water,.realm-stage .realm-fishing[data-phase=bite] .realm-fishing-water{box-shadow:inset 0 0 20px #f4d67e77}
.realm-stage .realm-touch-controls{position:absolute;z-index:3;bottom:100px;left:8px;right:8px;justify-content:space-between!important;margin:0!important;pointer-events:none}
.realm-stage .realm-touch-controls>*{pointer-events:auto}
.realm-stage .realm-touch-actions .touch-action-button{width:72px!important;height:62px!important;font-size:13px!important}
.realm-stage .realm-touch-actions>button{min-width:72px!important;min-height:42px}
.realm-stage .thumbstick-panel .thumbstick{width:clamp(70px,17cqh,112px);height:clamp(70px,17cqh,112px)}
@container (max-width:650px){
 .realm-hud-left{width:48%;left:4px;top:4px}
 .realm-hud-right{width:37%;right:4px;top:4px}
 .realm-hud-alerts{top:35%;width:62%;max-height:20cqh}
 .realm-hud #realm-quest-tracker{max-height:58px}
 .realm-hud #realm-target{max-height:18cqh}
 .realm-hud .realm-minimap-box{width:92px}
 .realm-hud-bottom{bottom:4px;width:98%}
 .realm-shell .realm-hud-menu button{min-height:38px;font-size:10px}
 .realm-shell .realm-hud-bottom #realm-spells .realm-hotkey{min-height:42px}
}
@container (max-height:400px){
 .realm-hud-left{width:31%}.realm-hud #realm-quest-tracker{max-height:42px}
 .realm-hud #realm-target{max-height:14cqh}
 .realm-hud .realm-minimap-box{width:85px}
 .realm-hud-right{width:min(150px,27%)}
 .realm-hud-bottom{width:64%;bottom:3px}
 .realm-stage .realm-touch-controls{bottom:4px}
 .realm-stage #realm-fishing{width:min(360px,calc(100% - 16px));padding:6px}
 .realm-stage .realm-fishing-water{height:65px;margin:3px 0}
 .realm-stage [data-fish-status]{font-size:14px;margin:4px 0}
}

/* 1.2.7: compact windowed HUD, persistent adventure assist, zoom controls. */
.realm-stage .realm-hud-right{max-height:calc(100% - 100px);overflow-y:auto;scrollbar-width:thin}
.realm-zoom-tools{display:flex;gap:3px;width:100%}
.realm-shell .realm-zoom-tools button{flex:1;min-width:0;margin:0;padding:3px 5px;min-height:27px;font-size:11px;background:#183038ed;color:#f4e6c7;border:1px solid #9b946f;border-radius:4px}
.realm-stage #realm-autoplay{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;width:100%;box-sizing:border-box;margin:0;padding:5px;background:#142b30ed;color:#f4e6c7;border:1px solid #9b946f;border-radius:4px}
.realm-stage #realm-autoplay strong{font-size:11px}
.realm-stage #realm-autoplay label{display:grid;gap:2px;font-size:10px;margin:0;min-width:0}
.realm-stage #realm-autoplay select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin:0;padding:3px;font-size:11px;min-height:26px}
.realm-stage #realm-auto-toggle{margin:0;min-height:32px;font-weight:bold;font-size:12px;color:#f4e6c7;background:#2e4643;border:1px solid #a99a70;border-radius:4px}
.realm-stage #realm-auto-toggle[aria-pressed=true]{background:#9b4939;color:white;border-color:#e5b984}
.realm-stage #realm-auto-status{font-size:10px;line-height:1.25;max-height:3.75em;overflow:auto;overflow-wrap:anywhere}
.realm-auto-options{font-size:10px}.realm-auto-options summary{cursor:pointer;padding:2px}
.realm-auto-options[open]{display:grid;gap:4px}
.realm-stage .realm-hud-alerts{pointer-events:none;max-height:17cqh}
.realm-stage .realm-drawer{width:min(390px,68%);top:4px;bottom:4px;right:4px}
.realm-stage .realm-drawer #realm-side{max-height:none;overflow:visible}
.realm-stage .realm-drawer .realm-tabs button{min-height:30px}
@container (max-width:760px){
 .realm-stage .realm-hud-left{width:33%;top:4px;left:4px}
 .realm-stage .realm-hud-right{width:25%;top:4px;right:4px}
 .realm-stage .realm-hud #realm-stats,.realm-stage .realm-hud #realm-zone,.realm-stage .realm-hud #realm-quest-tracker{padding:3px 4px;font-size:10px}
 .realm-stage .realm-hud #realm-stats>strong{font-size:10px}
 .realm-stage .realm-hud .realm-bars label{font-size:9px}
 .realm-stage .realm-hud #realm-quest-tracker{max-height:49px}
 .realm-stage .realm-hud-alerts{top:5px;width:35%;max-height:22cqh}
 .realm-stage .realm-hud-menu button{min-height:26px;font-size:10px}
 .realm-stage .realm-hud .realm-minimap-box{width:82px;padding:2px}
 .realm-stage #realm-autoplay{padding:3px}
 .realm-stage #realm-auto-toggle{min-height:30px;font-size:11px}
 .realm-stage #realm-auto-status{font-size:10px}
}
@container (max-width:450px){
 .realm-stage .realm-hud-left{width:43%}
 .realm-stage .realm-hud-right{width:36%}
 .realm-stage .realm-drawer{width:calc(100% - 8px)}
 .realm-stage .realm-hud-alerts{top:38%;width:55%}
 .realm-stage #realm-autoplay select,.realm-stage #realm-auto-toggle{min-height:38px}
 .realm-stage .realm-hud-menu button,.realm-stage .realm-zoom-tools button{min-height:36px}
}
@container (max-height:450px){
 .realm-stage .realm-hud-right{max-height:calc(100% - 64px);width:min(180px,28%)}
 .realm-stage .realm-hud .realm-minimap-box{width:64px;padding:2px}
 .realm-stage .realm-hud .realm-minimap-box small{display:none}
 .realm-stage .realm-hud-menu button{min-height:23px;padding:2px}
 .realm-stage #realm-autoplay{padding:3px;gap:2px}
 .realm-stage #realm-autoplay strong{display:none}
 .realm-stage #realm-autoplay select{min-height:23px}
 .realm-stage #realm-auto-toggle{min-height:25px}
 .realm-stage .realm-hud-bottom{width:60%}
 .realm-stage .realm-hud #realm-quest-tracker{max-height:38px}
 .realm-stage .realm-hud-left{max-height:65%;overflow:auto}
}

/* Keep start/stop reachable at the top of a short window, not below a scrolling map. */
.realm-stage #realm-autoplay{order:-1}
.realm-stage #realm-auto-toggle{grid-row:2}
.realm-stage .realm-hud-right{align-content:start}
.realm-stage .realm-hud-right .realm-minimap-box{flex-shrink:0}
@container(max-height:450px){.realm-stage #realm-autoplay strong{display:none}.realm-stage #realm-auto-toggle{grid-row:1}.realm-stage #realm-auto-status{max-height:2.5em}.realm-stage .realm-hud-right{max-height:calc(100% - 52px)}}

/* Foldable HUD, inventory paper doll and fixed-capacity bag. */
.realm-stage [hidden]{display:none!important}
.realm-fold-head{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0}
.realm-stage .realm-fold-head button{flex:0 0 auto;margin:0;padding:0 6px;min-width:25px;min-height:23px;line-height:1;color:#f2e2b9;background:#263c3e;border:1px solid #9b946f;border-radius:3px;font-size:15px}
.realm-stage .realm-fold-head strong{font-size:11px;display:block!important}
.realm-stage #realm-autoplay{grid-template-columns:minmax(0,1fr)}
.realm-stage #realm-auto-toggle{grid-row:auto;order:0}
.realm-stage #realm-auto-body{display:grid;gap:4px;min-width:0;order:2}
.realm-stage #realm-auto-status{order:1}
.realm-stage .realm-fold-panel{background:#142b30e8;color:#f4e6c7;border:1px solid #92896a;border-radius:4px;padding:3px;box-sizing:border-box;width:100%;min-width:0}
.realm-stage .realm-fold-panel #realm-quest-tracker{border:0;box-shadow:none;padding:3px}
.realm-stage .realm-menu-fold nav{margin-top:3px}
.realm-stage .realm-minimap-box:has(canvas[hidden]){width:100%}
.realm-stage .realm-drawer:has(#realm-side[hidden]){bottom:auto;height:auto;width:min(260px,65%);overflow:hidden}
.realm-stage .realm-drawer-tools{display:flex;gap:3px}
.realm-stage .realm-drawer[data-pane=gear]:not(:has(#realm-side[hidden])){width:min(535px,78%);background:linear-gradient(135deg,#242b2b,#171d20);color:#eadfca;border-color:#a58d63}
.realm-stage .realm-drawer[data-pane=gear] .realm-tabs button{background:#343b3b;color:#e9dfc9;border-color:#77705b}
.realm-stage .realm-drawer[data-pane=gear] .realm-tabs button[aria-pressed=true]{background:#63533b;color:#fff0ca;border-color:#c4a874}
.realm-stage .realm-drawer[data-pane=gear] h3{color:#e2c998!important}
.realm-stage .realm-drawer[data-pane=gear] summary{cursor:pointer;padding:6px}
.realm-paperdoll{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(4,minmax(48px,auto));gap:5px;max-width:380px;margin:5px auto 8px;padding:7px;background:radial-gradient(ellipse at center,#4f4b3a,#252928 70%);border:1px solid #85734f;border-radius:6px}
.realm-paperdoll-body{grid-column:2/5;grid-row:1/5;position:relative;align-self:stretch;min-height:200px;pointer-events:none;overflow:hidden}
.realm-paperdoll-body i{position:absolute;display:block;box-sizing:border-box}
.doll-shadow{left:13%;bottom:3%;width:74%;height:8%;border-radius:50%;background:#0006}
.doll-head{left:40%;top:6%;width:20%;height:17%;border-radius:35% 35% 45% 45%;background:#b38d6b;border:2px solid #604e40;z-index:3}
.doll-hair{left:39%;top:4%;width:22%;height:8%;border-radius:60% 60% 15% 15%;background:#524336;z-index:4}
.doll-neck{left:45%;top:20%;width:10%;height:9%;background:#b38d6b}
.doll-torso{left:32%;top:25%;width:36%;height:33%;background:linear-gradient(100deg,#78674d,#b4a17b 45%,#655741);clip-path:polygon(0 0,100% 0,85% 100%,15% 100%)}
.doll-belt{left:36%;top:53%;width:28%;height:6%;background:#4f3729;border:1px solid #a38658;z-index:2}
.doll-arm-left,.doll-arm-right{top:26%;width:13%;height:36%;border-radius:35% 35% 20% 20%;background:linear-gradient(#77664b 0 70%,#b38d6b 71%);transform-origin:top}
.doll-arm-left{left:29%;transform:rotate(14deg)}.doll-arm-right{right:29%;transform:rotate(-14deg)}
.doll-leg-left,.doll-leg-right{top:57%;width:14%;height:31%;background:linear-gradient(90deg,#575349,#8b8571,#514e46);border-radius:0 0 15% 15%}
.doll-leg-left{left:36%}.doll-leg-right{right:36%}
.doll-boot-left,.doll-boot-right{top:85%;width:17%;height:10%;background:#493a2e;border-radius:15% 15% 28% 28%}
.doll-boot-left{left:32%}.doll-boot-right{right:32%}
.realm-paperdoll-body.has-head .doll-hair{background:#aaa79a;height:13%;border:1px solid #e0c88e}
.realm-paperdoll-body.has-armor .doll-torso{background:linear-gradient(100deg,#5d7379,#b9c2b9 45%,#53666b);border:2px solid #d0c69c}
.realm-paperdoll-body.has-legs :is(.doll-leg-left,.doll-leg-right){background:#7d8581}
.realm-paperdoll-body.has-boots :is(.doll-boot-left,.doll-boot-right){background:#757c78}
.realm-paperdoll-body[data-race=Dwarf]{transform:scale(.94,.82);transform-origin:center bottom}
.realm-paperdoll-body[data-race=Elf] .doll-head{clip-path:polygon(0 0,100% 0,100% 60%,85% 55%,80% 100%,20% 100%,15% 55%,0 60%)}
.realm-paperdoll .slot-head{grid-area:1/3}.realm-paperdoll .slot-neck{grid-area:1/1}.realm-paperdoll .slot-shoulders{grid-area:2/1}.realm-paperdoll .slot-armor{grid-area:2/5}.realm-paperdoll .slot-hands{grid-area:3/1}.realm-paperdoll .slot-legs{grid-area:3/5}.realm-paperdoll .slot-boots{grid-area:4/3}.realm-paperdoll .slot-weapon{grid-area:4/1}.realm-paperdoll .slot-offhand{grid-area:4/5}.realm-paperdoll .slot-ring{grid-area:1/5}.realm-paperdoll .slot-charm{grid-area:4/2}.realm-paperdoll .slot-trinket{grid-area:4/4}
.realm-shell .realm-inv-cell{position:relative;min-width:0;width:100%;aspect-ratio:1;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;overflow:hidden;margin:0;padding:2px;color:#ded2b2;background:radial-gradient(ellipse at 50% 35%,#4b4640,#242b2c 75%);border:1px solid #8f8372;border-radius:3px;box-shadow:inset 0 0 5px #0007;line-height:1}
.realm-shell button.realm-inv-cell{cursor:pointer}
.realm-paperdoll .realm-inv-cell{z-index:2;aspect-ratio:auto;min-height:44px}
.realm-shell .realm-inv-cell.empty{background:#161e20a8;border-color:#4a504e;color:#7e8176;box-shadow:inset 0 0 5px #0005}
.realm-inv-cell[data-rarity=uncommon]{border-color:#75bd75;background:radial-gradient(#3b6039,#25302a)}
.realm-inv-cell[data-rarity=rare]{border-color:#6baff8;background:radial-gradient(#395b8a,#222e3b)}
.realm-inv-cell[data-rarity=epic]{border-color:#b58bed;background:radial-gradient(#62477c,#33283f)}
.realm-inv-cell[data-rarity=legendary]{border-color:#efb55a;background:radial-gradient(#805c2b,#3b2d21)}
.realm-inv-cell[aria-pressed=true]{outline:2px solid #fff1bc;outline-offset:-3px}
.realm-inv-icon{font-size:clamp(15px,4cqw,24px);line-height:1.1;text-shadow:0 1px 2px #000}
.realm-inv-cell small{font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.realm-inv-count,.realm-inv-equipped-mark,.realm-inv-upgrade-mark{position:absolute;font:700 10px sans-serif;text-shadow:0 1px 2px #000;color:#fff;line-height:1}
.realm-inv-count{bottom:3px;right:3px}.realm-inv-equipped-mark{top:3px;left:3px;color:#f5d18a}.realm-inv-upgrade-mark{top:3px;right:3px;color:#a6ed8b}
.realm-item-inspector{background:#172022;border:1px solid #8e7f60;border-radius:4px;padding:8px;min-height:58px;color:#e9dfc8;overflow-wrap:anywhere}
.realm-item-inspector strong,.realm-item-inspector small{display:block;margin:3px 0}
.realm-item-inspector [data-rarity=rare]{color:#86bfff}.realm-item-inspector [data-rarity=uncommon]{color:#a3df9d}.realm-item-inspector [data-rarity=epic]{color:#d3a1ff}.realm-item-inspector [data-rarity=legendary]{color:#ffca77}
.realm-item-inspector .realm-upgrade{color:#a7e3ab}.realm-item-inspector .realm-downgrade{color:#ffaaa0}
.realm-inv-actions{display:flex;gap:4px;flex-wrap:wrap}.realm-inv-actions button{min-height:33px}
.realm-bag-meter{width:100%;height:8px;accent-color:#baa26b}
.realm-bag-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;padding:5px;background:#11191c;border:1px solid #88785a;border-radius:4px}
.realm-bag-paging{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:4px 0;font-size:12px}
.realm-bag-paging button{min-width:36px;min-height:32px}
.realm-stage .realm-drawer[data-pane=gear] .realm-inventory-filters{gap:4px}
.realm-stage .realm-drawer[data-pane=gear] .realm-inventory-filters label{font-size:10px}
.realm-stage .realm-drawer[data-pane=gear] .realm-inventory-filters select,.realm-stage .realm-drawer[data-pane=gear] .realm-inventory-filters input{background:#242f31;color:#eadfc7;border:1px solid #93856c;padding:4px}
@container(max-width:540px){.realm-stage .realm-drawer[data-pane=gear]:not(:has(#realm-side[hidden])){width:calc(100% - 8px)}.realm-bag-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.realm-paperdoll{max-width:325px}.realm-inv-icon{font-size:20px}}
@media(any-pointer:coarse){.realm-shell button.realm-inv-cell{min-height:36px}.realm-stage .realm-fold-head button{min-width:34px;min-height:32px}}

/* Release polish: consistent adventure navigation, readable cards and narrative overlay. */
.realm-stage .realm-drawer{background:#eee6d2;color:#293833;border-color:#a79871;scrollbar-width:thin}
body[data-theme=dark] .realm-stage .realm-drawer{background:#233331;color:#eee5d0}
.realm-stage .realm-drawer>header{padding:5px 0 7px;top:-8px}
.realm-stage .realm-section-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding:5px 0 9px;position:static}
.realm-nav-group{display:grid;gap:3px;min-width:0}
.realm-nav-group>small{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;opacity:.8}
.realm-nav-buttons{display:flex;flex-wrap:wrap;gap:3px}
.realm-stage .realm-nav-buttons button{flex:1 1 25%;min-width:0;padding:4px 6px;font-size:11px;line-height:1.2}
.realm-stage .realm-side-content{padding:5px 1px 10px;font-size:12px;line-height:1.45}
.realm-stage .realm-side-content h3{font-family:Georgia,serif;font-size:17px;margin:14px 0 6px;padding-bottom:4px;border-bottom:1px solid #a69b7966;letter-spacing:.01em}
.realm-stage .realm-side-content h3:first-child{margin-top:3px}
.realm-stage .realm-side-content p{margin:5px 0}
.realm-stage .realm-side-content :is(.realm-item,.realm-story-quest){padding:9px;border-radius:4px;margin:6px 0;background:#ffffff18;box-shadow:0 1px 2px #0001}
.realm-stage .realm-side-content :is(.realm-item,.realm-story-quest)>strong{font-size:13px}
.realm-stage .realm-side-content button:not(.realm-inv-cell){white-space:normal;line-height:1.25;min-height:32px;padding:5px 8px}
.realm-stage .realm-side-content button:disabled{opacity:.55;cursor:default}
.realm-stage .realm-side-content progress{height:8px;accent-color:#7d9d78}
.realm-stage .realm-side-content :is(select,input){max-width:100%;min-width:0;box-sizing:border-box}
.realm-stage .realm-hud-alerts button{pointer-events:auto}
.realm-stage .realm-dialogue{position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 24px));max-height:calc(100% - 20px);overflow:auto;box-sizing:border-box;border:2px solid #b59c69;border-radius:8px;background:linear-gradient(145deg,#293a38,#182528);color:#f1e5c8;box-shadow:0 8px 40px #000b,inset 0 0 18px #0003;padding:12px;overscroll-behavior:contain}
.realm-dialogue header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #9b885c;padding-bottom:7px}
.realm-dialogue header strong{font:700 21px Georgia,serif;color:#f0d39a}
.realm-stage .realm-dialogue button{background:#354a46;color:#f5e9ce;border:1px solid #a08e65;border-radius:4px;min-height:34px;padding:6px 10px;font-size:12px;white-space:normal}
.realm-stage .realm-dialogue button:hover,.realm-stage .realm-dialogue button:focus-visible{background:#50645a}
.realm-stage .realm-dialogue button:disabled{opacity:.6}
.realm-dialogue-voice{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:6px 0}
.realm-dialogue-voice label{font-size:11px;display:flex;align-items:center;gap:4px;margin-right:auto}
.realm-stage .realm-dialogue-voice button{font-size:10px;padding:4px 7px;min-height:28px}
.realm-dialogue-identity{display:flex;align-items:center;gap:10px;margin:4px 0 12px}
.realm-dialogue-identity strong,.realm-dialogue-identity small{display:block}
.realm-dialogue-identity small{color:#b6c2b6;font-size:11px}
.realm-dialogue-portrait{display:grid;place-items:center;width:56px;height:56px;border:1px solid #b79c6c;border-radius:5px;background:radial-gradient(#718274,#253b35);color:#e8d19b;font-size:30px;box-shadow:inset 0 0 12px #0006}
.realm-dialogue-portrait[data-region="1"],.realm-dialogue-portrait[data-region="6"]{background:radial-gradient(#8b8471,#363c3a)}
.realm-dialogue-portrait[data-region="4"]{background:radial-gradient(#a26442,#4e2c23)}
.realm-dialogue-portrait[data-region="5"],.realm-dialogue-portrait[data-region="7"]{background:radial-gradient(#72678f,#352c45)}
.realm-dialogue h2{font:700 clamp(19px,4cqw,25px) Georgia,serif;color:#f4d7a0;margin:5px 0 10px}
.realm-dialogue h3{font:700 16px Georgia,serif;color:#f4d7a0;margin:12px 0 6px}
.realm-dialogue-eyebrow{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#d2b97c}
.realm-dialogue-story{font:15px/1.6 Georgia,serif;color:#f0e6cf;margin:7px 0 14px}
.realm-dialogue-objectives{padding:9px;background:#111e225e;border:1px solid #8d87644f;border-radius:4px;margin:7px 0;font-size:13px}
.realm-dialogue-objectives>strong{color:#e8ce98}
.realm-dialogue-objectives p{margin:5px 0}
.realm-dialogue-objectives progress{width:100%;height:9px;accent-color:#8eb17c}
.realm-dialogue-reward{padding:6px;margin:5px 0;border:1px solid #9b9272;border-radius:3px}
.realm-dialogue-reward[data-rarity=rare]{border-color:#81a9df;color:#a9caff}.realm-dialogue-reward[data-rarity=epic]{border-color:#b28bd3;color:#d6b9f9}.realm-dialogue-reward[data-rarity=legendary]{border-color:#e2b05d;color:#f8ce8d}
.realm-dialogue-reward small{display:block;margin:3px 0}
.realm-dialogue-actions{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}
.realm-stage .realm-dialogue-actions button:first-child{background:#77603b;border-color:#e1c086}
.realm-stage .realm-dialogue-quest{display:block;width:100%;text-align:left;margin:4px 0;border-left:3px solid #bda36b}
.realm-dialogue-quest small{display:block;color:#b8c9bb;margin-top:3px}
.realm-stage .realm-dialogue-quest[data-state=ready]{border-left-color:#95cd83}
.realm-stage .realm-dialogue-quest[data-main=true]{color:#f4d48e}
.realm-dialogue [data-dialogue-status]{font-size:11px;color:#edc38d;margin:5px 0 0}
.realm-dialogue [data-dialogue-status]:empty{display:none}
@container(max-height:450px){.realm-stage .realm-dialogue{padding:7px;width:min(460px,calc(100% - 16px))}.realm-dialogue-story{font-size:13px}.realm-dialogue-identity{margin:2px 0 4px}.realm-dialogue-portrait{height:40px;width:40px;font-size:22px}}
@media(any-pointer:coarse){.realm-stage .realm-dialogue button,.realm-stage .realm-nav-buttons button{min-height:40px}}

/* Shared item icon language. Shapes remain recognizable without hue. */
.realm-item-icon{display:block;width:30px;height:30px;object-fit:contain;image-rendering:pixelated;flex:none;filter:drop-shadow(0 1px 1px #1118)}
.realm-inv-cell .realm-item-icon{width:min(76%,32px);height:auto;aspect-ratio:1;max-height:32px}
.realm-inv-cell.empty .realm-item-icon{opacity:.35;filter:grayscale(1)}
.realm-item-icon-small{width:24px;height:24px}
.realm-item-label{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-weight:600;line-height:1.3;vertical-align:middle}
.realm-item-label span{min-width:0;overflow-wrap:anywhere}
.realm-item-label[data-rarity=uncommon]{color:#2d7950}.realm-item-label[data-rarity=rare]{color:#2765b3}.realm-item-label[data-rarity=epic]{color:#7948a8}.realm-item-label[data-rarity=legendary]{color:#a76a20}
body[data-theme=dark] .realm-item-label[data-rarity=uncommon],.realm-dialogue .realm-item-label[data-rarity=uncommon]{color:#a3df9d}
body[data-theme=dark] .realm-item-label[data-rarity=rare],.realm-dialogue .realm-item-label[data-rarity=rare]{color:#a9caff}
body[data-theme=dark] .realm-item-label[data-rarity=epic],.realm-dialogue .realm-item-label[data-rarity=epic]{color:#d6b9f9}
body[data-theme=dark] .realm-item-label[data-rarity=legendary],.realm-dialogue .realm-item-label[data-rarity=legendary]{color:#f8ce8d}
.realm-inv-cell[data-material=herb]{border-color:#83ae67}.realm-inv-cell[data-material=wood],.realm-inv-cell[data-material=leather]{border-color:#b18a65}.realm-inv-cell[data-material=ore],.realm-inv-cell[data-material=ingot]{border-color:#a0b2c5}.realm-inv-cell[data-material=crystal],.realm-inv-cell[data-material=essence]{border-color:#b49cdb}.realm-inv-cell[data-material=fish]{border-color:#75b7ce}.realm-inv-cell[data-material=potion]{border-color:#9aa9cf}.realm-inv-cell[data-material=seal]{border-color:#d6ba78}
.realm-ingredient[data-enough=false]{opacity:.75;border-left:2px solid #b76a5d;padding-left:4px}
.realm-ingredient[data-enough=true]{border-left:2px solid #79a56d;padding-left:4px}
.realm-doll-rendered>i{display:none}
.realm-doll-sprite{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100%,155px);height:auto;image-rendering:pixelated}
.realm-paperdoll-body.realm-doll-rendered[data-race=Dwarf]{transform:none}
.realm-item-inspector>.realm-item-icon{float:left;margin:3px 8px 4px 0}
.realm-stage #realm-controls>label{display:flex;gap:5px;align-items:center;flex-wrap:wrap}

/* Synchronized regional atmosphere: compact readable HUD and independent effects controls. */
.realm-stage .realm-climate-readout{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:4px 7px;background:#172a29e8;border:1px solid #8f9475;color:#e5e2cc;border-radius:4px;line-height:1.2;font-size:11px;pointer-events:none}
.realm-climate-readout [data-climate-icon]{font-size:16px;color:#eed28b;line-height:1}
.realm-climate-readout [data-climate-weather]{color:#bbd3d4}
.realm-climate-readout[data-weather=storm] [data-climate-icon],.realm-climate-readout[data-weather=rain] [data-climate-icon]{color:#a9d4ed}
.realm-climate-readout[data-weather=embers] [data-climate-icon],.realm-climate-readout[data-weather=ash] [data-climate-icon]{color:#ffba83}
.realm-climate-readout[data-weather=aurora] [data-climate-icon],.realm-climate-readout[data-weather=meteors] [data-climate-icon]{color:#d6b9ff}
#realm-atmosphere-settings{border:1px solid #9b9474;border-radius:4px;padding:9px;margin:7px 0;min-width:0}
#realm-atmosphere-settings legend{font-weight:bold;padding:0 4px}
#realm-atmosphere-settings label{display:flex;gap:6px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:5px 0}
#realm-atmosphere-settings select{max-width:100%}
@container(max-height:450px){.realm-stage .realm-climate-readout{font-size:9px;padding:2px 4px;gap:3px}.realm-climate-readout [data-climate-icon]{font-size:12px}}

#realm-party-frames{display:grid;gap:4px;margin:6px 0;max-width:260px}#realm-party-frames[hidden]{display:none}.realm-party-frame{background:rgba(18,25,36,.94);border:1px solid #526477;border-radius:6px;padding:5px;display:grid;gap:3px;color:#e6eef3}.realm-party-frame progress{width:100%;height:6px;accent-color:#74cf83}.realm-party-frame progress[data-stat=Mana]{accent-color:#6da6e7}.realm-party-frame button{font-size:11px;padding:3px 6px;text-align:left;white-space:normal}.realm-party-buttons{display:flex;gap:4px;flex-wrap:wrap}.realm-inspect{max-height:220px;overflow:auto;font-size:12px}.realm-inspect p{margin:3px 0}@media(max-width:600px){#realm-party-frames{max-width:170px}.realm-party-frame{padding:3px}.realm-party-frame button{font-size:10px}}

/* Phase 04: responsive play surface; the camera is measured against the map
   viewport, never against HUD panels. Compact mode uses real layout rows. */
.realm-stage .realm-map-viewport{position:absolute;inset:0;min-width:0;min-height:0;overflow:hidden;background:#101d22}
.realm-mobile-nav{display:none}
.realm-market-history-row{display:grid;grid-template-columns:42px minmax(40px,1fr) auto;gap:8px;align-items:center;margin:6px 0;font-variant-numeric:tabular-nums;font-size:13px}
.realm-market-history-row progress{width:100%;accent-color:#6ba981}
.realm-bank>strong{display:block;margin:12px 0 4px}
.realm-stage .realm-bank input,.realm-stage .realm-bank select{width:100%;margin:3px 0}
.realm-stage .realm-bank button{margin:4px 4px 4px 0}
.realm-stage.realm-compact{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:0;height:100%;background:#101d22}
.realm-stage.realm-compact .realm-map-viewport{position:relative;inset:auto;grid-row:2;grid-column:1;min-height:0;width:100%;height:100%}
.realm-stage.realm-compact .realm-hud-left{grid-row:1;grid-column:1;position:relative;inset:auto;width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:4px 6px;box-sizing:border-box;background:#14252c;z-index:4}
.realm-stage.realm-compact .realm-hud-left #realm-stats{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:5px 7px;background:none;border:0;box-shadow:none}
.realm-stage.realm-compact #realm-stats>strong{font-size:14px!important;line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.realm-stage.realm-compact #realm-stats>strong:last-of-type{grid-column:2;grid-row:1;color:#f4d18a}
.realm-stage.realm-compact #realm-stats .realm-bars{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.realm-stage.realm-compact .realm-bars label{font-size:12px;line-height:1.2;white-space:nowrap}
.realm-stage.realm-compact .realm-bars progress{height:9px}
.realm-stage.realm-compact #realm-zone{display:flex;align-items:center;justify-content:space-between;gap:4px;flex-wrap:wrap;padding:3px 7px;font-size:13px!important;border:0;box-shadow:none;background:none}
.realm-stage.realm-compact #realm-zone button{min-height:38px;font-size:13px;padding:5px 9px;margin:0}
.realm-stage.realm-compact .realm-hud-left #realm-climate,.realm-stage.realm-compact .realm-hud-left>.realm-fold-panel,.realm-stage.realm-compact #realm-party-frames{display:none}
.realm-stage.realm-compact[data-details=open] .realm-hud-left>.realm-fold-panel,.realm-stage.realm-compact[data-details=open] .realm-hud-left #realm-party-frames:not([hidden]){display:grid;max-height:120px;overflow:auto;width:100%;max-width:none}
.realm-stage.realm-compact[data-details=open] .realm-hud-left #realm-climate{display:flex}
.realm-stage.realm-compact #realm-party-frames{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.realm-stage.realm-compact #realm-party-frames>strong{grid-column:1/-1}
.realm-stage.realm-compact .realm-party-frame button{min-height:36px;font-size:12px}
.realm-stage.realm-compact .realm-hud-left #realm-target:not(:empty){max-height:78px;overflow:auto;font-size:13px;gap:4px;padding:4px 6px}
.realm-stage.realm-compact #realm-target button{min-height:40px;font-size:13px;margin:0}
.realm-stage.realm-compact .realm-hud-right{display:none;position:absolute;top:104px;right:6px;left:auto;width:min(290px,calc(100% - 12px));max-height:calc(100% - 245px);overflow:auto;padding:8px;background:#152b31f5;border:1px solid #9d9278;border-radius:8px;z-index:5}
.realm-stage.realm-compact[data-tools=open] .realm-hud-right{display:grid}
.realm-stage.realm-compact .realm-hud-right .realm-hud-menu{display:none}
.realm-stage.realm-compact .realm-hud-right .realm-menu-fold{display:none}
.realm-stage.realm-compact .realm-hud-right button,.realm-stage.realm-compact .realm-hud-right select{min-height:44px;font-size:14px}
.realm-stage.realm-compact .realm-hud-right #realm-autoplay label{font-size:14px}
.realm-stage.realm-compact .realm-hud-right .realm-minimap-box{width:180px;max-width:100%;justify-self:center}
.realm-stage.realm-compact .realm-hud-alerts{position:absolute;top:115px;left:50%;width:calc(100% - 16px);max-width:360px;max-height:22%;z-index:3;pointer-events:none}
.realm-stage.realm-compact .realm-hud-alerts #realm-event-banner{display:none}
.realm-stage.realm-compact .realm-hud-alerts #realm-encounter-warnings:not(:empty){pointer-events:auto}
.realm-stage.realm-compact .realm-encounter-warning button{min-height:44px;font-size:14px}
.realm-stage.realm-compact .realm-hud-bottom{grid-row:3;grid-column:1;position:relative;inset:auto;transform:none;width:100%;gap:2px;padding:3px 5px;box-sizing:border-box;background:#13232b}
.realm-stage.realm-compact #realm-spells,.realm-stage.realm-compact #realm-supplies{justify-content:flex-start;scroll-snap-type:x proximity;scrollbar-width:thin}
.realm-stage.realm-compact #realm-spells .realm-hotkey{min-height:52px;min-width:100px;max-width:140px;padding:6px 8px!important;scroll-snap-align:start}
.realm-stage.realm-compact .realm-hotkey kbd{display:none}
.realm-stage.realm-compact #realm-spells .realm-hotkey strong{font-size:14px}
.realm-stage.realm-compact #realm-spells .realm-hotkey small{font-size:11px}
.realm-stage.realm-compact #realm-supplies button{min-height:44px;font-size:13px;padding:6px 10px}
.realm-stage.realm-compact .realm-mobile-nav{grid-row:4;grid-column:1;display:flex;gap:3px;overflow-x:auto;padding:4px 5px 5px;background:#1c303a;border-top:1px solid #697b78;min-width:0;scrollbar-width:thin}
.realm-stage.realm-compact .realm-mobile-nav button{flex:1 0 auto;min-width:53px;min-height:46px;margin:0;padding:6px 7px;border-radius:6px;background:#253b43;color:#f6ebd3;border:1px solid #758d89;font-size:13px;font-weight:650;white-space:nowrap}
.realm-stage.realm-compact .realm-mobile-nav button[aria-expanded=true]{background:#6d6341;border-color:#e2ce94;color:#fff}
.realm-stage.realm-compact .realm-touch-controls{position:absolute;bottom:155px;left:9px;right:9px;z-index:3}
.realm-stage.realm-compact .thumbstick-panel .thumbstick{width:90px;height:90px;touch-action:none}
.realm-stage.realm-compact .thumbstick-panel>strong{display:none}
.realm-stage.realm-compact .realm-touch-actions{gap:4px}
.realm-stage.realm-compact .realm-touch-actions #realm-touch-interact{width:72px!important;height:54px!important;font-size:14px!important}
.realm-stage.realm-compact .realm-touch-actions #realm-touch-skill{min-height:44px;font-size:13px}
.realm-stage.realm-compact:has(.realm-drawer:not([hidden])) .realm-touch-controls{visibility:hidden}
.realm-stage.realm-compact .realm-drawer{position:absolute;inset:0;width:100%!important;max-width:none!important;height:100%;padding:10px 12px 18px;border-radius:0;border:0;z-index:6;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.realm-stage.realm-compact .realm-drawer>header{position:sticky;top:-10px;padding:8px 0;z-index:2;min-height:48px;background:inherit}
.realm-stage.realm-compact .realm-drawer>header strong{font-size:18px;line-height:1.2}
.realm-stage.realm-compact .realm-drawer>header button{min-width:46px;min-height:46px;font-size:19px}
.realm-stage.realm-compact #realm-side{max-height:none!important;overflow:visible}
.realm-stage.realm-compact .realm-side-content,.realm-stage.realm-compact .realm-side-content p,.realm-stage.realm-compact .realm-bottom p{font-size:15px;line-height:1.5}
.realm-stage.realm-compact .realm-side-content h3{font-size:19px}
.realm-stage.realm-compact .realm-side-content :is(.realm-item,.realm-story-quest)>strong{font-size:16px}
.realm-stage.realm-compact .realm-side-content small{font-size:13px}
.realm-stage.realm-compact .realm-side-content button:not(.realm-inv-cell),.realm-stage.realm-compact .realm-nav-buttons button,.realm-stage.realm-compact #realm-chat-form button,.realm-stage.realm-compact #realm-controls button{min-height:46px;font-size:14px;padding:8px 10px}
.realm-stage.realm-compact .realm-nav-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.realm-stage.realm-compact .realm-nav-group>small{font-size:12px}
.realm-stage.realm-compact :is(.realm-drawer,.realm-dialogue) :is(input,select,textarea){font-size:16px;min-height:44px}
.realm-stage.realm-compact .realm-dialogue,.realm-stage.realm-compact #realm-fishing{width:calc(100% - 12px);max-height:calc(100% - 12px);padding:10px}
.realm-stage.realm-compact .realm-dialogue button{min-height:44px;font-size:14px}
.realm-stage.realm-compact .realm-bag-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.realm-stage.realm-compact .realm-inv-cell{min-height:46px}
.realm-shell:has(.realm-compact)>#realm-status{bottom:160px;max-width:85%;font-size:13px;padding:4px 7px}
@media(max-height:500px) and (orientation:landscape){
.realm-stage.realm-compact .realm-hud-left{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.realm-stage.realm-compact .realm-hud-left #realm-target:not(:empty){grid-column:1/-1;max-height:50px}
.realm-stage.realm-compact .realm-hud-alerts{top:78px;max-height:30%}
.realm-stage.realm-compact .realm-touch-controls{bottom:102px}
.realm-stage.realm-compact .thumbstick-panel .thumbstick{width:72px;height:72px}
.realm-stage.realm-compact #realm-supplies{display:none}
.realm-stage.realm-compact .realm-hud-right{top:75px;max-height:calc(100% - 185px)}
.realm-stage.realm-compact .realm-mobile-nav button{min-height:42px}
.realm-shell:has(.realm-compact)>#realm-status{bottom:107px}
}

/* Keep overlays anchored to the actual world viewport, not the window. */
.realm-mobile-tools,#realm-map-status{display:none}
.realm-stage.realm-compact .realm-hud-left{grid-template-columns:minmax(0,1fr) auto}
.realm-stage.realm-compact .realm-hud-left #realm-stats{grid-column:1/-1}
.realm-stage.realm-compact #realm-zone{grid-column:1;grid-row:2;min-width:0}
.realm-stage.realm-compact .realm-mobile-tools{display:flex;grid-column:2;grid-row:2;gap:3px;align-items:center}
.realm-stage.realm-compact .realm-mobile-tools button{min-height:44px;min-width:44px;font-size:13px;margin:0;padding:5px 7px;background:#253b43;color:#fff0d0;border:1px solid #758d89;border-radius:6px}
.realm-stage.realm-compact .realm-mobile-tools button[aria-expanded=true]{background:#6d6341}
.realm-stage.realm-compact .realm-hud-left>:is(.realm-fold-panel,#realm-party-frames,#realm-climate,#realm-target){grid-column:1/-1}
.realm-stage.realm-compact .realm-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
.realm-stage.realm-compact .realm-mobile-nav button{min-width:0;font-size:13px;padding:5px 3px}
.realm-stage.realm-compact .realm-map-viewport .realm-touch-controls{bottom:8px}
.realm-stage.realm-compact .realm-map-viewport .realm-hud-alerts{top:6px;max-height:46%;overflow:auto}
.realm-stage.realm-compact .realm-hud-right .realm-menu-fold{display:block}
.realm-stage.realm-compact .realm-hud-right .realm-hud-menu:not([hidden]){display:grid}
.realm-stage.realm-compact #realm-map-status:not(:empty){display:block;position:absolute;z-index:2;bottom:7px;left:50%;transform:translateX(-50%);width:max-content;max-width:48%;font-size:13px;line-height:1.3;padding:5px 6px;color:#fff3d5;background:#13272de8;border-radius:5px;text-align:center;pointer-events:none;max-height:72px;overflow:hidden}
.realm-shell:has(#realm-play:not([hidden]) .realm-compact)>#realm-status{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important}
.realm-stage.realm-compact .realm-dialogue input[type=checkbox],.realm-stage.realm-compact .realm-drawer input[type=checkbox]{min-height:0;width:20px;height:20px}
.realm-stage.realm-compact .realm-side-content input[type=number]{font-variant-numeric:tabular-nums}
@media(max-height:500px) and (orientation:landscape){
.realm-stage.realm-compact .realm-hud-left{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.realm-stage.realm-compact .realm-hud-left #realm-stats{grid-column:1;grid-row:1}
.realm-stage.realm-compact #realm-zone{grid-column:2;grid-row:1}
.realm-stage.realm-compact .realm-mobile-tools{grid-column:3;grid-row:1}
.realm-stage.realm-compact #realm-target:not(:empty){grid-row:2}
.realm-stage.realm-compact .realm-map-viewport .realm-touch-controls{bottom:5px}
.realm-stage.realm-compact .realm-map-viewport .realm-hud-alerts{top:4px}
}

.realm-transport-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;padding:8px 0;border-top:1px solid #93856c55}.realm-transport-row>small{grid-column:1;grid-row:2}.realm-transport-row button{grid-column:2;grid-row:1/3;white-space:normal;min-width:90px}.realm-stage #realm-teleport-cast{position:absolute;z-index:4;bottom:12px;left:50%;transform:translateX(-50%);width:min(260px,60%);display:grid;gap:5px;padding:8px;border:1px solid #baa6df;background:#25233af2;border-radius:7px;color:#eee1ff;text-align:center}.realm-stage #realm-teleport-cast[hidden]{display:none}.realm-stage #realm-teleport-cast progress{width:100%;accent-color:#be9bf9}.realm-stage #realm-teleport-cast button{min-height:44px;margin:0}.realm-stage.realm-compact #realm-teleport-cast{bottom:80px}.realm-stage:not(.realm-compact) #realm-teleport-cast{bottom:115px}

.realm-profile-head{border-color:#ad9367}.realm-profile-head h3{font-size:21px}.realm-achievement[data-earned=true]{border-left:4px solid #679665}.realm-achievement progress{display:block;width:100%;height:8px;accent-color:#719761;margin:8px 0}.realm-emote-grid,.realm-lifetime-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.realm-lifetime-grid>div{background:#80927e1a;border:1px solid #858e7b55;border-radius:5px;padding:8px;min-width:0}.realm-lifetime-grid strong{display:block;font-size:19px;font-variant-numeric:tabular-nums}.realm-lifetime-grid small{font-size:12px}.realm-stage .realm-emote-grid button{min-height:44px;margin:0}.realm-stage .realm-side-content[data-section=identity] select{width:100%;min-height:40px;margin:5px 0}.realm-stage .realm-side-content[data-section=identity] strong{overflow-wrap:anywhere}

.realm-town-life{border-color:#b09a68}.realm-town-life>strong{display:block;font-size:18px}.realm-town-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;padding:8px 0;border-top:1px solid #93856c55}.realm-town-offer>small{grid-column:1;grid-row:2}.realm-town-offer button{grid-column:2;grid-row:1/3;min-width:70px;min-height:44px;margin:0;white-space:normal}

/* A brief, screen-space location announcement. Independent of camera zoom. */
#realm-location-title{position:absolute;z-index:2;left:12px;top:12px;width:max-content;max-width:calc(100% - 24px);box-sizing:border-box;opacity:0;pointer-events:none;padding:5px 10px 7px;border-radius:4px;background:linear-gradient(90deg,#101d22c4,#101d2240);color:#fff3cd;text-shadow:0 2px 3px #081218,0 0 9px #081218;overflow-wrap:anywhere;text-align:left}
#realm-location-title small{display:block;color:#ead9ab;font:600 11px/1.3 system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase}
#realm-location-title small[hidden]{display:none}
#realm-location-title strong{display:block;font:bold clamp(17px,2.1vw,29px)/1.12 Georgia,serif}
#realm-location-title.realm-location-centered{transform:translateX(-50%);text-align:center;background:#101d22b8}
#realm-location-title.realm-location-show{animation:realm-location-fade 4.3s ease-in-out both}
@keyframes realm-location-fade{0%,100%{opacity:0}8%,79%{opacity:1}}
@keyframes realm-location-static{0%,99%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){#realm-location-title.realm-location-show{animation-name:realm-location-static;animation-timing-function:steps(1,end)}}

/* Selection is independent of movement; range feedback belongs to the target card. */
#realm-target[data-kind="mob"] .realm-target-range{flex:1 1 100%;font-size:11px;color:#f3d29c;line-height:1.25}
#realm-target[data-kind="mob"] .realm-target-range[data-in-range="true"]{color:#9fe5ae}
#realm-target[data-kind="mob"] progress{max-width:none;height:7px}
.realm-stage.realm-compact #realm-target[data-kind="mob"]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;max-height:82px}
.realm-stage.realm-compact #realm-target[data-kind="mob"] :is(strong,progress,.realm-target-range){grid-column:1}
.realm-stage.realm-compact #realm-target[data-kind="mob"] .realm-target-attack{grid-column:2;grid-row:1/4;width:auto;align-self:stretch}
.realm-stage.realm-compact #realm-target[data-kind="mob"] .realm-target-ability{display:none}

/* Enemy family and real server cast state; vital information remains in reduced-motion mode. */
#realm-target[data-kind="mob"] .realm-enemy-info{flex:1 1 100%;font-size:11px;line-height:1.25;color:#c8d5e2}
#realm-target .realm-enemy-info[data-casting="true"]{color:#e8b7ff;font-weight:700}
.realm-stage.realm-compact #realm-target[data-kind="mob"] .realm-enemy-info{grid-column:1}
.realm-stage.realm-compact #realm-target[data-kind="mob"] .realm-target-attack{grid-row:1/5}
.realm-stage.realm-compact #realm-target[data-kind="mob"]{max-height:98px}

/* Padded paperdoll canvas keeps long weapons and offhands inside the preview. */
.realm-doll-sprite{width:min(100%,176px);aspect-ratio:1;image-rendering:pixelated}
