:root{--bg:#0b1924;--surface:#112632;--surface-2:#183442;--line:#b0c4c51e;--text:#edf3ef;--muted:#92aeb3;--teal:#5bbcac;--gold:#dcba7c;--gold-light:#f4d9a8;--danger:#e39c85;--sans:Inter,'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;--serif:var(--sans);color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 30% 0%,#18404c77,transparent 55%),var(--bg);color:var(--text);font:14px/1.55 var(--sans);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.36}a{color:var(--gold-light);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--teal);outline-offset:4px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-family:var(--sans);line-height:1.2;letter-spacing:-.55px;font-weight:650}h1{font-size:28px}h2{font-size:26px}h3{font-size:18px}small{font-size:11px}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:9px;font-weight:750;letter-spacing:1.8px;color:var(--teal);line-height:1.6}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:10px 17px;border:1px solid transparent;border-radius:7px;font-weight:650;font-size:12px;white-space:nowrap;transition:background .18s,transform .18s}.primary{color:#172625;background:linear-gradient(120deg,#edcd97,#ccaa6d);box-shadow:0 3px 12px #0002}.primary:hover:not(:disabled){background:#f3d9a8;transform:translateY(-1px)}.secondary{background:#203e4a;color:#d9e8e2;border-color:#819ca033}.secondary:hover:not(:disabled){background:#2a4b56;border-color:#8caeb766}.quiet{background:none;border:0;padding:5px 0;color:#a5c2c3;font-size:11px;text-align:left}.quiet:hover:not(:disabled){color:var(--gold-light)}.danger{color:#ecae97}.icon-button{height:34px;width:34px;display:inline-grid;place-items:center;border:1px solid #a4b7b428;background:#18323ccc;border-radius:7px;color:#dceae6;font-size:18px}.icon-button:hover{background:#28505a}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-70px;left:16px;z-index:100;background:var(--gold);color:var(--bg);padding:12px}.skip-link:focus{top:12px}
/* The 16 illustrations are drawn directly from the transparent 4 × 4 GPT Image atlas. */
.item-art{width:64px;height:64px;display:inline-block;flex-shrink:0;vertical-align:middle;background-image:url('assets/items-modern-v2.png');background-repeat:no-repeat;background-size:400% 400%;filter:drop-shadow(0 4px 4px #0003);pointer-events:none}.item-grain{background-position:0% 0%}.item-timber{background-position:33.333333% 0%}.item-silk{background-position:66.666667% 0%}.item-spice{background-position:100% 0%}.item-gold{background-position:0% 33.333333%}.item-compass{background-position:33.333333% 33.333333%}.item-cargo{background-position:66.666667% 33.333333%}.item-sail{background-position:100% 33.333333%}.item-hull{background-position:0% 66.666667%}.item-condition{background-position:33.333333% 66.666667%}.item-logic{background-position:66.666667% 66.666667%}.item-dexterity{background-position:100% 66.666667%}.item-geology{background-position:0% 100%}.item-merchant{background-position:33.333333% 100%}.item-farmer{background-position:66.666667% 100%}.item-pirate{background-position:100% 100%}
.masthead{height:78px;padding:0 clamp(20px,4.5vw,75px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#0a1c28f5 40%,#0e2832de),url('assets/harbor-modern-v2.png') center 52%/cover}.brand{display:flex;align-items:center;gap:21px}.back-link{font-size:23px;color:#8dafb7}.brand>img{width:158px;height:auto;max-height:43px;object-fit:contain}.brand>span{font-size:15px;font-weight:650;border-left:1px solid #a3c8c52b;padding-left:21px;line-height:1.5}.brand small{display:block;font-size:10px;font-weight:400;color:#96b2b7}.header-actions{display:flex;align-items:center;gap:9px}.save-state{font-size:10px;color:#a0beb5;margin-right:10px}.save-state:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--teal);display:inline-block;margin-right:7px;vertical-align:middle}main{max-width:1480px;margin:auto;padding:0 38px 22px}.captain-bar{display:flex;align-items:center;gap:35px;min-height:98px;margin-bottom:19px}.identity{display:flex;align-items:center;gap:13px;min-width:225px;flex:1}.identity strong{font-size:20px;font-weight:650;letter-spacing:-.4px;display:block}.identity div>span{font-size:10px;color:var(--muted);display:block}.faction-seal{width:49px;height:49px;display:grid;place-items:center;background:radial-gradient(ellipse,#cdb7791c,transparent 70%);border:1px solid #c7b47827;border-radius:13px}.faction-seal .item-art{width:42px;height:42px}.resource{display:flex;align-items:center;gap:9px;min-width:106px}.resource .resource-symbol{height:42px;width:42px}.resource b{display:block;font-size:20px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.5px}.gold b{color:var(--gold-light)}.resource small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.level-resource{min-width:128px}.level-resource>span{font-size:12px;font-weight:650;display:block}.level-resource small{font-size:9px;color:var(--muted)}.thin-progress{height:4px;border-radius:5px;overflow:hidden;background:#93b6bd22;margin:6px 0}.thin-progress i{display:block;height:100%;background:var(--teal);border-radius:inherit;transition:width .4s}
.chart-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px;align-items:stretch}.chart-frame{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 10px 35px #0002;min-width:0}.chart-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 21px;gap:12px;border-bottom:1px solid var(--line)}.chart-heading h1{font-size:23px;margin-top:2px}.chart-caption{display:flex;align-items:center;gap:7px;font-size:10px;color:#a8c0bf;white-space:nowrap}.chart-caption i{height:5px;width:5px;border-radius:50%;background:var(--teal)}.chart-viewport{height:398px;position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 50%,#42616a33,transparent 75%),repeating-linear-gradient(0deg,#a1c7c505 0px,#a1c7c505 1px,transparent 1px,transparent 38px),repeating-linear-gradient(90deg,#a1c7c505 0px,#a1c7c505 1px,transparent 1px,transparent 38px),#16323f;cursor:grab;touch-action:pan-y}.chart-viewport:active{cursor:grabbing}.chart-world{position:absolute;inset:0;transform-origin:center;will-change:transform;box-shadow:0 0 35px #0004}.map-image{width:100%;height:100%;display:block;user-select:none;pointer-events:none;filter:saturate(.59) sepia(.16) brightness(.94)}.chart-viewport:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 24px #122a2d66;pointer-events:none;z-index:4}.route-svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible;pointer-events:none}.route-svg path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.route-svg #route-shadow{stroke:#fcf1d9;stroke-width:4;opacity:.65}.route-svg #route-line{stroke:#8b532e;stroke-width:1.8;stroke-dasharray:5 5;animation:sail-dash 18s linear infinite}@keyframes sail-dash{to{stroke-dashoffset:-150}}.port-marker{position:absolute;z-index:2;transform:translate(-50%,-50%);padding:0;border:0;background:none;display:flex;align-items:center;flex-direction:column;color:#233b3a;white-space:nowrap;font-size:10px;font-weight:700;line-height:1.1}.port-marker>i{width:9px;height:9px;display:block;border:2px solid #244a4a;background:#eadeb8;border-radius:50%;box-shadow:0 1px 3px #0005}.port-marker>span{display:block;background:#f0e7cfec;border:1px solid #777b5e66;padding:3px 5px;border-radius:3px;margin-top:3px;box-shadow:0 1px 4px #0002}.port-marker:hover>span,.port-marker.selected>span{background:#fff5db;border-color:#1c666b;color:#184249}.port-marker.selected>i{background:#166268;outline:3px solid #fff0c780}.port-marker.current>i{background:#29726e;border-color:#f7e3b4;outline:2px solid #234b4b}.port-marker.visited>span:before{content:'· ';color:#43826e}.port-marker[data-id="lisbon"]>span,.port-marker[data-id="casablanca"]>span{transform:translateX(calc(50% - 5px))}.ship-marker{position:absolute;z-index:3;width:43px;pointer-events:none;transform:translate(-50%,-70%);filter:drop-shadow(1px 3px 2px #0008)}.ship-marker img{width:100%;display:block}.ship-wake{position:absolute;width:32px;height:10px;background:#d9edf188;filter:blur(3px);border-radius:50%;bottom:-2px;left:6px;z-index:-1}.map-compass{position:absolute;left:13px;bottom:15px;z-index:4;pointer-events:none;opacity:.92}.map-compass .item-art{height:55px;width:55px}.map-tools{position:absolute;top:11px;right:11px;display:flex;gap:4px;z-index:5}.map-tools .icon-button{height:28px;width:28px;background:#13303be8;font-size:18px}.map-footnote{position:absolute;bottom:12px;right:13px;z-index:4;color:#a1bebd;background:#112d35cf;padding:3px 7px;border-radius:4px;font-size:8px}.voyage-strip{min-height:76px;padding:13px 20px;display:flex;gap:13px;align-items:center;border-top:1px solid var(--line)}.voyage-icon.item-art{width:40px;height:40px}.voyage-copy{flex:1;min-width:0}.voyage-copy strong{font-weight:600;font-size:12px;display:block}.voyage-copy small{color:var(--muted);font-size:10px;display:block;margin-top:2px}.voyage-track{height:4px;background:#819fa32c;max-width:460px;margin-top:7px;overflow:hidden;border-radius:4px}.voyage-track i{display:block;height:100%;background:var(--teal);width:0;border-radius:inherit}.voyage-clock{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--gold-light);min-width:52px;text-align:right}.voyage-strip .secondary{font-size:10px}
.harbor-sidebar{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.harbor-art{height:112px;flex-shrink:0;background:linear-gradient(180deg,transparent 10%,#112632e6),url('assets/harbor-modern-v2.png') 61% 55%/cover;position:relative}.harbor-art>span{position:absolute;left:19px;bottom:10px;font-size:8px;font-weight:700;letter-spacing:1.6px;color:#e0ebe3}.harbor-content{padding:15px 19px 16px;display:flex;flex-direction:column;flex:1}.harbor-content>h2{font-size:28px;margin:3px 0 1px;letter-spacing:-.8px}.country-name{font-size:10px;color:#a9c0b9}.harbor-description{font-size:11px;color:#a4b9b9;line-height:1.65;margin:11px 0 12px}.harbor-facts{display:flex;gap:12px;margin:2px 0 14px;padding:10px 0;border-block:1px solid var(--line)}.harbor-facts>div{display:flex;align-items:center;gap:7px;flex:1;min-width:0}.harbor-facts .item-art{height:36px;width:36px}.harbor-facts small{font-size:6px;color:#8faeaf;letter-spacing:.6px;display:block;white-space:nowrap}.harbor-facts b{font-size:11px;font-weight:600;display:block;white-space:nowrap}.harbor-content>.primary{width:100%;font-size:11px;padding:9px}.current-badge{font-size:9px;font-weight:650;color:#9fd4c5;display:block;padding:8px 10px;background:#2e6b5e25;border:1px solid #80c5ac35;border-radius:6px;text-align:center}.current-badge:before{content:'';width:5px;height:5px;border-radius:50%;background:#80c9b5;display:inline-block;margin-right:7px;vertical-align:middle}.port-actions{display:flex;justify-content:space-between;gap:10px;margin-top:8px}.port-actions .quiet{font-size:9px}.travel-note{font-size:8px;color:#7f9b9f;margin-top:4px}.campaign-brief{padding-top:13px;margin-top:auto}.campaign-top{display:flex;align-items:center;gap:9px;margin-bottom:9px}.campaign-top .item-art{height:30px;width:30px}.campaign-top .eyebrow{font-size:7px;letter-spacing:1.1px}.campaign-brief h3{font-size:12px;letter-spacing:-.1px;margin-top:2px}.campaign-dots{display:flex;gap:5px}.campaign-dots i{height:4px;background:#8fb1ad25;flex:1;border-radius:3px}.campaign-dots i.done{background:var(--teal)}.campaign-link{font-size:9px;color:#a1b9b9;margin-top:8px;border:0;background:none;padding:0;width:100%;display:flex;justify-content:space-between}
.game-desk{margin-top:22px}.desk-tabs{display:flex;align-items:center;gap:3px;padding:5px;background:#142b35;border:1px solid var(--line);border-radius:9px;overflow-x:auto;scrollbar-width:thin}.desk-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;border:1px solid transparent;border-radius:6px;background:none;font-size:12px;font-weight:600;color:#a3bec0;padding:9px 14px;white-space:nowrap}.desk-tabs button.active{background:#2a4a52;color:#edf4ed;border-color:#85a8a22d;box-shadow:0 2px 5px #0002}.desk-tabs button:hover{background:#24424b;color:var(--text)}.desk-tabs button .item-art{width:23px;height:23px;margin:0}.desk-panel{padding:26px 0 15px;min-height:340px;outline:none}.panel-intro{display:flex;justify-content:space-between;align-items:start;gap:22px;margin-bottom:20px}.panel-intro h2{font-size:25px;margin:5px 0 7px}.panel-intro p{font-size:11px;color:var(--muted);line-height:1.7;max-width:720px}.panel-intro>.quiet{font-size:10px;white-space:nowrap;margin-top:11px}.quest-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.quest-paper{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;border:1px solid #91b7bb22;background:var(--surface);border-radius:9px;overflow:hidden;min-width:0;transition:transform .18s,border-color .18s,box-shadow .18s}.quest-paper:hover:not(:disabled){transform:translateY(-4px);border-color:#7fb7b174;box-shadow:0 10px 24px #0003}.quest-paper.selected{border-color:var(--teal);box-shadow:0 0 0 1px #5bbcac55}.quest-artwork{height:124px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 80%,#657e6038,transparent 65%),linear-gradient(140deg,#23414b,#172f3c);border-bottom:1px solid #91b7bb15}.quest-artwork>.item-art{height:94px;width:94px;transform:translateY(5px)}.quest-paper:nth-child(2n) .quest-artwork{background:radial-gradient(ellipse at 50% 80%,#8c764638,transparent 65%),linear-gradient(140deg,#2b4145,#192f38)}.quest-type{position:absolute;left:10px;top:10px;padding:3px 6px;border-radius:4px;background:#11263299;color:#bdd3cf;font-size:8px;font-weight:500}.quest-select-mark{position:absolute;right:9px;top:9px;width:21px;height:21px;border:1px solid #b7ccc94b;border-radius:50%;color:#c2d9d3;background:#17313b88;display:grid;place-items:center;line-height:1;font-size:15px}.selected .quest-select-mark{background:var(--teal);border-color:var(--teal);color:#112a2d;font-size:13px}.quest-card-body{padding:13px 14px 14px;display:flex;flex-direction:column;flex:1}.quest-destination{font-size:8px;letter-spacing:.5px;text-transform:uppercase;color:var(--teal);display:flex;justify-content:space-between;align-items:center}.quest-destination>span{font-size:13px}.quest-paper h3{font-size:16px;font-weight:650;margin:7px 0 5px;line-height:1.28;letter-spacing:-.35px;min-height:41px}.quest-giver{font-size:9px;color:#8eaaad;display:block;margin-bottom:14px}.quest-reward{margin-top:auto;display:flex;gap:13px;align-items:center;padding-top:10px;border-top:1px solid var(--line)}.quest-reward>span{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--gold-light)}.quest-reward>span+span{color:#b5d5d0;font-size:10px}.quest-reward .item-art{height:20px;width:20px}.quest-time{margin-top:9px;font-size:9px;color:#b0c4c2;display:block}.quest-time>span{color:#587a81;padding:0 3px}.quest-time>small{display:block;font-size:8px;color:#698d96;margin-top:2px}.queue-area{display:flex;gap:25px;justify-content:space-between;align-items:center;padding:19px 22px;margin-top:18px;border:1px solid var(--line);border-radius:9px;background:#142c37}.queue-copy{min-width:0;flex:1}.queue-copy>strong{display:flex;gap:10px;align-items:center;font-size:9px;letter-spacing:1.2px;color:#b7c9c0;font-weight:700}.queue-copy>strong>span{font-size:8px;letter-spacing:.4px;color:var(--teal);padding:3px 7px;border-radius:4px;background:#57ad9a16}.queue-route{font-size:11px;color:#b8cdcb;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px;min-height:20px}.route-step{display:inline-flex;gap:7px;align-items:center;font-weight:550}.route-step>b{border:1px solid #68a69c4d;color:#79c6b7;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:9px}.route-arrow{color:#638790}.queue-copy>small{display:block;font-size:9px;color:#74959b;margin-top:7px}.queue-buttons{display:flex;gap:20px;align-items:center;flex-shrink:0}.queue-buttons .quiet{font-size:10px}.encounter-banner{padding:18px 21px;border:1px solid #d2b26a45;border-radius:9px;background:#71643b21;margin-bottom:21px;display:flex;gap:17px;align-items:center}.encounter-banner>span{font-size:27px;color:var(--gold)}.encounter-banner h3{font-size:17px;margin:0 0 4px}.encounter-banner p{font-size:11px;color:#c2c7b4}.encounter-banner .primary{margin-left:auto;white-space:nowrap}.busy-banner{padding:12px 16px;border-left:2px solid var(--teal);border-radius:0 7px 7px 0;background:#438f9112;color:#a5c4c4;font-size:11px;margin-bottom:18px}
.market-tip{display:flex;align-items:center;gap:13px;padding:13px 18px;border:1px solid #5bbcac24;background:#28534c1a;border-radius:8px;margin-bottom:18px}.market-tip .item-art{width:45px;height:45px}.market-tip>div>b{display:block;color:#d2e4d8;font-size:12px;margin-bottom:3px}.market-tip>div>span{display:block;font-size:10px;color:#9bbdb8}.market-tip span b{color:#bcded0;font-weight:600}.trade-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.trade-card{border:1px solid #91b7bb24;border-radius:11px;overflow:hidden;background:#122b37;min-width:0}.trade-card.specialty{border-color:#67b5a35c}.trade-artwork{height:190px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 75%,#7b84603d,transparent 68%),linear-gradient(130deg,#254650,#18313e)}.trade-artwork>.item-art{width:144px;height:144px;transform:translateY(8px);transition:transform .25s;filter:drop-shadow(0 12px 10px #0004)}.trade-card:hover .trade-artwork>.item-art{transform:translateY(4px) scale(1.035)}.trade-tag{position:absolute;top:13px;left:13px;padding:4px 8px;font-size:8px;line-height:1.4;background:#162b34ba;border:1px solid #a1b5a924;color:#b4cec5;border-radius:4px}.specialty .trade-tag{background:#264c40cf;border-color:#70ba9440;color:#c0e3c4}.trade-tag.demand{background:#6d5c37a1;border-color:#c6a86c3b;color:#efcf95}.stock-badge{position:absolute;right:12px;bottom:10px;border-radius:4px;background:#102630a3;color:#a9c2bf;font-size:8px;padding:3px 6px}.trade-card-body{padding:18px}.trade-card-body h3{font-size:21px;letter-spacing:-.5px}.trade-card-body>p{font-size:10px;color:#86a6ac;margin:5px 0 18px;min-height:16px}.trade-prices{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:15px;margin-bottom:13px;border-bottom:1px solid var(--line)}.trade-prices>div+div{border-left:1px solid var(--line);padding-left:15px}.trade-prices small{display:block;font-size:7px;letter-spacing:1.1px;color:#7e9fa5;margin-bottom:3px}.trade-prices b{display:block;font-size:22px;font-weight:650;color:var(--gold-light);letter-spacing:-.6px;line-height:1.3;font-variant-numeric:tabular-nums}.trade-prices b span{font-size:10px;color:#baa776;font-weight:500;letter-spacing:0}.market-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.market-actions select{grid-column:1/-1;padding:7px 10px;min-height:33px;font-size:10px;width:100%}.market-actions button{padding:8px 6px;font-size:10px;min-width:0}.inventory-section{margin-top:27px;border:1px solid var(--line);border-radius:10px;background:#102530;padding:22px}.inventory-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.inventory-heading h3{font-size:20px;margin-top:3px}.cargo-capacity{display:flex;gap:8px;align-items:center;color:#8eafb3;font-size:10px;white-space:nowrap}.cargo-capacity>.item-art{height:36px;width:36px}.cargo-capacity b{font-size:19px;color:#dce9db;letter-spacing:-.5px}.inventory-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.inventory-slot{display:flex;align-items:center;gap:10px;padding:14px 10px;border:1px dashed #5e7d8438;border-radius:7px;opacity:.5;min-width:0}.inventory-slot.filled{background:#213e4255;border:1px solid #5c9b8d52;opacity:1}.inventory-slot>.item-art{height:44px;width:44px}.inventory-slot>div{flex:1;min-width:0}.inventory-slot strong{font-size:11px;display:block;font-weight:600}.inventory-slot small{font-size:8px;display:block;color:#8fb0b1;margin-top:3px}.inventory-slot>b{font-size:20px;letter-spacing:-.5px;font-weight:550;color:#b9d1c9}.market-summary{display:flex;gap:24px;align-items:center;padding-top:17px;margin-top:17px;border-top:1px solid var(--line);font-size:10px;color:#789aa2}.market-summary b{color:#cbd9ba;font-weight:600;margin-left:5px}.market-summary .quiet{font-size:10px;margin-left:auto}.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:20px}.preview-grid .trade-artwork{height:138px}.preview-grid .trade-artwork>.item-art{height:104px;width:104px}.preview-grid .trade-card-body{padding:14px}.preview-grid .trade-card-body h3{font-size:18px}.preview-grid .trade-card-body>p{font-size:9px;margin-bottom:12px}.preview-grid .trade-prices{margin:0;padding:0;border:0}.preview-grid .trade-prices b{font-size:20px}
.captain-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.captain-section,.ship-section{border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:22px}.profile-heading{display:flex;gap:14px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:4px}.profile-heading h2{font-size:23px;margin-top:4px}.profile-heading p{font-size:10px;color:#8ba9ad;margin-top:4px}.large-seal{height:68px;width:68px;flex-shrink:0;border-radius:15px;background:radial-gradient(ellipse,#a4b58c1f,transparent 70%)}.large-seal>.item-art{height:61px;width:61px}.profile-heading .eyebrow{font-size:8px;letter-spacing:1px}.profile-count{margin-left:auto;font-size:26px;color:var(--gold-light);font-weight:600;letter-spacing:-.8px;text-align:center}.profile-count small{display:block;font-size:8px;color:#7fa3a8;letter-spacing:0;font-weight:400}.skill-row{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.skill-row:last-child{border-bottom:0;padding-bottom:0}.skill-row>.item-art{height:57px;width:57px}.skill-desc{flex:1;min-width:0}.skill-desc>strong{display:flex;align-items:baseline;gap:12px;font-size:13px;font-weight:600}.skill-desc>small{font-size:9px;color:#8ba9ae;display:block;line-height:1.6;margin-top:2px}.skill-value{font-size:17px;color:#d7e5d8;letter-spacing:-.3px;margin-left:auto;font-weight:650}.skill-value small{font-size:9px;color:#60868d;font-weight:400;margin-left:3px}.skill-track{max-width:160px;height:3px;border-radius:3px;background:#739ba024;margin-top:9px;overflow:hidden}.skill-track i{height:100%;display:block;background:#5db3a2;border-radius:inherit}.skill-row button,.upgrade-row button{display:flex;flex-direction:column;gap:0;font-size:10px;padding:8px 11px;min-width:94px}.skill-row button small,.upgrade-row button small{font-size:8px;color:#bba979;font-weight:400;margin-top:2px}.ship-heading{display:flex;align-items:center;gap:15px;padding-bottom:16px;border-bottom:1px solid var(--line)}.ship-portrait{height:77px;width:94px;background:radial-gradient(ellipse,#7da28d26,transparent 70%);display:grid;place-items:center}.ship-portrait img{width:87px;height:auto;filter:drop-shadow(0 7px 4px #0004)}.ship-heading h3{font-size:24px;margin:3px 0 4px}.ship-heading p{font-size:9px;color:#8ba8ad}.ship-heading .eyebrow{font-size:8px}.condition-row{display:flex;align-items:center;gap:9px;padding:15px 0}.condition-row>.item-art{height:35px;width:35px}.condition-row>div{flex:1}.condition-row strong{display:flex;justify-content:space-between;font-size:10px;font-weight:500;color:#9db9b9}.condition-row strong span{font-size:10px;color:#aacfc0}.condition-row .secondary{font-size:8px;padding:7px 9px;min-width:84px}.upgrade-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-top:1px solid var(--line)}.upgrade-row:last-child{padding-bottom:0}.upgrade-row>.item-art{height:62px;width:62px}.upgrade-copy{flex:1;min-width:0}.upgrade-copy strong{display:block;font-size:13px;font-weight:600}.upgrade-copy small{display:block;font-size:9px;color:#8ba9ae;margin-top:3px;line-height:1.5}.gear-level{display:flex;align-items:center;gap:4px;margin-top:8px}.gear-level i{width:17px;height:3px;border-radius:2px;background:#69909233}.gear-level i.done{background:var(--gold)}.gear-level>span{font-size:7px;margin-left:3px;color:#6f969c}.achievements{margin-top:27px}.achievement-total{font-size:13px;color:#9fc8bc}.achievement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.achievement{display:flex;align-items:center;gap:11px;padding:13px;background:#142c36;border:1px solid var(--line);border-radius:7px;opacity:.43}.achievement.unlocked{opacity:1;border-color:#5a9a8140;background:#18362f55}.achievement>.item-art{height:42px;width:42px}.achievement>div{flex:1}.achievement b{display:block;font-size:11px;font-weight:600}.achievement small{display:block;font-size:8px;color:#92b0b2;margin-top:3px}.achievement-check{font-size:14px;color:var(--teal)}
.work-layout{display:grid;grid-template-columns:1fr 1fr;gap:37px;align-items:center}.work-scene{min-height:330px;border:1px solid #789d9e36;border-radius:11px;background:linear-gradient(180deg,#112e3b00 10%,#102a34ed 100%),url('assets/harbor-modern-v2.png') center/cover,#183442;position:relative;overflow:hidden}.work-scene-caption{position:absolute;top:24px;left:26px;right:20px;text-shadow:0 2px 12px #06141d}.work-scene-caption .eyebrow{color:#b0dacf;font-size:8px}.work-scene-caption strong{display:block;font-size:29px;font-weight:650;line-height:1.2;letter-spacing:-.7px;margin:4px 0 8px}.work-scene-caption>span:last-child{font-size:10px;color:#c1d4ce}.work-items{display:flex;justify-content:center;align-items:end;gap:15px;position:absolute;bottom:20px;left:22px;right:22px}.work-items>.item-art{width:100px;height:100px;filter:drop-shadow(0 8px 10px #0007)}.work-items>.item-art:nth-child(2){width:124px;height:124px}.work-controls h3{font-size:23px;margin-bottom:10px}.work-controls>p{font-size:11px;line-height:1.8;color:var(--muted);margin-bottom:20px}.work-controls>label{display:flex;justify-content:space-between;font-size:11px;color:#88aaae}.work-controls>label strong{color:#d1dfd6;font-weight:600}input[type=range]{width:100%;accent-color:var(--teal);margin:17px 0 5px}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:#688f99}.work-estimate{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 20px;border-top:1px solid var(--line);padding-top:17px}.work-estimate .item-art{width:34px;height:34px;display:block;margin-bottom:7px}.work-estimate strong{display:block;font-size:20px;font-weight:600;letter-spacing:-.5px;color:#e6d2a1;line-height:1.4}.work-estimate small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.work-controls>.primary{width:100%;justify-content:space-between;padding-inline:18px}.work-caption{font-size:9px;line-height:1.6;color:#73979f;margin-top:10px}.journal-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:35px}.journal-layout>div{padding:23px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.journal-layout h3{font-size:20px;margin-bottom:9px}.campaign-list{list-style:none;margin:0;padding:0}.campaign-list li{display:flex;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding:16px 0}.campaign-list li>span{height:28px;width:28px;display:grid;place-items:center;font-size:12px;color:var(--teal);border:1px solid #519b8738;border-radius:50%;background:#4e9c8710}.campaign-list li strong{font-size:12px;font-weight:600}.campaign-list li small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.campaign-list li b{font-size:11px;color:#b6d4c2;font-weight:500;margin-left:auto;white-space:nowrap}.campaign-reward{font-size:10px;line-height:1.8;color:#ccb67f;margin:18px 0}.log-list{max-height:360px;overflow-y:auto;padding-right:6px;scrollbar-width:thin}.log-entry{display:flex;gap:13px;border-bottom:1px solid var(--line);padding:12px 0}.log-entry time{font-size:9px;color:#638995;padding-top:2px;min-width:35px;font-variant-numeric:tabular-nums}.log-entry p{font-size:11px;color:#a7c1bf;line-height:1.65}.log-entry.reward p{color:#cfceab}.log-entry.achievement p,.log-entry.victory p{color:#8ed0b5}.victory-note{padding:20px 23px;border:1px solid #a48f4d55;border-radius:8px;background:#87734020;margin-bottom:22px}.victory-note h3{font-size:18px;color:#ead2a1;margin-bottom:8px}.victory-note p{font-size:11px;line-height:1.8;color:#bbcab3}.game-footer{display:flex;justify-content:space-between;gap:22px;border-top:1px solid var(--line);padding-top:18px;margin-top:13px;font-size:8px;color:#557d88}.game-footer a{color:#83a7ac}
label{font-size:11px;color:#adc6c4}input:not([type=range]),select{background:#0d2330;border:1px solid #6b919a55;border-radius:6px;padding:10px 12px;min-height:39px;color:#dfebe6}label input,label select{display:block;width:100%;margin-top:7px}fieldset{border:0;margin:0;padding:0}legend{color:#adc6c4;font-size:10px;font-weight:550;margin-bottom:12px}dialog{color:var(--text);border:1px solid #729d9e55;border-radius:14px;background:#112934;box-shadow:0 25px 100px #0009;padding:0;max-height:90dvh;overflow:auto;scrollbar-width:thin}dialog::backdrop{background:#06131ddd;backdrop-filter:blur(7px)}.creator-dialog{width:min(1120px,calc(100% - 40px));max-width:1120px}.creator-dialog form{display:grid;grid-template-columns:40% 1fr}.creator-art{background:linear-gradient(180deg,#09233155 0%,#0b2531b3 50%,#0c2431 100%),url('assets/harbor-modern-v2.png') 43% center/cover,#1d4350;min-height:680px;padding:33px;display:flex;flex-direction:column;align-items:start;position:relative;overflow:hidden}.creator-art>img{width:215px;height:auto;max-width:100%;position:relative;z-index:1}.creator-art-copy{margin-top:auto;position:relative;z-index:1;padding-top:100px}.creator-art-copy>.eyebrow{color:#94d1c1;font-size:8px}.creator-art-copy p{font-size:37px;line-height:1.09;font-weight:650;letter-spacing:-1.4px;margin:13px 0 18px;color:#f1e5c8;text-shadow:0 3px 18px #09243144}.creator-art-copy>span:last-child{font-size:11px;color:#a3c4c5}.creator-feature-items{display:flex;gap:7px;position:relative;z-index:1;margin-top:31px}.creator-feature-items>.item-art{width:66px;height:66px;filter:drop-shadow(0 5px 5px #0005)}.creator-content{padding:38px 39px}.creator-content h2{font-size:31px;letter-spacing:-1px;margin:9px 0 12px}.creator-content>.muted{font-size:11px;line-height:1.85;margin-bottom:23px}.creator-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.creator-fields label{font-size:10px;font-weight:550}.faction-picker>div{display:grid;grid-template-columns:1fr 1fr;gap:11px}.faction-option{position:relative;border:1px solid #678c9542;border-radius:8px;display:flex;gap:12px;align-items:center;padding:13px 12px;cursor:pointer;min-height:108px;background:#0e2430;transition:background .2s,border .2s}.faction-option:hover{border-color:#77aaab77}.faction-option:has(input:checked){border-color:#79bfae;background:#21483f55;box-shadow:inset 0 0 0 1px #5bbcac1a}.faction-option input{position:absolute!important;opacity:0;width:1px!important;height:1px;min-height:0!important}.faction-option:has(input:focus-visible){outline:3px solid var(--teal);outline-offset:3px}.faction-option .faction-icon{height:53px;width:53px}.faction-option b{display:block;font-size:16px;font-weight:650;color:#e3e8d8;line-height:1.3;letter-spacing:-.3px}.faction-option small{display:block;color:#87aaa9;font-size:8px;line-height:1.7;margin-top:5px}.creator-note{display:flex;gap:12px;align-items:center;margin-top:24px;padding:14px;background:#27524c22;border:1px solid #86b8a51c;border-radius:7px;font-size:9px;line-height:1.7;color:#84a8ab}.creator-note>.item-art{width:38px;height:38px}.creator-note b{display:block;font-size:10px;font-weight:550;color:#c0d3c6;margin-bottom:2px}.creator-buttons{display:flex;gap:18px;align-items:center;justify-content:end;margin-top:24px}.creator-buttons .quiet{font-size:10px}.creator-buttons .primary{min-width:162px;padding:11px 19px}
.detail-dialog{width:min(680px,calc(100% - 36px));padding:34px 36px}.dialog-close{position:absolute;right:13px;top:13px;background:none;border:0;font-size:24px}.detail-dialog .eyebrow{padding-right:25px}.detail-dialog h2{font-size:28px;margin:9px 0 13px;letter-spacing:-.7px;padding-right:17px}.detail-dialog p{font-size:12px;line-height:1.85;color:#adc4c1}.quest-letter{display:flex;align-items:start;gap:21px;border:1px solid #628a8f36;background:linear-gradient(110deg,#25454a75,#18343d);padding:23px;border-radius:9px;margin:21px 0}.quest-letter>.item-art{width:104px;height:104px}.quest-letter>div{flex:1}.quest-letter p{font-size:13px;line-height:1.9;color:#d0ddd2}.quest-letter .signature{font-size:10px;color:#86b4ad;margin-top:13px;font-weight:600}.quest-details-stats{display:flex;gap:35px;border-block:1px solid var(--line);padding:17px 0;margin-bottom:17px}.quest-details-stats>div{position:relative;padding-left:37px;min-height:40px;display:flex;flex-direction:column;justify-content:center}.quest-details-stats>div:last-child{padding-left:0}.quest-details-stats .item-art{position:absolute;left:0;top:5px;width:28px;height:28px}.quest-details-stats b{font-size:21px;font-weight:650;letter-spacing:-.4px;color:#e1d3a3;display:block;line-height:1.4}.quest-details-stats small{display:block;font-size:7px;letter-spacing:.7px;color:#7d9fa5;margin-top:3px}.dialog-buttons{display:flex;align-items:center;justify-content:end;gap:20px;margin-top:24px}.dialog-footnote{font-size:9px!important;line-height:1.8!important;color:#688f99!important;margin-top:18px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.settings-row label{font-size:12px;color:#d1dfd5}.settings-row label small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.settings-row select{width:170px;font-size:10px}.settings-row input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--teal)}.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin:23px 0}.settings-actions button{font-size:10px}.help-list{padding-left:18px;margin:22px 0;color:#9bbdbb;font-size:11px;line-height:1.9}.help-list li{padding-left:5px;margin-bottom:13px}.help-list strong{color:#cdddc9}.encounter-choices{display:grid;gap:10px;margin-top:21px}.encounter-choices button{text-align:left;display:block;padding:15px 18px;white-space:normal}.encounter-choices b{display:block;font-size:13px;font-weight:600}.encounter-choices small{display:block;font-size:10px;font-weight:400;color:#98b7b6;margin-top:5px}.toast-region{position:fixed;right:25px;bottom:23px;z-index:1000;display:flex;flex-direction:column;gap:9px;max-width:370px;pointer-events:none}.toast{background:#ddeddf;color:#24443c;border:1px solid #aed5bc;border-left:3px solid #4b9d7b;padding:13px 17px;border-radius:7px;box-shadow:0 8px 25px #0005;font-size:11px;animation:toast-in .2s ease-out}.toast.error{background:#4f3e38;color:#f0d1c3;border-color:#ba8e75}@keyframes toast-in{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.no-save-warning{color:#daa78b}
@media(min-width:1500px){.chart-viewport{height:425px}.trade-artwork{height:205px}.trade-artwork>.item-art{width:160px;height:160px}.quest-artwork{height:135px}.quest-artwork>.item-art{height:105px;width:105px}}
@media(max-width:1150px){main{padding:0 25px 20px}.masthead{padding-inline:26px}.captain-bar{gap:22px}.identity{min-width:190px}.identity strong{font-size:18px}.resource{min-width:90px;gap:6px}.resource .resource-symbol{height:36px;width:36px}.resource b{font-size:18px}.level-resource{min-width:110px}.chart-layout{grid-template-columns:minmax(0,1fr) 270px;gap:17px}.chart-viewport{height:385px}.chart-heading{padding:15px 18px}.chart-heading h1{font-size:21px}.chart-caption{font-size:9px}.harbor-art{height:104px}.harbor-content{padding:14px 17px}.harbor-content>h2{font-size:26px}.harbor-description{font-size:10px}.harbor-facts{gap:9px}.harbor-facts .item-art{height:31px;width:31px}.harbor-facts small{font-size:6px}.harbor-facts b{font-size:10px}.quest-board{gap:10px}.quest-artwork{height:108px}.quest-artwork>.item-art{width:82px;height:82px}.quest-card-body{padding:12px}.quest-paper h3{font-size:14px;min-height:36px}.quest-giver{font-size:8px}.quest-reward{gap:8px}.quest-reward>span{font-size:10px}.quest-reward>span+span{font-size:9px}.quest-reward .item-art{height:17px;width:17px}.quest-time{font-size:8px}.trade-grid{gap:13px}.trade-artwork{height:164px}.trade-artwork>.item-art{width:126px;height:126px}.trade-card-body{padding:15px}.trade-card-body h3{font-size:19px}.trade-card-body>p{font-size:9px;min-height:27px}.trade-prices b{font-size:20px}.inventory-section{padding:19px}.inventory-slots{gap:9px}.inventory-slot{gap:7px;padding:11px 8px}.inventory-slot>.item-art{height:35px;width:35px}.inventory-slot strong{font-size:10px}.inventory-slot small{font-size:7px}.inventory-slot>b{font-size:17px}.captain-grid{gap:18px}.captain-section,.ship-section{padding:18px}.skill-row{gap:10px}.skill-row>.item-art{height:50px;width:50px}.skill-row button,.upgrade-row button{min-width:82px;font-size:9px;padding:8px}.upgrade-row>.item-art{height:54px;width:54px}.profile-heading h2{font-size:21px}.profile-heading{gap:11px}.large-seal{height:57px;width:57px}.large-seal>.item-art{height:51px;width:51px}.profile-count{font-size:23px}.creator-content{padding:32px}.creator-art{padding:29px}.creator-art-copy p{font-size:34px}.creator-content h2{font-size:29px}.faction-option{gap:9px;padding:11px}.faction-option .faction-icon{height:46px;width:46px}}
@media(max-width:900px){.brand>span{display:none}.masthead{height:67px}.brand>img{width:145px}.save-state{font-size:9px}.captain-bar{gap:20px;min-height:88px}.identity{min-width:165px;gap:9px}.identity strong{font-size:17px}.identity div>span{font-size:9px}.faction-seal{height:42px;width:42px;border-radius:10px}.faction-seal>.item-art{height:36px;width:36px}.resource{min-width:77px;gap:5px}.resource .resource-symbol{height:31px;width:31px}.resource b{font-size:16px}.resource small{font-size:9px}.level-resource{min-width:97px}.chart-layout{grid-template-columns:minmax(0,1fr) 240px;gap:14px}.chart-viewport{height:360px}.chart-heading h1{font-size:20px}.chart-caption{display:none}.harbor-art{height:93px}.harbor-content{padding:12px 15px}.harbor-content>h2{font-size:25px}.harbor-description{font-size:9px;margin:9px 0}.harbor-facts{gap:6px;padding:8px 0}.harbor-facts>div{gap:5px}.harbor-facts .item-art{height:27px;width:27px}.harbor-facts b{font-size:9px}.harbor-facts small{font-size:5.5px}.harbor-content>.primary{font-size:10px}.current-badge{font-size:8px}.port-actions .quiet{font-size:8px}.travel-note{font-size:7px}.campaign-brief{padding-top:11px}.campaign-brief h3{font-size:11px}.voyage-strip{gap:9px;padding:11px 14px;min-height:73px}.voyage-icon.item-art{width:32px;height:32px}.voyage-copy strong{font-size:10px}.voyage-copy small{font-size:8px}.voyage-clock{font-size:15px;min-width:45px}.voyage-strip .quiet{font-size:9px}.desk-tabs button{font-size:11px;gap:6px;padding:8px}.desk-tabs button .item-art{width:21px;height:21px}.panel-intro h2{font-size:23px}.panel-intro p{font-size:10px}.quest-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quest-artwork{height:120px}.quest-artwork>.item-art{height:90px;width:90px}.quest-paper h3{font-size:16px;min-height:41px}.quest-card-body{padding:14px}.quest-giver{font-size:9px}.quest-reward>span{font-size:11px}.quest-reward>span+span{font-size:10px}.quest-reward .item-art{height:20px;width:20px}.quest-time{font-size:9px}.trade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.trade-artwork{height:180px}.trade-artwork>.item-art{width:140px;height:140px}.trade-card-body{padding:18px}.trade-card-body>p{font-size:10px;min-height:0}.trade-card-body h3{font-size:21px}.trade-prices b{font-size:23px}.market-actions{grid-template-columns:1fr 1fr 1fr}.market-actions select{grid-column:auto;min-width:0;font-size:10px}.market-actions button{font-size:10px}.inventory-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-slot{padding:14px;gap:12px}.inventory-slot>.item-art{height:42px;width:42px}.inventory-slot strong{font-size:11px}.inventory-slot small{font-size:8px}.inventory-slot>b{font-size:20px}.captain-grid{grid-template-columns:1fr;gap:20px}.captain-section,.ship-section{padding:22px}.skill-row>.item-art{height:57px;width:57px}.profile-heading h2{font-size:24px}.large-seal{width:64px;height:64px}.large-seal>.item-art{width:58px;height:58px}.skill-row button,.upgrade-row button{min-width:110px;font-size:10px}.upgrade-row>.item-art{width:61px;height:61px}.skill-desc>small,.upgrade-copy small{font-size:10px}.skill-track{max-width:240px}.achievement-grid{grid-template-columns:repeat(2,1fr)}.work-layout{gap:27px}.work-items{gap:8px;left:14px;right:14px}.work-items>.item-art{height:75px;width:75px}.work-items>.item-art:nth-child(2){height:95px;width:95px}.work-scene-caption{left:20px}.work-controls h3{font-size:21px}.work-estimate{gap:9px}.work-estimate strong{font-size:18px}.journal-layout{gap:22px}.journal-layout>div{padding:20px}.journal-layout h3{font-size:18px}.creator-dialog{width:calc(100% - 30px)}.creator-dialog form{grid-template-columns:34% 1fr}.creator-art{padding:25px 22px;min-height:665px}.creator-art>img{width:180px}.creator-art-copy p{font-size:28px;letter-spacing:-1px}.creator-art-copy>span:last-child{font-size:10px}.creator-feature-items{gap:3px}.creator-feature-items>.item-art{width:50px;height:50px}.creator-content{padding:29px}.creator-content h2{font-size:28px}.creator-content>.muted{font-size:10px}.faction-option .faction-icon{width:39px;height:39px}.faction-option{gap:8px;padding:11px 10px;min-height:107px}.faction-option b{font-size:15px}.faction-option small{font-size:7px}.creator-note{font-size:8px;gap:9px;padding:12px}.creator-buttons{gap:13px}.creator-buttons .primary{min-width:139px}.creator-buttons .quiet{font-size:9px}.game-footer>span:first-child{display:none}}
@media(max-width:680px){
main{padding:0 15px 18px}.masthead{padding-inline:17px;height:65px}.brand{gap:12px}.brand>img{width:135px}.header-actions{gap:7px}.save-state{display:none}.captain-bar{gap:13px;flex-wrap:wrap;padding:15px 0 17px;min-height:0;margin-bottom:0}.identity{flex-basis:100%;width:100%;min-width:0;gap:11px;margin-bottom:2px}.identity strong{font-size:20px}.identity div>span{font-size:9px}.faction-seal{width:43px;height:43px}.faction-seal>.item-art{width:38px;height:38px}.resource{flex:1;min-width:0;gap:6px}.resource .resource-symbol{width:31px;height:31px}.resource b{font-size:15px;letter-spacing:-.4px}.resource small{font-size:8px}.level-resource{min-width:78px;max-width:89px}.level-resource>span{font-size:10px}.level-resource small{font-size:8px}.thin-progress{height:3px;margin:5px 0}.chart-layout{grid-template-columns:minmax(0,1fr);gap:13px}.chart-frame{border-radius:9px}.chart-heading{padding:13px 15px}.chart-heading h1{font-size:21px;margin-top:2px}.chart-heading .eyebrow{font-size:8px}.chart-viewport{height:auto;aspect-ratio:4000/2386;min-height:205px}.chart-world{width:100%;left:0;inset:0}.port-marker{font-size:8px}.port-marker>span{padding:2px 3px;margin-top:2px}.port-marker>i{width:7px;height:7px;border-width:1.5px}.port-marker.selected>i{outline-width:2px}.ship-marker{width:30px}.map-compass{left:8px;bottom:9px}.map-compass .item-art{height:34px;width:34px}.map-tools{top:7px;right:7px;gap:3px}.map-tools .icon-button{height:23px;width:23px;border-radius:5px;font-size:16px}.map-footnote{bottom:7px;right:8px;font-size:6px;padding:2px 5px}.voyage-strip{min-height:74px;padding:12px;gap:9px}.voyage-icon.item-art{height:30px;width:30px}.voyage-copy strong{font-size:10px;line-height:1.4}.voyage-copy small{font-size:8px;line-height:1.5}.voyage-clock{font-size:14px;min-width:45px}.voyage-strip .quiet{font-size:8px}.harbor-sidebar{display:grid;grid-template-columns:99px 1fr;border-radius:9px}.harbor-art{height:auto;min-height:100%;background-position:48% center}.harbor-art>span{display:none}.harbor-content{padding:14px 16px;display:grid;grid-template-columns:1fr auto;gap:0 9px}.harbor-content>.eyebrow{grid-column:1;font-size:6px;letter-spacing:1.4px}.harbor-content>h2{grid-column:1;font-size:23px;margin:2px 0}.harbor-content>.country-name{grid-column:1;font-size:8px}.harbor-description{display:none}.harbor-facts{grid-column:1/-1;margin:9px 0 10px;gap:12px;padding:8px 0}.harbor-facts>div{gap:7px}.harbor-facts .item-art{height:30px;width:30px}.harbor-facts small{font-size:5.5px;letter-spacing:.5px}.harbor-facts b{font-size:9px}.harbor-content>.primary,.harbor-content>.current-badge{grid-column:1/-1;font-size:9px;padding:7px 8px}.port-actions{grid-column:1/-1;margin-top:6px;gap:14px;justify-content:start}.port-actions .quiet{font-size:8px}.travel-note{grid-column:1/-1;font-size:7px;line-height:1.5;margin-top:3px}.campaign-brief{display:none}.game-desk{margin-top:18px}.desk-tabs{padding:4px;gap:3px;border-radius:8px}.desk-tabs button{flex:none;font-size:10px;gap:5px;padding:7px 10px;border-radius:5px}.desk-tabs button .item-art{height:19px;width:19px}.desk-panel{padding:22px 0 12px}.panel-intro{gap:12px;margin-bottom:17px}.panel-intro .eyebrow{font-size:8px;letter-spacing:1.4px}.panel-intro h2{font-size:22px;letter-spacing:-.65px;margin-top:4px}.panel-intro p{font-size:9px;line-height:1.8}.panel-intro>.quiet{font-size:8px;margin-top:6px;white-space:normal;min-width:72px;max-width:82px;text-align:right;line-height:1.7}.quest-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quest-artwork{height:117px}.quest-artwork>.item-art{height:87px;width:87px}.quest-type{font-size:7px;left:8px;top:8px;padding:3px 5px}.quest-select-mark{height:19px;width:19px;top:8px;right:8px;font-size:13px}.quest-card-body{padding:12px}.quest-destination{font-size:7px;letter-spacing:.3px}.quest-paper h3{font-size:14px;letter-spacing:-.35px;min-height:36px;margin:6px 0}.quest-giver{font-size:8px;margin-bottom:11px}.quest-reward{gap:10px;padding-top:9px}.quest-reward>span{font-size:10px;gap:3px}.quest-reward>span+span{font-size:8px}.quest-reward .item-art{height:17px;width:17px}.quest-time{font-size:8px;line-height:1.7;margin-top:8px}.quest-time>span{padding-inline:2px}.quest-time>small{font-size:7px;margin-top:1px}.quest-board>.quest-paper:last-child{grid-column:1/-1;display:grid;grid-template-columns:39% 1fr}.quest-board>.quest-paper:last-child .quest-artwork{height:100%;min-height:162px;border-bottom:0;border-right:1px solid var(--line)}.quest-board>.quest-paper:last-child .quest-artwork>.item-art{height:97px;width:97px}.quest-board>.quest-paper:last-child .quest-card-body{padding:15px}.quest-board>.quest-paper:last-child h3{min-height:0;margin-bottom:6px}.quest-board>.quest-paper:last-child .quest-giver{margin-bottom:15px}.queue-area{display:block;padding:17px;margin-top:16px}.queue-copy>strong{font-size:8px;gap:9px}.queue-copy>strong>span{font-size:7px}.queue-route{font-size:10px;gap:6px}.route-step{gap:5px}.route-step>b{height:17px;width:17px;font-size:8px}.queue-copy>small{font-size:8px;line-height:1.7}.queue-buttons{justify-content:space-between;gap:20px;margin-top:16px}.queue-buttons>.primary{flex:1;justify-content:space-between;padding:10px 14px;font-size:11px}.queue-buttons>.quiet{font-size:9px;min-width:48px}.encounter-banner{padding:15px;gap:11px;flex-wrap:wrap}.encounter-banner>span{font-size:23px}.encounter-banner>div{flex:1}.encounter-banner h3{font-size:15px}.encounter-banner p{font-size:9px;line-height:1.7}.encounter-banner .primary{width:100%;font-size:10px;margin-left:0}.busy-banner{font-size:9px;padding:11px 13px;line-height:1.8}.trade-grid{gap:12px}.trade-artwork{height:147px}.trade-artwork>.item-art{height:111px;width:111px;transform:translateY(9px)}.trade-tag{left:8px;top:8px;padding:3px 5px;font-size:6px}.stock-badge{right:7px;bottom:8px;font-size:6px;padding:2px 5px}.trade-card{border-radius:8px}.trade-card-body{padding:13px}.trade-card-body h3{font-size:18px;letter-spacing:-.5px}.trade-card-body>p{font-size:8px;line-height:1.6;min-height:25px;margin:4px 0 13px}.trade-prices{gap:7px;padding-bottom:11px;margin-bottom:10px}.trade-prices>div+div{padding-left:10px}.trade-prices small{font-size:6px;letter-spacing:.6px}.trade-prices b{font-size:21px}.trade-prices b span{font-size:8px}.market-actions{grid-template-columns:1fr 1fr;gap:6px}.market-actions select{grid-column:1/-1;font-size:9px;min-height:29px;padding:5px 7px}.market-actions button{font-size:8px;padding:7px 2px;border-radius:5px}.market-tip{padding:12px;gap:10px;margin-bottom:15px}.market-tip .item-art{height:39px;width:39px}.market-tip>div>b{font-size:10px;margin-bottom:3px}.market-tip>div>span{font-size:8px;line-height:1.8}.inventory-section{padding:16px;margin-top:20px;border-radius:9px}.inventory-heading{gap:12px;margin-bottom:14px}.inventory-heading h3{font-size:17px;letter-spacing:-.5px;margin-top:3px}.inventory-heading .eyebrow{font-size:6px;letter-spacing:1px}.cargo-capacity{font-size:8px;gap:5px;max-width:95px;white-space:normal;line-height:1.6}.cargo-capacity>.item-art{height:29px;width:29px}.cargo-capacity b{font-size:15px}.inventory-slots{gap:8px}.inventory-slot{gap:7px;padding:11px 9px;position:relative;align-items:center}.inventory-slot>.item-art{height:38px;width:38px}.inventory-slot strong{font-size:9px}.inventory-slot small{font-size:6px;line-height:1.7;max-width:65px}.inventory-slot>b{position:absolute;right:7px;top:4px;font-size:10px}.market-summary{flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:8px;padding-top:13px;margin-top:13px;line-height:1.7}.market-summary>span:first-child{flex-basis:100%}.market-summary>span:nth-child(2){max-width:190px}.market-summary .quiet{font-size:8px}.captain-section,.ship-section{padding:17px;border-radius:9px}.profile-heading{gap:11px;padding-bottom:17px}.profile-heading h2{font-size:22px;max-width:190px;overflow-wrap:anywhere}.profile-heading p{font-size:8px;line-height:1.7}.profile-heading .eyebrow{font-size:6px;letter-spacing:1px}.large-seal{width:54px;height:54px;border-radius:12px}.large-seal>.item-art{width:49px;height:49px}.profile-count{font-size:21px;letter-spacing:-.5px}.profile-count small{font-size:6px}.skill-row{gap:10px;padding:15px 0}.skill-row>.item-art{width:48px;height:48px}.skill-desc>strong{font-size:11px;gap:8px}.skill-value{font-size:15px}.skill-value small{font-size:7px}.skill-desc>small{font-size:8px;max-width:160px;margin-top:3px}.skill-row button,.upgrade-row button{min-width:76px;padding:7px 8px;font-size:8px;border-radius:5px}.skill-row button small,.upgrade-row button small{font-size:7px}.skill-track{margin-top:7px;height:2px}.ship-heading{gap:12px}.ship-portrait{height:69px;width:83px}.ship-portrait>img{width:77px}.ship-heading .eyebrow{font-size:7px}.ship-heading h3{font-size:22px}.ship-heading p{font-size:8px}.condition-row{padding:14px 0;gap:7px}.condition-row>.item-art{height:28px;width:28px}.condition-row strong{font-size:8px}.condition-row strong span{font-size:8px}.condition-row .secondary{min-width:69px;font-size:7px;padding:6px}.upgrade-row{gap:10px;padding:15px 0}.upgrade-row>.item-art{height:52px;width:52px}.upgrade-copy strong{font-size:11px}.upgrade-copy small{font-size:8px;line-height:1.6}.gear-level{gap:3px;margin-top:7px}.gear-level i{width:13px}.gear-level>span{font-size:6px}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.achievement{gap:7px;padding:10px 9px;position:relative;align-items:start}.achievement>.item-art{height:31px;width:31px;margin-top:4px}.achievement b{font-size:9px;line-height:1.5}.achievement small{font-size:7px;line-height:1.7;margin-top:3px}.achievement-check{position:absolute;right:7px;bottom:5px;font-size:10px}.work-layout{grid-template-columns:1fr;gap:23px}.work-scene{min-height:250px}.work-scene-caption{left:22px;top:21px}.work-scene-caption strong{font-size:27px}.work-scene-caption>span:last-child{font-size:9px}.work-items{bottom:18px;gap:17px;left:25px;right:25px}.work-items>.item-art{height:76px;width:76px}.work-items>.item-art:nth-child(2){height:96px;width:96px}.work-controls h3{font-size:23px;letter-spacing:-.6px}.work-controls>p{font-size:10px;margin-bottom:18px}.work-controls>label{font-size:10px}.work-estimate{gap:14px;margin:14px 0 18px}.work-estimate .item-art{height:34px;width:34px}.work-estimate strong{font-size:20px}.work-estimate small{font-size:8px}.work-controls>.primary{font-size:11px;padding:11px 15px}.work-caption{font-size:8px}.journal-layout{grid-template-columns:1fr;gap:18px}.journal-layout>div{padding:19px}.journal-layout h3{font-size:19px}.campaign-list li{gap:11px;padding:15px 0}.campaign-list li>span{height:25px;width:25px;font-size:10px;flex-shrink:0}.campaign-list li strong{font-size:11px}.campaign-list li small{font-size:8px}.campaign-list li b{font-size:10px}.campaign-reward{font-size:9px}.log-list{max-height:350px}.log-entry p{font-size:10px}.log-entry time{font-size:8px;min-width:32px}.game-footer{font-size:7px;gap:12px;flex-wrap:wrap;margin-top:10px;padding-top:14px}.creator-dialog{width:calc(100% - 22px);max-height:94dvh;border-radius:11px}.creator-dialog form{display:block}.creator-art{min-height:228px;padding:23px;display:block;background-position:center 47%}.creator-art>img{width:149px}.creator-art-copy{padding:0;margin-top:23px;max-width:210px}.creator-art-copy>.eyebrow{font-size:6px;letter-spacing:1.5px}.creator-art-copy p{font-size:27px;line-height:1.05;margin:8px 0 10px;letter-spacing:-.8px}.creator-art-copy p br:nth-child(2){display:none}.creator-art-copy>span:last-child{font-size:8px}.creator-feature-items{position:absolute;right:20px;bottom:25px;display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin:0}.creator-feature-items>.item-art{height:48px;width:48px}.creator-feature-items>.item-art:first-child{grid-column:1/-1;justify-self:center;margin-bottom:4px;width:64px;height:64px}.creator-content{padding:24px 22px}.creator-content>.eyebrow{font-size:7px}.creator-content h2{font-size:28px;letter-spacing:-.9px;margin-top:7px}.creator-content>.muted{font-size:10px;line-height:1.9;margin-bottom:22px}.creator-fields{gap:12px;margin-bottom:22px}.creator-fields label{font-size:9px}.creator-fields input,.creator-fields select{font-size:10px;padding:9px;min-height:38px}legend{font-size:9px;margin-bottom:12px}.faction-picker>div{gap:10px}.faction-option{padding:11px 10px;gap:9px;min-height:110px;align-items:start;flex-direction:column}.faction-option .faction-icon{height:41px;width:41px}.faction-option b{font-size:15px}.faction-option small{font-size:7px;line-height:1.7;margin-top:4px}.faction-option:has(input:checked):after{content:'✓';position:absolute;right:10px;top:11px;color:var(--teal);font-size:12px}.creator-note{padding:12px;gap:10px;margin-top:20px;font-size:8px}.creator-note>.item-art{width:33px;height:33px}.creator-note b{font-size:9px}.creator-buttons{margin-top:21px;gap:16px;flex-wrap:wrap}.creator-buttons .quiet{font-size:9px}.creator-buttons .primary{flex:1;justify-content:space-between;min-width:145px;font-size:11px}.detail-dialog{padding:30px 22px;width:calc(100% - 26px);border-radius:11px}.detail-dialog .eyebrow{font-size:7px;letter-spacing:1.3px}.detail-dialog h2{font-size:25px;margin-top:8px;letter-spacing:-.6px}.detail-dialog p{font-size:11px;line-height:1.9}.quest-letter{gap:15px;padding:17px;margin:20px 0;align-items:start}.quest-letter>.item-art{width:65px;height:65px}.quest-letter p{font-size:11px;line-height:1.85}.quest-letter .signature{font-size:9px;margin-top:11px}.quest-details-stats{gap:22px;padding:15px 0;flex-wrap:wrap}.quest-details-stats>div{padding-left:30px;min-height:35px}.quest-details-stats .item-art{width:23px;height:23px;top:5px}.quest-details-stats b{font-size:20px}.quest-details-stats small{font-size:6px;letter-spacing:.4px}.dialog-buttons{gap:17px;margin-top:22px;flex-wrap:wrap}.dialog-buttons button{font-size:10px}.dialog-footnote{font-size:8px!important}.preview-grid{gap:11px;margin-top:18px}.preview-grid .trade-artwork{height:126px}.preview-grid .trade-artwork>.item-art{height:94px;width:94px}.preview-grid .trade-card-body{padding:12px}.preview-grid .trade-card-body h3{font-size:17px}.preview-grid .trade-card-body>p{font-size:8px;line-height:1.6;min-height:25px;margin-bottom:10px}.preview-grid .trade-prices b{font-size:18px}.settings-row{gap:15px;padding:17px 0}.settings-row label{font-size:10px}.settings-row label small{font-size:8px;line-height:1.7}.settings-row select{width:136px;font-size:8px;padding:9px;flex-shrink:0}.settings-actions button{font-size:9px}.settings-row .quiet{font-size:9px;white-space:nowrap}.help-list{font-size:10px;line-height:1.85}.help-list li{margin-bottom:14px}.encounter-choices button{padding:14px}.encounter-choices b{font-size:12px}.encounter-choices small{font-size:9px}.toast-region{right:14px;left:14px;bottom:15px;max-width:none}.toast{font-size:10px;padding:12px 14px}.victory-note{padding:18px}.victory-note h3{font-size:16px}.victory-note p{font-size:10px}}
@media(max-width:370px){main{padding-inline:12px}.resource{gap:4px}.resource .resource-symbol{width:27px;height:27px}.resource b{font-size:14px}.level-resource{min-width:73px}.quest-card-body{padding:11px}.quest-paper h3{font-size:13px}.quest-reward{gap:7px}.quest-time{font-size:7px}.trade-artwork{height:132px}.trade-artwork>.item-art{height:102px;width:102px}.trade-card-body{padding:11px}.trade-prices b{font-size:20px}.market-actions button{font-size:7px}.inventory-section{padding:14px}.inventory-slot{gap:5px;padding:10px 7px}.inventory-slot>.item-art{width:32px;height:32px}.inventory-slot small{font-size:5.5px}.creator-content{padding:22px 18px}.creator-content h2{font-size:26px}.creator-art-copy p{font-size:25px}.creator-feature-items{right:15px}.creator-feature-items>.item-art{width:42px;height:42px}}
@media(max-width:680px){.captain-bar{position:relative}.identity{padding-right:91px}.identity strong{overflow-wrap:anywhere}.level-resource{position:absolute;top:25px;right:0;min-width:78px;max-width:83px;width:83px}.resource b{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Ship size follows the chart scale; the closer default view supports dragging on touch screens. */
.ship-marker{width:2.2%}.ship-wake{width:75%;height:15%;left:12%}.chart-viewport{touch-action:none}
.chart-world{--map-width:668px;--map-height:398px}.chart-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}.port-leaders{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}.port-leaders path{fill:none;stroke:#405f51;stroke-width:.7;opacity:.6;vector-effect:non-scaling-stroke}
.port-marker{width:0;height:0;transform:none;display:block;z-index:4;font-size:calc(var(--map-width)*.009);line-height:1.2}.port-marker>i{position:absolute;left:0;top:0;width:calc(var(--map-width)*.004);height:calc(var(--map-width)*.004);transform:translate(-50%,-50%);background:#f0d89e;border:.65px solid #274d4a;box-shadow:0 1px 3px #102e3566}.port-marker>span,.port-marker[data-id="lisbon"]>span,.port-marker[data-id="casablanca"]>span{position:absolute;left:calc(var(--map-width)*var(--label-x)/100);top:calc(var(--map-height)*var(--label-y)/100);transform:translate(-50%,-50%);margin:0;padding:calc(var(--map-width)*.0018) calc(var(--map-width)*.0025);background:#f3ead3ec;border:1px solid #9a956966;border-radius:2px;letter-spacing:.02em;box-shadow:0 1px 3px #343c301a}.port-marker:focus-visible{outline:0}.port-marker:focus-visible>span{outline:2px solid #298b82;outline-offset:2px}.port-marker.current>span{border-color:#437567;color:#1a564d}.port-marker.selected>span{background:#fff4d7;border-color:#92733c}
.route-svg #route-shadow{stroke:#092c3b;stroke-width:4.5;opacity:.65}.route-svg #route-line{stroke:#eed09a;stroke-width:1.8;stroke-dasharray:5 6;opacity:.95}.ship-marker{width:3.6%;aspect-ratio:1;transform:translate(-50%,-50%);transform-origin:center;transition:transform .14s linear;filter:drop-shadow(0 1px 1px #00213066)}.ship-marker img{height:100%;object-fit:contain;transform:none}.ship-wake{left:38%;width:24%;height:34%;bottom:-12%;border-radius:0 0 50% 50%;background:linear-gradient(#dbf2dd77,#b9e8df00);filter:blur(1px);opacity:.7}.ship-marker[data-sailing="false"] .ship-wake{opacity:0}
/* A local, animated battle table. Only actual resolved salvos fire projectiles. */
.sea-battle{height:238px;position:relative;overflow:hidden;border:1px solid #5b9b9b70;border-radius:16px;margin:20px 0;background:radial-gradient(ellipse at 50% 10%,#285e6c,#0a293b 75%);isolation:isolate}
.battle-grid{position:absolute;inset:0;opacity:.22;background-image:linear-gradient(#8dd5d61a 1px,transparent 1px),linear-gradient(90deg,#8dd5d61a 1px,transparent 1px);background-size:32px 32px}
.battle-waves{position:absolute;inset:-40%;background:repeating-radial-gradient(ellipse at 30% 60%,transparent 0 28px,#a1d9dc16 30px 31px,transparent 33px 55px);animation:battle-tide 9s linear infinite}
.battle-vessel{position:absolute;top:18%;width:37%;height:66%;animation:battle-bob 3s ease-in-out infinite}
.battle-vessel.friendly{left:2%}.battle-vessel.hostile{right:2%;animation-delay:-1.5s}
.battle-vessel img{width:100%;height:100%;object-fit:contain;transform:rotate(90deg);filter:drop-shadow(0 10px 5px #0006)}
.battle-vessel.hostile img{transform:rotate(-90deg);filter:sepia(.5) saturate(1.7) hue-rotate(315deg) drop-shadow(0 10px 5px #0006)}
.battle-vessel span{position:absolute;bottom:-10px;left:0;width:100%;text-align:center;color:#d5eee8;font:700 9px system-ui;letter-spacing:2px}
.battle-vessel.hostile span{color:#efb09c}.battle-vessel i{position:absolute;left:47%;top:25%;font-style:normal;font-size:22px;color:#fff;background:#182c37;border-radius:3px;padding:0 5px}
.battle-coordinates{position:absolute;bottom:12px;left:15px;color:#a1d6d177;font:9px system-ui;letter-spacing:2px}
.cannonball{position:absolute;top:49%;left:30%;width:9px;height:9px;border-radius:50%;background:#ffedb0;box-shadow:-12px 0 12px #ffb45d;opacity:0}
.salvo-out .outgoing{animation:battle-shot .6s .12s ease-in both}.salvo-in .incoming{left:70%;animation:battle-shot-back .6s .75s ease-in both}
.impact{position:absolute;top:43%;width:40px;height:40px;border:3px solid #ffdb97;border-radius:50%;background:#ffb35b85;opacity:0}
.enemy-impact{left:73%}.own-impact{left:19%}.salvo-out .enemy-impact{animation:battle-impact .65s .65s ease-out both}.salvo-in .own-impact{animation:battle-impact .65s 1.25s ease-out both}
.battle-won .hostile{transition:opacity 1s;opacity:.25}.battle-status{display:grid;grid-template-columns:1fr 1fr;gap:18px}.battle-status b{font-size:12px}.battle-status small{display:block;font-size:10px;color:var(--muted,#a9bbc1);margin-top:5px}.battle-status meter{display:block;width:100%;height:14px;accent-color:#72c6b0}.battle-status>div:last-child meter{accent-color:#db937c}
.battle-report{padding:15px;border-left:3px solid #d9b86b;background:#d9b86b0c;font-size:13px;line-height:1.65;min-height:56px}.battle-commands{display:grid;grid-template-columns:1fr 1fr;gap:10px}.battle-commands button{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:14px;white-space:normal}.battle-commands small{font-size:10px;opacity:.8;line-height:1.5}.battle-commands button:disabled{opacity:.4}
@keyframes battle-bob{50%{translate:0 -5px;rotate:1.5deg}}@keyframes battle-tide{to{transform:translate(30px,20px)}}@keyframes battle-shot{0%{opacity:1;left:30%}90%{opacity:1}100%{opacity:0;left:76%}}@keyframes battle-shot-back{0%{opacity:1;left:70%}90%{opacity:1}100%{opacity:0;left:23%}}@keyframes battle-impact{0%{opacity:1;transform:scale(.2)}100%{opacity:0;transform:scale(2.2)}}
@media(max-width:520px){.sea-battle{height:185px}.battle-status{gap:8px}.battle-status b{font-size:10px}.battle-commands{grid-template-columns:1fr}.battle-vessel span{font-size:7px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.sea-battle *{animation:none!important;transition:none!important}.salvo-out .enemy-impact,.salvo-in .own-impact{opacity:.5}.battle-vessel{translate:none!important;rotate:none!important}}
.muzzle,.smoke{position:absolute;top:46%;border-radius:50%;opacity:0;pointer-events:none}.muzzle{width:22px;height:22px;background:#ffefb2;box-shadow:0 0 22px #ffd16a}.own-muzzle,.own-smoke{left:29%}.enemy-muzzle,.enemy-smoke{left:68%}.smoke{width:32px;height:32px;background:radial-gradient(circle,#d4ddd8aa,#d4ddd800)}.salvo-out .own-muzzle{animation:battle-impact .24s .1s ease-out both}.salvo-in .enemy-muzzle{animation:battle-impact .24s .73s ease-out both}.salvo-out .own-smoke{animation:battle-smoke 1.3s .15s ease-out both}.salvo-in .enemy-smoke{animation:battle-smoke 1.3s .78s ease-out both}@keyframes battle-smoke{0%{opacity:.8;transform:scale(.5)}100%{opacity:0;transform:translate(0,-26px) scale(3)}}
.pirate-zones{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.pirate-zones ellipse{fill:#e9675624;stroke:#c75c4bb0;stroke-width:1;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}.pirate-marker{position:absolute;width:3.6%;aspect-ratio:1;z-index:3;transform:translate(-50%,-50%);padding:0;border:0;background:none;cursor:pointer;filter:drop-shadow(0 1px 2px #391c14aa)}.pirate-marker img{width:100%;height:100%;object-fit:contain;transform:rotate(var(--pirate-heading,90deg));filter:sepia(.7) saturate(2) hue-rotate(320deg)}.pirate-marker>span{position:absolute;left:55%;top:-12%;font-size:clamp(8px,1vw,13px);background:#3c2927;color:#ffe3ca;line-height:1.2;padding:1px 3px;border:1px solid #d37c63;border-radius:2px}.pirate-marker[data-approaching=true] img{translate:60% -10%}.pirate-marker[data-approaching=true]>span{translate:100% -10%}
.course-planner{padding:16px 22px;border-top:1px solid #61868c45;background:#102c3b}.course-heading{display:flex;justify-content:space-between;gap:10px;color:#d5c18c;font-size:10px;letter-spacing:1px}.course-heading small{color:#92b4bb;font-size:9px;letter-spacing:0}.course-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.course-options button{border:1px solid #547982;background:#153641;color:#d8e9e3;padding:10px 12px;border-radius:8px;text-align:left;cursor:pointer}.course-options button.selected{border-color:#d9be79;background:#35483f;box-shadow:inset 0 0 0 1px #d9be7944}.course-options button b{font-size:12px;display:block}.course-options button small{display:block;font-size:9px;margin-top:4px;color:#adc5c9;line-height:1.5}.course-options button:disabled{opacity:.45;cursor:default}.traffic-note{color:#9db8be;font-size:10px;line-height:1.6;margin:9px 0 0}.pirate-alert{display:flex;align-items:center;gap:18px;border-left:3px solid #eaa266;padding-left:12px}.pirate-alert strong{color:#ffca94;font-size:13px}.pirate-alert p{color:#bdcdd0;font-size:11px;line-height:1.6;margin:6px 0 0}.pirate-alert button{font-size:11px;flex-shrink:0}
.sea-combat{background:#102c3b;border:1px solid #7a9b9b66;border-radius:14px;padding:24px 30px;margin:22px 0;scroll-margin-top:18px}.sea-combat-inner{display:flow-root}.sea-combat h2{font:600 28px Georgia,serif;color:#f0ddbb;margin:9px 0}.sea-combat p{font-size:12px;line-height:1.7;color:#c0d1d2}.sea-combat .sea-battle{float:right;width:38%;height:200px;margin:0 0 16px 24px}.sea-combat .battle-status{width:56%;padding-top:12px}.sea-combat .battle-report{max-width:57%}.sea-combat .battle-commands{clear:both;grid-template-columns:repeat(4,minmax(0,1fr));padding-top:8px}.sea-combat .dialog-buttons{clear:both}.sea-combat .dialog-footnote{font-size:10px;opacity:.8}
.map-muzzle,.map-impact{position:absolute;width:18px;height:18px;border-radius:50%;pointer-events:none;opacity:0}.map-muzzle{left:70%;top:40%;background:#ffe59c;box-shadow:0 0 18px #ffb653}.map-impact{left:70%;top:40%;border:2px solid #ffd2a0;background:#ffb25a99}.map-out #ship-marker .map-muzzle{animation:battle-impact .4s ease-out}.map-out .pirate-marker[data-approaching=true] .map-impact{animation:battle-impact .6s .3s ease-out}.map-in #ship-marker .map-impact{animation:battle-impact .6s .8s ease-out}
@media(max-width:760px){.sea-combat{padding:20px}.sea-combat .sea-battle{float:none;width:100%;height:190px;margin:16px 0}.sea-combat .battle-status,.sea-combat .battle-report{width:100%;max-width:none}.sea-combat .battle-commands{grid-template-columns:1fr 1fr}.pirate-alert{display:block}.pirate-alert button{margin-top:12px}.course-heading{flex-direction:column;gap:5px}}
@media(max-width:450px){.course-planner{padding:14px}.course-options{grid-template-columns:1fr}.sea-combat .battle-commands{grid-template-columns:1fr}.pirate-marker{width:4.2%}}
@media(prefers-reduced-motion:reduce){.map-out .map-muzzle,.map-out .map-impact,.map-in .map-impact{animation:none!important;opacity:.6}}
.quest-actions{display:grid;gap:7px;padding:0 12px 13px;grid-column:1/-1}.quest-actions button{justify-content:center;min-width:0;min-height:34px;padding:8px 5px;font-size:10px;white-space:normal;overflow-wrap:anywhere}.quest-actions .quiet{color:var(--muted)}.quest-actions .primary[aria-pressed=true]{background:#284c48;color:#c1e5d8;border:1px solid var(--teal)}
/* Parchment atlas: hand-inked map lettering and harbor silhouettes, native geography. */
.chart-frame{border:2px solid #6d5030;box-shadow:0 0 0 1px #ba925345,0 12px 40px #0004}.chart-viewport{background:#7c8f83}.chart-viewport:after{content:'';position:absolute;inset:0;z-index:6;pointer-events:none;border:3px solid #78532e80;box-shadow:inset 0 0 28px #35201270}.map-compass{display:none}.map-footnote{background:#3b2a1bcf;color:#e4c58c;border:1px solid #b08a4f66}.map-tools .icon-button{background:#4c3928ed;border-color:#b28c5366;color:#e9cc91}
.port-leaders path{stroke:#745638;opacity:.42;stroke-width:.65}.port-marker{font-family:Georgia,'Palatino Linotype',serif;font-size:calc(var(--map-width)*.0082);font-weight:700;color:#51351e}.port-marker>span,.port-marker[data-id="lisbon"]>span,.port-marker[data-id="casablanca"]>span{background:none;border:0;box-shadow:none;padding:calc(var(--map-width)*.0015);text-transform:uppercase;letter-spacing:.065em;text-shadow:0 1px 0 #efd39c,1px 0 1px #e9c88e,-1px 0 1px #e9c88e}.port-marker>i{width:calc(var(--map-width)*.012);height:calc(var(--map-width)*.009);border:0;border-radius:0;background:transparent url('assets/harbor-mark-v4.svg') center/contain no-repeat;box-shadow:none;outline:0}.port-marker.current>i,.port-marker.selected>i{background:transparent url('assets/harbor-mark-v4.svg') center/contain no-repeat;border:0;outline:0;filter:drop-shadow(0 0 2px #fff0a2)}.port-marker.visited>span:before{content:none}.port-marker.current>span{border:0;color:#704019}.port-marker:hover>span,.port-marker.selected>span{background:#e7c58775;border:0;color:#3e2412;text-decoration:underline;text-underline-offset:3px}.port-marker:focus-visible>span{outline:2px solid #7c4622;outline-offset:2px}
.route-svg #route-shadow{stroke:#f1d9a1;opacity:.76;stroke-width:4}.route-svg #route-line{stroke:#7a4727;stroke-width:1.7;stroke-dasharray:5 6}.pirate-zones ellipse{fill:#9c322c20;stroke:#8b4030b0}.pirate-marker>span{background:#3d3025;color:#e9c98c;border-color:#a67c46}
.chart-viewport,.chart-viewport *{-webkit-user-select:none;user-select:none}.chart-viewport img{-webkit-user-drag:none}.chart-viewport[data-dragging=true],.chart-viewport[data-dragging=true] *{cursor:grabbing}
