/* Interface follows the supplied dark slate and gold reference. */
:root{--gold:#ffaf21;--panel:#141c25f2;--edge:#4a5b6f;--muted:#9ca8b4;--cream:#eee7d5}body{background:#080e14}.toolbar{background:linear-gradient(#17222cf5,#0c131cf2);border-color:#536375;border-radius:7px;box-shadow:0 5px 20px #0005}.tool-button{color:#cbc9bc;background:#0b111944;font-size:8px;min-width:43px}.tool-button>.icon{color:#d5bc82}.play-button{background:linear-gradient(#ffc760,#f0a01b);border-color:#f5c25c;color:#241807;border-radius:5px}.play-button.running{background:linear-gradient(#728343,#3e5730);border-color:#a2b66c}.world-brand{left:17px;top:22px}.world-brand>div{font-size:23px}.world-brand small{letter-spacing:2px}.world-brand>img{width:33px;height:33px}.wallet{background:#111c29e8;border-color:#52687c}.wallet-settings{background:transparent}.game-window{background:var(--panel);border-color:#4a596a;box-shadow:0 8px 20px #0004;backdrop-filter:blur(3px)}.game-window:after{display:none}.window-header{background:#151f29;border-bottom-color:#526175;height:36px}.window-header h2{font-size:16px;letter-spacing:.3px;color:#e9e4d2}.window-header>.icon{color:#d9b46a}.window-button{background:#131c27;border-color:#54697f;color:#ddd7c6;border-radius:5px}.window-body{scrollbar-color:#667787 #101822}.helper-tabs{background:#080d13;border-color:#394757}.helper-tabs>button.selected{background:#a56d1426;border-color:#b08a3b;color:#ffb729}.auto-setting{background:#0b111ae6;border-color:#475467}.auto-setting-icon{background:#09121c;border-color:#796135}.auto-setting-title strong{color:#d6dce0}.auto-setting-title small{color:#8e9ba7}.auto-toggle .toggle-track{background:#3e4d5b}.auto-toggle input:checked+.toggle-track{background:#eea221}.helper-intro>span{color:#e7ad46}.helper-intro>span:last-child{color:#8593a2}.auto-setting-content select,.route-setting select{background:#0a1018;border-color:#45576c}.helper-hint{color:#8796a6}.vitals{background:#132232e0;border-color:#5d758b}.vital-portrait{background:#0d1721;border-color:#5d6b7b}.vital-track{background:#080e17}.equipment-stage{background:radial-gradient(ellipse,#27313b66,#0c131a);border-color:#414c5b}.equip-slot{background:#0a111bd9;border-color:#4f6073}.equip-slot.filled{border-color:#b68730}.character-stats{border-color:#344354;background:#0a121b}.character-stats strong{color:#f0b445}.panel-action{border-color:#8d713c;color:#eab14b;background:#0b121a}.panel-action:hover{background:#2e2a1d}.item-slot{background:radial-gradient(#263543,#0a111a);border-color:#4d5e71}.item-slot.equipped{border-color:#c6983c}.inventory-footer{border-color:#344458;color:#8195a7}.inventory-footer button{color:#e0b564}.progress-row{border-color:#394859}.progress-label{color:#dcdccb}.progress-caption{color:#8393a2}.skill-row{background:#0c141f;border-color:#3d4d60}.skill-row strong{color:#dddccf}.skill-row small{color:#91a4b5}.analyzer-row{background:#0c1722;border-color:#415065}.analyzer-row>strong{color:#f9b52d;background:#302515;border-color:#8b6c32}.analyzer-notice{background:#b880171d;border-color:#b291384f;color:#ccbb8c}.chat-window{background:#111b26eb}.log-line{border-color:#3948544f}.log-line.system{color:#abbbce}.hotbar{background:#111a25ef;border-color:#627084}.hotbar-button{border-color:#5a6c82;background:#0a111c}.hotbar-button.transform{border-color:#b78638}.hotbar-button>kbd{background:#0c1422}.world-context{background:#111d2bef;border-color:#617185;color:#d8d5c5}.target-hud{background:#16212ded;border-color:#91694c}.world-status{color:#d1d7dc}.world-status>button{color:#e8c575}.minimap-footer{color:#b8c3cc}.outfit-name{background:#101b28;border-color:#4c627a;color:#b5c3d4}.outfit-name.active{background:#382716;border-color:#d79d37;color:#ffc457}.modal-grid .shop-item,.zone-card{background:#0d1620;border-color:#43556a}.action-button{background:#0b131d;border-color:#56677b;color:#e5deca}.action-button.primary{background:linear-gradient(#f5d082,#efaa30);border-color:#dfb45e;color:#251c0d}dialog#game-modal{background:#141d27;border:1px solid #52697e;border-radius:8px;box-shadow:0 24px 80px #0007;color:#e9e5d6;width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0}#game-modal::backdrop{background:#03081085;backdrop-filter:blur(1px)}#game-modal>header{background:#141d27;border-bottom:1px solid #58697d;padding:17px 19px;min-height:66px}#game-modal>header h2{font:700 22px 'Barlow Condensed',sans-serif;letter-spacing:.2px}#game-modal>header .window-button{width:40px;height:40px;font-size:25px}#game-modal #modal-body{padding:16px;max-height:calc(100dvh - 112px);overflow:auto;scrollbar-width:thin;scrollbar-color:#64758a #0d151f}#game-modal[data-menu-type=store]{width:min(1010px,calc(100vw - 28px))}#game-modal[data-menu-type=ranking]{width:min(690px,calc(100vw - 28px))}#game-modal[data-menu-type=profile]{width:min(600px,calc(100vw - 28px))}.toolbar>.tool-button[data-action=home]{min-width:32px}.toolbar{max-width:calc(100vw - 390px)}.toolbar .tool-button{flex-shrink:0}.menu-more-label{font-size:8px}.toolbar-sprite{image-rendering:pixelated}.mobile-panels>button{background:#142133f2;border-color:#6c7787;color:#e5d5ae}
@media(max-width:1400px) and (min-width:901px){.toolbar{left:50%;max-width:calc(100vw - 345px);overflow-x:auto;scrollbar-width:thin;padding-bottom:7px}.tool-button{min-width:40px}.play-button{min-width:84px}.world-brand>div{font-size:20px}.world-brand>img{width:28px;height:28px}.wallet{right:12px;gap:8px}.wallet>span{font-size:10px}.tool-button{font-size:7px}}
@media(max-width:900px){.toolbar{left:50%;max-width:none;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:6px}.toolbar .tool-button{display:flex!important;flex:0 0 44px;font-size:7px}.toolbar .play-button{min-width:85px}.world-brand{left:13px;top:17px}.world-brand>div{font-size:22px}.wallet{top:18px}.game-window.mobile-visible{background:#141c25fa}.toolbar>.tool-button[data-action=home]{flex-basis:35px}.toolbar-divider{display:none}}
@media(max-width:540px){#game-modal #modal-body{padding:12px}#game-modal>header{padding:12px;min-height:58px}#game-modal>header h2{font-size:21px}#game-modal>header .window-button{width:34px;height:34px}#game-modal{max-height:calc(100dvh - 18px)}#game-modal #modal-body{max-height:calc(100dvh - 90px)}}
/* Expedition layout: one drawer, seven destinations, unobstructed map. */
:root{--panel:#101c29f7;--edge:#344b5d;--gold:#f5bf60;--muted:#acb9c5;--cream:#f2ead9}
body{font-size:13px}.game-world:before{content:'';position:absolute;z-index:4;inset:0 0 auto;height:82px;background:#101923;border-bottom:1px solid #344554;pointer-events:none}
.world-brand{z-index:5;top:27px;left:20px}.world-brand>div{font-size:21px}.world-brand small{display:none}.world-brand>img{width:30px;height:30px}
.toolbar{top:8px;left:50%;max-width:calc(100vw - 430px);height:65px;background:none;border:0;box-shadow:none;gap:5px;overflow-x:auto;scrollbar-width:none;padding:0}.toolbar .tool-button{min-width:75px;height:60px;font-size:11px;padding:4px 8px;border-radius:8px;background:transparent;gap:3px}.tool-button>.toolbar-sprite{width:29px;height:29px}.toolbar .tool-button:hover,.tool-button[aria-expanded=true]{background:#253545;border-color:#5b758d}.toolbar .play-button{min-width:133px;height:54px;flex-direction:row;gap:8px;margin:0 7px 0 0;font-size:23px;letter-spacing:0;box-shadow:none;border-radius:9px;background:#f5bd5b;color:#251c0d}.play-button>img{width:35px;height:35px}.play-button small{display:block;font:500 10px var(--font);letter-spacing:0}.toolbar .play-button.running{background:#f5bd5b;border-color:#efcd8b;color:#251c0d}
.wallet{top:25px;right:16px;z-index:5;border:0;background:transparent;padding:0;gap:10px}.wallet>span{font-size:12px}.wallet-settings{width:32px;height:32px;border:1px solid #3b5060}.wallet-settings .icon{width:18px;height:18px}
.vitals{left:20px;top:100px;transform:none;min-width:285px;padding:10px;background:#101e2ced}.vital-name strong{font-size:12px}.vital-name>span{font-size:11px}.vital-row>span{font-size:9px;width:21px}.vital-track{height:16px}.vital-track strong{font-size:10px;line-height:14px}.location-banner{top:105px;text-align:center;background:#101e2cca;border:1px solid #ffffff1a;border-radius:8px;padding:9px 22px}.location-banner h1{font-size:26px;margin:0}.location-banner>span{font-size:9px;letter-spacing:1.5px}.location-banner p{font-size:11px}.location-banner>div>span{display:none}
.game-window,.game-window.force-visible,.game-window.mobile-visible{display:block;position:absolute;left:auto!important;top:94px!important;right:16px!important;bottom:auto!important;width:340px!important;max-height:calc(100dvh - 220px)!important;z-index:10;background:#111e2bf7;border:1px solid #536b7c;border-radius:12px;box-shadow:0 16px 48px #0008}.game-window[hidden]{display:none!important}.game-window .window-header{height:52px;cursor:default;background:#182735}.game-window .window-header h2{font:600 16px var(--font);letter-spacing:0;color:#f2ead9}.window-header [data-action=collapse]{display:none}.window-header .close-panel{display:flex;width:32px;height:32px;font-size:22px}.game-window .window-body{max-height:calc(100dvh - 275px);padding:16px;overflow:auto}.backpack-window{width:390px!important}.game-window .panel-action{min-height:38px;font-size:12px;margin-top:8px}.inventory-grid{grid-template-columns:repeat(5,1fr);gap:8px}.item-slot{height:57px;min-height:57px}.item-slot img{width:40px;height:40px}.item-slot small{font-size:11px}.inventory-footer,.backpack-info{font-size:12px}.inventory-footer{margin-top:12px}.character-name strong{font-size:17px}.character-name>span{font-size:13px}.character-stats span,.character-rates span{font-size:10px}.character-stats strong{font-size:19px}.character-rates strong{font-size:13px}.progress-label,.progress-caption{font-size:12px}.skill-row strong{font-size:14px}.skill-row small,.skill-row>span{font-size:11px}.skill-row{padding:9px}.log-line{font-size:12px;line-height:1.6}.minimap-view{width:100%;height:auto}
.helper-tabs>button{height:35px;font-size:11px}.helper-intro{font-size:10px}.auto-setting{padding:10px;margin-bottom:9px;border-color:#354a5c;border-radius:8px}.auto-setting-title strong{font-size:12px}.auto-setting-title small{font-size:10px;line-height:1.5}.auto-setting-content select,.route-setting select{height:33px;font-size:11px}.auto-setting-content>small{font-size:10px}.auto-toggle>span{font-size:10px}.helper-hunt-note{font-size:12px;line-height:1.6}.helper-start{min-height:40px;font-size:12px}.route-action{min-height:36px;font-size:12px}
.hunt-controls{position:absolute;left:20px;bottom:102px;display:flex;gap:5px;align-items:center;z-index:4;background:#101e2cf0;border:1px solid #476075;border-radius:9px;padding:5px}.hunt-controls button{padding:11px 12px;background:transparent;border:0;font-size:11px}.hunt-controls #quick-auto{background:#f5bd5b;color:#201a10;font-weight:700;border-radius:6px;min-width:124px}.hunt-controls #quick-auto.running{background:#285340;color:#d4ffe6}.world-context{bottom:155px;left:20px;transform:none;max-width:330px;font-size:10px;padding:7px 10px}.hotbar{bottom:33px;left:50%;padding:8px;gap:6px;border-radius:12px}.hotbar-button{width:47px;height:49px;min-width:0}.hotbar-button img{width:37px;height:37px}.hotbar-button>kbd{font-size:11px}.hotbar-button>small{font-size:10px}.movement-hint{display:none}.world-status{left:20px;right:20px;bottom:8px;font-size:10px;display:flex;gap:18px}.world-status button{font-size:10px}.world-status #fps-label{margin-left:auto;opacity:.6}.target-hud{bottom:106px;top:auto;font-size:13px;padding:8px 13px}.mobile-panels{display:none!important}
#game-modal{border-radius:14px}#game-modal>header h2{font-family:var(--font);font-size:21px}#game-modal #modal-body{font-size:14px;padding:24px;line-height:1.55}.action-button,.menu-button{min-height:36px;font-size:12px;border-radius:6px}.menu-search{min-height:40px;font-size:13px}.menu-intro{font-size:14px;line-height:1.6;margin-bottom:20px;color:#b8c6d0}.menu-caption{font-size:12px}.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hub-card{display:flex;align-items:center;gap:16px;text-align:left;padding:23px 18px;background:#172533;border:1px solid #3a5063;border-radius:10px;min-height:110px}.hub-card img{width:48px;height:48px}.hub-card span{display:flex;flex-direction:column;gap:5px;flex:1}.hub-card strong{font-size:16px}.hub-card small{color:#acbfcd;font-size:12px;line-height:1.5}.hub-card>b{font-size:24px;color:#f5bd5b}.hub-card:hover{background:#263747}
.item-detail{max-width:570px;margin:auto;text-align:left}.item-detail>img{width:88px;height:88px;float:left;margin:0 20px 16px 0}.item-detail>p{font-size:14px}.item-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;clear:both;margin:18px 0}.item-stat-grid>div{background:#0c1721;padding:10px 13px;border-radius:7px;display:flex;justify-content:space-between;gap:8px}.item-stat-grid small{color:#b2c1cc}.item-stat-grid strong{color:#b6e7c5}.item-tier{display:inline-block;padding:3px 9px;border:1px solid currentColor;border-radius:4px;font-size:11px;margin:5px 0 10px}.item-sources{margin:20px 0;padding:16px;background:#172838;border-radius:8px}.item-sources h3{font-size:14px;margin-bottom:8px}.item-sources p{font-size:12px;color:#bac9d4}.item-source-link{display:inline-block;margin:5px 4px 0 0;padding:7px 10px;font-size:12px}.item-compare{color:#afc5d5;font-size:12px;clear:both;padding-top:8px}.item-compare .negative{color:#efa091}
@media(max-width:1250px) and (min-width:901px){.world-brand>div{font-size:17px}.world-brand>img{width:25px;height:25px}.toolbar{max-width:calc(100vw - 340px)}.toolbar .tool-button{min-width:63px;font-size:10px;padding-inline:4px}.toolbar .play-button{min-width:100px}.play-button small{font-size:8px}.wallet{gap:6px}.wallet>span{font-size:10px}.vitals{min-width:255px}.location-banner{left:57%}}
@media(max-width:900px){.game-world:before{height:120px}.world-brand{top:14px;left:12px}.world-brand>div{font-size:20px}.world-brand>img{width:25px;height:25px}.wallet{top:10px;right:12px}.toolbar{top:51px;left:12px;right:12px;transform:none;max-width:none;width:auto;height:64px;padding:0;justify-content:space-between;gap:2px}.toolbar .tool-button{flex:1 0 55px;min-width:55px;font-size:10px;height:59px;padding:4px}.toolbar .play-button{min-width:94px;flex-shrink:0;height:52px;margin:0 4px 0 0}.toolbar .play-button>img{display:none}.toolbar .play-button small{font-size:9px}.vitals{top:133px;left:12px;min-width:242px;padding:7px}.location-banner{top:138px;right:12px;left:auto;transform:none;padding:7px 12px}.location-banner h1{font-size:21px}.location-banner p{max-width:190px;white-space:normal;font-size:10px}.location-banner>span{font-size:8px}.game-window,.game-window.force-visible,.game-window.mobile-visible{top:128px!important;right:12px!important;width:min(360px,calc(100vw - 24px))!important;max-height:calc(100dvh - 230px)!important}.game-window .window-body{max-height:calc(100dvh - 284px)}.hunt-controls{left:12px;bottom:106px}.world-context{left:12px;bottom:156px}.world-status{left:12px;right:12px;font-size:9px;gap:10px}.hotbar{bottom:32px}.target-hud{bottom:214px;font-size:11px}.hub-card{padding:18px 12px;gap:12px}}
@media(max-width:540px){.toolbar .tool-button{flex:1 0 49px;min-width:49px;font-size:9px}.toolbar .tool-button>.toolbar-sprite{width:26px;height:26px}.toolbar .play-button{min-width:74px;font-size:21px}.play-button small{font-size:8px!important}.toolbar{overflow-x:auto;justify-content:flex-start}.wallet>span{font-size:10px}.wallet>span img{width:17px;height:17px}.world-brand>div{font-size:19px}.vitals{min-width:218px;max-width:230px;left:10px}.vital-name strong{font-size:10px}.vital-name>span{font-size:10px}.vital-portrait{width:35px}.location-banner{left:10px;right:auto;top:221px;text-align:left;padding:7px 12px}.location-banner>span{display:none}.location-banner h1{font-size:18px}.location-banner p{font-size:9px;max-width:220px}.hotbar{left:8px;right:8px;transform:none;width:auto;padding:6px;gap:3px;justify-content:center}.hotbar-button{width:calc((100vw - 51px)/10);height:43px;flex:0 1 auto}.hotbar-button img{width:29px;height:29px}.hotbar-separator{margin:0;width:2px}.hotbar-button>kbd{font-size:9px}.hotbar-button>small{font-size:8px}.hunt-controls{left:10px;right:10px;justify-content:space-between;bottom:99px}.hunt-controls button{font-size:10px;padding:10px 8px}.world-context{bottom:149px;font-size:9px;max-width:calc(100vw - 20px)}.world-context .context-divider{display:none}.world-status #fps-label{display:none}.world-status{bottom:8px;gap:9px;justify-content:space-between}.world-status>span:first-child{max-width:48%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.world-status button{font-size:9px}.target-hud{bottom:192px;max-width:calc(100vw - 20px);white-space:normal}.hub-grid{grid-template-columns:1fr}.hub-card{min-height:94px}.hub-card strong{font-size:15px}#game-modal #modal-body{padding:16px;font-size:13px}.item-stat-grid{grid-template-columns:1fr 1fr}.item-stat-grid>div{font-size:11px;padding:9px}.modal-grid{grid-template-columns:1fr 1fr}.modal-grid .hero-card{padding:10px}.modal-grid .hero-card h3{font-size:15px}.modal-grid .hero-card p{font-size:11px}.modal-grid .hero-card .action-button{font-size:10px;padding:8px}}
.wallet-settings{display:flex;align-items:center;justify-content:center}.world-context{display:block;width:max-content;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.world-context .status-light{vertical-align:middle;margin-inline-end:5px}.world-context .context-divider{display:none}.world-context .context-help{display:block;margin-top:2px}.hunt-drop>span small{display:block;font-size:10px;color:#9fb4c2}.hunt-drops{gap:6px}.hunt-drop{padding:6px 8px}.hunt-drop img{width:30px;height:30px}
.spell-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.spell-card{display:flex;flex-direction:column;gap:12px;padding:15px;text-align:left;min-width:0;border-top:2px solid var(--spell-color)}.spell-card>header{display:flex;align-items:center;gap:10px;min-height:48px}.spell-card>header img{width:48px;height:48px;flex:none;image-rendering:pixelated}.spell-card h3{margin:0;font-size:16px;line-height:1.25;color:#efe7d3}.spell-card header small{display:block;margin-top:5px;color:#97adba;font-size:10px}.spell-card canvas{display:block;width:100%;height:auto;aspect-ratio:2/1;border:1px solid #243744;border-radius:5px;image-rendering:pixelated}.spell-card .spell-description{margin:0;line-height:1.5;min-height:42px;font-size:12px;color:#c8d4da}.spell-shape{color:var(--spell-color);font-size:10px;line-height:1.5}.spell-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:auto}.spell-stats span{padding:6px 8px;border-radius:3px;background:#09131a;color:#a9bdc9;font-size:10px}.spell-card>.action-button{width:100%;margin:0;min-height:36px}.skill-row small+small{color:#9bb8c4;font-size:9px;line-height:1.4;margin-top:3px}
@media(max-width:600px){.modal-grid.spell-library{grid-template-columns:1fr}.spell-card{padding:12px}.spell-card canvas{max-height:170px;object-fit:contain;background:#0b151c}}
@media(max-width:540px){.toolbar .tool-button{flex-basis:45px;min-width:45px;font-size:8px}.toolbar .play-button{min-width:69px}.wallet{gap:6px}.wallet-settings{width:27px;height:27px}.world-brand>div{font-size:17px}}

/* Movable windows share one viewport-bounded layout on desktop and touch. */
.game-window[data-floating=true]{left:var(--panel-x)!important;top:var(--panel-y)!important;right:auto!important;bottom:auto!important;max-height:calc(100dvh - 100px)!important}
.game-window[data-floating=true] .window-header{cursor:grab;touch-action:none;user-select:none;gap:7px}.game-window[data-floating=true] .window-header h2{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-window.dragging .window-header{cursor:grabbing}.game-window.dragging{backdrop-filter:none}
.game-window .window-header [data-action=collapse]{display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:21px}.game-window[data-floating=true] .window-body{max-height:min(calc(100dvh - 180px),var(--panel-space));overscroll-behavior:contain}.game-window.collapsed .window-body{display:none}.game-window.collapsed .window-header{border-bottom:0}.game-window.collapsed{height:52px!important}
#item-tooltip{position:fixed;z-index:10000;width:280px;max-width:calc(100vw - 16px);padding:14px;background:#0c1623f8;border:1px solid #b58b46;border-radius:9px;color:#eee7d5;box-shadow:0 10px 28px #0009;pointer-events:none;font:13px var(--font);margin:0;text-align:left}#item-tooltip[hidden]{display:none!important}#item-tooltip header{display:flex;align-items:center;gap:12px;margin-bottom:10px}#item-tooltip header img{width:42px;height:42px;image-rendering:pixelated}#item-tooltip strong,#item-tooltip small{display:block}#item-tooltip strong{font-size:15px;color:#ffd080}#item-tooltip small{font-size:11px;color:#a5b6c7;margin-top:4px}#item-tooltip dl{margin:0}#item-tooltip dl>div{display:flex;justify-content:space-between;gap:14px;padding:5px 0;border-bottom:1px solid #2a3c4c}#item-tooltip dt{color:#acbfce}#item-tooltip dd{margin:0;color:#d7eeb9;font-weight:600}#item-tooltip p{margin:8px 0;line-height:1.45}#item-tooltip footer{font-size:11px;color:#839bad;margin-top:10px}
@media(min-width:1251px){.toolbar .tool-button{min-width:67px;padding-inline:5px}.toolbar .play-button{min-width:112px}}
.adventure-menu nav[hidden]{display:none}
/* Objectives, mastery, equipment builds and saved hunt plans. */
#objectives-hud{position:absolute;left:20px;top:202px;width:285px;z-index:3;background:#0e1b27ed;border:1px solid #41596b;border-radius:8px;color:#e2e2d5;font-size:11px;box-shadow:0 5px 20px #0003}
#objectives-hud summary{padding:10px 12px;cursor:pointer;color:#f2cc7a;font-weight:700;letter-spacing:.3px}#objectives-content{padding:0 12px 12px;display:grid;gap:9px;max-height:calc(100dvh - 450px);overflow:auto;scrollbar-width:thin}#objectives-content>small{line-height:1.5;color:#b5c5ce}.objective-quest{padding:9px;text-align:left;background:#142533;border:1px solid #3e566b;border-radius:5px;display:grid;gap:4px;font-size:11px;color:#e8e9dd}.objective-quest strong{font-size:13px}.objective-quest small{color:#e6bd6b;font-size:9px;letter-spacing:.6px}.objective-quest span{color:#b8c6cc}.objective-quest progress{width:100%;height:5px;accent-color:#e0b258}.objective-link{text-align:left;background:none;border:0;padding:0;color:#abcbdc;line-height:1.5;font-size:11px}.event-link{border-top:1px solid #344a5b;padding-top:9px;display:flex;align-items:center;gap:7px;color:#edc979}.event-link img{width:22px;height:22px}.supply-alert{background:#3b291d;border:1px solid #8a6038;border-radius:5px;color:#ffd58a;text-align:left;padding:8px;font-size:11px;line-height:1.5}.supply-alert button{margin-top:5px;font-size:10px}.earned{color:#8ee0b1!important}.set-bonuses{display:grid;gap:7px;padding:12px;border:1px solid #53624e;border-radius:6px;margin:12px 0;color:#adbdbf;text-align:left}.set-bonuses strong{color:#e4c788}.set-bonuses small{font-size:11px}.set-heading,.mastery-card header{display:flex;gap:12px;align-items:center}.set-heading img{width:40px;height:40px;object-fit:contain}.mastery-card .mastery-portrait{width:52px;height:64px;object-fit:contain}.mastery-card header div{flex:1}.mastery-card header b{font-size:18px;color:#efc269}.mastery-card h4{font-size:14px;margin-bottom:4px;color:#ecd597}.mastery-card progress{width:100%;height:7px;accent-color:#e7b65e}.mastery-card small{display:block;color:#93a9b7;line-height:1.5}.mastery-card.current{border-color:#c49649}.mastery-card .action-button{margin-top:12px}.build-totals{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.build-totals>span{flex:1;min-width:130px;padding:12px;background:#0c1822;border:1px solid #3b5061;border-radius:6px;color:#acc0cd;font-size:12px}.build-totals b{display:block;font-size:19px;color:#efd297;margin-top:5px}.hunt-plan-form>label,.plan-fields label{display:grid;gap:6px;font-size:12px}.hunt-plan-form .plan-check{display:flex;align-items:center;gap:10px;margin:13px 0;line-height:1.5}.plan-check input{accent-color:#edb556;width:17px;height:17px}.plan-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:14px 0}.plan-fields input,.plan-fields select{width:100%}.route-editor{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px;padding:14px;background:#0b1620;border:1px solid #415567;border-radius:7px}.route-editor canvas{width:100%;height:auto;image-rendering:pixelated;cursor:default;align-self:center;border:1px solid #4b625e;touch-action:manipulation}.route-editor>div{display:grid;gap:8px;font-size:12px}.route-editor label{display:flex;gap:8px;align-items:center}.route-editor input{width:75px;background:#132536;border:1px solid #5b6c76;color:#f1ead4;padding:5px}.route-editor button{font-size:11px;padding:8px}.event-banner{display:flex;gap:20px;padding:20px;border:1px solid #a78345;border-radius:8px;background:linear-gradient(120deg,#39301e,#102230)}.event-banner>img{width:58px;height:58px;object-fit:contain;align-self:center}.event-banner small{letter-spacing:1px;color:#dfb469;font-size:10px}.event-banner h3{font-size:24px;margin:5px 0}.event-banner b{font-size:12px;color:#efd18d}.event-reward{padding:10px;border:1px solid #456059;background:#132a26;border-radius:6px;font-size:13px}.event-reward img{width:24px;height:24px;vertical-align:middle}#world-events-content>.action-button{margin:6px 8px 10px 0}#item-tooltip{max-height:calc(100dvh - 20px);overflow:auto}
@media(max-width:900px){#objectives-hud{top:220px;left:12px;width:242px}#objectives-content{max-height:calc(100dvh - 450px)}}
@media(max-width:540px){#objectives-hud{top:288px;left:10px;width:218px}#objectives-hud summary{padding:8px 10px;font-size:10px}#objectives-content{max-height:180px;padding:0 9px 9px}.plan-fields{grid-template-columns:1fr}.route-editor{grid-template-columns:1fr;padding:9px}.route-editor>div{grid-template-columns:1fr 1fr}.route-editor>div strong,.route-editor>div p{grid-column:1/-1}.event-banner{padding:13px;gap:12px}.event-banner h3{font-size:20px}.event-banner>img{width:35px;height:35px}.mastery-grid{grid-template-columns:1fr}.mastery-card header h3{font-size:17px}}

/* Independent chat and timed effects */
.chat-launcher{position:fixed;right:18px;bottom:94px;z-index:36;width:72px;height:72px;border:1px solid #a88e57;border-radius:12px;background:linear-gradient(145deg,#243345,#101922);box-shadow:0 6px 24px #0008;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#f2db9b;cursor:pointer;font:12px 'DM Sans',sans-serif}.chat-launcher>img{width:27px;height:27px;image-rendering:pixelated;object-fit:contain}.chat-badges{position:absolute;right:-7px;top:-10px;display:flex;gap:4px}.chat-count{border:2px solid #10202a;border-radius:20px;background:#62d5a3;color:#081a15;padding:2px 5px;font:bold 11px 'DM Sans',sans-serif;min-width:21px}.chat-count.private{background:#c3a0ff;color:#201532}.chat-count[hidden]{display:none}.chat-dock-window{position:fixed;right:100px;bottom:94px;z-index:48;width:410px;max-width:calc(100vw - 16px);height:360px;max-height:calc(100dvh - 20px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #638097;border-radius:12px;background:#0c1722f7;box-shadow:0 12px 40px #000a;color:#e5e1cd;font:12px 'DM Sans',sans-serif;box-sizing:border-box}.chat-dock-window[hidden]{display:none}.chat-drag{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #364e61;background:#1b2b39;cursor:move;touch-action:none;user-select:none}.chat-drag strong{font-size:14px}.chat-drag button{width:26px;height:26px}.chat-tabs{display:flex;gap:2px;padding:6px;flex-shrink:0}.chat-tabs button{flex:1;border:0;background:#111e2b;color:#9cb0c2;font:11px 'DM Sans',sans-serif;padding:9px 3px;cursor:pointer;border-radius:5px}.chat-tabs button.selected{color:#f3ce7a;background:#303024}.chat-tabs small{margin-left:3px;color:#7ee1b5}.chat-tabs [data-chat-channel=private] small{color:#cca6ff}.chat-recipient{padding:0 10px 6px;display:flex;align-items:center;gap:7px;font-size:10px}.chat-recipient[hidden]{display:none}.chat-recipient select{min-width:0;flex:1;padding:6px;background:#132536;color:#e9e5ce;border:1px solid #354d61}.chat-messages{flex:1;min-height:40px;overflow-y:auto;overscroll-behavior:contain;padding:4px 12px}.chat-message{margin:4px 0 10px;padding:7px 9px;background:#172633;border-radius:6px}.chat-message.mine{background:#21302b}.chat-message.admin{background:#3a1414;border:1px solid #a8232366}.chat-message.admin header button{color:#ff8f8f}.chat-message.admin p{color:#ffd9d9;font-weight:600}.chat-message header{display:flex;gap:8px;align-items:center;justify-content:space-between}.chat-message header button{border:0;padding:0;background:none;color:#a9c8db;text-align:left;font:bold 10px 'DM Sans',sans-serif;cursor:pointer}.chat-message time{font-size:9px;color:#899da9;white-space:nowrap}.chat-message p{margin:5px 0 0;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.chat-empty{padding:20px;text-align:center;color:#8b9faa}.chat-compose{display:flex;gap:6px;padding:8px;flex-shrink:0}.chat-compose input{min-width:0;flex:1;border:1px solid #476073;background:#08141e;color:#eee7d0;padding:9px;border-radius:5px;font:12px 'DM Sans',sans-serif}.chat-compose button{padding:6px 10px;font-size:12px}.chat-notice{font-size:9px;color:#8ba2b2;padding:0 10px 8px;line-height:1.4}
#active-effects{position:fixed;left:24px;top:188px;z-index:24;display:flex;gap:5px;flex-wrap:wrap;max-width:290px;pointer-events:auto}#active-effects[hidden]{display:none}#active-effects>button{display:flex;align-items:center;gap:4px;border:1px solid #6c6547;border-radius:6px;background:#15232bef;color:#eed69a;padding:4px 6px;font:10px 'DM Sans',sans-serif;cursor:pointer}#active-effects img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}#effect-description{font-size:11px;background:#0d1b27;border:1px solid #5f7182;color:#e3d8b6;padding:8px;border-radius:5px;margin:0}
@media(max-width:700px){.chat-launcher{right:10px;bottom:134px;width:57px;height:57px}.chat-dock-window{right:8px;bottom:135px;width:370px;height:330px}#active-effects{left:12px;top:273px;max-width:220px}#active-effects>button{font-size:9px;padding:3px 4px}}
.equipment-comparison{clear:both;margin:20px 0;padding:16px;border:1px solid #3a5062;background:#0c1721;border-radius:8px}
.equipment-comparison h3{font-size:14px;line-height:1.5;color:#f1d69e}
.equipment-comparison>p{font-size:12px;color:#aebfcd;margin:6px 0 12px;line-height:1.6}
.equipment-comparison dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.equipment-comparison dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #293e4e}
.equipment-comparison dt{font-size:12px;color:#d1dce4}
.equipment-comparison dd{font-size:14px;text-align:right;flex-shrink:0;margin:0;font-variant-numeric:tabular-nums}
.equipment-comparison dd small{display:block;font-size:10px;color:#aebfcd;margin-top:3px}
.equipment-comparison .positive{color:#99dfb4}.equipment-comparison .negative{color:#ffb2a1}
.equipment-set-change{margin-top:12px;padding-top:12px;border-top:1px solid #3a5062;font-size:12px;line-height:1.7}
.equipment-set-change strong{color:#e3c88e}.equipment-set-change p{margin-top:4px}
@media(max-width:540px){.equipment-comparison{padding:12px}.equipment-comparison dl{grid-template-columns:1fr}}

/* Update 0.1.1: direct navigation and progression pages */
.achievement-intro{padding:18px;background:#102330;border:1px solid #36576c;border-radius:12px;margin-bottom:16px}.achievement-intro h3{margin:8px 0;font-size:24px}.achievement-intro progress{width:100%}.achievement-filters,.form-character-picker{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.achievement-filters .active{border-color:#f3bd58;color:#f3bd58}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.achievement-card,.awakening-panel{padding:18px;border:1px solid #365267;border-radius:12px;background:#0d1c27}.achievement-card>small{color:#f3bd58;text-transform:uppercase;letter-spacing:1px}.achievement-card h3{margin:8px 0}.achievement-card p{min-height:36px;color:#a9bdc8}.achievement-card progress{display:block;width:100%;height:9px;margin:12px 0}.achievement-card>span{font-size:12px;color:#a9bdc8}.achievement-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}.achievement-card.ready{border-color:#c9a15c}.achievement-card.claimed{opacity:.72}.awakening-checklist{list-style:none;padding:0;display:grid;gap:10px}.awakening-checklist li{padding:12px;background:#081722;border-radius:8px;color:#b0c1cb}.awakening-checklist .done{color:#73d9a3}.awakening-panel p{line-height:1.6}.form-character-picker{max-height:135px;overflow:auto}.saga-lead .saga-card-actions{flex-wrap:wrap}
@media(min-width:901px){.game-world:before{height:142px}#toolbar{top:60px;left:14px;right:14px;transform:none;max-width:none;width:auto;height:74px;justify-content:flex-start;gap:3px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#587087 #10202d}#toolbar .tool-button{min-width:76px;max-width:106px;flex:1 0 76px;height:62px;white-space:normal;text-align:center;font-size:10px;line-height:1.15}#toolbar .play-button{min-width:94px;flex-shrink:0}#toolbar .tool-button .toolbar-sprite{width:25px;height:25px}.vitals{top:150px}.location-banner{top:154px}#objectives-hud{top:150px}.game-window{top:150px}}
@media(max-width:600px){.achievement-grid{grid-template-columns:1fr}.achievement-filters .menu-button{min-height:42px}.awakening-panel{padding:12px}.saga-forms{gap:5px}.saga-forms>div{min-width:0}.saga-forms span{font-size:12px}}

/* Navigation refinement: fewer top-level destinations. */
@media(min-width:901px){#toolbar{gap:6px;padding:5px 7px;border:1px solid #304451;border-radius:12px;background:linear-gradient(180deg,#142632e8,#0c1922eb);height:74px}#toolbar .tool-button{max-width:115px;min-width:78px;flex:1 0 78px;border:1px solid transparent;border-radius:9px;padding:6px 8px;font-size:11px;gap:5px}#toolbar .tool-button:hover,#toolbar .tool-button:focus-visible{background:#233b49;border-color:#527486}#toolbar .tool-button:focus-visible{outline:2px solid #efbe65;outline-offset:-2px}#toolbar .tool-button[data-action=store],#toolbar .tool-button[data-action=achievements]{border-left-color:#476071;margin-left:5px}#toolbar .tool-button[data-action=store]{color:#ffd07b}#toolbar .play-button{min-width:114px;height:58px;margin:0 5px 0 0}}
.social-ship-link{border-color:#a9874a!important;color:#f4cd88!important}.ship-social-back{justify-self:start;width:fit-content;margin-bottom:4px}.mobile-menu-grid .menu-button{border-radius:10px;line-height:1.3}.mobile-menu-grid .menu-button:focus-visible{outline:2px solid #efbe65}

.inventory-grid .item-slot.empty-slot{background:#0b141c99;border:1px dashed #4a5b6f88;box-shadow:none;cursor:default;pointer-events:none}
.menu-button.danger{border-color:#b8493f;color:#ffb3a8}.menu-button.danger:hover{background:#b8493f33}.menu-button.primary.danger{background:#8f2f28;color:#fff}
.foosha-preview-toggle{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;margin-top:7px;padding:5px 10px;border:1px solid #91b79a8f;border-radius:6px;background:#153f3b;color:#eddfa8;font-size:10px;max-width:100%;white-space:normal}
.foosha-preview-toggle img{width:20px;height:20px;flex:none}.foosha-preview-toggle:hover{background:#24584b}.foosha-preview-toggle:focus-visible{outline:2px solid #f7ce75;outline-offset:3px}
.foosha-visual-preview .vitals{background:#102f2ce8;border-color:#a3c39977}.foosha-visual-preview .location-banner{background:#102f2ce6;border-color:#a3c39966}
@media(max-width:900px){.foosha-preview-toggle{font-size:9px;gap:4px;min-height:44px;padding:5px 6px;width:100%}.foosha-preview-toggle img{width:17px;height:17px}}
@media(max-width:650px) and (min-height:541px){body.foosha-preview-map #captain-mode{top:var(--foosha-mode-top,285px)}body.foosha-preview-map .combat-tools-dock{top:var(--foosha-tools-top,345px)}}
/* Floating windows keep their dimensions when moved. Resize is explicit. */
.game-window[data-floating=true]{display:flex;flex-direction:column;min-width:180px}
.game-window[data-floating=true][hidden]{display:none}
.game-window[data-floating=true] .window-header{flex:0 0 auto}
.game-window[data-floating=true] .window-body{flex:1;min-height:0;max-height:none!important;overflow:auto}
.window-resize-grip{position:absolute;right:0;bottom:0;width:24px;height:24px;z-index:100;border:0;background:linear-gradient(135deg,transparent 52%,#ba9b58 53%,#ba9b58 57%,transparent 58%,transparent 68%,#ba9b58 69%,#ba9b58 73%,transparent 74%);cursor:nwse-resize;touch-action:none}
.game-window.collapsed .window-resize-grip{display:none}
