/* The Umbral belongs to the same illustrated 16:9 game frame. */
#expedition-nav{position:absolute;top:87px;left:345px;right:370px;display:flex;flex-direction:row;width:auto;max-width:none;align-items:center;justify-content:flex-end;gap:9px;z-index:12;pointer-events:auto}
#expedition-nav[hidden]{display:none}
#expedition-nav button{min-height:42px;padding:9px 17px;border:1px solid #b9b17b88;border-radius:6px;background:linear-gradient(120deg,#233f49e0,#142c3be0);color:#eee2c0;font:600 calc(15px + var(--ui-font-adjust,0px)) Georgia,serif;box-shadow:0 4px 15px #07141a55;cursor:pointer}
#expedition-nav button:hover{border-color:#e1d199;background:#365764f0}
.expedition-nav-label{margin-right:auto;color:#b4cfc9;letter-spacing:2px;font-size:12px}.expedition-nav-label small{display:block;letter-spacing:.4px;margin-top:5px;color:#d7c995}
body[data-region="haven"] #initiative-panel,body[data-region="cave-entrance"] #initiative-panel,body[data-region="haven"] .turn-actions,body[data-region="cave-entrance"] .turn-actions,body[data-region="haven"] #hand-fold,body[data-region="cave-entrance"] #hand-fold{display:none!important}
body[data-region="haven"] #end,body[data-region="cave-entrance"] #end,body[data-region="haven"] #undo,body[data-region="cave-entrance"] #undo{display:none!important}
.hud-hidden #expedition-nav{display:none}
#expedition-transition{position:absolute;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#24465a,#080f1f 75%);opacity:0;transition:opacity .7s ease;pointer-events:auto;color:#efe0b5}
#expedition-transition[hidden]{display:none}#expedition-transition.covering{opacity:1}#expedition-transition.revealing{opacity:0}
#expedition-transition>span{font-size:74px;color:#b7f3ef;text-shadow:0 0 38px #59d5e5;animation:umbral-pulse 2s ease-in-out infinite}#expedition-transition p{letter-spacing:5px;font-size:13px;margin-top:24px}#expedition-transition h2{font:normal 44px Georgia,serif;margin:12px}
@keyframes umbral-pulse{50%{opacity:.55;transform:scale(.93)}}
#star-map,#aether-merchant{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:1432px;max-width:none;height:754px;max-height:none;padding:24px 28px 26px;border:1px solid #c5b17b99;border-radius:14px;color:#e9e5d4;background:linear-gradient(145deg,#152f3acc,#0c1a2bcc);box-shadow:0 22px 90px #0008,inset 0 0 0 5px #c5b17b0d;overflow:hidden}
#star-map::after,#aether-merchant::after{content:"";pointer-events:none;position:absolute;inset:10px;border:1px solid #b5c4b52b;border-radius:8px}
.expedition-dialog-heading{display:flex;align-items:center;justify-content:space-between;height:70px;gap:25px;border-bottom:1px solid #c6b17d44;padding-bottom:12px;position:relative;z-index:1}
.expedition-dialog-heading .eyebrow{font-size:12px;letter-spacing:3px;color:#93c5c2}.expedition-dialog-heading h2{font:normal calc(30px + var(--ui-font-adjust,0px)) Georgia,serif;margin:7px 0 0;color:#eadbb0}
.expedition-dialog-heading>button{width:42px;height:42px;padding:0;border:1px solid #b8bc9d66;border-radius:50%;color:#d7dcbf;background:#182d3b99;font-size:29px;cursor:pointer}
.star-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:20px;height:608px;margin-top:17px}
.star-chart{position:relative;overflow:hidden;border:1px solid #8aafab44;border-radius:10px;background:radial-gradient(ellipse at 45% 45%,#1b3e534d,#09132288 80%)}
#star-chart{display:block;width:100%;height:100%;overflow:hidden}.crystal-range>circle:first-child{fill:#63dce809;stroke:none}.crystal-range-edge{fill:none;stroke:#79dfe39e;stroke-width:1.4;stroke-dasharray:5 7}.star-link{fill:none;stroke:#b0e5c1;stroke-width:2;stroke-dasharray:4 7;opacity:.6}
.star-island{cursor:pointer;outline:none;opacity:.48}.star-island.reachable{opacity:1}.island-under{fill:#304c60;stroke:#8ba3a2;stroke-width:.8}.island-top{fill:#7e9e95;stroke:#b1c6ae;stroke-width:1}.island-crystal{fill:#57c3d1;stroke:#b9fcf5;stroke-width:1.4}.island-orbit{fill:#55d3de0c;stroke:transparent;stroke-width:2}
.star-island.chosen .island-orbit,.star-island:hover .island-orbit,.star-island:focus .island-orbit{stroke:#f1da98;fill:#c9e5ad13}.star-island.restored .island-crystal{fill:#b6e9b4;filter:drop-shadow(0 0 5px #adeacd)}
.star-island text{font:600 17px Georgia,serif;paint-order:stroke;stroke:#102236;stroke-width:4px;stroke-linejoin:round}.star-island .star-island-state{font:8px Arial,sans-serif;letter-spacing:.9px;fill:#b0c5c9;stroke-width:3px}
.star-faro>circle{fill:#254e59;stroke:#d2ca91;stroke-width:1.2}.star-faro path{fill:#8be5e2;stroke:#e6ffe2;stroke-width:1.5;filter:drop-shadow(0 0 9px #77c8e2)}.star-faro text{fill:#e1d7ab;font:10px Georgia,serif;letter-spacing:1.5px;paint-order:stroke;stroke:#142639;stroke-width:3px}
.star-chart-controls{position:absolute;bottom:45px;left:14px;display:flex;gap:4px}.star-chart-controls button{min-width:37px;height:34px;padding:3px 10px;font-size:15px;color:#d5ddc4;background:#172e3acc;border:1px solid #71989966;border-radius:4px;cursor:pointer}
.star-danger-legend{position:absolute;left:15px;right:15px;bottom:14px;display:flex;justify-content:space-between;font-size:12px;letter-spacing:.4px;pointer-events:none}
#star-world-info{padding:16px 18px;background:#162d3933;border-left:1px solid #a3b7a844;border-radius:8px;overflow:auto;position:relative}#star-world-info>.eyebrow{font-size:11px;letter-spacing:1.4px;line-height:1.7}.world-sigil{font-size:58px;color:#8de2d9;text-shadow:0 0 28px #68c4cf;margin:12px 0;text-align:center}#star-world-info h3{font:normal calc(27px + var(--ui-font-adjust,0px)) Georgia,serif;margin:8px 0 13px;line-height:1.2}#star-world-info p{font-size:calc(16px + var(--ui-font-adjust,0px));line-height:1.6;color:#bfcbc9}#star-world-info dl{margin:18px 0}#star-world-info dl>div{display:flex;justify-content:space-between;font-size:14px;border-bottom:1px solid #9fbca51c;padding:7px 0}#star-world-info dt{color:#9bb9b9}#star-world-info dd{margin:0;color:#e1dfc3}.world-route-hint{font-size:14px!important}.star-network-note{display:block;color:#94b4b3;line-height:1.6;margin-top:13px;font-size:12px}
.world-sigil-art{display:block;width:155px;height:125px;margin:5px auto}.star-island-art{pointer-events:none;overflow:hidden!important;filter:drop-shadow(0 8px 8px #06162788)}.star-island.chosen .island-orbit{rx:58;ry:29;transform:translateY(9px)}
.crystal-range,.star-link,.star-faro,.star-island>text{pointer-events:none}.star-island-hit{cursor:pointer}
#star-world-info>button{width:100%;padding:12px 10px;border:1px solid #d7c48a88;color:#eee4c1;border-radius:5px;background:linear-gradient(135deg,#395b60cc,#213b4ecc);font:600 16px Georgia,serif;cursor:pointer}#star-world-info>button:disabled{opacity:.46;cursor:default}
.merchant-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;height:610px;margin-top:15px}.merchant-portrait{border-right:1px solid #afba9744;padding-right:24px;overflow:auto}.merchant-portrait canvas{position:static;display:block;inset:auto;width:260px;height:270px;object-fit:contain;image-rendering:auto;background:radial-gradient(ellipse,#4d79702b,transparent 67%)}.merchant-portrait blockquote{margin:0 0 25px;font:italic 19px/1.6 Georgia,serif;text-align:center;color:#d9cfae}#merchant-wallet{display:grid;gap:11px;border-top:1px solid #b4c2a033;padding-top:18px}#merchant-wallet span{font-size:15px;color:#afc6c3}#merchant-wallet b{float:right;color:#eadbaa;font-size:21px;font-family:Georgia,serif}
.merchant-stock{display:flex;flex-direction:column;min-height:0}.merchant-tabs{display:flex;gap:6px;border-bottom:1px solid #aeb78e44;padding-bottom:9px}.merchant-tabs button{padding:10px 29px;font:600 17px Georgia,serif;background:#1f3b4880;border:1px solid #9ead9455;border-radius:5px;color:#becdc4;cursor:pointer}.merchant-tabs button[aria-pressed="true"]{color:#f5e5b6;background:#3a555799;border-color:#d1b97899}
.merchant-recipient{display:flex;align-items:center;gap:15px;padding:13px 0;font-size:14px;color:#a7bfc1}.merchant-recipient select{background:#1d3544;border:1px solid #9fba9b66;color:#ebdfb5;border-radius:4px;padding:7px 12px;font:15px Georgia,serif}.merchant-recipient>span{margin-left:auto;color:#d0cbac}#merchant-goods{overflow:auto;min-height:0;flex:1;padding-right:9px;scrollbar-color:#7eaca0 #102333}
.merchant-good{display:grid;grid-template-columns:85px 1fr 105px;gap:15px;align-items:center;padding:15px 0;border-bottom:1px solid #abb78b2b}.merchant-good-art{width:82px;height:90px;display:block;background:radial-gradient(ellipse,#96bd9e1c,transparent 70%)}.merchant-good-art svg{width:100%;height:100%}.merchant-good h3{font:normal calc(20px + var(--ui-font-adjust,0px)) Georgia,serif;margin:0 0 6px}.merchant-good p{font-size:calc(14px + var(--ui-font-adjust,0px));line-height:1.5;color:#b7c8c5;margin:3px 0 6px}.merchant-good small{display:block;color:#b7daba;font-size:14px}.merchant-price{display:block;margin-top:7px;font-size:13px;color:#e2ce9d}.merchant-good button,.merchant-process button{border:1px solid #bea97088;background:#375257aa;color:#ebdfb6;border-radius:5px;padding:10px;font:600 15px Georgia,serif;cursor:pointer}.merchant-good button:disabled,.merchant-process button:disabled{opacity:.4;cursor:default}
#merchant-message{font-size:14px;color:#ddcea7;min-height:25px;margin:12px 0 0}.merchant-process{max-width:670px;margin:18px auto;text-align:center;padding:25px;border:1px solid #a5b78a33;border-radius:9px;background:#172f392b}.process-crystal{display:block;font-size:90px;line-height:1.25;text-shadow:0 0 23px currentColor}.process-crystal.dark{color:#ba85ef}.process-crystal.pure{color:#7ce1e5}.merchant-process h3{font:normal 27px Georgia,serif;color:#e7dbb6}.merchant-process p{font-size:18px;line-height:1.7;color:#bdcecb}.merchant-process>b{display:block;color:#dcebc6;font-size:20px;margin:22px}.merchant-process button{padding:13px 30px}.merchant-process small{display:block;color:#9fbbbb;margin:20px 0 0;font-size:14px}
#expedition-retreat-dialog{width:630px;padding:40px;border:1px solid #c3b47e88;border-radius:12px;background:#15303ccc;color:#e4dcc6}#expedition-retreat-dialog h2{font:normal 31px Georgia,serif}#expedition-retreat-dialog p{font-size:19px;line-height:1.7;color:#c2d0ce}#expedition-retreat-dialog>div{display:flex;gap:15px;justify-content:flex-end;margin-top:30px}#expedition-retreat-dialog button{padding:12px 18px;color:#ece1bb;background:#34515ecc;border:1px solid #b7b78588;border-radius:5px;font-size:16px;cursor:pointer}
@media(prefers-reduced-motion:reduce){#expedition-transition>span{animation:none}.star-island{transition:none}}
