.loading-screen-wrapper {
    z-index: 100000;
    position: fixed;
    top: 0;
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    display: block;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ── Pre-bootstrap logo stage ─────────────────────────────────────── */
.pre-splash-logo-stage {
    position: relative;
    width: 120px;
    height: 120px;
    animation: preSplashLogoIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pre-splash-icon {
    position: absolute;
    inset: 12px;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(176, 138, 128, 0.35));
}

.pre-splash-ring {
    position: absolute;
    inset: 0;
    width: 120px;
    height: 120px;
    overflow: visible;
}

.pre-splash-ring-spin {
    transform-origin: center;
    animation: preSplashRingSpin 1.6s linear infinite;
}

@keyframes preSplashLogoIn {
    from { opacity: 0; transform: scale(0.5) rotate(-8deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes preSplashRingSpin {
    from { transform: rotate(-90deg); }
    to   { transform: rotate(270deg); }
}

@media (max-width: 480px) {
    .pre-splash-logo-stage,
    .pre-splash-ring { width: 100px; height: 100px; }
    .pre-splash-icon { inset: 10px; width: 80px; height: 80px; }
}

.loading-bar {
    display: inline-block;
    width: 13px;
    height: 28px;
    border-radius: 3px;
    border-width: 1px;
    border-style: solid;
    border-color: white;
    animation: loading 1s ease-in-out infinite;
    margin: 2px;
}
.loading-bar:nth-child(1) {
    background-color: rgba(65, 39, 39, 0.9);
    animation-delay: 0s;
}
.loading-bar:nth-child(2) {
    background-color: rgba(65, 39, 39, 0.9);
    animation-delay: 0.09s;
}
.loading-bar:nth-child(3) {
    background-color: rgba(65, 39, 39, 0.9);
    animation-delay: 0.18s;
}
.loading-bar:nth-child(4) {
    background-color: rgba(65, 39, 39, 0.9);
    animation-delay: 0.27s;
}

@keyframes loading {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1, 2.2);
    }
    40% {
        transform: scale(1);
    }
}
