/* ======================= */
/* SPLASH SCREEN OVERLAY */
/* ======================= */

/* Lock scroll when splash is visible */
body.splash-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 40%, var(--teal-light) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                visibility 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.splash-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 35px);
    text-align: center;
    padding: clamp(12px, 3vw, 60px);
    max-width: clamp(300px, 85vw, 700px);
    max-height: 100dvh;
    box-sizing: border-box;
}

.splash-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.95rem, 2.2vh, 2.4rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--cream);
    line-height: 1.5;
    overflow-y: auto;
    opacity: 0;
    animation: splashFadeIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s forwards;
}

.splash-reference {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.8rem, 1.5vh, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    flex-shrink: 0;
    opacity: 0;
    animation: splashFadeIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) 1.2s forwards;
}

.splash-hint-container {
    position: relative;
    width: clamp(70px, 15vh, 180px);
    height: clamp(70px, 15vh, 180px);
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    opacity: 0;
    animation: splashFadeIn 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.splash-hint {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.splash-hint-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(26, 95, 90, 0.9) 100%);
    pointer-events: none;
}

.splash-altar {
    width: clamp(40px, 8vh, 120px);
    height: auto;
    flex-shrink: 0;
    opacity: 0;
    animation: splashFadeIn 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1.8s forwards;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Short screens (landscape phones, small mobiles) */
@media (max-height: 600px) {
    .splash-content {
        gap: clamp(6px, 1vh, 12px);
        padding: clamp(8px, 2vw, 20px);
    }

    .splash-hint-container {
        width: clamp(50px, 12vh, 100px);
        height: clamp(50px, 12vh, 100px);
    }

    .splash-altar {
        width: clamp(30px, 6vh, 60px);
    }
}

/* Narrow screens */
@media (max-width: 380px) {
    .splash-content {
        padding: clamp(10px, 3vw, 20px);
    }
}
