:root {
    --ri-brown: #7B3F00;
    --ri-brown-dark: #5C2E00;
    --ri-gold: #C8960C;
}

.bg-ri { background-color: var(--ri-brown) !important; }

body { background-color: #f8f5f0; }

/* Scorecard table */
.scorecard th, .scorecard td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    padding: 0.3rem 0.5rem;
    font-size: 0.875rem;
}
.scorecard thead tr:first-child th { background-color: rgba(123, 63, 0, 0.55); color: #fff; }
.scorecard .out-row td, .scorecard .in-row td, .scorecard .total-row td {
    background-color: #f0e8dc;
    font-weight: 600;
}
.scorecard input[type=number] {
    width: 3.5rem;
    text-align: center;
    padding: 0.15rem 0.25rem;
}
.pts-0  { color: #999; }
.pts-1  { color: #333; }
.pts-2  { color: #2563eb; }
.pts-3  { color: #16a34a; }
.pts-4  { color: #dc2626; font-weight: 700; }
.pts-5p { color: #7c3aed; font-weight: 700; }

/* Player tabs on score entry */
.nav-pills .nav-link.active { background-color: var(--ri-brown); }

/* Dashboard stat cards */
.stat-card { border-left: 4px solid var(--ri-brown); }

/* Rank badges */
.badge[class*="rank-"] { background-color: #6c757d; color: #fff; }
.badge.rank-1 { background-color: #FFD700; color: #000; }
.badge.rank-2 { background-color: #C0C0C0; color: #000; }
.badge.rank-3 { background-color: #CD7F32; color: #fff; }

footer { background-color: var(--ri-brown); }

/* All-time records cards */
.record-card {
    border-top: 4px solid var(--ri-brown);
    text-align: center;
}
.record-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.record-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 0.4rem;
}
.record-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.record-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ri-brown);
}
.record-detail {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.4rem;
}
