/* Tide Pool Trio (/tide-pool-trio): only what is the game's own - the canvas with the rock pool, the heap of tiles,
   the ledge and the tray. Tiles, 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 pool keeps its
   own sunny colours in both themes (filter-engines/tide-pool-trio.js). */

/* The canvas: the sign, the 7 x 7 heap, the ledge and the tray (8 x 10.2 tiles), no taller than the screen allows.
   The board alone has a size; the canvas lies over it and takes no part in it. The game sizes the canvas to the
   board's size times the pixel ratio, so as the board's content it made both a little taller every frame (an iPad
   upright: the pool grew out of view, as Cave Flutter's did). min-height: 0 keeps the board at the shape
   aspect-ratio gives it. */
.tide-pool-trio-board {
    position: relative;
    width: min(100%, calc((100vh - 230px) * 80 / 102));
    min-width: min(100%, 280px);
    min-height: 0;
    aspect-ratio: 80 / 102;
}

.tide-pool-trio-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #45bfc9;
    touch-action: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.tide-pool-trio-canvas:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent);
}

/* Phones: the shared .game-fit layout (css/app-kit/games.css) fits the tiles and the board on the screen;
   --game-room is what the stage holds besides the board (no touch pad: the tiles are tapped). */
.tide-pool-trio-stage {
    --game-aspect: calc(80 / 102);
    --game-max: 600px;
    --game-room: 103px;
    --game-room-touch: 103px;
    --game-room-short: 56px;
}
