/* Dewdrop Pop (/dewdrop-pop): only what is the game's own - the canvas with the misty garden, the branch and the leaf.
   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 garden keeps its own soft colours in
   both themes (filter-engines/dewdrop-pop.js). */

/* The canvas: the branch, the honeycomb of drops and the leaf (9.9 x 14.5 drops), 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 could make both a little taller every frame
   (as Cave Flutter's did). min-height: 0 keeps the board at the shape aspect-ratio gives it. */
.dewdrop-pop-board {
    position: relative;
    min-height: 0;
    width: min(100%, calc((100vh - 230px) * 99 / 145));
    min-width: min(100%, 260px);
    aspect-ratio: 99 / 145;
}

.dewdrop-pop-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #e7ece0;
    touch-action: none;
    outline: none;
    cursor: crosshair;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.dewdrop-pop-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: you aim by touching the garden). */
.dewdrop-pop-stage {
    --game-aspect: calc(99 / 145);
    --game-max: 560px;
    --game-room: 103px;
    --game-room-touch: 103px;
    --game-room-short: 56px;
}
