@font-face {
    font-family: "JetBrainsMono";
    src: url("font/JetBrainsMonoNerdFontMono-Regular.ttf") format("truetype");
}

html,
body {
    background-color: #121212;
    color: #ffffff;
    font-family: "JetBrainsMono", monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling */
    touch-action: none;
    /* Prevent scroll/zoom on touch devices */
    position: fixed;
    /* Lock body in place for iOS */
    width: 100%;
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
}

.countdown {
    font-size: 15rem;
    /* Reduced from 24rem */
    font-weight: bold;
    background: linear-gradient(to right, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    opacity: 0;
    /* Initially hidden for animation */
}

.label {
    font-size: 3rem;
    /* Reduced from 4rem */
    margin-top: 1rem;
    color: #888;
    opacity: 0;
}

/* Floating background text */
.floating-text {
    position: absolute;
    /* Base size + random scale (0-1) * variance */
    /* Desktop: 3rem to 6rem */
    font-size: calc(3rem + var(--random-scale) * 3rem);
    color: rgba(255, 138, 0, 0.1);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Mobile Responsive Styles */
@media (max-width: 1280px) {
    .floating-text {
        /* Mobile: 1.5rem to 3rem */
        font-size: calc(1.5rem + var(--random-scale) * 1.5rem);
    }

    .countdown {
        font-size: 11vw;
        /* Reduced to fit 8 chars (HH:MM:SS) */
        /* Scale based on viewport width */
    }

    .label {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
}

/* Landscape Mode for Mobile (e.g. iPhone XR landscape height is ~414px) */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .countdown {
        font-size: 15vh;
        /* Reduced to fit vertically */
        /* Increased visibility for landscape */
        line-height: 1;
    }

    .label {
        font-size: 4vh;
        margin-top: 1vh;
    }
}