/* The expedition shares the main game's forest, parchment and gold palette. */
#open-world-button{display:none;position:fixed;left:344px;top:20px;transform:none;z-index:45;min-height:36px;padding:8px 16px;border:1px solid #b2a16c;border-radius:6px;background:#193b30;color:#f6e8bd;box-shadow:0 3px 10px #0005;font:600 12px system-ui,sans-serif;cursor:pointer;gap:8px;align-items:center}
body.scene-city #open-world-button{display:flex}
#open-world-button:hover{background:#295446;border-color:#f2dc9a}
#open-world-button:focus-visible,#open-world-dialog button:focus-visible{outline:3px solid #f9dc80;outline-offset:4px}
#city-open-world-road{display:none;position:absolute;left:87%;top:74%;transform:translate(-50%,-100%);z-index:1730;color:#f7e5b6;text-align:center;pointer-events:none;filter:drop-shadow(0 2px 2px #19231699)}
body.scene-city #city-open-world-road{display:block}
#city-open-world-road strong,#city-open-world-road small{position:relative;display:block;width:max-content;padding:5px 8px;border:2px solid #725131;border-radius:3px;background:linear-gradient(#5a422c,#3c2d1e);box-shadow:inset 0 1px #c4a771;font:700 6px system-ui,sans-serif;white-space:nowrap}
#city-open-world-road small{margin:2px auto 0;padding:3px 7px;font-size:5px;color:#e2d1a8}
#city-open-world-road i{display:block;width:3px;height:16px;margin:auto;background:linear-gradient(90deg,#503720,#a27a4c,#503720)}
body.open-world-active{overflow:hidden}
body.open-world-active #world{visibility:hidden!important}
body.open-world-active #map *{animation-play-state:paused!important}
body.open-world-active #map>:not(#world),body.open-world-active #profile-panel,body.open-world-active #inventory,body.open-world-active #mobile-game-controls,body.open-world-active .pixel-farm-chat,body.open-world-active #gather-action-progress,body.open-world-active #energy-spend-notice{visibility:hidden!important;pointer-events:none!important}
#open-world-dialog{display:none;position:fixed;inset:0;z-index:200;box-sizing:border-box;width:100%;height:100dvh;background:#0a1714;color:#f6e9bd;font-family:system-ui,sans-serif;isolation:isolate;overflow:hidden;overscroll-behavior:none}
#open-world-dialog.open{display:block}
#open-world-dialog [hidden]{display:none!important}
.ow-shell{position:relative;width:100%;height:100%;overflow:hidden;touch-action:none;background:#142b20}
.ow-canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none}
.ow-topbar{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none;z-index:5}
.ow-topbar button{pointer-events:auto}
.ow-hud{position:absolute;top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));z-index:6;display:grid;grid-template-columns:52px 1fr;align-items:center;gap:10px;min-width:200px;max-width:270px;padding:10px 12px;border:1px solid #c2aa68;border-radius:11px;background:#11372fea;box-shadow:0 7px 20px #08191299;pointer-events:auto}
.ow-portrait{width:48px;height:58px;grid-row:1/5;border:1px solid #e0c572;border-radius:7px;background:linear-gradient(#78cedb,#c1e8d2);image-rendering:pixelated;object-fit:contain}
.ow-hud strong{font:700 14px/1.2 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ow-hud small{font:10px/1.3 system-ui,sans-serif;color:#d9cfaa}
.ow-hud-bars{display:grid;gap:5px;min-width:0}
.ow-health,.ow-energy{position:relative;min-width:130px;height:16px;border:1px solid #10271f;border-radius:3px;background:#071b14;overflow:hidden}
.ow-health i,.ow-energy i{display:block;height:100%;border-radius:2px;transition:width .16s linear}
.ow-health i{background:linear-gradient(#f76d77,#bf364f)}
.ow-energy i{background:linear-gradient(#ffdd7a,#d99c32)}
.ow-health span,.ow-energy span{position:absolute;inset:0;text-align:center;color:#fff3c4;font:600 11px/16px system-ui,sans-serif;text-shadow:0 1px 2px #14231b}
.ow-region{position:absolute;top:20px;left:50%;transform:translateX(-50%);text-align:center;display:grid;gap:3px;padding:8px 20px;border:1px solid #bfac7377;border-radius:7px;background:#15372dba;pointer-events:none}
.ow-region strong{font:700 17px Georgia,serif;color:#f4e4b6}
.ow-region small{font:10px system-ui,sans-serif;letter-spacing:.6px;color:#dbd2b5}
.ow-region>span{font:9px system-ui,sans-serif;color:#b9cdb3}
.ow-top-actions{display:flex;gap:6px;margin-left:auto;pointer-events:auto}
.ow-topbar>nav,.ow-topbar>.ow-menu-buttons{display:flex;gap:6px}
#open-world-dialog button{color:#f7e8b4;font:600 12px system-ui,sans-serif;cursor:pointer;touch-action:none;user-select:none;-webkit-tap-highlight-color:transparent}
.ow-equipment-button,.ow-potion-button,.ow-map-button,.ow-exit,.ow-pause-button,.ow-fullscreen-button{min-height:38px;padding:8px 13px;border:1px solid #b4a070;border-radius:6px;background:#14362be8;box-shadow:0 3px 9px #0005}
.ow-map-button:hover,.ow-exit:hover,.ow-pause-button:hover,.ow-fullscreen-button:hover{background:#2b5544}
.ow-help{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:65%;padding:6px 12px;border-radius:5px;background:#132b22ce;color:#eedfae;text-align:center;font:11px/1.4 system-ui,sans-serif;pointer-events:none}
.ow-mini-map{position:absolute;right:18px;top:76px;width:156px;height:108px;background:#15362dd9;border:1px solid #c3ab71;border-radius:7px;box-shadow:0 5px 12px #0006;pointer-events:none}
.ow-notice{position:absolute;left:50%;top:115px;transform:translateX(-50%);max-width:min(500px,70%);padding:9px 14px;background:#15392fe8;border:1px solid #b5a26b;border-radius:7px;color:#fff1c0;font:600 12px/1.4 system-ui,sans-serif;text-align:center;pointer-events:none}
.ow-notice:empty{display:none}
.ow-resource-hint{position:absolute;left:50%;bottom:85px;transform:translateX(-50%);padding:7px 12px;border:1px solid #c6b879;border-radius:7px;background:#f3ebccd9;color:#284734;font:600 12px/1.3 system-ui,sans-serif;text-align:center;pointer-events:none}
.ow-gather-progress{position:absolute;left:50%;bottom:125px;transform:translateX(-50%);display:grid;gap:6px;min-width:230px;padding:10px 16px;border:1px solid #b3ab78;border-radius:8px;background:#102d26eb;text-align:center;pointer-events:none}
.ow-gather-progress progress{width:100%;height:9px;accent-color:#e7c474}
.ow-gather-progress span{font:11px system-ui,sans-serif;color:#ecdfb2}
.ow-region-panel{position:absolute;top:70px;right:18px;bottom:20px;width:min(355px,calc(100% - 36px));box-sizing:border-box;padding:20px;border:1px solid #bfab71;border-radius:12px;background:#12392ff5;box-shadow:0 15px 50px #0007;overflow:auto;z-index:8;touch-action:pan-y}
.ow-region-panel h2{font:700 24px Georgia,serif;color:#f4e3ad;margin:0 0 8px}
.ow-region-panel>header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.ow-region-panel>header small{font:9px system-ui,sans-serif;letter-spacing:1px;color:#d6c798}
.ow-atlas-close{width:30px;height:30px;border:1px solid #a08d5f;border-radius:5px;background:#204b3c;font-size:20px!important}
.ow-overview-button{width:100%;padding:10px;border:1px solid #bba96a;border-radius:6px;background:#325744}
.ow-region-panel p{font:12px/1.5 system-ui,sans-serif;color:#d1cfb5}
.ow-region-list{display:grid;gap:8px;margin-top:15px}
.ow-region-list button{display:block;width:100%;padding:12px 14px;border:1px solid #788b64;border-radius:7px;background:#294c3e;text-align:left}
.ow-region-list button.current,.ow-region-list button[aria-current="true"]{border-color:#f4d780;background:#3b6650}
.ow-region-list button small{display:block;color:#d1ceb0;font-size:10px;margin-top:3px}
.ow-region-list button strong,.ow-region-list button span{display:block;margin-top:3px}
.ow-region-list button span{font-size:10px;line-height:1.4;color:#c5d1b6}
.ow-region-list button:disabled{opacity:.65;cursor:default!important}
.ow-joystick,.ow-actions{display:none}
.ow-pause-screen,.ow-death-screen{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:15px;padding:30px;background:#0b211bd1;backdrop-filter:blur(4px);text-align:center;z-index:12}
.ow-pause-screen h2,.ow-death-screen h2{font:700 32px Georgia,serif;color:#f5df9c;margin:0}
.ow-pause-screen p,.ow-death-screen p{max-width:390px;color:#ddd4b8;font:14px/1.6 system-ui,sans-serif;margin:0}
.ow-pause-screen button,.ow-death-screen button{min-width:150px;padding:12px 18px;border:1px solid #d3b97b;border-radius:7px;background:#365e48}
.ow-shell:fullscreen{width:100vw;height:100dvh;background:#142b20}
@media (min-width:821px) and (max-width:1100px){
 #open-world-button{top:72px}
}
@media (max-width:820px), (hover:none) and (pointer:coarse){
 #open-world-button{left:max(8px,env(safe-area-inset-left));top:calc(max(8px,env(safe-area-inset-top)) + 152px);transform:none;padding:7px 10px;font-size:11px;min-height:34px}
}
@media (pointer:coarse),(max-width:600px),(max-width:960px) and (max-height:600px){
 .ow-joystick{display:block;position:absolute;left:max(20px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:112px;height:112px;border:2px solid #e2d9a983;border-radius:50%;background:radial-gradient(#23413999,#142c2666 70%);box-shadow:inset 0 0 0 18px #e8dabb08,0 5px 20px #0003;touch-action:none}
 .ow-stick{position:absolute;left:50%;top:50%;width:46px;height:46px;box-sizing:border-box;margin:-23px 0 0 -23px;border:2px solid #e1c986;border-radius:50%;background:linear-gradient(#69817a,#304940);box-shadow:0 5px 12px #0004;pointer-events:none}
 .ow-actions{display:block;position:absolute;right:max(20px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:184px;height:152px}
 .ow-actions button{position:absolute;display:grid;place-content:center;justify-items:center;gap:3px;width:60px;height:60px;padding:5px;border:2px solid #c8ba82;border-radius:50%;background:radial-gradient(circle at 35% 25%,#38504b,#112d25);box-shadow:0 3px 10px #0005;font-size:10px!important;line-height:1.1}
 .ow-actions button b{font:26px Georgia,serif}
 .ow-actions button small{font-size:8px;opacity:.75}
 .ow-actions button.cooldown::after{content:attr(data-cooldown);position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:#081d17bf;color:#fff3bd;font:bold 24px system-ui,sans-serif}
 .ow-actions button:active{transform:scale(.94);filter:brightness(1.3)}
 .ow-actions button:disabled{opacity:.55}
 .ow-actions .ow-attack{right:0;bottom:8px;width:82px;height:82px;border-color:#e9cd87;background:radial-gradient(circle at 35% 25%,#b39654,#66532c)}
 .ow-actions .ow-attack b{font-size:34px}
 .ow-actions .ow-skill{right:20px;top:0;background:radial-gradient(circle at 35% 25%,#675b83,#2f2945)}
 .ow-actions .ow-dash{left:18px;bottom:0}
 .ow-actions .ow-gather{left:0;top:5px}
 .ow-help{display:none}
 .ow-resource-hint{bottom:25px;max-width:35%;font-size:11px}
 .ow-gather-progress{bottom:90px;min-width:170px;max-width:35%;padding:8px 11px}
}
@media(max-width:820px){
 .ow-topbar{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));gap:5px}
 .ow-hud{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));grid-template-columns:36px 1fr;gap:5px;min-width:156px;max-width:180px;padding:7px;border-radius:8px}
 .ow-portrait{width:34px;height:44px;border-radius:5px}
 .ow-hud strong{font-size:11px}
 .ow-hud small{font-size:9px}
 .ow-health,.ow-energy{min-width:95px;height:12px}
 .ow-health span,.ow-energy span{font-size:9px;line-height:12px}
 .ow-region{top:14px;padding:6px 10px;max-width:25%;}
 .ow-region strong{font-size:13px}
 .ow-region small{font-size:8px;letter-spacing:0}
 .ow-equipment-button,.ow-potion-button,.ow-map-button,.ow-exit,.ow-pause-button,.ow-fullscreen-button{min-height:34px;padding:7px 9px;font-size:10px!important}
 .ow-mini-map{top:60px;right:9px;width:112px;height:76px}
 .ow-notice{top:88px;padding:6px 10px;font-size:11px}
 .ow-actions{width:160px;height:132px;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
 .ow-actions button{width:51px;height:51px;font-size:9px!important}
 .ow-actions .ow-attack{width:70px;height:70px}
 .ow-actions button b{font-size:23px}
 .ow-actions .ow-skill{right:16px}
 .ow-actions .ow-dash{left:18px}
 .ow-joystick{width:96px;height:96px;left:max(15px,env(safe-area-inset-left));bottom:max(15px,env(safe-area-inset-bottom))}
 .ow-stick{width:40px;height:40px;margin:-20px 0 0 -20px}
}
@media(max-width:960px) and (max-height:600px){
 .ow-region{top:55px;left:190px;transform:none;max-width:calc(100% - 330px)}
 .ow-notice{top:112px}
}
@media(max-width:560px) and (orientation:portrait){
 .ow-region{top:83px;left:12px;transform:none;max-width:60%;text-align:left;padding:6px 10px}
 .ow-region strong{font-size:14px}
 .ow-topbar>nav,.ow-topbar>.ow-menu-buttons{display:grid;grid-template-columns:repeat(2,minmax(36px,1fr));gap:5px}
 .ow-top-actions{display:grid;grid-template-columns:repeat(2,minmax(34px,1fr));max-width:144px;gap:4px}
 .ow-top-actions .ow-exit{font-size:9px!important;line-height:1.15;padding:5px;max-width:80px}
 .ow-mini-map{top:108px;width:100px;height:74px}
 .ow-notice{top:196px;max-width:80%}
 .ow-resource-hint{bottom:180px;max-width:80%;width:max-content;font-size:12px}
 .ow-gather-progress{bottom:218px;max-width:75%;width:230px}
 .ow-region-panel{top:105px;bottom:165px}
 .ow-actions{width:177px;height:147px}
 .ow-actions button{width:58px;height:58px;font-size:10px!important}
 .ow-actions .ow-attack{width:78px;height:78px}
 .ow-joystick{width:111px;height:111px;bottom:max(28px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.ow-health i,.ow-energy i{transition:none}}
