/* Apex Halo (/apex-halo): only what is the game's own - the canvas with the track, the cockpit 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 sky, the track and the car keep their
   own colours in both themes (filter-engines/apex-halo.js).

   Like 8 Ball Pool, the canvas fills the whole stage: no board in a frame, no rounded corners. The game lays out its
   view for any shape, so the stage takes the room the page gives it (all of it in the app view) and the canvas follows. */

.filter-landing-stage.apex-halo-stage {
    position: relative;
    display: block;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    background: #0b1220;
    background-image: none;
    touch-action: none;
}

/* Absolutely placed so the canvas's own pixel size never stretches the stage. */
.apex-halo-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    background: #0b1220;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.apex-halo-canvas:focus-visible {
    box-shadow: inset 0 0 0 3px var(--ak-accent);
}

/* Phones: a taller view, with the HUD above the track and the touch controls over the cockpit. */
@media (max-width: 640px) {
    .filter-landing-stage.apex-halo-stage {
        aspect-ratio: 3 / 4;
        max-height: max(100vw, calc(100svh - 4rem));
    }
}
