:root{--ink:#284d50;--muted:#71827a;--paper:#faf7ed;--line:#dce1d3;--accent:#d77c5c;--gold:#e8b45b;--green:#4c8269;--shadow:0 8px 30px #173f4a20;--dock:62px;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#6da7ab;color:var(--ink);font-family:'Avenir Next','Trebuchet MS',system-ui,sans-serif;font-size:14px}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible{outline:3px solid #db9264;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}svg{width:22px;height:22px;vertical-align:middle;flex-shrink:0}button svg{pointer-events:none}canvas#world{display:block;position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline:0}button,canvas{user-select:none;-webkit-user-select:none}b,strong{font-weight:700}[hidden]{display:none!important}.topbar{position:fixed;left:20px;top:16px;right:20px;display:flex;gap:16px;align-items:center;pointer-events:none;z-index:2}.topbar>*{pointer-events:auto}.town-name{display:flex;text-align:left;gap:9px;align-items:center;padding:3px 4px 3px 0}.town-name b{display:block;font-family:Georgia,serif;font-size:27px;font-weight:normal;line-height:1.05;letter-spacing:-1.2px}.town-name small{display:block;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;margin-top:4px}.brand-mark{display:flex;width:32px;height:41px;align-items:center}.brand-mark svg{width:32px;height:38px}.town-stats{display:flex;gap:6px;margin-left:auto}.town-stats button,.speed-button{background:#faf7edf0;border:1px solid #ffffff80;box-shadow:0 2px 8px #234c5010;border-radius:12px;height:39px;padding:0 11px;display:flex;gap:6px;align-items:center;font-size:13px;font-weight:bold;white-space:nowrap}.town-stats small{font-size:10px;font-weight:normal;color:var(--muted)}.town-stats svg{width:18px;height:18px}.speed-button{min-width:61px;justify-content:center;padding:0 10px;font-variant-numeric:tabular-nums}.speed-button span{font-size:9px}.resources{position:fixed;left:50%;transform:translateX(-50%);top:17px;display:flex;border:1px solid #ffffff80;background:#faf7edf5;border-radius:14px;box-shadow:var(--shadow);z-index:3;padding:7px 8px}.resource{min-width:92px;display:flex;gap:8px;padding:0 12px;align-items:center;border-right:1px solid #dee0d5;text-align:left}.resource:last-child{border:0}.resource svg{width:25px;height:25px}.resource-value{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2;display:block}.resource-rate{display:block;color:var(--muted);font-size:10px;margin-top:1px;white-space:nowrap}.negative{color:#b96a52!important}.positive{color:var(--green)!important}.quest-banner{position:fixed;left:20px;top:85px;width:277px;background:var(--paper);border:1px solid #ffffffa0;border-radius:14px;box-shadow:var(--shadow);text-align:left;display:flex;align-items:center;gap:11px;padding:12px 13px;z-index:2}.quest-number{flex-shrink:0;width:32px;height:32px;border-radius:50%;border:2px solid #d6ad65;display:grid;place-items:center;color:#8d7547;font-size:12px;font-weight:700}.quest-copy{flex:1;min-width:0}.quest-copy small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}.quest-copy b{font-size:13px;display:block}.quest-copy .mini-progress{height:3px;background:#e6e6d9;border-radius:3px;display:block;margin-top:7px;overflow:hidden}.quest-copy .mini-progress i{display:block;background:#d2a452;height:100%;border-radius:3px}.quest-arrow{font-size:20px;color:#9caa97}.weather-pill{position:fixed;top:87px;right:20px;display:flex;gap:8px;align-items:center;background:#faf7ede5;box-shadow:0 3px 16px #173e4910;border:1px solid #ffffff60;border-radius:12px;padding:8px 11px;z-index:2;cursor:pointer}.weather-pill svg{width:22px;height:22px}.weather-pill b{font-size:12px;display:block}.weather-pill small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.tide-meter{height:22px;width:4px;background:#dce2d9;border-radius:3px;overflow:hidden;margin-left:5px;position:relative}.tide-meter i{position:absolute;bottom:0;width:100%;background:#6c9b9d;border-radius:3px}.map-controls{position:fixed;right:20px;bottom:calc(var(--dock) + var(--safe) + 20px);display:flex;flex-direction:column;border-radius:12px;box-shadow:var(--shadow);overflow:hidden;background:#faf7edf2;z-index:3;transition:bottom .2s}.map-controls button{width:37px;height:35px;font-size:23px;border-bottom:1px solid #e4e4d9;display:grid;place-items:center}.map-controls button:last-child{border:0;height:36px}.map-controls svg{width:17px;height:17px}.tide-notice{position:fixed;right:20px;top:154px;max-width:230px;background:#fff2d9ed;padding:8px 12px;border-radius:10px;font-size:11px;z-index:2}.dock{position:fixed;bottom:calc(12px + var(--safe));left:50%;transform:translateX(-50%);display:flex;align-items:center;width:386px;max-width:calc(100% - 24px);height:59px;z-index:6;background:var(--paper);border:1px solid #ffffffc0;border-radius:17px;box-shadow:0 6px 25px #173e4933;padding:5px}.dock button{flex:1;height:47px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;position:relative;font-size:11px}.dock button span{display:flex;align-items:center}.dock button svg{width:21px;height:21px}.dock button.active{background:#2d5857;color:var(--paper)}.dock button i{position:absolute;width:6px;height:6px;border-radius:50%;background:#d68459;right:15px;top:8px}.dock button:first-child:not(.active){background:#eeeadd}.bottom-panel{position:fixed;bottom:calc(82px + var(--safe));left:50%;transform:translateX(-50%);width:640px;max-width:calc(100% - 24px);border-radius:17px;background:var(--paper);border:1px solid #fff9;box-shadow:var(--shadow);z-index:5;overflow:hidden}.panel-title{display:flex;align-items:center;padding:11px 15px 7px;gap:8px}.panel-title h3{margin:0;font-size:15px}.panel-title small{color:var(--muted);font-size:11px}.panel-title .close{margin-left:auto}.close{width:29px;height:29px;border-radius:50%;background:#e9eade;display:grid;place-items:center;font-size:19px;flex-shrink:0}.close svg{width:16px;height:16px}.build-tabs{display:flex;gap:4px;padding:7px 12px 0;border-bottom:1px solid #e8e7dc}.build-tabs button{flex:1;max-width:125px;font-size:11px;padding:8px 5px;color:var(--muted);border-bottom:2px solid transparent}.build-tabs .active{color:var(--ink);border-color:var(--accent);font-weight:700}.build-cards{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding:8px 12px 12px;scrollbar-width:thin;scrollbar-color:#b7c6b4 transparent}.build-card{min-width:103px;width:103px;border:1px solid #e1e2d4;border-radius:11px;position:relative;flex-shrink:0;background:#f0f0e4;padding:1px 5px 7px;display:flex;align-items:center;flex-direction:column;justify-content:flex-end}.build-card:hover{background:#e7ebdd;border-color:#a5bba6}.build-card img{height:63px;width:85px;object-fit:contain;pointer-events:none}.build-card b{font-size:11px;white-space:nowrap;display:block;margin-top:-3px}.build-card small{font-size:10px;color:var(--muted);margin-top:5px;display:flex;gap:5px}.build-card small svg{width:12px;height:12px}.build-card.locked{opacity:.6}.build-card .lock-label{font-size:9px;margin-top:5px;display:block}.build-card.recommended{border-color:#d7ad65;background:#f4efdc}.build-card .recommended-dot{position:absolute;top:5px;right:5px;font-size:9px;background:#e4b65d;color:#574d2e;border-radius:5px;padding:2px 4px}.placement-panel{padding:12px 15px 13px}.placement-header{display:flex;gap:10px;align-items:center}.placement-header img{width:66px;height:55px;object-fit:contain;margin:-8px 0 -5px -5px}.placement-header h3{font-size:16px;margin:0 0 5px}.placement-header .close{margin-left:auto}.cost{display:flex;flex-wrap:wrap;gap:11px;align-items:center;font-size:12px;font-weight:700}.cost>span{display:flex;gap:3px;align-items:center}.cost svg{width:16px;height:16px}.placement-desc{font-size:11px;color:var(--muted);line-height:1.5;margin:9px 0}.placement-footer{display:flex;gap:10px;align-items:center}.placement-status{flex:1;font-size:11px;line-height:1.5}.placement-footer .primary{min-width:128px}.primary,.secondary,.danger-button{border-radius:10px;padding:11px 18px;font-size:12px;font-weight:bold;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:40px}.primary{background:#2e5c57;color:#fffaf0;box-shadow:0 3px 0 #234640}.primary:hover:not(:disabled){background:#386b62}.secondary{background:#e9ebdf;color:var(--ink);border:1px solid #d9decf}.danger-button{color:#a55a46;background:#f4e5da}.small-button{padding:8px 12px;min-height:34px;font-size:11px}.large{font-size:15px;min-height:54px;border-radius:12px;letter-spacing:.2px}.inspect{padding:11px 15px 13px}.inspect-head{display:flex;gap:10px;align-items:center}.inspect-head img{width:76px;height:61px;object-fit:contain;margin:-7px -3px}.inspect-head h3{margin:0;font-size:16px}.level-tag{font-size:9px;letter-spacing:1px;color:#98773e;text-transform:uppercase;display:block;margin-bottom:4px}.inspect-head .close{margin-left:auto;align-self:flex-start}.status-line{font-size:10px;margin-top:5px;color:var(--green);display:flex;align-items:center;gap:4px;flex-wrap:wrap}.warning{color:#b66e4d!important}.inspect-info{font-size:11px;color:var(--muted);line-height:1.6;margin:8px 0}.inspect-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.inspect-actions .primary{flex:1}.icon-button{width:34px;height:35px;background:#e9ebdf;border-radius:9px;display:grid;place-items:center}.icon-button svg{width:17px;height:17px}.map-hint{position:fixed;left:50%;top:48%;transform:translate(-50%,-50%);background:#faf7edef;border-radius:10px;box-shadow:var(--shadow);font-size:11px;padding:8px 12px;pointer-events:none;z-index:4;text-align:center;max-width:230px}.welcome{position:fixed;inset:0;z-index:10;pointer-events:none;background:linear-gradient(90deg,#dae8dba0 0%,#dce8dc50 35%,transparent 65%)}.welcome-top{position:absolute;top:16%;left:9%;color:#234b4e;text-shadow:0 1px 20px #ddede280}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700;display:block}.welcome h1{font-family:Georgia,'Times New Roman',serif;font-weight:normal;font-size:88px;letter-spacing:-5px;margin:9px 0 24px;line-height:1.1}.welcome h1 span{font-size:31px;color:#eab55a;position:relative;top:-38px;left:2px}.welcome-top p{font-family:Georgia,serif;font-size:30px;line-height:1.3;letter-spacing:-.6px;margin:0}.welcome-bottom{position:absolute;left:9%;bottom:12%;width:325px;pointer-events:auto}.welcome-bottom>p{font-size:13px;line-height:1.7;margin-bottom:22px}.welcome .primary{width:100%;justify-content:space-between;padding-left:23px;padding-right:23px}.welcome .primary span{font-size:23px;font-weight:normal}.welcome-meta{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:15px;font-size:10px}.welcome-meta button{padding:5px;background:#f8f6ea77;border-radius:7px}.welcome-meta svg{width:17px;height:17px}.modal-backdrop{position:fixed;inset:0;background:#153e4c66;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade-in .17s ease}.modal{width:510px;max-width:100%;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:var(--paper);border-radius:20px;box-shadow:0 20px 100px #15374166;overflow:hidden}.modal.wide{width:680px}.modal-header{display:flex;gap:10px;align-items:center;padding:22px 24px 15px;border-bottom:1px solid #e7e7d9}.modal-header h2{font-family:Georgia,serif;font-weight:normal;letter-spacing:-.5px;font-size:29px;margin:0}.modal-header p{color:var(--muted);font-size:11px;margin:5px 0 0}.modal-header .close{margin-left:auto;align-self:flex-start}.modal-body{overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 24px;scrollbar-width:thin}.modal p{line-height:1.6}.modal-intro{font-size:12px;margin:0 0 18px;color:var(--muted)}.modal-tabs{display:flex;gap:5px;background:#eaece0;border-radius:10px;padding:4px;margin:0 0 20px}.modal-tabs button{flex:1;font-size:11px;padding:9px 6px;border-radius:7px}.modal-tabs button.active{background:var(--paper);box-shadow:0 2px 5px #294c4a10;font-weight:700}.chapter-kicker{color:#a67d3f;font-size:10px;text-transform:uppercase;letter-spacing:1.7px}.chapter-title{font:normal 27px Georgia,serif;letter-spacing:-.6px;margin:9px 0 13px}.character-note{background:#eeefdf;border-radius:12px;padding:14px;display:flex;gap:11px;margin:13px 0 18px}.avatar{border-radius:50%;width:43px;height:43px;flex-shrink:0;background:#dfb787;display:grid;place-items:center;font-size:24px;overflow:hidden}.character-note p{font-size:12px;line-height:1.6;margin:0}.character-note small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.goal-list{display:grid;gap:8px;margin:15px 0 20px}.goal-item{display:flex;gap:10px;align-items:center;padding:11px 12px;border:1px solid #dfe3d5;border-radius:10px;background:#f4f3e8;font-size:12px}.goal-item .check{width:23px;height:23px;flex-shrink:0;border:1px solid #cbd5c5;border-radius:50%;display:grid;place-items:center;color:#899c85;font-size:12px}.goal-item.complete{background:#e9efdf}.goal-item.complete .check{background:#537c62;color:#fff;border:0}.goal-item span:nth-child(2){flex:1}.goal-item b{font-size:11px}.reward-box{background:#f1e9d4;border:1px solid #e9dbb8;padding:13px;border-radius:11px;display:flex;justify-content:space-between;gap:9px;align-items:center;font-size:11px;flex-wrap:wrap}.reward-box small{color:#947a47;font-size:9px;letter-spacing:1px;display:block;margin-bottom:4px}.story-next{display:flex;gap:7px;justify-content:center;margin-top:19px}.story-next i{width:7px;height:7px;border-radius:50%;background:#dce1d2}.story-next i.done{background:#698b6a}.story-next i.current{background:#d5a452}.order-card{border:1px solid #dce1d1;border-radius:13px;padding:14px;margin-bottom:10px;background:#f5f4e8}.order-head{display:flex;gap:9px;align-items:center;margin-bottom:11px}.order-head .avatar{width:32px;height:32px;font-size:19px}.order-head b{font-size:12px;display:block}.order-head small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.order-head .stamp{margin-left:auto;font-size:9px;color:#a1834d;border:1px solid #d5bf8c;border-radius:5px;padding:4px;transform:rotate(-5deg);letter-spacing:.6px}.order-bottom{display:flex;gap:10px;align-items:center;justify-content:space-between}.order-trade{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.order-trade .cost{font-size:13px;gap:6px}.order-trade .arrow{color:#a5af99}.order-card .primary{min-width:84px;min-height:37px;padding:8px 11px;font-size:11px}.muted{color:var(--muted)}.small{font-size:11px}.divider{height:1px;background:#dfe3d5;margin:19px 0}.empty-state{text-align:center;padding:20px 10px;font-size:12px;color:var(--muted)}.empty-state>svg{width:45px;height:45px;display:block;margin:0 auto 15px;color:#98ad96}.route-card{border:1px solid #dde0d0;background:#f0f0e1;border-radius:13px;overflow:hidden;margin-bottom:12px}.route-scene{height:80px;position:relative;overflow:hidden;background:#c1d8cf;display:flex;align-items:center;justify-content:center}.route-scene .route-symbol{font-size:42px;filter:drop-shadow(0 6px 2px #315e4915)}.route-scene:before,.route-scene:after{content:'';position:absolute;border:1px solid #f3f5dd66;border-radius:50%;width:280px;height:40px;transform:rotate(-12deg);left:-20px;bottom:1px}.route-scene:after{width:140px;height:20px;left:65%;bottom:33px}.route-card:nth-child(2) .route-scene{background:#d0d9b8}.route-card:nth-child(3) .route-scene{background:#a7bec9}.route-content{padding:13px}.route-content h3{font:normal 22px Georgia,serif;margin:0 0 6px}.route-content p{font-size:11px;color:var(--muted);margin:0 0 12px}.route-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.voyage-progress{height:7px;border-radius:8px;background:#dce2d2;overflow:hidden;margin:17px 0 8px}.voyage-progress i{height:100%;display:block;background:#6f9c86;border-radius:8px}.voyage-hero{font-size:56px;text-align:center;margin:16px 0}.voyage-clock{text-align:center;font-size:12px;color:var(--muted)}.relic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.relic-card{border:1px solid #dce0d1;border-radius:12px;background:#f0f0e3;padding:15px 8px 10px;text-align:center;min-height:125px}.relic-card .relic-icon{font-size:30px;display:block;margin-bottom:10px}.relic-card b{font-size:11px;display:block;line-height:1.3}.relic-card small{font-size:9px;color:var(--muted);display:block;line-height:1.5;margin-top:5px}.relic-card.unfound{opacity:.48;filter:grayscale(1)}.relic-choice{display:flex;gap:10px;border:1px solid #d5dbca;border-radius:12px;padding:14px;text-align:left;width:100%;background:#eeefdf;margin-bottom:10px;align-items:center}.relic-choice:hover{background:#e2e9d5;border-color:#a6ba9b}.relic-choice .relic-icon{font-size:32px;width:40px;flex-shrink:0;text-align:center}.relic-choice b{font-size:13px;display:block;margin-bottom:5px}.relic-choice small{font-size:11px;color:var(--muted);line-height:1.5}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:16px 0}.stat-card{background:#eeefdf;border-radius:11px;padding:13px;font-size:10px;color:var(--muted)}.stat-card b{display:block;font:normal 25px Georgia,serif;color:var(--ink);margin:5px 0}.stat-card svg{width:17px;height:17px;margin-right:4px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:38px;font-size:12px}.setting-row .secondary{min-width:85px;min-height:33px;padding:7px 12px}.setting-row small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:3px}.settings-actions{display:flex;flex-wrap:wrap;gap:8px}.settings-actions button{flex:1;white-space:nowrap}.name-input{border:1px solid #cbd7c5;border-radius:8px;padding:10px 12px;background:#fffdf4;color:var(--ink);width:100%;margin:10px 0 14px}.help-row{display:flex;gap:10px;margin:15px 0}.help-row>span{width:31px;flex-shrink:0}.help-row p{margin:0;font-size:12px;line-height:1.6}.help-row b{display:block;margin-bottom:3px}.color-swatches{display:flex;gap:9px;margin:13px 0}.swatch{width:32px;height:32px;border-radius:50%;border:3px solid var(--paper);box-shadow:0 0 0 1px #bbcdb7}.swatch.active{box-shadow:0 0 0 2px #305a52}.color-swatches .locked{filter:grayscale(1);opacity:.3}.celebrate{text-align:center}.celebrate .celebrate-icon{display:block;font-size:44px;margin:4px 0 16px}.celebrate h3{font:normal 30px Georgia,serif;margin:0 0 13px}.celebrate p{font-size:12px;color:var(--muted);margin:12px 0 20px}.celebrate .reward-box{justify-content:center;margin:20px 0}.celebrate .primary{width:100%}.footnote{font-size:10px;line-height:1.6;color:var(--muted);margin:17px 0 0}.log-entry{font-size:11px;line-height:1.5;padding:10px 0;border-bottom:1px solid #e1e4d5;display:flex;gap:8px}.log-entry small{color:#9b9d83;flex-shrink:0;min-width:45px}.log-entry:last-child{border:0}.weather-row{display:flex;gap:11px;align-items:center;padding:12px;border-radius:11px;background:#edefdf;margin:9px 0}.weather-row b{font-size:12px;display:block}.weather-row small{font-size:10px;color:var(--muted);display:block;margin-top:5px;line-height:1.5}.weather-row svg{width:30px;height:30px}.tide-chart{height:83px;position:relative;margin:22px 0 11px;background:linear-gradient(#b2d3d333,transparent);border-radius:12px;overflow:hidden}.tide-chart svg{width:100%;height:100%}.tide-chart .tide-cursor{position:absolute;top:0;bottom:0;width:1px;background:#b67d4c}.tide-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}#toastRoot{position:fixed;top:167px;left:50%;transform:translateX(-50%);z-index:30;display:flex;flex-direction:column;gap:7px;pointer-events:none;width:max-content;max-width:calc(100% - 28px)}.toast{background:#254e4eef;color:#fff9ea;border:1px solid #64857a;border-radius:12px;box-shadow:var(--shadow);padding:11px 17px;display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.4;animation:toast-in .22s ease;max-width:350px}.toast.reward-toast{background:#fbf3db;color:#685733;border-color:#e2c58b}.toast svg{width:19px;height:19px}.toast.out{opacity:0;transition:opacity .3s}.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes toast-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1400px){.welcome-top{left:12%}.welcome-bottom{left:12%}.welcome h1{font-size:105px}.welcome-top p{font-size:37px}}@media(max-width:1000px){.resources{top:75px;left:20px;transform:none}.resource{min-width:80px;padding:0 10px}.quest-banner{top:143px}.weather-pill{top:143px}.tide-notice{top:205px}#toastRoot{top:211px}}@media(max-width:600px){:root{--dock:67px}.topbar{top:12px;left:14px;right:14px;gap:7px}.brand-mark{width:25px}.brand-mark svg{width:25px;height:33px}.town-name{gap:6px}.town-name b{font-size:24px;letter-spacing:-1.1px}.town-name small{font-size:8px;letter-spacing:1px;margin-top:2px}.town-stats{gap:4px}.town-stats button{height:34px;padding:0 7px;border-radius:10px;gap:4px;font-size:11px}.town-stats svg{width:15px;height:15px}.town-stats small{font-size:9px}.speed-button{height:34px;min-width:43px;padding:0 7px;gap:3px;font-size:11px;border-radius:10px}.speed-button span{font-size:8px}.resources{left:12px;right:12px;top:65px;transform:none;padding:7px 2px;border-radius:12px;justify-content:space-around}.resource{min-width:0;flex:1;padding:0 8px;gap:6px}.resource svg{width:21px;height:21px}.resource-value{font-size:15px}.resource-rate{font-size:9px}.quest-banner{left:12px;top:121px;width:calc(100% - 125px);padding:9px 10px;gap:8px;border-radius:12px}.quest-number{width:27px;height:27px;font-size:10px}.quest-copy b{font-size:11px;line-height:1.3}.quest-copy small{font-size:8px;letter-spacing:.7px;margin-bottom:3px}.quest-copy .mini-progress{margin-top:5px}.quest-arrow{font-size:17px}.weather-pill{right:12px;top:122px;width:102px;padding:9px 7px;gap:5px;border-radius:11px;height:58px}.weather-pill svg{width:18px;height:18px}.weather-pill b{font-size:10px}.weather-pill small{font-size:8px;line-height:1.3}.tide-meter{height:23px;flex-shrink:0;width:3px;margin-left:auto}.tide-notice{top:190px;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);font-size:10px;padding:7px 10px}.dock{height:57px;bottom:calc(10px + var(--safe));max-width:calc(100% - 24px);width:370px;border-radius:16px}.dock button{height:45px;font-size:10px;gap:5px}.dock button svg{width:20px;height:20px}.dock button i{right:9px;top:5px}.bottom-panel{bottom:calc(77px + var(--safe));max-width:calc(100% - 20px);border-radius:15px}.build-tabs{padding:4px 8px 0}.build-tabs button{font-size:10px;padding:9px 3px}.build-cards{padding:7px 8px 9px;gap:6px}.build-card{min-width:90px;width:90px;padding-bottom:7px}.build-card img{width:78px;height:56px}.build-card b{font-size:10px}.build-card small{font-size:9px;gap:4px}.build-card small svg{width:11px;height:11px}.build-card .lock-label{font-size:8px}.panel-title{padding:8px 12px 4px}.panel-title h3{font-size:13px}.panel-title small{font-size:10px}.placement-panel{padding:11px 12px}.placement-header h3{font-size:15px}.placement-header img{width:59px;height:49px}.placement-desc{font-size:10px;margin:8px 0}.placement-footer .primary{min-width:112px;padding:10px 13px;font-size:11px}.placement-status{font-size:10px}.inspect{padding:10px 12px}.inspect-head h3{font-size:15px}.inspect-info{font-size:10px}.inspect-actions .primary{font-size:11px;padding:9px 12px;min-height:37px}.cost{font-size:11px;gap:7px}.cost svg{width:14px;height:14px}.map-controls{right:13px;bottom:calc(83px + var(--safe))}.map-controls button{width:33px;height:31px;font-size:21px}.map-controls button:last-child{height:32px}.welcome{background:linear-gradient(#d6e6d955,transparent 55%,#c3dcd269)}.welcome-top{left:26px;top:8%}.eyebrow{font-size:8px;letter-spacing:1.8px}.welcome h1{font-size:62px;letter-spacing:-3px;margin:8px 0 16px}.welcome h1 span{font-size:22px;top:-26px;left:2px}.welcome-top p{font-size:24px;line-height:1.22}.welcome-bottom{left:26px;right:26px;bottom:6%;width:auto}.welcome-bottom>p{font-size:11px;line-height:1.6;margin-bottom:14px}.welcome .primary{min-height:50px;font-size:13px}.welcome-meta{font-size:9px;margin-top:11px}.modal-backdrop{padding:12px;align-items:center}.modal{max-height:calc(100dvh - 24px);border-radius:17px}.modal-header{padding:18px 18px 13px}.modal-header h2{font-size:26px}.modal-header p{font-size:10px}.modal-body{padding:16px 18px 20px}.modal-tabs{margin-bottom:16px}.modal-tabs button{font-size:10px;padding:8px 3px}.chapter-title{font-size:25px}.character-note{padding:12px;gap:9px}.character-note p{font-size:11px}.avatar{width:37px;height:37px;font-size:22px}.goal-item{padding:10px;font-size:11px}.goal-item b{font-size:10px}.reward-box{font-size:10px}.order-card{padding:12px}.order-head b{font-size:11px}.order-head small{font-size:9px}.order-trade{gap:6px}.order-trade .cost{font-size:12px;gap:6px}.order-card .primary{min-width:69px;padding:8px 10px;font-size:10px}.order-head .stamp{font-size:8px}.relic-grid{gap:6px}.relic-card{padding:12px 6px 9px;min-height:118px}.relic-card b{font-size:10px}.relic-card small{font-size:8px}.relic-card .relic-icon{font-size:27px}.route-scene{height:65px}.route-content h3{font-size:21px}#toastRoot{top:191px}.toast{font-size:11px;padding:10px 13px}.route-bottom .primary{font-size:10px;padding:9px 11px}.map-hint{font-size:10px}.settings-actions .secondary{font-size:10px;padding:9px 10px}}@media(max-height:500px) and (min-width:600px){.topbar{top:9px;left:14px;right:14px}.town-name b{font-size:23px}.town-name small{font-size:8px}.brand-mark{width:25px}.brand-mark svg{width:25px}.town-stats{margin-left:0}.resources{left:auto;right:14px;top:8px;padding:5px 3px}.resource{padding:0 7px;min-width:64px;gap:4px}.resource svg{width:19px;height:19px}.resource-value{font-size:14px}.resource-rate{font-size:8px}.speed-button{margin-left:auto;margin-right:305px;height:33px;min-width:45px;font-size:11px}.quest-banner{left:14px;top:64px;width:230px;padding:8px 10px}.quest-number{width:25px;height:25px;font-size:10px}.quest-copy b{font-size:11px}.quest-copy small{font-size:8px}.weather-pill{top:64px;right:14px;padding:6px 9px}.weather-pill b{font-size:10px}.weather-pill small{font-size:9px}.dock{height:48px;width:334px;bottom:8px}.dock button{height:37px;font-size:10px}.dock button svg{width:18px;height:18px}.bottom-panel{bottom:64px;width:480px}.build-cards{padding:4px 8px 8px}.build-card img{height:44px}.build-card{min-width:88px;width:88px}.build-card b{font-size:10px}.build-tabs button{padding:6px 4px}.panel-title{padding:5px 10px 0}.map-controls{right:14px;bottom:68px}.map-controls button{width:29px;height:27px;font-size:18px}.map-controls button:last-child{height:29px}.welcome-top{top:12%;left:7%}.welcome h1{font-size:59px;margin-bottom:15px}.welcome h1 span{top:-25px;font-size:23px}.welcome-top p{font-size:23px}.welcome-bottom{left:7%;bottom:8%;width:270px}.welcome-bottom>p{font-size:10px;margin-bottom:10px}.welcome .primary{min-height:43px;font-size:12px}.welcome-meta{font-size:8px;margin-top:10px}.eyebrow{font-size:8px}.modal-header{padding:13px 18px 10px}.modal-header h2{font-size:24px}.modal-body{padding:13px 18px 18px}.modal-backdrop{padding:10px}.modal{max-height:calc(100dvh - 20px)}#toastRoot{top:122px}.tide-notice{top:119px}.placement-panel{padding:8px 12px}.placement-desc{margin:5px 0;font-size:10px}.placement-header img{height:40px}.inspect-info{margin:5px 0}.inspect{padding:8px 12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-height:500px) and (min-width:600px){.bottom-panel{left:auto;right:12px;transform:none;width:260px;bottom:64px;max-height:calc(100dvh - 126px);overflow-y:auto}.panel-title h3{font-size:12px}.panel-title small{font-size:9px}.build-tabs{padding-left:5px;padding-right:5px}.build-tabs button{font-size:9px}.build-cards{padding-left:7px;padding-right:7px}.build-card{min-width:84px;width:84px}.map-controls{right:auto;left:12px;bottom:67px!important}.placement-header{gap:5px}.placement-header h3{font-size:13px}.placement-header img{width:48px}.placement-header .icon-button{width:25px}.placement-footer .primary{min-width:92px;padding:9px 11px;font-size:10px}.placement-status{font-size:10px}.placement-desc{font-size:10px}.placement-header .cost{font-size:10px;gap:5px}.inspect-head h3{font-size:13px}.inspect-head img{width:60px}.inspect-info{font-size:10px}.inspect-actions .primary{font-size:10px;padding:8px}.town-stats{display:none}.speed-button{margin-left:auto;margin-right:300px}#toastRoot{top:120px;left:15px;transform:none;max-width:310px}.toast{font-size:10px;padding:8px 11px}.tide-notice{top:118px;font-size:10px;max-width:210px}}
.charter-card{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid #dfe3d5}.charter-card.complete{opacity:.6}.charter-card>div{flex:1}.charter-symbol{font-size:27px;width:36px;flex-shrink:0;text-align:center}.charter-card h4{font-family:Georgia,serif;font-weight:normal;font-size:18px;margin:0 0 5px}.charter-card p{font-size:10px;color:var(--muted);margin:0;line-height:1.6}.charter-card .secondary{font-size:10px;min-width:62px;padding:8px 10px}.charter-card:last-child{border:0}@media(max-width:600px){.charter-card{gap:8px}.charter-symbol{font-size:24px;width:29px}.charter-card h4{font-size:17px}.charter-card p{font-size:9px}.charter-card .secondary{min-width:54px;padding:7px 8px}}
canvas#world{cursor:grab}canvas#world:active{cursor:grabbing}body.placing canvas#world{cursor:crosshair}
