.berpa-loading-overlay, #berpa-launch {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: rgb(255 255 255 / 15%);
}
.dark .berpa-loading-overlay, .dark #berpa-launch { background: rgb(17 24 39 / 15%); }
.berpa-loading-content {
    display: flex;
    width: min(100%, 420px);
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    text-align: center;
    font-family: Inter, system-ui, sans-serif;
}
.berpa-loading-shimmer {
    margin: 0;
    color: #1546e8;
    font-size: clamp(20px, 4.8vw, 26px);
    line-height: 1.4;
    font-weight: 600;
    background: linear-gradient(100deg, #1546e8 35%, #b7ccff 50%, #1546e8 65%);
    background-size: 250% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: berpa-text-shimmer 3s linear infinite;
}
#berpa-launch {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    place-items: center;
    padding: 20px;
    color: #172033;
    transition: opacity 220ms ease-out;
}
.dark #berpa-launch { color: #f8fafc; }
#berpa-launch-logo { width: 360px; max-width: 100%; }
#berpa-launch img { display: block; width: 100%; height: auto; object-fit: contain; }
#berpa-launch-slow { font-size: 12px; }
#berpa-launch-slow a { color: inherit; font-weight: 600; }
#berpa-launch.branded img { animation: berpa-launch-in 650ms ease-out both; }
#berpa-launch.leaving { opacity: 0; pointer-events: none; }
#berpa-launch[hidden], #berpa-launch-slow[hidden] { display: none; }
@keyframes berpa-text-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes berpa-launch-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
    #berpa-launch, #berpa-launch img { animation: none; transition: none; }
    .berpa-loading-shimmer { animation: none; background: none; -webkit-text-fill-color: currentColor; }
}

.berpa-page-loading { animation: berpa-overlay-in 180ms ease-out; transition: opacity 220ms ease-out; }
.berpa-page-loading[data-leaving] { opacity: 0; pointer-events: none; animation: none; }
@keyframes berpa-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .berpa-page-loading { animation: none; transition: none; } }
