/* --- Game Controls & Messages --- */
#forfeit-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 25;
}

#forfeit-button {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #ff4444;
    color: white;
    opacity: 0.8;
    transition: background-color 0.2s ease;
}

#forfeit-button:hover {
    opacity: 1;
    background-color: #ff2222;
}

#game-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
     z-index: 20;
}

#end-turn-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    margin-bottom: 10px;
}
#end-turn-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Container for Message Area and Turn Counter */
#center-display-area {
    display: flex;
    justify-content: space-between; /* Space out turn and message */
    align-items: center;
    padding: 5px 15px; /* Add some padding */
    height: 30px; /* Fixed height */
    position: relative;
    z-index: 5;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: rgba(50, 50, 50, 0.3); /* Semi-transparent dark grey */
}

#message-area {
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: white; /* Make text white */
    text-shadow: 1px 1px 3px black, -1px -1px 3px black, 1px -1px 3px black, -1px 1px 3px black; /* Thick black drop shadow */
    flex-grow: 1; /* Allow message area to take available space */
}

#turn-counter-display {
    font-size: 1.1em;
    font-weight: bold;
    position: relative; /* Ensure it's above player areas if needed */
    z-index: 5;
    color: white; /* Make text white */
    text-shadow: 1px 1px 3px black, -1px -1px 3px black, 1px -1px 3px black, -1px 1px 3px black; /* Thick black drop shadow */
}

/* --- Game Over Screen --- */
#game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}
#game-over-overlay h2 {
    font-size: 3em;
    margin-bottom: 20px;
}
#restart-button {
     padding: 15px 30px;
    font-size: 1.5em;
    cursor: pointer;
}

/* Mana Crystal Styles */
.mana-crystal {
    width: 15px;
    height: 15px;
    border-radius: 50%; /* Make it round */
    border: 2px solid #007bff; /* Blue outline */
    background-color: transparent; /* Empty by default */
    box-sizing: border-box;
}

.mana-crystal.available {
    background-color: #007bff; /* Filled blue */
}

/* Style for temporary mana crystals (e.g., from The Coin) */
.mana-crystal.temporary-mana {
    background-color: gold; /* Make it gold */
    border-color: darkorange; /* Darker orange border */
    /* Optional: Add a subtle glow */
    box-shadow: 0 0 5px 1px gold;
}
