/* Langton's Ant (/langtons-ant): what is its own - the canvas stage and what is drawn over it. The buttons and the accent
   come from the app kit (css/app-kit, docs/app-kit.md); the sliders and checkboxes are the shared app controls.
   Loaded only on this app's page (StylePaths). The stage is the canvas's own box, not the kit's padded
   .ak-stage column; the phone layout is the shared one for canvas apps in landing/seo-pages.css. */

@media (min-width: 961px) {
    .filter-landing-app.is-panel-collapsed .langtons-ant-hud {
        inset-inline-end: 56px;
        max-width: calc(100% - 68px);
    }
}

@media (min-width: 961px) {
    .filter-landing-app.is-panel-collapsed.has-stage-play .langtons-ant-hud {
        inset-inline-end: 100px;
        max-width: calc(100% - 112px);
    }
}

.langtons-ant-landing-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.filter-landing-stage.langtons-ant-landing-stage {
    position: relative;
    display: block;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    box-shadow: none;
    cursor: grab;
    touch-action: none;
    background-color: #f4efe6;
    background-image: none;
}

.langtons-ant-landing-stage.langtons-ant-stage--paint {
    cursor: crosshair;
}

.langtons-ant-landing-stage.langtons-ant-stage--ant {
    cursor: cell;
}

.langtons-ant-landing-stage.langtons-ant-stage--dragging.langtons-ant-stage--pan {
    cursor: grabbing;
}

.langtons-ant-hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(7, 11, 20, 0.62);
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.35;
    pointer-events: none;
}

.langtons-ant-landing-controls [data-la-rule-panel][hidden],
.langtons-ant-landing-controls [data-la-turmite-panel][hidden] {
    display: none;
}

body.filter-app-mode .langtons-ant-landing-app .langtons-ant-landing-canvas {
    max-width: none;
}

body.filter-app-mode .langtons-ant-landing-stage {
    box-shadow: none;
}

.langtons-ant-landing-app {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.langtons-ant-landing-stage.langtons-ant-stage--transparent {
    background: var(--component-checkerboard);
}
