:root {
    --primary-color: #F0F0F0;
    --secondary-color: #888888;
    --background-color: #050505;
    --fade-duration: 0.1s;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

::selection {
    background: transparent;
    color: inherit;
}
::-moz-selection {
    background: transparent;
    color: inherit;
}

.glitch-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.3) 0%, rgba(5, 5, 5, 0) 60%);
    animation: subtleRotate 120s linear infinite;
    z-index: 1;
}

@keyframes subtleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1.5s 0.5s forwards;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.pre-countdown-message {
    font-size: 1.3em;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
    opacity: 0.7;
    transition: color 0.5s ease;
}

.top-message {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.timer-grid {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

.time-unit {
    display: flex;
    gap: 0;
    line-height: 1;
    overflow: hidden;
}

.digit {
    font-size: 7em;
    font-weight: 300;
    color: var(--primary-color);
    width: 0.5em; 
    text-align: center;
    display: inline-block;
    transition: opacity var(--fade-duration) ease-in-out;
}

.unit-label {
    font-size: 0.8em;
    margin-top: 15px;
    color: var(--secondary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
}

.separator {
    font-size: 6em;
    color: var(--secondary-color);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 25px; 
    font-weight: 300;
    animation: separatorPulse 4s infinite ease-in-out;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.1; }
}

.digit.transition-out {
    animation: digitFadeOut var(--fade-duration) ease-in forwards;
}

.digit.transition-in {
    animation: digitFadeIn var(--fade-duration) ease-in 1 forwards;
}

@keyframes digitFadeOut {
    to { 
        opacity: 0; 
    }
}

@keyframes digitFadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@media (max-width: 900px) {
    .timer-grid {
        gap: 15px;
    }
    .digit {
        font-size: 5em;
        width: 0.6em;
    }
    .separator {
        font-size: 4.5em;
        margin-bottom: 15px;
    }
    .pre-countdown-message {
        font-size: 1.1em;
        letter-spacing: 4px;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .timer-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 30px; 
    }
    .time-block {
        flex-basis: 40%;
        margin-bottom: 20px;
    }
    .time-unit {
        justify-content: center;
    }
    .digit {
        font-size: 4em;
        width: 0.5em;
    }
    .separator {
        display: none;
    }
}