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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 15px;
    color: white;
}

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

.stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    min-width: 160px;
}

/* Layout Principal */
.game-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.zoo-section, .actions-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e9ecef;
}

/* Grid de Animais */
.animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    min-height: 200px;
}

.animal {
    background: white;
    border: 3px solid #4CAF50;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.animal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.animal.hungry {
    border-color: #ff9800;
    background: #fff3e0;
}

.animal.sick {
    border-color: #f44336;
    background: #ffebee;
}

.animal-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.animal-info {
    font-size: 0.9em;
    margin: 3px 0;
}

/* Botões */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: left;
}

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn.primary {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
}

.btn.success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn.warning {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
}

.btn.info {
    background: linear-gradient(45deg, #00bcd4, #0097a7);
    color: white;
}

.btn.secondary {
    background: linear-gradient(45deg, #9c27b0, #7b1fa2);
    color: white;
}

/* Loja */
.animals-shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.shop-animal {
    background: white;
    border: 2px solid #2196F3;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-animal:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.shop-animal-emoji {
    font-size: 2.5em;
    margin-bottom: 8px;
}

/* Mensagens */
.messages {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.message {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.95em;
}

.message.info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.message.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.message.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.message.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.empty-zoo {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 50px 20px;
    font-size: 1.2em;
    grid-column: 1 / -1;
}

/* Barras de progresso */
.stat-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin-top: 5px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.hunger-fill { background: #ffc107; }
.health-fill { background: #28a745; }

/* Responsivo */
@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .stat {
        min-width: 200px;
    }
    
    .animals-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}
</style>