* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100dvh;
    height: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    min-height: 100dvh;
}

.timer-units {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.circle-wrapper {
    position: relative;
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.progress-ring-progress {
    fill: none;
    stroke: #ffffff;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.label {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#message {
    margin-top: 3rem;
    font-size: clamp(1rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .timer-units {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 375px;
        justify-items: center;
    }
    
    .timer-unit {
        gap: 0.75rem;
    }
    
    .circle-wrapper {
        width: 125px;
        height: 125px;
    }
    
    .progress-ring {
        width: 125px;
        height: 125px;
    }
    
    .progress-ring-track,
    .progress-ring-progress {
        stroke-width: 3;
    }
    
    .number {
        font-size: 1.75rem;
    }
    
    .label {
        font-size: 0.75rem;
    }
    
    #message {
        margin-top: 2rem;
        font-size: 1rem;
    }
}
