
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #8b2e2e 0%, #a84a37 45%, #5e1b1b 100%);
    color: #1f2937;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 45%);
    pointer-events: none;
    z-index: -1;
}


.countdown {
    position: relative;
    min-height: 0;
    width: min(90vw, 700px);
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 36px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.countdown::before,
.countdown::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.countdown::before {
    width: 140px;
    height: 140px;
    top: -28px;
    right: -42px;
}

.countdown::after {
    width: 100px;
    height: 100px;
    bottom: -26px;
    left: -30px;
}

.timer {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    flex-wrap: wrap;
    justify-content: center;
}

.time {
    text-align: center;
    min-width: clamp(80px, 16vw, 110px);
    background: rgba(255, 255, 255, 0.7);
    padding: clamp(12px, 2vw, 20px) clamp(10px, 2vw, 15px);
    border-radius: 15px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.time h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 100;
    margin: 0 0 8px;
}

.time p {
    margin: 0;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.test {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
}



/*---------------------*/


.countdown {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --move-x: 0px;
    --move-y: 0px;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
    cursor: pointer;
    transform-style: preserve-3d;
}

.countdown:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate(var(--move-x), var(--move-y)) scale(1.03);
}

.countdown:active {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translate(0px, 0px) scale(1);
}