@font-face {
    font-family: "Daydream";
    src: url("../Daydream DEMO.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #000;
    overflow: hidden;
}

.page {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    background: #000;
}

.background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
    background: #000;
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0.22) 100%
        );
}

.timer-container {
    position: absolute;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 10;
    width: max-content;
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.timer {
    font-family: "Daydream", monospace;
    font-weight: normal;
    font-size: clamp(20px, 3vw, 38px);
    line-height: 1;
    letter-spacing: clamp(1px, 0.2vw, 3px);
    color: #fff;
    text-shadow:
        2px 0 0 #000,
        -2px 0 0 #000,
        0 2px 0 #000,
        0 -2px 0 #000;
    font-variant-numeric: tabular-nums;
}

.studio {
    margin-top: clamp(5px, 0.7vw, 9px);
    font-family: "Daydream", monospace;
    font-weight: normal;
    font-size: clamp(8px, 0.8vw, 12px);
    line-height: 1.2;
    letter-spacing: clamp(0.5px, 0.12vw, 1.5px);
    color: #fff;
    opacity: 0.85;
    text-shadow:
        1px 0 0 #000,
        -1px 0 0 #000,
        0 1px 0 #000,
        0 -1px 0 #000;
}

.copyright {
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    vertical-align: 1px;
    line-height: 1;
}

@media (max-width: 900px) {
    .timer-container {
        bottom: max(28px, env(safe-area-inset-bottom));
        max-width: calc(100% - 28px);
    }

    .timer {
        font-size: clamp(20px, 4.5vw, 32px);
        letter-spacing: 1.5px;
    }

    .studio {
        font-size: clamp(8px, 1.5vw, 10px);
    }
}

@media (max-width: 600px) {
    .timer-container {
        bottom: max(18px, env(safe-area-inset-bottom));
        max-width: calc(100% - 24px);
    }

    .timer {
        font-size: clamp(18px, 7vw, 28px);
        letter-spacing: clamp(0.5px, 0.4vw, 1.5px);
        text-shadow:
            1.5px 0 0 #000,
            -1.5px 0 0 #000,
            0 1.5px 0 #000,
            0 -1.5px 0 #000;
    }

    .studio {
        margin-top: 5px;
        font-size: clamp(7px, 2.5vw, 10px);
        letter-spacing: 0.8px;
    }
}

@media (max-width: 380px) {
    .timer-container {
        bottom: max(14px, env(safe-area-inset-bottom));
        max-width: calc(100% - 16px);
    }

    .timer {
        font-size: clamp(16px, 7vw, 23px);
        letter-spacing: 0.5px;
    }

    .studio {
        font-size: 7px;
        letter-spacing: 0.5px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .timer-container {
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .timer {
        font-size: clamp(16px, 5vw, 25px);
    }

    .studio {
        margin-top: 4px;
        font-size: clamp(7px, 1.5vw, 9px);
    }
}

@media (min-width: 1600px) {
    .timer {
        font-size: 40px;
    }

    .studio {
        font-size: 12px;
    }
}

