/* G-Exp roster surfaces */
.page-header {
    position: relative;
    display: flex;
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin: 62px auto 34px;
    padding: 12px 20px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-header::before,
#membersTable_wrapper::before,
.members-filters::before {
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(110deg, var(--color-accent-strong), var(--color-sky), rgba(255, 255, 255, .7), var(--color-accent-strong));
    background-size: 300% 100%;
    opacity: .28;
    pointer-events: none;
    content: "";
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: members-border 8s linear infinite;
}

.page-header::before {
    display: none;
}

#membersTable_wrapper::before {
    display: none;
}

@keyframes members-border {
    to {
        background-position: 300% 50%;
    }
}

.page-header .page-title {
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0 58px;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(90deg, var(--color-accent-strong), var(--color-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header .page-title::before,
.page-header .page-title::after {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
    content: "";
}

.page-header .page-title::before {
    right: calc(100% - 46px);
}

.page-header .page-title::after {
    left: calc(100% - 46px);
    transform: rotate(180deg);
}

.page-header p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
}

.members-hero__eyebrow {
    color: var(--color-sky);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .17em;
}

#table {
    width: min(1180px, calc(100% - 40px));
    padding-bottom: 44px;
}

.members-filters, #table > .members-filters {
    position: relative;
    z-index: 5000;
    isolation: isolate;
    overflow: visible;
    margin: 0 0 22px;
    padding: 0 !important;
    gap: 18px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none
}

.members-filter-group label {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guild-multiselect__button, .sort-select__button {
    position: relative;
    min-height: 64px;
    padding: 10px 15px;
    gap: 13px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px;
    background: transparent !important;
    box-shadow: none !important
}

.guild-multiselect__button::after, .sort-select__button::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(47, 129, 247, .09), transparent 72%);
    opacity: 0;
    pointer-events: none;
    content: "";
    transition: opacity .2s ease
}

.guild-multiselect__button:hover, .sort-select__button:hover {
    transform: none;
    border: 0 !important;
    background: rgba(47, 129, 247, .07) !important;
    box-shadow: none !important
}

.guild-multiselect__button:hover::after, .sort-select__button:hover::after, .guild-multiselect.is-open .guild-multiselect__button::after, .sort-select.is-open .sort-select__button::after {
    opacity: 1
}

.guild-multiselect.is-open .guild-multiselect__button, .sort-select.is-open .sort-select__button {
    border: 0 !important;
    background: rgba(47, 129, 247, .09) !important;
    box-shadow: none !important
}

.members-control-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 10px;
    place-items: center;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-accent);
    font-size: 24px
}

.sort-select__button .members-control-icon {
    background: transparent !important;
    color: var(--color-sky)
}

.guild-multiselect__summary, .sort-select__summary {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em
}

.guild-multiselect__caret, .sort-select__caret {
    font-size: 20px;
    color: var(--color-sky)
}

.guild-multiselect, .sort-select {
    z-index: 5100
}

.guild-multiselect.is-open, .sort-select.is-open {
    z-index: 9000
}

.guild-multiselect__panel, .sort-select__panel {
    z-index: 10000 !important;
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-surface-2) 98%, transparent);
    box-shadow: 0 22px 60px rgba(2, 8, 20, .46);
    backdrop-filter: blur(20px);
}

#membersTable_wrapper {
    position: relative;
    z-index: 1;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important
}

.table.dataTable {
    min-width: 720px;
    padding: 5px 12px 12px;
    border-collapse: separate !important;
    border-spacing: 0 9px;
}

.table.dataTable thead, .table.dataTable thead tr {
    height: 46px !important
}

.table.dataTable thead th {
    height: 46px !important;
    padding: 8px 16px !important;
    border: 0 !important;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    vertical-align: middle !important
}

.table.dataTable thead {
    display: none !important
}

.table.dataTable tbody tr, .table.dataTable tbody tr:hover {
    position: relative;
    background: transparent !important;
    transform: none !important;
    filter: none !important;
    transition: none !important
}

.table.dataTable tbody td {
    height: 100px;
    padding: 2px 16px;
    border: 0 !important;
    outline: 0 !important;
    background: color-mix(in srgb, var(--color-surface-2) 88%, transparent);
    box-shadow: none !important;
    vertical-align: middle;
}

.table.dataTable tbody td:first-child {
    border-radius: 14px 0 0 14px;
    box-shadow: none !important
}

.table.dataTable tbody td:last-child {
    border-radius: 0 14px 14px 0;
    box-shadow: none !important;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700
}

.sort-select__option {
    min-height: 48px;
    margin: 3px 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px
}

.sort-select__option:hover, .sort-select__option:focus, .sort-select__option.is-focused {
    border-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
    background: color-mix(in srgb, var(--color-accent) 10%, transparent)
}

.sort-select__option.is-selected {
    border-color: color-mix(in srgb, var(--color-accent) 34%, transparent);
    background: color-mix(in srgb, var(--color-accent) 16%, transparent);
    color: var(--color-sky)
}

.table a.ign {
    display: inline-flex;
    font-size: 18px;
    line-height: 1.2;
    text-shadow: 0 2px rgba(0, 0, 0, .35);
}

.table.dataTable tbody tr + tr td {
    border-top: 0 !important
}

.table.dataTable tbody td:first-child > a, .table.dataTable tbody td:first-child > a:hover, .table.dataTable tbody td:first-child > a:focus {
    display: grid;
    width: 108px;
    height: 108px;
    margin: 0 auto;
    place-items: center;
    overflow: hidden;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important
}

.table.dataTable tbody td:first-child > a::before, .table.dataTable tbody td:first-child > a::after {
    display: none !important;
    content: none !important
}

.member, .member:hover {
    display: block;
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto -2px;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: auto;
    opacity: 1 !important;
    filter: none !important;
    clip-path: inset(7px 0 0);
    transform: none !important;
    transition: none !important;
}

.member-sort-value {
    color: var(--color-sky) !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    font-variant-numeric: tabular-nums
}

.member-cell-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.member-cell-label {
    display: block;
    color: var(--color-text-soft);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase
}

.member-cell-stack > strong {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 750
}

.member-sort-value .member-cell-stack > strong {
    color: var(--color-sky);
    font-size: 17px;
    font-weight: 850
}

.member-cell-stack .ign {
    min-height: 22px;
    align-items: center
}

.table.dataTable tbody td:nth-child(2) > a, .table.dataTable tbody td:nth-child(2) > a:hover, .table.dataTable tbody td:nth-child(2) > a:focus {
    display: grid;
    width: 92px;
    height: 92px;
    margin: 0 auto;
    place-items: center;
    overflow: hidden;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important
}

.table.dataTable tbody td:nth-child(2) > a::before, .table.dataTable tbody td:nth-child(2) > a::after {
    display: none !important;
    content: none !important
}

.table.dataTable .row-number {
    width: 48px !important;
    padding-right: 4px !important;
    padding-left: 8px !important
}

.row-number > span {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    place-items: center;
    border-radius: 10px;
    background: rgba(47, 129, 247, .1);
    color: var(--color-sky);
    font-size: 11px;
    font-weight: 850;
    font-variant-numeric: tabular-nums
}

html.light-theme .page-header {
    background: transparent;
}

html.light-theme .members-filters, html.light-theme #membersTable_wrapper {
    background: rgba(255, 255, 255, .78);
}

html.light-theme .table.dataTable tbody td {
    background: rgba(244, 248, 252, .94);
}

html.light-theme #table > .members-filters, html.light-theme #membersTable_wrapper {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important
}

@media (max-width: 760px) {
    .page-header, #table {
        width: calc(100% - 24px)
    }

    .page-header {
        margin-top: 30px;
        padding: 34px 20px 30px
    }

    .page-header .page-title {
        padding: 0 34px
    }

    .page-header .page-title::before, .page-header .page-title::after {
        width: 22px
    }

    .page-header .page-title::before {
        right: calc(100% - 27px)
    }

    .page-header .page-title::after {
        left: calc(100% - 27px)
    }

    .members-filters {
        padding: 15px
    }

    .members-filter-group + .members-filter-group {
        margin-top: 14px
    }

    #membersTable_wrapper {
        overflow: hidden
    }

    .dataTables_scrollBody {
        overflow-x: auto !important
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-header::before, #membersTable_wrapper::before, .members-filters::before {
        animation: none
    }

    .table.dataTable tbody tr, .member {
        transition: none
    }
}

/* Compact transparent member controls. */
#table > .members-filters {
    grid-template-columns:repeat(2, minmax(250px, 420px));
    justify-content: center;
    gap: 14px
}

#table > .members-filters .members-filter-group {
    display: block;
    grid-template-rows:none;
    min-width: 0
}

#table .guild-multiselect__button, #table .sort-select__button {
    min-height: 54px;
    padding: 7px 12px;
    gap: 9px;
    border: 0 !important;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: none !important
}

#table .members-control-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    font-size: 21px
}

#table .guild-multiselect__summary, #table .sort-select__summary {
    font-size: 14px
}

#table .guild-multiselect__caret, #table .sort-select__caret {
    font-size: 18px
}

.table.dataTable .row-number {
    width: 62px !important;
    padding-right: 4px !important;
    padding-left: 20px !important
}

@media (max-width: 760px) {
    #table > .members-filters {
        grid-template-columns:1fr;
        gap: 8px
    }
}

/* Sticky table headings. DataTables renders them in a dedicated scroll-head container. */
.table.dataTable thead {
    display: table-header-group !important
}

.dataTables_scrollHead {
    position: sticky !important;
    top: 72px;
    z-index: 1200;
    overflow: hidden !important;
    border-radius: 13px 13px 0 0;
    background: color-mix(in srgb, var(--color-bg) 88%, transparent);
    box-shadow: 0 10px 24px rgba(2, 8, 20, .15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px)
}

.dataTables_scrollHead .table.dataTable {
    padding-top: 0;
    padding-bottom: 0;
    border-spacing: 0
}

.dataTables_scrollHead .table.dataTable thead th {
    height: 48px !important;
    background: transparent;
    color: var(--color-text-muted)
}

html.light-theme .dataTables_scrollHead {
    background: rgba(247, 250, 253, .9)
}

@media (max-width: 760px) {
    .dataTables_scrollHead {
        top: 62px
    }
}

/* Refined controls and compact sticky table head. */
#table .guild-multiselect__button, #table .sort-select__button {
    border: 1px solid rgba(47, 129, 247, .24) !important;
    background: rgba(47, 129, 247, .025) !important
}

#table .sort-select__button {
    border-color: rgba(121, 216, 255, .22) !important;
    background: rgba(121, 216, 255, .022) !important
}

#table .guild-multiselect__button:hover, #table .sort-select__button:hover, #table .guild-multiselect.is-open .guild-multiselect__button, #table .sort-select.is-open .sort-select__button {
    border-color: rgba(121, 216, 255, .46) !important;
    background: rgba(47, 129, 247, .07) !important
}

.dataTables_scrollHead {
    top: 72px;
    overflow: hidden !important;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
    border-radius: 0;
    background: color-mix(in srgb, var(--color-bg) 82%, transparent);
    box-shadow: 0 8px 18px rgba(2, 8, 20, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

.dataTables_scrollHead .table.dataTable {
    padding: 0 12px;
    border-spacing: 0
}

.dataTables_scrollHead .table.dataTable thead, .dataTables_scrollHead .table.dataTable thead tr {
    height: 42px !important
}

.dataTables_scrollHead .table.dataTable thead th {
    position: relative;
    height: 42px !important;
    padding: 0 16px !important;
    background: transparent !important;
    color: color-mix(in srgb, var(--color-text-muted) 88%, var(--color-text));
    font-size: 9px;
    font-weight: 850;
    line-height: 42px;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap
}

.dataTables_scrollHead .table.dataTable thead th:not(:empty)::after {
    position: absolute;
    right: 24%;
    bottom: 0;
    left: 24%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: .42;
    content: ""
}

html.light-theme .dataTables_scrollHead {
    border-bottom-color: rgba(23, 105, 224, .18);
    background: rgba(247, 250, 253, .86);
    box-shadow: 0 7px 16px rgba(31, 55, 84, .06)
}

@media (max-width: 760px) {
    .dataTables_scrollHead {
        top: 62px
    }

    .dataTables_scrollHead .table.dataTable thead th {
        padding: 0 8px !important;
        font-size: 8px
    }
}

/* Header follows the exact card width and surface. */
#membersTable_wrapper .dataTables_scroll {
    overflow: visible !important
}

#membersTable_wrapper .dataTables_scrollHead {
    position: sticky !important;
    top: 72px !important;
    z-index: 1400;
    width: calc(100% - 24px) !important;
    margin: 0 12px 9px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--color-surface-2) 88%, transparent) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

#membersTable_wrapper .dataTables_scrollHeadInner {
    width: 100% !important
}

#membersTable_wrapper .dataTables_scrollHeadInner > .dataTable {
    width: 100% !important;
    padding: 0 !important
}

.member-sort-value, .member-sort-value .member-cell-stack > strong {
    color: var(--color-text) !important;
    font-size: 15px !important;
    font-weight: 750 !important
}

html.light-theme #membersTable_wrapper .dataTables_scrollHead {
    background: rgba(244, 248, 252, .94) !important
}

@media (max-width: 760px) {
    #membersTable_wrapper .dataTables_scrollHead {
        top: 62px !important
    }
}

/* Static header with no duplicated DataTables gap. */
#membersTable_wrapper .dataTables_scrollHead {
    position: relative !important;
    top: auto !important;
    margin: 0 12px 2px !important
}

#membersTable_wrapper .dataTables_scrollBody thead {
    visibility: collapse !important;
    height: 0 !important
}

#membersTable_wrapper .dataTables_scrollBody thead tr, #membersTable_wrapper .dataTables_scrollBody thead th {
    height: 0 !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    line-height: 0 !important
}

#membersTable_wrapper .dataTables_scrollBody > .dataTable {
    padding-top: 0 !important
}

.dataTables_scrollHead .table.dataTable thead th {
    font-size: 13px !important;
    font-weight: 850 !important;
    letter-spacing: .1em !important
}

.table.dataTable tbody td.member-sort-value, .member-sort-value .member-cell-stack > strong {
    color: var(--color-text) !important;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    letter-spacing: normal !important
}

.page-header .page-title::before,
.page-header .page-title::after,
.dataTables_scrollHead .table.dataTable thead th:not(:empty)::after {
    display: none !important;
    content: none !important;
}

/* G-Exp page */
/* G-Exp follows the same visual system as the members directory. */
#gexp-controls, .g-exp-statistics, .gexp-statusbar {
    width: min(1180px, calc(100% - 40px));
    max-width: none
}

#gexp-controls {
    padding: 0
}

.gexp-roster-note {
    margin: 8px 2px 0;
    color: var(--color-text-soft);
    font-size: 12px;
    line-height: 1.45
}

.gexp-statusbar {
    display: flex;
    min-height: 52px;
    margin: 14px auto 0;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid color-mix(in srgb, var(--color-danger, #f85149) 42%, var(--color-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--color-danger, #f85149) 10%, var(--color-surface));
    color: var(--color-text)
}

.gexp-statusbar[hidden] {
    display: none
}

.gexp-statusbar[data-state="warning"] {
    border-color: color-mix(in srgb, var(--color-warning, #d29922) 46%, var(--color-border));
    background: color-mix(in srgb, var(--color-warning, #d29922) 10%, var(--color-surface))
}

.gexp-statusbar > .iconify {
    flex: 0 0 auto;
    color: var(--color-danger, #f85149);
    font-size: 22px
}

.gexp-statusbar[data-state="warning"] > .iconify {
    color: var(--color-warning, #d29922)
}

#gexpStatusText {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.4
}

#gexpRetryButton {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 11px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--color-border-strong);
    border-radius: 9px;
    background: var(--color-surface-2);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 750
}

#gexpRetryButton:disabled {
    cursor: wait;
    opacity: .62
}

#gexp-controls .gexp-topbar {
    display: grid;
    grid-template-columns:minmax(420px, 1.25fr) minmax(280px, .75fr);
    align-items: start;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none
}

#gexp-controls .members-filter-group {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    gap: 9px
}

#gexp-controls .members-filter-label, #gexp-controls .members-filter-group > label {
    margin: 0 0 1px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase
}

.gexp-period-nav {
    height: 54px;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(47, 129, 247, .24);
    border-radius: 14px;
    background: rgba(47, 129, 247, .025)
}

.gexp-period-nav button {
    border-radius: 10px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 800
}

.gexp-period-nav button:hover:not(:disabled) {
    background: rgba(47, 129, 247, .08);
    color: var(--color-text)
}

.gexp-period-nav button.is-active {
    background: linear-gradient(135deg, var(--color-accent-strong), var(--color-sky));
    color: #fff;
    box-shadow: 0 8px 22px rgba(47, 129, 247, .25)
}

.gexp-period-status {
    display: flex;
    min-height: 24px;
    padding: 0 4px;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px
}

#gexp-controls .guild-multiselect__button {
    min-height: 54px;
    padding: 10px 15px;
    border: 1px solid rgba(47, 129, 247, .24) !important;
    border-radius: 14px;
    background: rgba(47, 129, 247, .025) !important
}

#gexp-controls .guild-multiselect__button:hover, #gexp-controls .guild-multiselect.is-open .guild-multiselect__button {
    border-color: rgba(121, 216, 255, .46) !important;
    background: rgba(47, 129, 247, .07) !important
}

.g-exp-statistics {
    margin: 0 auto 24px
}

#g-exp-chart {
    height: 430px !important;
    min-height: 430px !important;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--color-surface-2) 88%, transparent);
    box-shadow: 0 18px 55px rgba(2, 8, 20, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

#table #membersTable_wrapper {
    margin-top: 0
}

#table .table.dataTable tbody td.sum {
    color: color-mix(in srgb, var(--color-text-muted) 88%, var(--color-text)) !important;
    background: color-mix(in srgb, var(--color-surface-2) 88%, transparent) !important;
    font-size: 17px;
    font-weight: 850;
    font-variant-numeric: tabular-nums
}

#table .gexp-value {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, var(--color-accent-strong), var(--color-sky));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

#table .gexp-value {
    color: color-mix(in srgb, var(--color-text-muted) 88%, var(--color-text)) !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important
}

#table .table.dataTable tbody td:nth-child(5) {
    color: color-mix(in srgb, var(--color-text-muted) 88%, var(--color-text));
    font-size: 15px;
    font-weight: 750
}

html.light-theme #g-exp-chart {
    background: rgba(244, 248, 252, .92);
    box-shadow: 0 18px 48px rgba(31, 55, 84, .08)
}

@media (max-width: 760px) {
    #gexp-controls, .g-exp-statistics, .gexp-statusbar {
        width: calc(100% - 24px)
    }

    .gexp-statusbar {
        flex-wrap: wrap
    }

    #gexpRetryButton {
        width: 100%
    }

    #gexp-controls .gexp-topbar {
        grid-template-columns:1fr
    }

    .gexp-period-nav button {
        padding: 0 5px;
        font-size: 12px
    }

    #g-exp-chart {
        height: 380px !important;
        min-height: 380px !important;
        padding: 8px;
        border-radius: 15px
    }
}

/* Player names in light theme */
html.light-theme .table a.ign,
html.light-theme .table a.ign *,
html.light-theme .leader-name,
html.light-theme .leader-name *,
html.light-theme #members .member-name,
html.light-theme #members .member-name *,
html.light-theme .rankname,
html.light-theme .rankname *,
html.light-theme .member-name-full,
html.light-theme .member-name-full *,
html.light-theme .member-name-compact,
html.light-theme .member-name-compact *,
html.light-theme .rankname-full,
html.light-theme .rankname-full *,
html.light-theme .rankname-compact,
html.light-theme .rankname-compact *,
html.light-theme .player-hero__name,
html.light-theme .player-hero__name *,
html.light-theme #member-hero .player-hero__name,
html.light-theme #member-hero .player-hero__name *,
html.light-theme .best-player-block #top_player_ign,
html.light-theme .best-player-block #top_player_ign *,
html.light-theme .best-player-block .honor-nametag,
html.light-theme .best-player-block .honor-nametag *,
html.light-theme .game-metrics strong.minecraft-prestige,
html.light-theme .game-metrics strong.minecraft-prestige *,
html.light-theme .ghost p,
html.light-theme .ghost p * {
    -webkit-text-stroke: 0 !important;
    paint-order: normal;
    text-shadow: none !important;
    filter: none !important;
}

/* Mobile G-Exp cards expose the player and earned G-Exp without horizontal scrolling. */
.member-cell-label {
    display: none;
}

@media (max-width: 760px) {
    #membersTable_wrapper,
    #membersTable_wrapper .dataTables_scroll,
    #membersTable_wrapper .dataTables_scrollBody {
        width: 100% !important;
        overflow: visible !important;
    }

    #membersTable_wrapper .dataTables_scrollHead {
        display: none !important;
    }

    #membersTable_wrapper .dataTables_scrollBody thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        visibility: visible !important;
        white-space: nowrap;
    }

    #membersTable_wrapper .dataTables_scrollBody thead tr,
    #membersTable_wrapper .dataTables_scrollBody thead th,
    #membersTable_wrapper .dataTables_scrollBody thead .dataTables_sizing {
        display: block !important;
        width: 1px !important;
        max-width: 1px !important;
        height: 1px !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        border-spacing: 0 !important;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody {
        display: grid;
        width: 100%;
        gap: 10px;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody tr {
        display: grid;
        width: 100%;
        min-height: 88px;
        padding: 9px 10px 9px 6px;
        grid-template-columns: 36px 58px minmax(0, 1fr) minmax(82px, auto);
        grid-template-areas:
            "number avatar player value"
            "number avatar guild value";
        align-items: center;
        column-gap: 6px;
        row-gap: 2px;
        border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
        border-radius: 14px;
        background: color-mix(in srgb, var(--color-surface-2) 88%, transparent) !important;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td {
        display: flex;
        width: auto !important;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 3px 5px !important;
        align-items: center;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(1) {
        grid-area: number;
        align-self: stretch;
        justify-content: center;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(2) {
        grid-area: avatar;
        padding: 0 !important;
        justify-content: center;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(3) {
        grid-area: player;
        justify-content: flex-start;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(4) {
        grid-area: value;
        justify-content: flex-end;
        text-align: right;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(5) {
        grid-area: guild;
        justify-content: flex-start;
    }

    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(2) > a,
    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(2) > a:hover,
    #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody td:nth-child(2) > a:focus {
        width: 58px;
        height: 70px;
    }

    #membersTable_wrapper .dataTables_scrollBody .member,
    #membersTable_wrapper .dataTables_scrollBody .member:hover {
        width: 66px !important;
        height: 70px !important;
        margin: 0 !important;
        clip-path: inset(5px 0 0);
    }

    #membersTable_wrapper .row-number {
        padding: 0 !important;
    }

    #membersTable_wrapper .row-number > span {
        min-width: 30px;
        height: 30px;
        padding: 0 5px;
        border-radius: 9px;
        font-size: 10px;
    }

    #membersTable_wrapper td:nth-child(3),
    #membersTable_wrapper td:nth-child(3) .ign {
        min-width: 0;
        max-width: 100%;
    }

    #membersTable_wrapper td:nth-child(3) .ign {
        display: block;
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #membersTable_wrapper td:nth-child(4) {
        align-self: stretch;
        color: var(--color-text) !important;
        font-size: 15px !important;
        font-weight: 850 !important;
        font-variant-numeric: tabular-nums;
    }

    #membersTable_wrapper .gexp-mobile-value {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
    }

    #membersTable_wrapper .gexp-mobile-value .member-cell-label {
        display: block;
        font-size: 8px;
        line-height: 1;
    }

    #membersTable_wrapper td:nth-child(5) {
        color: var(--color-text-muted) !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    #membersTable_wrapper .dataTables_empty {
        grid-area: auto !important;
        grid-column: 1 / -1 !important;
        justify-content: center !important;
        min-height: 88px;
        text-align: center !important;
    }

    html.light-theme #membersTable_wrapper .dataTables_scrollBody > .dataTable tbody tr {
        border-color: rgba(137, 160, 187, .32);
        background: rgba(244, 248, 252, .94) !important;
    }
}
