@charset "UTF-8";
:root{
  color-scheme:dark;
  --forest:#1b2924;--deep:#111b17;--panel:#223029;--ivory:#f6ecd1;--parchment:#e5c98e;--brass:#ac8950;--line:#a78b595a;--muted:#c1c5b4;--ink:#17231e;--corner:9px;
  --serif:"Palatino Linotype","Book Antiqua",Georgia,serif;--sans:"Segoe UI",Arial,sans-serif;
  --left:max(20px,env(safe-area-inset-left));--right:max(20px,env(safe-area-inset-right));--top:max(20px,env(safe-area-inset-top));--bottom:max(16px,env(safe-area-inset-bottom))
}
*{box-sizing:border-box}
body{margin:0;background:#273026;color:var(--ivory);font:15px/1.45 var(--sans);overflow:hidden}
button,input,select{font:inherit}button{color:inherit;cursor:pointer;text-align:inherit}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid #ffda81;outline-offset:2px}
button:disabled{opacity:.5;cursor:default}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button svg,button img{pointer-events:none}button,nav,canvas{user-select:none}p,h1,h2,h3{margin:0}button img{object-fit:contain;display:block}button kbd{pointer-events:none}
[hidden]{display:none!important}
#stage{position:fixed;inset:0;isolation:isolate;overflow:hidden}
#world{display:block;width:100%;height:100%;background:#354332;touch-action:none;outline:none}
#veil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#151d17a1 0,transparent 20%,transparent 76%,#151b16ad),radial-gradient(ellipse at center,transparent 57%,#181c1938)}
.place,.nav-hud,.character-status,.dock-wrap,.world-actions,#touch-stick{position:absolute}
.place{top:var(--top);left:var(--left);display:flex;align-items:center;gap:12px;color:#f9efd4;text-shadow:0 2px 8px #111c16,0 1px 4px #111c16;pointer-events:none}
.sigil{width:35px;height:42px;color:#e2bc79;filter:drop-shadow(0 1px 3px #172015)}
.realm,.kicker,.quest-strip small{color:var(--parchment);text-transform:uppercase;letter-spacing:.15em;font:650 10px/1.3 var(--sans)}
.place h1{font:500 clamp(25px,2.65vw,42px)/.99 var(--serif);letter-spacing:-.036em}.realm{margin-bottom:4px}
.nav-hud{right:var(--right);top:var(--top);width:190px;display:grid;justify-items:end;gap:14px}
.radar{display:grid;justify-items:center;border:0;padding:0;background:transparent;color:#f6e4b7;filter:drop-shadow(0 3px 5px #151c17b0)}
.radar-dial{display:block;position:relative;width:116px;height:116px;border:2px solid #aa8d56;border-radius:50%;padding:5px;background:conic-gradient(from -20deg,#514531,#b49b67 23%,#514733 43%,#354535 66%,#b09362 88%,#514531)}
.radar-dial:after{content:"";position:absolute;inset:4px;border:1px solid #e4cf9b91;border-radius:50%;box-shadow:inset 0 0 10px 2px #171a13c9;pointer-events:none}
.radar-dial canvas{width:100%;height:100%;display:block;border-radius:50%;background:#334236}
.north{position:absolute;left:50%;top:-4px;transform:translateX(-50%);background:#27332a;color:#f6dea0;padding:0 5px;font:700 10px/12px var(--serif);border:1px solid #9e895b;border-radius:3px}
.radar-caption{font:600 11px var(--sans);letter-spacing:.08em;text-transform:uppercase;display:flex;align-items:center;gap:6px;margin-top:4px}
kbd{min-width:17px;padding:1px 3px;display:inline-grid;place-items:center;border:1px solid #b4a37c75;border-radius:3px;background:#1c261fd1;color:#ded7c1;text-transform:uppercase;letter-spacing:0;font:600 10px/1.15 var(--sans)}
.quest-strip,.character-status,.dock,.world-actions button,.near,.bag-tab,.surface{background:linear-gradient(132deg,#344033f3,#17251ff7 58%,#1e2a23f5);border:1px solid var(--line);border-radius:var(--corner);box-shadow:0 5px 18px #10161058,inset 0 1px #ddd6ab17}
.quest-strip{display:flex;align-items:flex-start;gap:8px;padding:10px 12px 10px 9px;width:100%;border-left:2px solid #cba164;text-align:left}
.quest-strip img{width:25px;height:30px}.quest-strip small,.quest-strip .objective{display:block}.quest-strip small{font-size:8px}.quest-strip .objective{margin-top:4px;font:15px/1.18 var(--serif);color:var(--ivory)}
.character-status{left:var(--left);bottom:var(--bottom);width:218px;padding:8px 12px 11px}
.character-status header,.identity,.gold,.vital,.world-actions,.world-actions button,.near,.dock,.dock button,.panel-head,.close,.destinations button,.help-row{display:flex;align-items:center}
.character-status header{justify-content:space-between;margin:-5px 0 2px}.identity{border:0;padding:0;min-height:44px;background:transparent;gap:7px}.identity b{font:19px var(--serif)}.identity img{width:24px;height:30px}.gold{gap:3px;color:var(--parchment);font-variant-numeric:tabular-nums;font-size:12px}.gold img{width:18px;height:18px}
.vital{display:grid;grid-template-columns:40px 1fr 24px;gap:6px;color:#d7d8c7;font-size:10px;line-height:1.6;font-variant-numeric:tabular-nums}.vital i{height:5px;overflow:hidden;background:#111b16;box-shadow:inset 0 0 0 1px #bcb99230;border-radius:3px}.vital i b{display:block;width:100%;height:100%;border-radius:3px;background:linear-gradient(to right,var(--bar),var(--bright));transition:width .22s}.vital output{text-align:right}.health{--bar:#9f5142;--bright:#d78871}.mana{--bar:#548c8a;--bright:#9bc6bd}.energy{--bar:#9f803f;--bright:#e2bf71}
.dock-wrap{bottom:var(--bottom);left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:8px}.dock{padding:4px 5px;gap:4px;border-radius:10px}.dock button{position:relative;min-width:66px;min-height:58px;justify-content:center;flex-direction:column;gap:1px;padding:2px 8px 4px;background:transparent;border:1px solid transparent;border-radius:5px;font:600 10px/1.2 var(--sans);color:#e5dfca}.dock button img{height:30px;width:30px;filter:drop-shadow(0 1px 1px #101612)}.dock kbd{position:absolute;right:1px;top:1px;min-width:13px;padding:0 2px;font-size:8px;line-height:11px}
.dock button:hover,.dock button[aria-pressed=true],.world-actions button:hover,.near:hover,.quest-strip:hover,.surface button:hover:not(:disabled),.bag-tab:hover{border-color:#ddbe84;background-color:#46513b}
.dock button[aria-pressed=true]{background:#a88b5a25}.near{gap:6px;min-height:44px;padding:5px 11px;font:16px var(--serif)}.near img{width:20px;height:20px}
.world-actions{right:var(--right);bottom:var(--bottom);gap:6px}.world-actions button,.bag-tab{min-height:44px;gap:6px;padding:5px 8px;font:600 11px var(--sans)}
.world-actions img,.bag-tab img{width:23px;height:24px}.world-actions #run-control,#touch-stick{display:none}
#touch-stick{bottom:calc(var(--bottom) + 70px);left:var(--left);width:83px;height:83px;border-radius:50%;border:1px solid #ead8a883;background:radial-gradient(circle,#22352b70 35%,#22332b92 38%,#1b2b2438 67%,#d1bd8a45 69%,#1b2b2470 71%);touch-action:none;user-select:none}
#touch-stick span{position:absolute;left:calc(50% - 16px);top:calc(50% - 16px);width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#d2bd8ba6,#727d638e);border:1px solid #e2cc908f;box-shadow:0 2px 9px #1720187d;pointer-events:none}
.surface{position:absolute;z-index:5;top:50%;right:var(--right);transform:translateY(-50%);width:min(425px,calc(100vw - 34px));max-height:min(78dvh,820px);display:flex;flex-direction:column;color:var(--ivory);overflow:hidden;background:linear-gradient(145deg,#354333 0%,#23352c 22%,#192a24 77%,#18241f 100%);box-shadow:0 14px 52px #0d170f91,inset 0 0 0 3px #f0dc9c08;border:1px solid #ae925e99;border-top:2px solid #c5a370;border-radius:10px}
.surface>header{flex:none}.panel-head{position:relative;gap:8px;min-height:67px;padding:10px 14px 10px 19px;border-bottom:1px solid var(--line);background:linear-gradient(115deg,#b6a26912,transparent 70%)}.panel-head>div{flex:1}.kicker{font-size:9px;margin-bottom:3px}.panel-head h2{font:500 clamp(22px,2vw,31px)/1.03 var(--serif);letter-spacing:-.025em}
.surface .close{flex:0 0 44px;justify-content:center;border:1px solid transparent;border-radius:5px;background:transparent;height:44px;padding:0}.close img{width:22px;height:22px}
#panel-body,#map-body,#help-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#8a805e #22332b;padding:10px 18px 16px}#panel-body{scrollbar-gutter:stable}
.surface p,.muted,.surface .muted{color:var(--muted);font-size:13px;line-height:1.43}.surface .muted{margin-block:7px}.surface h3{font:500 19px/1.2 var(--serif);margin:15px 0 7px;color:#f0dcaf}
.surface button:not(.close){min-height:44px;min-width:44px;padding:5px 10px;border:1px solid #9a89574f;border-radius:5px;background:linear-gradient(145deg,#47503c,#2e4033);color:var(--ivory);font:600 12px/1.2 var(--sans)}.surface button.primary{color:#243423;background:linear-gradient(150deg,#e7ca8a,#bd9d60);border-color:#e5c28b}
.surface .actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:6px 0}.surface a{color:#e9cc90}.surface label{display:block;color:var(--muted);font-size:13px}.surface input,.surface select{color:var(--ivory);background:#192720;border:1px solid #94846188;border-radius:4px;min-height:44px;padding:5px 9px}.surface input[type=number]{width:100%;margin:4px 0}
.row{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #ad9a6938}.row .item{flex:1;display:grid;gap:2px;min-width:0}.row .item strong{font-size:13px}.row .item .muted{font-size:11px;margin:0}.row .actions{margin:0;justify-content:end}.pill{font-size:11px;font-weight:600;white-space:nowrap;color:#f1d798;padding:4px 6px}
.item-symbol{width:31px;height:34px;flex:none;display:grid;place-items:center}.item-symbol img{width:100%;height:100%;object-fit:contain}.panel-notice{background:#a88c4729;color:#f3dda5!important;border-left:2px solid #c3a060;padding:7px 10px}
.meter{height:4px;background:#18231c;overflow:hidden;border-radius:3px}.meter>i{display:block;height:100%;background:#b8aa78}.journal-list{padding-left:17px;color:var(--muted);font-size:13px}.journal-list li{padding:3px 0}
.help-row{justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.help-row span{text-align:right;color:var(--muted)}.help-row b{font-weight:600}
#bigmap{display:block;width:100%;height:auto;cursor:crosshair;border:1px solid #a5976e88;border-radius:5px;touch-action:manipulation}.surface .map-guide{margin:8px 0 10px;font-size:12px}.destinations{display:grid;grid-template-columns:1fr 1fr;gap:5px}.destinations button{gap:6px;text-align:left}.destinations img{width:24px;height:24px}
.bag-grip{cursor:move;touch-action:none;user-select:none}.bag-tab{position:absolute;z-index:4;display:flex;align-items:center;gap:5px}.bag-min img{width:18px}
#accion-feedback{position:absolute;left:50%;top:13%;transform:translateX(-50%);z-index:8;pointer-events:none;color:var(--ivory);background:#233329ed;border:1px solid #bdaa73;border-radius:4px;padding:7px 12px;font:14px/1.35 var(--serif);max-width:min(440px,88vw);text-align:center}
@media(min-width:1500px){:root{--left:32px;--right:32px;--top:28px;--bottom:22px}.nav-hud{width:215px}.radar-dial{width:136px;height:136px}}
@media(max-width:980px){.character-status{width:185px}.world-actions button>kbd{display:none}.dock{gap:1px}.dock button{min-width:59px;padding-inline:5px}.world-actions button span{display:none}.world-actions button{width:44px;justify-content:center}.nav-hud{width:155px}}
@media(pointer:coarse),(max-width:710px){#touch-stick{display:block}.world-actions #run-control{display:flex}.world-actions #run-control[aria-pressed=true]{border-color:#eace87;background:#566343}.world-actions{bottom:calc(var(--bottom) + 70px)}.world-actions button{width:44px;justify-content:center}.world-actions button>span,.world-actions button>kbd,.dock kbd{display:none}.surface{max-height:calc(100dvh - 88px);right:var(--right);top:var(--top);transform:none}.character-status{top:calc(var(--top) + 49px);bottom:auto;pointer-events:none;width:164px;padding:3px 8px 6px}.character-status header{margin:-4px 0 0}.identity{pointer-events:auto}.identity b{font-size:15px}.identity img{width:20px;height:21px}.vital{grid-template-columns:32px 1fr 20px;font-size:9px}.dock button{width:66px;min-height:54px}.radar-dial{width:87px;height:87px}.nav-hud{width:150px}.place .sigil{width:29px;height:36px}}
@media(max-width:580px){:root{--left:max(8px,env(safe-area-inset-left));--right:max(8px,env(safe-area-inset-right));--top:max(9px,env(safe-area-inset-top));--bottom:max(8px,env(safe-area-inset-bottom))}.place{gap:6px}.place h1{font-size:23px}.realm{font-size:8px}.nav-hud{width:110px;gap:5px}.radar-dial{width:72px;height:72px}.radar-caption{font-size:9px}.radar-caption kbd{display:none}.quest-strip{padding:5px;gap:2px;min-height:44px}.quest-strip>img{display:none}.quest-strip small{font-size:8px}.quest-strip .objective{font-size:12px}.character-status{width:146px;top:calc(var(--top) + 41px);padding:1px 7px 5px}.character-status header{margin-top:-5px}.identity{min-height:44px}.gold img{width:15px;height:15px}.dock-wrap{width:calc(100% - var(--left) - var(--right))}.dock{width:100%;justify-content:space-around}.dock button{flex:1;min-width:44px;width:auto;padding:2px;font-size:10px}.dock button img{width:26px;height:26px}.surface{left:var(--left);right:var(--right);width:auto;max-height:calc(100dvh - var(--top) - var(--bottom) - 66px)}.panel-head{min-height:56px;padding:5px 7px 5px 12px}#panel-body,#help-body,#map-body{padding:8px 10px 12px}.world-actions{gap:4px;flex-direction:column}.world-actions button{min-height:44px}.surface input{font-size:16px}.bag-grip{cursor:auto}#touch-stick{width:75px;height:75px}}
@media(max-height:580px) and (min-width:581px){:root{--top:8px;--bottom:8px;--left:10px;--right:10px}.place h1{font-size:25px}.radar-dial{width:64px;height:64px}.nav-hud{gap:3px}.quest-strip{font-size:11px;padding:4px 7px}.quest-strip .objective{font-size:12px}.surface{max-height:calc(100dvh - 16px);top:8px;transform:none;z-index:6}.dock button{min-height:44px}.dock button img{width:23px;height:23px}.character-status{width:145px}.touch-open .character-status{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(pointer:coarse),(max-width:710px){.touch-open #touch-stick,.touch-open .world-actions,.touch-open .near,.touch-open .nav-hud{visibility:hidden;pointer-events:none}}
