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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: linear-gradient(135deg, #4EC0CA 0%, #70C5CE 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.score-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    font-weight: bold;
}

.current-score, .best-score {
    background: #FFD700;
    padding: 10px 20px;
    border-radius: 10px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid #FFA500;
}

.current-score span, .best-score span {
    font-size: 18px;
    color: #FF6B00;
}

.game-area {
    position: relative;
    margin-bottom: 20px;
    border: 4px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom, #4EC0CA 0%, #70C5CE 100%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 30px;
}

.game-title {
    text-align: center;
    margin-bottom: 30px;
}

.game-title .bird-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.game-title h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-title p {
    font-size: 12px;
    color: #CCC;
    margin-top: 10px;
}

.game-over-title {
    text-align: center;
    margin-bottom: 30px;
}

.game-over-title h2 {
    font-size: 24px;
    color: #FF6B6B;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.final-score {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 10px;
    border: 3px solid #FFD700;
}

.final-score p {
    font-size: 14px;
    margin: 10px 0;
}

.final-score span {
    font-size: 24px;
    color: #FFD700;
    font-weight: bold;
}

.start-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #2E7D32;
    font-family: inherit;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #5CBF60 0%, #4CAF50 100%);
}

.start-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.instructions {
    margin-top: 30px;
    text-align: center;
}

.instructions p {
    font-size: 11px;
    color: #AAA;
    margin: 8px 0;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F5F5F5;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    border: 2px solid #DDD;
}

.info-icon {
    font-size: 20px;
}

.info-text {
    flex: 1;
}

@media (max-width: 480px) {
    .game-container {
        padding: 20px;
    }

    .game-header h1 {
        font-size: 24px;
    }

    .score-display {
        font-size: 12px;
    }

    .current-score, .best-score {
        padding: 8px 15px;
    }

    .current-score span, .best-score span {
        font-size: 16px;
    }

    .game-title .bird-icon {
        font-size: 60px;
    }

    .game-title h2 {
        font-size: 20px;
    }

    .start-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}
