/* Account screens use the site's existing typography and blue surfaces. */
.account-panel { padding: 24px; border: 1px solid #7094f544; border-radius: 18px; background: linear-gradient(120deg,#07145e,#0b2587 65%,#1739a6); }
.account-auth { max-width: 440px; margin: 24px auto; }
.account-auth h1, .account-profile h1, .account-settings h1 { margin: 0 0 12px; overflow-wrap: anywhere; }
body > main > .account-auth:first-child > h1 {
    font-size: clamp(24px, 4vw, 30px);
    line-height: 1.2;
    text-wrap: balance;
}
.account-panel h2 { margin: 0 0 16px; font-size: 20px; }
.account-muted, .account-dates, .account-form small { color: #bbcaee; font-size: 14px; line-height: 1.6; }
.account-form { display: grid; gap: 10px; }
.account-form label { font-size: 14px; font-weight: 600; }
.account-form input:not([type=checkbox]) { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #809ce066; border-radius: 10px; background: #030b39; color: #fff; font: inherit; }
.account-form input:focus-visible, .account-menu summary:focus-visible { outline: 2px solid #a7c5ff; outline-offset: 3px; }
.account-form button { margin-top: 8px; }
.account-checkbox { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.account-checkbox input { width: 18px; height: 18px; }
.account-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.account-message { max-width: 900px; margin: 0 auto 20px; padding: 14px 18px; border: 1px solid #78dda866; border-radius: 12px; background: #103e45; color: #eafff2; overflow-wrap: anywhere; }
.account-message:not(.is-error) { width: fit-content; max-width: min(100%, 900px); text-align: center; }
.account-message.is-error { border-color: #ef829b88; background: #48213d; color: #ffdde5; }
.account-auth .account-message { margin-top: 16px; }
.account-menu { position: relative; flex-shrink: 1; min-width: 0; }
.account-menu > summary { position: relative; gap: 8px; cursor: pointer; list-style: none; max-width: 220px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu > summary::after {
    content: "";
    flex: none;
    border-inline: 4px solid transparent;
    border-top: 5px solid currentColor;
}


.account-menu-content { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; box-sizing: border-box; width: max-content; max-width: calc(100vw - 32px); padding: 12px; border: 1px solid #718ed977; border-radius: 14px; background: #081550; box-shadow: 0 12px 32px #0007; }
.account-menu-content p { margin: 4px 8px 10px; color: #bdceef; font-size: 13px; line-height: 1.5; }
.account-menu-content a, .account-menu-content button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 14px; text-align: left; text-decoration: none; }
.account-menu-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.account-menu-content a:hover, .account-menu-content button:hover { border-color: #718ed977; background: #ffffff16; text-decoration: none; }
.language-menu { flex-shrink: 0; }
body > header nav .language-menu > summary { width: 54px; min-width: 54px; padding: 9px; gap: 6px; }
.language-menu-globe { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.language-menu-content { min-width: 180px; }
.language-menu-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #fff; font-size: 14px; line-height: 1.5; }
.language-menu-name { display: inline-flex; align-items: center; gap: 9px; }
.language-menu-flag { display: block; flex: 0 0 21px; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff55; }
.language-menu-content form { margin: 0; }
.language-menu-content button.language-menu-option { width: 100%; border: 1px solid transparent; background: none; font-family: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.language-menu-content button.language-menu-option:hover, .language-menu-content button.language-menu-option:focus-visible { border-color: #718ed977; background: #ffffff16; }
.language-menu-option.is-current { background: #ffffff16; font-weight: 700; }
.language-menu-option.is-current > .language-menu-check { color: #a9c5ff; }
.account-profile, .account-settings { display: grid; gap: 20px; margin: 0 auto; }
.account-settings { max-width: 680px; }
.account-settings > h1, .account-settings > p { margin: 0; }
.account-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-dates { margin: 0; }
.account-profile { min-width: 0; max-width: none; grid-template-columns: minmax(0, 1fr); }
.account-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; min-width: 0; }
.account-profile-main { display: grid; gap: 20px; min-width: 0; }
.account-profile-main > .account-panel, .account-profile-sidebar { min-width: 0; }
.account-profile-sidebar { display: grid; align-content: start; gap: 20px; }
.profile-ranking-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; text-align: left; }
.profile-ranking-table th { padding: 0 0 12px; border-bottom: 1px solid #ffffff20; color: #c2d2f3; font-size: 12px; font-weight: 600; }
.profile-ranking-table td { padding: 11px 0; border-bottom: 1px solid #ffffff20; color: #f0f5ff; }
.profile-ranking-table th:last-child, .profile-ranking-table td:last-child { width: 64px; text-align: center; }
.profile-ranking-season { color: #f0f5ff; text-decoration: none; }
.profile-ranking-season:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.profile-ranking-season:focus-visible { outline: 2px solid #a9c5ff; outline-offset: 4px; }
.profile-ranking-unranked { color: #bbcaee; font-size: 12px; }
.profile-ranking-more { display: flex; justify-content: center; margin-top: 18px; }

.profile-awards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.profile-awards-panel { display: flex; flex-direction: column; min-width: 0; }
.profile-awards-content { display: grid; flex: 1; min-height: 0; min-width: 0; }
.profile-awards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.profile-award { min-width: 0; text-align: center; }
.profile-awards .profile-award-slot { position: relative; overflow: visible; display: grid; place-items: center; box-sizing: border-box; width: 100%; min-width: 0; aspect-ratio: 1; padding: 10px; border: 0; border-radius: 12px; background: #030b39; box-shadow: none; color: var(--award-color, #a9c5ff); font: inherit; letter-spacing: 0; }
.profile-awards button.profile-award-slot { cursor: pointer; }
.profile-awards button.profile-award-slot:hover { background: #030b39; box-shadow: inset 0 0 0 2px #dce7ff; }
.profile-awards button.profile-award-slot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.profile-awards .profile-award-slot--empty { border: 2px dashed #809ce099; background: #030b3966; }
.profile-award-icon { display: block; width: 76%; max-width: 64px; height: auto; }
.profile-trophy-icon { filter: drop-shadow(0 2px 1px #00002580); }
.profile-award--badge { --award-color: #a9c5ff; --award-ink: #071355; }
.profile-award--gold { --award-highlight: #fff0a3; --award-shade: #c79217; --award-color: #ffda32; --award-ink: #463300; }
.profile-award--silver { --award-highlight: #ffffff; --award-shade: #97a8c4; --award-color: #e4ecfa; --award-ink: #29374f; }
.profile-award--bronze { --award-highlight: #ffd1a5; --award-shade: #ad632e; --award-color: #ed9959; --award-ink: #42240e; }
.profile-award-count { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--award-color); color: var(--award-ink); box-shadow: none; font-family: var(--font-numeric); font-size: 12px; font-weight: 800; line-height: 1; }
.profile-awards-dialog-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 8px auto 16px; color: var(--award-color, #a9c5ff); }
.profile-awards-dialog-icon .profile-award-icon { width: 100%; max-width: none; }
.profile-trophy-list { margin: 0; padding: 0; list-style: none; text-align: left; }
.profile-trophy-list li { padding: 12px 0; border-bottom: 1px solid #ffffff20; color: #f0f5ff; font-size: 14px; line-height: 1.6; }
.profile-trophy-list li:last-child { border-bottom: 0; }
.profile-badge-description { margin: 0; color: #c5d3f2; font-size: 14px; line-height: 1.7; text-align: center; }
@media (max-width: 991.98px) {
    .account-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .profile-awards-grid { width: 100%; max-width: 480px; justify-self: center; }
}
@media (max-width: 600px) { .profile-awards-panel { padding: 18px; } }

.recent-activity h2 { margin-bottom: 4px; }
.recent-activity-caption { margin: 0 0 16px; }
.recent-activity-chart { width: 100%; height: 210px; }
.recent-activity-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.recent-activity-grid { stroke: #c4d7ff20; stroke-dasharray: 3 6; }
.recent-activity-label { fill: #bbcaee; font-family: var(--font-body, Arial, sans-serif); font-size: 12px; }
.recent-activity-line { fill: none; stroke: #a9c5ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recent-activity-target { fill: transparent; cursor: pointer; outline: none; }
.recent-activity-dot { fill: #a9c5ff; stroke: #10256f; stroke-width: 2; pointer-events: none; }
.recent-activity-target:hover + .recent-activity-dot,
.recent-activity-target:focus + .recent-activity-dot { fill: #FFD568; stroke: #FFD568; }
@media (max-width: 600px) { .recent-activity-chart { height: 190px; } }
.account-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.account-table-wrap:focus-visible { outline: 2px solid #a7c5ff; outline-offset: 3px; }
.account-history { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.account-history th, .account-history td { padding: 12px 10px; border-bottom: 1px solid #ffffff20; white-space: nowrap; }
.account-history th { color: #c2d2f3; font-size: 12px; text-align: center; }
.account-history time { font-size: inherit; }
.account-history th:last-child, .account-history td:last-child { padding-right: 0; }
.account-result-champion { display: inline-flex; align-items: center; gap: 5px; color: #ffe5a1; font-family: var(--font-numeric); font-weight: var(--font-numeric-weight); white-space: nowrap; }
.account-result-champion svg { display: block; width: 1.1em; height: 1.1em; flex-shrink: 0; }
.account-danger { border: 2px solid #df718599; }
@media (max-width: 600px) {
    .account-panel { padding: 18px; }
    .account-auth { margin: 8px auto; }
}

.account-menu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
    body > header nav#site-navigation { gap: 8px; margin-left: auto; }
    .account-menu summary { max-width: 110px; }
}

.account-delete > summary { display: inline-flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; color: #ef9aac; text-decoration: none; list-style: none; font-weight: 600; }
.account-delete-icon { display: block; flex: 0 0 14px; width: 14px; height: 16px; }
.account-delete > summary::-webkit-details-marker { display: none; }
.account-delete > summary:focus-visible { outline: 2px solid #a7c5ff; outline-offset: 4px; }
.account-delete-content { padding-top: 12px; }

.site-tooltip { position: fixed; z-index: 2147483647; box-sizing: border-box; max-width: min(260px, calc(100vw - 16px)); padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .9); color: #fff; font-family: var(--font-body, Arial, sans-serif); font-size: 12px; font-weight: 400; line-height: 1.45; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.site-tooltip::after { content: ''; position: absolute; left: var(--tooltip-arrow, 50%); transform: translateX(-50%); border: 5px solid transparent; }
.site-tooltip[data-placement="top"]::after { top: 100%; border-top-color: rgba(0, 0, 0, .9); border-bottom: 0; }
.site-tooltip[data-placement="bottom"]::after { bottom: 100%; border-bottom-color: rgba(0, 0, 0, .9); border-top: 0; }
[data-tooltip] { cursor: pointer; }

.account-history th:nth-child(n+2), .account-history td:nth-child(n+2) { text-align: center; }
.account-history th:first-child, .account-history td:first-child { text-align: left; }
.account-history .account-history-score { color: #f0f5ff; font-weight: 700; }

.account-game-stats { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.account-game-stats th, .account-game-stats td { padding: 12px 10px; border-bottom: 1px solid #ffffff20; text-align: center; white-space: nowrap; }
.account-game-stats thead th { color: #c2d2f3; font-size: 12px; font-weight: 600; }
.account-game-stats th:first-child { padding-left: 0; text-align: left; }
.account-game-stats tbody th { color: #f0f5ff; font-weight: 600; }
.account-game-stats .account-best-score, .account-game-stats .account-best-score a { color: #f0f5ff; font-weight: inherit; }
.account-game-stats th:last-child, .account-game-stats td:last-child { padding-right: 0; }
.account-game-stats tfoot th, .account-game-stats tfoot td { color: #f0f5ff; border-top: 2px solid #ffffff30; border-bottom: 0; font-weight: 700; }

/* Collapsible main navigation: desktop starts at 992px. */
.site-nav-toggle { display: none; }
.site-nav-content { display: flex; align-items: center; gap: inherit; }
@media (min-width: 992px) and (max-width: 1050px) {
    .site-brand__name { font-size: 19px; }
    body > header nav .site-nav-link { padding-inline: 8px; font-size: 14px; }
    .account-menu > summary { max-width: 140px; }
}
@media (width < 992px) {
    body > header { flex-wrap: wrap; }
    .site-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 10px; margin-left: auto; border: 1px solid #8baaff55; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
    .site-nav-toggle:hover, .site-nav-toggle[aria-expanded="true"] { background: #1739a6; border-color: #385bc9; color: #fff; }
    .site-nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }
    .site-nav-toggle:focus-visible { outline: 2px solid #a6c9ff; outline-offset: 3px; }
    body > header nav#site-navigation { display: grid; grid-template-rows: 0fr; align-items: stretch; flex-basis: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: grid-template-rows 240ms ease, opacity 180ms ease, margin-top 240ms ease, visibility 0s 240ms; }
    body > header nav#site-navigation.is-open { grid-template-rows: 1fr; margin-top: 12px; visibility: visible; opacity: 1; transition-delay: 0s; }
    .site-nav-content { min-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 4px; }
    body > header nav .site-nav-link { justify-content: flex-start; width: 100%; }
    body > header nav .account-menu { width: 100%; }
    body > header nav .account-menu > summary { justify-content: space-between; max-width: none; width: 100%; }
    body > header nav .account-menu-content { position: static; width: 100%; max-width: 100%; margin-top: 4px; box-shadow: none; }
    body > header nav .language-menu > summary { justify-content: center; width: 54px; margin-left: auto; }
    body > header nav .language-menu-content { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) { body > header nav#site-navigation { transition: none; } }

/* Site footer */
body > footer.site-footer { margin-top: 0; padding-top: 28px; padding-bottom: 22px; color: #b9c8eb; }
.site-footer-top, .site-footer-bottom { display: flex; justify-content: space-between; gap: 24px; }
.site-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 800; text-decoration: none; }
.site-footer-brand img { object-fit: contain; }
.site-footer-identity p { margin: 8px 0 0; font-size: 12px; }
.site-footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer-social a, .site-footer-social button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 999px; background: #0b206b; color: #eaf0ff; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: none; }
.site-footer-social svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.site-footer-social a:hover, .site-footer-social button:hover:not(:disabled) { background: #1739a6; color: #fff; }
.site-footer-social [aria-disabled="true"] { opacity: .65; }
.site-footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid #8baaff22; font-size: 12px; }
.site-footer-bottom p { margin: 0; }
.site-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer-bottom nav a { color: #c5d3f2; text-decoration: none; }
.site-footer-bottom nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid #a6c9ff; outline-offset: 4px; }
.site-footer-disclaimer { margin: 14px 0 0; font-size: 11px; color: #9caed4; }
.site-info { max-width: 800px; margin-inline: auto; line-height: 1.7; }
.site-info > .site-button + .site-info-contact { margin-top: 16px; }
@media (max-width: 767.98px) {
    .site-footer-top, .site-footer-bottom { gap: 20px; }
    .site-footer-social { gap: 8px; }
    .site-footer-bottom nav { gap: 12px 18px; }
}

/* Shared content alignment and compact footer actions. */
body > footer.site-footer { padding-inline: 0; text-align: left; }
.site-footer-container { width: calc(100% - 2 * var(--site-gutter)); max-width: var(--site-content-width); margin-inline: auto; box-sizing: border-box; }
.site-footer-top { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.site-footer-copyright { color: #aebfdf; }
.site-footer-legal { display: grid; gap: 6px; }

.site-footer-social { justify-self: end; }
.site-footer-social a, .site-footer-social button { box-sizing: border-box; width: 42px; height: 42px; padding: 11px; }
.footer-icon { display: block; width: 18px; height: 18px; background: currentColor; mask: var(--footer-icon) center / contain no-repeat; }
.footer-icon-x { --footer-icon: url('../images/icons/x-twitter.svg'); }
.footer-icon-kofi { --footer-icon: url('../images/icons/kofi.svg'); }
.footer-icon-email { --footer-icon: url('../images/icons/envelope.svg'); }

.site-footer-disclaimer { text-align: center; }

.site-footer-bottom { justify-content: space-between; align-items: center; }
.site-footer-bottom nav { justify-content: flex-end; }
.site-footer-bottom .site-footer-disclaimer { margin: 0; font-size: 12px; text-align: left; }
@media (max-width: 767.98px) {
    .site-footer-top { grid-template-columns: 1fr; }
    .site-footer-social { justify-self: start; }

}

.site-footer-social .site-back-top svg { width: 24px; height: 24px; }
.site-footer-social .site-back-top { padding: 8px; }
@media (max-width: 767.98px) {
    .site-footer-top { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }

    .site-footer-identity { order: 1; }
    .site-footer-social { order: 2; justify-content: center; }
    .site-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .site-footer-bottom nav { order: 0; justify-content: center; }
    .site-footer-bottom .site-footer-legal { order: 1; }
    .site-footer-bottom .site-footer-disclaimer { text-align: center; }
}

.home-activity {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
}

.home-activity-period {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-bottom: 16px;
}

.home-activity-period + .home-activity-period {
    padding: 16px 0 0;
    border-top: 1px solid #8baaff33;
}

.home-activity-values {
    display: grid;
    flex: 1;
    align-content: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.home-activity-stat { display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: start; gap: 4px; text-align: center; }
.home-activity-stat span { order: 1; color: #c7d6f4; font-size: 13px; font-weight: 500; }
.home-activity-stat strong {
    color: #fff;
    font-family: var(--font-numeric);
    font-size: clamp(23px, 2.6vw, 33px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}
.home-activity-stat:last-child strong { color: #ffdc66; }
.home-activity-stat strong:focus-visible { outline: 2px solid #a6c9ff; outline-offset: 4px; }

body > main > section:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
    .home-activity-stat span { font-size: 12px; }
    .home-activity-stat strong { font-size: 24px; }
}

.home-community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; align-items: stretch; }
.home-community-grid > .home-block-title { grid-column: 1 / -1; margin-bottom: 0; }
.home-community-grid > :is(section, .home-activity) { min-width: 0; margin: 0; }
.home-block-title { margin: 0 0 14px; color: #f0f5ff; font-size: clamp(22px, 3vw, 29px); line-height: 1.25; }
.home-leaderboard > h3, .home-activity-period > h3 {
    margin: 0 0 12px;
    color: #f0f5ff;
    font-size: 21px;
    line-height: 1.4;
}
.home-activity-period > h3 { margin-bottom: 16px; }
.home-leaderboard-actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 14px; }
.home-leaderboard-scroll { overflow-x: auto; }
.home-leaderboard-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; }
.home-leaderboard-table th { padding: 0 8px 10px; color: #b9cbee; font-size: 12px; font-weight: 600; text-align: left; }
.home-leaderboard-table td { padding: 10px 8px; border-top: 1px solid #8baaff22; }
.home-leaderboard .home-leaderboard-table td { padding-block: 7px; }
.home-leaderboard-table th:first-child, .home-leaderboard-table td:first-child { width: 1%; padding-left: 0; text-align: center; }
.home-leaderboard-table th:nth-child(3), .home-leaderboard-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.home-leaderboard-table th:last-child, .home-leaderboard-table td:last-child { width: 1%; padding-right: 0; }
.home-leaderboard-table td:nth-child(2) { font-weight: 700; color: #edf3ff; }
.home-leaderboard-rank { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #ffffff0d; color: #c5d6f7; font-weight: 800; }

body > main > section.home-how-to {
    margin: 24px 0 20px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}
.home-how-to-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-how-to-steps, .home-community-grid { column-gap: 20px; }
body > main > .home-how-to .home-how-to-steps li { padding: 18px; }
.home-step-number { display: block; margin-bottom: 8px; color: #ffdc66; font-family: var(--font-numeric); font-size: 22px; font-weight: 800; }
.home-how-to-steps h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: #f0f5ff; font-size: 16px; }
.home-step-icon { flex: 0 0 16px; width: 16px; height: 16px; color: #a9c5ff; }
.home-how-to-steps p { margin: 0; color: #bdcff0; font-size: 14px; line-height: 1.55; }
@media (max-width: 760px) {
    .home-how-to-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
    .home-community-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-community-grid > :is(section, .home-activity) { padding: 20px 16px; }
    .home-leaderboard > h3, .home-activity-period > h3 { font-size: 19px; }
    .home-leaderboard-table { font-size: 12px; }
    .home-leaderboard-table td, .home-leaderboard-table th { padding-inline: 5px; }
}

.home-leaderboard { display: flex; flex-direction: column; }
.home-leaderboard .home-leaderboard-table td:nth-child(3) { color: #f0f5ff; font-weight: 700; }
.home-leaderboard .home-leaderboard-table tbody tr:last-child td { border-bottom: 1px solid #8baaff22; }
.home-leaderboard-empty { display: grid; place-items: center; box-sizing: border-box; min-height: 145px; border-top: 1px solid #8baaff22; color: #bdcff0; font-size: 14px; font-weight: 600; text-align: center; }
.home-leaderboard-table th:nth-child(3), .home-leaderboard-table th:last-child { text-align: center; }
.home-leaderboard-table td:last-child { text-align: center; }
.home-leaderboard-rank.rank-1 { background: #ffda32; color: #463300; }
.home-leaderboard-rank.rank-2 { background: #e4ecfa; color: #29374f; }
.home-leaderboard-rank.rank-3 { background: #ed9959; color: #42240e; }

.home-leaderboard .home-leaderboard-personal td {
    background: #bfd5ff22;
    border-top: 1px solid #9ebeff88;
}
.home-leaderboard .home-leaderboard-personal .home-leaderboard-rank:not(.rank-1, .rank-2, .rank-3) {
    background-color: #fff;
    color: #071655;
}

.home-leaderboard-table td:nth-child(3) { text-align: center; }
.home-leaderboard-table th:nth-child(3), .home-leaderboard-table td:nth-child(3) { padding-right: clamp(20px, 2vw, 32px); }


/* Keyboard navigation and application error pages. */
.site-skip-link { position: fixed; z-index: 2147483647; top: 8px; left: 16px; transform: translateY(-160%); }
.site-skip-link:focus { transform: none; }
.site-error { max-width: 720px; margin: 28px auto; padding: clamp(24px, 5vw, 48px); text-align: center; }
#main-content .site-error .site-error-code { width: 100%; max-width: none; margin: 0 auto 12px; color: var(--button-hover-background); text-align: center; font-size: clamp(48px, 10vw, 80px); font-weight: 800; line-height: 1; }
#main-content .site-error h1 { font-size: clamp(26px, 5vw, 36px); }
.site-error > p:not(.site-error-code) { margin: 0 auto 24px; color: #c5d3f2; }

/* Scores link directly to their result card. */
.leaderboard-score-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a9c5ff80; }
.leaderboard-score-link:hover, .leaderboard-score-link:focus-visible { color: #fff; text-decoration-color: currentColor; }
.home-leaderboard-table time { white-space: nowrap; }

.account-history-body { position: relative; }
.account-history-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.account-history-loading[hidden] { display: none; }
.account-history-loading .page-loader-ring { width: 32px; height: 32px; }
[data-game-history][aria-busy="true"] [data-history-content] { opacity: .25; }
.account-history-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.account-history-footer p { margin: 0; color: #c2d2f3; font-size: 14px; }
.account-history-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.account-history-pagination a, .account-history-pagination span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; font-size: 14px; }
.account-history-pagination a { border: 1px solid #8baaff55; border-radius: 7px; color: #fff; text-decoration: none; }
.account-history-pagination a:hover, .account-history-pagination a[aria-current="page"] { background: #a9c5ff; border-color: #a9c5ff; color: #081550; }
.account-history-pagination a:focus-visible { outline: 2px solid #a7c5ff; outline-offset: 2px; }
