.round-history {
    display: grid;
    padding: var(--space-4);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-panel);
    background: var(--color-surface);
    gap: var(--space-4);
}

.round-history__header {
    display: grid;
    gap: var(--space-1);
}

.round-history__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
}

.round-history__intro {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.round-history__table-wrap {
    overflow-x: auto;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-panel);
    scrollbar-color: var(--color-border-strong) transparent;
    scrollbar-width: thin;
}

.round-history__table-wrap::-webkit-scrollbar {
    height: var(--space-2);
}

.round-history__table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.round-history__table-wrap::-webkit-scrollbar-thumb {
    border-radius: var(--radius-panel);
    background: var(--color-border-strong);
}

.round-history__table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.round-history__head {
    background: var(--color-surface-muted);
}

.round-history__heading {
    padding: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-align: left;
}

.round-history__heading--number {
    text-align: right;
}

.round-history__row {
    border-bottom: var(--border-width) solid var(--color-border);
}

.round-history__row--link {
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease);
}

.round-history__row--link:hover {
    background: var(--color-action-soft);
}

.round-history__row--link:focus-visible {
    box-shadow: inset var(--focus-ring);
}

.round-history__cell {
    padding: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.round-history__cell--round {
    color: var(--color-action);
    font-weight: var(--weight-semibold);
}

.round-history__cell--correct {
    color: var(--color-correct);
    font-weight: var(--weight-semibold);
    text-align: right;
}

.round-history__cell--wrong {
    color: var(--color-wrong);
    font-weight: var(--weight-semibold);
    text-align: right;
}
