/* Whoreela Games — Intro Splash Screen */

.whoreela-splash {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.whoreela-splash-logo {
    max-height: 80%;
    max-width: 30%;
    object-fit: contain;
    /* Keep the smooth resampler engaged while the breathing
       animation rescales the bitmap — hard filtering here is what
       read as "stairs" on the lettering. */
    image-rendering: smooth;
    image-rendering: high-quality;
    backface-visibility: hidden;
    transform: scale(0.94);
    opacity: 0;
    animation: whoreelaSplashLogo 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    position: relative;
    z-index: 2;
}

@keyframes whoreelaSplashLogo {
    0%   { opacity: 0; transform: scale(0.94); }
    22%  { opacity: 1; transform: scale(1.0); }
    78%  { opacity: 1; transform: scale(1.035); }
    100% { opacity: 0; transform: scale(1.05); }
}

.whoreela-splash-grain {
    position: absolute;
    inset: -10%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    width: 120%;
    height: 120%;
    animation: whoreelaSplashGrainOpacity 3s linear forwards,
               whoreelaSplashGrainShift 0.16s steps(3) infinite;
}

@keyframes whoreelaSplashGrainOpacity {
    0%   { opacity: 0; }
    20%  { opacity: 0.22; }
    80%  { opacity: 0.22; }
    100% { opacity: 0; }
}

@keyframes whoreelaSplashGrainShift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-2%, 1%); }
    66%  { transform: translate(1%, -2%); }
    100% { transform: translate(-1%, 2%); }
}

.whoreela-splash-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,1) 90%);
}

.whoreela-splash-flicker {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    animation: whoreelaSplashFlicker 0.9s steps(1) infinite;
}

@keyframes whoreelaSplashFlicker {
    0%, 89%, 100% { opacity: 0; }
    90% { opacity: 0.10; }
    92% { opacity: 0; }
    94% { opacity: 0.05; }
    96% { opacity: 0; }
}

.whoreela-splash.fading {
    transition: opacity 0.6s ease-out, background-color 0.6s ease-out;
    opacity: 0;
    background-color: #3A3238;
}
