:root {
    --green: #417F31;
}	

.image-container {
    position: relative; 
    width: 100%;
    max-width: 568px; 
    aspect-ratio: 710 / 415; 
    background-image: url('https://files.catbox.moe/udbduy.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 16px;
}

.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6.4px;
    position: absolute;
    top: 30.5%; 
    left: 50%;
    transform: translateX(-50%); 
    flex-wrap: wrap; 
}

.block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 48px;
    padding: 0 2.4px;
}

.num {
    font-family: 'DS-Digital', monospace;
    font-size: clamp(1.8rem, 5vw, 2.24rem); 
    line-height: 1;
    color: var(--green);
    user-select: none;
    white-space: nowrap;
}

.label {
    font-family: 'DS-Digital', monospace;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    margin-top: 3.2px;
    color: var(--green);
    letter-spacing: 0.06em;
}

.colon {
    font-family: 'DS-Digital', monospace;
    font-size: clamp(1.8rem, 5vw, 2.24rem);
    line-height: 1;
    color: var(--green);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blink 1s steps(1, start) infinite;
    margin: 0;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.timer.rainbow .num,
.timer.rainbow .label,
.timer.rainbow .colon {
    background-image: linear-gradient(90deg,rgba(255, 0, 0, 1) 0%, rgba(130, 0, 0, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 100%;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

@media (max-width: 520px) {
    .num { font-size: clamp(1.2rem, 4vw, 1.44rem); }
    .colon { font-size: clamp(1.2rem, 4vw, 1.44rem); }
    .label { font-size: clamp(0.5rem, 1.5vw, 0.64rem); }
    .block { min-width: clamp(24px, 8vw, 32px); }
    .block.days { min-width: clamp(36px, 12vw, 48px); }
    .timer { gap: 4px; }
}

@media (max-width: 400px) {
    .image-container { max-width: 100%; }
    .timer { top: 18%; gap: 3px; }
    .num, .colon { font-size: clamp(1rem, 3.5vw, 1.2rem); }
    .label { font-size: clamp(0.4rem, 1.2vw, 0.5rem); }
    .block { min-width: clamp(20px, 7vw, 28px); }
    .block.days { min-width: clamp(32px, 10vw, 40px); }
}	