#gameHud{position:fixed;inset:0;z-index:2;pointer-events:none}#gameHud button{pointer-events:auto;color:#f0dfb8;background:#13282deb;border:1px solid #c2a66b88;border-radius:4px;padding:7px 13px}body:not(.exploring) #gameHud{display:none}.unit-frame{position:absolute;top:108px;width:240px;padding:12px 15px;background:#0c1b21d9;border:1px solid #ab9a6a88;border-radius:5px;box-shadow:0 4px 20px #0005}.player-frame{left:3%}.target-frame{left:calc(50% - 120px)}.unit-frame b{display:block;font-size:14px}.unit-frame progress{display:block;height:12px;accent-color:#79ac5b;margin:8px 0 4px}.unit-frame span{font-size:12px}.unit-frame small{display:block;color:#a9cad6;font-size:11px}.target-frame progress{accent-color:#c9644d}.target-frame button{margin-top:8px}.quest-panel{position:absolute;right:3%;top:115px;width:255px;padding:16px;background:#0c1b21c9;border-left:2px solid #bc9b5e}.quest-panel b{font-size:13px}.quest-panel p{font-size:12px;margin:3px 0 14px}.quest-panel .eyebrow{font-size:11px}.game-bottom{position:absolute;bottom:53px;left:50%;transform:translateX(-50%);width:min(850px,90vw);text-align:center}.game-bottom p{margin:6px 0 0;font-size:11px;color:#e4e8dd;text-shadow:0 1px 4px #000}#skillBar{display:flex;gap:6px;justify-content:center}#skillBar .skill{font-size:12px;min-height:52px;max-width:120px;flex:1;background:linear-gradient(#304047ee,#14282cee);box-shadow:0 3px 12px #0009}#skillBar .skill:hover{border-color:#ffe1a0;filter:brightness(1.2)}#combatLog{font-size:12px;line-height:1.5;margin-bottom:12px;text-shadow:0 2px 4px #000;color:#f6ddb1;min-height:36px}#combatLog div:nth-child(n+4){opacity:.55}#npcDialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,90vw);max-height:70vh;overflow-y:auto;pointer-events:auto;background:#102329f5;border:1px solid #d5b375;box-shadow:0 12px 60px #000b;padding:30px;border-radius:7px}#npcDialog h2{font-size:24px;color:#ebd49f}#dialogText{white-space:pre-line;line-height:1.65;font-size:14px;color:#d7dfd8}#dialogClose{position:absolute;right:10px;top:10px;padding:0 8px!important;font-size:23px}#dialogOptions{display:grid;gap:8px}#dialogOptions button{text-align:left}#acceptQuest{margin-top:18px;background:#d0b178!important;color:#14242a!important;font-weight:600}#entityLabels{position:absolute;inset:0;overflow:hidden;pointer-events:none}.entity-label{position:absolute;top:0;left:0;border:0!important;padding:2px 5px!important;background:#08212b75!important;font-size:11px;color:#b8eece!important;text-shadow:0 1px 3px black;white-space:nowrap}.entity-label.hostile{color:#ffc3ae!important}.entity-label.selected{outline:1px solid #f0d699}.entity-label:hover{background:#0b2539e0!important}@media(max-width:800px){.unit-frame{top:100px;width:180px}.target-frame{left:auto;right:3%}.quest-panel{top:235px;right:3%;width:205px;padding:10px}.game-bottom{bottom:48px}.game-bottom p{font-size:9px}#skillBar .skill{font-size:10px;padding:5px;min-height:45px}}

#skillBar .skill{position:relative;flex:0 0 56px;min-height:56px;max-width:64px;padding:5px} .skill-icon{display:block;margin:auto;background-repeat:no-repeat} .skill-key{position:absolute;left:5px;top:2px;font-weight:bold;font-size:12px;color:white;text-shadow:0 1px 3px black} #skillBar .skill:disabled{filter:brightness(.6)} #skillBar .skill[data-cooldown]:not([data-cooldown=""])::after{content:attr(data-cooldown);position:absolute;inset:0;display:grid;place-items:center;background:#05121b99;font-size:19px;color:white;font-weight:bold}

#soundToggle{position:absolute;right:3%;bottom:60px;font-size:12px;padding:6px 12px}
.game-menu{position:absolute;right:3%;bottom:105px;display:flex;gap:7px}.game-menu button{font-size:12px}.game-window{position:absolute;right:3%;top:100px;width:min(530px,94vw);max-height:calc(100vh - 225px);overflow-y:auto;pointer-events:auto;background:#0d2028f5;border:1px solid #c2a66b;padding:23px;border-radius:6px;box-shadow:0 16px 70px #000c}.game-window h2{font-size:24px;color:#ebd49f}.game-window input{margin-bottom:15px}.window-close{position:absolute;right:10px;top:10px;font-size:20px;padding:0 9px!important}.skill-book-count,#inventoryStatus{font-size:12px;color:#afc6c9}.skill-book-row{display:flow-root;padding:12px 0;border-top:1px solid #aac4bd25}.skill-book-row>.skill-icon{float:left;margin:4px 12px 8px 0}.skill-book-row b{font-size:13px}.skill-book-row p{font-size:12px;line-height:1.6;white-space:pre-line;color:#bed0cc;margin:5px 0;max-height:110px;overflow-y:auto}.skill-book-row small{font-size:11px;color:#dcc899}.skill-book-row>div{display:flex;gap:7px;margin-top:9px}.skill-book-row button{font-size:12px;padding:4px 10px!important}.skill-pages{display:flex;justify-content:center;align-items:center;gap:10px;margin:4px}.skill-pages button{padding:0 10px!important;line-height:1.4;font-size:18px}.skill-pages span{font-size:11px;color:#ddcfab}.inventory-heading{font-size:14px;color:#ebd49f;margin:15px 0 8px}.inventory-row{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #aac4bd25;font-size:12px}.inventory-row .item-description{flex:1;min-width:0}.inventory-row b,.inventory-row small{display:block}.inventory-row small{font-size:10px;color:#adbfbd}.inventory-row button{font-size:11px;padding:5px 8px!important}.inventory-row .skill-icon{margin:0;flex-shrink:0}@media(max-width:800px){.game-window{top:94px;max-height:calc(100vh - 220px)}.game-menu{bottom:125px}.game-bottom p{max-width:75vw;margin:auto}}

.quest-goal{display:block;text-align:left;width:100%;padding:5px 0;border:0;background:transparent;color:inherit;font-size:12px;cursor:pointer}.quest-goal:disabled{opacity:.55;cursor:default}
.skill-fallback{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:9px;line-height:1.2;max-height:34px;margin-top:8px;overflow-wrap:anywhere}
/* PC-style presentation: original icon atlases, compact meters and fixed slots. */
body.exploring>header{height:46px;padding:6px 20px;pointer-events:none;border:0;background:none}body.exploring .brand,body.exploring .build{display:none}body.exploring #menuButton{pointer-events:auto;font-size:11px;padding:3px 9px;opacity:.8}body.exploring>footer{display:none}body.exploring:before{background:linear-gradient(0deg,#02070970,transparent 15%)}
#gameHud{font-family:"Segoe UI",Tahoma,system-ui,sans-serif;color:#e4dfce}#gameHud button{background:linear-gradient(#323637f5,#141a1cf5);border-color:#8d8063;border-radius:2px;text-shadow:0 1px 2px #000;box-shadow:inset 0 1px #d9d4b218,0 1px 3px #0006}#gameHud button:hover:enabled{border-color:#e6c885;background:linear-gradient(#4d4a3d,#272c2c)}#gameHud button:active:enabled{transform:translateY(1px)}#gameHud button:focus-visible{outline:2px solid #eed394;outline-offset:2px}
.unit-frame{top:24px;padding:10px 12px 11px;width:260px;border:1px solid #958567;border-radius:2px;background:linear-gradient(110deg,#131b20f5,#0c1015ca);box-shadow:inset 0 0 0 2px #0006,0 3px 12px #0008}.player-frame{left:22px}.unit-frame b{font-size:13px;line-height:1.5;padding-bottom:4px;color:#f5eedb;text-shadow:0 1px 3px #000}.unit-meter{position:relative;height:19px;margin:4px 0 0;border:1px solid #080b0c;box-shadow:0 0 0 1px #a3936d44;overflow:hidden;background:#070d11}.unit-meter progress{height:100%;margin:0;appearance:none;border:0;border-radius:0}.unit-meter progress::-webkit-progress-bar{background:#080e12}.health-meter progress::-webkit-progress-value{background:linear-gradient(#a9b975,#587b36 48%,#3e582b 52%,#698641)}.resource-meter progress::-webkit-progress-value{background:linear-gradient(#7aafd2,#3b6e9d 48%,#24486f 52%,#365f86)}.unit-meter span,.unit-meter small{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;color:#fff;text-shadow:0 1px 2px #000;line-height:1}.target-frame{top:24px;left:calc(50% - 130px)}.target-frame progress{height:10px;margin:4px 0}.target-frame span,.target-frame small{font-size:10px}.target-frame button{font-size:11px;padding:3px 9px!important;margin-right:5px}.location-frame{position:absolute;right:22px;top:58px;max-width:280px;text-align:right;color:#f3e2af;font-size:11px;text-shadow:0 2px 3px #000;background:#10171c9c;border-bottom:1px solid #a38d60;padding:5px 10px}
.quest-panel{right:22px;top:110px;width:250px;padding:12px 14px;border:0;border-top:1px solid #a38d6088;background:linear-gradient(90deg,#0d151bb0,#0d151b70);text-shadow:0 1px 2px #000;max-height:48vh;overflow-y:auto;pointer-events:auto;scrollbar-width:thin}.quest-panel .eyebrow{letter-spacing:1px;color:#e5c37e;font-size:12px}.quest-panel b{font-size:12px;color:#f1ddb0}.quest-panel p{font-size:11px}.quest-goal{line-height:1.6}
.game-bottom{bottom:12px;width:auto;max-width:calc(100vw - 30px)}.hotbar-frame{display:flex;align-items:stretch;padding:7px;gap:7px;border:1px solid #9a8968;background:linear-gradient(#41423bf2,#121719f5 22%,#192021f8 80%,#444237f2);box-shadow:inset 0 0 0 2px #090d10bb,0 3px 16px #0009}#skillBar{gap:4px;align-items:stretch}#skillBar .skill{display:block;position:relative;flex:0 0 52px;width:52px;min-height:52px;max-width:52px;padding:3px;border:1px solid #8b8063;border-radius:1px;background:linear-gradient(135deg,#302e27,#101619);box-shadow:inset 0 0 7px #0009,0 0 0 1px #020507}#skillBar .skill-icon{max-width:44px;max-height:44px;pointer-events:none}#skillBar .skill-key{left:3px;top:-2px;z-index:2;font-size:11px;color:#f7f0da;text-shadow:0 1px 2px #000,1px 0 2px #000}.empty-skill{opacity:.6}.empty-skill .skill-key{opacity:.65}#skillBar .skill[data-cooldown]:not([data-cooldown=""])::after{font-size:18px;inset:2px;background:#05090db8;text-shadow:0 1px 3px #000}.skill-pages{flex-direction:column;justify-content:space-between;gap:0;margin:0;min-width:34px}.skill-pages button{width:34px;height:16px;line-height:12px;font-size:15px}.skill-pages span{font-size:10px;white-space:nowrap}.game-bottom .hotbar-hint{font-size:10px;color:#bfbba9;margin-top:5px;white-space:nowrap}
#combatLog{position:absolute;left:24px;bottom:100px;width:min(350px,28vw);font-size:11px;line-height:1.7;text-align:left;max-height:145px;overflow:hidden;mask-image:linear-gradient(transparent,#000 15%);text-shadow:0 1px 3px #000;color:#e8d9b6;min-height:0;opacity:.92}#combatLog div{padding:1px 7px;background:linear-gradient(90deg,#0c141a70,transparent)}.game-menu{right:22px;bottom:18px;gap:4px}.game-menu button{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:48px;padding:5px 8px!important;font-size:10px}.game-menu kbd{font:10px Georgia,serif;color:#d1b87e}.game-menu button[aria-expanded="true"]{border-color:#ead19b;background:#424234}#soundToggle{right:22px;bottom:80px;font-size:10px;padding:3px 7px!important}
.game-window,#npcDialog{border-radius:2px;background:linear-gradient(115deg,#242d30fa,#111a21fa);border:1px solid #a89876;box-shadow:inset 0 0 0 3px #0a101899,0 12px 45px #000b;padding:0 18px 18px;scrollbar-width:thin;scrollbar-color:#7d7563 #131a1d;max-height:calc(100vh - 170px);top:110px;overscroll-behavior:contain}.game-window h2,#npcDialog h2{font-size:17px;color:#eee2c6;margin:0 -18px 13px;padding:10px 44px 10px 18px;border-bottom:1px solid #ad987054;background:linear-gradient(#52534677,#1b232a88);letter-spacing:.3px}.window-handle{cursor:move;touch-action:none;user-select:none}.window-close,#dialogClose{top:8px;right:8px;font-size:18px;line-height:23px;width:25px;height:25px;padding:0!important;color:#ead9b4!important}.game-window label{font-size:11px}.game-window input{height:34px;background:#0d161c;font-size:12px}.game-window button{font-size:11px}.game-window:focus-within{border-color:#d1bb8d}#skillBook{left:24px;right:auto;width:490px}#inventoryWindow{right:22px;width:420px}.skill-book-list{max-height:43vh;overflow-y:auto;padding-right:8px;scrollbar-width:thin}.skill-book-row{padding:10px 0}.skill-book-row p{font-size:11px;max-height:74px;margin:4px 0}.skill-book-row b{font-size:12px;color:#e8d5a8}.skill-book-count,#inventoryStatus{font-size:11px;line-height:1.6;margin:7px 0;color:#c1c6be}.skill-book-row small{font-size:10px}.skill-book-row button{font-size:10px}.inventory-heading{font-size:12px;margin:12px 0 7px;display:flex;align-items:center;gap:10px}.inventory-heading:after{content:"";height:1px;background:#a28c613d;flex:1}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:5px}.inventory-slot{position:relative;aspect-ratio:1;min-height:48px;max-height:58px;padding:3px!important;border-color:#6d6d60!important;background:#0c1419!important;display:grid;place-items:center;box-shadow:inset 0 0 9px #000!important}.inventory-slot[aria-pressed="true"]{border-color:#f1d28d!important;outline:1px solid #baa06c;box-shadow:inset 0 0 12px #dbb85c33!important}.inventory-slot .skill-icon{pointer-events:none}.item-count{position:absolute;right:3px;bottom:0;font-size:10px;color:#fff;text-shadow:0 1px 2px #000}.item-fallback{font-size:9px;line-height:1.2;max-height:36px;overflow:hidden}.inventory-detail{margin-top:16px;padding:12px;border:1px solid #8b805155;background:#0a131b99;min-height:84px;font-size:11px;color:#bac4c0}.inventory-detail>b{display:block;font-size:13px;color:#e8d1a0}.inventory-detail>small{display:block;color:#a5c4c9;margin:4px 0}.inventory-detail p{font-size:11px;line-height:1.6;white-space:pre-line;max-height:130px;overflow:auto}.inventory-actions{display:flex;gap:8px}.inventory-actions button{min-width:80px}#soulBalance{font-size:11px;color:#d1c093;margin:5px 0}
.controls-help{position:absolute;right:22px;bottom:116px;width:340px;padding:16px 20px;pointer-events:auto;background:#111d25f5;border:1px solid #b6a078;box-shadow:0 4px 30px #0009;font-size:12px}.controls-help>b{color:#e6c88c}.controls-help dl{display:grid;grid-template-columns:130px 1fr;gap:8px;margin:12px 0;font-size:11px}.controls-help dt{color:#ecdcb8}.controls-help dd{margin:0;color:#b9c6c8}.controls-help small{font-size:10px;color:#b4ad97}
@media(max-width:1100px){.game-menu{bottom:98px;right:15px}#soundToggle{bottom:157px}.quest-panel{width:215px}.unit-frame{width:225px}.target-frame{left:calc(50% - 112px)}#combatLog{width:260px;bottom:104px}.game-window{max-height:calc(100vh - 210px)}#skillBook{width:445px}#inventoryWindow{width:380px}}
@media(max-width:720px){.player-frame{left:10px}.unit-frame{width:170px;padding:7px;top:12px}.unit-frame b{font-size:11px}.target-frame{left:auto;right:10px}.location-frame{top:112px;right:10px;max-width:180px;font-size:9px}.quest-panel{top:148px;right:10px;width:180px;padding:8px;max-height:27vh}.game-bottom{bottom:8px}.hotbar-frame{padding:5px;gap:4px}#skillBar{gap:3px}#skillBar .skill{flex-basis:36px;width:36px;min-height:40px;max-width:36px;padding:0;overflow:hidden}#skillBar .skill-icon{transform:scale(.78);transform-origin:center;max-width:none;max-height:none;margin-left:-4px;margin-top:-2px}.skill-pages{min-width:26px}.skill-pages button{width:26px}.game-bottom .hotbar-hint{font-size:8px}.game-menu{bottom:92px;gap:3px}.game-menu button{min-width:38px;padding:4px!important}#soundToggle{bottom:146px}#combatLog{left:10px;bottom:94px;max-width:45vw;font-size:9px}.game-window,#skillBook,#inventoryWindow{width:calc(100vw - 20px);left:10px;right:auto;top:145px;max-height:calc(100vh - 240px)}.controls-help{width:min(340px,94vw);right:10px}.location-frame{display:none}body.exploring #menuButton{display:none}}
/* Round 13 stacking: dungeon confirm with loot (52) above pc-hud windows 31..50, cast UIs and nameplates; help with settings (30) above touch pad / cast UIs. */
#dungeonWarning{z-index:52}#controlsHelp{z-index:30}
