﻿#wpldr-overlay,
.wpldr-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wpldr-bg, #ffffff);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.36s ease, visibility 0.36s ease;
}

.wpldr-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wpldr-inner {
    width: min(82vw, 400px);
    text-align: center;
    animation: wpldr-fade 0.42s ease both;
}

.wpldr-inner.wpldr-inner-full {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

.wpldr-stage {
    position: fixed;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wpldr-animation-gap, 12px);
    z-index: 2;
    transform: translateX(-50%);
}

.wpldr-logo-top .wpldr-stage {
    top: 10vh;
}

.wpldr-logo-center .wpldr-stage {
    top: 50%;
    transform: translate(-50%, -50%);
}

.wpldr-logo-bottom .wpldr-stage {
    bottom: 10vh;
}

.wpldr-logo-wrap {
    margin: 0;
    animation: wpldr-rise 0.48s ease both;
}

.wpldr-logo {
    display: inline-block;
    width: 100%;
    max-width: var(--wpldr-logo-max, 120px);
    height: auto;
    animation: wpldr-scale 0.44s ease both;
}

.wpldr-bar {
    position: relative;
    width: 100%;
    height: var(--wpldr-bar-height, 4px);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.wpldr-bar-full .wpldr-bar {
    width: 100vw;
    border-radius: 0;
}

.wpldr-bar-top .wpldr-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: flex-start;
    width: 100%;
    max-width: none;
    padding-top: 0;
}

.wpldr-bar-top .wpldr-bar {
    order: -3;
}

.wpldr-bar-bottom .wpldr-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    align-self: flex-end;
    width: 100%;
    max-width: none;
    padding-bottom: 0;
}

.wpldr-bar-bottom .wpldr-bar {
    order: 3;
}

.wpldr-bar-bottom .wpldr-percent {
    order: 4;
}

.wpldr-indicator-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.14);
    border-top-color: var(--wpldr-bar-color, #5a065c);
    animation: wpldr-spin 0.82s linear infinite;
}

.wpldr-indicator-spokes {
    position: relative;
    width: 38px;
    height: 38px;
}

.wpldr-indicator-spokes span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 13px;
    margin-left: -1.5px;
    margin-top: -19px;
    border-radius: 999px;
    background: var(--wpldr-bar-color, #5a065c);
    transform-origin: center 19px;
    animation: wpldr-spoke-fade 1s linear infinite;
    opacity: 0.18;
}

.wpldr-indicator-spokes span:nth-child(1) { transform: rotate(0deg); animation-delay: -0.916s; }
.wpldr-indicator-spokes span:nth-child(2) { transform: rotate(30deg); animation-delay: -0.833s; }
.wpldr-indicator-spokes span:nth-child(3) { transform: rotate(60deg); animation-delay: -0.75s; }
.wpldr-indicator-spokes span:nth-child(4) { transform: rotate(90deg); animation-delay: -0.666s; }
.wpldr-indicator-spokes span:nth-child(5) { transform: rotate(120deg); animation-delay: -0.583s; }
.wpldr-indicator-spokes span:nth-child(6) { transform: rotate(150deg); animation-delay: -0.5s; }
.wpldr-indicator-spokes span:nth-child(7) { transform: rotate(180deg); animation-delay: -0.416s; }
.wpldr-indicator-spokes span:nth-child(8) { transform: rotate(210deg); animation-delay: -0.333s; }
.wpldr-indicator-spokes span:nth-child(9) { transform: rotate(240deg); animation-delay: -0.25s; }
.wpldr-indicator-spokes span:nth-child(10) { transform: rotate(270deg); animation-delay: -0.166s; }
.wpldr-indicator-spokes span:nth-child(11) { transform: rotate(300deg); animation-delay: -0.083s; }
.wpldr-indicator-spokes span:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

.wpldr-indicator-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.14);
    border-right-color: var(--wpldr-bar-color, #5a065c);
    animation: wpldr-ring-pulse 1.15s ease-in-out infinite;
}

.wpldr-indicator-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wpldr-bar-color, #5a065c);
    animation: wpldr-pulse-dot 1s ease-in-out infinite;
}

.wpldr-indicator-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 16px;
}

.wpldr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wpldr-bar-color, #5a065c);
    animation: wpldr-dot 1s ease-in-out infinite;
}

.wpldr-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.wpldr-dot:nth-child(3) {
    animation-delay: 0.24s;
}

.wpldr-indicator-fade-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 16px;
}

.wpldr-indicator-fade-dots .wpldr-dot {
    animation: wpldr-fade-dot 1s linear infinite;
    opacity: 0.2;
}

.wpldr-indicator-fade-dots .wpldr-dot:nth-child(2) {
    animation-delay: 0.16s;
}

.wpldr-indicator-fade-dots .wpldr-dot:nth-child(3) {
    animation-delay: 0.32s;
}

.wpldr-indicator-bars,
.wpldr-indicator-equalizer {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
}

.wpldr-indicator-bars {
    gap: 5px;
    height: 34px;
}

.wpldr-indicator-bars span {
    width: 7px;
    height: 24px;
    border-radius: 999px;
    background: var(--wpldr-bar-color, #5a065c);
    animation: wpldr-bar-scale 0.9s ease-in-out infinite;
}

.wpldr-indicator-bars span:nth-child(2) {
    animation-delay: 0.12s;
}

.wpldr-indicator-bars span:nth-child(3) {
    animation-delay: 0.24s;
}

.wpldr-indicator-equalizer {
    gap: 4px;
    height: 34px;
}

.wpldr-indicator-equalizer span {
    width: 6px;
    height: 12px;
    border-radius: 999px;
    background: var(--wpldr-bar-color, #5a065c);
    animation: wpldr-equalizer 1s ease-in-out infinite;
}

.wpldr-indicator-equalizer span:nth-child(2) { animation-delay: 0.08s; }
.wpldr-indicator-equalizer span:nth-child(3) { animation-delay: 0.16s; }
.wpldr-indicator-equalizer span:nth-child(4) { animation-delay: 0.24s; }
.wpldr-indicator-equalizer span:nth-child(5) { animation-delay: 0.32s; }

.wpldr-indicator-loading-text,
.wpldr-indicator-loading-text-dots {
    color: rgba(0, 0, 0, 0.78);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.wpldr-indicator-loading-text {
    animation: wpldr-text-pulse 1.2s ease-in-out infinite;
}

.wpldr-loading-word {
    display: inline-block;
}

.wpldr-loading-dot {
    display: inline-block;
    width: 0.45em;
    text-align: center;
    animation: wpldr-dot-reveal 1.2s steps(1, end) infinite;
    opacity: 0.2;
}

.wpldr-loading-dot:nth-child(2) { animation-delay: 0s; }
.wpldr-loading-dot:nth-child(3) { animation-delay: 0.2s; }
.wpldr-loading-dot:nth-child(4) { animation-delay: 0.4s; }

.wpldr-indicator-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wpldr-indicator-custom img {
    max-width: min(var(--wpldr-animation-size, 96px), 28vw);
    max-height: var(--wpldr-animation-size, 96px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.wpldr-effect-spin img {
    animation: wpldr-spin 1.2s linear infinite;
}

.wpldr-effect-wave img {
    transform-origin: center bottom;
    animation: wpldr-wave 1.6s ease-in-out infinite;
}

.wpldr-effect-pulse img {
    animation: wpldr-pulse-image 1.15s ease-in-out infinite;
}

.wpldr-effect-float img {
    animation: wpldr-float 1.8s ease-in-out infinite;
}

.wpldr-effect-bounce img {
    animation: wpldr-bounce 1.1s ease-in-out infinite;
}

.wpldr-effect-shake img {
    animation: wpldr-shake 0.9s ease-in-out infinite;
}

.wpldr-effect-orbit img {
    animation: wpldr-orbit 2.2s linear infinite;
}

.wpldr-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--wpldr-bar-color, #5a065c);
    transform-origin: left center;
    transition: width 0.16s linear;
}

.wpldr-percent {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.65);
    font-variant-numeric: tabular-nums;
    animation: wpldr-fade 0.5s ease both;
}

.wpldr-credit {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 3;
    padding: 0 14px;
    color: var(--wpldr-credit-color, #666666);
    font-size: var(--wpldr-credit-size, 12px);
    line-height: 1.4;
    opacity: 0.92;
    animation: wpldr-fade 0.45s ease both;
}

.wpldr-credit-left {
    text-align: left;
}

.wpldr-credit-center {
    text-align: center;
}

.wpldr-credit-right {
    text-align: right;
}

.wpldr-credit-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes wpldr-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wpldr-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wpldr-scale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wpldr-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wpldr-dot {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes wpldr-spoke-fade {
    0%,
    39%,
    100% {
        opacity: 0.16;
    }
    40% {
        opacity: 1;
    }
}

@keyframes wpldr-ring-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wpldr-pulse-dot {
    0%,
    100% {
        transform: scale(0.72);
        opacity: 0.4;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wpldr-fade-dot {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes wpldr-bar-scale {
    0%,
    100% {
        transform: scaleY(0.45);
        opacity: 0.45;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes wpldr-equalizer {
    0%,
    100% {
        height: 10px;
        opacity: 0.4;
    }
    50% {
        height: 34px;
        opacity: 1;
    }
}

@keyframes wpldr-text-pulse {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 1;
    }
}

@keyframes wpldr-dot-reveal {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes wpldr-wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes wpldr-pulse-image {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wpldr-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes wpldr-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes wpldr-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-5px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
}

@keyframes wpldr-orbit {
    0% {
        transform: rotate(0deg) translateX(10px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(10px) rotate(-360deg);
    }
}

@media (max-width: 640px) {
    .wpldr-inner {
        width: min(88vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #wpldr-overlay,
    .wpldr-overlay,
    .wpldr-progress,
    .wpldr-inner,
    .wpldr-logo-wrap,
    .wpldr-logo,
    .wpldr-percent,
    .wpldr-credit,
    .wpldr-indicator-spinner,
    .wpldr-indicator-spokes span,
    .wpldr-indicator-ring,
    .wpldr-indicator-pulse-dot,
    .wpldr-dot,
    .wpldr-indicator-bars span,
    .wpldr-indicator-equalizer span,
    .wpldr-indicator-loading-text,
    .wpldr-loading-dot,
    .wpldr-indicator-custom img {
        animation: none !important;
        transition: none !important;
    }
}
