/* === Image-gen loaders ===
 * 30 CSS-only loader variants. Picked deterministically from filename hash
 * in src/ui/imageGenPlaceholder.js (pickLoaderVariant). Same filename → same
 * variant on every device, so all observers and the originating device render
 * the identical loader.
 *
 * All loaders sit absolutely-positioned at the center of their parent (via
 * .imggen-loader's transform). Color is white-ish so they read on the dark
 * placeholder background.
 */
.imggen-loader {
    --c: rgba(255, 255, 255, 0.85);
    --c-dim: rgba(255, 255, 255, 0.25);
    --scale: 1;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale));
}
/* Desktop: 2x loader — placeholders are much bigger there, the loader needs to match. */
@media (min-width: 768px) {
    .imggen-loader { --scale: 2; }
}

/* Breathing glass — subtle light-moving-across effect on placeholders. Background-size larger
   than 100% so the radial gradients can slide without clipping. Very slow + small motion. */
.gen-image-placeholder,
.gen-image-processing {
    background-size: 180% 180%, 180% 180%, 200% 200%;
    animation: imggen-glass-breathe 8s ease-in-out infinite;
}
@keyframes imggen-glass-breathe {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 0% 0%;
    }
    50% {
        background-position: 30% 20%, 70% 80%, 100% 100%;
    }
}

/* Fade-in for generated image items (appears when placeholder slot is replaced) */
.gen-image-item {
    animation: imggen-item-fade-in 350ms ease-out backwards;
}
@keyframes imggen-item-fade-in {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Reset for box-shadow-based loaders that don't need width/height defaults */
.imggen-loader.bs {
    width: 12px;
    height: 12px;
}

/* ============== v0..v4 (existing — kept for backwards compat) ============== */

/* v0: spinning ring (classic) */
.imggen-loader.v0 {
    width: 36px;
    height: 36px;
    border: 3px solid var(--c-dim);
    border-top-color: var(--c);
    border-radius: 50%;
    animation: imggen-spin 0.8s linear infinite;
}

/* v1: three pulsing dots */
.imggen-loader.v1 { display: flex; align-items: center; justify-content: center; gap: 6px; }
.imggen-loader.v1::before, .imggen-loader.v1::after, .imggen-loader.v1 > i {
    content: ''; display: block;
    width: 8px; height: 8px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pulse 1.4s ease-in-out infinite;
}
.imggen-loader.v1 > i { animation-delay: 0.2s; }
.imggen-loader.v1::after { animation-delay: 0.4s; }
@keyframes imggen-pulse {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1.0); opacity: 1; }
}

/* v2: three bouncing bars */
.imggen-loader.v2 { display: flex; align-items: center; justify-content: center; gap: 4px; }
.imggen-loader.v2::before, .imggen-loader.v2::after, .imggen-loader.v2 > i {
    content: ''; display: block;
    width: 6px; height: 32px;
    background: var(--c); border-radius: 3px;
    animation: imggen-bar-flex 1s ease-in-out infinite;
}
.imggen-loader.v2 > i { animation-delay: 0.15s; }
.imggen-loader.v2::after { animation-delay: 0.3s; }
@keyframes imggen-bar-flex {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

/* v3: jumping wave of dots */
.imggen-loader.v3 { display: flex; align-items: center; justify-content: center; gap: 4px; }
.imggen-loader.v3::before, .imggen-loader.v3::after, .imggen-loader.v3 > i {
    content: ''; display: block;
    width: 7px; height: 7px;
    background: var(--c); border-radius: 50%;
    animation: imggen-wave 1.2s ease-in-out infinite;
}
.imggen-loader.v3 > i { animation-delay: 0.15s; }
.imggen-loader.v3::after { animation-delay: 0.3s; }
@keyframes imggen-wave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* v4: dual rotating ring */
.imggen-loader.v4 {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--c);
    border-bottom-color: var(--c-dim);
    animation: imggen-spin 0.9s linear infinite;
}
.imggen-loader.v4::before {
    content: '';
    position: absolute; inset: 4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.6);
    border-right-color: var(--c-dim);
    animation: imggen-rotate 1.4s linear infinite reverse;
}

/* ============== v5..v14: dots family ============== */

/* v5: heartbeat single dot */
.imggen-loader.v5 {
    width: 20px; height: 20px;
    background: var(--c);
    border-radius: 50%;
    animation: imggen-heartbeat 1s ease-in-out infinite;
}
@keyframes imggen-heartbeat {
    0%, 100% { transform: scale(0.5); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
}

/* v6: dot ripple — single dot expanding outward */
.imggen-loader.v6 {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 0 var(--c);
    animation: imggen-ripple 1.5s ease-out infinite;
}
@keyframes imggen-ripple {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0); }
}

/* v7: orbit dot — small dot orbiting around a center */
.imggen-loader.v7 {
    width: 36px; height: 36px;
    border: 2px dashed var(--c-dim);
    border-radius: 50%;
    animation: imggen-spin 4s linear infinite;
}
.imggen-loader.v7::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    background: var(--c);
    border-radius: 50%;
}

/* v8: chasing dots — two dots chasing in a line */
.imggen-loader.v8 {
    width: 40px; height: 12px;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.imggen-loader.v8::before, .imggen-loader.v8::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c);
    animation: imggen-chase 1.4s ease-in-out infinite;
}
.imggen-loader.v8::after {
    animation-delay: -0.7s;
}
@keyframes imggen-chase {
    0% { left: 0; }
    50% { left: calc(100% - 12px); }
    100% { left: 0; }
}

/* v9: dot grid — 3x3 grid of pulsing dots */
.imggen-loader.v9 {
    width: 36px; height: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
}
.imggen-loader.v9 > i {
    background: var(--c);
    border-radius: 50%;
    animation: imggen-pulse 1.6s ease-in-out infinite;
}
.imggen-loader.v9 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v9 > i:nth-child(2) { animation-delay: 0.1s; }
.imggen-loader.v9 > i:nth-child(3) { animation-delay: 0.2s; }
.imggen-loader.v9 > i:nth-child(4) { animation-delay: 0.1s; }
.imggen-loader.v9 > i:nth-child(5) { animation-delay: 0.2s; }
.imggen-loader.v9 > i:nth-child(6) { animation-delay: 0.3s; }
.imggen-loader.v9 > i:nth-child(7) { animation-delay: 0.2s; }
.imggen-loader.v9 > i:nth-child(8) { animation-delay: 0.3s; }
.imggen-loader.v9 > i:nth-child(9) { animation-delay: 0.4s; }

/* v10: bouncing dots — two dots bouncing in opposite arcs */
.imggen-loader.v10 {
    width: 36px; height: 36px;
}
.imggen-loader.v10::before, .imggen-loader.v10::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--c);
    opacity: 0.7;
    animation: imggen-bounce 2s ease-in-out infinite;
}
.imggen-loader.v10::after {
    animation-direction: reverse;
}
@keyframes imggen-bounce {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(18px, 0); }
    50% { transform: translate(18px, 18px); }
    75% { transform: translate(0, 18px); }
}

/* v11: dots circle — 8 dots arranged in a circle, rotating brightness */
.imggen-loader.v11 {
    width: 40px; height: 40px;
    animation: imggen-spin 1.2s steps(8) infinite;
}
.imggen-loader.v11::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 6px; height: 6px;
    margin-left: -3px;
    background: var(--c);
    border-radius: 50%;
    box-shadow:
        14px 4px 0 rgba(255,255,255,0.85),
        20px 16px 0 rgba(255,255,255,0.7),
        14px 28px 0 rgba(255,255,255,0.55),
        0 32px 0 rgba(255,255,255,0.4),
        -14px 28px 0 rgba(255,255,255,0.3),
        -20px 16px 0 rgba(255,255,255,0.22),
        -14px 4px 0 rgba(255,255,255,0.18);
}

/* v12: pacman-style arc */
.imggen-loader.v12 {
    width: 36px; height: 36px;
    border: 4px solid var(--c);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: imggen-spin 1.2s linear infinite;
}

/* v13: dot trail — 5 dots in horizontal line, lighting up in sequence */
.imggen-loader.v13 {
    width: 44px; height: 6px;
    background:
        radial-gradient(circle 3px at 4px 50%, var(--c) 99%, transparent 0),
        radial-gradient(circle 3px at 14px 50%, var(--c-dim) 99%, transparent 0),
        radial-gradient(circle 3px at 24px 50%, var(--c-dim) 99%, transparent 0),
        radial-gradient(circle 3px at 34px 50%, var(--c-dim) 99%, transparent 0),
        radial-gradient(circle 3px at 44px 50%, var(--c-dim) 99%, transparent 0);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: imggen-trail 1s linear infinite;
}
@keyframes imggen-trail {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    25% { background-position: 10px 0, 0 0, 0 0, 0 0, -10px 0; }
    50% { background-position: 20px 0, 10px 0, 0 0, -10px 0, -20px 0; }
    100% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
}

/* v14: pulsing concentric rings */
.imggen-loader.v14 {
    width: 36px; height: 36px;
    border-radius: 50%;
}
.imggen-loader.v14::before, .imggen-loader.v14::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--c);
    animation: imggen-ring-out 1.6s ease-out infinite;
}
.imggen-loader.v14::after {
    animation-delay: 0.8s;
}
@keyframes imggen-ring-out {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============== v15..v24: bars family ============== */

/* v15: 5 bars wave */
.imggen-loader.v15 {
    display: flex; align-items: center; justify-content: center; gap: 3px;
    width: 44px;
}
.imggen-loader.v15 > i {
    display: block; width: 4px; height: 30px;
    background: var(--c); border-radius: 2px;
    animation: imggen-bar-flex 1.2s ease-in-out infinite;
}
.imggen-loader.v15 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v15 > i:nth-child(2) { animation-delay: 0.1s; }
.imggen-loader.v15 > i:nth-child(3) { animation-delay: 0.2s; }
.imggen-loader.v15 > i:nth-child(4) { animation-delay: 0.3s; }
.imggen-loader.v15 > i:nth-child(5) { animation-delay: 0.4s; }

/* v16: progress bar (filling left to right, then resetting) */
.imggen-loader.v16 {
    width: 50px; height: 6px;
    background: var(--c-dim);
    border-radius: 3px;
    overflow: hidden;
}
.imggen-loader.v16::before {
    content: '';
    display: block;
    width: 30%; height: 100%;
    background: var(--c);
    border-radius: 3px;
    animation: imggen-bar-slide 1.5s ease-in-out infinite;
}
@keyframes imggen-bar-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(266%); }
    100% { transform: translateX(-100%); }
}

/* v17: bouncing bar (single bar moving up/down) */
.imggen-loader.v17 {
    width: 8px; height: 36px;
    background: var(--c);
    border-radius: 4px;
    animation: imggen-bar-bounce 1s ease-in-out infinite;
}
@keyframes imggen-bar-bounce {
    0%, 100% { transform: scaleY(1) translateY(0); }
    50% { transform: scaleY(0.4) translateY(8px); }
}

/* v18: stacked bars (3 bars stacked, sliding alternately) */
.imggen-loader.v18 {
    width: 36px; height: 36px;
    display: flex; flex-direction: column; gap: 4px;
    justify-content: center;
}
.imggen-loader.v18 > i {
    display: block; width: 100%; height: 6px;
    background: var(--c); border-radius: 3px;
    transform-origin: left center;
    animation: imggen-bar-shrink 1.3s ease-in-out infinite;
}
.imggen-loader.v18 > i:nth-child(2) { animation-delay: 0.15s; }
.imggen-loader.v18 > i:nth-child(3) { animation-delay: 0.3s; }
@keyframes imggen-bar-shrink {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.3); }
}

/* v19: rotating bar (one bar rotating like a clock arm) */
.imggen-loader.v19 {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--c-dim);
}
.imggen-loader.v19::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 3px;
    background: var(--c);
    border-radius: 2px;
    transform-origin: 1px center;
    animation: imggen-clock-arm 1.2s linear infinite;
}
@keyframes imggen-clock-arm {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* v20: thin bars cycling through colors of opacity */
.imggen-loader.v20 {
    display: flex; gap: 2px; justify-content: center; align-items: center;
    width: 36px; height: 36px;
}
.imggen-loader.v20 > i {
    display: block; width: 3px; height: 30px;
    background: var(--c-dim); border-radius: 2px;
    animation: imggen-bar-light 1.4s ease-in-out infinite;
}
.imggen-loader.v20 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v20 > i:nth-child(2) { animation-delay: 0.1s; }
.imggen-loader.v20 > i:nth-child(3) { animation-delay: 0.2s; }
.imggen-loader.v20 > i:nth-child(4) { animation-delay: 0.3s; }
.imggen-loader.v20 > i:nth-child(5) { animation-delay: 0.4s; }
.imggen-loader.v20 > i:nth-child(6) { animation-delay: 0.5s; }
@keyframes imggen-bar-light {
    0%, 100% { background: var(--c-dim); }
    50% { background: var(--c); }
}

/* v21: vertical bar growing then resetting */
.imggen-loader.v21 {
    width: 6px; height: 36px;
    background: var(--c-dim);
    border-radius: 3px;
    overflow: hidden;
}
.imggen-loader.v21::before {
    content: '';
    display: block;
    width: 100%; height: 100%;
    background: var(--c);
    border-radius: 3px;
    animation: imggen-bar-vertical 1.5s ease-in-out infinite;
}
@keyframes imggen-bar-vertical {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* v22: sliding bars (two bars sliding past each other) */
.imggen-loader.v22 {
    width: 40px; height: 36px;
}
.imggen-loader.v22::before, .imggen-loader.v22::after {
    content: '';
    position: absolute;
    width: 16px; height: 5px;
    background: var(--c);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    animation: imggen-slide-bar 1.6s ease-in-out infinite;
}
.imggen-loader.v22::before {
    left: 0;
}
.imggen-loader.v22::after {
    right: 0;
    animation-delay: -0.8s;
}
@keyframes imggen-slide-bar {
    0%, 100% { transform: translate(0, -50%); opacity: 1; }
    50% { transform: translate(24px, -50%); opacity: 0.3; }
}

/* v23: zigzag bars */
.imggen-loader.v23 {
    display: flex; gap: 3px; align-items: center; justify-content: center;
    width: 36px;
}
.imggen-loader.v23 > i {
    display: block; width: 4px; height: 16px;
    background: var(--c); border-radius: 2px;
    animation: imggen-zigzag 1s ease-in-out infinite;
}
.imggen-loader.v23 > i:nth-child(2) { animation-delay: 0.1s; }
.imggen-loader.v23 > i:nth-child(3) { animation-delay: 0.2s; }
.imggen-loader.v23 > i:nth-child(4) { animation-delay: 0.3s; }
.imggen-loader.v23 > i:nth-child(5) { animation-delay: 0.4s; }
@keyframes imggen-zigzag {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    75% { transform: translateY(8px); }
}

/* v24: equalizer bars (random heights, like audio EQ) */
.imggen-loader.v24 {
    display: flex; gap: 3px; align-items: flex-end; justify-content: center;
    width: 36px; height: 36px;
}
.imggen-loader.v24 > i {
    display: block; width: 4px; background: var(--c); border-radius: 2px;
    animation: imggen-eq 0.8s ease-in-out infinite alternate;
}
.imggen-loader.v24 > i:nth-child(1) { height: 50%; animation-delay: 0s; }
.imggen-loader.v24 > i:nth-child(2) { height: 80%; animation-delay: 0.1s; }
.imggen-loader.v24 > i:nth-child(3) { height: 30%; animation-delay: 0.2s; }
.imggen-loader.v24 > i:nth-child(4) { height: 70%; animation-delay: 0.3s; }
.imggen-loader.v24 > i:nth-child(5) { height: 40%; animation-delay: 0.4s; }
@keyframes imggen-eq {
    0% { transform: scaleY(0.3); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

/* ============== v25..v34: dots+bars combos ============== */

/* v25: dot above bar (loading indicator style) */
.imggen-loader.v25 {
    width: 30px; height: 36px;
}
.imggen-loader.v25::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 10px; height: 10px;
    margin-left: -5px;
    background: var(--c); border-radius: 50%;
    animation: imggen-drop-dot 1.4s ease-in-out infinite;
}
.imggen-loader.v25::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 20px; height: 4px;
    margin-left: -10px;
    background: var(--c-dim);
    border-radius: 2px;
}
@keyframes imggen-drop-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

/* v26: bar fills with dots inside */
.imggen-loader.v26 {
    width: 50px; height: 14px;
    border: 2px solid var(--c); border-radius: 8px;
    overflow: hidden;
    padding: 2px 4px;
    box-sizing: border-box;
    display: flex; gap: 3px; align-items: center;
}
.imggen-loader.v26 > i {
    display: block; width: 4px; height: 4px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pulse 1.2s ease-in-out infinite;
}
.imggen-loader.v26 > i:nth-child(2) { animation-delay: 0.15s; }
.imggen-loader.v26 > i:nth-child(3) { animation-delay: 0.3s; }
.imggen-loader.v26 > i:nth-child(4) { animation-delay: 0.45s; }

/* v27: dot bouncing inside bar (pong-style) */
.imggen-loader.v27 {
    width: 50px; height: 16px;
    border: 2px solid var(--c); border-radius: 9px;
    overflow: hidden;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.imggen-loader.v27::before {
    content: '';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pong 1.5s ease-in-out infinite alternate;
}
@keyframes imggen-pong {
    0% { left: 2px; }
    100% { left: calc(100% - 12px); }
}

/* v28: bar with growing dot at end */
.imggen-loader.v28 {
    width: 40px; height: 36px;
}
.imggen-loader.v28::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 3px;
    margin-top: -1.5px;
    background: var(--c-dim);
    border-radius: 2px;
}
.imggen-loader.v28::after {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 8px; height: 8px;
    margin-top: -4px;
    background: var(--c);
    border-radius: 50%;
    animation: imggen-slide-dot 1.5s ease-in-out infinite;
}
@keyframes imggen-slide-dot {
    0%, 100% { left: 0; transform: scale(1); }
    50% { left: calc(100% - 8px); transform: scale(1.4); }
}

/* v29: cross of bars + dot */
.imggen-loader.v29 {
    width: 36px; height: 36px;
    animation: imggen-spin 2s linear infinite;
}
.imggen-loader.v29::before, .imggen-loader.v29::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: var(--c);
    border-radius: 2px;
}
.imggen-loader.v29::before {
    width: 30px; height: 4px;
    margin: -2px 0 0 -15px;
}
.imggen-loader.v29::after {
    width: 4px; height: 30px;
    margin: -15px 0 0 -2px;
}

/* v30: bars + ripple dot at center */
.imggen-loader.v30 {
    display: flex; gap: 4px; align-items: center; justify-content: center;
    width: 40px; height: 36px;
}
.imggen-loader.v30 > i {
    display: block; width: 5px; height: 24px;
    background: var(--c); border-radius: 2px;
    animation: imggen-bar-flex 1s ease-in-out infinite;
}
.imggen-loader.v30 > i:nth-child(1),
.imggen-loader.v30 > i:nth-child(5) { animation-delay: 0s; }
.imggen-loader.v30 > i:nth-child(2),
.imggen-loader.v30 > i:nth-child(4) { animation-delay: 0.15s; }
.imggen-loader.v30 > i:nth-child(3) {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--c);
    animation: imggen-pulse 1s ease-in-out infinite;
}

/* v31: typing-style three dots */
.imggen-loader.v31 { display: flex; align-items: center; gap: 5px; }
.imggen-loader.v31::before, .imggen-loader.v31::after, .imggen-loader.v31 > i {
    content: ''; display: block;
    width: 7px; height: 7px;
    background: var(--c); border-radius: 50%;
    animation: imggen-typing 1.4s ease-in-out infinite;
    opacity: 0.3;
}
.imggen-loader.v31 > i { animation-delay: 0.2s; }
.imggen-loader.v31::after { animation-delay: 0.4s; }
@keyframes imggen-typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* v32: spinner with dots in cardinal positions */
.imggen-loader.v32 {
    width: 36px; height: 36px;
    animation: imggen-spin 1.5s linear infinite;
}
.imggen-loader.v32::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--c); border-radius: 50%;
    box-shadow:
        14px 0 0 var(--c),
        -14px 0 0 rgba(255,255,255,0.6),
        0 14px 0 rgba(255,255,255,0.4),
        0 -14px 0 rgba(255,255,255,0.2);
}

/* v33: vertical bars with rolling height */
.imggen-loader.v33 {
    display: flex; gap: 3px; align-items: center; justify-content: center;
    width: 40px; height: 36px;
}
.imggen-loader.v33 > i {
    display: block; width: 5px; background: var(--c); border-radius: 2px;
    animation: imggen-roll 1.3s ease-in-out infinite;
}
.imggen-loader.v33 > i:nth-child(1) { height: 30px; animation-delay: 0s; }
.imggen-loader.v33 > i:nth-child(2) { height: 30px; animation-delay: 0.13s; }
.imggen-loader.v33 > i:nth-child(3) { height: 30px; animation-delay: 0.26s; }
.imggen-loader.v33 > i:nth-child(4) { height: 30px; animation-delay: 0.39s; }
@keyframes imggen-roll {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* v34: glowing pulse — a single big circle that pulses with glow */
.imggen-loader.v34 {
    width: 18px; height: 18px;
    background: var(--c);
    border-radius: 50%;
    animation: imggen-glow 1.6s ease-in-out infinite;
}
@keyframes imggen-glow {
    0%, 100% {
        transform: scale(0.8);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 16px rgba(255, 255, 255, 0.7), 0 0 32px rgba(255, 255, 255, 0.4);
    }
}

/* ============== v35..v50: more dots ============== */

/* v35: pulsing dot inside expanding ring */
.imggen-loader.v35 {
    width: 36px; height: 36px;
    border: 2px solid var(--c-dim);
    border-radius: 50%;
}
.imggen-loader.v35::before {
    content: ''; position: absolute;
    inset: 50%; width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--c); border-radius: 50%;
    animation: imggen-heartbeat 1.4s ease-in-out infinite;
}

/* v36: 4 corners pulsing alternately */
.imggen-loader.v36 { width: 32px; height: 32px; }
.imggen-loader.v36::before, .imggen-loader.v36::after {
    content: ''; position: absolute;
    width: 10px; height: 10px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pulse 1.4s ease-in-out infinite;
}
.imggen-loader.v36::before { top: 0; left: 0; }
.imggen-loader.v36::after { bottom: 0; right: 0; animation-delay: 0.7s; }
.imggen-loader.v36 > i {
    position: absolute; width: 10px; height: 10px;
    background: var(--c); border-radius: 50%;
    top: 0; right: 0;
    animation: imggen-pulse 1.4s ease-in-out 0.35s infinite;
    box-shadow: 0 22px 0 var(--c);
}

/* v37: chase dots in circle (3 dots rotating) */
.imggen-loader.v37 {
    width: 32px; height: 32px;
    animation: imggen-spin 1.5s linear infinite;
}
.imggen-loader.v37::before {
    content: ''; position: absolute;
    top: 0; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    background: var(--c); border-radius: 50%;
    box-shadow: 24px 12px 0 rgba(255,255,255,0.65), -24px 12px 0 rgba(255,255,255,0.4);
}

/* v38: 6 dots radial pulse (centered, expanding outward) */
.imggen-loader.v38 {
    width: 8px; height: 8px;
    background: var(--c); border-radius: 50%;
    box-shadow:
        16px 0 0 var(--c),
        -16px 0 0 var(--c),
        0 16px 0 var(--c),
        0 -16px 0 var(--c),
        12px 12px 0 var(--c),
        -12px -12px 0 var(--c);
    animation: imggen-pulse 1.6s ease-in-out infinite;
}

/* v39: dot bouncing on track (gravity) */
.imggen-loader.v39 {
    width: 36px; height: 32px;
}
.imggen-loader.v39::before {
    content: ''; position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--c-dim);
}
.imggen-loader.v39::after {
    content: ''; position: absolute;
    width: 10px; height: 10px;
    background: var(--c); border-radius: 50%;
    left: 13px; bottom: 2px;
    animation: imggen-bounce-gravity 1s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}
@keyframes imggen-bounce-gravity {
    from { transform: translateY(0); }
    to { transform: translateY(-22px); }
}

/* v40: scattered dots scaling */
.imggen-loader.v40 { width: 36px; height: 36px; }
.imggen-loader.v40 > i {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pulse 1.8s ease-in-out infinite;
}
.imggen-loader.v40 > i:nth-child(1) { top: 4px; left: 8px; animation-delay: 0s; }
.imggen-loader.v40 > i:nth-child(2) { top: 6px; right: 4px; animation-delay: 0.3s; }
.imggen-loader.v40 > i:nth-child(3) { bottom: 8px; left: 4px; animation-delay: 0.6s; }
.imggen-loader.v40 > i:nth-child(4) { bottom: 4px; right: 8px; animation-delay: 0.9s; }
.imggen-loader.v40 > i:nth-child(5) { top: 50%; left: 50%; margin: -3px 0 0 -3px; animation-delay: 1.2s; }

/* v41: 4 dots rotating square */
.imggen-loader.v41 {
    width: 32px; height: 32px;
    animation: imggen-spin 2s linear infinite;
}
.imggen-loader.v41::before {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    background: var(--c); border-radius: 50%;
    top: 0; left: 0;
    box-shadow:
        24px 0 0 var(--c),
        24px 24px 0 var(--c),
        0 24px 0 var(--c);
}

/* v42: dot morphing into ring */
.imggen-loader.v42 {
    width: 24px; height: 24px;
    background: var(--c);
    border-radius: 50%;
    animation: imggen-morph-ring 1.5s ease-in-out infinite;
}
@keyframes imggen-morph-ring {
    0%, 100% {
        background: var(--c);
        box-shadow: inset 0 0 0 0 transparent;
        transform: scale(1);
    }
    50% {
        background: transparent;
        box-shadow: inset 0 0 0 4px var(--c);
        transform: scale(1.3);
    }
}

/* v43: pendulum 2 dots */
.imggen-loader.v43 {
    width: 36px; height: 30px;
}
.imggen-loader.v43::before, .imggen-loader.v43::after {
    content: ''; position: absolute;
    top: 50%;
    width: 9px; height: 9px;
    margin-top: -4.5px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pendulum 1.4s ease-in-out infinite;
}
.imggen-loader.v43::before { left: 0; }
.imggen-loader.v43::after { right: 0; animation-delay: -0.7s; }
@keyframes imggen-pendulum {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(15px); opacity: 0.4; }
}

/* v44: cascading dots downward */
.imggen-loader.v44 {
    width: 12px; height: 36px;
}
.imggen-loader.v44 > i {
    position: absolute;
    left: 0; top: 0;
    width: 8px; height: 8px;
    background: var(--c); border-radius: 50%;
    animation: imggen-cascade 1.5s ease-in infinite;
    opacity: 0;
}
.imggen-loader.v44 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v44 > i:nth-child(2) { animation-delay: 0.5s; }
.imggen-loader.v44 > i:nth-child(3) { animation-delay: 1s; }
@keyframes imggen-cascade {
    0% { top: 0; opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { top: 28px; opacity: 0; }
}

/* v45: dot vs ring (independent) */
.imggen-loader.v45 {
    width: 36px; height: 36px;
    border: 2px solid var(--c-dim);
    border-radius: 50%;
}
.imggen-loader.v45::before {
    content: ''; position: absolute;
    inset: 50%; width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--c); border-radius: 50%;
    animation: imggen-pulse 1s ease-in-out infinite;
}

/* v46: zigzag chain of 5 dots */
.imggen-loader.v46 {
    display: flex; align-items: center; gap: 3px;
    width: 44px;
}
.imggen-loader.v46 > i {
    display: block; width: 6px; height: 6px;
    background: var(--c); border-radius: 50%;
    animation: imggen-zigzag-dot 0.8s ease-in-out infinite;
}
.imggen-loader.v46 > i:nth-child(2) { animation-delay: -0.16s; }
.imggen-loader.v46 > i:nth-child(3) { animation-delay: -0.32s; }
.imggen-loader.v46 > i:nth-child(4) { animation-delay: -0.48s; }
.imggen-loader.v46 > i:nth-child(5) { animation-delay: -0.64s; }
@keyframes imggen-zigzag-dot {
    0%, 100% { transform: translateY(-6px); }
    50% { transform: translateY(6px); }
}

/* v47: 5-dot star pulse */
.imggen-loader.v47 {
    width: 4px; height: 4px;
    background: var(--c); border-radius: 50%;
    box-shadow:
        14px -10px 0 var(--c),
        -14px -10px 0 var(--c),
        14px 10px 0 var(--c),
        -14px 10px 0 var(--c);
    animation: imggen-pulse 1.4s ease-in-out infinite;
}

/* v48: dot with trailing fade */
.imggen-loader.v48 {
    width: 36px; height: 12px;
}
.imggen-loader.v48::before {
    content: ''; position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c);
    box-shadow:
        -10px 0 0 rgba(255,255,255,0.5),
        -18px 0 0 rgba(255,255,255,0.25);
    animation: imggen-trail-x 1.2s linear infinite;
}
@keyframes imggen-trail-x {
    0% { left: 0; }
    100% { left: 28px; }
}

/* v49: 4 dots pinwheel */
.imggen-loader.v49 {
    width: 32px; height: 32px;
    animation: imggen-spin 1.8s ease-in-out infinite;
}
.imggen-loader.v49::before {
    content: ''; position: absolute;
    inset: 50%; width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--c); border-radius: 50%;
    box-shadow:
        14px 0 0 var(--c),
        -14px 0 0 var(--c),
        0 14px 0 var(--c),
        0 -14px 0 var(--c);
}

/* v50: explosion of dots */
.imggen-loader.v50 {
    width: 6px; height: 6px;
    background: var(--c); border-radius: 50%;
    animation: imggen-explode 1.4s ease-out infinite;
}
@keyframes imggen-explode {
    0% { box-shadow: 0 0 0 var(--c), 0 0 0 var(--c), 0 0 0 var(--c), 0 0 0 var(--c); transform: scale(1); }
    100% {
        box-shadow:
            16px -16px 0 transparent,
            16px 16px 0 transparent,
            -16px -16px 0 transparent,
            -16px 16px 0 transparent;
        transform: scale(0.4);
    }
}

/* ============== v51..v66: more bars ============== */

/* v51: 8 bars circular (clock-like spinner) */
.imggen-loader.v51 {
    width: 36px; height: 36px;
    animation: imggen-spin 1s steps(8) infinite;
}
.imggen-loader.v51::before {
    content: ''; position: absolute;
    top: 0; left: 50%; margin-left: -2px;
    width: 4px; height: 10px;
    background: var(--c); border-radius: 2px;
    box-shadow:
        14px 4px 0 -1px rgba(255,255,255,0.85),
        16px 14px 0 -1px rgba(255,255,255,0.7),
        14px 24px 0 -1px rgba(255,255,255,0.55),
        0 28px 0 0 rgba(255,255,255,0.4),
        -14px 24px 0 -1px rgba(255,255,255,0.3),
        -16px 14px 0 -1px rgba(255,255,255,0.22),
        -14px 4px 0 -1px rgba(255,255,255,0.18);
}

/* v52: 3x3 bar grid */
.imggen-loader.v52 {
    width: 36px; height: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
}
.imggen-loader.v52 > i {
    background: var(--c); border-radius: 1px;
    animation: imggen-bar-flex 1.2s ease-in-out infinite;
}
.imggen-loader.v52 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v52 > i:nth-child(2) { animation-delay: 0.1s; }
.imggen-loader.v52 > i:nth-child(3) { animation-delay: 0.2s; }
.imggen-loader.v52 > i:nth-child(4) { animation-delay: 0.1s; }
.imggen-loader.v52 > i:nth-child(5) { animation-delay: 0.2s; }
.imggen-loader.v52 > i:nth-child(6) { animation-delay: 0.3s; }
.imggen-loader.v52 > i:nth-child(7) { animation-delay: 0.2s; }
.imggen-loader.v52 > i:nth-child(8) { animation-delay: 0.3s; }
.imggen-loader.v52 > i:nth-child(9) { animation-delay: 0.4s; }

/* v53: thick centered bar oscillating */
.imggen-loader.v53 {
    width: 12px; height: 36px;
    background: var(--c-dim);
    border-radius: 6px;
    overflow: hidden;
}
.imggen-loader.v53::before {
    content: ''; display: block;
    width: 100%; height: 50%;
    background: var(--c);
    border-radius: 6px;
    animation: imggen-osc 1.4s ease-in-out infinite alternate;
}
@keyframes imggen-osc {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

/* v54: split bar with gap */
.imggen-loader.v54 {
    width: 40px; height: 6px;
    display: flex; gap: 4px;
}
.imggen-loader.v54 > i {
    flex: 1;
    height: 100%;
    background: var(--c-dim);
    border-radius: 3px;
    animation: imggen-bar-light 1.4s ease-in-out infinite;
}
.imggen-loader.v54 > i:nth-child(2) { animation-delay: 0.2s; }
.imggen-loader.v54 > i:nth-child(3) { animation-delay: 0.4s; }

/* v55: sine wave bars (5 bars staggered up/down) */
.imggen-loader.v55 {
    display: flex; gap: 3px; align-items: center;
    width: 38px; height: 36px;
}
.imggen-loader.v55 > i {
    display: block; width: 4px; height: 4px;
    background: var(--c); border-radius: 2px;
    animation: imggen-sine 1.2s ease-in-out infinite;
}
.imggen-loader.v55 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v55 > i:nth-child(2) { animation-delay: -0.1s; }
.imggen-loader.v55 > i:nth-child(3) { animation-delay: -0.2s; }
.imggen-loader.v55 > i:nth-child(4) { animation-delay: -0.3s; }
.imggen-loader.v55 > i:nth-child(5) { animation-delay: -0.4s; }
@keyframes imggen-sine {
    0%, 100% { height: 4px; }
    50% { height: 28px; }
}

/* v56: 2 crossing bars (X) */
.imggen-loader.v56 {
    width: 32px; height: 32px;
}
.imggen-loader.v56::before, .imggen-loader.v56::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 4px; margin: -2px 0 0 -15px;
    background: var(--c); border-radius: 2px;
    animation: imggen-rotate 1.4s linear infinite;
}
.imggen-loader.v56::after {
    transform: rotate(90deg);
    animation-direction: reverse;
}

/* v57: stacked horizontal bars filling */
.imggen-loader.v57 {
    width: 36px; height: 30px;
    display: flex; flex-direction: column; gap: 4px; justify-content: space-between;
}
.imggen-loader.v57 > i {
    display: block; width: 0%; height: 6px;
    background: var(--c); border-radius: 3px;
    animation: imggen-fill-bar 1.6s ease-in-out infinite;
}
.imggen-loader.v57 > i:nth-child(2) { animation-delay: 0.15s; }
.imggen-loader.v57 > i:nth-child(3) { animation-delay: 0.3s; }
@keyframes imggen-fill-bar {
    0%, 100% { width: 0%; }
    50% { width: 100%; }
}

/* v58: vertical bars marching */
.imggen-loader.v58 {
    display: flex; gap: 3px; align-items: center;
    width: 36px;
}
.imggen-loader.v58 > i {
    display: block; width: 4px; height: 22px;
    background: var(--c); border-radius: 2px;
    animation: imggen-march 1.2s linear infinite;
}
.imggen-loader.v58 > i:nth-child(2) { animation-delay: -0.4s; }
.imggen-loader.v58 > i:nth-child(3) { animation-delay: -0.8s; }
@keyframes imggen-march {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(8px); opacity: 0.4; }
}

/* v59: tab progress bars (4 bars filling left to right) */
.imggen-loader.v59 {
    display: flex; flex-direction: column; gap: 3px;
    width: 40px; height: 36px;
}
.imggen-loader.v59 > i {
    display: block; height: 6px;
    background: var(--c-dim);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.imggen-loader.v59 > i::before {
    content: ''; position: absolute;
    top: 0; left: 0; height: 100%; width: 50%;
    background: var(--c);
    animation: imggen-tab-fill 1.5s ease-in-out infinite;
}
.imggen-loader.v59 > i:nth-child(2)::before { animation-delay: 0.15s; }
.imggen-loader.v59 > i:nth-child(3)::before { animation-delay: 0.3s; }
.imggen-loader.v59 > i:nth-child(4)::before { animation-delay: 0.45s; }
@keyframes imggen-tab-fill {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* v60: snake bar */
.imggen-loader.v60 {
    width: 40px; height: 6px;
    background: var(--c-dim);
    border-radius: 3px;
    overflow: hidden;
}
.imggen-loader.v60::before {
    content: ''; display: block;
    width: 25%; height: 100%;
    background: var(--c);
    border-radius: 3px;
    animation: imggen-snake 1.2s ease-in-out infinite;
}
@keyframes imggen-snake {
    0% { width: 0%; transform: translateX(0); }
    50% { width: 100%; transform: translateX(0); }
    100% { width: 0%; transform: translateX(400%); }
}

/* v61: bar growing into a ring */
.imggen-loader.v61 {
    width: 6px; height: 36px;
    background: var(--c);
    border-radius: 3px;
    animation: imggen-bar-to-ring 1.5s ease-in-out infinite;
}
@keyframes imggen-bar-to-ring {
    0%, 100% { width: 6px; height: 36px; border-radius: 3px; }
    50% { width: 30px; height: 30px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px var(--c); }
}

/* v62: 4 bars rotating square */
.imggen-loader.v62 {
    width: 30px; height: 30px;
    animation: imggen-spin 2s linear infinite;
}
.imggen-loader.v62::before, .imggen-loader.v62::after {
    content: ''; position: absolute;
    background: var(--c); border-radius: 2px;
}
.imggen-loader.v62::before {
    width: 30px; height: 4px;
    top: 50%; left: 0; margin-top: -2px;
}
.imggen-loader.v62::after {
    width: 4px; height: 30px;
    top: 0; left: 50%; margin-left: -2px;
}

/* v63: short bar bouncing in container */
.imggen-loader.v63 {
    width: 36px; height: 14px;
    border: 2px solid var(--c); border-radius: 7px;
    overflow: hidden;
}
.imggen-loader.v63::before {
    content: ''; position: absolute;
    top: 2px; left: 2px;
    width: 30%; height: calc(100% - 4px);
    background: var(--c); border-radius: 5px;
    animation: imggen-bar-pong 1.5s ease-in-out infinite alternate;
}
@keyframes imggen-bar-pong {
    from { left: 2px; }
    to { left: calc(100% - 30% - 2px); }
}

/* v64: bar with shrinking middle */
.imggen-loader.v64 {
    width: 40px; height: 8px;
    background: var(--c);
    border-radius: 4px;
    overflow: hidden;
}
.imggen-loader.v64::before {
    content: ''; display: block;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--c) 0%, var(--c-dim) 50%, var(--c) 100%);
    background-size: 200% 100%;
    animation: imggen-shimmer-bar 1.5s linear infinite;
}
@keyframes imggen-shimmer-bar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* v65: vertical lines fading */
.imggen-loader.v65 {
    display: flex; gap: 4px; align-items: center;
    width: 36px;
}
.imggen-loader.v65 > i {
    display: block; width: 3px; height: 30px;
    background: var(--c); border-radius: 2px;
    animation: imggen-fade 1.4s ease-in-out infinite;
}
.imggen-loader.v65 > i:nth-child(1) { animation-delay: 0s; }
.imggen-loader.v65 > i:nth-child(2) { animation-delay: 0.18s; }
.imggen-loader.v65 > i:nth-child(3) { animation-delay: 0.36s; }
.imggen-loader.v65 > i:nth-child(4) { animation-delay: 0.54s; }
@keyframes imggen-fade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* v66: thick-then-thin bar */
.imggen-loader.v66 {
    width: 30px; height: 30px;
    background: var(--c);
    border-radius: 4px;
    animation: imggen-morph-shape 1.5s ease-in-out infinite alternate;
}
@keyframes imggen-morph-shape {
    0% { width: 30px; height: 4px; }
    100% { width: 4px; height: 30px; }
}

/* ============== v67..v79: more combos ============== */

/* v67: dot orbiting around bar */
.imggen-loader.v67 {
    width: 40px; height: 40px;
}
.imggen-loader.v67::before {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 4px;
    margin: -2px 0 0 -12px;
    background: var(--c); border-radius: 2px;
}
.imggen-loader.v67::after {
    content: ''; position: absolute;
    top: 0; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    background: var(--c); border-radius: 50%;
    animation: imggen-spin 1.4s linear infinite;
    transform-origin: 4px 20px;
}

/* v68: progress line with leading dot */
.imggen-loader.v68 {
    width: 44px; height: 12px;
}
.imggen-loader.v68::before {
    content: ''; position: absolute;
    top: 50%; left: 0; right: 0;
    height: 2px;
    margin-top: -1px;
    background: var(--c-dim);
}
.imggen-loader.v68::after {
    content: ''; position: absolute;
    top: 50%; left: 0;
    width: 12px; height: 12px;
    margin-top: -6px;
    background: var(--c); border-radius: 50%;
    animation: imggen-track 1.4s ease-in-out infinite;
}
@keyframes imggen-track {
    0%, 100% { left: 0; transform: scale(1); }
    50% { left: calc(100% - 12px); transform: scale(1.2); }
}

/* v69: bouncing balls in container */
.imggen-loader.v69 {
    width: 40px; height: 30px;
    border-bottom: 2px solid var(--c-dim);
}
.imggen-loader.v69::before, .imggen-loader.v69::after {
    content: ''; position: absolute;
    bottom: 2px;
    width: 8px; height: 8px;
    background: var(--c); border-radius: 50%;
    animation: imggen-bounce-ball 1s ease-in-out infinite alternate;
}
.imggen-loader.v69::before { left: 4px; animation-delay: -0.5s; }
.imggen-loader.v69::after { right: 4px; }
@keyframes imggen-bounce-ball {
    from { transform: translateY(0); }
    to { transform: translateY(-18px); }
}

/* v70: bar with dots dropping out the bottom */
.imggen-loader.v70 {
    width: 28px; height: 36px;
}
.imggen-loader.v70::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--c); border-radius: 2px;
}
.imggen-loader.v70::after {
    content: ''; position: absolute;
    top: 8px; left: 50%; margin-left: -4px;
    width: 8px; height: 8px;
    background: var(--c); border-radius: 50%;
    animation: imggen-drop 1.2s ease-in infinite;
    opacity: 0;
}
@keyframes imggen-drop {
    0% { top: 8px; opacity: 1; }
    80% { top: 30px; opacity: 0.5; }
    100% { top: 36px; opacity: 0; }
}

/* v71: cycle dot↔bar */
.imggen-loader.v71 {
    width: 30px; height: 8px;
    background: var(--c); border-radius: 4px;
    animation: imggen-cycle-shape 1.4s ease-in-out infinite alternate;
}
@keyframes imggen-cycle-shape {
    0% { width: 30px; height: 8px; border-radius: 4px; }
    100% { width: 14px; height: 14px; border-radius: 50%; }
}

/* v72: dots forming bar */
.imggen-loader.v72 {
    display: flex; gap: 1px; align-items: center; justify-content: center;
    width: 38px; height: 8px;
}
.imggen-loader.v72 > i {
    display: block; width: 4px; height: 4px;
    background: var(--c); border-radius: 50%;
    animation: imggen-merge 1.4s ease-in-out infinite alternate;
}
.imggen-loader.v72 > i:nth-child(2) { animation-delay: 0.1s; }
.imggen-loader.v72 > i:nth-child(3) { animation-delay: 0.2s; }
.imggen-loader.v72 > i:nth-child(4) { animation-delay: 0.3s; }
.imggen-loader.v72 > i:nth-child(5) { animation-delay: 0.4s; }
@keyframes imggen-merge {
    from { transform: scale(1); }
    to { transform: scale(1.6) translateX(0); border-radius: 0; }
}

/* v73: rotating dot cluster (3 dots) */
.imggen-loader.v73 {
    width: 30px; height: 30px;
    animation: imggen-spin 1.5s linear infinite;
}
.imggen-loader.v73::before {
    content: ''; position: absolute;
    top: 0; left: 50%;
    width: 6px; height: 6px;
    margin-left: -3px;
    background: var(--c); border-radius: 50%;
    box-shadow: 10px 22px 0 var(--c), -10px 22px 0 var(--c);
}

/* v74: bar with sliding dot inside */
.imggen-loader.v74 {
    width: 44px; height: 12px;
    background: var(--c-dim);
    border-radius: 6px;
    overflow: hidden;
}
.imggen-loader.v74::before {
    content: ''; position: absolute;
    top: 1px; bottom: 1px;
    aspect-ratio: 1;
    background: var(--c); border-radius: 50%;
    animation: imggen-slide-inside 1.5s ease-in-out infinite alternate;
}
@keyframes imggen-slide-inside {
    from { left: 1px; }
    to { left: calc(100% - 12px); }
}

/* v75: clock face — 12 minute marks + center dot */
.imggen-loader.v75 {
    width: 32px; height: 32px;
    border: 1px solid var(--c-dim); border-radius: 50%;
    animation: imggen-spin 6s linear infinite;
}
.imggen-loader.v75::before {
    content: ''; position: absolute;
    top: 2px; left: 50%; margin-left: -1px;
    width: 2px; height: 6px;
    background: var(--c);
    box-shadow:
        9px 7px 0 -1px var(--c-dim),
        13px 13px 0 -1px var(--c-dim),
        9px 19px 0 -1px var(--c-dim),
        0 22px 0 -1px var(--c),
        -9px 19px 0 -1px var(--c-dim),
        -13px 13px 0 -1px var(--c-dim),
        -9px 7px 0 -1px var(--c-dim);
}
.imggen-loader.v75::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--c); border-radius: 50%;
}

/* v76: ring of fading dots (5 dots in a circle) */
.imggen-loader.v76 {
    width: 32px; height: 32px;
    animation: imggen-spin 2s linear infinite;
}
.imggen-loader.v76::before {
    content: ''; position: absolute;
    top: 0; left: 50%;
    width: 6px; height: 6px;
    margin-left: -3px;
    background: var(--c); border-radius: 50%;
    box-shadow:
        12px 8px 0 rgba(255,255,255,0.7),
        7px 22px 0 rgba(255,255,255,0.5),
        -7px 22px 0 rgba(255,255,255,0.3),
        -12px 8px 0 rgba(255,255,255,0.18);
}

/* v77: spinner with dot in middle */
.imggen-loader.v77 {
    width: 36px; height: 36px;
    border: 3px solid var(--c-dim);
    border-top-color: var(--c);
    border-radius: 50%;
    animation: imggen-spin 0.9s linear infinite;
}
.imggen-loader.v77::before {
    content: ''; position: absolute;
    inset: 50%; width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--c); border-radius: 50%;
}

/* v78: pulsing bar + outer ring */
.imggen-loader.v78 {
    width: 36px; height: 36px;
    border: 2px solid var(--c-dim);
    border-radius: 50%;
}
.imggen-loader.v78::before {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 4px;
    margin: -2px 0 0 -9px;
    background: var(--c); border-radius: 2px;
    animation: imggen-bar-pulse 1.2s ease-in-out infinite;
}
@keyframes imggen-bar-pulse {
    0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* v79: dot constellation cycling */
.imggen-loader.v79 {
    width: 36px; height: 36px;
}
.imggen-loader.v79 > i {
    position: absolute; width: 6px; height: 6px;
    background: var(--c); border-radius: 50%;
    animation: imggen-fade 1.6s ease-in-out infinite;
}
.imggen-loader.v79 > i:nth-child(1) { top: 0; left: 50%; margin-left: -3px; animation-delay: 0s; }
.imggen-loader.v79 > i:nth-child(2) { top: 25%; right: 0; animation-delay: 0.2s; }
.imggen-loader.v79 > i:nth-child(3) { bottom: 25%; right: 0; animation-delay: 0.4s; }
.imggen-loader.v79 > i:nth-child(4) { bottom: 0; left: 50%; margin-left: -3px; animation-delay: 0.6s; }
.imggen-loader.v79 > i:nth-child(5) { bottom: 25%; left: 0; animation-delay: 0.8s; }
.imggen-loader.v79 > i:nth-child(6) { top: 25%; left: 0; animation-delay: 1s; }

/* Keyframes for OUTER loader rotation (preserves the centering translate AND the --scale) */
@keyframes imggen-spin {
    0% { transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(360deg); }
}

/* Keyframes for INNER element rotation (no translate — element handles its own positioning) */
@keyframes imggen-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
