* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    background: #ffffff;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── Centered loading card ── */
.loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ── Hero image ── */
.loading-image {
    display: block;
    max-width: 100%;   /* never overflow on small screens */
    width: auto;       /* native width */
    height: auto;
}

/* ── Title / quote line ── */
.loading-title {
    margin-top: 10px;
    color: #333;
    font-size: 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    letter-spacing: 0.03em;
    text-align: center;
}

/* ── Caption / legend ── */
.loading-text {
    margin-top: 14px;
    color: #444;
    font-size: 13px;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ── Progress bar container ── */
.progress-track {
    margin-top: 28px;
    width: min(480px, 90vw);
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* ── Animated fill ── */
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #1a1a1a;
    border-radius: 2px;
    transition: width 0.25s ease;
}

/* ── High-DPI / retina screens (typically mobile) ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .loading-image {
        width: min(90vw, 600px);   /* scale up from native; still capped on large screens */
    }

    .loading-title {
        font-size: 20px;
    }

    .loading-text {
        font-size: 18px;
    }

    .progress-track {
        width: min(560px, 90vw);
        height: 4px;
    }
}

/* ── Tick marks that divide bar into 6 equal segments ── */
.progress-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent,
            transparent calc(100% / 6 - 1px),
            #ffffff calc(100% / 6 - 1px),
            #ffffff calc(100% / 6)
        );
    pointer-events: none;
}
