:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background-color: #101014;
    background-image: url("backgrounds/Jason_and_Lucia_Robbery_With_Logo_square.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.countdown-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
}

.countdown-card {
    position: absolute;
    top: 72%;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: clamp(0.75rem, 2vw, 1.35rem);
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(18, 18, 24, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(0.55rem, 2.5vw, 2rem);
}

.time-unit {
    display: grid;
    min-width: 2.7em;
    text-align: center;
}

.time-value {
    font-size: clamp(2rem, 7vw, 5.75rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-shadow: 0 0.1rem 0.65rem rgba(0, 0, 0, 0.45);
}

.time-label {
    margin-top: 0.5rem;
    font-size: clamp(0.6rem, 1.5vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Select artwork from the current viewport shape. */
@media (max-aspect-ratio: 4 / 5) {
    body {
        background-image: url("backgrounds/Jason_and_Lucia_Robbery_With_Logo_portrait.jpg");
    }
}

@media (min-aspect-ratio: 5 / 4) {
    body {
        background-image: url("backgrounds/Jason_and_Lucia_Robbery_With_Logo_landscape.jpg");
    }
}

@media (max-width: 420px) {
    .countdown-card {
        max-width: calc(100% - 1rem);
        padding: 0.7rem 0.55rem;
        border-radius: 0.8rem;
    }

    .countdown {
        gap: 0.35rem;
    }

    .time-unit {
        min-width: 2.45em;
    }
}
