@font-face{font-family:TideSans;src:url('./tide-sans.woff2') format('woff2');font-weight:100 900;font-display:swap}
/* English copy wraps within the same illustrated workbench. */
html:lang(en) .wordmark{letter-spacing:.2px;gap:14px}
html:lang(en) .wordmark span{letter-spacing:.5px}
html:lang(en) .requirement-copy strong{white-space:normal;overflow-wrap:break-word}
html:lang(en) .order-summary{flex-wrap:wrap;column-gap:8px;row-gap:2px}
html:lang(en) .order-summary .order-person{flex-basis:100%}
html:lang(en) .order-summary h1{font-size:18px}
html:lang(en) .catalog-chain>div{min-width:0;flex:1;text-align:center}
html:lang(en) .catalog-chain strong{white-space:normal}
html:lang(en) .intro-brand{letter-spacing:0}
html:lang(en) .intro-controls{letter-spacing:0;line-height:1.6}
html:lang(en) .intro-body h1{letter-spacing:-.5px}
html:lang(en) .scene-caption h2{font-size:clamp(19px,2.3vw,28px);max-width:430px;line-height:1.25}
html:lang(en) .info-copy{min-width:0}
@media(max-width:799px){
 html:lang(en) .wordmark{font-size:19px}
 html:lang(en) .order-summary h1{font-size:17px}
 html:lang(en) .requirement{align-items:flex-start}
 html:lang(en) .requirement-copy strong{font-size:10px}
 html:lang(en) .scene-caption h2{font-size:17px}
 html:lang(en) .intro-actions{flex-wrap:wrap;gap:12px}
 html:lang(en) .supply-copy{min-width:0}
}
:root{font-family:TideSans,'Microsoft YaHei',sans-serif;color:#294f4d;background:#174952;font-synthesis:none;--cream:#fff3d4;--ink:#294f4d;--teal:#257d79;--gold:#f0c162;--paper:#f8eacc}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(ellipse at 20% 0,#327980,transparent 62%),linear-gradient(145deg,#245d63,#123d49);display:grid;place-items:center;padding:24px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #fff6af;outline-offset:3px}button{color:inherit}button:active:not(:disabled){translate:0 1px}button svg{width:22px;height:22px;display:block}img{user-select:none;-webkit-user-drag:none}button img{pointer-events:none}body.modal-open{overflow:hidden}[hidden]{display:none!important}
.game{position:relative;width:min(1060px,100%);border:1px solid #99c3a954;border-radius:25px;overflow:hidden;background:#eef0d9;box-shadow:0 22px 80px #05273380,0 2px 3px #071d2133;isolation:isolate}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:#1f5a5c;color:var(--cream);border-bottom:1px solid #ffffff24;position:relative;z-index:4}.wordmark{color:inherit;text-decoration:none;font-size:25px;line-height:1;font-weight:850;letter-spacing:2px;text-shadow:0 2px #153d47;display:flex;align-items:center;gap:19px}.wordmark span{font-size:11px;letter-spacing:2px;font-weight:550;color:#c9d5c5;border-left:1px solid #9abaa468;padding-left:18px;text-shadow:none}.topbar-right{display:flex;gap:10px;align-items:center}.wallet{display:flex;gap:2px;align-items:center;margin-right:11px;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}.wallet img{width:37px;height:37px;object-fit:contain}.icon-button{height:36px;width:36px;display:grid;place-items:center;border:1px solid #b9d4bc53;border-radius:50%;background:#164b526b;color:#e6eed7;font-size:19px;font-weight:800}.icon-button:hover{background:#397b78}.play-space{display:grid;grid-template-columns:minmax(0,1fr) 460px;min-height:680px}.harbor{position:relative;overflow:hidden;min-height:680px;background:#279aab}.harbor canvas{width:100%;height:100%;position:absolute;inset:0;display:block;object-fit:cover}.harbor-vignette{position:absolute;inset:0;background:linear-gradient(#153c483b,transparent 20%,transparent 65%,#123e4cba);pointer-events:none}.chapter{position:absolute;left:27px;top:24px;display:flex;flex-direction:column;gap:5px;color:#fff8de;text-shadow:0 2px 4px #174d62;pointer-events:none}.chapter>span:first-child{font-size:10px;letter-spacing:3px;opacity:.8}.chapter>span:last-child{font-size:22px;font-weight:750;letter-spacing:1px}.scene-caption{position:absolute;bottom:34px;left:28px;right:28px;color:#fff4dc;max-width:380px;text-shadow:0 2px 3px #153f54}.scene-caption h2{font-size:23px;letter-spacing:1px;margin:0 0 7px;line-height:1.3}.scene-caption p{font-size:13px;color:#e5eddb;line-height:1.7;margin:0}.scene-controls{position:absolute;bottom:27px;left:25px;right:25px}.scene-button{min-height:49px;max-width:300px;margin:auto;border:1px solid #fff4c4;border-bottom:4px solid #986c32;border-radius:13px;background:linear-gradient(#ffe4a1,#edbd62);color:#634d33;padding:11px 24px;font-weight:850;font-size:16px;box-shadow:0 4px 15px #113c4866;display:flex;align-items:center;justify-content:center;gap:9px}.scene-button img{width:29px;height:29px;object-fit:contain}.scene-controls .progress{height:5px;background:#244e53a6;border-radius:20px;overflow:hidden;max-width:310px;margin:12px auto 0}.progress span{display:block;height:100%;background:#f2d386;border-radius:20px}.scene-status{text-align:center;font-size:14px;font-weight:750;color:#fff5d8;text-shadow:0 2px #194b55;letter-spacing:1px}.skip{display:block;border:0;background:none;color:#dce8d6;font-size:11px;opacity:.75;margin:9px auto -5px;padding:5px 10px}.skip:hover{opacity:1}.scene-focused .scene-caption{bottom:118px}.scene-focused .chapter{opacity:.85}
.workbench{background:radial-gradient(ellipse at 30% 0,#fff9e8,#f4e7c8 85%);padding:22px 27px 19px;position:relative;border-left:1px solid #af99643b}.workbench:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.3;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.12' filter='url(%23n)'/%3E%3C/svg%3E")}.order{position:relative;height:129px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #bda9776b;padding-bottom:18px}.order-portrait{width:71px;height:108px;position:relative;flex:none;align-self:flex-end;overflow:hidden;margin-left:-8px;margin-right:-6px}.order-portrait img{position:absolute;width:99px;height:132px;object-fit:contain;left:-10px;top:0}.order-portrait.alan img{width:99px;height:149px;top:0;left:-10px}.order-copy{flex:1;min-width:0}.order-person{font-size:10px;color:#82917b;font-weight:700;letter-spacing:1px}.order h1{font-size:19px;line-height:1.35;margin:3px 0 8px;color:#315e56;font-weight:850}.order-target{width:50px;height:52px;position:relative;flex:none;align-self:center;display:grid;place-items:center}.order-target img{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 2px 1px #ab875733)}.order-count{position:absolute;bottom:-6px;right:-2px;background:#fff5d7;border:1px solid #cfc099;border-radius:8px;min-width:31px;line-height:19px;text-align:center;font-size:11px;font-weight:800}.order-count.ready{background:#3b8171;border-color:#e7f1c7;color:#fffde5}.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-reward{font-size:11px;display:flex;align-items:center;font-weight:750;color:#94774c;flex:none}.order-reward img{height:23px;width:23px}.action-button{border:1px solid #b6d5aa;border-bottom:3px solid #2b6d59;border-radius:9px;background:linear-gradient(#66ac87,#428d73);color:#fff8df;font-size:13px;font-weight:800;min-height:34px;padding:5px 14px;box-shadow:inset 0 1px #f4ffd147}.action-button:hover:not(:disabled){filter:brightness(1.07)}.action-button:disabled{border-color:#c8c7aa;background:#e2dfc6;color:#979b80;box-shadow:none;border-bottom:2px solid #c4c7ad}.order.waiting{opacity:.7}.order-story{display:flex;gap:13px;align-items:center;width:100%}.order-story>img{width:61px;height:75px;object-fit:contain}.order-story strong{font-size:20px;display:block;line-height:1.5;color:#386457}.order-story p{font-size:12px;margin:3px 0;color:#738373;line-height:1.6}.order-story .story-mark{color:#a7833e;font-size:34px;margin:0 8px}.bench-heading{position:relative;display:flex;align-items:center;justify-content:space-between;height:44px;padding:6px 2px 3px}.bench-heading h2{font-size:12px;letter-spacing:2px;font-weight:650;color:#859580;margin:0}.bench-tools{display:flex;gap:10px;align-items:center}.bench-tools button{border:0;background:none;font-size:11px;color:#6c8a77;padding:5px;line-height:1}.bench-tools #undo-button{font-size:23px;padding:0 4px}.bench-tools button:disabled{opacity:.3}.board-frame{padding:7px;border:1px solid #b39862;border-radius:17px;background:linear-gradient(135deg,#eed49a,#cba267 54%,#ebcc91);box-shadow:inset 0 1px #fff2c6,0 4px 0 #a68353,0 7px 14px #976e3321;position:relative}.board{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #638779;border-radius:10px;overflow:hidden;background:#a8c8ae;box-shadow:inset 0 2px 3px #385c4933;position:relative;isolation:isolate}.cell{border:0;border-right:1px solid #87b39d47;border-bottom:1px solid #87b39d47;padding:4px;aspect-ratio:1;background:#bdd8ba;position:relative;outline-offset:-3px;touch-action:none;user-select:none}.cell:nth-child(even){background:#adceb0}.cell img{height:100%;width:100%;object-fit:contain;display:block;pointer-events:none;filter:drop-shadow(0 3px 2px #4d704333);transition:opacity .12s}.cell:not(.locked):hover{background:#cadfbd}.cell.selected{background:#efd68c;box-shadow:inset 0 0 0 3px #ffedaf;z-index:1}.cell.match{box-shadow:inset 0 0 0 2px #e1eda0;background:#bfd59d}.cell.locked{background:#c8bb8b;cursor:default;padding:5px}.cell.locked img{opacity:.67;filter:saturate(.63)}.cell.drag-source img{opacity:.18}.cell.drop-target{background:#eed383!important;box-shadow:inset 0 0 0 3px #fff6b3;z-index:2}.cell .level{position:absolute;right:5px;bottom:4px;min-width:15px;line-height:15px;border-radius:6px;background:#ebf2d9d6;color:#4e765d;font-size:10px;font-weight:800;text-align:center;box-shadow:0 1px 1px #7f9b7955}.cell .order-check{position:absolute;right:3px;top:3px;height:17px;width:17px;line-height:16px;font-weight:900;font-size:11px;text-align:center;border-radius:50%;background:#4b9576;border:1px solid #f4ffd3;color:#fffadd}.cell.producer{padding:0}.cell.producer img{scale:1.05}.cell .producer-plus{position:absolute;bottom:3px;right:3px;border:1px solid #ffedb5;border-radius:50%;height:20px;width:20px;background:#e4ad45;color:#fffbed;font-size:18px;line-height:17px;font-weight:800;box-shadow:0 2px 2px #906d3144}.cell.hint{animation:hint-pulse .9s ease-in-out 3}.cell.pop img{animation:item-pop .46s cubic-bezier(.22,.85,.45,1.22)}.cell.supply-pop img{animation:supply-pop .48s cubic-bezier(.17,.85,.35,1.15)}.board.inactive{pointer-events:none;filter:saturate(.67);opacity:.62}.board-effects{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:10}.merge-flight{position:absolute;object-fit:contain;animation:merge-flight .18s ease-in forwards;transform-origin:center}.merge-spark{position:absolute;width:6px;height:6px;background:#fff6c7;border-radius:2px;box-shadow:0 0 2px #ccad56;animation:merge-spark .52s ease-out forwards}.merge-ring{position:absolute;height:56px;width:56px;border:3px solid #fff8c9;border-radius:50%;translate:-50% -50%;animation:merge-ring .45s ease-out forwards}.drag-ghost{position:fixed;left:0;top:0;width:72px;height:72px;z-index:20;pointer-events:none;filter:drop-shadow(0 12px 9px #194b5259);will-change:transform}.drag-ghost img{width:100%;height:100%;object-fit:contain}
.item-info{position:relative;min-height:73px;display:flex;gap:10px;align-items:center;padding:12px 3px 5px}.info-image{width:49px;height:49px;object-fit:contain;flex:none}.info-copy{flex:1}.info-copy strong{font-weight:750;font-size:13px;display:block;line-height:1.5;color:#4b705e}.info-copy p{font-size:11px;line-height:1.5;margin:2px 0 0;color:#82907b}.chain{display:flex;gap:2px;align-items:center;flex:none}.chain img{height:23px;width:23px;object-fit:contain;opacity:.72}.chain img.current{opacity:1;filter:drop-shadow(0 1px 1px #76966c55)}.chain span{font-size:10px;color:#b1b99b}.toast{position:absolute;left:50%;bottom:22px;translate:-50% 9px;width:max-content;max-width:calc(100% - 32px);background:#244f50ed;border:1px solid #a7b9985c;color:#fff4d8;border-radius:12px;padding:11px 18px;text-align:center;font-size:12px;box-shadow:0 6px 18px #1d434533;opacity:0;pointer-events:none;z-index:9;transition:opacity .2s,translate .2s}.toast.visible{opacity:1;translate:-50% 0}
.overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px;background:#0c303cc9;backdrop-filter:blur(6px)}.dialog{width:min(500px,100%);position:relative;color:#416557;background:#f8edce;border:1px solid #fff6d5;border-radius:23px;padding:32px;box-shadow:0 18px 70px #062b4166}.dialog h1,.dialog h2{line-height:1.25;color:#2c605b;margin:0 0 15px;font-size:28px;font-weight:850}.dialog p{font-size:13px;line-height:1.8;color:#7a8975}.dialog button:focus-visible{outline-color:#498d79}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:24px;color:#77917c;width:33px;height:33px}.dialog .action-button{font-size:15px;min-height:44px;padding:8px 22px;min-width:158px}.dialog .secondary-button{font:inherit;font-size:12px;color:#859077;border:0;background:none;padding:13px 16px;margin-top:10px}.intro-dialog{padding:0;overflow:hidden;max-width:520px;background:#faefcf}.intro-scene{height:220px;position:relative;overflow:hidden;background:#39a4aa}.intro-scene .intro-harbor{width:100%;height:100%;object-fit:cover;object-position:50% 41%;filter:saturate(.84)}.intro-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 45%,#1c59613b)}.intro-scene .intro-person{position:absolute;width:168px;height:252px;right:17px;top:24px;object-fit:contain;z-index:1;filter:drop-shadow(0 4px 3px #24545438)}.intro-scene .intro-brand{position:absolute;left:29px;top:30px;z-index:2;color:#fff1c7;font-size:33px;font-weight:900;letter-spacing:3px;writing-mode:vertical-rl;text-shadow:0 3px #316a68,1px 0 #386a63}.intro-body{padding:27px 30px 30px}.intro-kicker{font-size:10px;letter-spacing:3px;color:#9c9d7e;display:block;margin-bottom:10px}.intro-body h1{font-size:25px;margin-bottom:11px}.intro-body p{margin:0 0 22px;max-width:310px}.intro-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.intro-controls{font-size:10px;color:#969e84;line-height:1.8}.help-steps{list-style:none;margin:22px 0;padding:0;display:grid;gap:15px}.help-steps li{display:flex;gap:14px;align-items:center;font-size:13px;line-height:1.7}.help-steps img{width:41px;height:41px;object-fit:contain}.help-steps strong{font-weight:750;color:#507660}.help-keyboard{border-top:1px solid #c9c4a56b;padding-top:14px;font-size:11px!important;color:#97a089!important}.dialog-footer{display:flex;gap:6px;justify-content:space-between;align-items:center}.win-dialog{text-align:center;padding:31px 32px}.win-emblem{height:95px;width:95px;object-fit:contain;margin:0 0 15px;filter:drop-shadow(0 5px 7px #a8955426)}.win-dialog h2{font-size:29px;margin-bottom:10px}.win-dialog>p{margin:0 0 20px}.win-reward{display:flex;justify-content:center;align-items:center;gap:4px;font-size:22px;font-weight:850;color:#937340;margin-bottom:21px}.win-reward img{height:37px;width:37px}.win-dialog .win-stat{font-size:11px;color:#a0a287;margin-bottom:18px}.win-actions{display:flex;flex-direction:column;align-items:center}.noscript{position:fixed;inset:30%;background:#fff0cd;padding:30px;color:#315d5a;z-index:100}
@keyframes item-pop{0%{transform:scale(.55);opacity:.5}36%{transform:scale(.55);opacity:.5}68%{transform:scale(1.17);opacity:1}100%{transform:scale(1)}}@keyframes supply-pop{0%{transform:translateY(12px) scale(.3);opacity:0}65%{transform:translateY(-3px) scale(1.12);opacity:1}100%{transform:translateY(0) scale(1)}}@keyframes hint-pulse{50%{box-shadow:inset 0 0 0 3px #fff9d4;background:#e2d698}}@keyframes merge-flight{to{transform:translate(var(--dx),var(--dy)) scale(.45);opacity:.45}}@keyframes merge-spark{from{transform:translate(-50%,-50%) scale(.7);opacity:1}to{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(100deg) scale(0);opacity:0}}@keyframes merge-ring{from{scale:.2;opacity:1}to{scale:1.65;opacity:0}}
@media(min-width:800px) and (max-height:830px){body{padding:14px}.topbar{height:64px}.play-space{min-height:628px;grid-template-columns:minmax(0,1fr) 430px}.harbor{min-height:628px}.workbench{padding:16px 24px 14px}.order{height:112px}.board-frame{padding:6px}.bench-heading{height:37px}.item-info{min-height:66px}.game{max-width:990px}}
@media(min-width:800px) and (max-height:730px){body{padding:12px}.game{max-width:910px}.play-space{grid-template-columns:minmax(0,1fr) 385px;min-height:562px}.harbor{min-height:562px}.workbench{padding:12px 22px 10px}.topbar{height:58px}.order{height:103px;padding-bottom:13px;gap:8px}.order-portrait{width:62px;height:94px}.order h1{font-size:17px}.order-reward{display:none}.order-target{width:46px}.item-info{min-height:62px;padding-top:10px}.bench-heading{height:32px}.chain img{width:20px;height:20px}.scene-caption{bottom:28px}}
@media(max-width:799px){body{display:block;padding:0;background:#1f585e}.game{width:100%;max-width:540px;min-height:100dvh;margin:auto;border:0;border-radius:0;box-shadow:0 0 35px #102f422b}.topbar{height:60px;padding:0 17px}.wordmark{font-size:22px;letter-spacing:1px}.wordmark span{display:none}.topbar-right{gap:8px}.wallet{font-size:15px;margin-right:1px}.wallet img{width:30px;height:30px}.icon-button{width:31px;height:31px;font-size:17px}.icon-button svg{height:19px;width:19px}.play-space{display:flex;flex-direction:column;min-height:0}.harbor{min-height:0;height:200px;transition:height .6s cubic-bezier(.3,.1,.25,1)}.chapter{top:16px;left:20px;gap:3px}.chapter>span:first-child{font-size:9px}.chapter>span:last-child{font-size:18px}.harbor-vignette{background:linear-gradient(#153c4820,transparent 45%,#103d4659)}.scene-caption{left:19px;right:19px;bottom:15px}.scene-caption h2{font-size:17px;margin-bottom:3px}.scene-caption p{font-size:11px}.scene-caption .secondary-caption{display:none}.scene-controls{bottom:20px;left:20px;right:20px}.workbench{padding:12px 17px 12px;border:0;border-top:2px solid #f9f1ce}.order{height:89px;padding-bottom:10px;gap:10px}.order-portrait{height:88px;width:65px}.order-portrait img{height:110px;width:83px;left:-3px}.order-portrait.alan img{height:125px;width:83px;left:-3px}.order h1{font-size:17px;margin:3px 0 6px}.order-person{font-size:9px}.order-target{width:48px}.order-target img{height:52px;width:52px}.order-reward{font-size:10px}.order-reward img{height:21px;width:21px}.action-button{min-height:30px;font-size:12px;padding:4px 12px}.bench-heading{height:33px}.board-frame{padding:6px;border-radius:14px}.board{border-radius:8px}.cell{padding:3px}.cell .level{bottom:3px;right:4px;font-size:9px;min-width:14px;line-height:14px}.cell .order-check{width:15px;height:15px;line-height:13px;font-size:10px}.item-info{min-height:62px;padding:9px 2px 3px;gap:7px}.info-image{width:40px;height:40px}.info-copy strong{font-size:12px}.info-copy p{font-size:10px}.chain img{width:22px;height:22px}.chain{gap:0}.scene-focused .harbor{height:min(68dvh,580px)}.scene-focused .scene-caption{bottom:112px}.scene-focused .scene-caption h2{font-size:24px}.scene-focused .scene-caption p{font-size:13px;max-width:285px}.scene-focused .scene-caption .secondary-caption{display:block}.scene-focused .workbench{padding-top:14px;padding-bottom:15px}.scene-focused .order{height:93px;border-bottom:0;padding-bottom:0}.scene-focused .order-story>img{width:65px;height:72px}.scene-focused .order-story strong{font-size:19px}.scene-focused .order-story p{font-size:12px}.scene-focused .chapter{top:20px}.toast{position:fixed;bottom:22px;max-width:calc(100% - 28px);font-size:11px;padding:10px 15px}.overlay{padding:20px}.dialog{padding:27px 24px}.intro-dialog{padding:0}.intro-scene{height:198px}.intro-scene .intro-person{right:4px;top:19px;width:151px;height:227px}.intro-scene .intro-brand{left:25px;top:27px;font-size:29px}.intro-body{padding:23px 25px 25px}.intro-body h1{font-size:23px}.intro-body p{font-size:12px;margin-bottom:20px}.intro-actions{gap:15px}.intro-controls{font-size:9px}.intro-body .action-button{min-width:134px}.win-dialog{padding-top:29px;padding-bottom:24px}}
@media(max-width:370px){.topbar{padding:0 13px;height:55px}.wordmark{font-size:20px}.workbench{padding-left:12px;padding-right:12px}.harbor{height:186px}.order{gap:7px}.order-reward{display:none}.order h1{font-size:16px}.chain img{height:20px;width:20px}.info-copy p{font-size:9px}.intro-actions{display:block}.intro-controls{margin-top:12px}.dialog .action-button{min-width:140px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.cell.pop img,.cell.supply-pop img{animation:none}.merge-flight,.merge-ring,.merge-spark{display:none}.harbor{transition:none}}

/* Story events use one portrait harbor, with room below the returning boat. */
.game.scene-focused{min-height:0;background:#1f585e}
.scene-focused .play-space{display:block;min-height:0}
.scene-focused .workbench{display:none}
@media(max-width:799px){.scene-focused .harbor{height:calc(100dvh - 60px)}}
@media(max-width:370px){.scene-focused .harbor{height:calc(100dvh - 55px)}}
@media(min-width:800px){
 .game.scene-focused{width:min(550px,53.625dvh)}
 .scene-focused .harbor{height:min(78dvh,800px);min-height:0}
 .scene-focused .wordmark span{display:none}
 .scene-focused .topbar{padding-left:22px;padding-right:22px} .scene-focused .topbar-right{gap:7px} .scene-focused .wallet{margin-right:2px}
}.cell:focus-visible{outline:3px solid #fff4b8;outline-offset:-4px}

/* Four compact chapters keep materials, delivery, and the harbor in one view. */
.wallet{margin-right:4px;gap:1px}.token-wallet{font-size:16px}.token-wallet img{height:32px;width:32px}
.order{display:block;height:auto;min-height:151px;padding:0 0 11px}
.order-summary{display:flex;align-items:center;gap:9px;min-height:32px;margin-bottom:8px}
.order-summary .order-person{font-size:9px;letter-spacing:0;flex:none}
.order-summary h1{font-size:17px;line-height:1.4;margin:0;flex:1}
.stage-count{font-size:10px;color:#9a9f84;font-variant-numeric:tabular-nums;letter-spacing:1px}
.requirements{display:flex;gap:6px;margin-bottom:10px}
.requirement{display:flex;align-items:center;gap:4px;flex:1;min-width:0;min-height:60px;border:1px solid #cbd0ac;border-radius:10px;padding:5px;background:#f3e9c9;text-align:left;transition:background .15s,border-color .15s,box-shadow .15s}
.requirement>img{width:40px;height:43px;flex:none;object-fit:contain;filter:drop-shadow(0 2px 1px #aa875526)}
.requirement-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.requirement-copy strong{font-size:10px;line-height:1.4;font-weight:750;white-space:nowrap;color:#667b65}
.requirement-copy>span{display:flex;flex-wrap:wrap;gap:3px;align-items:center;font-size:10px;line-height:1.3;font-weight:800;color:#758975;font-variant-numeric:tabular-nums}
.requirement-copy em{font-size:9px;line-height:1.5;font-style:normal;font-weight:500;color:#9a9e81}
.requirement.available{background:#f2e1a3;border-color:#cfa657;box-shadow:inset 0 1px #fff8d9,0 2px 0 #c1a572}
.requirement.available:hover{background:#f9e9b6}.requirement.available strong{color:#665839}.requirement.available em{color:#85632d;font-weight:800}
.requirement.delivered{background:#e2e9c5;border-color:#b7c6a3}.requirement.delivered em{color:#56836c}.requirement.delivered>img{opacity:.65}
.requirement:focus-visible{outline:3px solid #55927a;outline-offset:2px}
.order-bottom{min-height:30px}.order-reward{display:flex;font-size:10px;gap:1px}.order-reward img{height:24px;width:24px}.order-reward img:not(:first-child){margin-left:7px}
.order-bottom .action-button{min-height:30px;padding:4px 12px;font-size:11px}
.bench-tools{gap:8px}.bench-tools #supply-button{padding:5px 9px;border:1px solid #a3b793;border-radius:6px;background:#edf0d3;color:#587d65}
.dialog{max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bac6a2 transparent}
.catalog-dialog{width:min(760px,100%);padding:28px 30px 24px}
.catalog-dialog h2{margin-bottom:19px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.catalog-family{padding:13px 14px 11px;border:1px solid #d3d2af;border-radius:12px;background:#fff4d770}
.catalog-family[data-family="lamp"]{grid-column:1/-1}
.catalog-family-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.catalog-family-title h3{font-size:13px;color:#456d59;margin:0}.catalog-family-title>span{font-size:9px;color:#608b6d;border:1px solid #b8c99e;border-radius:5px;padding:2px 5px;background:#e6edce}
.catalog-chain{display:flex;align-items:center;justify-content:center;gap:10px;min-height:83px}
.catalog-chain>div{display:flex;flex-direction:column;align-items:center;min-width:64px;gap:1px}
.catalog-chain img{height:48px;width:52px;object-fit:contain;filter:drop-shadow(0 2px 1px #af966026)}
.catalog-chain strong{font-size:10px;font-weight:650;line-height:1.5;color:#75866b;white-space:nowrap}.catalog-chain small{font-size:9px;color:#a7a888;line-height:1.4}
.catalog-chain .chain-arrow{color:#b4b693;font-size:17px}.catalog-family p{font-size:10px;line-height:1.6;margin:7px 0 0;color:#8b9278}
.catalog-currencies{display:flex;gap:22px;border-top:1px solid #c7c9a4;margin:18px 0;padding:14px 0 0}
.catalog-currencies>div{display:flex;gap:6px;align-items:center;flex:1}.catalog-currencies img{height:35px;width:35px;object-fit:contain;flex:none}.catalog-currencies span{font-size:10px;line-height:1.6;color:#9c9e80}.catalog-currencies strong{display:block;font-size:11px;color:#688068;font-weight:700}
.catalog-dialog>.action-button{display:block;min-width:150px;margin:0 auto}
.supply-dialog{width:min(500px,100%);padding:30px}.supply-dialog h2{font-size:25px;margin-bottom:8px}
.supply-wallet{display:flex;gap:4px;align-items:center;font-size:12px;color:#94a07f;margin-bottom:13px}.supply-wallet img{height:30px;width:30px;object-fit:contain}.supply-wallet strong{font-size:16px;color:#668567;font-variant-numeric:tabular-nums}.supply-wallet span{margin-left:3px}
.supply-list{display:grid;gap:10px}.supply-option{display:flex;align-items:center;gap:10px;padding:12px 11px;border:1px solid #d0d0ab;border-radius:12px;background:#fff6db85}
.supply-option>img{height:56px;width:56px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 1px #a4936233)}.supply-copy{flex:1;display:flex;flex-direction:column;gap:5px}.supply-copy strong{font-size:12px;color:#5f7a60}.supply-copy span{font-size:10px;color:#9a9e7e}
.supply-actions{display:flex;flex-direction:column;gap:5px;flex:none}.supply-actions .action-button{min-width:105px;min-height:33px;padding:5px 9px;font-size:11px}.pair-button{display:flex;align-items:center;justify-content:center;gap:3px;border:1px solid #c5ad70;border-bottom:2px solid #bca067;border-radius:8px;background:#f4e2ad;color:#8f7341;padding:3px 7px;font-size:10px;font-weight:700;min-height:29px}.pair-button img{height:22px;width:22px;object-fit:contain}.pair-button:disabled{opacity:.4}.pair-button:hover:not(:disabled){background:#ffeec1}.supply-dialog>.secondary-button{display:block;margin:10px auto -8px}
.intro-scene .intro-harbor{object-position:50% 0}
@media(min-width:800px) and (max-height:830px){.order{min-height:143px;padding-bottom:9px}.order-summary{min-height:29px;margin-bottom:6px}.requirements{margin-bottom:8px}.requirement{min-height:57px}.requirement>img{width:35px;height:40px}.requirement-copy strong{font-size:9px}.order-summary h1{font-size:16px}}
@media(min-width:800px) and (max-height:730px){.order{min-height:140px}.order-summary{gap:5px}.order-summary .order-person{font-size:8px}.order-summary h1{font-size:15px}.requirement{padding:4px 2px;gap:2px}.requirement>img{width:31px;height:38px}.requirement-copy strong{font-size:8px}.requirement-copy em{font-size:8px}.requirement-copy>span{font-size:9px}.requirements{gap:4px}.order-reward img{width:21px;height:21px}}
@media(min-width:800px){.game.scene-focused{width:min(500px,48.75dvh)}.scene-focused .topbar{padding-left:18px;padding-right:18px}.scene-focused .wordmark{font-size:22px}.scene-focused .topbar-right{gap:6px}.scene-focused .wallet{font-size:15px;margin-right:0}.scene-focused .wallet img{width:30px;height:30px}.scene-focused .icon-button{height:31px;width:31px}}
@media(min-width:800px) and (max-height:730px){.scene-focused .topbar{padding:0 11px}.scene-focused .wordmark{font-size:18px;letter-spacing:.5px}.scene-focused .topbar-right{gap:3px}.scene-focused .wallet{font-size:12px}.scene-focused .wallet img{width:23px;height:24px}.scene-focused .icon-button{height:25px;width:25px}.scene-focused .icon-button svg{height:17px;width:17px}.scene-focused .scene-controls{bottom:10px}.scene-focused .scene-button{min-height:45px;padding:8px 18px;font-size:14px}}
@media(max-width:799px){
 .topbar{padding:0 14px}.wordmark{font-size:20px;letter-spacing:.5px}.topbar-right{gap:5px}.wallet,.token-wallet{font-size:13px;margin-right:0}.wallet img,.token-wallet img{width:26px;height:27px}.icon-button{width:29px;height:29px}.icon-button svg{width:18px;height:18px}
 .harbor{height:158px}.chapter{left:18px;top:12px}.chapter>span:last-child{font-size:16px}.chapter>span:first-child{font-size:8px}.scene-caption{bottom:11px;left:18px}.scene-caption h2{font-size:14px}.scene-caption p{font-size:10px}
 .order{min-height:146px;padding-bottom:9px}.order-summary{min-height:30px;margin-bottom:7px;gap:7px}.order-summary h1{font-size:16px}.order-summary .order-person{font-size:8px}.stage-count{font-size:9px}.requirements{gap:5px;margin-bottom:9px}.requirement{min-height:59px;padding:5px 3px;gap:3px}.requirement>img{height:42px;width:35px}.requirement-copy strong{font-size:9px}.requirement-copy>span{font-size:10px}.requirement-copy em{font-size:8px}.order-reward{display:flex;font-size:10px}.order-reward img{width:22px;height:22px}.order-reward img:not(:first-child){margin-left:5px}
 .catalog-dialog{padding:25px 19px 21px}.catalog-dialog h2{font-size:25px}.catalog-grid{grid-template-columns:1fr;gap:10px}.catalog-family{padding:12px}.catalog-family[data-family="lamp"]{grid-column:auto}.catalog-chain{gap:11px;min-height:80px}.catalog-chain>div{min-width:65px}.catalog-chain img{height:48px;width:52px}.catalog-family[data-family="lamp"] .catalog-chain{gap:4px}.catalog-family[data-family="lamp"] .catalog-chain>div{min-width:56px}.catalog-family[data-family="lamp"] .catalog-chain img{width:45px;height:46px}.catalog-family[data-family="lamp"] .catalog-chain strong{font-size:8px}.catalog-currencies{gap:13px;flex-direction:column}.catalog-currencies img{height:32px;width:32px}.catalog-currencies strong{display:inline;margin-right:6px}.catalog-currencies span{font-size:9px}
 .supply-dialog{padding:27px 21px}.supply-dialog h2{font-size:23px}.supply-option{padding:10px 8px;gap:8px}.supply-option>img{width:49px;height:51px}.supply-copy strong{font-size:11px}.supply-actions .action-button{min-width:100px;font-size:10px;padding:5px 8px}.pair-button{font-size:9px}
}
@media(max-width:370px){.topbar{padding:0 10px}.wordmark{font-size:18px}.topbar-right{gap:4px}.wallet,.token-wallet{font-size:12px}.wallet img,.token-wallet img{width:23px;height:24px}.icon-button{height:27px;width:27px}.harbor{height:146px}.order-summary h1{font-size:15px}.requirement>img{width:30px}.requirement-copy strong{font-size:8px}.requirements{gap:4px}.requirement{padding:5px 2px;gap:2px}.order-reward{display:flex}.catalog-family[data-family="lamp"] .catalog-chain{gap:1px}.catalog-family[data-family="lamp"] .catalog-chain>div{min-width:0;flex:1}.catalog-family[data-family="lamp"] .catalog-chain img{width:40px}.catalog-family[data-family="lamp"] .catalog-chain strong{font-size:7px}.supply-option>img{width:41px}.supply-option{gap:5px}.supply-actions .action-button{min-width:94px}.supply-copy strong{font-size:10px}}

/* An action's first pose is visible immediately; viewport easing must not consume it. */
.game.scene-focused .harbor{transition:none}
/* Landscape keeps the complete harbor and its action controls on screen. */
@media(orientation:landscape) and (max-height:600px){
 body{padding:10px;display:block}
 .game{max-width:1100px;width:100%;min-height:0;margin:auto;border-radius:14px}
 .topbar{height:50px;padding:0 15px}.wordmark{font-size:20px}.wordmark span{display:none}
 .topbar-right{gap:6px}.wallet,.token-wallet{font-size:13px}.wallet img,.token-wallet img{width:25px;height:25px}.icon-button{width:29px;height:29px}
 .play-space{display:grid;grid-template-columns:minmax(200px,1fr) minmax(300px,360px);height:calc(100dvh - 72px);min-height:0}
 .harbor{height:100%;min-height:0;transition:none}
 .workbench{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:10px 15px 14px;border:0;border-left:2px solid #f9f1ce}
 .order{min-height:135px}.order-summary{min-height:25px;margin-bottom:5px}.order-summary h1{font-size:15px}.requirements{margin-bottom:6px}.requirement{min-height:55px}
 .bench-heading{height:30px}.board-frame{max-width:310px;margin-inline:auto}.item-info{min-height:57px}
 .game.scene-focused{width:100%;max-width:1000px}.scene-focused .play-space{display:block;height:calc(100dvh - 72px)}
 .scene-focused .harbor{height:100%;min-height:0}
 .scene-focused .topbar{padding:0 15px}.scene-focused .wordmark{font-size:20px}.scene-focused .topbar-right{gap:6px}
 .scene-focused .chapter{top:13px;left:17px}.scene-focused .scene-controls{left:auto;right:18px;bottom:20px;width:200px;max-width:25%}
 .scene-focused .scene-status{font-size:11px}.scene-focused .scene-button{min-height:42px;font-size:12px;padding:8px 12px}
 .scene-focused .scene-caption{left:auto;right:18px;bottom:100px;width:200px;max-width:25%}.scene-focused .scene-caption h2{font-size:18px}
 .dialog{max-height:calc(100dvh - 24px)}.overlay{padding:12px}.intro-scene{height:130px}.intro-body{padding:17px 24px}.intro-body p{margin-bottom:13px}.intro-kicker{margin-bottom:6px}
}
