:root {
    color-scheme: dark;
    --red: #480911;
    --red-hover: #68101c;
    --panel: rgba(0, 0, 0, 0.55);
    --border: #3a3a3a;
    --text: #dbdbdb;
    --muted: #878787;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #000 url('../images/BG_shrooms.png?v=1') repeat;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
}

.page-wrap {
    min-height: calc(100vh - 34px);
}

.container {
    width: min(1020px, calc(100% - 32px));
    margin-inline: auto;
}


/* Header */

.site-header {
    height: 230px;
    overflow: hidden;
}

.banner {
    display: block;
    width: 100%;
    height: 230px;
    background:
        url('../images/marioruns-banner-web.webp')
        center top / auto 230px
        no-repeat;
}

@media (max-width: 768px) {
    .banner {
        background-image: url('../images/marioruns-banner-mobile.webp?v=2');
    }
}


/* Main layout */

.layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    padding: 20px 0 40px;
}


/* Navigation */

.navigation {
    padding-top: 10px;
}

.navigation h2 {
    margin: 0 0 12px;
    color: #444;
    font-size: 14px;
}

.navigation h2:not(:first-child) {
    margin-top: 38px;
}

.side-links {
    border-bottom: 1px solid #2e2e2e;
}

.side-links a {
    display: block;
    padding: 11px 15px;
    border-top: 1px solid #2e2e2e;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.side-links a:hover,
.side-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
}

.side-links a.active {
    padding-left: 12px;
    border-left: 3px solid var(--red-hover);
}


/* Content panel */

.content {
    min-width: 0;
    min-height: 500px;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.leaderboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
}

.leaderboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.leaderboard-title-copy {
    flex: 0 0 auto;
    min-width: max-content;
}

.leaderboard-title-copy h1 {
    white-space: nowrap;
}

.leaderboard-star {
    display: block;
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    object-fit: contain;
    transform: scaleX(-1);
}

.leaderboard-pagination--top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;

    margin-left: auto;
    text-align: right;
}

.leaderboard-pagination--top .pagination-summary {
    margin: 0;
    width: 100%;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.leaderboard-pagination--top .pagination-links {
    justify-content: flex-end;
}

@media (max-width: 500px) {
    .leaderboard-title {
        gap: 10px;
    }

    .leaderboard-star {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.submit-time {
    flex: none;
    padding: 10px 14px;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.submit-time:hover {
    background: var(--red-hover);
}


/* Leaderboard table */

.table-scroll {
    width: 100%;
    margin-top: 14px;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th {
    padding: 7px 10px;
    background: var(--red);
    color: var(--text);
    font-size: 13px;
    text-align: left;
}

td {
    padding: 7px 10px;
    font-size: 13px;
}

td a {
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

.rank {
    width: 64px;
}

.time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}


/*
 * Put the row colour onto every cell. This avoids collapsed-table
 * painting quirks where only the cell directly under the pointer
 * appears highlighted.
 */

tbody tr {
    --row-bg: #242424;
    --row-hover: #111111;

    color: #a3a3a3;
}

tbody tr > td {
    background-color: var(--row-bg);
    transition: background-color 90ms linear;
}

tbody tr:hover > td,
tbody tr:focus-within > td {
    background-color: var(--row-hover) !important;
}

tbody tr > td:first-child {
    border-left: 3px solid transparent;
}


/* First place */

.tier-1 {
    --row-bg: #3b3115;
    --row-hover: #51431b;

    color: #fff83d;
}

.tier-1 > td:first-child {
    border-left-color: #e7db28;
}


/* Second place */

.tier-2 {
    --row-bg: #545454;
    --row-hover: #626262;

    color: #e0e0e0;
}

.tier-2 > td:first-child {
    border-left-color: #dbdbdb;
}


/* Third place */

.tier-3 {
    --row-bg: #321e06;
    --row-hover: #49300e;

    color: #f7941c;
}

.tier-3 > td:first-child {
    border-left-color: #f7941c;
}


/* Regular runs */

.tier-4:nth-child(even) {
    --row-bg: #2e2e2e;
}

.tier-4:nth-child(odd) {
    --row-bg: #242424;
}

.tier-4 a {
    color: #a3a3a3;
}


/* Status column */

th:nth-child(7),
td.verified-cell {
    text-align: center;
}

td.verified-cell {
    vertical-align: middle;
}

.verification-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.verification-status.verified {
    color: #77d68a;
}

.verification-status.unverified {
    color: #ef6666;
}

.verification-status.unknown {
    color: #999;
}


/* Notices and errors */

.notice,
.error {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

.error {
    border-color: #7a2630;
}

.error p {
    margin: 6px 0 0;
}

code {
    padding: 2px 5px;
    background: #111;
}



/* Leaderboard pagination */

.leaderboard-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-top: 14px;
}

.pagination-summary {
    flex: none;

    margin: 0;

    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;

    min-width: 0;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 29px;
    padding: 0 8px;

    border: 1px solid #383838;
    background: rgba(255, 255, 255, 0.025);
    color: #969696;

    font-size: 11px;
    line-height: 1;
    text-decoration: none;
}

a.pagination-link:hover,
a.pagination-link:focus-visible {
    border-color: #555;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
}

.pagination-link.is-current {
    border-color: var(--red-hover);
    background: var(--red);
    color: #fff;
    font-weight: 700;
}

.pagination-link.is-disabled {
    color: #505050;
    cursor: default;
}

.pagination-direction {
    padding-inline: 10px;
}

.pagination-ellipsis {
    min-width: 20px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: #666;
}

.source-note {
    margin: 16px 2px 0;
    color: var(--muted);
    font-size: 12px;
}

.source-note a {
    color: var(--text);
}


/* Footer */

.site-footer {
    height: 34px;
    background: #2e2e2e;
    text-align: center;
}

.site-footer p {
    margin: 0;
    padding-top: 8px;
    font-size: 12px;
}


/* Player country and console-region flags */

.player-cell,
.platform-cell {
    white-space: nowrap;
}

.runner-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.platform-cell {
    vertical-align: middle;
}

.runner-separator {
    color: #777;
}

.flag-icon {
    display: block;
    width: 20px;
    height: 14px;
    flex: 0 0 20px;
    object-fit: fill;
    border: 0;
    outline: 0;
    box-shadow: none;
}


/* Speedrun.com profile colours */

.runner-link {
    font-weight: 600;
    text-decoration: none;
}

.runner-link-gradient {
    color: var(--runner-colour-from, currentColor);

    background-image:
        linear-gradient(
            90deg,
            var(--runner-colour-from),
            var(--runner-colour-to)
        );

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.runner-link:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}


/* Compact platform labels */

.platform-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    vertical-align: middle;
}

.platform-value .flag-icon {
    display: inline-block;
    flex: 0 0 20px;
}

.platform-value .platform-label {
    vertical-align: middle;
}

.platform-label {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 42px;
}

.platform-main {
    white-space: nowrap;
}

.platform-label small {
    color: #9a9a9a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}


/* Comment column */

.comment-heading,
.comment-cell {
    width: 34px;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
}

.comment-trigger {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    cursor: help;
}

.comment-trigger > span,
.comment-trigger > span::after {
    position: absolute;
    display: block;
    content: '';
}

.comment-trigger > span {
    top: 4px;
    left: 3px;
    width: 12px;
    height: 10px;
    border: 1px solid #aeb8d2;
    border-radius: 50%;
}

.comment-trigger > span::after {
    right: -2px;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-right: 1px solid #aeb8d2;
    border-bottom: 1px solid #aeb8d2;
    transform: rotate(18deg);
}

.comment-trigger:hover > span,
.comment-trigger:focus-visible > span,
.comment-trigger:hover > span::after,
.comment-trigger:focus-visible > span::after {
    border-color: #fff;
}

.comment-trigger:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 2px;
}


/* Run comment tooltip */

.comment-tooltip {
    position: fixed;
    z-index: 99999;

    width: min(460px, calc(100vw - 24px));
    box-sizing: border-box;

    padding: 12px;

    border: 1px solid #555;
    border-radius: 3px;

    background: #191919;
    color: #eee;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5);

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    /*
     * The JavaScript supplies top and left dynamically.
     * These prevent older CSS from moving the tooltip elsewhere.
     */
    right: auto !important;
    bottom: auto !important;
    transform: none !important;

    pointer-events: auto;
}

.comment-tooltip[hidden] {
    display: none !important;
}

.comment-tooltip-title {
    margin: 0 0 10px;
    padding: 0 0 9px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);

    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.comment-tooltip-content {
    min-width: 0;
    font-size: 13px;
    line-height: 1.55;
}


/* Comment text and links */

.comment-text {
    min-width: 0;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-text a {
    color: #65a9ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-text a:hover,
.comment-text a:focus-visible {
    color: #9ac8ff;
}


/* YouTube and Twitch embeds */

.comment-media {
    width: min(356px, 100%);
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border: 1px solid #3c3c3c;
    border-radius: 2px;

    background: #000;
}

.comment-media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.comment-media + .comment-text {
    margin-top: 10px;
}

.comment-text + .comment-media {
    margin-top: 10px;
}


/* Screen-reader-only text */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* Tablet and mobile */

@media (max-width: 760px) {
    .site-header,
    .banner {
        height: 150px;
    }

    .banner {
        background-size: auto 150px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .navigation h2 {
        grid-column: 1 / -1;
        margin: 0;
    }

    .navigation h2:not(:first-child) {
        margin-top: 12px;
    }

    .leaderboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .comment-tooltip {
        width: calc(100vw - 20px);
        padding: 10px;
    }

    .comment-media {
        width: 100%;
    }
}



@media (max-width: 700px) {
    .leaderboard-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .pagination-links {
        justify-content: flex-start;
    }
}

/* =========================================================
   LATEST RUN AND WORLD RECORD
   ========================================================= */

.activity-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.activity-card {
    position: relative;

    min-width: 0;
    min-height: 84px;

    /*
     * Leave a dedicated section for the large icon.
     */
    padding: 10px 90px 11px 14px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-top: 3px solid var(--red-hover);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );
}

.activity-card--record {
    border-top-color: #e7db28;
}


/* Card title */

.activity-card-label {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0 0 5px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.activity-card--record .activity-card-label {
    color: #d7cf38;
}

/* Large right-hand card icons */

.activity-card-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;

    border-left: 1px solid rgba(255, 255, 255, 0.07);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;

    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;

    pointer-events: none;
    user-select: none;
}

.activity-card:not(.activity-card--record)
.activity-card-label::after {
    content: "";

    background:
        url("../images/longjump.png?v=2")
        center / 48px auto
        no-repeat,

        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
}

.activity-card--record
.activity-card-label::after {
    content: "\1F3C6\FE0F";

    background:
        linear-gradient(
            135deg,
            rgba(231, 219, 40, 0.075),
            rgba(231, 219, 40, 0.015)
        );
}

/* Main row: time, runner and optional rank */

.activity-card-primary {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    margin-bottom: 5px;
}

.activity-card-time {
    flex: none;

    margin: 0;

    color: #fff;
    font-size: 21px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.activity-card--record .activity-card-time {
    color: #fff83d;
}

.activity-card-runner {
    flex: none;

    min-width: 0;
    margin: 0;

    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.activity-card-runner .runner-name {
    gap: 6px;
}

.activity-card-rank {
    flex: none;

    color: #777;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}


/* Bottom row: metadata and watch link */

.activity-card-secondary {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.activity-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    min-width: 0;
    margin: 0;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.activity-card-meta > span {
    display: inline-flex;
    align-items: center;
}

/*
 * Remove the global 42px platform width inside these cards.
 * This fixes the blank space after plain "N64".
 */
.activity-card-meta .platform-label {
    min-width: 0;
}

.activity-card-link {
    flex: none;

    margin: 0;

    color: #bbb;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.activity-card-link:hover,
.activity-card-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}


/* Tablet and mobile */

@media (max-width: 700px) {
    .activity-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .activity-card {
        min-height: 80px;
        padding: 10px 76px 11px 12px;
    }

    .activity-card-label::after {
        width: 64px;
        font-size: 35px;
    }
}

/* =========================================================
   MARIORUNS RETURN MESSAGE
   ========================================================= */

.main-column {
    min-width: 0;
}

.site-promise {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin: 0 0 8px;
    padding: 0 3px;

    color: #747474;
    font-size: 11px;
    line-height: 1.45;
}

.site-promise strong {
    color: #9b9b9b;
    font-weight: 700;
}

.site-promise-link {
    flex: none;

    margin: 0;
    padding: 0;
    border: 0;

    background: transparent;
    color: #a0a0a0;

    font: inherit;
    font-weight: 700;
    white-space: nowrap;

    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-promise-link:hover,
.site-promise-link:focus-visible {
    color: #fff;
}



/* Mobile-only announcement and quick links */
.mobile-site-announcement,
.mobile-site-quick-links {
    display: none;
}

@media (max-width: 760px) {
    /* Hide the original desktop message row on mobile. */
    .site-promise {
        display: none;
    }

    .mobile-site-announcement {
        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 26px;
        padding: 4px 10px;

        border-bottom: 1px solid #2d2d2d;
        background: #151515;
        color: #777;

        font-size: 10px;
        line-height: 1.35;
        text-align: center;
    }

    .mobile-site-announcement strong {
        color: #aaa;
        font-weight: 700;
    }

    .mobile-site-quick-links {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        width: min(100% - 20px, 1020px);
        margin: 7px auto 0;
        padding: 0 2px;

        font-size: 11px;
        line-height: 1.45;
    }

    .mobile-site-quick-link,
    .mobile-site-quick-link-button {
        margin: 0;
        padding: 0;
        border: 0;

        background: transparent;
        color: #a0a0a0;

        font: inherit;
        font-weight: 700;
        white-space: nowrap;

        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .mobile-site-quick-link {
        margin-right: auto;
    }

    .mobile-site-quick-link-button {
        margin-left: auto;
        cursor: pointer;
    }

    .mobile-site-quick-link:hover,
    .mobile-site-quick-link:focus-visible,
    .mobile-site-quick-link-button:hover,
    .mobile-site-quick-link-button:focus-visible {
        color: #fff;
    }
}

@media (max-width: 380px) {
    .mobile-site-quick-link,
    .mobile-site-quick-link-button {
        font-size: 10px;
    }
}

/* About MarioRuns popup */

.about-dialog {
    width: min(630px, calc(100% - 24px));
    max-height: calc(100vh - 24px);

    padding: 0;
    border: 1px solid #444;

    background:
        #000
        url("../images/BG_shrooms.png?v=1")
        repeat;

    color: var(--text);
}

.about-dialog::backdrop {
    background: rgba(0, 0, 0, 0.84);
}

.about-dialog-panel {
    position: relative;
    padding: 26px 28px;
}

.about-dialog-close {
    position: absolute;
    top: 10px;
    right: 14px;

    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;

    background: transparent;
    color: #888;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.about-dialog-close:hover,
.about-dialog-close:focus-visible {
    color: #fff;
}

.about-dialog-eyebrow {
    margin: 0 42px 7px 0;

    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.about-dialog h2 {
    margin: 0 42px 18px 0;

    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.about-dialog h3 {
    margin: 22px 0 10px;

    color: #fff;
    font-size: 15px;
}

.about-dialog p {
    margin: 0 0 13px;
    color: #b7b7b7;
    font-size: 13px;
    line-height: 1.65;
}

.about-dialog-list {
    margin: 0;
    padding-left: 20px;

    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
}

.about-dialog-list li + li {
    margin-top: 7px;
}

.about-dialog-signoff {
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #333;
}

.about-dialog-signoff p {
    margin-bottom: 2px;
}

.about-dialog-signoff strong {
    font-size: 12px;
}

.about-dialog .about-dialog-privacy {
    margin: 20px 0 0;
    padding: 11px 13px;
    border-left: 3px solid var(--red-hover);

    background: rgba(255, 255, 255, 0.025);
    color: #777;

    font-size: 11px;
}


/* Mobile */

@media (max-width: 760px) {
    .site-promise {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;

        padding: 0 2px;
    }

    .site-promise-link {
        white-space: normal;
    }
}

@media (max-width: 500px) {
    .about-dialog-panel {
        padding: 22px 18px;
    }

    .about-dialog h2 {
        font-size: 19px;
    }
}

.about-dialog-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.about-dialog-star {
    display: block;
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    object-fit: contain;
}

/* Keep everything tidy on narrow screens */
@media (max-width: 500px) {
    .about-dialog-title {
        gap: 7px;
    }

    .about-dialog-star {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }
}

#leaderboard-results.is-loading {
    pointer-events: none;
    cursor: progress;
}

/* =========================================================
   MOBILE LEADERBOARD LAYOUT
   ========================================================= */

.mobile-leaderboard-controls {
    display: none;
}

@media (max-width: 760px) {

    /*
     * Remove the desktop sidebar completely on phones/tablets.
     */
    .navigation {
        display: none;
    }

    .layout {
        display: block;
        padding-top: 10px;
    }

    .container {
        width: min(100% - 20px, 1020px);
    }

    .content {
        padding: 12px;
    }


    /* Heading and mobile filters */

    .leaderboard-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 12px;

        min-height: 58px;
        margin-bottom: 10px;
    }

    .leaderboard-title {
        flex: none;
        gap: 9px;
    }

    .leaderboard-title-copy {
        min-width: max-content;
    }

    .leaderboard-title-copy h1 {
        white-space: nowrap;
    }

    .leaderboard-star {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .mobile-leaderboard-controls {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        margin-top: 15px;

        min-width: 0;
    }

    .mobile-filter-row {
        display: flex;
        justify-content: flex-end;
        gap: 4px;

        width: 100%;
        min-width: 0;
    }

    .mobile-filter-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-width: 34px;
        height: 27px;
        padding: 0 8px;

        border: 1px solid #3a3a3a;
        border-radius: 2px;

        background: rgba(255, 255, 255, 0.035);
        color: #999;

        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-filter-button:hover,
    .mobile-filter-button:focus-visible {
        color: #fff;
        border-color: #666;
    }

    .mobile-filter-button.active {
        border-color: var(--red-hover);
        background: var(--red);
        color: #fff;
    }


    /* =========================================================
       MOBILE LEADERBOARD TABLE
       Full horizontal table with frozen Rank + Player
       ========================================================= */

    body:not(.world-rankings-page)
    #leaderboard-results .table-scroll {
        position: relative;
        isolation: isolate;

        overflow-x: auto;
        overflow-y: visible;

        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) {
        width: 610px;
        min-width: 610px;

        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th,
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td {
        display: table-cell;

        padding: 8px 6px;
        font-size: 12px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Rank — frozen */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(1),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 20;

        width: 44px;
        min-width: 44px;
        max-width: 44px;

        padding-right: 4px;
        padding-left: 6px;
    }

    /* Player — frozen */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(2),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(2) {
        position: sticky;
        left: 44px;
        z-index: 20;

        width: 132px;
        min-width: 132px;
        max-width: 132px;

        padding-right: 6px;
        padding-left: 6px;

        border-right: 1px solid rgba(255, 255, 255, 0.08);

        box-shadow:
            10px 0 12px -12px rgba(0, 0, 0, 1);
    }

    /* Comment */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(3),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(3) {
        width: 32px;
        min-width: 32px;
        max-width: 32px;

        padding-right: 3px;
        padding-left: 3px;
        text-align: center;
    }

    /* Time */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(4),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(4) {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
    }

    /* Date */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(5),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(5) {
        width: 102px;
        min-width: 102px;
        max-width: 102px;
    }

    /* Platform */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(6),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(6) {
        width: 90px;
        min-width: 90px;
        max-width: 90px;
    }

    /* Verified */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(7),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(7) {
        width: 68px;
        min-width: 68px;
        max-width: 68px;

        text-align: center;
    }

    /* Run */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th:nth-child(8),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td:nth-child(8) {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
    }

    /* Opaque frozen cells sit above horizontally scrolling columns. */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) tbody td:nth-child(1),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) tbody td:nth-child(2) {
        background: var(--row-bg) !important;
        background-clip: padding-box;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) tbody tr:hover td:nth-child(1),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) tbody tr:hover td:nth-child(2),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) tbody tr:focus-within td:nth-child(1),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) tbody tr:focus-within td:nth-child(2) {
        background: var(--row-hover) !important;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) thead th:nth-child(1),
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) thead th:nth-child(2) {
        z-index: 30;
        background: var(--red) !important;
        background-clip: padding-box;
    }

    /* Compact and truncate long player names. */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .player-cell {
        overflow: hidden;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .player-cell .runner-name {
        display: flex;
        align-items: center;
        gap: 5px;

        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .player-cell .flag-icon {
        flex: 0 0 18px;

        width: 18px;
        height: 13px;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .player-cell .runner-link {
        display: block;

        min-width: 0;
        overflow: hidden;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Keep compact platform contents aligned. */
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .platform-value {
        gap: 4px;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .platform-cell .flag-icon {
        flex-basis: 18px;

        width: 18px;
        height: 13px;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) .platform-label {
        min-width: 0;
    }
}

@media (max-width: 430px) {

    .leaderboard-heading {
        align-items: flex-start;
    }

    .leaderboard-star {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .leaderboard-title {
        gap: 7px;
    }

    .leaderboard-title-copy h1 {
        font-size: 17px;
    }

    .eyebrow {
        font-size: 10px;
    }

    .mobile-filter-button {
        min-width: 29px;
        height: 25px;
        padding: 0 6px;
        font-size: 10px;
    }

    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) th,
    body:not(.world-rankings-page)
    #leaderboard-results
    table:not(.runner-search-table) td {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 11px;
    }

    .flag-icon {
        width: 18px;
        height: 13px;
        flex-basis: 18px;
    }

    .runner-name {
        gap: 5px;
    }
}

@media (max-width: 760px) {
    .leaderboard-pagination--top {
        display: none;
    }
}

@media (max-width: 600px) {
    #about-marioruns h2 {
        font-size: 22px;
        line-height: 1.15;
        white-space: nowrap;
    }
}
/* =========================================================
   N64 WORLD RANKINGS
   ========================================================= */
   
   @media (max-width: 600px) {
    .rankings-explainer {
        align-items: flex-start;
        gap: 10px;
    }

    .rankings-explainer a,
    .rankings-explainer button {
        text-align: right;
    }
}

.world-rankings-heading {
    margin-bottom: 0;
}

.rankings-explainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 15px;
    padding: 0;

    border: 0;
    background: none;
    box-shadow: none;
}

.rankings-explainer p {
    margin: 0;
}

.rankings-explainer a,
.rankings-explainer button {
    flex-shrink: 0;
    margin-left: auto;
}

.rankings-explainer p {
    margin: 0;
    color: #999;
    font-size: 12px;
    line-height: 1.45;
}

.rankings-calculation-link {
    flex: none;

    padding: 0;
    border: 0;

    background: transparent;
    color: #d7d7d7;

    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;

    cursor: pointer;
}

.rankings-calculation-link:hover,
.rankings-calculation-link:focus-visible {
    color: #fff;
}

.world-rankings-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}

.world-rankings-table th,
.world-rankings-table td {
    text-align: center;
    white-space: nowrap;
}

.world-rankings-table th.world-rankings-player,
.world-rankings-table td.world-rankings-player {
    width: 170px;
    min-width: 170px;
    text-align: left;
}

.world-rankings-table .rank {
    width: 66px;
    text-align: left;
}

.rankings-category-heading {
    color: inherit;
    text-decoration: none;
}

.rankings-category-heading:hover,
.rankings-category-heading:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rankings-category-cell {
    width: 76px;
    font-variant-numeric: tabular-nums;
}

.rankings-place-link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.rankings-place-link:hover,
.rankings-place-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.rankings-no-score {
    color: #626262;
}

.world-rankings-table .rankings-score-heading,
.world-rankings-table .rankings-score {
    width: 76px;
    text-align: center;
}

.rankings-score {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rankings-method-list strong {
    color: #ddd;
}

@media (max-width: 760px) {
    .world-rankings-page .leaderboard-heading {
        min-height: 54px;
    }

    .world-rankings-page .leaderboard-title-copy {
        min-width: 0;
    }

    .world-rankings-page .leaderboard-title-copy h1 {
        white-space: nowrap;
    }

    .world-rankings-pagination-top {
        display: none;
    }

    .rankings-explainer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .world-rankings-page .table-scroll {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .world-rankings-page table.world-rankings-table {
        width: 820px;
        min-width: 820px;
        table-layout: auto;
    }

    .world-rankings-page .world-rankings-table th,
    .world-rankings-page .world-rankings-table td {
        display: table-cell;
        width: auto;
        padding: 8px 9px;
        font-size: 12px;
    }

    .world-rankings-page .world-rankings-table .rank {
        position: sticky;
        left: 0;
        z-index: 4;
    
        width: 62px;
        min-width: 62px;
        max-width: 62px;
    }

    .world-rankings-page .world-rankings-table th.world-rankings-player,
    .world-rankings-page .world-rankings-table td.world-rankings-player {
        position: sticky;
        left: 62px;
        z-index: 4;
    
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    
        box-shadow:
            8px 0 10px -10px rgba(0, 0, 0, 0.95);
    }
    
    .world-rankings-page .world-rankings-table tbody td.rank,
    .world-rankings-page
    .world-rankings-table tbody td.world-rankings-player {
        background-color: var(--row-bg);
    }
    
    .world-rankings-page .world-rankings-table thead th.rank,
    .world-rankings-page
    .world-rankings-table thead th.world-rankings-player {
        z-index: 6;
        background-color: var(--red);
    }

    .world-rankings-page .world-rankings-table .rankings-category-cell {
        width: 74px;
    }

    .world-rankings-page .world-rankings-table .rankings-score {
        width: 74px;
    }
}

@media (max-width: 430px) {
    .world-rankings-page .leaderboard-title-copy h1 {
        font-size: 17px;
    }

    .world-rankings-page table.world-rankings-table {
        width: 790px;
        min-width: 790px;
    }

    .world-rankings-page .world-rankings-table th,
    .world-rankings-page .world-rankings-table td {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }
}

.world-rankings-pagination-top {
    flex: 1 1 0;
    min-width: 0;
}

.world-rankings-pagination-top .pagination-summary,
.world-rankings-pagination-top .pagination-links {
    width: 100%;
}

.world-rankings-pagination-top .pagination-links {
    justify-content: flex-end;
}

/* Category podium positions on the N64 World Rankings only */

.world-rankings-page .rankings-place-gold {
    color: #fff83d !important;
    font-weight: 700;
}

.world-rankings-page .rankings-place-silver {
    color: #e0e0e0 !important;
    font-weight: 700;
}

.world-rankings-page .rankings-place-bronze {
    color: #f7941c !important;
    font-weight: 700;
}

/* No top margin for the pagination beside the rankings heading */
.world-rankings-page .world-rankings-pagination-top {
    margin-top: 0;
}

/* Restore spacing below the rankings table */
.world-rankings-page .world-rankings-pagination-bottom {
    margin-top: 15px;
}

.world-rankings-page .leaderboard-title {
    margin-top: 0;
}

/* =========================================================
   WEEKLY RANK MOVEMENT
   ========================================================= */

.rank-with-movement {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.rank-movement {
    display: inline-block;
    flex: none;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
}

.rank-movement-up {
    color: #68c879 !important;
}

.rank-movement-down {
    color: #e26464 !important;
}

.rank-movement-new {
    color: #e7db28 !important;
    font-size: 8px;
    letter-spacing: 0.03em;
}

/* Allow room for a compact weekly arrow without widening the full table. */
.world-rankings-table .rank,
body:not(.world-rankings-page) table .rank {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .rank-with-movement {
        gap: 3px;
    }

    .rank-movement {
        font-size: 8px;
    }

    .rank-movement-new {
        font-size: 7px;
    }
}

/* =========================================================
   WORLD RECORD TROPHY EASTER EGG
   ========================================================= */

/*
 * Hide the original CSS-generated trophy.
 * The latest-run Mario graphic remains unchanged.
 */
.activity-card--record .activity-card-label::after {
    display: none;
}


/* Replacement right-hand trophy panel */

.record-trophy-zone {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;

    border-left: 1px solid rgba(255, 255, 255, 0.07);

    background:
        linear-gradient(
            135deg,
            rgba(231, 219, 40, 0.075),
            rgba(231, 219, 40, 0.015)
        );

    pointer-events: none;
}


/* The actual hoverable trophy */

.record-trophy {
    display: inline-block;

    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;

    font-size: 42px;
    font-weight: 400;
    line-height: 1;

    transform-origin: 50% 60%;

    pointer-events: auto;
    user-select: none;

    will-change: transform;
}

.record-trophy:hover {
    transform:
        translateY(-1px)
        scale(1.04);
}

.record-trophy.is-hidden {
    visibility: hidden;
}

.record-trophy.is-returning {
    animation:
        trophy-return
        520ms
        cubic-bezier(0.2, 1.5, 0.4, 1);
}


/* Solid confetti pieces animated through JavaScript */

.trophy-confetti-particle {
    position: fixed;
    z-index: 999999;

    width: 5px;
    height: 8px;

    border-radius: 1px;

    background-color:
        var(--confetti-colour);

    opacity: 1;

    box-shadow: none;
    filter: none;

    pointer-events: none;
    will-change: transform;

    /*
     * JavaScript supplies the movement.
     * There is deliberately no CSS animation here.
     */
}


/* Trophy clone that spins and falls down the screen */

.record-trophy-falling {
    position: fixed;
    z-index: 1000000;

    display: block;

    margin: 0;

    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;

    line-height: 1;

    transform-origin: center;

    pointer-events: none;
    user-select: none;

    will-change: transform;

    animation:
        trophy-fall
        2200ms
        linear
        forwards;
}


/*
 * The extra middle stages make the trophy's fall feel
 * gradual rather than switching immediately to full speed.
 */

@keyframes trophy-fall {
    from {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            rotate(0deg)
            scale(1);
    }

    to {
        opacity: 1;

        transform:
            translate3d(
                var(--trophy-fall-x),
                115vh,
                0
            )
            rotate(1260deg)
            scale(1);
    }
}


@keyframes trophy-return {
    from {
        opacity: 0;

        transform:
            scale(0.25)
            rotate(-25deg);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            rotate(0deg);
    }
}


@media (max-width: 500px) {
    .record-trophy-zone {
        width: 64px;
    }

    .record-trophy {
        font-size: 35px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .record-trophy,
    .record-trophy-falling {
        animation: none !important;
        transform: none !important;
    }

    .trophy-confetti-particle {
        display: none;
    }
}
/* =========================================================
   RUNNER SEARCH
   ========================================================= */

.runner-search {
    margin-top: 14px;
}

.runner-search-field {
    position: relative;
}

.runner-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;

    width: 13px;
    height: 13px;

    border: 1px solid #8d8d8d;
    border-radius: 50%;

    transform: translateY(-58%);
    pointer-events: none;
}

.runner-search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;

    width: 6px;
    height: 1px;

    background: #8d8d8d;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.runner-search-input {
    display: block;
    width: 100%;
    height: 38px;

    padding: 0 42px 0 38px;

    border: 1px solid #3a3a3a;
    border-radius: 2px;

    background: rgba(255, 255, 255, 0.035);
    color: #eee;

    font: inherit;
    font-size: 13px;

    outline: none;
}

.runner-search-input::placeholder {
    color: #777;
}

.runner-search-input:hover {
    border-color: #4b4b4b;
}

.runner-search-input:focus {
    border-color: var(--red-hover);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 0 1px rgba(104, 16, 28, 0.3);
}

.runner-search-clear {
    position: absolute;
    top: 50%;
    right: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    padding: 0;

    border: 0;
    border-radius: 2px;

    background: transparent;
    color: #888;

    font-size: 20px;
    line-height: 1;

    transform: translateY(-50%);
    cursor: pointer;
}

.runner-search-clear:hover,
.runner-search-clear:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Keep the custom clear button hidden until JavaScript reveals it. */
.runner-search-clear[hidden] {
    display: none;
}

.runner-search-status {
    min-height: 17px;
    margin: 5px 2px 0;

    color: #777;
    font-size: 11px;
    line-height: 1.4;
}

.runner-search-status:empty {
    display: none;
}

.runner-search.is-loading .runner-search-status {
    color: #aaa;
}

.runner-search-results {
    margin-top: 10px;
}

.runner-search-results .notice {
    margin-top: 0;
}

.runner-search-table-scroll {
    margin-top: 0;
}

.runner-search-table {
    min-width: 760px;
}

.runner-search-table .runner-search-player {
    min-width: 170px;
}

.runner-search-table .runner-search-category,
.runner-search-table .runner-search-platform,
.runner-search-table .runner-search-time,
.runner-search-table .runner-search-date {
    white-space: nowrap;
}

.runner-search-table .runner-search-rank {
    width: 64px;
    font-variant-numeric: tabular-nums;
}

.runner-search-table .runner-search-time {
    font-variant-numeric: tabular-nums;
}

.runner-search-table a {
    color: #d7d7d7;
}

.runner-search-table .runner-search-platform-link {
    color: #fff;
    font-weight: 700;
}

.runner-search-table .runner-search-view-link {
    white-space: nowrap;
}

.runner-search-view-link {
    font-weight: 700;
}

.runner-search-result-row {
    cursor: pointer;
}

.runner-search-result-row:hover > td,
.runner-search-result-row:focus-visible > td {
    background-color: var(--row-hover) !important;
}

.runner-search-result-row:focus-visible {
    outline: 1px solid #aaa;
    outline-offset: -1px;
}

.runner-search-limit-note {
    margin: 8px 2px 0;
    color: #777;
    font-size: 11px;
}

/* Highlight a run reached from a search result. */
tbody tr.is-search-highlight > td {
    animation: runner-search-highlight 2600ms ease-out;
}

@keyframes runner-search-highlight {
    0%,
    24% {
        background-color: #685716;
        box-shadow:
            inset 0 1px 0 #fff36a,
            inset 0 -1px 0 #fff36a;
    }

    100% {
        background-color: var(--row-bg);
        box-shadow: none;
    }
}

@media (max-width: 760px) {
    .runner-search {
        margin-top: 10px;
    }

    .runner-search-input {
        height: 36px;
        font-size: 12px;
    }

    .runner-search-results .table-scroll {
        overflow-x: auto;
    }

    .runner-search-results table.runner-search-table {
        width: 680px;
        min-width: 680px;
        table-layout: auto;
    }

    .runner-search-results .runner-search-table th,
    .runner-search-results .runner-search-table td {
        display: table-cell;
        width: auto;
        padding: 8px 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    tbody tr.is-search-highlight > td {
        animation: none;
        background-color: #685716 !important;
    }
}
