.ag-game-battleships{--bs-sea:#3ec6e0;--bs-deep:#0e4c66;--bs-ship:#f4b860;--bs-hull:#d4893a;--bs-err:#ff7a90}:root[data-theme=light] .ag-game-battleships{--bs-sea:#0e7490;--bs-deep:#083344;--bs-ship:#c46a10;--bs-hull:#8a4b12;--bs-err:#c3002f}.ag-game-battleships .bs-grid{width:min(100%,calc((var(--n) + 1) * 52px),560px);touch-action:none;-webkit-user-select:none;user-select:none;flex-direction:column;gap:3px;margin-inline:auto;display:flex}.ag-game-battleships .bs-row{grid-template-columns:repeat(calc(var(--n) + 1),minmax(0,1fr));gap:3px;display:grid}.ag-game-battleships .bs-corner{display:block}.ag-game-battleships .bs-count{aspect-ratio:1;min-width:0;color:var(--ink);font-family:var(--display);font-variant-numeric:tabular-nums;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;margin:0;padding:0;font-size:clamp(.85rem,3.2vw,1.15rem);font-weight:800;display:grid}.ag-game-battleships .bs-count:hover{background:var(--panel-soft)}.ag-game-battleships .bs-count:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}.ag-game-battleships .bs-count.is-done{color:var(--muted);text-decoration:line-through 2px;text-decoration-color:color-mix(in srgb,var(--bs-sea) 70%,transparent)}.ag-game-battleships .bs-count.is-over{color:var(--bs-err);background:color-mix(in srgb,var(--bs-err) 14%,transparent)}.ag-game-battleships .bs-cell{aspect-ratio:1;border:1px solid color-mix(in srgb,var(--bs-sea) 35%,var(--hairline));background:color-mix(in srgb,var(--bs-deep) 55%,var(--panel));min-width:0;color:var(--ink);cursor:pointer;border-radius:7px;place-items:center;margin:0;padding:0;display:grid;position:relative}.ag-game-battleships .bs-cell:hover{border-color:var(--bs-sea)}.ag-game-battleships .bs-cell:focus-visible{outline:3px solid var(--focus);outline-offset:-2px;z-index:2}.ag-game-battleships .bs-cell.is-sea{background:color-mix(in srgb,var(--bs-sea) 28%,var(--panel-soft))}.ag-game-battleships .bs-cell.is-sea:after{content:"";border:2px solid var(--bs-sea);opacity:.8;border-top:0;border-radius:40%;width:46%;height:18%}.ag-game-battleships .bs-cell.is-ship{background:color-mix(in srgb,var(--bs-ship) 22%,var(--panel-soft));border-color:color-mix(in srgb,var(--bs-ship) 60%,var(--hairline))}.ag-game-battleships .bs-cell.is-locked{cursor:default}.ag-game-battleships .bs-cell.is-error{background:color-mix(in srgb,var(--bs-err) 24%,var(--panel-soft));border-color:var(--bs-err)}.ag-game-battleships .bs-icon{place-items:center;width:78%;height:78%;display:grid}.ag-game-battleships .bs-icon svg{stroke-linejoin:round;stroke-linecap:round;width:100%;height:100%}.ag-game-battleships .bs-hull{fill:var(--bs-ship);stroke:var(--bs-hull);stroke-width:1.2px}.ag-game-battleships .bs-cabin{fill:color-mix(in srgb,var(--bs-ship) 40%,#fff);stroke:var(--bs-hull);stroke-width:1px}.ag-game-battleships .bs-mast{fill:none;stroke:var(--bs-hull);stroke-width:1.6px}.ag-game-battleships .bs-cell.is-error .bs-hull{fill:var(--bs-err)}.ag-game-battleships .bs-cell.is-ship .bs-icon{animation:.2s ease-out bs-in}.ag-game-battleships .bs-cell.is-hint{z-index:1;animation:1.1s 2 bs-hint}.ag-game-battleships .bs-grid.is-won .bs-cell.is-ship .bs-icon{animation:.45s cubic-bezier(.2,.9,.3,1.3) both bs-win}.ag-game-battleships .bs-fleet,.ag-game-battleships .bs-legend{text-align:center}.ag-game-battleships .bs-legend{flex-wrap:wrap;justify-content:center;gap:6px 16px;display:flex}.ag-game-battleships .bs-key{align-items:center;gap:6px;display:inline-flex}.ag-game-battleships .bs-mini{border:1px solid var(--hairline);background:color-mix(in srgb,var(--bs-deep) 50%,var(--panel));border-radius:5px;place-items:center;width:20px;height:20px;display:inline-grid}.ag-game-battleships .bs-mini.is-sea{background:color-mix(in srgb,var(--bs-sea) 35%,var(--panel-soft))}.ag-game-battleships .bs-mini svg{width:16px;height:16px}@keyframes bs-in{0%{opacity:0;transform:translateY(24%)scale(.7)}to{opacity:1;transform:none}}@keyframes bs-hint{50%{box-shadow:0 0 0 4px var(--focus)}}@keyframes bs-win{0%{transform:none}40%{transform:translateY(-16%)scale(1.12)}to{transform:none}}@media (width<=520px){.ag-game-battleships .bs-grid,.ag-game-battleships .bs-row{gap:2px}.ag-game-battleships .bs-cell{border-radius:5px}}@media (prefers-reduced-motion:reduce){.ag-game-battleships .bs-cell.is-ship .bs-icon,.ag-game-battleships .bs-cell.is-hint,.ag-game-battleships .bs-grid.is-won .bs-cell.is-ship .bs-icon{animation:none}}@media (forced-colors:active){.ag-game-battleships .bs-cell{border-color:canvastext}.ag-game-battleships .bs-cell.is-error{outline-offset:-4px;outline:2px solid highlight}}.bs-coach{justify-items:start;gap:.6rem;display:grid}.bs-coach[hidden]{display:none}.bs-coach-title{margin:0;font-size:1.1rem}.bs-coach-ask,.bs-coach-say{margin:0}.bs-coach-say{min-height:1.5em}.bs-coach-grid{justify-self:center}.bs-coach-actions{flex-wrap:wrap;gap:.5rem;display:flex}
