/**
 * Coin Burst Animation Styles
 */
.cba-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden; /* Crucial to prevent coins from appearing outside the viewport */
}

.gc-coin-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999; /* Slightly lower than cba-layer if both are used, but still high */
    overflow: hidden;
}

.cba-particle {
    position: absolute;
    will-change: transform, opacity;
}

.cba-coin-image {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    display: block;
}

.animated-coin {
    position: absolute;
    width: 20px; /* Consistent with COIN_IMAGE_PATH */
    height: 20px;
    display: block;
    pointer-events: none;
    will-change: transform, opacity, scale;
}

.gc-coin-balance-global {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001; /* Ensure it's above everything else */
    background: rgba(255, 215, 0, 0.9); /* Gold-like background */
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 80px; /* Ensure it has some width even with 0 coins */
    text-align: center;
}

/**
 * Reduced Motion & Accessibility Fallback
 */
.cba-pill {
    position: fixed;
    padding: 6px 12px;
    background: gold;
    color: #333;
    border-radius: 16px;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: bold;
    will-change: transform, opacity;
    animation: cba-pill-fade 800ms ease-out forwards;
    z-index: 10001;
}

@keyframes cba-pill-fade {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-25px) scale(0.8);
        opacity: 0;
    }
}

