body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #36454F;
    color: #fff;
    margin: 0;
}
#game-container {
    width: 850px;
    padding: 20px;
    background-color: #2c3e50;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.player-area {
    border: 2px solid #5d6d7e;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    background-color: #34495e;
}
.hand-area {
    display: flex;
    justify-content: center;
    min-height: 160px;
    padding: 10px 0;
}

/* Game Log / Status */
#game-log {
    margin: 20px 0;
    padding: 10px;
    background-color: #1abc9c;
    color: #000;
    border-radius: 4px;
    font-weight: bold;
    min-height: 40px;
}

/* Slot for the Computer's Played Card */
#played-card-slot {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    min-height: 160px;
}

#played-card-slot .card {
    border: 5px solid #3498db !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
}

/* Start Button Styling */
#start-game-button {
    padding: 15px 30px;
    font-size: 1.5em;
    cursor: pointer;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: background-color 0.2s;
}

#start-game-button:hover {
    background-color: #16a085;
}

/* Card Styling */
.card {
    width: 90px;
    height: 130px;
    border: 3px solid #f39c12;
    border-radius: 10px;
    margin: 0 7px;
    padding: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #ecf0f1;
    color: #333;
    font-size: 0.9em;
}

/* Card Type Colors */
.Attack { border-left: 5px solid #e74c3c; background-color: #fcecec; }
.Utility { border-left: 5px solid #2ecc71; background-color: #e8f8f2; }
.Resource { border-left: 5px solid #3498db; background-color: #ebf5fb; }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {
    #game-container {
        width: 98%;
        padding: 10px;
    }
    
    .hand-area {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .card {
        width: 75px;
        height: 105px;
        margin: 5px 2px;
        font-size: 0.7em;
    }
}