#battleship{max-width:1280px;margin:auto;padding:24px 22px;color:var(--ink,#24445b)}.sea-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.sea-heading h1{margin:0;font-size:clamp(23px,3vw,34px)}.sea-header-spacer{flex:1}#battleship button{border:1px solid #c79c7b;background:#fff8ed;color:#694b34;border-radius:11px;padding:9px 12px;min-height:40px;font:inherit;font-size:14px;cursor:pointer}#battleship button:hover{background:#f4e4ca}#battleship button[aria-pressed=true]{background:#efd09b;border-color:#ac7d48;box-shadow:inset 0 0 0 1px #b88e58}#battleship button:focus-visible{outline:3px solid #d59f42;outline-offset:2px}#battleship button:disabled{cursor:default;opacity:.5}#battleship .sea-primary{background:#a3bf99;border-color:#78986d;color:#30492e;font-weight:bold;box-shadow:0 3px 0 #77966d}#battleship .icon-btn{padding:8px;width:42px;height:42px;display:inline-grid;place-items:center}#battleship .icon-btn svg{width:23px;height:23px}.sea-options{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.sea-options>div{display:flex;gap:5px;flex-wrap:wrap}.sea-options button{font-size:12px!important;padding:7px 10px!important;min-height:34px!important}.sea-network-status{font-size:12px;color:#527846;max-width:350px}.sea-status{padding:11px 15px;min-height:44px;display:flex;align-items:center;background:#eee1c9;border:1px solid #d8bf99;border-radius:12px;font-size:15px;margin:12px 0}.sea-victory{background:#dfeacb}.sea-setup-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px}.sea-setup-actions button{font-size:12px!important}.sea-setup-actions>span{font-size:12px;margin-left:auto}.sea-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sea-board,.sea-preparation{border:1px solid #bda17a;border-radius:18px;background:linear-gradient(120deg,#fffbef,#f4ead5);padding:13px;box-shadow:0 5px 14px #735a2c12;min-width:0}.sea-board-heading{display:flex;justify-content:space-between;align-items:center;color:#624b34;padding:0 8px 7px}.sea-board-heading h2{font-size:18px;margin:0}.sea-board-heading>span{color:#9a793f;font-size:22px}.sea-map{position:relative;padding:22px 0 0 23px;box-sizing:border-box;width:min(100%,calc(100dvh - 310px),490px);margin:0 auto}.sea-column-labels{display:grid;grid-template-columns:repeat(var(--n),1fr);position:absolute;left:23px;right:0;top:1px;height:19px;align-items:center;text-align:center;font-size:12px;font-weight:bold;color:#7a6145}.sea-row-labels{display:grid;grid-template-rows:repeat(var(--n),1fr);position:absolute;left:0;top:22px;bottom:0;width:20px;align-items:center;text-align:center;font-size:12px;font-weight:bold;color:#7a6145}.sea-ocean{position:relative;aspect-ratio:1;overflow:hidden;border:3px solid #a98b59;border-radius:7px;background:radial-gradient(ellipse at 15% 10%,#99c8cc88,transparent 65%),repeating-linear-gradient(160deg,#78aeb711 0 8px,#c8e6db22 9px 11px,#78aeb711 12px 29px),linear-gradient(140deg,#8fbdc2,#6098a9 75%);box-shadow:inset 0 0 26px #355f6f66;touch-action:none}.sea-cells{display:grid;grid-template-columns:repeat(var(--n),1fr);grid-template-rows:repeat(var(--n),1fr);position:absolute;inset:0}.sea-cell{position:relative!important;min-width:0!important;min-height:0!important;border:0!important;border-right:1px solid #d7ebdb88!important;border-bottom:1px solid #d7ebdb88!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;opacity:1!important;transform:none!important;touch-action:none;display:grid;place-items:center}#battleship .sea-cell:not(:disabled):hover{background:#ffe6a366!important}#battleship .sea-cell:focus-visible{outline:3px solid #ffe0a1;outline-offset:-4px;z-index:5}.sea-dot{color:#e9f5e5;font-size:22px;line-height:1;text-shadow:0 1px 1px #345f71}.sea-cross{color:#a94733;font-size:28px;line-height:1;text-shadow:0 1px 1px #f3dcb3}.sea-ship-overlay{position:absolute;inset:0;width:100%!important;height:100%!important;pointer-events:none;z-index:1;overflow:visible}.sea-ship{filter:drop-shadow(1px 3px 2px #28495577)}.sea-ship-sunk{opacity:.62;filter:drop-shadow(0 1px 2px #203c4d)}.sea-placement-preview{position:absolute;z-index:4;border:2px solid #f8f1b0;background:#cceaa55e;border-radius:8px;box-sizing:border-box;pointer-events:none}.sea-preview-invalid{border-color:#ba5540;background:#e9a18366}.sea-impact:after{content:'';position:absolute;inset:4%;border:3px solid #e6f5ef;border-radius:50%;animation:sea-ripple .95s ease-out both;z-index:4;pointer-events:none}.sea-hit.sea-impact:after,.sea-sunk.sea-impact:after{border-color:#f6c879;background:#edbf6844}.sea-fleet-strip{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:center;color:#597881;margin-top:10px;min-height:24px}.sea-fleet-strip span{font-size:9px;letter-spacing:-1px;white-space:nowrap}.sea-fleet-strip .sea-fleet-lost{color:#b4ad98;text-decoration:line-through}.sea-fleet-strip strong{font-size:12px;margin-left:5px;color:#816445}.sea-preparation{display:flex;flex-direction:column;align-items:center;gap:8px}.sea-preparation h2{font-size:17px;margin:1px 0}.sea-preparation p{font-size:13px;margin:0;text-align:center}.sea-illustration{width:100%;height:125px;object-fit:cover;border-radius:11px;border:1px solid #c4b18d}.sea-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}.sea-palette button{padding:4px 7px!important;display:flex;align-items:center;flex-direction:column;min-width:0;touch-action:none;user-select:none}.sea-palette svg{width:100%!important;max-width:160px!important;height:29px!important;pointer-events:none}.sea-palette span{font-size:10px}.sea-preparation small{font-size:10px;opacity:.75}.sea-legend{text-align:center;font-size:12px;color:#866c51;margin:12px 0 4px}.sea-mobile-tabs{display:none}.sea-result{border:1px solid #c5ab7b;background:linear-gradient(130deg,#fff5d5,#f0e2b9);border-radius:15px;text-align:center;margin-top:12px;padding:12px}.sea-result h2{font-size:20px;margin:4px}.sea-result p{font-size:14px;margin:6px}.sea-result-symbol{color:#b58a35;font-size:22px}.sea-rating{margin-top:10px}.sea-dialog{position:fixed;width:min(430px,90vw);max-height:88dvh;box-sizing:border-box;overflow:auto;border:1px solid #b9946e;border-radius:18px;background:#fffaf0;color:#5c4734;padding:22px;box-shadow:0 15px 70px #1f373b55}.sea-dialog::backdrop{background:#233e4599}.sea-dialog h2{font-size:22px;margin:7px 42px 14px 0}.sea-dialog p,.sea-dialog li{font-size:14px;line-height:1.6}.sea-dialog li{margin-bottom:9px}.sea-dialog-close{position:absolute!important;right:12px;top:12px}.sea-dialog-actions{display:flex;gap:8px;flex-wrap:wrap}.sea-qr{width:196px;height:196px;background:white;padding:10px;box-sizing:content-box;margin:14px auto}.sea-qr img,.sea-qr canvas{width:196px!important;height:196px!important;filter:none!important}.sea-share-actions{display:flex;gap:9px;justify-content:center}.sea-dialog small{display:block;text-align:center;font-size:11px;margin-top:12px}.sea-copy-status{text-align:center}.sea-preparation:has(.sea-palette button:nth-child(10)) .sea-palette svg{height:24px!important}.sea-preparation:has(.sea-palette button:nth-child(10)) .sea-palette button{min-height:45px!important}.sea-preparation:has(.sea-palette button:nth-child(10)) .sea-illustration{height:100px}body[data-game-screen="battleship"]>footer{display:none!important}body[data-game-screen="battleship"]{background:#f8f0df}html[data-theme=dark] .sea-board,html[data-theme=dark] .sea-preparation,html[data-theme=dark] .sea-dialog{background:#273c3e;color:#ece1c8;border-color:#7c8067}html[data-theme=dark] .sea-board-heading,html[data-theme=dark] .sea-row-labels,html[data-theme=dark] .sea-column-labels{color:#d4c2a0}html[data-theme=dark] .sea-status,html[data-theme=dark] .sea-result{background:#354a43;color:#ece3cd}html[data-theme=dark] #battleship button{background:#344842;color:#eadcc2;border-color:#7c8a6d}html[data-theme=dark] #battleship button[aria-pressed=true]{background:#626f4e}html[data-theme=dark] .sea-ocean,html[data-theme=dark] .sea-illustration{filter:brightness(.7)}@keyframes sea-ripple{0%{transform:scale(.3);opacity:1}100%{transform:scale(1.5);opacity:0}}
@media(max-width:760px){#battleship{padding:18px 10px}.sea-heading h1{font-size:25px}.sea-heading{gap:5px}.sea-options{justify-content:center}.sea-boards{grid-template-columns:1fr;gap:10px}.sea-map{width:min(100%,470px)}.sea-mobile-tabs{display:flex;justify-content:center;gap:8px;margin-bottom:10px}.sea-board[data-mobile-hidden=true]{display:none}.sea-board-heading h2{font-size:16px}.sea-status{font-size:13px;min-height:42px;padding:8px 11px}.sea-preparation{gap:7px}.sea-illustration{display:none}.sea-palette{grid-template-columns:repeat(5,minmax(0,1fr))}.sea-palette button{padding:3px!important}.sea-palette svg{height:22px!important}.sea-palette span{font-size:8px;white-space:normal}.sea-preparation h2,.sea-preparation small{display:none}.sea-setup-actions{gap:5px}.sea-setup-actions button{padding:7px!important;font-size:11px!important;min-height:35px!important}.sea-setup-actions>span{font-size:10px}.sea-options button{font-size:10px!important}.sea-preparation p{font-size:12px}.sea-network-status{font-size:11px}.sea-map{max-width:calc(100dvh - 330px)}.sea-result h2{font-size:17px}.sea-heading .game-quick-tools{margin-left:auto}.sea-fleet-strip{margin-top:6px}}@media(prefers-reduced-motion:reduce){.sea-impact:after{animation:none}}
/* Large illustrated shells, aircraft and physical attack trajectories. */
.sea-weapon-picker{display:flex;gap:8px;justify-content:flex-end;margin:-2px 0 11px}.sea-weapon-picker button{display:flex;align-items:center;gap:8px;min-height:48px!important;padding:5px 12px!important}.sea-weapon-picker svg{width:54px!important;height:42px!important;filter:drop-shadow(1px 2px 1px #35454755)}.sea-weapon-picker span{font-size:12px}.sea-strike-layer{position:fixed;inset:0;pointer-events:none;z-index:2147482500;overflow:hidden}.sea-strike-projectile,.sea-strike-plane{position:absolute;left:0;top:0;will-change:transform;filter:drop-shadow(2px 4px 3px #18313e77)}.sea-strike-shell{width:84px;height:40px}.sea-strike-bomb{width:48px;height:84px}.sea-strike-projectile svg,.sea-strike-plane svg{width:100%!important;height:100%!important;display:block}.sea-strike-plane{width:140px;height:79px}.sea-strike-launcher{position:absolute;width:180px;height:44px;filter:drop-shadow(0 4px 2px #24415266)}.sea-strike-launcher svg{width:100%;height:100%}.sea-muzzle-flash{position:absolute;width:35px;height:35px;border-radius:50%;background:radial-gradient(circle,#fff8c5,#efb84977 45%,transparent 72%);transform:translate(-50%,-50%);animation:sea-muzzle .3s ease-out both}.sea-strike-burst{position:absolute;width:90px;height:90px;will-change:transform,opacity}.sea-strike-burst i,.sea-strike-burst b,.sea-strike-burst span{position:absolute;border-radius:50%;inset:12%;display:block}.sea-strike-burst-hit i{background:radial-gradient(circle,#fff7b9 0 12%,#f0b455 30%,#cc6f3544 60%,transparent 75%)}.sea-strike-burst-hit b{inset:0;border:3px solid #f6cd7c}.sea-strike-burst-hit span{inset:30%;box-shadow:-22px -14px 0 -4px #9a91747a,15px -23px 0 -3px #7d897d66,23px 9px 0 -2px #b3a18777;background:#eacb8877}.sea-strike-burst-water i{inset:16%;border:4px solid #e4faf2;transform:scaleY(.5)}.sea-strike-burst-water b{inset:32%;background:radial-gradient(circle,#fff,#b8e5eb88,transparent)}.sea-strike-burst-water em{position:absolute;left:45%;top:35%;width:6px;height:16px;border-radius:50%;background:#d8f4ed;transform:rotate(calc(var(--drop)*45deg)) translateY(-30px)}.sea-preparation p,.sea-dialog ol,.sea-dialog li,.sea-legend,.game-card[data-game="battleship"] p{text-align:left}.sea-preparation p{align-self:stretch}.sea-dialog>p:not(.sea-room-number):not(.sea-copy-status){text-align:left}.sea-room-number,.sea-copy-status{text-align:center}@keyframes sea-muzzle{from{opacity:1;transform:translate(-50%,-50%) scale(.3)}to{opacity:0;transform:translate(-50%,-50%) scale(1.6)}}@media(max-width:760px){.sea-weapon-picker{justify-content:center}.sea-weapon-picker button{padding:4px 8px!important;min-height:44px!important}.sea-weapon-picker svg{height:35px!important;width:42px!important}.sea-strike-shell{width:70px;height:34px}.sea-strike-bomb{width:44px;height:77px}.sea-strike-plane{width:130px;height:73px}}

.sea-strike-shell{transform-origin:100% 50%}.sea-strike-bomb{transform-origin:50% 100%}
#battleship .sea-dialog:has([data-sea="confirm"]) h2{margin:7px 35px 14px;text-align:center}#battleship .sea-dialog:has([data-sea="confirm"])>p{text-align:center!important}#battleship .sea-dialog:has([data-sea="confirm"]) .sea-dialog-actions{justify-content:center;align-items:center}

.sea-turn-indicator{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 10px;font-size:14px;color:#8b7858}.sea-turn-indicator>span{padding:7px 12px;border-radius:11px;border:1px solid transparent}.sea-turn-indicator .sea-current-player{background:#e1eccf;color:#48633a;border-color:#a0bc8c;font-weight:bold}.sea-turn-indicator svg{width:74px!important;height:30px!important;color:#bd8d38}.sea-turn-indicator svg.sea-arrow-left{transform:rotate(180deg)}.sea-board-turn{border:2px solid #adbd81;box-shadow:0 0 0 3px #dfe7b85e}.sea-board-heading .sea-board-turn-arrow{width:26px!important;height:29px!important;color:#af842f;display:block}.sea-target-lock{position:absolute;width:28px;height:28px;transform:translate(-50%,-50%);border:2px solid #ffe8aa;border-radius:50%;box-shadow:0 0 0 2px #6b735b77;pointer-events:none}.sea-target-lock:before,.sea-target-lock:after{content:'';position:absolute;background:#ffe8aa}.sea-target-lock:before{width:2px;height:36px;left:11px;top:-6px}.sea-target-lock:after{width:36px;height:2px;top:11px;left:-6px}.sea-strike-bomb{filter:drop-shadow(2px 4px 3px #1e3b4366)}@media(max-width:760px){.sea-turn-indicator{gap:6px;font-size:11px}.sea-turn-indicator>span{padding:6px}.sea-turn-indicator svg{width:48px!important;height:26px!important}.sea-board-turn{border-width:2px}}

.sea-strike-plane{width:160px;height:132px}.sea-strike-plane>img{width:100%;height:100%;object-fit:contain;filter:none!important}.sea-plane-propeller{position:absolute;right:6%;top:50%;height:47%;width:3px;margin-top:-23.5%;border-radius:50%;background:#d9e5dd77;box-shadow:0 0 4px #e7f0d766;animation:sea-propeller .1s linear infinite}@keyframes sea-propeller{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.12)}}

.sea-plane-propeller{margin-top:0;transform:translateY(-50%)}@keyframes sea-propeller{0%,100%{transform:translateY(-50%) scaleY(1)}50%{transform:translateY(-50%) scaleY(.12)}}

/* Continuous flypast, curved projectile wake and impact particles. */
.sea-flight-trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.sea-flight-trail path{fill:none;stroke-linecap:round;stroke-linejoin:round}.sea-rocket-trail{stroke:#fbe0a4bb;stroke-width:7;filter:drop-shadow(0 0 4px #f09b47)}.sea-bomb-trail{stroke:#e3edf155;stroke-width:3}
.sea-strike-shell:after{content:"";position:absolute;right:96%;top:38%;width:35px;height:24%;background:linear-gradient(90deg,transparent,#f29a42,#fff1b5);clip-path:polygon(0 50%,100% 0,100% 100%);animation:sea-exhaust .1s infinite alternate}.sea-strike-burst-hit em,.sea-strike-burst-water em{position:absolute;left:50%;top:50%;width:5px;height:12px;border-radius:50%;background:#e9faff;animation:sea-impact-particle .7s ease-out both;transform:none}.sea-strike-burst-hit em{background:#ffe6a4;width:4px;height:9px;box-shadow:0 0 5px #f69844}.sea-strike-burst-hit span{animation:sea-smoke .7s ease-out both}.sea-strike-burst-water i{animation:sea-ripple .7s ease-out both}.sea-strike-burst-water b{background:radial-gradient(ellipse,#fff 0,#d3f6ff 35%,transparent 70%);animation:sea-water-column .65s ease-out both}.sea-strike-plane{filter:drop-shadow(10px 22px 8px #152e3e55)}
@keyframes sea-exhaust{to{width:48px;opacity:.6}}@keyframes sea-impact-particle{0%{opacity:1;transform:translate(-50%,-50%) rotate(calc(var(--drop)*30deg)) translateY(0)}100%{opacity:0;transform:translate(-50%,-50%) rotate(calc(var(--drop)*30deg)) translateY(calc(-1 * var(--reach))) scale(.4)}}@keyframes sea-smoke{from{opacity:.8;transform:scale(.4)}to{opacity:0;transform:translateY(-25px) scale(1.7)}}@keyframes sea-ripple{from{opacity:1;transform:scaleX(.3) scaleY(.15)}to{opacity:0;transform:scaleX(1.6) scaleY(.65)}}@keyframes sea-water-column{0%{transform:translateY(0) scale(.3)}45%{transform:translateY(-20px) scaleX(.55) scaleY(1.8)}100%{opacity:0;transform:translateY(-5px) scaleX(.9) scaleY(.5)}}

@media(max-width:760px){
 #battleship{padding:14px 8px 20px;box-sizing:border-box;width:100%}.sea-heading{gap:5px;margin-bottom:10px}.sea-heading h1{font-size:22px;flex:1;min-width:140px}.sea-heading .sea-header-spacer{display:none}.sea-heading .game-quick-tools{margin-left:auto}.sea-heading button{flex-shrink:0}
 #battleship[data-phase="battle"] .sea-options,#battleship[data-phase="finished"] .sea-options{display:none}.sea-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sea-options>div{display:flex;flex-wrap:nowrap}.sea-options>div:last-child{grid-column:1/-1}.sea-options button{flex:1;font-size:11px!important;min-height:36px!important;padding:6px!important}.sea-status{margin:8px 0;min-height:36px;box-sizing:border-box}.sea-turn-indicator{margin:5px 0!important;padding:4px!important;min-height:26px!important;font-size:12px!important}.sea-turn-indicator svg{width:45px!important;height:23px!important}
 .sea-board{padding:8px 6px;border-radius:13px}.sea-map{width:100%;max-width:470px;padding-left:21px;padding-top:21px}.sea-column-labels{left:21px;font-size:11px}.sea-row-labels{width:18px;top:21px;font-size:11px}.sea-board-heading{padding:0 2px 4px}.sea-board-heading h2{font-size:14px}.sea-board-heading>span{height:24px}.sea-board-turn-arrow{height:24px!important}.sea-mobile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}.sea-mobile-tabs button{min-height:38px!important;padding:6px!important;font-size:13px!important}.sea-weapon-picker{margin:6px 0;gap:6px}.sea-weapon-picker button{flex:1;justify-content:center;min-height:38px!important}.sea-weapon-picker svg{width:39px!important;height:29px!important}.sea-weapon-picker span{font-size:12px}.sea-fleet-strip{min-height:18px;margin-top:5px;gap:5px}.sea-legend{font-size:10px;margin-top:7px}
 .sea-setup-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:8px}.sea-setup-actions button{font-size:12px!important;min-height:40px!important}.sea-setup-actions>span{grid-column:1/-1;text-align:center}.sea-preparation{padding:8px}.sea-palette{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.sea-palette button{min-height:53px!important}.sea-palette svg{height:28px!important}.sea-palette span{font-size:9px}.sea-cross{font-size:24px}.sea-dot{font-size:18px}
}
@media(max-width:380px){.sea-heading h1{font-size:20px;min-width:120px}.sea-heading .icon-btn{width:36px!important;height:36px!important;min-height:36px!important}.sea-heading{gap:4px}}

#battleship [data-sea]>svg{width:25px;height:25px;flex-shrink:0;fill:none}#battleship [data-sea]{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px}#battleship [data-sea="difficulty"]>svg{width:60px;fill:currentColor}#battleship [data-sea="mode"]>svg{width:27px;stroke:currentColor;stroke-width:1.5}#battleship [data-sea="mode"] small{font-size:11px}#battleship .sea-weapon-picker span,#battleship .sea-palette span{display:none}#battleship .sea-palette button[aria-pressed="true"]{outline:2px solid #b98b4a;outline-offset:1px}#battleship .sea-palette svg{height:34px!important}#battleship .sea-setup-actions{display:flex;flex-wrap:wrap;justify-content:center}#battleship .sea-setup-actions button{min-width:52px}#battleship .sea-mobile-tabs button svg{width:27px;height:27px}#battleship .sea-dialog-actions{justify-content:center}#battleship .sea-weapon-picker svg{width:58px!important;height:38px!important}.sea-options>div{align-items:center}#battleship .sea-options button{min-height:42px!important}.sea-options [data-sea="solo"] svg,.sea-options [data-sea="peer"] svg{width:29px!important}@media(max-width:760px){#battleship .sea-setup-actions>span{flex-basis:100%}#battleship .sea-setup-actions button{flex:1;min-height:44px!important}#battleship .sea-options button{min-height:42px!important}.sea-heading [data-sea]>svg{width:22px!important;height:22px!important}#battleship .sea-palette button{min-height:48px!important}.sea-options{grid-template-columns:1fr 1fr}.sea-options>div:last-child{justify-content:center}.sea-options [data-sea="difficulty"]{flex:1}}
