.idlerpg-page .lead,
.idlerpg-page .section-text,
.idlerpg-page .command-list,
.idlerpg-page .tips-list,
.idlerpg-page .admin-list {
    max-width: 96ch;
}

.idlerpg-titlebar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2ch;
    max-width: 110ch;
}

.idlerpg-titlebar h1 {
    margin-bottom: .25em;
}

.idlerpg-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: .5ch 1ch;
    margin: .5em 0 1.5em;
    max-width: 110ch;
}

.idlerpg-subnav a {
    border: 1px solid var(--c-lines, currentColor);
    padding: .25em 1ch;
    text-decoration: none;
    background: transparent;
    color: var(--c-link, #0aa);
    box-shadow: inset 0 0 0 0 var(--c-lines, currentColor);
    transition:
        background-color .12s ease-in-out,
        color .12s ease-in-out,
        box-shadow .12s ease-in-out,
        transform .08s ease-in-out;
}

.idlerpg-subnav a:hover,
.idlerpg-subnav a:focus {
    background: color-mix(in srgb, var(--c-link, #0aa) 18%, transparent);
    box-shadow: inset 0 -2px 0 0 var(--c-link, #0aa);
    color: var(--c-fg, inherit);
    outline: none;
}

.idlerpg-subnav a:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--c-link, #0aa) 28%, transparent);
}

.idlerpg-subnav a.active,
.idlerpg-subnav a.active:hover,
.idlerpg-subnav a.active:focus {
    background: var(--c-link, #0aa);
    border-color: var(--c-link, #0aa);
    color: var(--c-bg, #000);
    box-shadow:
        inset 0 -2px 0 0 var(--c-fg, currentColor),
        0 0 0 1px var(--c-link, #0aa);
}

.idlerpg-stats {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
    max-width: 96ch;
    margin: 1em 0 1.5em;
}

.idlerpg-stat {
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
}

.idlerpg-stat strong {
    display: block;
    font-size: 1.35em;
}

.idlerpg-intro {
    max-width: 96ch;
    margin: 1em 0 1.5em;
}

.idlerpg-intro .steps {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1em 0;
}

.idlerpg-intro .step {
    min-width: 0;
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
}

.idlerpg-intro .step strong {
    display: block;
    margin-bottom: .25em;
}

.idlerpg-intro .step code {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.idlerpg-explain {
    max-width: 96ch;
    margin: 1.5em 0;
}

.idlerpg-explain-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
    margin: 1em 0;
}

.idlerpg-explain-card {
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
}

.idlerpg-explain-card h3 {
    margin-top: 0;
}

.idlerpg-page table {
    width: 100%;
    max-width: 110ch;
    margin-bottom: 2em;
}

.idlerpg-page th,
.idlerpg-page td {
    border-bottom: 1px solid var(--c-lines, currentColor);
    padding: .25em .5ch .25em 0;
    text-align: left;
    vertical-align: top;
}

.idlerpg-player-table th:nth-child(1),
.idlerpg-player-table td:nth-child(1),
.idlerpg-player-table th:nth-child(4),
.idlerpg-player-table td:nth-child(4),
.idlerpg-player-table th:nth-child(5),
.idlerpg-player-table td:nth-child(5),
.idlerpg-player-table th:nth-child(7),
.idlerpg-player-table td:nth-child(7),
.idlerpg-player-table th:nth-child(8),
.idlerpg-player-table td:nth-child(8) {
    text-align: center;
}

.idlerpg-player-title {
    opacity: .75;
    font-weight: normal;
}

.idlerpg-table-scroll {
    max-width: 110ch;
    overflow-x: auto;
}

.idlerpg-table-scroll .idlerpg-player-table {
    min-width: 0;
}

.idlerpg-page code,
.idlerpg-sidebar code {
    white-space: nowrap;
}

.idlerpg-page .muted,
.idlerpg-sidebar .muted {
    opacity: .75;
}

.idlerpg-status {
    display: inline-flex;
    align-items: center;
    gap: .45ch;
    white-space: nowrap;
    font-size: .95em;
}

.idlerpg-status::before {
    content: '';
    display: inline-block;
    width: .7em;
    height: .7em;
    border-radius: 999px;
    background: currentColor;
}

.idlerpg-status-online {
    color: #2f80ff;
}

.idlerpg-status-offline {
    color: #b33;
}


.idlerpg-page .warning {
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
    max-width: 96ch;
}

.idlerpg-map-wrap {
    max-width: 760px;
    margin: 1em 0 1.5em;
}

.idlerpg-world-map {
    display: block;
    width: min(100%, 720px);
    height: auto;
    border: 1px solid var(--c-lines, currentColor);
    background: #f3edbd;
}

.idlerpg-map-label {
    font-family: inherit;
    font-style: italic;
    font-size: 16px;
    fill: #4b2d10;
    opacity: .88;
}

.idlerpg-map-small-label {
    font-family: inherit;
    font-size: 11px;
    fill: #4b2d10;
    opacity: .8;
}

.idlerpg-map-marker text {
    font-family: inherit;
    font-size: 12px;
}

.idlerpg-map-marker.online circle {
    fill: #2f80ff;
}

.idlerpg-map-marker.offline circle {
    fill: #b33;
}

.idlerpg-map-marker.quester circle {
    fill: #d99b00;
}

.idlerpg-map-marker circle {
    stroke: #111;
    stroke-width: 1.5;
}

.idlerpg-map-marker text {
    fill: #111;
    paint-order: stroke;
    stroke: #f3edbd;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.idlerpg-world-map a:hover .idlerpg-map-marker circle,
.idlerpg-world-map a:focus .idlerpg-map-marker circle {
    stroke-width: 2.4;
}

.idlerpg-world-map a:hover .idlerpg-map-marker text,
.idlerpg-world-map a:focus .idlerpg-map-marker text {
    font-weight: bold;
}

.idlerpg-map-quest {
    fill: #d99b00;
    stroke: #111;
    stroke-width: 1.5;
}

.idlerpg-map-quest-line {
    fill: none;
    stroke: #d99b00;
    stroke-width: 2;
    stroke-dasharray: 6 5;
}

.idlerpg-profile-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(22em, 1fr));
    max-width: 110ch;
}

.idlerpg-card {
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
}

.idlerpg-card h3 {
    margin-top: 0;
}

.idlerpg-events {
    max-width: 110ch;
    padding-left: 2em;
}

.idlerpg-events li {
    margin-bottom: .5em;
}

.idlerpg-events .event-time,
.idlerpg-events .event-kind {
    opacity: .75;
}

.idlerpg-events .event-icon {
    display: inline-block;
    min-width: 2ch;
}

.idlerpg-filter {
    display: inline-grid;
    grid-template-columns: auto 10ch auto minmax(18ch, 24ch) auto auto;
    gap: .45em .75ch;
    align-items: center;
    max-width: 110ch;
    margin: 1em 0 1.5em;
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .55em 0 .55em 2ch;
}

.idlerpg-player-filter {
    grid-template-columns: auto minmax(28ch, 42ch) auto minmax(10ch, 14ch) auto auto;
}

.idlerpg-filter label {
    display: contents;
}

.idlerpg-filter span {
    opacity: .75;
    line-height: 1;
    white-space: nowrap;
}

.idlerpg-filter select,
.idlerpg-filter input,
.idlerpg-filter button,
.idlerpg-filter .filter-reset {
    box-sizing: border-box;
    height: 1.8em;
    border: 1px solid var(--c-lines, currentColor);
    font: inherit;
    font-size: .95em;
    line-height: 1;
    vertical-align: middle;
}

.idlerpg-filter select,
.idlerpg-filter input {
    width: 100%;
    background: var(--c-bg, #000);
    color: var(--c-fg, inherit);
    padding: 0 .75ch;
}

.idlerpg-filter button,
.idlerpg-filter .filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: transparent;
    color: var(--c-link, #0aa);
    padding: 0 1ch;
    text-decoration: none;
    cursor: pointer;
}

.idlerpg-filter button:hover,
.idlerpg-filter button:focus,
.idlerpg-filter .filter-reset:hover,
.idlerpg-filter .filter-reset:focus {
    background: color-mix(in srgb, var(--c-link, #0aa) 18%, transparent);
    color: var(--c-fg, inherit);
    outline: none;
}

.idlerpg-filter-summary {
    max-width: 110ch;
    margin: -.75em 0 1em;
}

.idlerpg-pager {
    max-width: 110ch;
}

.idlerpg-pager a {
    border: 1px solid var(--c-lines, currentColor);
    padding: .2em .75ch;
    text-decoration: none;
}

.idlerpg-achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    gap: 1em;
    max-width: 110ch;
    margin: 1em 0 2em;
}

.idlerpg-achievement {
    border: 1px solid var(--c-lines, currentColor);
    padding: .85em 1em;
    background: color-mix(in srgb, var(--c-bg, #000) 92%, var(--c-fg, #fff) 8%);
}

.idlerpg-achievement > :first-child {
    margin-top: 0;
}

.idlerpg-achievement > :last-child {
    margin-bottom: 0;
}

.idlerpg-achievement h3,
.idlerpg-achievement h4 {
    margin: 0 0 .35em;
}

.idlerpg-achievement .progress {
    opacity: .75;
    font-size: .92em;
}

.idlerpg-achievement-earners {
    margin-top: .65em;
}

.idlerpg-profile-achievements {
    grid-column: 1 / -1;
}

.idlerpg-profile-events {
    grid-column: 1 / -1;
}

.idlerpg-unique-bonuses {
    padding-left: 1.4em;
    margin-bottom: .5em;
}

.idlerpg-unique-bonuses li {
    margin-bottom: .4em;
}

.idlerpg-profile-stats table,
.idlerpg-profile-items table {
    margin-bottom: 1em;
}

.idlerpg-profile-achievements .idlerpg-achievement-grid {
    margin-bottom: .5em;
}

.idlerpg-room-status {
    max-width: 96ch;
}

.idlerpg-room-status td:first-child {
    opacity: .75;
    white-space: nowrap;
}

.idlerpg-items-table td.unique,
.idlerpg-unique-items td.unique {
    font-style: italic;
}


.idlerpg-commands {
    max-width: 110ch;
}

.idlerpg-command-section {
    border-left: 4px solid var(--c-lines, currentColor);
    margin: 1em 0 1.5em;
    padding: .5em 0 .5em 2ch;
}

.idlerpg-command-section h3 {
    margin-top: 0;
}

.idlerpg-command-section .section-text {
    margin-top: -.25em;
}

.idlerpg-admin-commands {
    margin-top: 2em;
}

.idlerpg-page .command-list {
    padding-left: 1.4em;
}

.idlerpg-page .command-list li {
    margin-bottom: .55em;
}

.idlerpg-sidebar .box {
    border-left: 4px solid var(--c-lines, currentColor);
    margin-bottom: 1em;
    padding: .5em 0 .5em 2ch;
}

.idlerpg-sidebar ul {
    padding-left: 1.4em;
}

.idlerpg-sidebar li {
    margin-bottom: .4em;
}

.idlerpg-sidebar code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.idlerpg-rules {
    max-width: 110ch;
}

.idlerpg-rules-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(24em, 1fr));
    margin: 1em 0;
}

.idlerpg-rule-card {
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
}

.idlerpg-rule-card h3 {
    margin-top: 0;
}

.idlerpg-rule-card table {
    width: min(100%, 68ch);
    max-width: none;
    margin-bottom: 1em;
    table-layout: fixed;
}

.idlerpg-rule-card td {
    text-align: left;
    vertical-align: top;
}

.idlerpg-rule-card td:first-child {
    width: 48%;
    opacity: .75;
    white-space: normal;
}

.idlerpg-rule-card td:last-child {
    width: 52%;
}

.idlerpg-formula {
    max-width: 96ch;
    border-left: 4px solid var(--c-lines, currentColor);
    padding: .5em 0 .5em 2ch;
    margin: 1em 0;
}

@media (max-width: 720px) {
    .idlerpg-intro .steps {
        grid-template-columns: 1fr;
    }

    .idlerpg-titlebar {
        display: block;
    }

    .idlerpg-filter {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: min(100%, 46ch);
        padding-left: 1.4ch;
    }

    .idlerpg-filter label {
        display: contents;
    }

    .idlerpg-filter button,
    .idlerpg-filter .filter-reset {
        width: max-content;
    }

    .idlerpg-table-scroll {
        max-width: 100%;
        overflow-x: visible;
    }

    .idlerpg-table-scroll .idlerpg-player-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .idlerpg-player-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .idlerpg-player-table tbody,
    .idlerpg-player-table tr,
    .idlerpg-player-table td {
        display: block;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    .idlerpg-player-table tr {
        margin-bottom: 1em;
        border-left: 4px solid var(--c-lines, currentColor);
        padding: .35em 0 .35em 1.4ch;
    }

    .idlerpg-player-table td,
    .idlerpg-player-table td:nth-child(n) {
        display: grid;
        grid-template-columns: minmax(8.5em, 38%) minmax(0, 1fr);
        gap: 1ch;
        padding: .3em 0;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .idlerpg-player-table td::before {
        font-weight: bold;
        opacity: .75;
    }

    .idlerpg-player-table td:nth-child(1)::before { content: 'Rank'; }
    .idlerpg-player-table td:nth-child(2)::before { content: 'Player'; }
    .idlerpg-player-table td:nth-child(3)::before { content: 'Class'; }
    .idlerpg-player-table td:nth-child(4)::before { content: 'Level'; }
    .idlerpg-player-table td:nth-child(5)::before { content: 'Next level'; }
    .idlerpg-player-table td:nth-child(6)::before { content: 'Region'; }
    .idlerpg-player-table td:nth-child(7)::before { content: 'Achievements'; }
    .idlerpg-player-table td:nth-child(8)::before { content: 'Status'; }

    .idlerpg-player-table .idlerpg-status {
        white-space: normal;
    }

    .idlerpg-rule-card table {
        table-layout: auto;
    }

    .idlerpg-rule-card td:first-child,
    .idlerpg-rule-card td:last-child {
        width: auto;
    }
}

.idlerpg-season-current {
    max-width: 96ch;
    margin: 1em 0 2em;
}

.idlerpg-season-history {
    display: grid;
    gap: 1em;
    max-width: 110ch;
    margin: 1em 0 2em;
}

.idlerpg-season {
    border: 1px solid var(--c-lines, currentColor);
    background: color-mix(in srgb, var(--c-bg, #000) 94%, var(--c-fg, #fff) 6%);
}

.idlerpg-season > summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35em 2ch;
    padding: .75em 1em;
    cursor: pointer;
    color: var(--c-link, #0aa);
}

.idlerpg-season > summary:hover,
.idlerpg-season > summary:focus {
    background: color-mix(in srgb, var(--c-link, #0aa) 12%, transparent);
    color: var(--c-fg, inherit);
    outline: none;
}

.idlerpg-season > summary span {
    opacity: .8;
    font-weight: normal;
}

.idlerpg-season[open] > summary {
    border-bottom: 1px solid var(--c-lines, currentColor);
}

.idlerpg-season-body {
    padding: .75em 1em 1em;
}

.idlerpg-season-body h4 {
    margin: 1.25em 0 .5em;
}

.idlerpg-season-meta {
    margin-bottom: 1em;
}

.idlerpg-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.idlerpg-season-ranking {
    min-width: 48em;
    margin-bottom: .5em;
}

.idlerpg-season-ranking th:nth-child(1),
.idlerpg-season-ranking td:nth-child(1),
.idlerpg-season-ranking th:nth-child(4),
.idlerpg-season-ranking td:nth-child(4),
.idlerpg-season-ranking th:nth-child(5),
.idlerpg-season-ranking td:nth-child(5),
.idlerpg-season-ranking th:nth-child(6),
.idlerpg-season-ranking td:nth-child(6) {
    text-align: center;
}

.idlerpg-season-ranking tr.champion td {
    font-weight: bold;
}

.idlerpg-season-ranking tr.champion td:first-child::before {
    content: '🏆 ';
}

@media (max-width: 720px) {
    .idlerpg-season > summary {
        display: block;
    }

    .idlerpg-season > summary span {
        display: block;
        margin-top: .25em;
    }
}

/* Player directory and profile presentation. */
.idlerpg-player-panel,
.idlerpg-profile-panel {
    width: min(100%, 136ch);
    max-width: 136ch;
    margin: 1em 0 2em;
    border: 1px solid var(--c-lines, currentColor);
    background: color-mix(in srgb, var(--c-bg, #000) 94%, var(--c-fg, #fff) 6%);
    padding: 1em 1.25em;
}

.idlerpg-player-panel {
    width: 100%;
    max-width: 148ch;
}

.idlerpg-player-panel > :first-child,
.idlerpg-profile-panel > :first-child {
    margin-top: 0;
}

.idlerpg-player-panel > :last-child,
.idlerpg-profile-panel > :last-child {
    margin-bottom: 0;
}

.idlerpg-player-panel-header,
.idlerpg-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em 2ch;
    border-bottom: 1px solid var(--c-lines, currentColor);
    padding-bottom: .8em;
    margin-bottom: 1em;
}

.idlerpg-player-panel-header h3,
.idlerpg-profile-header h3 {
    margin: 0;
}

.idlerpg-player-panel-header p {
    margin: .2em 0 0;
}

.idlerpg-profile-kicker {
    margin: 0 0 .15em;
    opacity: .7;
    font-size: .9em;
}

.idlerpg-profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .45em .6ch;
}

.idlerpg-profile-badge,
.idlerpg-profile-header .idlerpg-status {
    border: 1px solid var(--c-lines, currentColor);
    padding: .18em .55ch;
    line-height: 1.35;
}

.idlerpg-profile-header .idlerpg-player-title {
    display: inline;
}

.idlerpg-profile-panel .idlerpg-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 1.35em 2ch;
}

.idlerpg-profile-section {
    min-width: 0;
}

.idlerpg-profile-section h3 {
    margin: 0 0 .45em;
}

.idlerpg-profile-section table {
    width: 100%;
    max-width: none;
    margin: 0;
}

.idlerpg-profile-section th,
.idlerpg-profile-section td {
    padding-top: .38em;
    padding-bottom: .38em;
}

.idlerpg-profile-table th {
    width: 48%;
    opacity: .78;
    font-weight: normal;
}

.idlerpg-profile-table td,
.idlerpg-profile-stats td {
    text-align: right;
}

.idlerpg-profile-items,
.idlerpg-profile-bonuses {
    border-top: 1px solid var(--c-lines, currentColor);
    padding-top: 1em;
}

.idlerpg-profile-achievements,
.idlerpg-profile-events {
    grid-column: 1 / -1;
    border-top: 1px solid var(--c-lines, currentColor);
    padding-top: 1em;
}

.idlerpg-profile-panel .idlerpg-achievement-grid {
    margin: .75em 0 0;
}

.idlerpg-profile-panel .idlerpg-events {
    margin-bottom: .5em;
}

.idlerpg-player-panel .idlerpg-filter {
    display: grid;
    grid-template-columns: auto minmax(28ch, 1fr) auto minmax(10ch, 14ch) auto auto;
    width: 100%;
    max-width: none;
    margin: 0 0 1em;
    border-left: 0;
    padding: 0;
}

.idlerpg-player-panel .idlerpg-table-scroll {
    width: 100%;
    max-width: none;
    overflow-x: visible;
}

.idlerpg-player-panel .idlerpg-player-table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1em;
    border-collapse: collapse;
    table-layout: auto;
    background: transparent;
}

.idlerpg-player-table th,
.idlerpg-player-table td {
    padding: .52em 1ch .52em 0;
    overflow-wrap: normal;
    word-break: normal;
}

.idlerpg-player-table th:last-child,
.idlerpg-player-table td:last-child {
    padding-right: 0;
}

.idlerpg-player-table thead th {
    white-space: nowrap;
    opacity: .82;
}

.idlerpg-player-table tbody tr {
    background: transparent;
    transition: background-color .12s ease-in-out;
}

.idlerpg-player-table tbody tr:hover {
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.idlerpg-player-table th:nth-child(1),
.idlerpg-player-table td:nth-child(1),
.idlerpg-player-table th:nth-child(3),
.idlerpg-player-table td:nth-child(3),
.idlerpg-player-table th:nth-child(4),
.idlerpg-player-table td:nth-child(4),
.idlerpg-player-table th:nth-child(5),
.idlerpg-player-table td:nth-child(5),
.idlerpg-player-table th:nth-child(7),
.idlerpg-player-table td:nth-child(7),
.idlerpg-player-table th:nth-child(8),
.idlerpg-player-table td:nth-child(8) {
    white-space: nowrap;
}

.idlerpg-player-name-cell {
    min-width: 18ch;
    overflow-wrap: break-word;
}

.idlerpg-player-table th:nth-child(6),
.idlerpg-player-table td:nth-child(6) {
    min-width: 16ch;
}

.idlerpg-player-name-cell > a {
    display: inline-block;
    font-weight: bold;
}

.idlerpg-player-name-cell .idlerpg-player-title {
    display: block;
    margin-top: .12em;
}

.idlerpg-player-panel .idlerpg-pager {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .idlerpg-profile-panel .idlerpg-profile-grid {
        grid-template-columns: 1fr;
    }

    .idlerpg-profile-achievements,
    .idlerpg-profile-events {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .idlerpg-player-panel,
    .idlerpg-profile-panel {
        width: 100%;
        padding: .8em 1ch;
    }

    .idlerpg-player-panel-header,
    .idlerpg-profile-header {
        display: block;
    }

    .idlerpg-profile-badges {
        justify-content: flex-start;
        margin-top: .7em;
    }

    .idlerpg-player-panel .idlerpg-filter {
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
    }

    .idlerpg-player-panel .idlerpg-table-scroll {
        overflow-x: visible;
    }

    .idlerpg-player-panel .idlerpg-player-table tr {
        background: transparent;
        border: 1px solid var(--c-lines, currentColor);
        border-left-width: 4px;
        padding: .45em 1ch;
    }

    .idlerpg-player-panel .idlerpg-player-table td,
    .idlerpg-player-panel .idlerpg-player-table td:nth-child(n) {
        grid-template-columns: minmax(8em, 38%) minmax(0, 1fr);
        padding: .34em 0;
    }

    .idlerpg-player-panel .idlerpg-player-table td::before {
        content: attr(data-label);
    }

    .idlerpg-profile-table th {
        width: 44%;
    }

    .idlerpg-profile-table td,
    .idlerpg-profile-stats td {
        text-align: left;
    }
}

/* Use the otherwise free desktop space instead of scrolling the player table. */
@media (min-width: 1251px) {
    .content.idlerpg-page {
        width: min(148ch, calc(100vw - 24rem));
        max-width: none;
    }

    .idlerpg-player-panel .idlerpg-player-table {
        font-size: .96em;
    }

    .idlerpg-player-name-cell {
        min-width: 15ch;
    }

    .idlerpg-player-table th:nth-child(6),
    .idlerpg-player-table td:nth-child(6) {
        min-width: 13ch;
    }
}

/* Switch to the existing card presentation before a table would need a scrollbar. */
@media (max-width: 1250px) {
    .idlerpg-player-panel .idlerpg-table-scroll {
        overflow-x: visible;
    }

    .idlerpg-player-panel .idlerpg-player-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .idlerpg-player-panel .idlerpg-player-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .idlerpg-player-panel .idlerpg-player-table tbody,
    .idlerpg-player-panel .idlerpg-player-table tr,
    .idlerpg-player-panel .idlerpg-player-table td {
        display: block;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    .idlerpg-player-panel .idlerpg-player-table tr {
        margin-bottom: 1em;
        border: 1px solid var(--c-lines, currentColor);
        border-left-width: 4px;
        padding: .45em 1ch;
        background: transparent;
    }

    .idlerpg-player-panel .idlerpg-player-table td,
    .idlerpg-player-panel .idlerpg-player-table td:nth-child(n) {
        display: grid;
        grid-template-columns: minmax(8.5em, 38%) minmax(0, 1fr);
        gap: 1ch;
        padding: .34em 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .idlerpg-player-panel .idlerpg-player-table td::before {
        content: attr(data-label);
        font-weight: bold;
        opacity: .75;
    }

    .idlerpg-player-panel .idlerpg-player-table .idlerpg-status {
        white-space: normal;
    }
}

