
/* =========================================
   PAPARIKAS SPLASH SCREEN
   Matches the website header logo
   Black background blends with logo image
========================================= */

.splash-screen {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    overflow: hidden;

    background: #000000;
    color: #ffffff;

    align-items: center;
    justify-content: center;

    isolation: isolate;
}

html.intro-active .splash-screen {
    display: flex;
}

/* =========================================
   BACKGROUND DECORATION
========================================= */

.splash-screen::before,
.splash-screen::after {
    content: "";
    position: absolute;
    z-index: -1;

    left: 50%;
    top: 50%;

    aspect-ratio: 1;
    border-radius: 50%;

    transform: translate(-50%, -50%);
    pointer-events: none;
}

.splash-screen::before {
    width: min(90vw, 720px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.splash-screen::after {
    width: min(72vw, 560px);
    border: 1px solid rgba(255, 223, 49, 0.25);
}

/* =========================================
   CONTENT
========================================= */

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 680px;

    padding: 32px 24px;
    text-align: center;

    animation: splash-content-enter 700ms ease both;
}

/* =========================================
   LOGO
   Matches header image appearance
========================================= */

.splash-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(82vw, 420px);
    max-width: 100%;

    height: auto;

    padding: 0;
    margin: 0 auto 24px;

    overflow: visible;

    background: #000000;

    border: 0;
    border-radius: 0;

    box-shadow: none;
    mix-blend-mode: normal;
}

.splash-logo-wrap img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: none;

    object-fit: contain;
    object-position: center;

    background: #000000;

    border: 0;
    border-radius: 0;

    box-shadow: none;
    filter: none;
    mix-blend-mode: normal;
}

/* =========================================
   BRAND NAME
========================================= */

.splash-name {
    display: none !important;
}

/* =========================================
   TAGLINE
========================================= */

.splash-tagline {
    margin: 0;
    max-width: 90%;

    color: var(--yellow, #ffdf31);

    font-family: var(
        --display,
        Impact,
        "Arial Black",
        Arial,
        sans-serif
    );

    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    font-weight: 900;

    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================
   LOADING INDICATOR
========================================= */

.splash-loader {
    width: 112px;
    height: 5px;

    margin-top: 30px;

    overflow: hidden;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.splash-loader span {
    display: block;

    width: 38%;
    height: 100%;

    border-radius: inherit;
    background: var(--yellow, #ffdf31);

    animation: splash-loading 1.35s ease-in-out infinite;
}

/* =========================================
   SKIP BUTTON
========================================= */

.splash-skip {
    position: absolute;

    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 42px;
    padding: 10px 17px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-family: system-ui, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.04em;
    cursor: pointer;

    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.splash-skip:hover {
    background: var(--yellow, #ffdf31);
    border-color: var(--yellow, #ffdf31);
    color: var(--ink, #102a52);

    transform: translateY(-2px);
}

.splash-skip:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.splash-skip span {
    font-size: 1rem;
}

/* =========================================
   EXIT ANIMATION
========================================= */

.splash-screen.is-leaving {
    animation: splash-screen-exit 450ms ease forwards;
    pointer-events: none;
}

.splash-screen.is-leaving .splash-content {
    animation: splash-content-exit 350ms ease forwards;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes splash-content-enter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splash-content-exit {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
}

@keyframes splash-screen-exit {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes splash-loading {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(165%);
    }

    100% {
        transform: translateX(300%);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .splash-content {
        padding: 24px 18px;
    }

    .splash-logo-wrap {
        width: min(88vw, 360px);
        margin-bottom: 20px;
    }

    .splash-loader {
        margin-top: 24px;
    }

    .splash-skip {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .splash-logo-wrap {
        width: 84vw;
    }

    .splash-tagline {
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .splash-content,
    .splash-screen.is-leaving,
    .splash-screen.is-leaving .splash-content,
    .splash-loader span {
        animation: none !important;
    }

    .splash-skip {
        transition: none;
    }
}

/* =========================================
   SPLASH SCREEN SAFETY FALLBACK
   Prevents an indefinitely blocking overlay
========================================= */

html.intro-active .splash-screen:not(.is-leaving) {
    animation: paparikas-splash-safety 0s linear 7s forwards;
}

@keyframes paparikas-splash-safety {
    to {
        visibility: hidden;
        pointer-events: none;
    }
}

/* Respect the JavaScript hidden state */
.splash-screen[hidden] {
    display: none !important;
}