:root{color-scheme:light;--ink:#193f45;--muted:#748783;--cream:#faf7ed;--teal:#267c73;--gold:#e7b76a;--dark:#153f48;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink)}
.companion-card{position:absolute;top:278px;left:326px;right:348px;display:flex;align-items:center;gap:12px;padding:9px 14px;min-height:74px}.companion-card>img{width:48px;height:55px;object-fit:contain}.companion-card>div{flex:1}.companion-card strong{font-size:14px;color:var(--gold);font-weight:500}.companion-card p{font-size:10px;color:#b3cebf;margin-top:5px}.companion-card button{font-size:12px;background:#345e62;color:#fff3d3}.companion-stats{background:#e4ebdc;padding:13px;border-radius:12px;line-height:1.9;font-size:13px}.companion-dialog .food-portrait img{height:auto;max-height:100%;width:100%}.companion-dialog h2 small{color:var(--teal);font-size:17px}.cargo-counts{font-size:12px;color:var(--teal)}.companion-dialog .food-content{gap:12px}.worker-status{color:#e7c279!important}
@media(min-width:861px) and (max-width:1200px){.companion-card{left:282px;right:292px;padding:8px;gap:8px}.companion-card p{font-size:9px}.companion-card>img{width:38px}.companion-card button{padding:8px}}
@media(min-width:861px) and (max-height:760px){.companion-card{top:227px;min-height:60px;padding:6px 12px}.companion-card>img{height:46px}}
@media(max-width:860px){.companion-card{top:219px;left:10px;right:10px;min-height:60px;padding:6px 10px;gap:9px;border-radius:14px}.companion-card>img{height:43px;width:36px}.companion-card strong{font-size:12px}.companion-card p{font-size:9px;margin-top:3px}.companion-card button{font-size:11px;padding:8px 12px}.companion-dialog[open]{grid-template-columns:100px 1fr}.companion-dialog .food-portrait img{position:static;width:100%;height:auto;max-height:none}.companion-dialog .food-content{padding:30px 15px 20px;gap:10px}.companion-stats{font-size:11px;padding:9px}.companion-dialog .food-note{font-size:10px}.companion-dialog .food-content h2{font-size:24px}.companion-dialog #companion-toggle{font-size:12px}.cargo-counts{font-size:11px}}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#195f6c}button{font:inherit;cursor:pointer;border:0;border-radius:10px;background:#e7eee3;color:var(--ink);padding:10px 13px;transition:background .16s,transform .16s}button:hover:not(:disabled){background:#d1e3d5;transform:translateY(-1px)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default;color:#8b9790;background:#e7e8df}button:focus-visible{outline:3px solid #e8bc75;outline-offset:3px}button.primary{background:var(--teal);color:#fff9e9}button.primary:hover:not(:disabled){background:#36998b}button.primary:disabled{background:#e2e5d9;color:#88978f}h1,h2,p{margin:0}h2{font-size:21px;font-weight:600}small{font-size:11px;color:var(--muted)}[hidden]{display:none!important}
#sea{display:block;width:100%;height:100%;touch-action:none}.hud{position:fixed;inset:0;pointer-events:none}.panel{background:var(--cream);border:1px solid #fefaf340;border-radius:18px;box-shadow:0 10px 25px #0a303729;pointer-events:auto}.dark{background:#123b45eb;color:#f8f0d7;border-color:#5a96921a}.topbar{position:absolute;left:24px;right:24px;top:22px;min-height:94px;display:flex;align-items:center;padding:15px 20px;gap:24px}.brand{display:flex;align-items:center;gap:16px;min-width:260px}.brand img{height:62px;width:42px;object-fit:contain}.brand h1{font-size:27px;font-weight:500;letter-spacing:1px}.brand p{font-size:11px;color:var(--muted);margin-top:3px}.brand p span{font-size:10px;letter-spacing:1px}.resources{display:flex;justify-content:center;gap:32px;flex:1}.resource{min-width:62px}.resource small{display:block;font-size:12px;margin-bottom:1px}.resource strong{font-size:24px;font-weight:500;font-variant-numeric:tabular-nums}.resource.gold strong{color:#ad7930}.header-tools{display:grid;grid-template-columns:auto auto;gap:6px 10px;align-items:center}.header-tools button{font-size:12px;padding:9px 12px}.header-tools .food-link{background:#e8dfc9;grid-row:1/3;align-self:stretch;font-size:12px}.food-link span{display:block;font-size:17px;margin-top:2px}.tool-row{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.tool-row button.active{background:var(--gold);color:var(--ink)}.header-tools small{text-align:right;font-size:9px}.guide{position:absolute;left:326px;right:348px;top:139px;min-height:124px;display:flex;gap:18px;padding:14px 17px;align-items:center}.guide>img{width:94px;height:92px;object-fit:contain;flex:none}.guide-copy{flex:1;min-width:0}.guide-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}.guide-heading strong{font-size:14px;color:var(--gold);font-weight:500}.guide-tabs{display:flex;gap:5px}.guide-tabs button{padding:7px 11px;background:#2a535b;color:#dddcc6;font-size:12px}.guide-tabs button.active{background:var(--gold);color:var(--ink)}.guide-copy p{font-size:13px;line-height:1.8;color:#edeedc}.side{position:absolute;top:139px;bottom:153px;padding:17px 15px;display:flex;flex-direction:column;gap:10px}.craft-panel{left:24px;width:278px}.orders-panel{right:24px;width:300px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading>span{font-size:11px;color:var(--muted)}.intro{font-size:11px;color:var(--muted);padding-bottom:12px;border-bottom:1px solid #dce2d5;line-height:1.6}.recipes,.visitors{display:flex;flex-direction:column;gap:11px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#bfcabd transparent}.recipe,.visitor{border-radius:12px;background:#eeefdf;padding:15px 14px;flex-shrink:0}.recipe-heading,.visitor-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:8px}.recipe h3,.visitor h3{font-size:16px;font-weight:500;margin:0}.recipe-heading span{font-size:13px;color:var(--teal)}.recipe .cost{font-size:10px;line-height:1.6;color:var(--muted);min-height:17px;margin-bottom:7px}.recipe button,.visitor button{width:100%;font-size:12px;padding:9px 8px}.progress{height:4px;background:#d9dfd1;border-radius:5px;overflow:hidden;margin-top:7px}.progress>i{height:100%;display:block;background:var(--teal);transition:width .15s}.panel-footer{border-top:1px solid #dce2d5;padding-top:11px;margin-top:auto;font-size:11px;color:var(--muted);line-height:1.8;white-space:pre-line}.visitor-heading h3:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--npc-color,#c9ad67);margin-right:9px}.visitor-heading small{font-size:10px;font-variant-numeric:tabular-nums}.visitor .order{font-size:12px;color:var(--muted);margin:0 0 11px}.visitor.empty{opacity:.75}.visitors{flex:1}.visitor{min-height:125px}.status-hint{position:absolute;left:346px;right:368px;bottom:153px;border-radius:17px;text-align:center;padding:14px 10px;box-shadow:0 6px 20px #12383b20}.status-hint strong{display:block;font-size:14px;font-weight:400;margin-bottom:5px}.status-hint small{font-size:10px;color:#9ebfbd}.buildbar{position:absolute;left:24px;right:24px;bottom:37px;height:94px;padding:14px 15px;display:flex;gap:14px;align-items:stretch}.build-title{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:108px}.build-title strong{font-size:18px;font-weight:500}.build-title small{color:#a7c4bd;font-size:10px}.build-tools{display:flex;flex:1;gap:9px;overflow-x:auto;scrollbar-width:none}.build-tools button{flex:1;white-space:nowrap;background:#2b535a;color:#e8ead8;font-size:13px;padding:10px;min-width:100px}.build-tools button span{display:block;font-size:10px;margin-top:3px;opacity:.85}.build-tools button.active{background:var(--gold);color:var(--ink)}footer{position:absolute;left:28px;right:28px;bottom:10px;color:#a2c3be;font-size:10px;letter-spacing:1px}.footer-right{float:right;letter-spacing:0}.mobile-tabs{display:none}.sheet-close{display:block;font-size:22px;line-height:16px;padding:4px 7px;background:transparent}.side.collapsed{display:none!important}#toast{position:absolute;left:50%;bottom:245px;transform:translate(-50%,8px);background:#102f39ed;border:1px solid #bdcb9d44;color:#fff2d3;padding:12px 22px;border-radius:30px;font-size:14px;text-align:center;max-width:80%;opacity:0;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}
dialog{border:0;border-radius:22px;background:var(--cream);color:var(--ink);padding:0;max-width:calc(100vw - 30px);box-shadow:0 28px 80px #001f3680}dialog::backdrop{background:#06273480;backdrop-filter:blur(5px)}.food-dialog[open]{display:grid;grid-template-columns:230px 1fr;width:690px;overflow:hidden;min-height:400px}.dialog-close{position:absolute;right:12px;top:10px;z-index:2;background:transparent;font-size:26px;padding:2px 11px;color:#6f817a}.food-portrait{position:relative;align-self:stretch;background:linear-gradient(160deg,#e9dfbb,#d5dfc8);overflow:hidden;min-height:400px;display:flex;align-items:flex-end}.food-portrait img{position:relative;width:100%;height:360px;object-fit:contain;object-position:center bottom;z-index:1}.portrait-halo{position:absolute;top:65px;left:12px;width:220px;height:220px;border-radius:50%;background:#f9f0ce66}.food-content{padding:36px 28px 26px;display:flex;flex-direction:column;gap:15px}.eyebrow{font-size:9px;letter-spacing:2px;color:#9b895e}.food-content h2{font-size:26px}.vendor-quote{font-size:13px;color:#6e817b;line-height:1.9}.food-offer{background:#ececda;border-radius:13px;padding:15px}.food-offer-heading{display:flex;justify-content:space-between;margin-bottom:8px}.food-offer-heading strong{font-size:17px;font-weight:500}.food-offer-heading span{color:#ac792e;font-size:14px}.food-owned{font-size:12px;color:var(--muted);margin-bottom:12px}.food-offer button{width:100%}.food-note,#food-wallet{font-size:11px;color:var(--muted);line-height:1.8}.confirm-dialog{padding:30px;width:480px}.confirm-dialog h2{margin:10px 0 16px;font-size:25px}.confirm-dialog p{font-size:14px;color:var(--muted);line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}.dialog-actions button{font-size:12px}.loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#f5eedb;background:radial-gradient(ellipse at 50% 40%,#2b7a7c,#173f50);z-index:99;transition:opacity .3s}.loading h1{font-size:36px;font-weight:400;letter-spacing:9px;margin-left:9px}.loading p{font-size:13px;color:#a6c5bd;margin-top:15px}.loading-mark{font-size:70px;line-height:1;margin-bottom:20px;color:var(--gold);animation:float 2s infinite ease-in-out}@keyframes float{50%{transform:translateY(-10px)}}
@media(max-width:1200px) and (min-width:861px){.topbar{gap:12px}.brand{min-width:200px;gap:9px}.brand h1{font-size:24px}.resources{gap:14px}.resource{min-width:48px}.resource strong{font-size:20px}.header-tools .food-link{font-size:10px}.craft-panel{width:240px}.orders-panel{width:250px}.guide{left:282px;right:292px}.guide>img{width:65px}.guide-heading strong{font-size:12px}.guide-copy p{font-size:12px}.status-hint{left:282px;right:292px}.status-hint small{font-size:9px}.build-title{min-width:86px}.build-title strong{font-size:15px}.build-tools button{min-width:90px;padding:9px 6px}}
@media(max-height:760px) and (min-width:861px){.topbar{top:12px;min-height:78px;padding-top:8px;padding-bottom:8px}.brand img{height:54px}.side,.guide{top:106px}.side{bottom:138px}.guide{min-height:108px;padding:10px}.guide>img{height:82px}.recipe,.visitor{padding:10px 12px}.visitor{min-height:112px}.status-hint{bottom:138px}.buildbar{bottom:30px;height:85px}.intro{padding-bottom:8px}.panel-footer{font-size:10px}.status-hint small{display:none}.brand h1{font-size:24px}}
@media(max-width:860px){.topbar{left:10px;right:10px;top:10px;min-height:78px;padding:9px 12px;gap:8px;border-radius:15px}.brand{min-width:0;flex-shrink:0;gap:7px}.brand img{height:48px;width:29px}.brand h1{font-size:20px;letter-spacing:0}.brand p{font-size:8px}.brand p span{display:none}.resources{gap:11px;justify-content:flex-end;flex-wrap:wrap;row-gap:1px}.resource{min-width:28px}.resource small{font-size:9px;margin:0}.resource strong{font-size:15px}.resource.rep{display:none}.header-tools{display:flex;flex-direction:column;gap:4px}.header-tools .food-link,.header-tools small,#panels-toggle{display:none}.tool-row{gap:3px}.tool-row button{font-size:9px;padding:7px 6px}.guide{left:10px;right:10px;top:99px;min-height:108px;padding:9px 12px;gap:10px;border-radius:15px}.guide>img{width:64px;height:84px}.guide-heading{margin-bottom:5px}.guide-heading strong{font-size:11px}.guide-tabs button{padding:5px 8px;font-size:10px}.guide-copy p{font-size:11px;line-height:1.7}.side{top:auto;bottom:150px;left:10px;right:10px;width:auto;max-height:49dvh;z-index:5;padding:14px;display:none;box-shadow:0 0 0 100vmax #052c3344}.side.active{display:flex}.sheet-close{display:block;font-size:24px;line-height:16px;padding:4px 7px;background:transparent}.panel-heading>span{margin-left:auto}.recipes{flex-direction:row;overflow-x:auto;min-height:166px}.recipe{min-width:200px;flex:1;padding:13px}.recipe h3{font-size:15px}.visitors{max-height:36dvh}.visitor{min-height:112px}.panel-footer{font-size:10px}.mobile-tabs{display:flex;position:absolute;left:50%;transform:translateX(-50%);bottom:104px;gap:6px;pointer-events:auto;background:#173f49e8;padding:5px;border:1px solid #aec7b140;border-radius:15px}.mobile-tabs button{font-size:12px;background:#2b555c;color:#e9ead6;white-space:nowrap;min-width:70px;padding:8px 14px}.mobile-tabs button.active{background:var(--gold);color:var(--ink)}.status-hint{left:20px;right:20px;bottom:155px;padding:9px;border-radius:12px;background:#113c45b8}.status-hint strong{font-size:11px;margin:0}.status-hint small{display:none}.buildbar{left:10px;right:10px;bottom:25px;height:69px;padding:8px;border-radius:15px;gap:0}.build-title{display:none}.build-tools{gap:6px}.build-tools button{font-size:12px;min-width:83px;padding:6px 9px}.build-tools button span{font-size:9px;max-width:108px;overflow:hidden;text-overflow:ellipsis}.build-tools button.active{background:var(--gold)}footer{left:14px;bottom:7px;font-size:8px;right:14px}footer .footer-right{display:none}#toast{bottom:222px;font-size:12px;width:max-content;max-width:calc(100% - 40px);border-radius:14px}.food-dialog[open]{grid-template-columns:125px 1fr;min-height:350px}.food-portrait{min-height:350px}.food-portrait img{height:265px;width:185px;max-width:none;position:absolute;left:-25px;bottom:0}.portrait-halo{width:180px;height:180px;left:-20px;top:60px}.food-content{padding:32px 18px 20px;gap:12px}.food-content h2{font-size:21px}.eyebrow{font-size:8px;letter-spacing:1px}.vendor-quote{font-size:11px}.food-offer{padding:12px}.food-offer-heading strong{font-size:15px}.food-offer-heading span{font-size:12px}.food-note,#food-wallet{font-size:10px}.food-offer button{font-size:12px}.confirm-dialog{padding:25px}.dialog-actions{gap:5px}.dialog-actions button{font-size:11px;padding:10px}.confirm-dialog h2{font-size:23px}.loading h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Decoration tools remain folded until the player explicitly opens them. */
.buildbar{display:none}
.buildbar.open{display:flex}
.employee-controls{display:grid;grid-template-columns:1fr auto;gap:7px}
.employee-controls button{width:auto}
.employee-controls button:last-child{min-width:86px;background:#e3d5c8;color:#765044}
.employee-controls button.resume{background:#cfe4d7;color:#25685e}
.visitor.wanderer{background:linear-gradient(145deg,#f7e1e9,#ece6d9);border:1px solid #e4a9bf}
.wanderer-dialog[open]{width:760px;grid-template-columns:250px 1fr}
.wanderer-dialog .food-portrait{background:linear-gradient(155deg,#f3c9d8,#d894b1)}
.wanderer-dialog .food-portrait img{height:auto;max-height:390px;object-fit:contain}
.wanderer-offers{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:330px;overflow:auto}
.wanderer-offer{background:#f1eadf;border:1px solid #dfd4c5;border-radius:12px;padding:10px}
.wanderer-offer>div{display:flex;justify-content:space-between;gap:8px}
.wanderer-offer strong{font-size:13px}
.wanderer-offer span{font-size:10px;color:#9a6a3c}
.wanderer-offer p{font-size:10px;color:var(--muted);margin:6px 0}
.wanderer-offer button{width:100%;padding:8px;font-size:11px}
.wanderer-offer.preview{opacity:.72}
#wanderer-wallet{font-size:12px;color:#936522}
@media(max-width:860px){
  .employee-controls{grid-template-columns:1fr}
  .wanderer-dialog[open]{grid-template-columns:105px 1fr;width:calc(100% - 20px)}
  .wanderer-dialog .food-portrait img{position:static;width:100%;height:auto}
  .wanderer-dialog .food-content{padding:27px 12px 16px;gap:8px}
  .wanderer-offers{grid-template-columns:1fr;max-height:52vh}
  .buildbar:not(.open)+.mobile-tabs{bottom:25px}
}
.voyage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:440px;margin:0 auto 10px;text-align:left}.voyage-row strong{font-size:14px;margin-bottom:3px}.voyage-row small{display:block}.voyage-row button{background:var(--gold);color:var(--ink);font-size:13px;min-width:175px}.voyage-row button:hover:not(:disabled){background:#f1ca85}.voyage-row button:disabled{background:#4b6463;color:#a9c1b7}.status-hint>strong{font-size:12px}.food-dialog #eat-food{font-size:12px;background:#e2d7b9;color:#6f572c}.food-dialog #eat-food:disabled{color:#a6a392;background:#edebdf}
/* The HUD lets sea clicks pass through; voyage controls must receive pointer input. */
.status-hint{pointer-events:auto}
.voyage-actions{display:flex;gap:7px}.voyage-actions #salvage-button{min-width:105px;background:#409e89;color:#fff4d8}.voyage-actions #salvage-button:disabled{background:#456562;color:#afc5bb;font-size:10px}
@media(max-width:860px){.voyage-row{margin-bottom:7px;gap:10px;padding:0 3px}.voyage-row strong{font-size:12px}.voyage-row small{display:block!important;font-size:8px}.voyage-row button{font-size:11px;min-width:138px;padding:8px}.status-hint>strong{font-size:9px}.food-content{gap:10px}.food-note{font-size:9px}}
@media(max-width:860px){.voyage-row{flex-wrap:wrap;justify-content:center}.voyage-row>div:first-child{display:flex;align-items:center;justify-content:center;gap:8px}.voyage-actions #salvage-button{min-width:100px}.voyage-actions #voyage-button{min-width:120px;font-size:10px}.status-hint{bottom:153px}.voyage-row small{max-width:115px}}
.companion-card{display:none}.guide-tabs #companion-desktop{color:#f0cf8e;background:#36585b;white-space:nowrap}
@media(max-width:860px){.companion-card{display:flex}.guide-tabs #companion-desktop{display:none}}
.companion-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.companion-actions button{font-size:12px}.dorm-dialog{border:0;border-radius:22px;padding:30px;max-width:620px;width:min(620px,calc(100% - 28px));color:var(--ink);background:#f5efdf;box-shadow:0 24px 80px #052b31aa}.dorm-dialog::backdrop{background:#062c33aa;backdrop-filter:blur(3px)}.dorm-dialog h2{font-size:29px;font-weight:500;margin:7px 0}.dorm-intro{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:18px}.dorm-empty{text-align:center;padding:28px;border:1px dashed #9daea8;border-radius:16px;background:#e9eadf}.dorm-empty p{font-size:12px;color:var(--muted);margin:8px 0 16px}.dorm-empty button{min-width:180px}.dorm-dialog label{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.dorm-dialog select{width:100%;border:1px solid #c9d1c5;background:#fffaf0;border-radius:10px;padding:10px;color:var(--ink);font:inherit}.beds{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.bed{min-height:106px;border-radius:14px;background:#e1e8e3;border:1px solid #c7d2cc;padding:11px;display:flex;align-items:center;gap:9px;position:relative;overflow:hidden}.bed>span{position:absolute;right:8px;top:6px;font-size:10px;color:#8aa19b}.bed img{width:54px;height:75px;object-fit:contain}.bed strong{font-size:12px}.bed p,.empty-bed{font-size:10px;line-height:1.5;color:var(--muted)}.empty-bed{margin:auto;text-align:center}.dorm-dialog #dorm-action{width:100%}.dorm-dialog .food-note{margin-top:10px}.dorm-dialog[open]{animation:dialog-in .18s ease-out}@media(max-width:860px){.mobile-tabs button{min-width:58px;padding:8px 10px}.dorm-dialog{padding:25px 16px}.beds{grid-template-columns:1fr}.bed{min-height:82px}.bed img{height:60px}}
.guide-tabs #recruit-desktop{color:#f6d37e;background:#315c54;white-space:nowrap}.recruit-dialog[open]{width:820px;grid-template-columns:250px 1fr;max-height:92vh}.recruit-dialog .food-portrait{background:linear-gradient(155deg,#efe1ad,#d7c176)}.recruit-dialog .food-portrait img{height:auto;max-height:390px;object-fit:contain}.recruit-dialog .food-content{overflow:auto}.employee-offers{display:flex;flex-direction:column;gap:10px}.employee-offer{display:flex;align-items:center;gap:14px;background:#e8ebdc;border:1px solid #d5dccb;border-radius:15px;padding:12px}.employee-offer>img{width:92px;height:112px;object-fit:contain;flex:none}.employee-info{min-width:0;flex:1}.employee-info>p{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:7px}.employee-info button{width:100%;font-size:12px}.employee-timer{color:var(--teal)!important;font-variant-numeric:tabular-nums}#recruit-wallet{font-size:12px;color:#936522}#employee-meal-status{color:#8a6429}.recruit-dialog[open]{animation:dialog-in .18s ease-out}@media(max-width:1200px) and (min-width:861px){.guide-tabs #recruit-desktop{font-size:10px;padding:7px}.guide-tabs button{padding-left:8px;padding-right:8px}}@media(max-width:860px){.guide-tabs #recruit-desktop{font-size:9px;padding:5px 7px}.recruit-dialog[open]{grid-template-columns:105px 1fr;width:calc(100% - 20px)}.recruit-dialog .food-portrait img{position:static;width:100%;height:auto;max-height:none}.recruit-dialog .food-content{padding:27px 12px 16px;gap:8px}.employee-offer{gap:8px;padding:8px}.employee-offer>img{width:58px;height:76px}.employee-info>p{font-size:9px;margin-bottom:5px}.employee-offer .food-offer-heading{display:block}.employee-offer .food-offer-heading span{display:block;margin-top:2px;font-size:10px}.recruit-dialog .food-note{font-size:9px}}
.guide-tabs .task-link{color:#ffe29c;background:#2f625b;white-space:nowrap}.quest-dialog[open]{width:760px;grid-template-columns:230px 1fr}.quest-portrait.voyage-shop{background:linear-gradient(155deg,#c9e3df,#7cadab)}.quest-portrait.build-shop{background:linear-gradient(155deg,#e4d7b5,#bf9568)}.quest-portrait img{height:auto;max-height:390px;object-fit:contain}.quest-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow:auto}.quest-card{background:#e8ebdc;border:1px solid #d5dccb;border-radius:13px;padding:11px 12px}.quest-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.quest-card strong{font-size:14px;font-weight:500}.quest-card span{font-size:11px;color:var(--teal);font-variant-numeric:tabular-nums}.quest-card p{font-size:10px;color:var(--muted);margin:6px 0}.quest-card .progress{margin-bottom:7px}.quest-card button{width:100%;padding:8px;font-size:11px}.quest-card.ready{border-color:#d3b56d;background:#f0ead3}.quest-empty{text-align:center;padding:24px 12px;border:1px dashed #aebbb2;border-radius:13px;color:var(--muted);font-size:12px}.quest-refresh{font-size:11px;color:#8b6a31;font-variant-numeric:tabular-nums}.quest-dialog[open]{animation:dialog-in .18s ease-out}@media(max-width:860px){.guide-tabs .task-link{font-size:9px;padding:5px 7px}.quest-dialog[open]{grid-template-columns:105px 1fr;width:calc(100% - 20px)}.quest-dialog .food-content{padding:27px 13px 16px;gap:9px}.quest-dialog .food-portrait img{position:static;width:100%;height:auto;max-height:none}.quest-list{max-height:48vh}.quest-card{padding:9px}.quest-card strong{font-size:12px}.quest-card p,.quest-card span{font-size:9px}.quest-dialog .food-note{font-size:9px}}

.guide-tabs{overflow-x:auto;scrollbar-width:none}.guide-tabs::-webkit-scrollbar{display:none}.guide-tabs .task-link.locked{opacity:.62;background:#294b50;color:#b9c4b8}
.resource.stamina{min-width:105px;text-align:right}.resource.stamina span{display:block;margin-top:2px;color:var(--muted);font-size:9px;white-space:nowrap}.guide{padding-right:40px}.guide-close{position:absolute;right:8px;top:8px;padding:2px 8px;background:transparent;color:#b8ccc5;font-size:22px;line-height:1}.guide-close:hover:not(:disabled){background:#2a5960;color:#fff}.status-hint{left:24px;right:auto;top:139px;bottom:auto;width:278px;padding:9px;z-index:3}.status-hint .voyage-actions{display:flex;gap:7px}.status-hint .voyage-actions button{flex:1;min-width:0;width:100%;background:var(--gold);color:var(--ink);font-size:13px;padding:11px 10px}.status-hint .voyage-actions button:disabled{background:#4b6463;color:#a9c1b7}.craft-panel{top:202px}
@media(max-width:1200px) and (min-width:861px){.status-hint{width:240px}.resource.stamina{min-width:90px}.resource.stamina span{font-size:8px}}
@media(max-height:760px) and (min-width:861px){.status-hint{top:106px}.craft-panel{top:158px}}
@media(max-width:860px){.resource.stamina{min-width:42px;text-align:right}.resource.stamina span{font-size:7px;max-width:62px;white-space:normal;line-height:1.15}.status-hint{left:10px;right:auto;top:217px;bottom:auto;width:150px;padding:6px}.status-hint .voyage-actions button{font-size:11px;padding:8px 6px}.craft-panel{top:auto}.companion-card{top:270px}.guide{padding-right:34px}.guide-close{right:4px;top:4px}}

.guide-tabs #feidudu-desktop{color:#ffe589;background:#675d31;white-space:nowrap}
.delivery-dialog[open]{width:860px;grid-template-columns:260px 1fr;max-height:92vh}
.delivery-dialog .food-portrait{background:linear-gradient(155deg,#ffe985,#d7aa36)}
.delivery-dialog .food-portrait img{height:auto;max-height:390px;object-fit:contain}
.delivery-dialog .food-content{overflow:auto}
.delivery-lines{display:flex;flex-direction:column;gap:8px}
.delivery-line{display:grid;grid-template-columns:minmax(145px,1fr) 92px 92px;align-items:end;gap:8px;background:#eeead8;border:1px solid #ded6bd;border-radius:12px;padding:10px}
.delivery-line>div{align-self:center}.delivery-line strong{display:block;font-size:14px}.delivery-line small{display:block;font-size:9px;margin-top:3px}
.delivery-line label{font-size:9px;color:var(--muted)}
.delivery-line input{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid #c9cdbd;border-radius:8px;background:#fffaf0;color:var(--ink);font:inherit;font-size:12px}
.delivery-summary{background:#e5ecdf;border-radius:11px;padding:11px;color:#64766f;font-size:11px;line-height:1.6}
#delivery-submit{width:100%}
.delivery-progress{background:#ebe8d4;border:1px solid #d8cfaa;border-radius:15px;padding:18px}
.delivery-progress>strong{display:block;color:#826224;font-size:17px;margin-bottom:7px}
.delivery-progress>p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:8px}
#delivery-wallet{font-size:11px;color:#8b6a31}
@media(max-width:860px){
  .guide-tabs #feidudu-desktop{font-size:9px;padding:5px 7px}
  .delivery-dialog[open]{grid-template-columns:105px 1fr;width:calc(100% - 20px)}
  .delivery-dialog .food-portrait img{position:static;width:100%;height:auto;max-height:none}
  .delivery-dialog .food-content{padding:27px 12px 16px;gap:8px}
  .delivery-line{grid-template-columns:1fr 70px 70px;padding:8px;gap:6px}
  .delivery-line strong{font-size:12px}.delivery-line small{font-size:8px}
  .delivery-line input{padding:7px 5px}
}
.panel-heading .mini-action{font-size:9px;padding:6px 8px;background:#e3e5d8;white-space:nowrap}
.warehouse-policy-dialog{width:560px}
.warehouse-policy-dialog>p{margin-bottom:14px}
.warehouse-policy-lines{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.warehouse-policy-line{display:grid;grid-template-columns:1fr 105px 105px;align-items:end;gap:8px;padding:10px 12px;border-radius:11px;background:#ecebdd}
.warehouse-policy-line strong{align-self:center;font-size:14px}
.warehouse-policy-line label{font-size:9px;color:var(--muted)}
.warehouse-policy-line input{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid #c9cdbd;border-radius:8px;background:#fffaf0;color:var(--ink);font:inherit;font-size:12px}
#warehouse-policy-save{width:100%;margin-top:12px}
#warehouse-policy-summary{color:#708780}
@media(max-width:860px){.panel-heading .mini-action{padding:5px 6px}.warehouse-policy-dialog{padding:25px 16px}.warehouse-policy-line{grid-template-columns:1fr 78px 78px;padding:8px}.warehouse-policy-line input{padding:7px 5px}}
.voyage-route-dialog,.development-dialog{width:min(720px,calc(100% - 28px));max-height:90vh;overflow:auto}.voyage-routes,.development-milestones{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:17px 0}.voyage-route,.development-card{display:flex;flex-direction:column;gap:8px;padding:13px;border:1px solid #d5d8c8;border-radius:14px;background:#ecebdd}.voyage-route>div,.development-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.voyage-route strong,.development-card strong{font-size:14px}.voyage-route span,.development-card span{font-size:9px;color:var(--teal)}.voyage-route p,.development-card p{font-size:10px;line-height:1.55;color:var(--muted)}.voyage-route small,.development-card small{font-size:9px;line-height:1.5}.voyage-route button,.development-card button{width:100%;margin-top:auto;font-size:11px;padding:8px}.voyage-route.locked{opacity:.68}.voyage-equipment{padding:14px;border-radius:14px;background:#e2e9df}.voyage-equipment h3{font-size:14px;margin:0 0 8px}.voyage-equipment button{width:100%;margin-top:6px;text-align:left;font-size:10px}.voyage-equipment button.selected{background:#327c71;color:#fff}.voyage-equipment p{font-size:9px;margin-top:9px!important}.development-milestones{grid-template-columns:1fr 1fr}.development-card b{font-size:10px;color:#946b2d;font-weight:500}.development-card.ready{border-color:#d3b56d;background:#f0ead3}.development-card.claimed{opacity:.7}.cargo-upgrade{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:14px;background:#dfe8df}.cargo-upgrade strong{font-size:14px}.cargo-upgrade p{font-size:10px!important;margin-top:5px!important}.cargo-upgrade button{font-size:11px;min-width:150px}#order-streak{color:#9a6d2c;font-weight:600}.tool-row #development-open{background:#dce7d5;color:#2b6b61}
@media(max-width:860px){.voyage-route-dialog,.development-dialog{padding:23px 14px}.voyage-routes,.development-milestones{grid-template-columns:1fr}.voyage-route,.development-card{padding:10px}.cargo-upgrade{align-items:stretch;flex-direction:column}.cargo-upgrade button{width:100%}.tool-row #development-open{display:inline-block}}
.recipe-effect{font-size:9px;color:var(--muted);line-height:1.45;min-height:26px;margin:5px 0}
.tool-row #arcade-open{background:#d9e8e2;color:#285f5b}.arcade-dialog{width:min(610px,calc(100% - 28px));max-height:92vh;overflow:auto}.arcade-dialog>p{font-size:12px;line-height:1.65;color:var(--muted);margin:7px 0 12px}.arcade-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:13px;background:#e3ebe2;margin:14px 0}.arcade-overview strong{font-size:13px;color:#2d7068}.arcade-overview span{font-size:10px;color:var(--muted);text-align:right}.arcade-dialog #tide-match-start,.arcade-dialog #tide-match-done{width:100%;margin-top:2px}.tide-match-hud{display:flex;align-items:center;justify-content:space-between;color:#78602d;font-size:12px;font-variant-numeric:tabular-nums;margin:4px 0 10px}.tide-match-board{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:8px 0 2px}.tide-card{min-height:84px;padding:7px;border:1px solid #8aa9a3;background:linear-gradient(145deg,#2b696b,#164952);color:#fff3cb;position:relative;overflow:hidden}.tide-card:hover:not(:disabled){background:linear-gradient(145deg,#367c76,#1e5c62)}.tide-card:disabled{opacity:1}.tide-card-back{font-size:30px;line-height:1}.tide-card-face{display:none;flex-direction:column;align-items:center;gap:3px}.tide-card-face b{font-size:25px;line-height:1}.tide-card-face small{font-size:9px;color:#4e625c}.tide-card.open,.tide-card.matched{background:#eee8d5;border-color:#d2b66e}.tide-card.open .tide-card-back,.tide-card.matched .tide-card-back{display:none}.tide-card.open .tide-card-face,.tide-card.matched .tide-card-face{display:flex}.tide-card.matched{background:#d7e8d8;border-color:#7ca98a;box-shadow:inset 0 0 0 2px #f9f2d4}.tide-match-result{text-align:center;padding:18px;border-radius:14px;background:#e9e3ce;border:1px solid #dac793}.tide-match-result>strong{display:block;color:#8a6428;font-size:18px}.tide-match-result>p{font-size:12px;line-height:1.7;margin:8px 0 13px}.arcade-dialog [hidden]{display:none!important}
@media(max-width:860px){#arcade-open{display:none}.mobile-tabs button{min-width:50px;padding:8px 7px}.arcade-dialog{padding:23px 14px}.arcade-dialog h2{font-size:23px}.arcade-overview{align-items:flex-start;flex-direction:column;gap:4px;padding:10px}.arcade-overview span{text-align:left}.tide-match-board{gap:6px}.tide-card{min-height:66px;padding:5px}.tide-card-face b{font-size:21px}.tide-card-face small{font-size:8px}}
.salvage-game-dialog{width:min(560px,calc(100% - 28px));max-height:92vh;overflow:auto}.salvage-game-dialog>p{font-size:11px;line-height:1.65;color:var(--muted);margin:7px 0 12px}.salvage-game-dialog canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;border-radius:15px;border:1px solid #b9d8d0;box-shadow:inset 0 0 30px #0b455780;cursor:crosshair}.salvage-game-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:11px 13px;border-radius:12px;background:#e3ebe2}.salvage-game-controls strong{font-size:12px;color:#346f68}.salvage-game-controls button{min-width:130px}.salvage-game-result{margin-top:10px;padding:12px;border-radius:12px;background:#eee6cd;border:1px solid #d7c48f}.salvage-game-result p{font-size:12px;line-height:1.6;color:#775c2c;margin-bottom:9px}.salvage-game-result button{width:100%}.salvage-game-dialog [hidden]{display:none!important}@media(max-width:860px){.salvage-game-dialog{padding:22px 12px}.salvage-game-dialog h2{font-size:22px}.salvage-game-controls{align-items:stretch;flex-direction:column}.salvage-game-controls button{width:100%}}
.arcade-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.arcade-tabs button{display:flex;justify-content:space-between;align-items:center;background:#e7e5d8;color:#566763;border:1px solid #c8c8b7}.arcade-tabs button.selected{background:#2d7068;color:#fff;border-color:#2d7068}.arcade-tabs small{font-size:9px;opacity:.8}.arcade-panel>h3{margin:13px 0 3px;font-size:17px;color:#315f5b}.arcade-panel>p{margin:0 0 9px;font-size:12px;line-height:1.55;color:var(--muted)}.arcade-dialog #cargo-merge-start,.arcade-dialog #cargo-merge-done{width:100%;margin-top:2px}.cargo-merge-board{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:8px;border-radius:14px;background:#bba77d;touch-action:none;outline:none}.cargo-tile{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;border-radius:9px;background:#d8ccb0;color:#5a513f;box-shadow:inset 0 0 0 1px rgba(77,62,38,.12)}.cargo-tile.empty{opacity:.45}.cargo-tile b{font-size:17px}.cargo-tile small{font-size:8px;margin-top:3px}.cargo-tile[data-value="2"]{background:#dce4d3}.cargo-tile[data-value="4"]{background:#bcd7c8}.cargo-tile[data-value="8"]{background:#85b9ab;color:#173f3c}.cargo-tile[data-value="16"]{background:#e8c779;color:#674617}.cargo-tile[data-value="32"],.cargo-tile[data-value="64"],.cargo-tile[data-value="128"]{background:#d57e58;color:#fff7df}.cargo-controls{display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px 0}.cargo-controls span{display:flex;gap:4px}.cargo-controls button{width:54px;height:38px;padding:0;font-size:18px;background:#e4eadf;color:#315f5b}.cargo-controls button:disabled{opacity:.45}@media(max-width:860px){.cargo-merge-board{gap:5px;padding:6px}.cargo-tile b{font-size:14px}.cargo-tile small{font-size:7px}}
