/* ... (all previous styles are the same until #score-display) ... */
body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#maintenance-screen {
    background-color: #c0392b;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid white;
}

#connection-ui {
    background-color: #34495e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    min-width: 350px;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
}

canvas {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#game-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#score-display {
    font-size: 2em;
    text-shadow: 2px 2px 4px #000;
}

/* NEW: Timer Style */
#timer-display {
    font-size: 3em;
    font-weight: bold;
    color: #f1c40f; /* Yellow */
    text-shadow: 2px 2px 4px #000;
}

#game-status-display {
    font-size: 1.8em;
    text-shadow: 2px 2px 4px #000;
}

#choices {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
}

input, button {
    font-size: 1.1em;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

button {
    background-color: #3498db;
    color: white;
    transition: background-color 0.2s;
}
button:hover { background-color: #2980b9; }

.choice-btn { font-size: 2em; }
.choice-btn.disabled { background-color: #95a5a6; cursor: not-allowed; }

#play-again-btn, #rematch-btn { background-color: #2ecc71; }
#play-again-btn:hover, #rematch-btn:hover { background-color: #27ae60; }

#leave-match-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #e74c3c;
}
#leave-match-btn:hover { background-color: #c0392b; }
