/* ============================================
   PRELOADER С МАСКОТОМ — ЯХК
   assets/css/ui/preloader.css
   ============================================ */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}
#preloader.is-hidden {
    display: none !important;
    pointer-events: none;
}

/* ── Декоративные кольца ── */
.pl-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 117, 24, 0.10);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}
.pl-ring--1 { width: 480px; height: 480px; }
.pl-ring--2 { width: 320px; height: 320px; border-color: rgba(255,117,24,0.15); }
.pl-ring--3 { width: 180px; height: 180px; border-color: rgba(255,117,24,0.22); }

/* ── Свечение за маскотом ── */
.pl-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,117,24,0.10) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

/* ── Частицы ── */
.spark {
    position: absolute;
    border-radius: 50%;
    background: #FF7518;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    will-change: transform, opacity;
}

/* ── Маскот ── */
.pl-mascot {
    position: relative;
    z-index: 2;
    width: 190px;
    height: 190px;
    margin-bottom: 36px;
    opacity: 0;
    will-change: transform, opacity;
}
.pl-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 24px 32px rgba(255,117,24,0.20))
            drop-shadow(0 8px 12px rgba(0,0,0,0.10));
    will-change: transform;
}

/* ── Надпись ── */
.pl-label {
    font-family: var(--font-main, 'Inter', system-ui, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 14px;
    opacity: 0;
    z-index: 2;
}

/* ── Прогресс-трек ── */
.pl-track {
    position: relative;
    width: 200px;
    height: 3px;
    background: #E5E7EB;
    border-radius: 99px;
    overflow: visible;
    opacity: 0;
    z-index: 2;
}
.pl-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #FF7518 0%, #F54900 100%);
    border-radius: 99px;
    transition: none;
}

/* ── Пульсирующая точка ── */
.pl-dot {
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #F54900;
    display: block;
}
@keyframes pl-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245,73,0,.18); }
    50%       { box-shadow: 0 0 0 9px rgba(245,73,0,0);   }
}
.pl-dot { animation: pl-dot-pulse 1.1s ease-in-out infinite; }

/* ── Процент ── */
.pl-percent {
    margin-top: 12px;
    font-family: var(--font-main, 'Inter', system-ui, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #FF7518;
    opacity: 0;
    z-index: 2;
    font-variant-numeric: tabular-nums;
}

/* ── Финальная шторка ── */
.pl-curtain {
    position: absolute;
    inset: 0;
    background: #FFFFFF;
    transform: scaleY(0);
    transform-origin: top center;
    z-index: 10;
}

