/* Naval Combat (/naval-combat): only what is the game's own - the two canvases with the sea, the ships and the HUD.
   Buttons, fields and the accent come from the app kit (css/app-kit, docs/app-kit.md), the button row from
   css/app-kit/games.css (every game). Loaded only on this page (StylePaths). The sea, the sky and the ships keep their
   own colours in every look (filter-engines/naval-combat.js).

   Like 8 Ball Pool and Apex Halo, the canvases fill the whole stage: the WebGL scene below and the HUD above it,
   which takes the mouse, the keys and the touches. The game lays out its view for any shape. */

.filter-landing-stage.naval-combat-stage {
    position: relative;
    display: block;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    background: #0b1a2a;
    background-image: none;
    touch-action: none;
}

/* Absolutely placed so the canvases' own pixel size never stretches the stage. */
.naval-combat-scene,
.naval-combat-hud {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.naval-combat-scene {
    background: #0b1a2a;
    pointer-events: none;
}

.naval-combat-hud {
    background: transparent;
}

.naval-combat-hud:focus-visible {
    box-shadow: inset 0 0 0 3px var(--ak-accent);
}

/* Phones: a taller view, with the touch controls at the bottom over the sea. */
@media (max-width: 640px) {
    .filter-landing-stage.naval-combat-stage {
        aspect-ratio: 3 / 4;
        max-height: max(100vw, calc(100svh - 4rem));
    }
}
