:root{--ink:#152e33;--deep:#11292f;--cream:#f4ecd6;--paper:#e9e2cb;--brass:#ffc063;--muted:#a3b8b2;font:15px/1.4 'Segoe UI',system-ui,sans-serif;color:var(--cream);background:var(--ink);color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,a{font:inherit;touch-action:manipulation}button{cursor:pointer;border:1px solid #798c83;border-radius:3px;background:transparent;color:inherit;font-size:13px;font-weight:650;padding:9px 14px}button:hover:enabled{filter:brightness(1.13);border-color:currentColor}button:disabled{cursor:default;opacity:.47}button:focus-visible,a:focus-visible,#board:focus-visible{outline:3px solid #eb9851;outline-offset:2px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.mast{height:48px;padding:0 clamp(16px,4vw,66px);display:flex;align-items:center;justify-content:space-between;background:#11262c;color:#e6e4cb;border-bottom:1px solid #7c88784a}.mast a,.mast button{font-size:12px}.mast button{padding:4px 10px;border-color:#76847a88}.mast strong{font-size:13px;letter-spacing:.17em}.mast i{font-style:normal;color:var(--brass);font-size:18px;vertical-align:-1px;margin-right:5px}.mast strong span{font-weight:350;letter-spacing:.2em}.screen{min-height:calc(100dvh - 48px)}.kicker,.caption,.title-foot,.chart-foot,.radio strong,.board-top{font:700 10px/1.4 'Segoe UI',sans-serif;letter-spacing:.14em;text-transform:uppercase}.kicker{display:flex;align-items:center;gap:10px;color:#64736b}.kicker i{width:32px;height:2px;background:currentColor}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.primary{background:var(--brass);border-color:var(--brass);color:#192c2b;padding:12px 19px}.primary b{margin-left:13px;font-size:17px}.glass{background:#132d36a8;color:var(--cream);border-color:#bac6b3a8}.title-screen{position:relative;display:flex;align-items:center;background:linear-gradient(90deg,#0b202aee,#0c242bd9 22%,#102c3255 51%,transparent 75%),url(cover.jpg) center 54%/cover}.hero-copy{padding:55px 0 90px;margin-left:7vw;width:min(540px,85vw)}.hero-copy .kicker{color:#e9c487}.hero-copy h1{margin:19px 0 25px;text-transform:uppercase;font:900 clamp(58px,7.8vw,125px)/.83 Impact,'Arial Narrow',sans-serif;letter-spacing:-.025em;color:#f6eed8}.hero-copy h1 em{font-style:normal;color:var(--brass);letter-spacing:.015em}.hero-copy p{max-width:365px;font:19px/1.45 Georgia,serif;text-shadow:0 1px 4px #132a32;margin:0 0 26px}.title-foot{position:absolute;bottom:20px;left:4vw;right:4vw;border-top:1px solid #d3dcc86b;padding-top:11px;display:flex;justify-content:space-between;font-size:9px;color:#f0ead9}.paper-screen{color:var(--ink);background:radial-gradient(ellipse at 10% 0%,#f8f0d8,transparent 55%),repeating-linear-gradient(0deg,#29372904 0 1px,transparent 1px 4px),var(--paper);padding:clamp(18px,4vw,60px) max(5vw,calc((100vw - 1310px)/2))}.page-head,.chart-foot,.battle-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-head h2,.report-sheet h2{font:600 clamp(36px,4.4vw,72px)/1.04 Georgia,serif;letter-spacing:-.055em;margin:7px 0 20px}.atlas{display:grid;grid-template-columns:1.55fr 1fr;border:1px solid #6b817c;box-shadow:0 8px 28px #324c4221;min-height:365px}.sea-chart{position:relative;background:#89aaa3;min-height:360px;overflow:hidden}.sea-chart canvas,#ports{position:absolute;width:100%;height:100%;inset:0}.port{position:absolute;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #203f43;width:37px;height:37px;padding:0;background:#ecd395;box-shadow:0 0 0 4px #fff5cd57;font:bold 14px Georgia,serif}.port.lock{background:#a2b6ab;color:#37575b;box-shadow:none;border-style:dashed}.port.current{outline:2px solid #f9dc94;outline-offset:5px;background:#194348;color:#fff0c8}.compass{position:absolute;right:12px;top:9px;text-align:center;color:#365859;font:13px Georgia,serif}.file{padding:clamp(22px,3.3vw,48px);background:#f5efdc}.file h3,.report-sheet h3{font:600 clamp(26px,2.6vw,44px)/1.08 Georgia,serif;letter-spacing:-.045em;margin:12px 0}.file p,.report-sheet>p,#workshop>p{font:17px/1.48 Georgia,serif}.order{border-left:3px solid #b28745;padding:8px 12px;background:#b7ae801b;font-weight:620;font-size:14px}.file .small{font:12px/1.4 system-ui;color:#53675e}.file button{margin:4px 4px 0 0}.chart-foot{padding-top:17px;color:#465f59}.battle{max-width:1800px;margin:auto;display:flex;flex-direction:column;padding:12px clamp(12px,2.3vw,40px) 10px;gap:10px;background:#152f35}.battle-head .kicker{color:#d7bb84}.battle-head h2{font:500 clamp(22px,2.6vw,41px)/1.1 Georgia,serif;margin:2px 0 0;letter-spacing:-.035em}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(250px,24vw,355px);flex:1;min-height:0;border:1px solid #6c827973}.board-frame{position:relative;min-height:420px;overflow:hidden;background:#31696d}#board,#board canvas,#flat{position:absolute;inset:0;width:100%;height:100%;display:block}#board{touch-action:manipulation}.board-top,.board-bottom{position:absolute;left:12px;right:12px;display:flex;justify-content:space-between;gap:6px;pointer-events:none}.board-top{top:10px}.board-top span,.board-bottom span{background:#142f35e8;color:#f1ead2;padding:5px 9px;border:1px solid #cadbc030}.board-bottom{bottom:10px;justify-content:center}.board-bottom span{font-size:12px;text-align:center;max-width:90%}.orders{display:flex;flex-direction:column;gap:14px;padding:clamp(13px,1.55vw,25px);border-left:1px solid #617b72;background:#1a373c}.objective .kicker,.caption{color:#cdbb93}.orders h3{font:500 23px/1.08 Georgia,serif;margin:6px 0}.orders p{font-size:13px;line-height:1.45;color:#d3dfd4;margin:4px 0}.squad,.console{border-top:1px solid #738b7b66;padding-top:11px}#crew{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.crew-btn{flex:1;min-width:52px;text-align:left;padding:6px 8px;font-size:12px;border-color:#607d74}.crew-btn small{display:block;color:#b4c8be;font-size:10px}.crew-btn[aria-pressed=true],.actions button[aria-pressed=true]{background:#3a5351;border-color:var(--brass);color:#ffdc96}.crew-btn:before{content:'';display:block;width:15px;height:3px;background:var(--rig);margin-bottom:4px}.actions{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.actions button{font-size:12px;padding:7px 9px}.turn-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}.turn-controls button{flex:auto;padding:9px 6px}.radio{display:flex;gap:12px;align-items:baseline;font-size:13px;color:#d5e0d5}.radio strong{white-space:nowrap;color:#d7b478}.report-sheet{max-width:850px;margin:3vh auto;padding:clamp(23px,4vw,55px);background:#f7f1df;border:1px solid #a4ac95;box-shadow:6px 7px 0 #5e786123}.report-stats{display:flex;gap:clamp(16px,4vw,55px);margin:18px 0;padding:15px 0;border-block:1px solid #a2b19e}.report-stats b,.report-stats small{display:block}.report-stats b{font:30px Georgia,serif}.report-stats small{font-size:11px;color:#50645e}#refits{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 18px}#refits button{flex:1;min-width:118px;text-align:left}#refits small{display:block;font-size:11px;font-weight:400}.fit-chosen{background:#cfdcc1;border-color:#385347}.report-sheet .row{margin-top:18px}dialog{color:var(--ink);background:#f5efdc;border:1px solid #839486;border-radius:4px;max-width:min(510px,92vw);max-height:86dvh;padding:24px 28px;box-shadow:0 14px 90px #081d23b3}dialog::backdrop{background:#081b21ba}dialog h2{font:34px Georgia,serif;margin:9px 0}dialog p{margin:10px 0;font-size:14px}dialog .row{margin-top:20px}#flat{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(7,1fr);padding:38px 8px;background:#386e75;gap:2px}#flat button{font-size:11px;padding:2px;background:#b7c1a9;color:#1f393a}#flat button[data-active]{background:#e3bc79}#flat .water{visibility:hidden}
@media(min-width:851px){.battle{height:calc(100dvh - 48px);min-height:590px}}
.orders{overflow-y:auto}#intel{border-top:1px solid #738b7b66;padding-top:9px;color:#d7dfd1}#intel summary{cursor:pointer;font-size:12px;font-weight:650;color:#e3c59b}#forecast{margin-top:5px}#forecast>div{display:flex;justify-content:space-between;align-items:baseline;gap:9px;border-bottom:1px solid #718e7e30;padding:4px 0;font-size:11px}#forecast b{font-weight:500}#forecast span{color:#e4c3a4;text-align:right}#commendations{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}#commendations span{padding:4px 9px;border:1px solid #b0b6a4;font-size:11px;color:#67796f}#commendations .earned{color:#6b4a20;border-color:#c49a57;background:#e8d8b7}@media(max-width:650px){#intel{grid-column:1/-1}}
@media(max-width:850px){.atlas{grid-template-columns:1.1fr 1fr}.battle-layout{grid-template-columns:minmax(0,1fr) 235px}.board-frame{min-height:440px}.orders{gap:8px}.battle{min-height:calc(100dvh - 48px)}}
@media(max-width:650px){.title-screen{align-items:flex-end;background-position:62% center;background-image:linear-gradient(0deg,#0b202afa 0%,#0c242bd6 36%,#102c3233 75%),url(cover.jpg)}.hero-copy{margin:0 7vw;padding:40px 0 68px}.hero-copy p{font-size:16px;max-width:330px}.hero-copy h1{margin:12px 0 17px}.title-foot span:last-child{display:none}.mast strong{font-size:10px}.atlas,.battle-layout{grid-template-columns:1fr}.sea-chart{min-height:230px}.paper-screen{padding:20px 14px}.file{padding:18px}.file h3{margin:7px 0}.file p{font-size:15px}.port{width:31px;height:31px}.battle{padding:8px;gap:6px}.board-frame{min-height:0;height:clamp(285px,48dvh,580px)}.orders{border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:11px}.objective,.turn-controls{grid-column:1/-1}.objective h3{font-size:19px;display:inline}.objective .kicker{display:inline;margin-right:8px}.squad,.console{padding-top:7px}.orders p{font-size:12px}.orders .console h3{font-size:19px}.turn-controls{margin-top:0}.board-top{font-size:8px}.battle-head button{padding:7px 9px}.radio{font-size:11px}.report-sheet{margin:10px auto}.board-bottom span{font-size:10px}.board-bottom{bottom:3px}.crew-btn{min-width:43px;padding:5px;font-size:11px}}
.battle-layout #board canvas{outline:0}
@media(max-width:650px){body .board-frame{height:clamp(265px,min(43dvh,88vw),500px)}body .battle{padding-bottom:calc(62px + env(safe-area-inset-bottom))}body .turn-controls{position:fixed;z-index:3;left:0;right:0;bottom:0;display:flex;background:#152f35f7;border-top:1px solid #789386;padding:6px 10px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -3px 9px #11292f44}body .turn-controls button{min-height:38px}}
