.fleet-game{max-width:680px;margin:auto}.fleet-gate{padding:32px 18px;text-align:center;background:var(--card,#fff);border:1px solid var(--line,#d9dce0);border-radius:20px;margin:20px 0}.fleet-emblem{font-size:44px;color:#268493;letter-spacing:8px}.fleet-gate .primary{min-height:52px}.fleet-ships{display:flex;gap:6px;flex-wrap:wrap}.fleet-ships button{font-size:13px;min-height:44px}.fleet-ships button.selected{outline:3px solid #258796;outline-offset:1px}.fleet-scroll{overflow:auto;max-width:100%;padding:3px 2px 8px;overscroll-behavior-x:contain}.fleet-grid{display:grid;grid-template-columns:22px repeat(10,minmax(0,1fr));gap:3px;width:100%;min-width:0;max-width:600px}.fleet-grid.fleet-large{grid-template-columns:24px repeat(10,44px);width:494px;max-width:none}.fleet-axis{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;min-height:20px}.fleet-grid .fleet-cell{min-width:0;min-height:0;aspect-ratio:1;padding:0;border:1px solid #71a8b0;background:#e3f2f3;color:#225963;border-radius:5px;font-size:23px;line-height:1;touch-action:manipulation;opacity:1}.fleet-grid .fleet-cell:disabled{cursor:default;opacity:1}.fleet-grid .fleet-cell.ship{background:#386e77;color:white}.fleet-grid .fleet-cell.hit{background:#cf6049;color:white}.fleet-grid .fleet-cell.sunk{background:#873e35;color:white}.fleet-grid .fleet-cell.miss{background:#dce1e3;color:#445d65}.fleet-grid .fleet-cell.chosen{outline:3px solid #e59a26;outline-offset:-3px;background:#fff0c7;color:#50320a}.fleet-coordinate{font-weight:700;font-size:16px;min-height:24px;margin:14px 0 8px}.fleet-result{padding:15px;border-radius:12px;background:var(--card,#eef3ed);font-size:19px;font-weight:700}.fleet-own,.fleet-rules{margin:20px 0}.fleet-game summary{cursor:pointer;padding:12px 0}.fleet-game h4{margin:18px 0 4px}.fleet-game .primary{margin-top:12px;min-height:46px}.fleet-game .toolbar{gap:8px;margin-top:14px}.fleet-game button:focus-visible{outline:3px solid #e59a26;outline-offset:2px}html[data-theme=dark] .fleet-grid .fleet-cell.water,body[data-theme=dark] .fleet-grid .fleet-cell.water{background:#203b43;color:#c6e5e8;border-color:#45676e}html[data-theme=dark] .fleet-gate,body[data-theme=dark] .fleet-gate{background:#202d35;border-color:#43515a}
@media(max-width:380px){.fleet-grid{gap:2px;grid-template-columns:18px repeat(10,minmax(0,1fr))}.fleet-grid .fleet-cell{font-size:19px}.fleet-ships button{padding:8px}}
html[data-theme=dark] .fleet-result{background:#243c3b;color:#edf2f6}html[data-theme=dark] .fleet-grid .fleet-cell.ship{background:#386e77;color:white}html[data-theme=dark] .fleet-grid .fleet-cell.hit{background:#cf6049;color:white}html[data-theme=dark] .fleet-grid .fleet-cell.sunk{background:#873e35;color:white}html[data-theme=dark] .fleet-grid .fleet-cell.miss{background:#384951;color:#ecf5f7}html[data-theme=dark] .fleet-grid .fleet-cell.chosen{background:#665322;color:#fff3d1}
.fleet-legend{font-size:13px;color:var(--muted,#586870);margin:6px 0}

#fleet-fire,#fleet-next,#fleet-confirm{position:sticky;bottom:calc(78px + env(safe-area-inset-bottom));width:100%;z-index:2;box-shadow:0 3px 12px #0003}.fleet-game .toolbar button{min-height:44px}
