/* Voronoi & Delaunay (/voronoi-delaunay): the field of sites (with the energy chart beside or under it) fills a focus stage, with the
   four tiles in the floating panel beside it (docs/app-kit.md). Tiles, panels and buttons come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this app's page (StylePaths). */

/* Click to add sites, drag them or the empty circle; the script sets the cursor. No scrolling or zooming while a finger drags. */
.vd-landing-app .vd-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

.vd-landing-app .vd-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* The first tile in the method's colour (the script sets --vd-mode). */
.vd-landing-app .vd-stat-main {
    --ak-stat-color: var(--vd-mode, #2563eb);
}

/* Phones: a square picture (the field above the chart). */
@media (max-width: 640px) {
    .vd-landing-app .vd-canvas {
        aspect-ratio: 1 / 1;
    }
}
