/* Four colour theorem (/four-color-theorem): the palette of four colours and an eraser, the square map, its status line
   and the buttons. 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). */

.fc-landing-app .fc-main { display: flex; flex-direction: column; align-items: center; gap: var(--ak-space-2, 0.5rem); }

.fc-landing-app .fc-palette { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

.fc-landing-app .fc-swatch {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.3rem;
    border: 2px solid var(--ak-border);
    border-radius: 50%;
    background: var(--ak-field);
    color: var(--ak-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fc-landing-app .fc-swatch > span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--fc-c); }
.fc-landing-app .fc-swatch[aria-pressed="true"] { border-color: var(--ak-text); box-shadow: 0 0 0 2px var(--ak-accent); }
.fc-landing-app .fc-swatch:focus-visible { outline: 2px solid var(--ak-accent); outline-offset: 2px; }

.fc-landing-app .fc-map {
    display: block;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    touch-action: manipulation;
}

.fc-landing-app .fc-status { margin: 0; min-height: 1.4em; text-align: center; }

.fc-landing-app .fc-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ak-space-2, 0.5rem);
    width: 100%;
    max-width: 620px;
}

@media (max-width: 560px) {
    .fc-landing-app .fc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
