/* Jelly Drift (/jelly-drift): only what is the game's own - the sea canvas and a touch pad of four keys. Tiles,
   buttons, fields and the accent come from the app kit (css/app-kit, docs/app-kit.md), the button row and touch pad
   from css/app-kit/games.css (every game). Loaded only on this page (StylePaths). The sea keeps its own deep-blue
   colours in both themes (filter-engines/jelly-drift.js). */

/* The sea: 160 x 100 units, as wide as the panel and no taller than the screen allows. */
.jelly-drift-board {
    width: min(100%, 900px, calc((100vh - 230px) * 160 / 100));
    min-width: min(100%, 260px);
    aspect-ratio: 160 / 100;
}

.jelly-drift-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #082642;
    touch-action: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.jelly-drift-canvas:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent);
}

/* Turn left, turn right, thrust and dash in one row, the wide shoot key under them. */
.game-pad--grid.jelly-drift-pad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
