* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Creepster', 'Nosifer', 'Butcherman', serif;
    color: #ff4444;
    background: url('../img/background.png') no-repeat center top;
    background-size: cover;
    background-position: center 0;
    background-color: #000;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(139, 0, 0, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(139, 0, 0, 0.1) 50%, transparent 60%);
    animation: bloodVeins 8s ease-in-out infinite;
    z-index: -1;
}

.container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    border: 2px solid rgba(139, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(139, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 0, 0, 0.2);
    animation: fadeIn 1.5s ease-out forwards, containerFlicker 10s ease-in-out infinite;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
}

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

@keyframes bloodVeins {
    0%, 100% { 
        opacity: 0.1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.3;
        transform: scale(1.02);
    }
}

@keyframes containerFlicker {
    0%, 100% { 
        box-shadow: 
            0 0 50px rgba(139, 0, 0, 0.6),
            inset 0 0 20px rgba(0, 0, 0, 0.8),
            0 0 100px rgba(255, 0, 0, 0.2);
    }
    25% { 
        box-shadow: 
            0 0 80px rgba(139, 0, 0, 0.8),
            inset 0 0 25px rgba(0, 0, 0, 0.9),
            0 0 150px rgba(255, 0, 0, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(139, 0, 0, 0.4),
            inset 0 0 15px rgba(0, 0, 0, 0.7),
            0 0 80px rgba(255, 0, 0, 0.1);
    }
}

@keyframes evilFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 4px 8px rgba(139, 0, 0, 0.5));
    }
    25% { 
        transform: translateY(-8px) rotate(1deg);
        filter: drop-shadow(0 8px 16px rgba(139, 0, 0, 0.7));
    }
    50% { 
        transform: translateY(-15px) rotate(0deg);
        filter: drop-shadow(0 12px 24px rgba(139, 0, 0, 0.9));
    }
    75% { 
        transform: translateY(-8px) rotate(-1deg);
        filter: drop-shadow(0 8px 16px rgba(139, 0, 0, 0.7));
    }
}

@keyframes ominousPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8));
    }
}


h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0;
    color: #ff1a1a;
    text-shadow: 
        0 0 10px rgba(255, 26, 26, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(139, 0, 0, 0.4),
        2px 2px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
    animation: textFlicker 5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.7));
}

@keyframes textFlicker {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(255, 26, 26, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            0 0 30px rgba(139, 0, 0, 0.4),
            2px 2px 0px rgba(0, 0, 0, 0.8);
    }
    25% { 
        opacity: 0.9;
        text-shadow: 
            0 0 15px rgba(255, 26, 26, 1),
            0 0 25px rgba(255, 0, 0, 0.8),
            0 0 35px rgba(139, 0, 0, 0.6),
            2px 2px 0px rgba(0, 0, 0, 0.9);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 
            0 0 5px rgba(255, 26, 26, 0.6),
            0 0 10px rgba(255, 0, 0, 0.4),
            0 0 15px rgba(139, 0, 0, 0.2),
            2px 2px 0px rgba(0, 0, 0, 0.7);
    }
}

#countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.time-box {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(139, 0, 0, 0.6);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 
        0 0 25px rgba(139, 0, 0, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    animation: boxFlicker 8s ease-in-out infinite;
}

@keyframes boxFlicker {
    0%, 100% { 
        border-color: rgba(139, 0, 0, 0.6);
        box-shadow: 
            0 0 25px rgba(139, 0, 0, 0.5),
            inset 0 0 15px rgba(0, 0, 0, 0.8),
            0 0 50px rgba(255, 0, 0, 0.2);
    }
    50% { 
        border-color: rgba(255, 0, 0, 0.8);
        box-shadow: 
            0 0 40px rgba(255, 0, 0, 0.7),
            inset 0 0 20px rgba(0, 0, 0, 0.9),
            0 0 80px rgba(255, 0, 0, 0.4);
    }
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.3), transparent);
    transition: left 0.5s;
}

.time-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 0.8),
        inset 0 0 25px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 0, 0, 1);
}

.time-box:hover::before {
    left: 100%;
}

.time-box span {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    display: block;
    color: #ff3333;
    text-shadow: 
        0 0 10px rgba(255, 51, 51, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        1px 1px 0px rgba(0, 0, 0, 0.8);
    line-height: 1;
    animation: numberFlicker 6s ease-in-out infinite;
}

@keyframes numberFlicker {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(255, 51, 51, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6),
            1px 1px 0px rgba(0, 0, 0, 0.8);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 
            0 0 15px rgba(255, 51, 51, 1),
            0 0 30px rgba(255, 0, 0, 0.8),
            1px 1px 0px rgba(0, 0, 0, 0.9);
    }
}

.time-box p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #cc0000;
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.6);
}


.bixkor-text {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
    color: #cc3333;
    font-style: italic;
    letter-spacing: 0.02em;
    text-shadow: 0 0 8px rgba(204, 51, 51, 0.6);
    animation: textFlicker 7s ease-in-out infinite;
}

.progress-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
}

.progress-bar {
    flex: 1;
    height: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(139, 0, 0, 0.6);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 3px 10px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(139, 0, 0, 0.4);
}


/* REEMPLAZAR EL .progress-fill ANTIGUO POR ESTE */
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444 0%, #b91c1c 50%, #7f1d1d 100%);
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.7),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative; /* Muy importante para el efecto */
    overflow: hidden; /* Esconde el brillo cuando se sale de la barra */
    transition: width 1s ease-out;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    transform: skewX(-25deg); /* Inclina el brillo */
    animation: sheen 2.5s linear infinite;
}

@keyframes progressPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(139, 0, 0, 0.6),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 35px rgba(255, 0, 0, 0.8),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
}

.progress-face {
    width:200px;
    height: 200px;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.6));
}

.start-face {
    filter: 
        sepia(50%) 
        hue-rotate(60deg) 
        saturate(1.5) 
        brightness(1.2)
        drop-shadow(0 0 15px rgba(34, 197, 94, 0.6));
    animation: happyFloat 4s ease-in-out infinite;
}

.end-face {
    filter: 
        sepia(100%) 
        hue-rotate(320deg) 
        saturate(2) 
        contrast(1.3)
        drop-shadow(0 0 20px rgba(139, 0, 0, 0.8));
    animation: sadFloat 5s ease-in-out infinite;
}

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

@keyframes sadFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    25% { 
        transform: translateY(-3px) scale(0.98) rotate(-1deg);
    }
    50% { 
        transform: translateY(-8px) scale(0.95) rotate(0deg);
    }
    75% { 
        transform: translateY(-3px) scale(0.98) rotate(1deg);
    }
}

.progress-face:hover {
    transform: scale(1.1);
    filter: brightness(1.3) saturate(2);
}

.face {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.6;
    margin-top: 1rem;
    filter: 
        sepia(100%) 
        hue-rotate(320deg) 
        saturate(2) 
        contrast(1.3)
        drop-shadow(0 0 25px rgba(139, 0, 0, 0.8));
    animation: fadeIn 1.5s 1s forwards, evilFloat 6s ease-in-out infinite;
    transition: all 0.3s ease-in-out;
}

.face:hover {
    opacity: 0.9;
    transform: scale(1.1);
    filter: 
        sepia(100%) 
        hue-rotate(320deg) 
        saturate(3) 
        contrast(1.5)
        drop-shadow(0 0 40px rgba(255, 0, 0, 1));
}

.scroll-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.message-box {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 0, 0, 0.6);
    margin: 4rem auto;
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 800px;
    box-shadow: 
        0 0 40px rgba(139, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: messageBoxFlicker 12s ease-in-out infinite;
}

@keyframes messageBoxFlicker {
    0%, 100% { 
        border-color: rgba(139, 0, 0, 0.6);
        box-shadow: 
            0 0 40px rgba(139, 0, 0, 0.5),
            inset 0 0 20px rgba(0, 0, 0, 0.8),
            0 0 80px rgba(255, 0, 0, 0.3);
    }
    50% { 
        border-color: rgba(255, 0, 0, 0.8);
        box-shadow: 
            0 0 60px rgba(255, 0, 0, 0.7),
            inset 0 0 30px rgba(0, 0, 0, 0.9),
            0 0 120px rgba(255, 0, 0, 0.5);
    }
}

.message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.8), transparent);
    transition: left 0.8s ease;
}

.message-box.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.message-box.visible::before {
    left: 100%;
}

.message-box h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ff2222;
    text-shadow: 
        0 0 15px rgba(255, 34, 34, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6),
        2px 2px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
    animation: messageTextFlicker 9s ease-in-out infinite;
}

@keyframes messageTextFlicker {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 15px rgba(255, 34, 34, 0.8),
            0 0 30px rgba(255, 0, 0, 0.6),
            2px 2px 0px rgba(0, 0, 0, 0.8);
    }
    50% { 
        opacity: 0.9;
        text-shadow: 
            0 0 20px rgba(255, 34, 34, 1),
            0 0 40px rgba(255, 0, 0, 0.8),
            2px 2px 0px rgba(0, 0, 0, 0.9);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
        background-size: contain;
        background-position: center top;
    }
    
    .container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
        gap: 1.5rem;
    }
    
    h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    #countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .time-box {
        padding: 1.2rem 0.8rem;
        border-radius: 12px;
    }
    
    .time-box span {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    
    .time-box p {
        font-size: 0.75rem;
    }
    
    .bixkor-text {
        font-size: 0.8rem;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .face {
        width: 100px;
        height: 100px;
        margin-top: 0.8rem;
    }
    
    .progress-container {
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .progress-face {
        width: 60px;
        height: 60px;
    }
    
    .progress-bar {
        height: 16px;
    }
    
    .scroll-content {
        padding: 2rem 1rem;
    }
    
    .message-box {
        margin: 2rem auto;
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .message-box h2 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    body {
        background-size: contain;
        background-position: center top;
    }

    .container {
        padding: 1rem 0.8rem;
        margin: 0.25rem;
        gap: 1.2rem;
        min-height: calc(100vh - 0.5rem);
    }
    
    h1 {
        font-size: clamp(1.2rem, 7vw, 2rem);
        margin-bottom: 0.3rem;
    }
    
    #countdown {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .time-box {
        padding: 1rem 0.6rem;
        border-radius: 10px;
    }
    
    .time-box span {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .time-box p {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
    
    .bixkor-text {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
    
    .face {
        width: 80px;
        height: 80px;
        margin-top: 0.5rem;
    }
    
    .progress-container {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }
    
    .progress-face {
        width: 50px;
        height: 50px;
    }
    
    .progress-bar {
        height: 14px;
    }
    
    .scroll-content {
        padding: 1.5rem 0.8rem;
    }
    
    .message-box {
        margin: 1.5rem auto;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .message-box h2 {
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        line-height: 1.4;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.8rem 0.5rem;
        margin: 0.1rem;
        gap: 1rem;
    }
    
    h1 {
        font-size: clamp(1rem, 6vw, 1.5rem);
    }
    
    #countdown {
        gap: 0.6rem;
    }
    
    .time-box {
        padding: 0.8rem 0.4rem;
        border-radius: 8px;
    }
    
    .time-box span {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }
    
    .time-box p {
        font-size: 0.6rem;
    }
    
    .bixkor-text {
        font-size: 0.7rem;
    }
    
    .face {
        width: 60px;
        height: 60px;
        margin-top: 0.3rem;
    }
    
    .progress-container {
        gap: 0.5rem;
        margin: 0.6rem 0;
    }
    
    .progress-face {
        width: 30px;
        height: 30px;
    }
    
    .progress-bar {
        height: 12px;
    }
    
    .message-box {
        margin: 1rem auto;
        padding: 1rem 0.8rem;
    }
    
    .message-box h2 {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
}

.progress-bar {
    flex: 1;
    height: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(139, 0, 0, 0.6);
    border-radius: 10px;
    position: relative; /* Necesario para posicionar el icono de forma absoluta */
    overflow: hidden;
    box-shadow: 
        inset 0 3px 10px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(139, 0, 0, 0.4);
}

.progress-icon {
    position: absolute;
    top: 50%;
    left: 0; /* Se actualizará con JavaScript */
    transform: translateY(-50%);
    width: 24px; /* Ancho del icono */
    height: 24px; /* Alto del icono */
    transition: left 1s ease-out;
    z-index: 2; /* Para que esté por encima de la barra de progreso */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
    
    /* --- NUEVAS LÍNEAS --- */
    background-color: rgba(255, 50, 50, 0.4); /* Fondo rojo semitransparente */
    border-radius: 50%; /* Para hacerlo circular */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7); /* Un brillo exterior */
    padding: 2px; /* Un pequeño espacio entre el icono y el borde del círculo */
    box-sizing: content-box; /* Para que el padding no afecte al tamaño total */
}

/* AÑADIR ESTO AL FINAL DEL ARCHIVO */
@keyframes sheen {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-family: 'Courier New', Courier, monospace; /* Fuente estilo retro */
    font-size: 14px;
    font-weight: bold;
    color: rgb(112, 114, 19);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none; /* Evita que el texto interfiera con el ratón */
}

/* Partículas flotantes de sangre */
.blood-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #8B0000, #4a0000);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    animation: bloodFloat linear infinite;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

@keyframes bloodFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift, 0px)) scale(0.3);
        opacity: 0;
    }
}

/* Cursor personalizado */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ff0000" d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>'), auto;
}

a, button, .time-box, .progress-face, .face {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ff3333" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'), pointer;
}

/* Efecto de carga inicial */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: loaderFadeOut 1s ease-out 2.5s forwards;
}

.loader-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #ff0000;
    font-family: 'Creepster', 'Nosifer', serif;
    text-shadow:
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(139, 0, 0, 0.6);
    animation: loaderPulse 1.5s ease-in-out infinite;
    margin-bottom: 2rem;
}

.loader-bar {
    width: 300px;
    height: 6px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #8B0000);
    border-radius: 3px;
    animation: loaderProgress 2s ease-out forwards;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes loaderFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}