.app-cache-sync-page {
    height: 100vh;
    margin: 0;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-cache-sync-frame {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-image: var(--app-cache-welcome-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 4px 24px rgba(155, 92, 255, 0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 48px;
}

@media (min-width: 621px) {
    .app-cache-sync-frame {
        max-width: 620px;
        margin: 0 auto;
        max-height: 100%;
    }
}

@media (max-width: 620px) {
    .app-cache-sync-frame {
        background-size: contain;
    }
}

.app-cache-sync-panel {
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    padding: 28px 22px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    margin-bottom: 28px;
}

.app-cache-sync-brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #558b2f;
    margin-bottom: 10px;
}

.app-cache-sync-title {
    font-family: 'Luckiest Guy', cursive, Arial, sans-serif;
    font-size: clamp(28px, 6vw, 38px);
    line-height: 1.05;
    color: #FFD43B;
    text-shadow:
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000;
    margin: 0 0 8px;
}

.app-cache-sync-subtitle {
    margin: 0 0 14px;
    color: #444;
    font-size: 15px;
    line-height: 1.45;
}

.app-cache-sync-version {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-cache-sync-version-old {
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.app-cache-sync-progress-wrap {
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 18px;
}

.app-cache-sync-progress-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 27px;
    position: relative;
}

.app-cache-sync-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg,
        rgba(0, 43, 127, 1) 0%,
        rgba(0, 43, 127, 1) 32%,
        rgba(252, 209, 22, 1) 64%,
        rgba(206, 17, 38, 1) 100%);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.25s ease;
    border-radius: 27px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.35);
}

.app-cache-sync-progress-tip {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    height: 18px;
    width: 18px;
    background: linear-gradient(45deg, #fff4b0, #ffd700);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: left 0.25s ease, opacity 0.2s ease;
}

.app-cache-sync-progress-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Luckiest Guy', cursive, Arial, sans-serif;
    font-size: clamp(28px, 5vw, 40px);
    color: #FFD43B;
    text-shadow:
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000;
    white-space: nowrap;
}
