.desk-tabs button{flex:0 0 auto}.world-news{display:flex;align-items:center;gap:15px;background:linear-gradient(100deg,#344c43,#193440);border:1px solid #bba36555;border-radius:9px;padding:14px 18px;margin:0 0 20px}.world-news-mark{color:var(--gold);font-size:25px}.world-news>div{flex:1;min-width:0}.world-news b{display:block;color:var(--gold-light);font-size:11px}.world-news span:not(.world-news-mark){display:block;font-size:11px;color:#c2d3cb;margin-top:3px}.world-news button{flex-shrink:0;font-size:10px}.world-weather{border-top:1px solid #9cb6b330;padding-top:14px;margin-top:14px}.weather-heading{display:flex;gap:13px;align-items:center}.weather-symbol{font-size:29px;color:#dfca8f}.weather-heading strong{font-size:12px;color:#e5d4a4}.weather-heading p{font-size:10px;line-height:1.7;color:#b3c7c6;margin-top:4px}.sailing-modes{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 8px}.sailing-modes button{padding:7px 10px;border:1px solid #7a999d66;background:#193e48;color:#bfd3d0;border-radius:5px;font-size:10px}.sailing-modes button[aria-pressed=true]{background:#c5ab70;color:#183133;border-color:#d8c18a}.world-weather>small{color:#91aaad;font-size:9px;line-height:1.6}.world-reputation{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}.world-reputation>span{border:1px solid var(--line);padding:12px 15px;border-radius:7px;font-size:11px;color:var(--muted)}.world-reputation b{float:right;color:var(--gold-light);font-size:16px}.world-story-grid,.world-event-grid,.crew-grid,.preparation-grid,.building-grid{display:grid;gap:16px}.world-story-grid{grid-template-columns:1fr 1fr}.world-event-grid,.preparation-grid,.building-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.crew-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-card{position:relative;min-width:0;overflow:hidden;border:1px solid #6d969344;background:linear-gradient(145deg,#1e3b45,#122b37);border-radius:11px;padding:23px;display:flex;flex-direction:column;align-items:flex-start}.world-card h3{font-family:Georgia,serif;font-size:23px;line-height:1.2;color:#ebd7a8;margin:8px 0 12px;font-weight:600;letter-spacing:-.4px}.world-card p{font-size:12px;line-height:1.8;color:#aec6c7;margin:0 0 15px}.world-card .primary,.world-card .secondary{margin-top:auto;font-size:11px;white-space:normal;text-align:center}.world-card>small{font-size:10px;color:#9eb8b7;line-height:1.7}.mission-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#e1c790;padding:12px 0;margin-bottom:12px;border-top:1px solid var(--line);width:100%}.mission-requirement{display:flex;align-items:center;gap:7px;font-size:10px!important}.mission-requirement .item-art{height:29px;width:29px}.story-choices{display:grid;gap:8px;width:100%}.story-choices button{display:flex;flex-direction:column;text-align:left;background:#1b3e49;border:1px solid #799b9655;color:#e2e9db;border-radius:6px;padding:13px}.story-choices small{font-size:10px;line-height:1.7;color:#a5c2bf;margin-top:4px}.story-complete{background:radial-gradient(ellipse at top right,#8c743622,transparent 75%),#19383b}.mission-active{padding:18px;border:1px solid #b9a16a66;border-left:3px solid var(--gold);border-radius:7px;display:flex;gap:16px;align-items:center;margin-bottom:20px;background:#88794214}.mission-active>div{flex:1}.mission-active b{color:var(--gold-light)}.mission-active p{font-size:11px;color:#b5c9c5;margin-top:5px}.world-section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 18px}.world-section-title h3{font-size:22px;margin-top:6px}.world-section-title>span{font-size:10px;color:var(--muted)}.event-card>.item-art{width:60px;height:60px;align-self:flex-end;position:absolute;right:15px;top:14px;opacity:.8}.event-card>.eyebrow{padding-right:50px}.event-card h3{padding-right:28px}.event-card progress,.crew-loyalty progress{width:100%;height:8px;accent-color:#c8ad6f;margin:8px 0}.event-progress{font-size:10px;color:#d0c394;margin:5px 0 12px}.event-consequence{font-size:10px!important;color:#87beb0!important}.event-card .primary{margin-top:10px}.coast-news{margin-top:28px;padding:24px;background:#112b34;border:1px solid var(--line);border-radius:9px}.coast-news h3{font-size:18px;margin-bottom:16px}.coast-news p{font-size:11px;color:#b9ccca;line-height:1.8;border-top:1px solid var(--line);padding:12px 0}.coast-news small{font-size:8px;display:block;letter-spacing:1.2px;color:#c4af7e}.crew-portrait{height:83px;width:83px;background:radial-gradient(ellipse,#8f82554d,#183c45);border:1px solid #9f9b6b55;border-radius:50%;display:grid;place-items:center;margin-bottom:18px;position:relative}.crew-portrait .item-art{width:57px;height:57px;opacity:.75}.crew-portrait>span:not(.item-art){position:absolute;right:-5px;bottom:0;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#d1b47a;color:#243d3d;font:700 18px Georgia,serif}.crew-card.aboard{border-color:#72a99199;background:linear-gradient(145deg,#294b44,#142f38)}.crew-trait{font-size:11px;color:#d0d9c1;margin:0 0 12px}.crew-effect{color:#8bc6b7!important;border-left:2px solid #5b9c8b;padding-left:10px}.crew-loyalty{width:100%;margin-bottom:12px}.crew-loyalty label{font-size:10px;color:#c2d4c9}.crew-wage{margin-top:12px!important}.preparation-count{font:700 35px Georgia,serif;color:var(--gold-light);align-self:flex-end}.preparation-grid h3{font-size:21px;margin-top:-22px;padding-right:30px}.world-market-notice{display:flex;gap:14px;align-items:center;background:#bba05e16;border:1px solid #bba05e55;border-radius:8px;padding:15px;margin-bottom:20px}.world-market-notice>.item-art{width:48px;height:48px}.world-market-notice>div{flex:1}.world-market-notice b{font-size:12px;color:var(--gold-light)}.world-market-notice p{font-size:10px;color:#b9c6bc;line-height:1.7;margin-top:5px}.home-scene{width:100%;height:auto;max-height:340px;border:1px solid #a5916055;border-radius:12px 12px 0 0;display:block;background:#809794}.home-water{animation:home-water 12s ease-in-out infinite alternate}@keyframes home-water{to{transform:translateX(20px)}}.home-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:18px;background:#172f38;border:1px solid var(--line);border-radius:0 0 9px 9px;margin-bottom:20px;font-size:11px;color:#c4d1c1}.home-summary .primary{margin-left:auto}.building-grid .item-art{width:65px;height:65px;margin-bottom:12px}.home-stock{border:1px solid var(--line);border-radius:9px;overflow:hidden}.home-stock-row{display:flex;align-items:center;gap:14px;padding:17px;border-bottom:1px solid var(--line);background:#16313b}.home-stock-row>.item-art{width:42px;height:42px}.home-stock-row>div{flex:1}.home-stock-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.home-stock-row select{background:#0f2834;color:#d5e3d7;border:1px solid var(--line);padding:8px;border-radius:4px}.home-stock-row button{font-size:10px}.world-warning{font-size:12px;color:#e6c48a;margin-bottom:18px}.tactical-status{clear:both;display:flex;gap:18px;flex-wrap:wrap;padding:16px 0 8px;color:#bfccc0;font-size:11px}.tactical-status b{color:#e4c689}.sea-combat .tactical-commands{padding-top:8px}.port-event-flag{position:absolute;left:3px;top:-10px;font-style:normal;background:#975133;color:#ffe6a9;border:1px solid #dfbd70;border-radius:50%;width:11px;height:11px;text-align:center;font:bold 9px/10px Georgia,serif;pointer-events:none}.weather-layer{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0}.chart-world[data-weather=storm] .weather-layer{background:repeating-linear-gradient(115deg,transparent 0px,transparent 32px,#536a6a66 33px,#d1d2bd55 34px,transparent 35px,transparent 63px);opacity:.24;animation:chart-rain 1.4s linear infinite}.chart-world[data-weather=fog] .weather-layer{background:linear-gradient(110deg,transparent,#c7c8a466,transparent,#d0cfad55,transparent);opacity:.35;animation:chart-fog 16s ease-in-out infinite alternate}@keyframes chart-rain{to{background-position:-63px 126px}}@keyframes chart-fog{to{transform:translateX(4%)}}
@media(max-width:1050px){.crew-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-reputation{grid-template-columns:1fr 1fr}.world-card{padding:19px}.world-card h3{font-size:21px}}
@media(max-width:680px){.world-story-grid,.world-event-grid,.crew-grid,.building-grid,.preparation-grid{grid-template-columns:1fr}.world-news{align-items:flex-start;flex-wrap:wrap;padding:13px}.world-news>div{flex-basis:calc(100% - 45px)}.world-news button{margin-left:36px}.world-section-title{align-items:flex-start;flex-direction:column;gap:7px}.mission-active{align-items:flex-start;flex-wrap:wrap}.mission-active>div{flex-basis:100%}.home-stock-row{gap:8px;flex-wrap:wrap}.home-stock-row>div{min-width:calc(100% - 62px)}.home-stock-row .secondary{flex:1}.home-summary{gap:12px}.home-summary .primary{margin-left:0}.world-market-notice{flex-wrap:wrap}.world-market-notice>div{min-width:65%}.tactical-status{gap:10px}}
@media(prefers-reduced-motion:reduce){.weather-layer,.home-water{animation:none!important}}
.convoy-marker{position:absolute;z-index:2;width:1.8%;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 1px 2px #263e3966)}.convoy-marker img{display:block;width:100%;transform:rotate(var(--convoy-heading,0deg));filter:sepia(.4) saturate(.7)}.convoy-marker span{position:absolute;left:50%;top:90%;transform:translateX(-50%);font:700 calc(var(--map-width)*.0045) Georgia,serif;letter-spacing:.1em;color:#305649;background:#e8d2a9bc;border-radius:2px;padding:1px 3px}
.home-scene.home-painted{position:relative;margin:0;aspect-ratio:2/1;max-height:none;overflow:hidden;background:#2e4a50;border-color:#b3935c77;box-shadow:0 12px 36px #0003}.home-painted>img{position:absolute;left:0;top:0;width:100%;height:auto;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none;transform:translateY(var(--harbor-offset,0%))}.home-painted[data-stage="1"]{--harbor-offset:-33.333333%}.home-painted[data-stage="2"]{--harbor-offset:-66.666667%}.home-painted:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#071c2bb3,transparent 42%,transparent 75%,#071c2b55)}.home-painted figcaption{position:absolute;left:26px;top:22px;z-index:1;text-shadow:0 2px 8px #0009}.home-painted figcaption .eyebrow{color:#e5c88f;font-size:9px}.home-painted figcaption strong{display:block;font:600 clamp(24px,3.2vw,44px) Georgia,serif;color:#fff0cb;margin:5px 0}.home-painted figcaption small{color:#ecdfc4;font-size:11px}.crew-card .crew-portrait{width:100%;height:auto;aspect-ratio:1;border-radius:9px;display:block;border:1px solid #b3976655;background-image:url('assets/crew-portraits-v2.png');background-size:300% 200%;background-repeat:no-repeat;margin-bottom:20px;box-shadow:0 6px 22px #0003}.crew-person-beatriz{background-position:0 0}.crew-person-eleni{background-position:50% 0}.crew-person-agata{background-position:100% 0}.crew-person-maroun{background-position:0 100%}.crew-person-salome{background-position:50% 100%}.crew-person-nura{background-position:100% 100%}.crew-card .crew-portrait:after{content:'';display:block;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 22px #061e2544}.world-career{font-size:11px;color:#c6b78b;margin:0 0 18px}
@media(max-width:680px){.home-painted figcaption{left:15px;top:13px}.home-painted figcaption strong{font-size:25px}.home-painted figcaption small{font-size:9px}.crew-card .crew-portrait{max-width:320px;align-self:center}}
.players-status{padding:10px 21px;border-top:1px solid var(--line);font-size:9px;color:#a6c4c6;background:#102c36}.sea-player-marker{position:absolute;z-index:3;width:1.65%;aspect-ratio:1;transform:translate(-50%,-50%);border:0;padding:0;background:none;filter:drop-shadow(0 1px 2px #1f454477)}.sea-player-marker img{display:block;width:100%;height:100%;object-fit:contain;transform:rotate(var(--player-heading,0deg));pointer-events:none}.sea-player-marker i{position:absolute;right:-10%;top:-15%;width:38%;height:40%;background:#67b7ce;border:1px solid #285a70;clip-path:polygon(0 0,100% 0,70% 50%,100% 100%,0 100%)}.sea-player-marker span{display:none;position:absolute;left:50%;top:90%;transform:translateX(-50%);white-space:nowrap;background:#173c4deb;border:1px solid #92c8d0;color:#e8f0de;border-radius:3px;font-size:calc(var(--map-width)*.006);padding:2px 4px}.sea-player-marker:hover span,.sea-player-marker:focus-visible span{display:block}.sea-player-marker:focus-visible{outline:2px solid #7dcbdb;outline-offset:2px}

.player-visibility{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 16px 0;color:#d9e8e7;font-size:.8rem}
.player-visibility label{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:32px}
.player-visibility input[type="checkbox"]{width:18px;height:18px;margin:0;padding:0;accent-color:#d9be79;flex:none}
.player-visibility a{color:#f0d79b;text-decoration:underline}
