/* Video-only level transition overlay. */
.transition-overlay {
    position: absolute;
    inset: 0;
    z-index: 5000;
    display: none;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    isolation: isolate;
    contain: strict;
}

.transition-overlay.active {
    display: block;
    pointer-events: auto;
}

#transition-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: none;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.08s linear;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: opacity;
    contain: paint;
}

#transition-video-player.is-ready {
    opacity: 1;
    visibility: visible;
}

/* Super Hard Dark Video Overlay Modifier */
.transition-overlay.super-hard-dark {
    background: rgba(10, 0, 15, 0.88);
    box-shadow: inset 0 0 60px rgba(220, 38, 38, 0.45);
}

.transition-overlay.super-hard-dark #transition-video-player {
    /* A full-screen animated CSS filter forces an expensive repaint per frame. */
    filter: none;
}

/* ========================================================================== */
/* SUPER HARD FLOATING ANNOUNCEMENT OVERLAY & LOTTIE SKULL ANIMATION           */
/* ========================================================================== */

.super-hard-overlay {
    position: absolute;
    inset: 0;
    z-index: 6000;
    background: rgba(12, 4, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.super-hard-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.super-hard-card {
    background: linear-gradient(180deg, rgba(40, 10, 20, 0.95) 0%, rgba(20, 5, 12, 0.98) 100%);
    border: 2px solid #ef4444;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.6), inset 0 0 20px rgba(239, 68, 68, 0.2);
    border-radius: 24px;
    width: 90%;
    max-width: 380px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    animation: popSuperHardCard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popSuperHardCard {
    to {
        transform: scale(1) translateY(0);
    }
}

.super-hard-badge-tag {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    margin-bottom: 12px;
}

.skull-lottie-box {
    width: 220px;
    height: 220px;
    margin: 4px 0 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.8));
    animation: floatSkullLottie 2.5s infinite ease-in-out;
}

@keyframes floatSkullLottie {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.super-hard-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 0%, #fca5a5 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(239, 68, 68, 0.8);
    margin-bottom: 6px;
}

.super-hard-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
