:root{--bg:#111e24;--panel:#1a2b31;--line:#35444a;--gold:#e1c08a;--muted:#a6b4b7;--ink:#f3e9d3}body{background:radial-gradient(ellipse at 50% 0,#2b4148,transparent 65%),var(--bg)}header{max-width:1440px;padding:20px 30px}main{max-width:1320px;padding:0 28px}.intro{display:block;text-align:center;min-height:0;padding:35px 0 20px}.intro h1{font-size:62px;margin:5px}.playing .intro{display:none}#creation{max-width:690px}.race{text-align:center;background:linear-gradient(#314a50,#1d3039)}.race:before{content:'♜';display:block;font-size:46px;margin-bottom:8px;color:#98c9c3;text-shadow:0 6px 0 #0c1e2a}.race:nth-child(2):before{content:'♝';color:#d7a082}.race:nth-child(3):before{content:'❦';color:#b3c68c}.race:nth-child(4):before{content:'♞';color:#d1bd89}.race small{font-size:9px}.hero-bar{gap:16px;padding:20px 0;margin:0}.portrait{font-size:34px;color:#b9ddd0;background:linear-gradient(140deg,#42686a,#21353b);width:52px;height:58px;display:grid;place-items:center;border:1px solid #7d947c;border-radius:5px}.identity p{font-size:9px;color:var(--muted);margin:0 0 3px}.identity h2{font-size:27px}.level{padding:0 8px;border:0}.level strong{font:24px 'DM Sans',sans-serif}.level small{font-size:8px;letter-spacing:2px}.vitals{flex:none;width:260px;max-width:32%;margin-left:12px}.vitals label{font-size:9px;margin:2px 0}progress{display:block;height:5px;margin:3px 0 7px}#attributes{margin-left:auto;font-size:11px}.region-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding-bottom:8px}.region-tabs button{flex:1;background:#172931;border-color:transparent;font-size:11px;padding:12px 8px;color:var(--muted)}.region-tabs button.active{color:var(--gold);border-bottom:2px solid var(--gold);background:#293c40}.world-shell{position:relative;width:100%;overflow:hidden;border:1px solid #718174;border-radius:5px;margin-top:12px;box-shadow:0 15px 60px #0005;background:#7d927c}#world{display:block;width:100%;aspect-ratio:5/3;cursor:crosshair;touch-action:manipulation}.location{position:absolute;left:24px;top:22px;pointer-events:none;text-shadow:0 2px 5px #163442}.location .eyebrow{color:#f3dfaf;margin-bottom:8px}.location h2{font-size:34px;color:#fff2d1;margin:0 0 6px}.location span{font-size:10px;color:#f3e6c7}.compass{position:absolute;right:26px;top:22px;text-align:center;font-size:29px;color:#f6e4b7;text-shadow:0 2px 4px #183c39}.compass:first-line{font-size:10px}.world-bottom{position:absolute;bottom:18px;left:20px;right:20px;display:flex;align-items:center;gap:10px}.world-bottom button{font-size:11px;box-shadow:0 3px 15px #0003}.world-bottom span{margin-left:auto;font-size:11px;background:#1a303add;padding:10px 14px;border-radius:4px}#world-toast{position:absolute;bottom:88px;left:50%;transform:translateX(-50%);background:#11252ee8;border:1px solid #d1b98166;color:#f8dfab;border-radius:5px;padding:12px 24px;text-align:center;font-size:13px;pointer-events:none;transition:opacity .2s;opacity:0}#world-toast.visible{opacity:1}.action-dock{display:flex;justify-content:center;align-items:center;gap:38px;background:linear-gradient(#23373e,#172a33);border:1px solid #4d5b5b;border-top:0;border-radius:0 0 8px 8px;padding:13px}.actions{display:flex;flex-wrap:nowrap;gap:7px}.actions button{position:relative;width:78px;height:71px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(140deg,#40565c,#213740);padding:8px 3px;border-color:#78816b}.actions button b{font-size:28px;font-weight:400;line-height:32px;color:#ecd19a}.actions button span{font-size:9px}.actions kbd{position:absolute;left:5px;top:3px;font:10px 'DM Sans',sans-serif;color:#e3c486}.services{display:flex;gap:7px;border-left:1px solid #5f6d66;padding-left:30px}.services button{font-size:23px;background:#1a2e35;width:65px;padding:8px 3px}.services span{display:block;font-size:10px}.underbar{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:13px 3px;gap:15px}.journal,.save-panel{background:none;border:0;border-top:1px solid #35484d;padding:12px 0;font-size:11px;color:var(--muted);margin:0}summary{cursor:pointer;color:#b9c8c8}#quest-story{max-width:700px;line-height:1.6}#log{max-height:160px;font-size:11px;line-height:1.5}#log p{margin:8px 0;padding:0;border:0}.save-tools{margin:14px 0;flex-wrap:wrap}.save-tools button,.import{font-size:11px}#save-indicator{font-size:9px;color:#8bbaab;margin-left:12px}#notice{color:#f5b69a;font-size:12px}#notice:empty{display:none}footer{max-width:1320px;padding:18px 28px;margin:0 auto;color:#7a969b;font-size:9px}canvas:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:800px){main{padding:0 12px}header{padding:18px 15px}.hero-bar{flex-wrap:wrap;gap:10px}.identity h2{font-size:24px}.vitals{flex:1;max-width:none;margin:0}#attributes{width:100%;text-align:right}.action-dock{gap:12px;padding:10px 5px}.services{padding-left:12px}.services button{width:46px}.actions button{width:62px}.location{left:15px;top:15px}.location h2{font-size:26px}.world-bottom{left:12px;right:12px}.underbar{flex-wrap:wrap;gap:5px 12px}.region-tabs button{font-size:10px}}
@media(max-width:520px){.brand span{font-size:10px;letter-spacing:1px}nav{font-size:10px}.portrait{display:none}.hero-bar{padding:14px 0}.identity{max-width:42%}.identity p{font-size:8px}.identity h2{font-size:21px}.vitals{min-width:120px}.level{padding:0}#attributes{font-size:10px}.region-tabs{gap:0}.region-tabs button{padding:10px 3px;font-size:9px}#world{min-height:330px;aspect-ratio:5/4}.location h2{font-size:21px}.location .eyebrow{font-size:7px}.location span{font-size:8px}.compass{font-size:22px}.world-bottom{gap:5px;bottom:10px}.world-bottom button{padding:8px;font-size:10px}.world-bottom span{font-size:9px;padding:7px}.action-dock{flex-wrap:wrap;gap:10px}.actions{width:100%;justify-content:center;gap:5px}.actions button{width:60px;height:60px}.services{border-left:0;padding:0}.services button{width:75px;font-size:17px;padding:5px}.services span{display:inline;margin-left:5px}#world-toast{font-size:11px;padding:8px 12px;width:80%;bottom:68px}.underbar span{font-size:9px}footer span{display:none}}
#world{height:min(60vh,640px);min-height:360px;aspect-ratio:auto}@media(max-width:520px){#world{height:330px;min-height:330px}}
dialog{width:min(440px,calc(100vw - 32px));padding:32px;background:#192e36;color:var(--ink);border:1px solid #798878;border-radius:10px;box-shadow:0 24px 100px #0009}dialog::backdrop{background:#061019ba;backdrop-filter:blur(5px)}dialog h2{margin:0 0 24px}.dialog-close{position:absolute;right:10px;top:8px;padding:3px 10px;border:0;background:none;font-size:24px}.provider-link{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;background:#2b4650;border:1px solid #687b7f;border-radius:5px;margin:12px 0;font-size:13px}.provider-link:hover{border-color:var(--gold);background:#3c5861}.provider-note{font-size:11px;line-height:1.7;color:var(--muted);margin:20px 0}.guest-link{width:100%;font-size:12px;background:transparent;color:var(--muted)}

.atlas{margin:12px 0;background:#1b3036;border:1px solid #63746b;border-radius:6px;overflow:hidden}.atlas summary{padding:12px 16px;font-size:13px}.atlas summary span{float:right;color:#ddc793;font-size:11px}.atlas-land{position:relative;min-height:220px}.atlas-land svg{display:block;width:100%;height:260px}.map-place{position:absolute;transform:translate(-50%,-50%);padding:10px 15px;background:#1b3038eb;border:1px solid #91a190;border-radius:6px;color:#f4e5c4;font-size:15px;text-align:center;min-width:185px}.map-place small{display:block;font-size:10px;margin-top:5px;color:#b9cbc4}.map-place.current{border:2px solid #ffe0a0;box-shadow:0 0 20px #ffe0a044}.map-place.current:before{content:'● You are here';display:block;font-size:9px;color:#ffdf9a;margin-bottom:5px}.map-place.locked{opacity:.65}.olympus{left:22%;top:25%}.labyrinth{left:77%;top:25%}.groves{left:22%;top:73%}.delphi{left:77%;top:73%}#crossings{display:flex;gap:8px;padding:10px;flex-wrap:wrap}#crossings button{font-size:11px;flex:1}@media(max-width:520px){.map-place{min-width:0;width:43%;font-size:12px;padding:8px 4px}.map-place small{font-size:8px}.atlas-land svg{height:240px}.atlas summary span{font-size:9px}}

.minimap-frame{position:absolute;right:16px;top:16px;width:174px;padding:5px;background:#152b33ed;border:1px solid #d4c18d;border-radius:6px;box-shadow:0 5px 18px #0004}.minimap-frame canvas{width:100%;height:auto;display:block;aspect-ratio:3/2}.minimap-frame span{display:block;font-size:10px;color:#f0dcae;padding:4px}.minimap-frame kbd{margin-left:20px;color:#f5e4bf}.minimap-frame:hover{border-color:#ffdf93}.world-shell .location h2{font-size:28px}#area-map{width:min(1100px,94vw);max-height:94vh;padding:20px;overflow:auto}#area-map .map-heading{display:flex;justify-content:space-between;align-items:flex-start}#area-map h2{margin:0 0 14px;font-size:25px}#area-map .eyebrow{margin:0 0 5px}#close-area-map{font-size:23px;padding:3px 12px}#area-map-canvas{display:block;width:100%;height:auto;max-height:66vh;object-fit:contain;cursor:crosshair;border:1px solid #6e8174;aspect-ratio:3/2}.map-legend{display:flex;gap:22px;flex-wrap:wrap;font-size:11px;margin:12px 0}.map-legend span:first-child{color:#c1ffde}.map-legend span:nth-child(2){color:#ff987f}.map-legend span:nth-child(3){color:#ffe0a0}.map-instructions{font-size:11px;color:#b5c9bf;margin:8px 0 0}@media(max-width:800px){.minimap-frame{width:130px;right:10px;top:10px}.world-shell .location h2{font-size:24px}}@media(max-width:520px){.minimap-frame{width:105px;padding:3px}.minimap-frame span{font-size:8px}.minimap-frame kbd{margin-left:5px}.world-shell .location{max-width:60%}.world-shell .location h2{font-size:20px}#area-map{padding:12px}#area-map h2{font-size:20px}.map-legend{gap:8px;font-size:10px}}

#area-map-canvas{width:min(100%,99vh);max-height:none;margin:0 auto}

#area-map-canvas{border:0;outline:1px solid #6e8174}
.map-legend span:nth-child(3){color:#b8d29b}.map-legend span:nth-child(4){color:#ffe0a0}

.zoom-controls{position:absolute;right:16px;top:165px;display:flex;background:#12282ee8;border:1px solid #b5a47f;border-radius:5px;overflow:hidden}.zoom-controls button{min-width:34px;padding:7px 9px;border:0;border-radius:0;background:transparent;font-size:15px}.zoom-controls #zoom-reset{font-size:10px;min-width:48px}@media(max-width:800px){.zoom-controls{right:10px;top:130px}}@media(max-width:520px){.zoom-controls{top:110px}.zoom-controls button{min-width:30px;padding:6px}.zoom-controls #zoom-reset{min-width:40px}}

/* Compact player meters share the upper map edge with the minimap. */
.world-shell .map-vitals{position:absolute;top:16px;right:202px;width:156px;min-width:0;max-width:none;margin:0;padding:10px 12px;background:#152b33ed;border:1px solid #839684;border-radius:6px;box-shadow:0 5px 18px #0004;pointer-events:none}
.map-vitals label{font-size:10px;font-variant-numeric:tabular-nums;line-height:1.3;margin:0 0 5px;color:#e5f2e9}
.map-vitals progress{height:7px;margin:0 0 9px}
.map-vitals progress:last-child{margin-bottom:0}
.map-vitals #xp-label{color:#f0dcae}

@media(max-width:800px){.world-shell .map-vitals{top:10px;right:150px;width:140px;padding:9px 10px}.world-shell .location{max-width:calc(100% - 315px)}.world-shell .location h2{font-size:20px}}
@media(max-width:620px){.world-shell .location{top:100px;max-width:calc(100% - 170px)}.world-shell .location .eyebrow{display:none}.world-shell .location span{display:none}}
@media(max-width:520px){.world-shell .map-vitals{right:125px;width:132px}.world-shell .location h2{font-size:18px}}

.map-place{cursor:pointer;font-family:inherit}
.map-place:hover,.map-place:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px;background:#304a50}
#area-map[data-preview="true"] .map-live-legend{display:none}
#area-map[data-preview="true"] canvas{cursor:default}

.update-notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:30;box-sizing:border-box;width:min(640px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #e5cc8c;border-radius:10px;background:#20353bf5;color:#fff0cb;box-shadow:0 4px 24px #0008}
.update-notice[hidden]{display:none}
.update-notice p{margin:4px 0 0;font-size:13px}
.update-notice button{flex-shrink:0}
@media(max-width:520px){.update-notice{align-items:stretch;flex-direction:column;gap:8px}}

@media(max-width:520px){.actions button{width:calc((100% - 25px)/6);min-width:0}.actions button span{font-size:8px}}

#combat-actions{flex-wrap:wrap}#combat-actions button{flex:0 0 72px}@media(max-width:800px){#combat-actions button{flex-basis:58px}}@media(max-width:520px){#combat-actions button{flex:0 0 calc((100% - 15px)/4);min-height:64px}}
#combat-step{pointer-events:auto;margin-top:7px;padding:8px 12px;font-size:11px}

@media(max-width:520px){#combat-step{margin-top:4px;min-height:38px}#intent{line-height:1.45}}

/* Keep combat details available to assistive technology without covering the world. */
.combat-accessibility{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;pointer-events:none}
.services #combat-step{margin:0;font-size:11px;min-height:38px}

/* First-person combat keeps the scene clear and controls reachable on touch screens. */
.world-shell:has(#world[data-view="first-person"]) .location,.world-shell:has(#world[data-view="first-person"]) .world-bottom{display:none}
#world[data-view="first-person"]{touch-action:none;cursor:grab;animation:combat-camera-in .25s ease-out}
#world[data-view="first-person"]:active{cursor:grabbing}
#first-person-controls{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:5px}
#first-person-controls[hidden]{display:none}
#first-person-controls button{width:40px;min-height:40px;padding:4px;background:#183039dd;border:1px solid #d0b47c;font-size:19px}
.services #combat-view{font-size:11px;width:80px;min-height:38px}
.services{flex-wrap:wrap;justify-content:center}
@keyframes combat-camera-in{from{opacity:.3}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#world[data-view="first-person"]{animation:none}}

#combat-camera-help{font-size:11px;color:#c8d3c7;text-align:center;margin:8px 0}

.world-shell:has(#world[data-view="first-person"]) .map-vitals,.world-shell:has(#world[data-view="first-person"]) .zoom-controls{display:none}
.world-shell:has(#world[data-view="first-person"]) .minimap-frame{width:82px;top:10px;right:10px}
.world-shell:has(#world[data-view="first-person"]) .minimap-frame span{display:none}

/* Combat outcomes are brief text, never an opaque notification over the fight. */
.world-shell:has(#battle:not([hidden])) #world-toast{display:none}
#combat-text{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.combat-float{position:absolute;font:700 22px 'DM Sans',sans-serif;white-space:nowrap;color:#fff4d9;text-shadow:0 2px 2px #000,1px 0 2px #000,-1px 0 2px #000;pointer-events:none;line-height:1.1}
.combat-float.critical{font-size:26px;color:#ffdb66}
.combat-float.incoming{color:#ff8b87}.combat-float.healing{color:#91ecc0}
.combat-float.evade,.combat-float.guard{color:#9cddff;font-size:19px}.combat-float.reward{color:#c2e8b2;font-size:18px}
@media(max-width:520px){.combat-float{font-size:18px}.combat-float.critical{font-size:21px}.combat-float.evade,.combat-float.guard{font-size:17px}}

/* A stable personal health meter at the bottom, clear of movement controls. */
#player-health{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);width:min(280px,70%);pointer-events:none;text-align:center}
#player-health[hidden]{display:none}
#player-health label{display:block;color:#fff4de;font-size:12px;font-weight:700;text-shadow:0 1px 3px #000;margin:0 0 3px}
#player-health progress{appearance:none;display:block;width:100%;height:12px;margin:0;border:1px solid #d1dfb8;border-radius:6px;overflow:hidden;background:#172b2d}
#player-health progress::-webkit-progress-bar{background:#172b2d}
#player-health progress::-webkit-progress-value{background:#83d3a1}
#player-health progress::-moz-progress-bar{background:#83d3a1}
#player-health.low-health progress::-webkit-progress-value{background:#ef887a}
#player-health.low-health progress::-moz-progress-bar{background:#ef887a}
#first-person-controls{bottom:52px}
.world-shell:has(#player-health:not([hidden])) .world-bottom{bottom:52px}

.gear-comparison{margin:14px 0;border-top:1px solid var(--line);padding-top:10px}.gear-comparison h4{margin:0 0 8px}.gear-comparison table{width:100%;border-collapse:collapse;font-size:12px}.gear-comparison th,.gear-comparison td{padding:6px 4px;text-align:right}.gear-comparison th:first-child{text-align:left}.gear-comparison tr+tr{border-top:1px solid #35444a}.gear-comparison small{display:block;line-height:1.5;color:var(--muted);margin-top:7px}.gear-comparison p{font-size:12px;line-height:1.5}

#movement-pad{display:none;position:absolute;right:12px;bottom:12px;width:88px;height:88px;touch-action:none;user-select:none;-webkit-user-select:none;z-index:5;align-items:center;justify-content:center;filter:drop-shadow(0 4px 3px #0008)}
#movement-pad svg{width:100%;height:100%;pointer-events:none;overflow:visible}.dpad-base{fill:#0d171e;stroke:#0b1419;stroke-width:5;stroke-linejoin:round}.dpad-face{fill:url(#dpad-face);stroke:#778489;stroke-width:1.5;stroke-linejoin:round}.dpad-edge{fill:none;stroke:#b2bab633;stroke-width:2;stroke-linecap:round}.dpad-center{fill:#172129;stroke:#637279;stroke-width:1}.dpad-up,.dpad-right,.dpad-down,.dpad-left{fill:#b9c5c5;stroke:#111e26;stroke-width:1;stroke-linejoin:round}
#movement-pad[data-vertical="-1"] .dpad-up,#movement-pad[data-vertical="1"] .dpad-down,#movement-pad[data-horizontal="-1"] .dpad-left,#movement-pad[data-horizontal="1"] .dpad-right{fill:#ffe0a0;stroke:#ffe0a0;filter:drop-shadow(0 0 3px #dfbd79)}
@media(max-width:800px),(pointer:coarse){#movement-pad{display:flex}.world-bottom{right:126px;flex-wrap:wrap}.world-bottom span{display:none}#player-health{left:12px;transform:none;width:calc(100% - 140px);max-width:280px}#first-person-controls{left:12px;transform:none;bottom:52px}#first-person-controls [data-fp-step]{display:none}}

#graphics-setting{position:absolute;top:10px;left:10px;z-index:4;background:#152b33dd;padding:5px 8px;border-radius:4px;font-size:10px;display:none}#graphics-mode{display:inline;width:auto;padding:4px;margin:0 0 0 5px;font-size:10px}.playing #graphics-setting{display:block}

.dpad-nw,.dpad-ne,.dpad-sw,.dpad-se{fill:#9facaf;stroke:#14212a;stroke-width:2;stroke-linejoin:round}
#movement-pad[data-horizontal="-1"][data-vertical="-1"] .dpad-nw,#movement-pad[data-horizontal="1"][data-vertical="-1"] .dpad-ne,#movement-pad[data-horizontal="-1"][data-vertical="1"] .dpad-sw,#movement-pad[data-horizontal="1"][data-vertical="1"] .dpad-se{fill:#ffe0a0;stroke:#ffe0a0;filter:drop-shadow(0 0 3px #dfbd79)}

/* Full-window game HUD; menus remain native dialogs above the play surface. */
body.playing{overflow:hidden}.playing .world-shell{position:fixed;inset:0;width:100%;height:100dvh;margin:0;border:0;border-radius:0;z-index:10;--dock-height:92px;--safe-bottom:env(safe-area-inset-bottom,0px)}
.playing #world{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100vw,166.667dvh);height:max(100dvh,60vw);min-height:0;aspect-ratio:5/3}
.playing .action-dock{position:absolute;bottom:0;left:0;right:0;min-height:var(--dock-height);padding:10px 12px calc(10px + var(--safe-bottom));border:0;border-radius:0;gap:10px;background:linear-gradient(transparent,#0c1d29ee 35%);z-index:6;align-items:end}
.playing .actions{width:auto;display:flex;gap:5px;flex-wrap:nowrap}.playing .actions button{width:66px;height:64px;flex-shrink:0}.playing .services{padding:0;border:0;gap:5px}.playing .services button{width:auto;max-width:90px;min-height:44px;font-size:11px}
.playing #player-health{bottom:calc(var(--dock-height) + var(--safe-bottom) + 10px);left:50%;transform:translateX(-50%);width:min(280px,45vw)}
.playing #movement-pad{bottom:calc(var(--dock-height) + var(--safe-bottom) + 16px);right:max(14px,env(safe-area-inset-right));}
.playing #first-person-controls{bottom:calc(var(--dock-height) + var(--safe-bottom) + 55px);left:16px;transform:none}.playing #first-person-controls [data-fp-step]{display:none}
.playing .world-bottom,.playing .world-shell:has(#player-health:not([hidden])) .world-bottom{bottom:calc(var(--dock-height) + var(--safe-bottom) + 14px);left:16px;right:120px}
#play-tools{position:absolute;left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));display:flex;gap:5px;z-index:6}#play-tools button{min-height:40px;padding:8px 10px;font-size:11px;background:#122b35dd}#play-tools kbd{display:none}
.playing #graphics-setting{top:calc(65px + env(safe-area-inset-top,0px));left:12px}.playing .location{top:115px;left:16px;max-width:60%}.playing .location h2{font-size:22px}.playing .location .eyebrow,.playing .location span{display:none}
.playing #open-area-map{right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:100px}.playing .map-vitals{top:126px;right:12px;width:145px}.playing .zoom-controls{top:165px;bottom:auto}
.playing #combat-camera-help{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--dock-height) + 48px);font-size:10px;max-width:45%;pointer-events:none}.playing #world-toast{bottom:calc(var(--dock-height) + 130px)}
.playing #notice{position:absolute;top:105px;left:16px;right:130px;background:#182a32e8;z-index:7}#play-menu{z-index:30}#play-menu header{padding:10px 0;flex-wrap:wrap;gap:12px}#play-menu .hero-bar{display:flex}#play-menu .services,.menu-services{display:flex;gap:8px;margin-top:16px}#play-menu .atlas{margin-top:12px}
@media(max-width:600px){.playing .world-shell{--dock-height:146px}.playing .action-dock{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px;padding:8px 8px calc(8px + var(--safe-bottom))}.playing .actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,360px);gap:4px}.playing .actions button{width:100%;height:52px;min-height:44px}.playing .actions button b{font-size:22px;line-height:23px}.playing .actions button span{font-size:9px}.playing .services{position:absolute;left:12px;bottom:calc(var(--dock-height) + 52px);flex-direction:column}.playing .services button{min-height:36px;padding:5px 8px}.playing #player-health{left:12px;transform:none;width:calc(100% - 124px)}.playing #first-person-controls{bottom:calc(var(--dock-height) + 137px)}#play-tools{right:103px;flex-wrap:wrap;gap:4px}#play-tools button{font-size:10px;padding:7px 8px;min-height:36px}.playing #open-area-map{width:82px}.playing #graphics-setting{top:calc(100px + env(safe-area-inset-top,0px))}.playing #combat-camera-help{display:none}.playing .location{top:145px}.playing .map-vitals{top:90px;width:105px;padding:6px}.playing .zoom-controls{top:145px}}
@media(max-height:500px) and (min-width:601px){.playing .world-shell{--dock-height:74px}.playing .actions button{height:54px;width:58px}.playing #combat-camera-help{display:none}.playing #first-person-controls{bottom:calc(var(--dock-height) + 65px)}#play-tools button{min-height:34px}.playing .location{top:65px}.playing .map-vitals{top:100px}.playing .zoom-controls{top:145px}}

/* Post-combat receipt: no modal, focus capture, or action-button overlap. */
#loot-notice{display:block;position:absolute;right:16px;bottom:calc(var(--dock-height,92px) + var(--safe-bottom,0px) + 126px);width:min(270px,calc(100% - 32px));box-sizing:border-box;padding:12px 14px;background:#142930ed;border:1px solid #b7a47680;border-radius:7px;box-shadow:0 4px 18px #0003;color:#eee5cf;pointer-events:none;z-index:5;font-size:12px;line-height:1.5}
#loot-notice strong{display:block;color:#dac28f;font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px}#loot-notice ul{list-style:none;margin:0;padding:0;max-height:180px;overflow:auto;pointer-events:auto}#loot-notice li{overflow-wrap:anywhere;padding:2px 0}#loot-notice [data-kind=uncommon]{color:#a1d6a5}#loot-notice [data-kind=rare]{color:#95c5ed}#loot-notice [data-kind=junk],#loot-notice [data-kind=empty]{color:#b6bfba}#loot-notice [data-kind=gold]{color:#e8c578}#loot-notice [data-kind=silver]{color:#d9e2e4}#loot-notice [data-kind=copper]{color:#dfb091}#loot-notice [data-kind=warning]{color:#edba90}
@media(max-width:600px){#loot-notice{right:12px;width:215px;font-size:11px;padding:9px 11px}#loot-notice ul{max-height:130px}}
@media(max-height:500px) and (min-width:601px){#loot-notice{bottom:calc(var(--dock-height,74px) + 18px);right:120px;width:250px}#loot-notice ul{max-height:90px}}

@media(max-width:600px){.playing .world-shell[data-extended-actions="true"]{--dock-height:202px}.playing .world-shell[data-extended-actions="true"] .actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
