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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    text-align: center;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.2);
    margin-bottom: 2rem;
}

.game-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Score Board */
.score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFE4B5, #FFEFD5);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #FFA500;
}

.score, .high-score, .speed {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    color: #8B4513;
}

.score span:first-child, .high-score span:first-child, .speed span:first-child {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.score span:last-child, .high-score span:last-child, .speed span:last-child {
    font-size: 1.8rem;
    color: #FF6B35;
}

/* Game Canvas */
#gameCanvas {
    border: 3px solid #8B4513;
    border-radius: 15px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 70%, #8FBC8F 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    max-width: 100%;
    height: auto;
}

/* Game Over Screen */
.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #FF6B35;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.game-over h3 {
    font-size: 2rem;
    color: #FF6B35;
    margin-bottom: 15px;
}

.game-over p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #666;
}

.hidden {
    display: none;
}

/* Controls */
.game-controls {
    margin: 30px 0;
}

.controls {
    margin-bottom: 20px;
}

.btn {
    border: none;
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
}

.btn-secondary {
    background: linear-gradient(45deg, #32CD32, #228B22);
}

.btn-danger {
    background: linear-gradient(45deg, #DC143C, #B22222);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.instructions {
    background: linear-gradient(135deg, #FFE4B5, #FFEFD5);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #FFA500;
}

.instructions p {
    margin: 8px 0;
    font-size: 1rem;
    color: #8B4513;
}

/* Features Section */
.game-features {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.2);
}

.game-features h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #FF6B35;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    background: linear-gradient(135deg, #FFE4B5, #FFEFD5);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #FFA500;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #8B4513;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: rgba(139, 69, 19, 0.9);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 3px solid #FFA500;
}

footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Animations */
.score-animation {
    animation: scoreGlow 0.5s ease-in-out;
}

@keyframes scoreGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FFD700; }
    100% { transform: scale(1); }
}

.chicken-jump {
    animation: jump 0.3s ease-out;
}

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

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .game-header h2 {
        font-size: 2rem;
    }
    
    .score-board {
        flex-direction: column;
        gap: 15px;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 400px;
        height: 200px;
    }
    
    .controls .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-over {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .game-header h2 {
        font-size: 1.5rem;
    }
    
    .score span:last-child, .high-score span:last-child, .speed span:last-child {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

