/* Gecko Swing - Game Specific Styles */

/* Hide camera video - only show game graphics */
#videoElement {
    display: none !important;
}

/* Jungle background */
.game-container {
    background: linear-gradient(180deg,
        #0a2010 0%,
        #1a3a2a 30%,
        #2a5a3a 60%,
        #1a4a2a 100%);
}

/* Game Title */
.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #26a69a;
    text-shadow:
        0 0 10px rgba(38, 166, 154, 0.8),
        0 0 20px rgba(38, 166, 154, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
    pointer-events: none;
}

/* Stats Display */
.stats-display {
    position: absolute;
    top: 150px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 15px;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-weight: bold;
    color: #ff6666;
}

/* High Score */
.high-score {
    font-size: 0.85rem;
    color: #ffcc44;
    margin-top: 5px;
}

/* Score Panel styling */
.score-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 50, 50, 0.3);
}

.score-value {
    color: #ff6666;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

/* 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.8rem;
    color: #ddd;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 100;
}

/* Game Over Overlay */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.game-over-overlay.visible {
    display: flex;
}

.game-over-title {
    font-size: 3.5rem;
    color: #ff4444;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    margin-bottom: 30px;
}

.final-score, .final-stars, .final-distance {
    font-size: 1.6rem;
    color: #ffaa44;
    margin: 10px 0;
}

/* Combo Display */
.combo-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    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: 5rem;
    font-weight: bold;
    color: #ff3333;
    text-shadow:
        0 0 20px rgba(255, 50, 50, 0.8),
        0 0 40px rgba(255, 50, 50, 0.6);
}

.combo-label {
    font-size: 1.5rem;
    color: #ffaa44;
    text-shadow: 0 0 10px rgba(255, 170, 68, 0.5);
}

@keyframes comboPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Message popup */
.message-popup {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ff3333;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 150;
    pointer-events: none;
    text-align: center;
}

.message-popup.visible {
    opacity: 1;
}

.message-popup.positive {
    border-color: #00ff88;
    color: #00ff88;
}

.message-popup.negative {
    border-color: #ff4444;
    color: #ff4444;
}

.message-popup.special {
    border-color: #ffaa44;
    color: #ffaa44;
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.5rem;
    }

    .instructions {
        font-size: 0.6rem;
        padding: 8px 15px;
    }

    .game-over-title {
        font-size: 2.5rem;
    }

    .stats-display {
        font-size: 0.9rem;
    }

    .message-popup {
        font-size: 1.4rem;
        padding: 10px 25px;
    }

    .combo-count {
        font-size: 3.5rem;
    }
    .stats-display {
        top: 120px;
    }
}
