
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #10131a;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scoreboard {
    width: 90%;
    max-width: 900px;
}

h1 {
    text-align: center;
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 40px;
}

#players {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #202633;
    padding: 24px 30px;
    border-radius: 12px;
}

.player-name {
    font-size: 26px;
    font-weight: bold;
}

.player-score {
    font-size: 38px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}



/* CONTROL PANEL */

.control-panel {
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
}

.control-panel h1 {
    font-size: 30px;
    letter-spacing: 3px;
}

.control-panel h2 {
    margin-bottom: 20px;
}

#login-section,
#admin-section {
    background: #202633;
    padding: 25px;
    border-radius: 12px;
}

.control-panel input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #414b5c;
    border-radius: 7px;
    background: #101722;
    color: white;
    font-size: 16px;
}

.control-panel button {
    padding: 12px 18px;
    border: none;
    border-radius: 7px;
    background: #e81e4d;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.control-panel button:hover {
    opacity: 0.85;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #414b5c;
}

.control-player-name {
    flex: 1;
    font-size: 17px;
    font-weight: bold;
}

.control-player-score {
    min-width: 45px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.score-buttons {
    display: flex;
    gap: 6px;
}

.score-buttons button {
    min-width: 42px;
    font-size: 20px;
}

.remove-player {
    background: #555 !important;
}

.add-player {
    margin-top: 25px;
}

#status-message,
#login-message {
    color: #b7c0ce;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}


a.login-button {
    display: inline-block;
    margin: 30px auto 0;
    padding: 14px 28px;
    background-color: #e81e4d;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

a.login-button:hover {
    background-color: #c91842;
}

#reset-button {
    background: #a82323;
    margin-right: 8px;
}

#reset-button:hover {
    background: #d12d2d;
}