/* ========================
   СТРАНИЦА ЗАГРУЗКИ — LOTTI
   ======================== */

/* Сцена (занимает оставшееся пространство между хедером и CTA) */
.dl-scene {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фоновый градиент — тот же розово-лавандовый, что на главной */
.dl-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFEDEB, #EFE0F7);
    z-index: 0;
}

/* Пузырьки */
.dl-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.dl-bubbles .bubble {
    animation: bubbleRise linear infinite;
}
.dl-bubbles .bubble-1 { width: 64px; height: 64px; left:  8%; bottom: -80px; animation-duration: 6.0s; animation-delay:  0.0s; }
.dl-bubbles .bubble-2 { width: 34px; height: 34px; left: 82%; bottom: -50px; animation-duration: 5.0s; animation-delay: -1.2s; }
.dl-bubbles .bubble-3 { width: 48px; height: 48px; left: 55%; bottom: -65px; animation-duration: 7.0s; animation-delay: -0.4s; }

/* Основной контент сцены */
.dl-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: calc(env(safe-area-inset-top) + 72px) 32px 32px;
    gap: 0;
    width: 100%;
}

/* Иллюстрация — app icon с свечением и анимацией */
.dl-illustration {
    position: relative;
    width: min(180px, 44vw);
    height: min(180px, 44vw);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 24px;
}

.dl-icon-glow {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,181,200,0.38) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.5s ease 0.05s, transform 0.55s cubic-bezier(.34,1.56,.64,1) 0.05s;
}
.dl-scene.is-ready .dl-icon-glow {
    opacity: 1;
    transform: scale(1);
}

.dl-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 22%;
    box-shadow: 0 12px 40px rgba(97,56,81,0.18), 0 4px 12px rgba(97,56,81,0.10);
    opacity: 0;
    transform: scale(0.1);
    transition: opacity 0.35s ease 0.05s, transform 0.55s cubic-bezier(.34,1.56,.64,1) 0.05s;
    position: relative;
    z-index: 1;
}
.dl-scene.is-ready .dl-icon {
    opacity: 1;
    transform: scale(1);
}
/* Idle bob — reuses keyframes from home.css */
.dl-icon.is-bobbing {
    animation: imgBob 3.0s ease-in-out infinite, imgTilt 3.9s ease-in-out infinite;
}

/* Название и подзаголовок */
.dl-title {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    color: var(--lotti-text-title, #613851);
    margin: 0 0 10px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease 0.30s, transform 0.50s cubic-bezier(.34,1.06,.64,1) 0.30s;
}
.dl-scene.is-ready .dl-title {
    opacity: 1;
    transform: translateY(0);
}

.dl-subtitle {
    font-size: clamp(13px, 3.8vw, 15px);
    font-weight: 500;
    color: var(--lotti-text-sub, #947389);
    margin: 0;
    line-height: 1.6;
    max-width: 280px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.42s, transform 0.50s cubic-bezier(.34,1.06,.64,1) 0.42s;
}
.dl-scene.is-ready .dl-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Бейджи платформ под подзаголовком */
.dl-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.4s ease 0.52s;
}
.dl-scene.is-ready .dl-badges {
    opacity: 1;
}
.dl-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--lotti-text-sub, #947389);
    background: rgba(148,115,137,0.10);
    border-radius: 20px;
    padding: 4px 10px;
}

/* Кнопка скачать — первичная (JS подставляет) */
#dl-store-area .btn-primary {
    text-decoration: none;
    font-size: 17px;
}
