/* =================== SPLASH SCREEN =================== */
.splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    overflow: hidden;
    background: #000;
}

.splash-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.splash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.splash-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.splash-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 10px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInDown 1.5s ease;
}

.splash-subtitle {
    font-size: 1.5rem;
    letter-spacing: 5px;
    color: #d4af37;
    margin-bottom: 40px;
    animation: fadeInUp 1.5s ease 0.5s both;
}

.splash-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

.countdown {
    margin-top: 30px;
    animation: zoomIn 0.5s ease;
}

.countdown #countdown-number {
    font-size: 5rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    display: inline-block;
    animation: pulse 1s ease-in-out;
}

.skip-btn {
    margin-top: 30px;
    padding: 12px 35px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    color: #d4af37;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeIn 1s ease;
}

.skip-btn:hover {
    background: #d4af37;
    color: #000;
    transform: scale(1.05);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.splash-screen.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* The splash was authored for desktop only: 7rem type with 10px tracking
   overflows a 360px phone, so the hero scales down with the viewport. */
@media (max-width: 768px) {
    .splash-title {
        font-size: clamp(2rem, 11vw, 3.4rem);
        letter-spacing: 4px;
        padding: 0 20px;
        max-width: 100%;
        margin-bottom: 14px;
    }

    .splash-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: 28px;
        padding: 0 20px;
    }

    .countdown #countdown-number { font-size: 3.4rem; }
    .countdown { margin-top: 18px; }
    .skip-btn { padding: 11px 26px; letter-spacing: 1px; }
    .splash-loader { width: 46px; height: 46px; }
}

@media (max-width: 380px) {
    .splash-title { font-size: 1.7rem; letter-spacing: 2px; }
    .splash-subtitle { font-size: .85rem; letter-spacing: 2px; }
    .countdown #countdown-number { font-size: 2.8rem; }
}

/* Landscape phones have almost no vertical room for title + subtitle + loader. */
@media (max-height: 460px) {
    .splash-subtitle { margin-bottom: 16px; }
    .splash-loader { display: none; }
    .countdown { margin-top: 10px; }
    .countdown #countdown-number { font-size: 2.4rem; }
    .skip-btn { margin-top: 12px; }
}
