.temagix-spelverslagen .table {
    width: 100%;
}

.temagix-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
    margin: 0 0 1.25rem;
}

.temagix-filters label {
    display: grid;
    gap: .25rem;
    margin: 0;
}

.temagix-filters label span {
    color: color-mix(in srgb, currentColor 70%, transparent);
    font-size: .85rem;
    font-weight: 600;
}

.temagix-filters select {
    width: 100%;
    min-height: 2.5rem;
    padding: .35rem .5rem;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 6px;
    background: transparent;
    color: inherit;
}

.temagix-filter-actions {
    display: flex;
    gap: .6rem;
    align-items: center;
}

.temagix-filter-actions button,
.temagix-filter-actions a {
    min-height: 2.5rem;
    padding: .45rem .75rem;
    border-radius: 6px;
}

.temagix-filter-actions button {
    border: 1px solid #c75b2a;
    background: #c75b2a;
    color: #fff;
}

.temagix-filter-actions a {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.temagix-playday-list {
    display: grid;
    gap: 1.25rem;
}

.temagix-playday {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 8px;
    padding: 1rem;
}

.temagix-playday-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.temagix-playday-header h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.temagix-playday-header h1 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.temagix-playday-header a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

.temagix-playday-date,
.temagix-playday-meta,
.temagix-muted {
    color: color-mix(in srgb, currentColor 65%, transparent);
}

.temagix-playday-date {
    margin: 0 0 .25rem;
    font-size: .95rem;
}

.temagix-playday-meta {
    margin: .35rem 0 0;
}

.temagix-winner {
    min-width: 10rem;
    padding: .65rem .75rem;
    border-left: 4px solid #bf8f00;
    background: color-mix(in srgb, #bf8f00 12%, transparent);
}

.temagix-winner span {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
}

.temagix-winner strong {
    display: block;
    font-size: 1.05rem;
}

.temagix-playday-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, .8fr);
    gap: 1rem;
}

.temagix-playday-grid h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
}

.temagix-score-list,
.temagix-expansion-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.temagix-score-list {
    display: grid;
    gap: .35rem;
}

.temagix-score-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.temagix-expansion-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.temagix-expansion-list li {
    padding: .25rem .5rem;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 999px;
    font-size: .9rem;
}

.temagix-playday-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.temagix-back-link {
    margin: 0 0 1rem;
}

.temagix-playday-detail {
    padding: 1.25rem;
}

.temagix-detail-section {
    margin-top: 1.25rem;
}

.temagix-detail-section h2 {
    margin: 0 0 .65rem;
    font-size: 1.1rem;
}

.temagix-score-table-wrap {
    overflow-x: auto;
}

.temagix-score-table {
    width: 100%;
    border-collapse: collapse;
}

.temagix-score-table th,
.temagix-score-table td {
    padding: .45rem .55rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    text-align: left;
    white-space: nowrap;
}

.temagix-score-table th {
    color: color-mix(in srgb, currentColor 70%, transparent);
    font-size: .85rem;
    font-weight: 600;
}

.temagix-score-table .is-winner td {
    background: color-mix(in srgb, #bf8f00 10%, transparent);
}

.temagix-standings-table td:first-child,
.temagix-standings-table th:first-child {
    text-align: center;
    width: 3rem;
}

.temagix-standings-table .temagix-muted {
    display: block;
    font-size: .85rem;
}

.temagix-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.temagix-record-panel {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 8px;
    padding: 1rem;
}

.temagix-record-panel h2 {
    margin: 0 0 .75rem;
    font-size: 1.1rem;
}

.temagix-record-list {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding-left: 1.25rem;
}

.temagix-record-list li {
    padding-bottom: .55rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.temagix-record-list li::marker {
    font-weight: 700;
}

.temagix-record-list span {
    display: grid;
    gap: .1rem;
}

.temagix-record-list b {
    display: block;
    margin-top: .2rem;
    font-size: 1.15rem;
}

.temagix-marstronaut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.temagix-marstronaut-card {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 8px;
    padding: 1rem;
}

.temagix-marstronaut-card-portrait {
    display: block;
    margin-bottom: 1rem;
}

.temagix-marstronaut-card-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.temagix-marstronaut-card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.temagix-marstronaut-card h2 a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

.temagix-marstronaut-card header p {
    margin: .25rem 0 1rem;
    color: color-mix(in srgb, currentColor 65%, transparent);
}

.temagix-marstronaut-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.temagix-marstronaut-card dt {
    color: color-mix(in srgb, currentColor 65%, transparent);
    font-size: .85rem;
}

.temagix-marstronaut-card dd {
    margin: .1rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.temagix-card-link {
    margin: 1rem 0 0;
}

.temagix-marstronaut-detail {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 8px;
    padding: 1.25rem;
}

.temagix-marstronaut-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.temagix-marstronaut-detail-header h1 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.temagix-marstronaut-portrait {
    flex: 0 0 clamp(8rem, 22vw, 13rem);
    margin: 0;
}

.temagix-marstronaut-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.temagix-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .75rem;
    margin: 1.25rem 0 0;
}

.temagix-stat-grid div {
    padding: .75rem;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 8px;
}

.temagix-stat-grid dt {
    color: color-mix(in srgb, currentColor 65%, transparent);
    font-size: .85rem;
}

.temagix-stat-grid dd {
    margin: .15rem 0 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.temagix-inline-badge {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .35rem;
    border-radius: 999px;
    background: color-mix(in srgb, #bf8f00 18%, transparent);
    color: inherit;
    font-size: .78rem;
    font-weight: 700;
}

.temagix-empty {
    margin: 0;
}

@media (max-width: 520px) {
    .temagix-marstronaut-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .temagix-marstronaut-portrait {
        flex-basis: auto;
        width: min(100%, 14rem);
    }
}

@media (max-width: 760px) {
    .temagix-filters {
        grid-template-columns: 1fr;
    }

    .temagix-playday-header,
    .temagix-playday-grid {
        display: block;
    }

    .temagix-winner,
    .temagix-playday-grid section + section {
        margin-top: 1rem;
    }
}
