:root {
    --bg: radial-gradient(1200px 800px at 10% -10%, #4f46e5 0%, #111827 40%),
    radial-gradient(1400px 900px at 120% 120%, #14b8a6 0%, #0b1020 50%);
    --card-blur: 18px;
    --card-bg: rgba(255, 255, 255, .08);
    --card-border: rgba(255, 255, 255, .18);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    --accent: #60a5fa;
    --text: #e5e7eb;
    --muted: #9ca3af;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: linear-gradient(120deg, #e8f0ff 0%, #f7fbff 100%);
        --card-bg: rgba(255, 255, 255, .55);
        --card-border: rgba(255, 255, 255, .8);
        --text: #0b1020;
        --muted: #4b5563;
    }
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100svh;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--text);
    font: 500 16px system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.wrap {
    width: min(100%, 1100px);
    padding: 24px
}

.title {
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
    margin: 8px 0 22px;
    font-size: clamp(22px, 3.2vw, 34px)
}

.subtitle {
    color: var(--muted);
    text-align: center;
    margin: -6px 0 26px
}

.countdown {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width:700px) {
    .countdown {
        grid-template-columns:repeat(2, 1fr)
    }
}

.time-box {
    position: relative;
    isolation: isolate;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(var(--card-blur)) saturate(160%);
    backdrop-filter: blur(var(--card-blur)) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.time-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, .35), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
    pointer-events: none;
}

.value {
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
    font-size: clamp(40px, 7vw, 72px);
    text-shadow: 0 10px 25px rgba(0, 0, 0, .35);
}
.label {
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 12px
}

.tick {
    animation: tick .8s ease;
}
@keyframes tick {
    0% {
        transform: translateY(-6px);
        opacity: .6
    }
    100% {
        transform: none;
        opacity: 1
    }
}

@media (prefers-reduced-motion: reduce) {
    .tick {
        animation: none
    }
}

.footer-note {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 14px
}
.footer-note code {
    background: rgba(255, 255, 255, .08);
    padding: .2rem .4rem;
    border-radius: 6px
}