/* Pendulum wave (/pendulum-wave): 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. */

.filter-landing-stage.pwave-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: #151a24;
    background-image: none;
}

.pwave-landing-stage.is-dragging {
    cursor: grabbing;
}

.pwave-landing-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.pwave-hud {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    width: max-content;
    min-width: 190px;
    max-width: min(300px, calc(100% - 24px));
    box-sizing: border-box;
    margin: 0;
    padding: 9px 13px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(8, 12, 24, 0.72);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.pwave-hud:empty,
.pwave-hud[hidden],
.pwave-hud [hidden] {
    display: none;
}

.pwave-hud-row {
    margin: 0;
}

.pwave-hud-label,
.pwave-hud-sep {
    opacity: 0.66;
}

.pwave-hud-value {
    color: #f8fafc;
    font-weight: 600;
}

.pwave-hud-status .pwave-hud-value {
    color: #7dd3fc;
}

/* Where the cycle is, with marks where the balls form rows. */
.pwave-hud-bar {
    position: relative;
    height: 6px;
    margin: 6px 0 5px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.pwave-hud-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 3px;
    background: #7dd3fc;
}

.pwave-hud-tick {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.45);
}

.pwave-hud-paused {
    display: inline-block;
    width: 8px;
    height: 10px;
    margin-inline-end: 7px;
    box-sizing: border-box;
    border-left: 3px solid #fbbf24;
    border-right: 3px solid #fbbf24;
    vertical-align: -1px;
}

.pwave-landing-stage--compact .pwave-hud {
    left: 8px;
    top: 8px;
    min-width: 150px;
    max-width: calc(100% - 16px);
    padding: 6px 9px 7px;
    border-radius: 10px;
    font-size: 0.68rem;
}

.pwave-landing-stage--compact .pwave-hud-detail {
    display: none;
}

.pwave-landing-stage--compact .pwave-hud-bar {
    height: 4px;
    margin: 3px 0 4px;
}

body.filter-app-mode .pwave-landing-app .pwave-landing-canvas {
    max-width: none;
}

body.filter-app-mode .pwave-landing-stage {
    box-shadow: none;
}

.pwave-landing-stage.pwave-stage--transparent {
    background: var(--component-checkerboard);
}
