body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    padding: 10px;
}

/* Ribbon / stats bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #111;
    color: #2ecc71;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

    .stats-bar .score-main {
        flex: 1 1 100%;
        font-size: 1.5rem;
        font-weight: bold;
        color: #2ecc71;
        margin-bottom: 5px;
    }

.stat-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.stat-label {
    font-size: 0.75rem;
    color: #ccc;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

    .tabs button {
        padding: 10px 15px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        border: none;
        border-radius: 4px;
        background-color: #eee;
    }

        .tabs button.active {
            background-color: #3498db;
            color: white;
        }

/* Chart container */
.chart-container {
    width: 100%;
    height: 300px;
    margin-bottom: 10px;
}

/* Scorecards */
.sc-card {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 5px solid #2ecc71;
}

    .sc-card h3, .sc-card h4 {
        margin: 0 0 5px 0;
        font-size: 1.1rem;
    }

.sc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5px;
}

    .sc-table th, .sc-table td {
        border: 1px solid #ccc;
        padding: 4px;
        text-align: center;
        font-size: 0.9rem;
    }

    .sc-table tbody tr.sc-out {
        background-color: lightgray !important;
    }

        .sc-table tr.sc-out td {
            color: #555;
        }

/* Responsive tweaks */
@media (max-width: 600px) {
    .stats-bar .score-main {
        font-size: 1.2rem;
    }

    .stat-item {
        min-width: 50px;
    }

    .tabs button {
        font-size: 1rem;
        padding: 12px 10px;
    }

    .chart-container {
        height: 200px;
    }

    .sc-table tbody tr.sc-out {
        background-color: lightgray !important;
    }
}

/* ---- Scorecard Extras ---- */
.sc-extras {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
    line-height: 1.3;
    background: #f4f4f4;
    border-left: 4px solid #888;
    color: #333;
    border-radius: 3px;
}

    /* Label emphasis */
    .sc-extras::before {
        content: "Extras ";
        font-weight: bold;
        margin-right: 4px;
    }

/* Dark mode / dark backgrounds safety */
@media (prefers-color-scheme: dark) {
    .sc-extras {
        background: #1e1e1e;
        color: #eaeaea;
        border-left-color: #aaa;
    }
}

/* Mobile spacing tweak */
@media (max-width: 600px) {
    .sc-extras {
        font-size: 1rem;
        padding: 8px 12px;
    }
}
