body {
    font-family: 'Google Sans Flex', 'Roboto Flex', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.counter-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.reset-btn {
    background-color: transparent;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    min-width: auto;
    border-radius: 8px;
    width: auto;
    height: auto;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background-color: #eee;
}

.count-display {
    font-size: 5rem;
    font-weight: 500;
    color: black;
    margin-bottom: 2rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

@media (max-width: 480px) {
    .count-display {
        font-size: 4rem;
    }

    button {
        padding: 1rem 2rem;
    }

    .cards-wrapper {
        gap: 1rem;
    }

    .counter-card {
        padding: 1.5rem;
        min-width: 200px;
    }
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

button.btn {
    font-size: 2rem;
    width: 64px;
    height: 64px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #673ab7;
    color: white;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

button.btn:focus-visible {
    outline: 3px solid #5e35b1;
    outline-offset: 2px;
}

button.btn:hover {
    background-color: #5e35b1;
}

button.btn:active {
    transform: scale(0.9);
}
