:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#183e4a;background:#eef4f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:1050px;margin:auto;padding:28px 24px}header,footer,.section-heading,.connection{display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{font-weight:850;letter-spacing:.15em;font-size:18px}.badge{border:1px solid #b5cbd0;padding:6px 10px;border-radius:20px;font-size:12px}.intro{padding:45px 0 20px;max-width:680px}.eyebrow{font-size:11px;letter-spacing:.14em;color:#407681}h1{font-size:clamp(32px,6vw,48px);letter-spacing:-.04em;margin:12px 0}p{line-height:1.65;color:#54717a}h2{font-size:18px;margin:0 0 12px}.card{background:#fff;border:1px solid #d5e2e5;border-radius:16px;padding:24px;margin-bottom:18px}.columns{display:grid;grid-template-columns:1fr 1.2fr;gap:18px}.columns>.card{margin-bottom:18px}.connection p{margin:6px 0 0;font-size:13px;overflow-wrap:anywhere}.dot{display:inline-block;width:9px;height:9px;background:#bd8848;border-radius:50%;margin-right:9px}.dot.online{background:#178374}.section-heading>span{font-size:12px;white-space:nowrap;color:#54717a}.section-heading h2{margin:0}.people{list-style:none;padding:0;margin:18px 0 0}.people li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #edf2f3;overflow-wrap:anywhere}.people li>span:first-child{min-width:0}.present,.absent{font-size:12px;white-space:nowrap}.present{color:#13796c}.absent{color:#927544}small,.muted{color:#67818b;font-size:12px}button,input{font:inherit;border-radius:9px;min-height:44px}button{border:1px solid #14685f;background:#14685f;color:#fff;padding:11px 16px;cursor:pointer;font-size:14px}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #d29b3a;outline-offset:3px}.secondary{background:#fff;color:#14685f;flex-shrink:0}.signals{display:flex;gap:10px}.signals button{flex:1;background:#edf6f4;color:#194c45;border-color:#c9dfda;display:flex;flex-direction:column;align-items:center;gap:7px}.signals button>span:first-child{font-size:25px}.events{list-style:none;margin:18px 0 0;padding:0;max-height:400px;overflow:auto}.events li{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:1px solid #edf2f3}.events li>div{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}.events li>div>span{font-size:13px;color:#54717a}.events time{margin-left:auto;font-size:12px;white-space:nowrap;color:#54717a}.emoji{font-size:24px}.empty{padding:18px 0}.join{display:grid;gap:12px;max-width:420px}input{border:1px solid #b7cdd1;padding:10px 12px;width:100%;background:#fbfdfd;color:#183e4a}.notice{padding:12px;background:#fff4d9;border-radius:9px}footer{font-size:11px;color:#67818b;padding:14px 0}@media(max-width:650px){main{padding:20px 14px}.intro{padding-top:28px}.columns{grid-template-columns:1fr;gap:0}.card{padding:18px}.connection{align-items:flex-start;flex-direction:column}.connection button{width:100%}.badge{font-size:10px}footer{flex-direction:column;align-items:flex-start;gap:5px}.events li{gap:9px}}.bay-card{border:1px solid #c5dadd;border-radius:22px;background:#fff;padding:28px;margin:12px 0 24px;box-shadow:0 12px 40px #183e4a08;overflow:hidden}.bay-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.bay-title .eyebrow{margin:0 0 8px}.bay-title h2{font-size:28px;letter-spacing:-.035em;margin:0}.board-size{font-size:13px;letter-spacing:0;font-weight:500;color:#6a8790;margin-left:14px}.phase-tag{background:#ecf5ec;border:1px solid #d7e7d5;color:#497042;font-size:12px;padding:7px 12px;border-radius:20px}.bay-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:44px;align-items:center}.chart-wrap{min-width:0}.chart{--chart-axis: 22px;display:grid;grid-template-columns:var(--chart-axis) repeat(10,minmax(0,1fr));grid-template-rows:25px repeat(10,var(--cell-size, 25px));gap:0;background:linear-gradient(135deg,#f0f8fa,#e0eff1);border-radius:12px;padding:10px 12px 12px 6px;isolation:isolate}.axis{display:flex;justify-content:center;align-items:center;height:25px;font-size:11px;color:#6b9099;font-weight:600;align-self:center}.compass{font-size:17px;color:#66909a;align-self:center;text-align:center}.sea-cell{position:relative;width:100%;height:100%;align-self:stretch;aspect-ratio:auto;min-height:0;min-width:0;padding:0;border:0;border-right:1px solid #bcd5dc;border-bottom:1px solid #bcd5dc;border-radius:0;background:#e9f4f780;color:#8bb2bb;display:flex;align-items:center;justify-content:center;touch-action:manipulation}.sea-cell:nth-child(11n+2){border-left:1px solid #bcd5dc}.sea-cell:nth-child(n+13):nth-child(-n+22){border-top:1px solid #bcd5dc}.sea-cell:hover{background:#d1e8e9}.sea-cell.selected{background:#f7e7b9;box-shadow:inset 0 0 0 2px #ad7d25;z-index:1}.sea-cell:focus-visible{outline:3px solid #a87824;outline-offset:0;z-index:2}.water-mark{font-size:15px}.deck{display:flex;align-items:center;justify-content:center;width:88%;height:58%;background:linear-gradient(#487982,#275863);border:1px solid #1c4c58;border-radius:4px;box-shadow:0 2px 3px #1b48532b}.vertical .deck{width:58%;height:88%}.deck i{width:7px;height:7px;border:1px solid #a0bec3;border-radius:2px;background:#345e68}.chart-caption{display:flex;justify-content:space-between;gap:10px;color:#67828a;font-size:11px;padding-top:13px}.chart-caption>span{display:flex;align-items:center;gap:6px}.legend-ship{width:13px;height:8px;background:#345f69;border-radius:2px}.fleet-panel .eyebrow{margin:0 0 7px}.fleet-panel h3{margin:0;font-size:23px;letter-spacing:-.03em}.fleet-description{font-size:13px;margin:12px 0 20px}.fleet-list{list-style:none;margin:0 0 24px;padding:0}.fleet-list li{display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:10px;border-bottom:1px solid #edf1ef;padding:11px 0;font-size:13px}.fleet-list strong{font-size:12px;font-weight:500;color:#64818a}.fleet-icon{display:flex;gap:3px}.fleet-icon i{width:11px;height:9px;border-radius:2px;background:#467681}.randomize{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;box-shadow:0 4px 12px #14685f18}.randomize>span{font-size:24px;line-height:1}.fleet-status{text-align:center;font-size:11px;margin:10px 0 0;min-height:18px}.board-help{font-size:11px;line-height:1.6;color:#6f8890;border-top:1px solid #e7efef;padding-top:18px;margin:22px 0 0}.intro{padding-top:30px;padding-bottom:10px}.intro>p:last-child{font-size:14px;max-width:570px}@media(max-width:700px){.bay-card{padding:18px 14px;border-radius:16px}.bay-layout{grid-template-columns:minmax(0,1fr);gap:26px}.bay-title{gap:8px;margin-bottom:18px}.bay-title h2{font-size:23px}.bay-title .eyebrow{font-size:9px}.phase-tag{font-size:10px;padding:6px 9px}.board-size{font-size:11px;margin-left:9px}.chart{--chart-axis: 20px;padding:5px 6px 7px 0}.chart-wrap{max-width:480px;width:100%;margin:auto}.fleet-panel{border-top:1px solid #e7efef;padding-top:22px}.fleet-list{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;margin-bottom:20px}.fleet-list li{grid-template-columns:46px 1fr auto;gap:5px;font-size:11px}.fleet-icon{gap:2px}.fleet-icon i{width:9px;height:8px}.board-help{margin-top:18px}.deck i{width:5px;height:5px}.chart-caption{font-size:10px}.fleet-panel h3{font-size:22px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.sea-cell.preview{outline:2px dashed #b17824;outline-offset:-3px;background-color:#f6e6bd;z-index:1}.ship-editor{margin-top:18px;padding:16px;border:1px solid #d9dfce;background:#fafbf5;border-radius:12px}.editor-heading{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:space-between;font-size:13px}.editor-heading strong{text-transform:capitalize}.editor-heading>span{color:#6b7e76;font-size:11px}.ship-editor p{font-size:12px;margin:10px 0}.editor-actions{display:flex;gap:10px}.editor-actions button{flex:1;min-width:0}.editor-actions.minor{margin-top:8px}.editor-actions.minor button{background:transparent;border-color:transparent;color:#55766e;font-size:12px;padding:8px}.placement-message{font-size:13px;line-height:1.55;border-left:3px solid #bb8b39;background:#fbf5e8;padding:12px;margin:16px 0 0;border-radius:0 8px 8px 0}.fleet-list li{display:block;padding:0}.dock-ship{display:grid;grid-template-columns:62px 1fr auto;gap:10px;align-items:center;width:100%;padding:12px 0;color:#27545e;background:transparent;border:0;text-align:left}.dock-ship:not(:disabled):hover{background:#edf6f4}.dock-ship:disabled{opacity:.65}.dock-ship strong{white-space:nowrap}.chart{scroll-margin-top:20px}@media(max-width:700px){.dock-ship{grid-template-columns:42px 1fr auto;gap:4px;font-size:11px}.ship-editor{padding:12px}.editor-actions button{padding:10px 8px}.chart-caption{flex-wrap:wrap}}.readiness{width:100%;margin-top:12px}.participant-state{display:flex;flex-direction:column;gap:4px;text-align:right;font-size:12px}main{max-width:1380px}.players-card{margin-top:12px}.players-card .people{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 24px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.game-layout>.bay-card{margin-top:0;min-width:0}.communication{min-width:0}.communication .card{padding:20px}.communication .signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.communication .signals button{padding:10px 6px;font-size:12px}.communication .events li{gap:8px}.communication .events time{font-size:10px}@media(max-width:1099px){.game-layout{grid-template-columns:minmax(0,1fr)}.communication{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.game-layout>.bay-card{margin-bottom:0}.players-card .people{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.players-card .people,.communication{grid-template-columns:minmax(0,1fr)}.communication{gap:0}.players-card{padding:18px}.game-layout{gap:18px}}.connection-summary{font-size:12px;color:#54717a;text-align:right;max-width:60%}.clear-fleet{width:100%;margin-top:10px}.turn-status{font-size:18px;font-weight:700;color:#14685f}.battle-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.battle-fields h3{font-size:16px}.sea-cell.hit,.sea-cell.sunk{background:#f8d9c9;color:#a53f29;font-weight:800;font-size:23px}.sea-cell.miss{background:#dcecf2;color:#507b8a;font-size:25px}.target-board .sea-cell:disabled{opacity:1}.target-board .sea-cell:not(:disabled):hover{background:#fae3ab}@media(max-width:700px){.battle-fields{grid-template-columns:minmax(0,1fr);gap:12px}.battle-fields .chart-wrap{max-width:480px}.connection-summary{font-size:11px}}.field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px}.field-heading h3{margin:10px 0;overflow-wrap:anywhere}.field-heading>span{font-size:11px;color:#54717a;flex-shrink:0}.battle-fields .current-turn .chart{box-shadow:0 0 0 2px #178374}.battle-fields .current-turn .field-heading>span{color:#13796c;font-weight:700}.sea-exit{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:12px 0}.sea-exit>span{font-size:12px;color:#67818b}.events li{flex-wrap:wrap}.events li>div{flex:1;min-width:100px}.events li>small{width:100%;text-align:right;font-size:10px}.host-role{display:block;color:#13796c;font-size:11px;margin-top:5px}.kick-player{font-size:12px;padding:7px 10px;align-self:flex-end}.entry-modes{border:0;padding:8px 0;margin:0;display:flex;flex-wrap:wrap;gap:12px;font-size:13px}.entry-modes legend{font-size:12px;color:#54717a;margin-bottom:8px}.entry-modes label{display:flex;align-items:center;gap:7px;min-height:44px}.entry-modes input{width:17px;min-height:0;height:17px;margin:0;accent-color:#14685f}.sea-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:16px 0;padding:18px 22px;background:#e1eeeb;border-radius:14px}.sea-heading h1{margin:6px 0 0;overflow-wrap:anywhere}.sea-heading>div{min-width:0}.sea-heading>div:last-child{flex-shrink:0;text-align:right;font-size:11px;color:#54717a}.sea-heading strong{display:block;font-size:22px;letter-spacing:.12em;color:#14685f;-webkit-user-select:all;user-select:all;margin-top:5px}@media(max-width:650px){.sea-heading{padding:15px;align-items:flex-start}.sea-heading h1{font-size:17px}.sea-heading strong{font-size:18px}}.join select{font:inherit;min-height:44px;border:1px solid #b7cdd1;border-radius:9px;padding:10px 12px;background:#fbfdfd;color:#183e4a;width:100%}.join select:focus-visible{outline:3px solid #d29b3a;outline-offset:3px}.spectator-option{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5;min-height:44px}.spectator-option input{width:18px;height:18px;min-height:0;flex-shrink:0;accent-color:#14685f}.sea-settings{font-size:12px;line-height:1.5;margin:8px 0 0}.toast-stage{position:fixed;top:0;right:0;z-index:50;pointer-events:none;display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:min(392px,100%);padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px 12px}.battle-toast{position:relative;display:flex;align-items:center;gap:12px;width:min(360px,100%);padding:14px 16px;border-radius:16px;background:#103c46f2;color:#fff;box-shadow:0 12px 38px #07252b44;animation:toast-in .2s ease-out;overflow-wrap:anywhere}.battle-toast strong{font-size:19px}.battle-toast p{color:inherit;opacity:.85;margin:3px 0 0;font-size:13px;line-height:1.4}.toast-icon{font-size:29px}.battle-toast.turn{background:#126c60}.battle-toast.emotion{order:5;background:#fff7e8f5;color:#65461f;width:min(280px,100%);padding-top:10px;padding-bottom:10px}.battle-toast.emotion strong{font-size:15px}.battle-toast.victory{background:#175b55;border:2px solid #f3c361;order:-1;padding-top:24px;padding-bottom:24px}.battle-toast.defeat{background:#243c57;order:-1;border:1px solid #a9bccc}.battle-toast.victory strong,.battle-toast.defeat strong{font-size:24px}.salute{position:absolute;inset:0;overflow:hidden;border-radius:inherit}.salute i{position:absolute;left:50%;top:50%;font-style:normal;color:#ffe19a;animation:salute 1.5s ease-out 3;transform:rotate(calc(var(--n) * 30deg)) translateY(-70px);opacity:0}@keyframes salute{0%{transform:rotate(calc(var(--n) * 30deg)) translateY(0);opacity:1}to{transform:rotate(calc(var(--n) * 30deg)) translateY(-150px);opacity:0}}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.battle-toast,.salute i{animation:none}.salute{display:none}}.battle-tools{position:sticky;top:56px;z-index:12;display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#f3f8f7f5;border:1px solid #c8dcda;border-radius:12px;margin:14px 0;box-shadow:0 3px 10px #183e4a10}.battle-tools button{flex:1;background:#fff;color:#14685f}.battle-tools button[aria-pressed=true]{background:#14685f;color:#fff}.battle-tools span{width:100%;font-size:11px;color:#54717a}.sea-cell.ship-sunk{background:#af3c32;color:#fff;border:1px solid #7a201c;box-shadow:inset 0 0 0 1px #f6aea1}.target-board .sea-cell.ship-sunk:hover{background:#af3c32}.sea-cell.manual-mark{color:#637983;background:#e2e9eb;font-size:22px}.sea-cell.last-own{outline:3px solid #dfa323;outline-offset:-3px;z-index:1}.sea-cell.last-other{box-shadow:inset 0 0 0 3px #4877c5}.sea-cell.last-own.last-other{box-shadow:inset 0 0 0 5px #4877c5}.shot-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:11px}.shot-legend i{width:12px;height:12px;display:inline-block}.own-key{border:3px solid #dfa323}.other-key{border:3px solid #4877c5}.round-result{position:sticky;top:8px;z-index:15;border:1px solid #bddbd4;border-radius:14px;background:#e7f4eff5;padding:16px;margin:12px 0;box-shadow:0 4px 18px #183e4a18}.round-result strong{font-size:21px}.round-result p{margin:5px 0 12px;font-size:13px}.round-result button{width:100%}.emotion-history summary{cursor:pointer;font-weight:700}.emotion-history summary span{font-size:12px;color:#67818b}.emotion-history .events{max-height:180px}.turn-clock{position:sticky;top:8px;z-index:13;width:fit-content;margin:8px 0;padding:8px 14px;border-radius:12px;background:#183943;color:#fff;font-variant-numeric:tabular-nums;font-weight:700}@media(max-width:650px){main.in-sea{padding-bottom:calc(96px + env(safe-area-inset-bottom));scroll-padding-bottom:96px}html{scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom))}.signals-card{display:contents}.signals-card>h2,.signals-card>p{display:none}.communication .signals{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px;padding:10px max(8px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#edf6f4e0;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid #b6d0cbb3;box-shadow:0 -4px 18px #183e4a14}.communication .signals button{min-width:44px;min-height:48px;padding:6px 0;background:#fff9}.signals .signal-label{display:none}}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.host-recovery{margin-top:16px;padding:14px;border:1px solid #c8dcd7;border-radius:12px;background:#f0f7f4}.host-recovery p{margin:0 0 10px}.host-recovery .muted{margin:10px 0 0}.participant-state .absent{white-space:normal}main.in-sea>header{margin-bottom:24px}.sea-heading h1{font-size:clamp(18px,3vw,24px);letter-spacing:normal;margin:0 0 6px}.phase-tag{background:none;border:0;border-radius:0;padding:0;color:#54717a}details.board-help summary{cursor:pointer;color:#365e68;font-size:12px}details.board-help p{font-size:12px}
