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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.3em;
}

.stat {
    display: flex;
    gap: 10px;
}

.label {
    font-weight: bold;
    color: #ffd700;
}

.value {
    color: #fff;
    min-width: 50px;
}

.game-board {
    flex: 1;
    position: relative;
    background-image: 
        linear-gradient(90deg, rgba(139, 90, 43, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(139, 90, 43, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-color: #d4a574;
    overflow: hidden;
    cursor: crosshair;
}

.food-item {
    position: absolute;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
    animation: jump 2s ease-in-out infinite;
}

.food-item:hover {
    transform: scale(1.1);
}

.food-item.bomb {
    animation: jump 1.5s ease-in-out infinite, shake 0.5s ease-in-out infinite;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.food-piece {
    position: absolute;
    font-size: 30px;
    pointer-events: none;
    animation: fall 2s ease-in forwards;
}

@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(200px) rotate(360deg);
    }
}

.explosion {
    position: absolute;
    font-size: 80px;
    pointer-events: none;
    animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
    0% {
        opacity: 1;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(2) rotate(360deg);
    }
}

.score-popup {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    animation: scoreFloat 1s ease-out forwards;
}

.score-popup.negative {
    color: #ff4444;
}

@keyframes scoreFloat {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

.game-over, .start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over.hidden, .start-screen.hidden {
    display: none;
}

.game-over-content, .start-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-over-content h2, .start-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #333;
}

.game-over-content p {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #666;
}

.instructions {
    margin: 30px 0;
    text-align: left;
}

.instructions p {
    font-size: 1.2em;
    margin: 10px 0;
    color: #555;
}

.btn {
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.95);
}

.btn-start {
    padding: 20px 60px;
    font-size: 1.5em;
}

.bomb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.3);
    pointer-events: none;
    z-index: 999;
    animation: flash 0.5s ease-in-out;
}

.bomb-overlay.hidden {
    display: none;
}

@keyframes flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .game-stats {
        font-size: 1em;
        gap: 20px;
    }
    
    .food-item {
        font-size: 40px;
    }
}
