/* Flake fractal builder (/flake-fractals): the square canvas and the rule grid in the panel (the playback bar is in the
   panel). Tiles, panels and the buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's
   page (StylePaths). */

.ff-landing-app .ff-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ff-landing-app .ff-canvas {
    display: block;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
}

/* The rule: an n × n grid of square cells (n from --ff-n, set by the script), pressed when the cell is kept. */
.ff-landing-app .ff-rule {
    display: grid;
    grid-template-columns: repeat(var(--ff-n, 3), minmax(0, 1fr));
    gap: 3px;
    width: min(100%, 11rem);
    padding: 3px;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-sm, 6px);
    background: var(--ak-field);
}

.ff-landing-app .ff-cell {
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--ak-border);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.ff-landing-app .ff-cell[aria-pressed="true"] {
    border-color: var(--ak-accent);
    background: var(--ak-accent);
}

.ff-landing-app .ff-cell:hover {
    border-color: var(--ak-accent);
}

.ff-landing-app .ff-cell:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: 1px;
}
