/* Player stats foundation */
:root {
    --color-danger: var(--color-accent-danger);
}

html {
    min-height: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

body.stats-loading .stats-header,
body.stats-loading .stats-page {
    visibility: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    padding: 15px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: rgba(22, 27, 34, 0.92);
    box-shadow: var(--shadow-soft);
}

.page-title {
    margin: 0 auto;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-search {
    display: flex;
    align-items: stretch;
    width: min(360px, 100%);
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    box-shadow: none;
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--color-text);
    padding: 0 14px;
    outline: none;
}

.header-search input::placeholder {
    color: var(--color-text-soft);
}

.header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border: 0;
    border-left: 1px solid var(--color-border);
    background-color: rgba(47, 129, 247, 0.14);
    color: var(--color-accent);
    cursor: pointer;
    font-size: 22px;
}

.back-button,
.action-button,
.error-message button,
.error-message__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    line-height: 1.1;
    box-shadow: none;
    transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.back-button {
    padding: 12px 16px;
    border-color: rgba(47, 129, 247, 0.32);
    background-color: rgba(47, 129, 247, 0.14);
    color: var(--color-accent);
    font-weight: 700;
}

.action-button {
    position: relative;
    width: 48px;
    padding: 12px;
    background-color: var(--color-surface-2);
    font-size: 20px;
}

#themeIcon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.action-button[disabled] {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.back-button:hover,
.action-button:hover,
.error-message button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.stats-page {
    display: grid;
    gap: 20px;
    width: min(var(--container-max), 100%);
    margin: 0 auto;
}

.stats-back-row {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 0;
}

.stats-back-link {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    background: color-mix(in srgb, var(--color-surface) 72%, transparent);
    color: var(--color-text-muted);
    font-weight: 750;
    line-height: 1.2;
}

.stats-back-link:hover,
.stats-back-link:focus-visible {
    border-color: color-mix(in srgb, var(--color-accent) 48%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    color: var(--color-sky);
}

.stats-hub {
    display: grid;
    width: min(920px, calc(100% - 40px));
    min-height: min(610px, calc(100vh - 210px));
    margin: 36px auto 20px;
    place-items: center;
}

.stats-hub__card {
    position: relative;
    display: grid;
    width: min(720px, 100%);
    padding: clamp(28px, 6vw, 58px);
    justify-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
    border-radius: 24px;
    background: radial-gradient(circle at 82% 8%, rgba(47, 129, 247, .17), transparent 34%),
    color-mix(in srgb, var(--color-surface) 88%, transparent);
    box-shadow: 0 24px 72px rgba(2, 8, 20, .18), inset 0 1px rgba(255, 255, 255, .06);
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stats-hub__icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--color-accent) 34%, var(--color-border));
    border-radius: 18px;
    background: color-mix(in srgb, var(--color-accent) 14%, transparent);
    color: var(--color-sky);
    font-size: 34px;
}

.stats-hub__eyebrow {
    margin: 0 0 8px;
    color: var(--color-sky);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.stats-hub h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 850;
    line-height: 1.08;
}

.stats-hub__description {
    max-width: 580px;
    margin: 16px 0 28px;
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.55;
}

.stats-hub__form {
    display: grid;
    width: min(590px, 100%);
    gap: 8px;
    text-align: left;
}

.stats-hub__form label {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 750;
}

.stats-hub__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.stats-hub__search input,
.stats-hub__search button {
    min-height: 52px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font: inherit;
}

.stats-hub__search input {
    min-width: 0;
    padding: 0 16px;
    outline: none;
    background: color-mix(in srgb, var(--color-bg) 72%, transparent);
    color: var(--color-text);
}

.stats-hub__search input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 16%, transparent);
}

.stats-hub__search input[aria-invalid="true"] {
    border-color: var(--color-accent-danger);
}

.stats-hub__search button {
    display: inline-flex;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-on-accent);
    cursor: pointer;
    font-weight: 800;
}

.stats-hub__search button:hover,
.stats-hub__search button:focus-visible {
    border-color: var(--color-accent-strong);
    background: var(--color-accent-strong);
}

.stats-hub__error {
    margin: 2px 0 0;
    color: var(--color-accent-danger);
    font-size: 13px;
    font-weight: 650;
}

.stats-card {
    min-width: 0;
    scroll-margin-top: 90px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.network-panels {
    display: grid;
    gap: 12px;
}

.warning-card {
    position: relative;
    overflow: hidden;
}

.warning-card .section-title {
    margin-bottom: 10px;
    border-bottom: 0;
    letter-spacing: 0;
}

.warning-list {
    display: grid;
    gap: 10px;
}

.warning-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 0;
}

.warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
}

.warning-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.warning-text {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
}

.section-title {
    margin: 0 0 15px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.stat-block {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-2);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.35;
}

.stat-value {
    margin-top: 4px;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.game-list {
    display: grid;
    min-width: 0;
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.games-toolbar {
    min-width: 0;
    margin-bottom: 14px;
}

.game-tab-select {
    display: none;
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    font-weight: 700;
}

.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

#games-card .game-tabs {
    flex-wrap: nowrap;
    margin-bottom: 0;
    padding-bottom: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

#games-card .game-list {
    height: 640px;
    padding-right: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.game-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-2);
    color: var(--color-text);
    cursor: pointer;
    font-weight: 800;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.game-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 129, 247, 0.28);
}

.game-tab.active {
    border-color: rgba(47, 129, 247, 0.42);
    background-color: rgba(47, 129, 247, 0.18);
    color: var(--color-accent);
}

.game-row {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
}

.game-row--empty {
    display: block;
    color: var(--color-text-muted);
}

.game-row h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.game-metrics {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 0;
}

.game-metrics span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 50px;
    justify-content: center;
    padding: 4px 14px;
    border-left: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.25;
}

.game-metrics strong {
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.game-row--rewards {
    align-items: start;
}

.game-row--ranked-divisions {
    align-items: start;
}

.rewards-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.ranked-divisions-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.rewards-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ranked-divisions-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.rewards-summary span,
.rewards-active-list span,
.ranked-divisions-summary span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-3);
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.25;
}

.rewards-summary strong,
.rewards-active-list strong,
.ranked-divisions-summary strong {
    color: var(--color-text);
    font-size: 16px;
}

.rewards-active {
    display: grid;
    gap: 8px;
}

.rewards-active h4,
.reward-tier__header h4 {
    margin: 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.rewards-active-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.reward-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.reward-tier {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-3);
}

.reward-tier--masters {
    border-color: rgba(47, 129, 247, 0.4);
}

.reward-tier--diamond {
    border-color: rgba(115, 214, 255, 0.38);
}

.reward-tier--gold {
    border-color: rgba(47, 129, 247, 0.36);
}

.reward-tier__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.reward-tier__header span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 800;
}

.reward-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.2;
}

.reward-chip .iconify {
    flex: 0 0 auto;
    font-size: 15px;
}

.reward-chip--owned {
    border-color: rgba(112, 224, 139, 0.32);
    background-color: rgba(112, 224, 139, 0.1);
    color: var(--color-text);
}

.reward-chip--owned .iconify {
    color: #70e08b;
}

.reward-chip--missing {
    opacity: 0.58;
}

.ranked-division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.ranked-division {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-3);
}

.ranked-division--masters {
    border-color: rgba(47, 129, 247, 0.46);
    background-color: rgba(47, 129, 247, 0.065);
}

.ranked-division--diamond {
    border-color: rgba(115, 214, 255, 0.42);
    background-color: rgba(115, 214, 255, 0.06);
}

.ranked-division--gold {
    border-color: rgba(47, 129, 247, 0.38);
    background-color: rgba(47, 129, 247, 0.06);
}

.ranked-division--iron {
    border-color: rgba(196, 204, 214, 0.34);
    background-color: rgba(196, 204, 214, 0.05);
}

.ranked-division--stone {
    border-color: rgba(150, 160, 172, 0.28);
}

.ranked-division--unknown {
    border-style: dashed;
}

.ranked-division__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ranked-division__header h4 {
    margin: 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.ranked-division__header span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 800;
}

.ranked-season-list {
    display: grid;
    gap: 8px;
}

.ranked-season-row {
    display: grid;
    grid-template-columns: minmax(74px, 0.9fr) repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-2);
}

.ranked-season-row > strong {
    min-width: 0;
    color: var(--color-text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ranked-season-stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ranked-season-stat b {
    color: var(--color-text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ranked-divisions-empty {
    padding: 14px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-3);
    color: var(--color-text-muted);
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-3);
    color: var(--color-text-muted);
}

.empty-state .iconify {
    flex: 0 0 auto;
    color: var(--color-accent);
    font-size: 28px;
}

.empty-state strong {
    display: block;
    color: var(--color-text);
    font-size: 16px;
}

.empty-state p {
    margin: 2px 0 0;
}

.error-message {
    position: relative;
    inset: auto;
    z-index: auto;
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(560px, calc(100vw - 40px));
    margin: clamp(48px, 10vh, 112px) auto 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 32px clamp(22px, 5vw, 42px);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.error-message__icon {
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 30px;
}

.error-message p {
    max-width: 460px;
    margin: 0;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.55;
}

.error-message[data-state="empty"] {
    border-color: var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text);
}

.error-message[data-state="error"] {
    border-color: color-mix(in srgb, var(--color-accent-danger) 48%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent-danger) 8%, var(--color-surface));
}

.error-message[data-state="error"] .error-message__icon {
    border-color: color-mix(in srgb, var(--color-accent-danger) 48%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent-danger) 12%, var(--color-surface));
    color: var(--color-accent-danger);
}

.error-message button {
    gap: 8px;
    min-height: 44px;
    margin-top: 2px;
    padding: 10px 16px;
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: 700;
    cursor: pointer;
}

.error-message__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.error-message__actions a {
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--color-surface-2);
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.error-message__actions a:hover,
.error-message__actions a:focus-visible {
    border-color: var(--color-border-strong);
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
    text-decoration: none;
}

.error-message button .iconify {
    font-size: 19px;
}

.error-message button:hover,
.error-message button:focus-visible {
    border-color: var(--color-accent-strong);
    background-color: var(--color-accent-strong);
    color: var(--color-on-accent);
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    body {
        padding: 12px;
    }

    .stats-header {
        align-items: stretch;
    }

    .header-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .page-title {
        order: 2;
        flex-basis: 100%;
        font-size: 20px;
    }

    .top-actions {
        order: 1;
        margin-left: auto;
    }

    #games-card .game-tabs {
        display: none;
    }

    .game-tab-select {
        display: block;
    }

    #games-card .game-list {
        height: 560px;
        padding-right: 4px;
    }

    .game-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 0 12px;
    }

    .game-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid var(--color-border);
    }

    .game-metrics span {
        min-height: 58px;
        padding: 8px 10px;
        border-bottom: 1px solid var(--color-border);
        border-left: 0;
    }

    .game-metrics span:nth-child(even) {
        border-left: 1px solid var(--color-border);
    }

    .rewards-summary,
    .rewards-active-list,
    .reward-tier-grid,
    .ranked-divisions-summary,
    .ranked-division-grid {
        grid-template-columns: 1fr;
    }
}

html.light-theme .stats-card,
html.light-theme .page-header {
    background-color: var(--color-surface);
    color: var(--color-text);
}

html.light-theme .page-title,
html.light-theme .section-title,
html.light-theme .stats-card h2,
html.light-theme .stats-card h3 {
    color: var(--color-text);
}

html.light-theme .header-search input,
html.light-theme .stats-card input,
html.light-theme .stats-card select {
    color: var(--color-text);
}

html.light-theme .header-search input::placeholder {
    color: var(--color-text-soft);
}

html.light-theme .error-message[data-state="empty"] {
    border-color: var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text);
}

@media (max-width: 480px) {
    .ranked-season-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

}

/* Player stats presentation */
.page-header {
    display: none
}

.stats-page {
    width: min(1180px, calc(100% - 40px));
    padding: 34px 0 30px;
    gap: 28px
}

.stats-card {
    position: relative;
    padding: 30px;
    border: 0;
    border-radius: 22px;
    background: color-mix(in srgb, var(--color-surface) 84%, transparent);
    box-shadow: 0 22px 62px rgba(2, 8, 20, .14), inset 0 1px rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px)
}

.stats-card::before {
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(110deg, var(--color-accent-strong), var(--color-sky), rgba(255, 255, 255, .72), var(--color-accent-strong));
    background-size: 300% 100%;
    opacity: .34;
    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: stats-border-flow 7s linear infinite
}

.stats-card > * {
    position: relative;
    z-index: 2
}

@keyframes stats-border-flow {
    to {
        background-position: 300% 50%
    }
}

.stats-page .player-hero {
    min-height: 350px;
    padding: 46px 54px;
    grid-template-columns:minmax(0, 1.25fr) minmax(240px, .75fr);
    overflow: hidden;
    background: radial-gradient(circle at 82% 10%, rgba(47, 129, 247, .18), transparent 32%), linear-gradient(135deg, color-mix(in srgb, var(--color-surface-2) 90%, transparent), color-mix(in srgb, var(--color-surface) 92%, transparent))
}

.stats-page .player-hero::after {
    position: absolute;
    right: -100px;
    bottom: -210px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(121, 216, 255, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(47, 129, 247, .022), 0 0 0 120px rgba(47, 129, 247, .014);
    pointer-events: none;
    content: ""
}

.player-hero__details {
    gap: 24px
}

.player-hero__name {
    display: block;
    width: 100%;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.035em;
    overflow-wrap: normal;
    white-space: nowrap;
    text-shadow: 0 10px 32px rgba(0, 0, 0, .22)
}

.stats-page .player-hero__name br {
    display: none
}

.stats-page .player-hero__name span {
    display: inline !important;
    white-space: inherit !important
}

.player-hero__skin {
    width: clamp(220px, 22vw, 285px);
    max-height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .32))
}

.player-hero__pill {
    min-height: 38px;
    padding: 9px 13px;
    border-color: color-mix(in srgb, var(--color-accent) 20%, var(--color-border));
    border-radius: 10px;
    background: rgba(110, 118, 129, .07);
    font-size: 13px
}

.player-hero .social-link {
    border-radius: 11px;
    background: rgba(110, 118, 129, .07)
}

.section-title {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;
    letter-spacing: -.035em;
    background: linear-gradient(90deg, var(--color-accent-strong), var(--color-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.stats-page .stats-grid {
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 12px
}

.stats-page .stat-block {
    position: relative;
    min-height: 118px;
    padding: 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--color-accent) 7%, var(--color-surface-2)), color-mix(in srgb, var(--color-surface-2) 86%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 76%, transparent);
    transition: transform .18s ease, box-shadow .18s ease
}

.stats-page .stat-block:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 32%, var(--color-border)), 0 14px 30px rgba(2, 8, 20, .1)
}

.stat-label {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase
}

.stat-value {
    margin-top: 13px;
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.03em
}

.stats-grid .stat-block:first-child .stat-value {
    background: linear-gradient(90deg, var(--color-accent-strong), var(--color-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

#network-card > .section-title, #games-card > .section-title, #skyblock-card > .section-title {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 34px;
    padding: 0 54px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    text-align: center
}

#network-card > .section-title::before, #network-card > .section-title::after, #games-card > .section-title::before, #games-card > .section-title::after, #skyblock-card > .section-title::before, #skyblock-card > .section-title::after {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
    content: ""
}

#network-card > .section-title::before, #games-card > .section-title::before, #skyblock-card > .section-title::before {
    right: calc(100% - 42px)
}

#network-card > .section-title::after, #games-card > .section-title::after, #skyblock-card > .section-title::after {
    left: calc(100% - 42px);
    transform: rotate(180deg)
}

.game-tabs {
    gap: 7px
}

.game-tab {
    min-height: 42px;
    padding: 9px 14px;
    border-color: transparent;
    border-radius: 10px;
    background: rgba(110, 118, 129, .08);
    color: var(--color-text-muted);
    font-size: 12px
}

.game-tab:hover {
    border-color: transparent;
    background: var(--color-surface-3);
    color: var(--color-text)
}

.game-tab.active {
    border-color: transparent;
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 129, 247, .22)
}

#games-card .game-tabs {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0
}

#games-card .game-list {
    height: auto;
    max-height: none;
    padding: 0;
    border: 0;
    gap: 12px;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto
}

.game-row {
    grid-template-columns:minmax(130px, 180px) minmax(0, 1fr);
    padding: 17px 18px;
    border: 0;
    border-radius: 14px;
    background: rgba(110, 118, 129, .05);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 68%, transparent)
}

.game-row h3 {
    font-size: 16px
}

.game-metrics {
    gap: 4px
}

.game-metrics span {
    min-height: 58px;
    padding: 7px 13px;
    border: 0;
    border-radius: 9px;
    background: rgba(110, 118, 129, .055);
    font-size: 11px
}

.game-metrics strong {
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.025em
}

.warning-card {
    border: 1px solid #8b3940;
    background: linear-gradient(135deg, #351d21, #1c181c);
    box-shadow: 0 18px 46px rgba(90, 22, 31, .22), inset 0 1px rgba(255, 255, 255, .045)
}

.light-theme .stats-card {
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 20px 55px rgba(31, 55, 84, .1)
}

.light-theme .stats-page .player-hero {
    background: radial-gradient(circle at 82% 10%, rgba(23, 105, 224, .12), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(233, 242, 252, .84))
}

.warning-card::before {
    background: linear-gradient(110deg, transparent, var(--color-accent-danger), #ff9b93, transparent);
    opacity: .55
}

.warning-card .section-title,
.warning-title {
    color: #fff0ef
}

.warning-text {
    color: #e8c4c1
}

.warning-icon {
    background: #51252a;
    color: #ffb4ab
}

.warning-item + .warning-item {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 180, 171, .2)
}

html.light-theme .warning-card {
    border-color: #cf222e;
    background: linear-gradient(135deg, #fff0f1, #fff8f8);
    box-shadow: 0 16px 38px rgba(175, 30, 45, .12)
}

html.light-theme .warning-card .section-title {
    color: #8c1d28
}

html.light-theme .warning-title {
    color: #701923
}

html.light-theme .warning-text {
    color: #54282d
}

html.light-theme .warning-icon {
    background: #ffd9dc;
    color: #a40e26
}

html.light-theme .warning-item + .warning-item {
    border-top-color: rgba(164, 14, 38, .18)
}

.light-theme .stats-page .stat-block, .light-theme .game-row {
    background: rgba(245, 249, 253, .88)
}

.game-row {
    display: block !important;
    padding: 0 !important;
    overflow: hidden;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease
}

.game-row:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 34%, var(--color-border)), 0 14px 32px rgba(2, 8, 20, .1)
}

.game-row.is-expanded {
    background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface-2))
}

.game-card__toggle {
    display: grid;
    width: 100%;
    min-height: 74px;
    padding: 17px 20px;
    grid-template-columns:minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    cursor: pointer
}

.game-card__toggle:hover .game-card__title {
    color: var(--color-sky)
}

.game-card__toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -3px
}

.game-card__title {
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.015em;
    transition: color .18s ease
}

.game-card__chevron {
    font-size: 22px;
    color: var(--color-sky);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1)
}

.game-row.is-expanded .game-card__chevron {
    transform: rotate(180deg)
}

.game-card__content {
    display: grid;
    grid-template-rows:0fr;
    opacity: 0;
    transition: grid-template-rows .34s cubic-bezier(.2, .8, .2, 1), opacity .22s ease
}

.game-card__content-inner {
    min-height: 0;
    overflow: hidden
}

.game-row.is-expanded .game-card__content {
    grid-template-rows:1fr;
    opacity: 1
}

.game-card__content-inner > .game-metrics, .game-card__content-inner > .rewards-panel, .game-card__content-inner > .ranked-divisions-panel {
    margin: 0 18px 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent)
}

.game-card__content .game-metrics {
    grid-template-columns:repeat(4, minmax(0, 1fr))
}

.light-theme .game-row.is-expanded {
    background: rgba(241, 247, 253, .96)
}

.game-metrics strong.minecraft-prestige {
    display: block;
    max-width: 100%;
    font-family: var(--font-minecraft);
    font-size: 22px !important;
    line-height: 1.25;
    letter-spacing: .015em;
    overflow-wrap: normal;
    white-space: nowrap;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .4)
}

.game-metrics strong.minecraft-prestige > span {
    display: inline;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font: inherit;
    line-height: inherit
}

.stats-page .stat-block--owned {
    background: linear-gradient(145deg, color-mix(in srgb, var(--color-accent) 13%, var(--color-surface-2)), color-mix(in srgb, var(--color-surface-2) 90%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 28%, var(--color-border))
}

.stats-page .stat-block--owned .stat-value {
    color: var(--color-sky);
    font-size: 18px
}

.stats-page .player-hero__pill[data-login-time] {
    position: relative;
    cursor: help
}

.stats-page .player-hero__pill[data-login-time]::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 30;
    padding: 8px 11px;
    border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
    border-radius: 9px;
    background: color-mix(in srgb, var(--color-surface-2) 94%, transparent);
    box-shadow: 0 12px 30px rgba(2, 8, 20, .28);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity .16s ease, transform .16s ease;
    content: attr(data-login-time)
}

.stats-page .player-hero__pill[data-login-time]:hover::after, .stats-page .player-hero__pill[data-login-time]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0)
}

.stats-motion .stats-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
    transition: opacity .62s cubic-bezier(.2, .75, .25, 1), transform .62s cubic-bezier(.2, .75, .25, 1), filter .5s ease
}

.stats-motion .stats-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none
}

@media (max-width: 900px) {
    .stats-page .stats-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .stats-page .player-hero {
        padding: 38px;
        grid-template-columns:minmax(0, 1fr) 210px
    }

    .game-row {
        grid-template-columns:1fr
    }

    .game-row h3 {
        padding-bottom: 10px
    }

    .game-card__content .game-metrics {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}

@media (max-width: 720px) {
    .stats-page {
        width: calc(100% - 24px);
        padding-top: 4px
    }

    .stats-card {
        padding: 22px;
        border-radius: 18px
    }

    .stats-page .player-hero {
        grid-template-columns:1fr;
        padding: 30px 22px
    }

    .player-hero__skin {
        width: 210px
    }

    .stats-page .stats-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 9px
    }

    .stats-page .stat-block {
        min-height: 100px;
        padding: 16px
    }

    .stat-value {
        font-size: 21px
    }

    .game-metrics, .game-card__content .game-metrics {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .game-card__toggle {
        grid-template-columns:minmax(0, 1fr) 22px
    }

    .game-card__summary {
        display: none
    }
}

@media (max-width: 420px) {
    .stats-page .stats-grid {
        grid-template-columns:1fr
    }

    .game-metrics, .game-card__content .game-metrics {
        grid-template-columns:1fr
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-card::before {
        animation: none
    }

    .stats-motion .stats-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none
    }

    .game-card__content, .game-card__chevron {
        transition: none
    }
}

@media (max-width: 720px) {
    .stats-back-row,
    .stats-hub {
        width: calc(100% - 24px);
    }

    .stats-back-row {
        margin-top: 24px;
    }

    .stats-hub {
        min-height: auto;
        margin-top: 24px;
    }

    .stats-hub__card {
        padding: 30px 20px;
        border-radius: 19px;
    }

    .stats-hub__search {
        grid-template-columns: 1fr;
    }

    .stats-hub__search button {
        width: 100%;
    }
}

/* Optional RuGaming member data on the unified stats page */
.source-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid color-mix(in srgb, var(--color-accent) 32%, var(--color-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
    color: var(--color-text);
}

.source-notice__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: var(--color-accent-soft);
    color: var(--color-sky);
    font-size: 23px;
}

.source-notice__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.source-notice__retry {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 13px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--color-border-strong);
    border-radius: 10px;
    background: var(--color-surface-2);
    color: var(--color-text);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.source-notice__retry:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.source-notice__retry[hidden] {
    display: none;
}

.source-notice__retry:focus-visible,
#player-statuses .member-status:focus-visible,
#rewards-card .award:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-accent) 44%, transparent);
    outline-offset: 3px;
}

@media (max-width: 576px) {
    .source-notice {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .source-notice__retry {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (hover: none) {
    .stats-page .player-hero__pill[data-login-time]::after,
    #player-statuses .member-status[data-tooltip]::after,
    #rewards-card .award[data-tooltip]::after {
        display: none;
    }
}

#player-statuses {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
}

#player-statuses[hidden] {
    display: none;
}

#player-statuses .member-status {
    position: relative;
    display: inline-flex;
    min-height: 38px;
    padding: 9px 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--color-accent) 11%, transparent);
    color: var(--color-sky);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

#player-statuses .member-status--danger {
    border-color: color-mix(in srgb, var(--color-accent-danger) 42%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent-danger) 12%, transparent);
    color: var(--color-accent-danger);
}

#player-statuses .member-status--muted {
    border-color: color-mix(in srgb, var(--color-text-muted) 32%, var(--color-border));
    background: color-mix(in srgb, var(--color-text-muted) 9%, transparent);
    color: var(--color-text-muted);
}

#player-statuses .member-status[data-tooltip] {
    cursor: help;
}

#player-statuses .member-status[data-tooltip]::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 30;
    width: max-content;
    max-width: min(300px, calc(100vw - 48px));
    padding: 8px 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: 9px;
    background: var(--color-surface-2);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    content: attr(data-tooltip);
}

#player-statuses .member-status[data-tooltip]:hover::after,
#player-statuses .member-status[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

#guild-card .game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

#guild-card .info-block {
    display: flex;
    min-width: 0;
    min-height: 110px;
    padding: 18px;
    flex-direction: column;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-surface-2) 82%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 72%, transparent);
}

.member-data-card .info-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.35;
}

.member-data-card .info-value {
    margin-top: 8px;
    color: var(--color-text);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

#rewards-card .awards {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

#rewards-card .award {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    min-width: 58px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
    border-radius: 13px;
    background: color-mix(in srgb, var(--color-surface-2) 82%, transparent);
    color: var(--color-sky);
    cursor: default;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

#rewards-card .award:hover,
#rewards-card .award:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-accent) 44%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface-2));
}

#rewards-card .award[data-tooltip]::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: max-content;
    max-width: min(260px, calc(100vw - 48px));
    padding: 7px 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: 8px;
    background: var(--color-surface-2);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    content: attr(data-tooltip);
}

#rewards-card .award[data-tooltip]:hover::after,
#rewards-card .award[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 420px) {
    .stats-page .player-hero__pill[data-login-time]::after,
    #player-statuses .member-status[data-tooltip]::after,
    #rewards-card .award[data-tooltip]::after {
        display: none;
    }
}

#about-card .real-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#about-card .real-info-item {
    display: flex;
    min-width: 0;
    min-height: 138px;
    padding: 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-surface-2) 82%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 72%, transparent);
    text-align: center;
}

#about-card .real-info-item > div {
    display: flex;
    min-width: 0;
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

#about-card .real-info-item__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--color-accent-soft);
    color: var(--color-sky);
    font-size: 22px;
}

#about-card .info-value {
    max-width: 100%;
    margin-top: 0;
    font-size: 19px;
    text-align: center;
}

#gexp-card .gexp-summary {
    margin: -8px 0 18px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

#g-exp-chart {
    width: 100%;
    height: 390px;
    min-height: 390px;
    overflow: hidden;
    border-radius: 14px;
    background: transparent;
}

#related-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    align-items: stretch;
}

#related-accounts .related-account,
#related-accounts .ghost {
    display: flex;
    min-width: 0;
    padding: 14px;
    align-items: center;
    flex-direction: column;
    border-radius: 13px;
    background: color-mix(in srgb, var(--color-surface-2) 78%, transparent);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

#related-accounts .related-account:hover,
#related-accounts .related-account:focus-visible,
#related-accounts .ghost:hover,
#related-accounts .ghost:focus-visible {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-2));
}

#related-accounts .related-account__image,
#related-accounts .ghost .img,
#related-accounts .ghost img:first-child {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 11px;
    object-fit: cover;
}

#related-accounts .related-account__name,
#related-accounts .ghost p {
    display: -webkit-box;
    max-width: 100%;
    margin: 11px 0 0;
    overflow: hidden;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html.light-theme .source-notice,
html.light-theme #guild-card .info-block,
html.light-theme #about-card .real-info-item,
html.light-theme #rewards-card .award,
html.light-theme #related-accounts .related-account,
html.light-theme #related-accounts .ghost {
    background-color: rgba(245, 249, 253, .9);
}

@media (max-width: 900px) {
    #guild-card .game-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .source-notice {
        align-items: start;
        padding: 14px;
    }

    #player-statuses {
        justify-content: center;
    }

    #guild-card .info-block {
        min-height: 100px;
        padding: 15px;
    }

    .member-data-card .info-value {
        font-size: 19px;
    }

    #about-card .real-info {
        grid-template-columns: 1fr;
    }

    #about-card .real-info-item {
        min-height: 120px;
    }

    #g-exp-chart {
        height: 340px;
        min-height: 340px;
    }

    #related-accounts {
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
        gap: 9px;
    }

    #related-accounts .related-account,
    #related-accounts .ghost {
        padding: 11px;
    }

    #related-accounts .related-account__image,
    #related-accounts .ghost .img,
    #related-accounts .ghost img:first-child {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

@media (max-width: 430px) {
    #guild-card .game-stats {
        grid-template-columns: 1fr;
    }

    #rewards-card .awards {
        gap: 8px;
    }

    #rewards-card .award {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    #g-exp-chart {
        height: 300px;
        min-height: 300px;
    }
}

@media (forced-colors: active) {
    #player-statuses .member-status,
    .source-notice,
    #guild-card .info-block,
    #about-card .real-info-item,
    #rewards-card .award,
    #related-accounts .related-account,
    #related-accounts .ghost {
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }
}

/* Player stats footer */
.site-footer[data-site-shell="footer"] {
    position: relative;
    overflow: hidden;
    margin-top: 72px;
    margin-bottom: 24px;
    padding: 28px 30px;
    border: 1px solid color-mix(in srgb, var(--color-border) 68%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--color-bg) 56%, transparent);
    box-shadow: 0 22px 65px rgba(2, 8, 20, .18), inset 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(24px) saturate(1.18);
    -webkit-backdrop-filter: blur(24px) saturate(1.18)
}

.site-footer[data-site-shell="footer"]::before {
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-strong), var(--color-sky), transparent);
    content: ""
}

.site-footer[data-site-shell="footer"]::after {
    position: absolute;
    top: -90px;
    right: -40px;
    width: 240px;
    height: 180px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-accent) 7%, transparent);
    filter: blur(45px);
    pointer-events: none;
    content: ""
}

.site-footer[data-site-shell="footer"] .site-footer__inner {
    position: relative;
    z-index: 1;
    gap: 24px 34px
}

.site-footer__brand strong, .site-footer__group strong {
    color: var(--color-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase
}

.site-footer__brand p, .site-footer__group p {
    color: var(--color-text-muted)
}

.site-footer__brand a, .site-footer__group a {
    position: relative;
    padding: 3px 0;
    color: var(--color-text-muted);
    transition: color .18s ease, transform .18s ease
}

.site-footer__brand a:hover, .site-footer__group a:hover {
    transform: translateX(3px);
    color: var(--color-sky)
}

.site-footer__controls .site-footer__language, .site-footer__controls .site-footer__theme {
    border-color: color-mix(in srgb, var(--color-border) 72%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--color-surface) 42%, transparent);
    box-shadow: inset 0 1px rgba(255, 255, 255, .05)
}

.site-footer__controls .site-footer__language:hover, .site-footer__controls .site-footer__theme:hover {
    border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 11%, transparent)
}

.light-theme .site-footer[data-site-shell="footer"] {
    border-color: rgba(137, 160, 187, .42);
    background: rgba(255, 255, 255, .54);
    box-shadow: 0 20px 58px rgba(31, 55, 84, .1), inset 0 1px rgba(255, 255, 255, .8);
    backdrop-filter: blur(26px) saturate(1.12);
    -webkit-backdrop-filter: blur(26px) saturate(1.12)
}

.light-theme .site-footer__controls .site-footer__language, .light-theme .site-footer__controls .site-footer__theme {
    background: rgba(255, 255, 255, .48)
}

@media (max-width: 576px) {
    .site-footer[data-site-shell="footer"] {
        margin-top: 48px;
        padding: 22px 20px;
        border-radius: 17px
    }

    .site-footer[data-site-shell="footer"] .site-footer__inner {
        gap: 20px
    }
}

/* Player name 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;
}
