body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.heatmap-container {
    width: 95%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;
    margin-bottom: 30px;
}

.red-button {
    width: 200px;
    height: 200px;
    background-color: #ff0000;
    border: 10px solid #cc0000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    position: relative;
    margin: 20px 0;
}

.counter-container {
    font-family: 'Archivo Black', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
    margin-bottom: 30px;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.custom-sound-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bland-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 5px;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
    text-transform: lowercase;
}

.bland-link:hover {
    opacity: 1;
    color: #444;
}

.bland-link.success { color: #2ecc71; text-decoration: none; font-weight: bold; }
.bland-link.danger { color: #ff4757; }

.map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#worldMap {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Force 2:1 alignment */
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .red-button {
        width: 120px;
        height: 120px;
        font-size: 50px;
        margin: 15px 0;
    }
    #counter {
        font-size: 2.5rem;
    }
    .counter-container {
        margin-bottom: 20px;
    }
    .heatmap-container {
        margin-bottom: 15px;
        max-width: 100%;
    }
    .heatmap-label {
        font-size: 0.6rem;
    }
    .footer-actions {
        gap: 8px;
    }
}

#heatmapCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heatmap-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#counter {
    font-size: 4rem; /* Reduced from 8rem */
    background: linear-gradient(180deg, #ff0000 0%, #800000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    margin: 0;
}

.label {
    font-size: 1.2rem; /* Reduced from 2rem */
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

@media (max-width: 600px) {
    #counter {
        font-size: 3rem;
    }
    .label {
        font-size: 1rem;
    }
}

.red-button {
    width: 200px;
    height: 200px;
    background-color: #ff0000;
    border: 10px solid #cc0000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    position: relative;
}

.fart-particle {
    position: fixed;
    pointer-events: none;
    font-size: 2rem;
    z-index: 100;
    animation: float-away 0.8s ease-out forwards;
}

@keyframes float-away {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(2);
        opacity: 0;
    }
}

.red-button:active {
    transform: translateY(4px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.red-button:hover {
    background-color: #ff3333;
}
