/* Complex numbers (/complex-numbers): the Argand plane fills a focus stage, with the five 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). */

/* Drag z, w, θ or a root on the plane; the script sets the cursor. No scrolling or zooming while a finger drags. */
.cn-landing-app .cn-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.cn-landing-app .cn-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* The tiles take the colours of their arrows in the picture: z blue, w orange, the result green. */
.cn-landing-app .cn-stat-z {
    --ak-stat-color: #2563eb;
}

.cn-landing-app .cn-stat-w {
    --ak-stat-color: #d97706;
}

.cn-landing-app .cn-stat-res {
    --ak-stat-color: #059669;
}

.cn-landing-app .cn-number {
    font-variant-numeric: tabular-nums;
}

.cn-landing-app .ak-row[hidden] {
    display: none;
}

/* Phones: a square picture. */
@media (max-width: 640px) {
    .cn-landing-app .cn-canvas {
        aspect-ratio: 1 / 1;
    }
}
