/* Elite Randomizer Preloader */
.elite-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #EBEBEB;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
    will-change: opacity, transform;
}

#loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Large faded watermark G */
.loader-watermark {
    position: absolute;
    top: 50%;
    left: calc(50% - 65px); /* Shift left for optical centering of italic text */
    transform: translate(-50%, -50%);
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: clamp(30rem, 50vw, 60rem);
    font-weight: 800;
    font-style: italic;
    color: rgba(0, 0, 0, 0.015); /* Halve the opacity for softer feel */
    z-index: 0;
    user-select: none;
    line-height: 1;
}

@media (max-width: 768px) {
    .loader-watermark {
        left: calc(50% - 30px);
    }
}

.loader-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.randomizer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.8s ease;
    gap: 0;
}

/* --- Shared shuffle line styling --- */
.shuffle-line {
    display: block;
    font-family: 'Saira Semi Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: #707070;
    line-height: 1.1;
    white-space: nowrap;
    transform: skewX(-6deg);
}

/* Line 1: "MANJUNATH" - small, wide letter-spacing */
.shuffle-small {
    font-size: clamp(0.7rem, 1.8vw, 1.2rem);
    letter-spacing: 0.45em;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

/* Line 2: "GRAVITY" - massive, the hero word */
.shuffle-main {
    font-size: clamp(3rem, 10vw, 7.5rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    /* Slot machine fade overlay - tightened to only show the center line */
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 30%, black 70%, transparent 90%);
    mask-image: linear-gradient(to bottom, transparent 10%, black 30%, black 70%, transparent 90%);
}

/* Line 3: "ELITE FITNESS STUDIO" - medium, wide spacing */
.shuffle-sub {
    font-size: clamp(0.9rem, 2.5vw, 1.7rem);
    letter-spacing: 0.35em;
    margin-top: 0.5rem;
    font-weight: 700;
}

/* Logo image - 30% smaller */
.final-loader-logo {
    position: absolute;
    width: clamp(250px, 60vw, 800px); /* Significantly larger */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease, transform 1.5s ease;
    mix-blend-mode: multiply;
}

/* --- Loading Bar --- */
.loader-bar-wrapper {
    display: none; /* User requested removal of loading bar and percentage */
    position: absolute;
    bottom: 15vh;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: clamp(150px, 30vw, 300px);
}

.loader-bar-track {
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #707070;
    border-radius: 3px;
    transition: width 0.15s linear;
}

.loader-bar-percent {
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.15em;
    color: #999;
    transform: skewX(-6deg);
}

/* Circular Spinner */
.circular-spinner {
    width: 40px;
    height: 40px;
    margin-top: 1.5rem; /* Increased spacing slightly */
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #212E39; /* Dark premium contrast color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .circular-spinner {
        width: 32px; /* 20% smaller */
        height: 32px; /* 20% smaller */
        border-width: 3.5px; /* ~10% thinner */
    }
}
