body {
    background-color: #282c34; /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Consolas', monospace; /* Monospaced font for math */
    color: #abb2bf;
}

#game-container {
    text-align: center;
    background-color: #3e4451;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 350px;
}

h1 {
    color: #e06c75; /* Red accent */
    margin-top: 0;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #98c379; /* Green accent */
}

#problem-area {
    background-color: #21252b;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#equation {
    font-size: 3em;
    font-weight: bold;
    color: #61afef; /* Blue accent for numbers */
    margin-bottom: 15px;
    min-height: 1.5em; /* Ensure stable height */
}

/* --- Input Field Styling --- */
#answer-input {
    width: 80%;
    padding: 10px;
    font-size: 1.5em;
    text-align: center;
    border: 3px solid #56b6c2; /* Cyan accent */
    border-radius: 5px;
    outline: none;
    background-color: #282c34;
    color: #ffffff;
}

#answer-input:focus {
    border-color: #c678dd; /* Purple focus accent */
}

/* --- Progress Bar Styling --- */
#progress-bar-container {
    width: 100%;
    height: 15px;
    background-color: #555;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

#progress-bar {
    height: 100%;
    width: 100%; /* Starts full */
    background-color: #f38ba8; /* Pink/Red for time */
    transition: width linear; /* Transition is set in JS */
}

#message {
    margin-top: 20px;
    font-size: 1.2em;
    color: #d19a66; /* Yellow accent */
}

.hidden {
    display: none;
}