:root {
    --primary-color: #009c3b; /* Brazil Green */
    --secondary-color: #ffdf00; /* Brazil Yellow */
    --accent-color: #002776; /* Brazil Blue */
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background-color: #000;
}
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for readability */
}
.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: max(2rem, env(safe-area-inset-top)) 2rem max(2rem, env(safe-area-inset-bottom));
}
#counter-label {
    display: block;
    text-align: center;
    color: var(--text-color);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    min-height: 1em;
}
#counter-value {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-variant-numeric: tabular-nums;
}
.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
button {
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-color);
    flex: 1;
    padding: 2rem 0;
    touch-action: manipulation;
}
button:hover {
    transform: scale(1.05);
}
button:active {
    transform: scale(0.95);
}
button svg {
    width: 32px;
    height: 32px;
    pointer-events: none;
}
@media (max-width: 480px) {
    #counter-value {
        font-size: 5rem;
    }
}