.scoresheet {
    margin: 3rem auto;
    max-width: 1024px;
}

.scoresheet__heading {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
}

.scoresheet__headingBreak {
    display: none;
}

.scoresheet__date {
    display: block;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    text-align: right;
}

.scoresheet__tableWrapper {
    margin-top: 1rem;
}

.scoresheet__tableWrapper + .scoresheet__tableWrapper {
    margin-top: 6rem;
}

.scoresheet__table {
    border-collapse: collapse;
    width: 100%;
}

.scoresheet__tableHeader,
.scoresheet__tableData {
    border: 1px solid #000;
    line-height: 1.5;
    padding: 1rem;
}

.scoresheet__tableHeader {
    font-weight: 600;
}

.scoresheet__tableHeader--category {
    min-width: 8em;
    width: 25%;
}

.scoresheet__tableHeader--rank {
    width: 2em;
}

.scoresheet__tableData {
    position: relative;
    text-align: center;
}

.scoresheet__tableData:has(.scoresheet__value) {
    vertical-align: top;
}

.scoresheet__tableData--empty {
    background-color: #ccc;
}

.scoresheet__player {
    display: block;
    line-height: 1.5;
    text-align: left;
}

.scoresheet__player--top {
    text-align: center;
}

.scoresheet__team {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.25rem;
    text-align: right;
}

.scoresheet__team::before {
    content: "（";
}

.scoresheet__team::after {
    content: "）";
}

.scoresheet__value {
    display: block;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.scoresheet__value:last-of-type {
    margin-bottom: 1.25em;
}

.scoresheet__points {
    display: inline-block;
    text-align: right;
    width: 1.125em;
}

.scoresheet__separator {
    margin: 0 0.25em;
}

.scoresheet__victoryOrDefeat {
    bottom: 0.5em;
    box-sizing: border-box;
    display: block;
    line-height: 1.5;
    position: absolute;
    text-align: center;
    width: calc(100% - 2rem);
}

.scoresheet__back {
    display: inline-block;
    margin-top: 1rem;
}

@media (width < 768px) {
    .scoresheet {
        margin: 3rem 1rem;
    }

    .scoresheet__heading {
        font-size: 1.5rem;
    }

    .scoresheet__headingBreak {
        display: block;
    }

    .scoresheet__tableWrapper {
        overflow-x: scroll;
    }
}
