:root {
    --chart-width: 300;
    --chart-height: 200;
    --max-value: 100; /* Max height value for bar scaling */
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #ecf0f1;
    color: #34495e;
}

#game-container {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    width: 90%;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

#score-area {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 25px;
    color: #2ecc71;
}

/* --- Puzzle Area and Charts --- */
#puzzle-area {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    text-align: center;
}

svg {
    border: 1px solid #95a5a6;
    background-color: #f7f9fb;
    transform: scaleY(-1); /* Invert Y-axis for standard bar graph visualization */
}

.target-bar {
    fill: #e74c3c; /* Red target bars */
}

.player-bar {
    fill: #3498db; /* Blue player bars */
    transition: all 0.5s ease-out;
}

/* --- Input Controls --- */
#input-controls h2 {
    color: #34495e;
    margin-bottom: 15px;
}

#data-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.input-group input {
    width: 60px;
    padding: 8px;
    font-size: 1em;
    border: 2px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

#check-button {
    padding: 10px 25px;
    font-size: 1.1em;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#check-button:hover:not(:disabled) {
    background-color: #27ae60;
}

#check-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* --- Feedback --- */
#feedback-message {
    min-height: 1.5em;
    margin-top: 20px;
    font-weight: bold;
}