/**
 * Vanilla-CSS-Portierung des "Core Rotor"-Loaders aus dotmatrix (dotm-square-13,
 * https://dotmatrix.zzzzshawn.cloud/) - ohne React/Tailwind-Abhaengigkeit.
 * Steuerung ausschliesslich ueber CSS-Custom-Properties + JS-gesetzte Inline-Opacity
 * pro Dot (siehe dotmatrix-core-rotor.js).
 */
.dmx-rotor-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    --dmx-rotor-dot-size: 3px;
    --dmx-rotor-gap: 2px;
    --dmx-rotor-color: currentColor;
}

.dmx-rotor-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: var(--dmx-rotor-gap);
}

.dmx-rotor-dot {
    width: var(--dmx-rotor-dot-size);
    height: var(--dmx-rotor-dot-size);
    border-radius: 999px;
    background: var(--dmx-rotor-color);
    opacity: 0.08;
    transition: opacity 90ms linear;
    will-change: opacity;
}

/* Zentriertes Overlay ueber einem position:relative-Elternelement (z.B. waehrend Content laedt). */
.dmx-rotor-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .dmx-rotor-dot {
        transition: none;
    }
}
