/* Coin Catching Game Styles */
.coin-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    overflow: hidden;
}

.game-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
}

.game-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1DB954;
}

.game-controls {
    display: flex;
    gap: 10px;
}

.game-btn {
    padding: 10px 20px;
    background: rgba(29, 185, 84, 0.2);
    border: 2px solid #1DB954;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.game-btn:hover {
    background: #1DB954;
    transform: scale(1.05);
}

.game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-coin {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
    background-size: cover;
    background-position: center;
    border: 3px solid #1DB954;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
    animation: coin-pulse 1s ease-in-out infinite;
}

.game-coin:hover {
    transform: scale(1.2);
}

.album-coin {
    border-color: #1DB954;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.7);
}

.artist-coin {
    border-color: #1ed760;
    box-shadow: 0 0 20px rgba(30, 215, 96, 0.9);
    width: 60px;
    height: 60px;
    animation: artist-coin-glow 1s ease-in-out infinite;
}

.bomb-coin {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.7);
    background: radial-gradient(circle, #ff6666, #ff0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    animation: bomb-shake 0.5s ease-in-out infinite;
}

@keyframes coin-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes artist-coin-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(30, 215, 96, 0.9);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(30, 215, 96, 1);
        transform: scale(1.1);
    }
}

@keyframes bomb-shake {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.score-effect {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    animation: score-float 1s ease-out forwards;
    z-index: 10002;
}

.score-effect.positive {
    color: #1DB954;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.8);
}

.score-effect.negative {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

@keyframes score-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

.album-name-effect {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1DB954;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    animation: album-name-float 2s ease-out forwards;
    z-index: 10003;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes album-name-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8);
    }

    20% {
        transform: translateY(-10px) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
}

.burst-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: burst-fly 0.5s ease-out forwards;
    z-index: 10001;
}

@keyframes burst-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.game-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid rgba(29, 185, 84, 0.3);
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
}

.coin-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #1DB954;
}

.coin-preview.album-coin {
    background: linear-gradient(135deg, #1DB954, #15a043);
}

.coin-preview.artist-coin {
    background: linear-gradient(135deg, #1ed760, #1DB954);
    box-shadow: 0 0 10px rgba(30, 215, 96, 0.5);
}

.coin-preview.bomb-coin {
    background: radial-gradient(circle, #ff6666, #ff0000);
    border-color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .game-stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .game-coin {
        width: 40px;
        height: 40px;
    }

    .artist-coin {
        width: 50px;
        height: 50px;
    }

    .game-instructions {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }
}