* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a2e;
    font-family: system-ui, -apple-system, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

/* Пузырёк */
.bubble {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    will-change: transform, opacity;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* Анимация появления — надувание через JS */
.bubble--appear {
    opacity: 0;
    transform: scale(0.1);
}

/* Анимация лопания — через JS */
.bubble--pop {
    pointer-events: none !important;
}

/* UI */
#ui {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 10;
    pointer-events: none;
}

#stats {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px 14px;
    backdrop-filter: blur(10px);
    text-align: center;
    pointer-events: auto;
}

#count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64d8b5;
    font-variant-numeric: tabular-nums;
    display: block;
    line-height: 1.2;
}

.label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0a0b0;
    opacity: 0.7;
}

/* Анимация счётчика */
@keyframes bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); color: #ff6b8a; }
    100% { transform: scale(1); }
}

.count--bump {
    animation: bump 0.2s ease-out;
}

