/* -------------------------------------------------------------------------------------------------------------------------------------------- */

@keyframes backgroundPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

@keyframes drip {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

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

/* -------------------------------------------------------------------------------------------------------------------------------------------- */

#intro-overlay {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#intro-play-btn {
    font-size: 10vh;
    background: none;
    border: none;
    color: #ff2e2e;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#intro-play-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

#intro-video-container {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: black;
    z-index: 9999;
    /* animation: fadeOut 0.8s ease forwards; */
}

#intro-video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    display: block;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */

body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: Arial, sans-serif;
    color: #f5f5f5;

    /* background-color: #2f0909; */
    background: linear-gradient(
        180deg,
        #1f0a10 0%,
        #12070a 40%,
        #050505 75%,
        #000 100%
    );

    animation: backgroundPulse 6s ease-in-out infinite;

    user-select: none;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
}

#timer-label {
    font-family: 'Nosifer', cursive;
    font-size: 6vh;
    color: #ff2e2e;
    text-align: center;
    margin-bottom: 2vh;
}

#timer {
    font-family: 'Nosifer', cursive;
    font-size: 26vh;
    color: #ff2e2e;

    letter-spacing: 0.05em;
    line-height: 0.9;

    text-shadow:
        0 0 15px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.5);
    
    animation: drip 1.5s infinite alternate;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */

#kill-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 14vh;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #cfd8dc;
    text-shadow:
        1px 1px 0 #888,
       -1px -1px 0 #fff;
}

#killNumber {
    color: #e0e0e0;
    font-weight: 600;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */

#button-bar {
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
}

.game-btn {
    width: 150px;
    height: 150px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.game-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-btn:hover img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.game-btn:active img {
    transform: scale(0.95);
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */

#character-list {
    position: fixed;
    top: 2vh;
    right: 2vw;
    
    background-color: rgba(10, 10, 10, 0.5);
    padding: 1.5vh 2vh;
    border-radius: 10px;

    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75vh;
    letter-spacing: 1px;
    color: #cfd8dc;

    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

#character-list ul {
    list-style: none;
    margin: 0;
    padding-left: 1.5em;
    text-align: left;
}

#character-list li {
    margin-bottom: 0.5vh;
    cursor: pointer;
    transition: all 0.2s ease;
}

#character-list li:hover:not(.dead) {
    color: #ff9999;
}

.dead {
    position: relative;
    color: #ff4444;
}

.dead::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #ff4444;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.5s ease;
}