* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.game {
    width: 600px;
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

h1 { color: #2d3436; margin-bottom: 10px; }
h2 { color: #636e72; font-size: 24px; text-align: center; }

#setup-area, #player1-area, #guess-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

input {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 24px;
    width: 100%;
}

input:focus { outline: none; border-color: #0984e3; }

button {
    padding: 15px 30px;
    background-color: #00b894;
    border: none;
    color: white;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.num-btn {
    padding: 20px;
    background-color: #f1f2f6;
    border: 2px solid #dfe4ea;
    color: #2d3436;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.num-btn:hover {
    background-color: #74b9ff;
    color: white;
    border-color: #0984e3;
}

/* Red-ish color for "Wrong" or "Loss" in the table */
.status-wrong { color: #e17055; font-weight: bold; }
.status-right { color: #00b894; font-weight: bold; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.hidden { display: none !important; }

button:hover { background-color: #00a085; transform: translateY(-2px); }

.reset-btn { background-color: #e17055; margin-top: 10px; }

.err-text {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    min-height: 22px;
}

/* Table Styling for Results */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
}

th { background-color: #f8f9fa; color: #2d3436; }
.status-win { color: #00b894; font-weight: bold; }
.status-loss { color: #e74c3c; font-weight: bold; }

.hidden { display: none !important; }
.heading span { color: #e17055; font-weight: bold; }