/* ── Score board ───────────────────────────────────────────────── */
.score-board {
    text-align: center;
}

.score-players {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.score-player {
    background: linear-gradient(135deg, #fdf8f2 0%, #f0dfd0 100%);
    border: 2px solid #e8d8c4;
    border-radius: 12px;
    padding: 20px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.score-player.leading {
    border-color: #c96a2a;
    box-shadow: 0 4px 16px rgba(201, 106, 42, 0.2);
}

.score-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #4a3324;
    margin-bottom: 8px;
}

.score-total {
    font-family: 'Lora', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: #9b5418;
    line-height: 1;
}

.score-vs {
    font-weight: bold;
    color: #b8a090;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.score-actions {
    display: flex;
    justify-content: center;
}

/* ── Secondary button ──────────────────────────────────────────── */
.btn-secondary {
    padding: 10px 24px;
    background: white;
    color: #c96a2a;
    border: 2px solid #c96a2a;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
}

.btn-secondary:hover {
    background: #fdf0e4;
}

/* ── Rounds list ───────────────────────────────────────────────── */
.rounds-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-rounds {
    color: #b8a090;
    font-style: italic;
    text-align: center;
    padding: 16px 0;
}

.round-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fdf8f2 0%, #f0dfd0 100%);
    border: 1px solid #e8d8c4;
    border-radius: 8px;
    padding: 12px 16px;
}

.round-num {
    font-size: 0.85rem;
    color: #b8a090;
    min-width: 28px;
}

.round-score {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #9b5418;
    flex: 1;
    text-align: center;
}

.round-dash {
    color: #b8a090;
    font-size: 1rem;
}

.round-delete-btn {
    background: transparent;
    border: none;
    color: #c0a090;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    min-height: 36px;
    min-width: 36px;
}

.round-delete-btn:hover {
    color: #b04040;
    background: #fff0f0;
}

/* ── Confirm overlay ───────────────────────────────────────────── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 32, 22, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.confirm-overlay.hidden {
    display: none;
}

.confirm-box {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(80, 30, 0, 0.25);
}

.confirm-box p {
    color: #4a3324;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ── Utility ───────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .score-total {
        font-size: 2.2rem;
    }

    .score-name {
        font-size: 0.95rem;
    }
}
