* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #1e1e2e;
    color: #cdd6f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 420px;
    width: 100%;
}

.card {
    background: #313244;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

h2 {
    margin-bottom: 16px;
    color: #89b4fa;
    font-size: 1.4rem;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #45475a;
    border-radius: 6px;
    background: #1e1e2e;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: #89b4fa;
}

button {
    width: 100%;
    padding: 12px;
    background: #89b4fa;
    border: none;
    border-radius: 6px;
    color: #11111b;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

button:hover {
    background: #b4befe;
}

.btn-secondary {
    background: transparent;
    color: #cdd6f4;
}

.btn-secondary:hover {
    background: #45475a;
}

.btn-danger {
    background: #f38ba8;
    color: #11111b;
}

.btn-danger:hover {
    background: #f5e0dc;
}

.score-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.score-box input {
    margin: 0;
    flex: 1;
}

.score-box button {
    margin: 0;
    width: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #45475a;
}

th {
    color: #f9e2af;
}

.hidden {
    display: none;
}

#msg {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}
