/* Spider Shooter - Game Specific Styles */

/* Night city background */
.game-container {
    background: linear-gradient(180deg,
        #0a0520 0%,
        #1a0a3a 40%,
        #2a1050 100%);
}

/* Game Title */
.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: #cc0000;
    text-shadow:
        0 0 10px rgba(255, 50, 50, 0.8),
        0 0 20px rgba(255, 50, 50, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
    pointer-events: none;
}

/* Score Panel styling */
.score-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 50, 50, 0.5);
}

.score-value {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.5);
}

.high-score {
    font-size: 0.85rem;
    color: #ff6666;
    margin-top: 5px;
}

/* Combo Display */
.combo-display {
    position: absolute;
    top: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 150;
    pointer-events: none;
}

.combo-display.visible {
    opacity: 1;
    animation: comboPulse 0.5s ease-out;
}

.combo-count {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffaa00;
    text-shadow:
        0 0 15px rgba(255, 170, 0, 0.8),
        0 0 30px rgba(255, 170, 0, 0.6);
}

.combo-label {
    font-size: 1.2rem;
    color: #ff6666;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

@keyframes comboPulse {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #ddd;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 100;
    border: 2px solid rgba(255, 50, 50, 0.3);
}

/* Message popup */
.message-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    padding: 20px 50px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 4px solid #ffaa00;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 200;
    pointer-events: none;
    text-align: center;
}

.message-popup.visible {
    opacity: 1;
    animation: powPulse 0.3s ease-out;
}

@keyframes powPulse {
    0% { transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); }
    50% { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.3rem;
        top: 15px;
    }

    .instructions {
        font-size: 0.7rem;
        padding: 8px 15px;
    }

    .combo-count {
        font-size: 2.5rem;
    }

    .message-popup {
        font-size: 2rem;
        padding: 15px 30px;
    }
}
