:root{color-scheme:light;font:16px/1.45 system-ui,sans-serif;--ink:#152f45;--deep:#09283e;--cream:#faf2df;--line:#97a9a8;--accent:#a23719;--sea:#255f72;--white:#fffbec}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--deep);color:var(--white)}main{width:min(100% - 20px,900px);margin:16px auto 36px}header{position:relative;padding:24px clamp(14px,4vw,36px);overflow:hidden;border:1px solid #516b79;border-radius:18px;background:repeating-linear-gradient(115deg,#143749 0 2px,transparent 2px 16px),var(--deep)}header p{max-width:54ch;margin:0}header .signal{font-weight:750;letter-spacing:.21em;color:#ffd0a3;font-size:.75rem}h1,h2{font-family:Georgia,serif;line-height:1.08;margin:0 0 .45em}h1{font-size:clamp(2.7rem,11vw,5.3rem);margin:.15em 0 .22em}h2{font-size:1.65rem}.paper{color:var(--ink);background:var(--cream);border:1px solid #d0bf9e;border-radius:12px;padding:clamp(12px,3vw,22px);margin:12px 0}.small,.key{font-size:.88rem}button{font:inherit;min-height:44px;cursor:pointer;background:#fff9e9;color:var(--ink);border:1px solid var(--sea);border-radius:7px;padding:7px 10px;font-weight:700}button:focus-visible,input:focus-visible{outline:3px solid #007482;outline-offset:2px}button.hot{background:var(--accent);border-color:var(--accent);color:#fff}button:disabled{cursor:default;opacity:.7}button.quiet{background:transparent;border-color:#718690;color:#faeed9}.actions,.fields{display:flex;gap:7px;flex-wrap:wrap}.notice{display:flex;flex-wrap:wrap;gap:4px 14px;margin:12px 0;padding:8px 12px;border-left:4px solid #ff9962}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.board{min-width:0;margin:0}.grid{display:grid;grid-template-columns:18px repeat(10,minmax(0,1fr));gap:2px;align-items:center}.axis{color:#36505d;font-size:.69rem;text-align:center}.cell{padding:0;aspect-ratio:1;min-height:0;width:100%;border:1px solid #7c9da0;border-radius:2px;display:grid;place-items:center;background:#e4efeb;color:#1b4e62;font:750 clamp(.65rem,3.1vw,1rem)/1 system-ui}.cell.ship{background:#1b5368;color:white}.cell.miss{background:#e8eeeb;color:#254d58}.cell.hit,.cell.sunk{background:#a23719;color:#fff}.cell.sunk{background:#73250e}.cell[aria-disabled=true]{cursor:default}.cell[tabindex="-1"]{outline-offset:0}.cell:hover:not([aria-disabled=true]){background:#bedbda;color:#152f45}.invite-grid{display:grid;gap:14px}.battle-join-qr{display:block;width:min(100%,280px);height:auto;background:white}#manual,#manual-link{display:block;width:100%;margin-top:8px}#manual-link{height:44px;font:inherit;padding:4px 6px}#status:not(:empty){padding:8px 12px;background:#26495b;border-radius:7px}#opponent-panel{order:1}@media(max-width:699px){.fields:has(#opponent-panel:not([hidden])) #opponent-panel{order:-1}}@media(min-width:650px){.invite-grid{grid-template-columns:minmax(0,280px) 1fr}}

/* The harbor: a daylight chart, not a dark game dashboard. */
:root{--ink:#163b59;--deep:#ebf7fc;--cream:#fff;--line:#beddea;--accent:#075a97;--sea:#2c7198;--white:#163b59}
body{background:#f3fbff;color:var(--ink)}
main{width:min(100% - 28px,1020px);margin:22px auto 48px}
.harbor{display:grid;grid-template-columns:1fr minmax(0,.95fr);align-items:center;gap:clamp(15px,3vw,32px);background:#e1f4fc;border:1px solid #aed7e8;border-radius:28px;padding:clamp(18px,4vw,42px)}
.harbor img{display:block;width:100%;height:auto}
header .signal{color:#156088;letter-spacing:.16em}
h1,h2{font-family:system-ui,sans-serif;letter-spacing:-.05em}
h1{font-size:clamp(2.35rem,8vw,5.25rem);line-height:.98;margin:.2em 0 .3em}
h2{font-size:clamp(1.25rem,4vw,1.75rem)}
.paper{border:1px solid #bfddec;border-radius:20px;background:#fff}
#lobby{margin:14px 0}
.steps{list-style:none;display:flex;gap:8px 15px;flex-wrap:wrap;padding:0;margin:0 0 14px;counter-reset:s}
.steps li{display:flex;align-items:center;gap:6px;font-size:.85rem;font-weight:650}
.steps li::before{counter-increment:s;content:counter(s);min-width:1.45rem;height:1.45rem;display:grid;place-items:center;background:#d9f1fc;color:#08527b;border-radius:50%;font-size:.78rem}
button{background:#f5fbff;border-color:#4782a5;border-radius:10px}
button.hot{padding-inline:16px}
button.quiet{color:var(--ink);border-color:#4782a5}
.notice{border-left-color:#1680b4;background:#dfF2fb;border-radius:10px}
.axis{color:#285676}
.cell{background:#e6f5fc;border-color:#79a9c7;color:#225d82}
.cell.ship{background:#175b89}
.cell.miss{background:#f1f9fd;color:#22516c}
.cell.hit{background:#ae4325}.cell.sunk{background:#7f2f23}
.cell:hover:not([aria-disabled=true]){background:#bfe4f6}
#status:not(:empty){background:#e3f2fa;color:#173c59;border:1px solid #b7d7e9}
@media(max-width:580px){.harbor{grid-template-columns:1fr;border-radius:22px}.harbor img{height:clamp(96px,31vw,144px);object-fit:cover;border-radius:16px}.steps{gap:7px}.steps li{font-size:.78rem}}
.score{margin:0 0 14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.score div{padding:8px 5px 9px;border:1px solid #bfddec;border-radius:12px;background:#fff;text-align:center}
.score dt{font-size:clamp(.68rem,3vw,.88rem);color:#315d77}
.score dd{margin:2px 0 0;font-size:clamp(1.05rem,4vw,1.5rem);font-weight:780;color:#075a97}
