html, body {
    font-size: 2svh;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #40a77f;
    font-family: 'Roboto Flex', sans-serif;
    touch-action: none; /* Disables browser handling of gestures */
    user-select: none; /* Disables text selection */
    -webkit-user-select: none;
    overscroll-behavior: none; /* Disables pull-to-refresh/bounce */
}
#timer-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 4rem;
    z-index: 10;
}
#timer-ui {
    color: white;
    font-size: 8rem;
    font-weight: 400;
    font-family: 'Roboto Flex', sans-serif;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0.8;
    line-height: 1;
}
#timer-ui .colon {
    opacity: 0.6;
}
#timer-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    /* font-weight: 900; */
    font-family: 'Roboto Flex', sans-serif;
    margin-top: 5px;
    opacity: 0.8;
}
#timer-sub .colon {
    opacity: 0.6;
}
#controls {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 20;
}
button {
    width: 80px;
    height: 80px;
    padding: 12px 25px;
    cursor: pointer;
    border: none;
    border-radius: 138px;
    background: #0000001c;
    backdrop-filter: blur(61px);
    color: #44aa44;
    font-weight: bold;
    text-transform: uppercase;
    /* box-shadow: 0 4px 0 #338833; */
    transition: 0.1s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}
button img {
    width: 24px;
    height: 24px;
    display: block;
}
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #338833; }
.hidden { display: none; }
#hint {
    position: absolute; top: 20px; width: 100%; text-align: center;
    color: white; letter-spacing: 2px; text-transform: uppercase; font-size: 0.7rem; font-weight: bold;
}
#goose-counter {
        backdrop-filter: blur(91px);
        margin-top: 40px;
        background-color: #00000030;
        /* position: absolute; */
        top: 20px;
        padding: 4px 8px;
        border-radius: 20px;
        left: 20px;
        color: white;
        font-size: 1.2rem;
        /* font-weight: bold; */
        /* text-shadow: 0 2px 5px rgba(0,0,0,0.3); */
        opacity: 0.9;
        z-index: 2;
}
#goose-counter .label {
    opacity: 0.6;
}

@keyframes alarmBlink {
    0%, 100% {
        background: #0000001c;
    }
    50% {
        background: orange;
    }
}

button.alarm-blink {
    animation: alarmBlink 1s ease-in-out infinite;
}

@media (max-width: 768px) {
    #timer-ui {
        font-size: clamp(40px, 17svw, 190px);
    }
    #timer-sub {
        font-size: clamp(1rem, 4vw, 2rem);
    }
    button {
        min-width: 45px;
        min-height: 45px;
        padding: 10px;
    }
    button img {
        width: 22px;
        height: 22px;
    }
    #hint {
        font-size: clamp(0.6rem, 3vw, 1rem);
    }
    #goose-counter {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        top: 15px;
        left: 15px;
    }
    #controls {
        bottom: 20px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #timer-ui {
        font-size: clamp(80px, 10vw, 120px);
    }
    #timer-sub {
        font-size: clamp(0.8rem, 3.5vw, 1.5rem);
    }
    button {
        min-width: 80px;
        min-height: 80px;
        padding: 8px;
    }
    button img {
        width: 20px;
        height: 20px;
    }
    #hint {
        font-size: clamp(0.5rem, 2.5vw, 0.8rem);
        top: 10px;
    }
    #goose-counter {
        font-size: clamp(20px, 3vw, 24px);
        /* top: 10px; */
        /* left: 10px; */
    }
    #controls {
        bottom: 40px;
        gap: 6px;
        flex-wrap: wrap;
        max-width: 90vw;
    }
}
body {
    display: flex;
    flex-flow: column;
    align-items: center;
}

canvas {
    position: absolute;
    z-index: 0;
}
.count {
    
    font-weight: bold;
}
button:hover {
    transition: all 200ms;
    background: orange;
}