/* Cave Flutter (/cave-flutter): only what is the game's own - the cave canvas. 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 cave keeps its own dusky colours in both themes
   (filter-engines/cave-flutter.js). */

/* The cave: 100 x 140 units, as wide as the panel and no taller than the screen allows. */
.cave-flutter-board {
    width: min(100%, 520px, calc((100vh - 230px) * 100 / 140));
    min-width: min(100%, 240px);
    aspect-ratio: 100 / 140;
}

.cave-flutter-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #1f1836;
    touch-action: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cave-flutter-canvas:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent);
}
