/* SteamCheckr CSS bundle: leaderboard.bundle.css | version 20260613-hero-light1 */

/* ===== frontend/css/base.css ===== */
/* BASE / GLOBAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    /* Text */
    --text-primary-soft: #edf3ff;
    --text-primary-strong: #f4f7ff;
    --text-secondary: #a8b4d0;
    --text-muted: #6e7d9e;

    /* Accent colors — consistent palette */
    --accent-blue: #5b9eff;
    --accent-purple: #a86cff;
    --accent-cyan: #4fd8f0;
    --accent-green: #4cc98e;
    --accent-gold: #f5c842;

    /* Surfaces */
    --surface-0: #060b18;
    --surface-1: #0b1120;
    --surface-2: #111b30;
    --border-subtle: rgba(140, 170, 255, 0.14);
    --border-medium: rgba(140, 170, 255, 0.24);
}

html,
body {
    min-height: 100%;
    min-width: 320px;
    margin: 0;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    min-width: 320px;
    min-height: 100vh;
    color: var(--text-primary-soft);
    background: #0d1728;
    /* Глобальное мягкое свечение для всего текста.
       0 0 18px — лёгкая синеватая светимость (глубина),
       0 1px 2px — тонкая тень снизу (вес/осязаемость). */
    text-shadow:
        0 0 24px rgba(140, 185, 255, 0.22),
        0 1px 3px rgba(0, 0, 0, 0.32);
}

.page {
    position: relative;
    z-index: 1;
    min-width: 320px;
    min-height: 100vh;
    padding: 8px 20px 40px;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

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

@media (max-width: 900px) {
    .page {
        padding: 6px 12px 20px;
    }

    .container {
        width: min(1100px, calc(100% - 10px));
    }
}

#result {
    margin-top: 18px;
}

.placeholder-text {
    text-align: center;
    color: #b9c3e0;
    font-size: 22px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

/* ===== frontend/css/nav.css ===== */
/* TOP NAVIGATION */
.top-nav {
    position: relative;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100vw;
    max-width: none;
    min-height: 72px;
    margin: -8px 0 28px 50%;
    padding: 0 max(28px, calc((100vw - 1280px) / 2 + 28px));
    transform: translateX(-50%);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(9, 15, 31, 0.86), rgba(6, 11, 24, 0.78));
    border: 1px solid rgba(176, 190, 220, 0.14);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
    min-width: 0;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.nav-logo-icon img {
    display: none;
}

.nav-logo-icon::before {
    content: "";
    width: 26px;
    height: 28px;
    border-radius: 7px;
    background:
        linear-gradient(to top, #49d8ff 0 58%, transparent 58%) 2px 100% / 5px 100% no-repeat,
        linear-gradient(to top, #6b6dff 0 86%, transparent 86%) 10px 100% / 5px 100% no-repeat,
        linear-gradient(to top, #b94dff 0 100%, transparent 100%) 18px 100% / 5px 100% no-repeat;
    filter:
        drop-shadow(0 0 8px rgba(73, 216, 255, 0.42))
        drop-shadow(0 0 12px rgba(185, 77, 255, 0.36));
}

.nav-brand-text {
    color: transparent;
    font-size: 0;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(74, 163, 255, 0.12);
}

.nav-brand-text::before {
    content: "STEAM";
    color: #f8fbff;
    font-size: 18px;
}

.nav-brand-text::after {
    content: " ANALYZER";
    color: #9d5cff;
    font-size: 18px;
    text-shadow: 0 0 14px rgba(157, 92, 255, 0.28);
}

.nav-center {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    color: rgba(226, 232, 248, 0.76);
    text-decoration: none;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.nav-link:hover {
    color: #f5f7ff;
    background: rgba(126, 170, 255, 0.055);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(74, 163, 255, 0.92), rgba(168, 108, 255, 0.92));
}

.nav-link.active {
    color: #f5f7ff;
    background: transparent;
}

.nav-right {
    position: relative;
    z-index: 41;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 240px;
    min-width: 0;
}

.language-switch {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid rgba(176, 190, 220, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(226, 232, 248, 0.86);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.language-switch:hover {
    border-color: rgba(176, 190, 220, 0.26);
    background: rgba(255, 255, 255, 0.055);
    color: #f5f7ff;
}

.top-nav .creators-support {
    justify-content: flex-end;
}

.top-nav .creators-support-button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 0;
    border: 1px solid rgba(176, 190, 220, 0.16);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    color: rgba(226, 232, 248, 0.86);
    font-size: 16px;
    font-weight: 750;
}

.top-nav .creators-support-button:hover {
    transform: none;
    border-color: rgba(176, 190, 220, 0.26);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
    color: #f5f7ff;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 980px) {
    .top-nav {
        min-height: auto;
        flex-wrap: wrap;
        gap: 12px 14px;
        padding: 12px max(18px, calc((100vw - 1280px) / 2 + 18px));
    }

    .nav-logo {
        flex: 1 1 auto;
    }

    .nav-center {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-center::-webkit-scrollbar {
        display: none;
    }

    .nav-right {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 68px;
        overflow-x: hidden;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
        max-width: none;
        min-height: 68px;
        height: 68px;
        margin: 0;
        padding: 0 16px;
        border-radius: 0;
        transform: none;
        translate: none;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .nav-logo-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .nav-logo-icon img {
        display: none;
    }

    .nav-logo-icon::before {
        width: 24px;
        height: 26px;
    }

    .nav-brand-text {
        font-size: 0;
    }

    .nav-brand-text::before,
    .nav-brand-text::after {
        font-size: 16px;
    }

    .mobile-nav-toggle {
        appearance: none;
        -webkit-appearance: none;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(176, 190, 220, 0.18);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.045);
        color: #f5f7ff;
    }

    .mobile-nav-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .top-nav.is-mobile-menu-open .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .top-nav.is-mobile-menu-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .top-nav.is-mobile-menu-open .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-center,
    .nav-right {
        display: none;
    }

    .top-nav.is-mobile-menu-open .nav-center,
    .top-nav.is-mobile-menu-open .nav-right {
        position: fixed;
        left: 12px;
        right: 12px;
        z-index: 999;
        display: flex;
        border: 1px solid rgba(176, 190, 220, 0.14);
        background: rgba(7, 12, 25, 0.96);
        box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .top-nav.is-mobile-menu-open .nav-center {
        top: 76px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 16px 16px 0 0;
    }

    .top-nav.is-mobile-menu-open .nav-right {
        top: 226px;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border-top: 0;
        border-radius: 0 0 16px 16px;
    }

    .nav-link {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 15px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .top-nav .creators-support-button span {
        display: inline;
    }

    .top-nav .creators-support-caret {
        display: inline-flex;
    }

    .top-nav .creators-support-button {
        width: auto;
        min-height: 40px;
        padding: 8px 10px;
        justify-content: center;
        font-size: 13px;
    }

    .language-switch {
        min-width: 38px;
        min-height: 40px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ===== frontend/09-creators-support/creators-support.css ===== */
/* ============================================================
   CREATORS & SUPPORT — PANEL
   ============================================================ */

/* Page dim overlay */
.page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(126, 170, 255, 0.12), transparent 44%),
        radial-gradient(circle at 80% 20%, rgba(168, 108, 255, 0.1), transparent 38%),
        rgba(4, 8, 18, 0.74);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.18s ease;
}

body.creators-support-active .page::before {
    opacity: 1;
}

.container > :not(.top-nav) {
    transition: filter 0.18s ease, opacity 0.18s ease;
}

body.creators-support-active .container > :not(.top-nav) {
    filter: none;
    opacity: 1;
}

/* ---- Trigger wrapper ---- */
.creators-support {
    position: relative;
    z-index: 60;
    display: flex;
    justify-content: flex-end;
}

.creators-support::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 420px;
    height: 16px;
}

/* ---- Trigger button ---- */
.creators-support-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(170, 140, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(55, 25, 110, 0.95) 0%, rgba(28, 45, 130, 0.95) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(210, 185, 255, 0.08),
        0 8px 26px rgba(0, 0, 0, 0.38),
        0 0 22px rgba(140, 90, 255, 0.16);
    color: #ede8ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.creators-support-button:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 170, 255, 0.52);
    box-shadow:
        inset 0 0 0 1px rgba(210, 185, 255, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.44),
        0 0 32px rgba(160, 105, 255, 0.26);
}

.creators-support-button svg {
    flex: 0 0 auto;
}

.creators-support-caret {
    transition: transform 0.22s ease;
}

.creators-support.is-open .creators-support-caret {
    transform: rotate(180deg);
}

/* ---- Panel ---- */
.creators-support-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 16px);
    right: 0;
    width: 420px;
    border-radius: 26px;
    border: 1px solid rgba(150, 120, 255, 0.24);
    overflow: hidden;

    background:
        radial-gradient(ellipse 65% 38% at 18% 0%, rgba(95, 55, 235, 0.24), transparent),
        radial-gradient(ellipse 55% 30% at 88% 6%, rgba(55, 120, 255, 0.18), transparent),
        radial-gradient(ellipse 45% 28% at 55% 100%, rgba(160, 100, 255, 0.10), transparent),
        linear-gradient(168deg, #0c0e2a 0%, #07091c 60%, #050714 100%);

    color: #edf1ff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 36px 72px rgba(0, 0, 0, 0.58),
        0 0 56px rgba(100, 70, 255, 0.14),
        0 0 100px rgba(60, 90, 255, 0.07);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;

    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: transform, opacity;
    isolation: isolate;
}

body.creators-support-active .top-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Shimmering top border */
.creators-support-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(130, 100, 255, 0.65) 22%,
        rgba(100, 170, 255, 0.85) 50%,
        rgba(165, 100, 255, 0.65) 78%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Caret arrow */
.creators-support-panel::after {
    content: "";
    position: absolute;
    top: -8px;
    right: 38px;
    width: 16px;
    height: 16px;
    border-top: 1px solid rgba(140, 110, 255, 0.34);
    border-left: 1px solid rgba(140, 110, 255, 0.34);
    background: #0c0e2a;
    transform: rotate(45deg);
    z-index: 3;
    pointer-events: none;
}

.creators-support.is-open .creators-support-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ---- Panel head ---- */
.creators-support-panel-head {
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(130, 110, 255, 0.14);
}

.creators-support-kicker {
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(170, 140, 255, 0.80);
}

.creators-support-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.2px;
    font-weight: 900;
    background: linear-gradient(110deg, #e8e2ff 0%, #b8ccff 55%, #d4b6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Creators — 2 columns side by side ---- */
.creators-support-list {
    --creator-avatar-size: 76px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 16px 14px;
}

.creators-support-person-card {
    padding: 18px 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(120, 100, 240, 0.20);
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(100, 70, 220, 0.13), transparent),
        linear-gradient(180deg, rgba(13, 15, 42, 0.97) 0%, rgba(8, 10, 28, 0.99) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.032),
        0 8px 22px rgba(0, 0, 0, 0.30);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.creators-support-person-card:hover {
    border-color: rgba(155, 120, 255, 0.38);
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 14px 30px rgba(0, 0, 0, 0.36),
        0 0 22px rgba(120, 90, 255, 0.16);
}

/* Vertical centered layout */
.creators-support-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.creators-support-avatar {
    width: var(--creator-avatar-size);
    height: var(--creator-avatar-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    font-size: 26px;
    font-weight: 900;
    color: #f7fbff;
    flex-shrink: 0;
    box-shadow:
        0 0 0 2.5px rgba(145, 115, 255, 0.55),
        0 0 0 5px rgba(120, 90, 255, 0.15),
        0 0 18px rgba(130, 100, 255, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.36);
}

.creators-support-avatar-g {
    background: radial-gradient(circle at 32% 28%, #6ee8ff 0%, #4e40ee 52%, #18093a 100%);
}

.creators-support-avatar-k {
    background: radial-gradient(circle at 32% 28%, #a8c6ff 0%, #b038ff 50%, #200a38 100%);
}

.creators-support-avatar-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.creators-support-avatar-fallback {
    position: relative;
    z-index: 0;
}

.creators-support-name {
    margin: 0 0 3px;
    color: #ede8ff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.creators-support-role {
    margin: 0;
    color: #8892b8;
    font-size: 12px;
    line-height: 1.4;
}

.creators-support-role-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(140, 110, 255, 0.28);
    background: rgba(125, 95, 255, 0.12);
    color: #cfc2ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

/* ---- Contact area ---- */
.creators-support-contact-label {
    margin: 0 16px 8px;
    color: rgba(165, 175, 215, 0.55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.creators-support-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(115, 135, 255, 0.22);
    background: rgba(8, 11, 30, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.creators-support-email {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #c0cbf0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.creators-support-email:hover {
    color: #eef2ff;
}

.creators-support-email-shared {
    justify-content: flex-start;
    width: 100%;
}

.creators-support-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 10px 12px;
    border: 0;
    border-left: 1px solid rgba(115, 135, 255, 0.16);
    background: transparent;
    color: #8892b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.creators-support-copy:hover {
    color: #e0e8ff;
    background: rgba(100, 120, 255, 0.08);
}

/* ---- Divider ---- */
.creators-support-divider {
    height: 1px;
    margin: 14px 16px;
    background: linear-gradient(90deg,
        transparent,
        rgba(130, 110, 255, 0.26) 30%,
        rgba(90, 150, 255, 0.26) 70%,
        transparent
    );
}

/* ---- Support block ---- */
.creators-support-support-block {
    margin: 0 16px 18px;
    padding: 18px 16px 16px;
    border-radius: 20px;
    border: 1px solid rgba(200, 150, 80, 0.22);
    background:
        radial-gradient(ellipse 70% 50% at 85% 10%, rgba(200, 130, 50, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(160, 100, 20, 0.08), transparent),
        linear-gradient(158deg, rgba(20, 14, 8, 0.97) 0%, rgba(12, 10, 5, 0.98) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 200, 100, 0.05),
        0 12px 28px rgba(0, 0, 0, 0.32),
        0 0 30px rgba(200, 140, 50, 0.07);
}

.creators-support-support-head {
    margin-bottom: 10px;
}

.creators-support-title-support {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    background: linear-gradient(110deg, #fce090 0%, #f5a830 50%, #f0c055 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.creators-support-note {
    margin: 0 0 14px;
    color: #8a7e68;
    font-size: 13px;
    line-height: 1.55;
}

.creators-support-support-block .creators-support-note {
    color: #8a7e68;
}

/* ---- Coffee CTA button ---- */
.creators-support-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(240, 175, 70, 0.34);
    background:
        radial-gradient(ellipse 60% 60% at 10% 50%, rgba(180, 90, 15, 0.30), transparent),
        linear-gradient(135deg, rgba(130, 60, 10, 0.55) 0%, rgba(80, 35, 5, 0.42) 100%);
    color: #fce8a8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 100, 0.07),
        0 8px 22px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(235, 155, 50, 0.10);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.creators-support-link-support {
    /* inherits all from .creators-support-link */
}

.creators-support-link:hover,
.creators-support-link-support:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 200, 80, 0.54);
    box-shadow:
        inset 0 0 0 1px rgba(255, 220, 110, 0.10),
        0 12px 30px rgba(0, 0, 0, 0.38),
        0 0 32px rgba(248, 165, 55, 0.20);
}

.creators-support-link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.creators-support-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    background: rgba(240, 155, 40, 0.18);
    border: 1px solid rgba(245, 175, 60, 0.26);
    box-shadow: 0 0 12px rgba(245, 150, 40, 0.22);
    color: #fdc85a;
    flex-shrink: 0;
}

.creators-support-link-arrow {
    color: rgba(255, 195, 90, 0.65);
    font-size: 17px;
}

/* ---- misc leftovers ---- */
.creators-support-section-title {
    margin: 0 0 14px;
    color: #edf3ff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.creators-support-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #d1dcfb;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .creators-support::after {
        right: 50%;
        transform: translateX(50%);
    }

    .creators-support-panel {
        right: 50%;
        transform: translate(50%, -10px) scale(0.97);
    }

    .creators-support.is-open .creators-support-panel {
        transform: translate(50%, 0) scale(1);
    }

    .creators-support-panel::after {
        right: calc(50% - 8px);
    }
}

@media (max-width: 640px) {
    body.creators-support-active {
        overflow: hidden;
    }

    .creators-support-list {
        --creator-avatar-size: 54px;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .creators-support {
        width: auto;
        justify-content: flex-end;
    }

    .creators-support-button {
        width: auto;
        min-height: 38px;
        justify-content: center;
        gap: 7px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .creators-support-button svg:first-child {
        width: 16px;
        height: 16px;
    }

    .creators-support-panel {
        position: fixed;
        top: 76px;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 92px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 20px;
        transform: translateY(-12px) scale(0.98);
    }

    .creators-support.is-open .creators-support-panel {
        transform: translateY(0) scale(1);
    }

    .creators-support-panel::after,
    .creators-support::after {
        content: none;
        display: none;
    }

    .creators-support-panel-head {
        padding: 16px 16px 12px;
    }

    .creators-support-title {
        font-size: 18px;
    }

    .creators-support-person-card {
        display: grid;
        grid-template-columns: var(--creator-avatar-size) minmax(0, 1fr);
        align-items: center;
        text-align: left;
        padding: 12px;
        border-radius: 14px;
    }

    .creators-support-person {
        align-items: stretch;
        text-align: left;
        gap: 10px;
    }

    .creators-support-name {
        font-size: 15px;
    }

    .creators-support-role {
        font-size: 11px;
    }

    .creators-support-role-chip {
        margin-top: 5px;
    }

    .creators-support-contact-label {
        margin: 0 12px 7px;
    }

    .creators-support-actions {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 12px;
    }

    .creators-support-email {
        justify-content: center;
        padding: 10px 12px;
        text-align: center;
        font-size: 12px;
    }

    .creators-support-copy {
        min-height: 36px;
        border-left: 0;
        border-top: 1px solid rgba(115, 135, 255, 0.16);
    }

    .creators-support-divider {
        margin: 12px;
    }

    .creators-support-support-block {
        margin: 0 12px 12px;
        padding: 14px 12px;
        border-radius: 16px;
    }

    .creators-support-link {
        padding: 11px 12px;
        font-size: 13px;
    }

    .creators-support-link-icon {
        width: 30px;
        height: 30px;
    }
}

/* ===== frontend/css/footer.css ===== */
/* FOOTER STYLES */
.site-footer {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.6fr) minmax(140px, 0.6fr) minmax(260px, 1fr);
    gap: 28px;
    margin-top: 36px;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(126, 170, 255, 0.14);
    background:
        radial-gradient(circle at 16% 0%, rgba(91, 158, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(8, 13, 29, 0.84), rgba(5, 9, 20, 0.94));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #aeb8d6;
}

.site-footer-column {
    min-width: 0;
}

.site-footer-brand {
    color: #f3f6ff;
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
}

.site-footer-brand::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 28px;
    margin-right: 12px;
    vertical-align: -7px;
    border-radius: 7px;
    background:
        linear-gradient(to top, #49d8ff 0 58%, transparent 58%) 2px 100% / 5px 100% no-repeat,
        linear-gradient(to top, #6b6dff 0 86%, transparent 86%) 10px 100% / 5px 100% no-repeat,
        linear-gradient(to top, #b94dff 0 100%, transparent 100%) 18px 100% / 5px 100% no-repeat;
    filter:
        drop-shadow(0 0 8px rgba(73, 216, 255, 0.42))
        drop-shadow(0 0 12px rgba(185, 77, 255, 0.36));
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #eef3ff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer p {
    margin: 12px 0 0;
    color: #9ea9c7;
    font-size: 14px;
    line-height: 1.65;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer-links a {
    color: #b8c3dc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
    transition: color 0.16s ease;
}

.site-footer-links a:hover {
    color: #f4f8ff;
}

.site-footer-copy {
    display: block;
    margin-top: 18px;
    color: #7582a5;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 900px) {
    .site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .site-footer {
        grid-template-columns: 1fr;
    }
}

/* ===== frontend/leaderboard/leaderboard.css ===== */
.leaderbord-page {
    position: relative;
    background-color: #08111f;
    background-image:
        linear-gradient(
            180deg,
            #050914 0%,
            #07101f 38%,
            #08111f 100%
        );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
}

.leaderbord-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 30%, rgba(180, 116, 255, 0.18), transparent 34%),
        radial-gradient(ellipse at 78% 22%, rgba(90, 190, 255, 0.13), transparent 30%),
        radial-gradient(ellipse at 58% 88%, rgba(116, 82, 255, 0.12), transparent 36%);
    filter: blur(20px);
    opacity: 0.75;
}

.leaderbord-page .page {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.leaderbord-main {
    margin-top: 18px;
}

.leaderbord-header {
    text-align: center;
    margin: 26px auto 34px;
    max-width: 820px;
}

.leaderbord-kicker {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2.4px;
    color: #a86cff;
    text-transform: uppercase;
}

.leaderbord-title {
    margin: 0 0 14px;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.05;
    color: #f4f7ff;
    letter-spacing: -1px;
}

.leaderbord-subtitle {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #aeb8d6;
}

.leaderbord-explainer {
    margin: 0 auto 24px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(126, 170, 255, 0.18);
    background: linear-gradient(180deg, rgba(10, 16, 33, 0.92), rgba(8, 14, 30, 0.86));
}

.leaderbord-explainer h2 {
    margin: 0 0 8px;
    color: #f4f7ff;
    font-size: 26px;
}

.leaderbord-explainer p {
    margin: 0;
    color: #bcc7e4;
    line-height: 1.6;
    font-size: 16px;
}

.leaderbord-explainer p + p {
    margin-top: 8px;
}

.leaderbord-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.leaderbord-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.65fr);
    gap: 20px;
    margin-bottom: 24px;
}

.leaderbord-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(126, 170, 255, 0.18);
    background: linear-gradient(180deg, rgba(10, 16, 33, 0.92), rgba(8, 14, 30, 0.86));
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(120, 160, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.leaderbord-overview-head {
    margin-bottom: 14px;
}

.leaderbord-overview-head h2 {
    margin: 0;
    color: #f4f7ff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.leaderbord-distribution-chart {
    --distribution-offset-top: 8px;
    --distribution-plot-height: 118px;
    --distribution-label-row: 18px;
    height: 144px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: start;
}

.leaderbord-distribution-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(var(--distribution-plot-height) + var(--distribution-label-row));
    margin-top: var(--distribution-offset-top);
    padding-bottom: var(--distribution-label-row);
    color: #90a0c7;
    font-size: 12px;
    font-weight: 800;
}

.leaderbord-distribution-axis span {
    display: block;
    line-height: 1;
}

.leaderbord-distribution-bars {
    display: grid;
    gap: 10px;
    align-items: end;
    position: relative;
    margin-top: var(--distribution-offset-top);
    height: calc(var(--distribution-plot-height) + var(--distribution-label-row));
}

.leaderbord-distribution-bars::before {
    content: "";
    position: absolute;
    inset: 0 0 var(--distribution-label-row) 0;
    background: repeating-linear-gradient(
        to top,
        rgba(255, 255, 255, 0.00) 0,
        rgba(255, 255, 255, 0.00) 23%,
        rgba(126, 170, 255, 0.08) 24%,
        rgba(126, 170, 255, 0.08) 24.7%
    );
    pointer-events: none;
}

.leaderbord-distribution-item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: var(--distribution-plot-height) var(--distribution-label-row);
    align-items: center;
    gap: 8px;
    height: 100%;
    min-width: 0;
}

.leaderbord-distribution-bar-wrap {
    display: flex;
    align-items: end;
    width: 100%;
    height: var(--distribution-plot-height);
    min-height: 0;
}

.leaderbord-distribution-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #9c74ff 0%, #6b5cff 100%);
    box-shadow:
        0 0 16px rgba(139, 92, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.leaderbord-distribution-item-current .leaderbord-distribution-bar {
    background: linear-gradient(180deg, #ffc26b 0%, #ff9a3c 52%, #ff7a1a 100%);
    box-shadow:
        0 0 20px rgba(255, 162, 67, 0.30),
        0 0 30px rgba(255, 136, 26, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.leaderbord-distribution-label {
    color: #9da7ca;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
}

.leaderbord-users-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.leaderbord-users-total {
    display: block;
    margin-bottom: 8px;
    color: #f4f7ff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.leaderbord-users-growth {
    display: inline-block;
    color: #43d68f;
    font-size: 15px;
    font-weight: 800;
}

.leaderbord-users-sparkline {
    position: relative;
    height: 48px;
    margin-top: 18px;
}

.leaderbord-users-sparkline::before {
    content: "";
    position: absolute;
    inset: 2px 0 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 48' preserveAspectRatio='none'%3E%3Cpath d='M4 39 C16 40 22 36 31 34 C40 32 48 36 58 30 C68 24 75 28 86 20 C95 13 104 16 114 11 C126 5 138 12 149 9 C161 6 170 11 182 5 C191 1 201 7 210 4 C213 3 215 2 216 2' fill='none' stroke='%237eaaff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.leaderbord-users-sparkline::after {
    content: "";
    position: absolute;
    inset: 2px 0 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 48' preserveAspectRatio='none'%3E%3Cpath d='M4 39 C16 40 22 36 31 34 C40 32 48 36 58 30 C68 24 75 28 86 20 C95 13 104 16 114 11 C126 5 138 12 149 9 C161 6 170 11 182 5 C191 1 201 7 210 4 C213 3 215 2 216 2' fill='none' stroke='rgba(126,170,255,0.34)' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    filter: blur(8px);
    opacity: 0.85;
}

.leaderbord-current-card {
    display: block;
    margin-bottom: 26px;
    padding: 22px 26px;
    border-radius: 24px;
    border: 1px solid rgba(156, 190, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(11, 18, 38, 0.96), rgba(8, 14, 30, 0.90));
    box-shadow:
        0 0 0 1px rgba(176, 124, 255, 0.10),
        0 0 0 2px rgba(126, 170, 255, 0.08),
        0 0 24px rgba(120, 162, 255, 0.12),
        0 0 36px rgba(168, 108, 255, 0.10),
        0 18px 45px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(120, 160, 255, 0.06),
        0 0 18px rgba(95, 120, 255, 0.08),
        0 0 30px rgba(168, 108, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.leaderbord-current-card-hidden {
    display: none;
}

.leaderbord-current-glow {
    position: absolute;
    inset: auto -80px -90px auto;
    width: 280px;
    height: 220px;
    background:
        radial-gradient(circle, rgba(168, 108, 255, 0.12), transparent 60%),
        radial-gradient(circle at 30% 40%, rgba(93, 162, 255, 0.08), transparent 56%);
    pointer-events: none;
}

.leaderbord-current-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.leaderbord-current-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.leaderbord-current-label {
    margin: 0 0 10px;
    color: #aeb8d6;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.leaderbord-current-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.leaderbord-current-rank {
    min-width: 56px;
    padding: 10px 14px;
    border-radius: 14px;
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, rgba(17, 24, 48, 0.96), rgba(12, 19, 38, 0.96));
    border: 1px solid rgba(126, 170, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.leaderbord-current-player img {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    object-fit: cover;
    border: 1px solid rgba(190, 140, 255, 0.20);
}

.leaderbord-current-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.leaderbord-current-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f5f7ff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.leaderbord-current-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
    padding-left: 28px;
    border-left: 1px solid rgba(126, 170, 255, 0.16);
}

.leaderbord-current-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 145px;
}

.leaderbord-current-stat-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #c785ff;
    font-size: 17px;
    background: rgba(168, 108, 255, 0.08);
    border: 1px solid rgba(168, 108, 255, 0.10);
}

.leaderbord-current-stat-copy {
    min-width: 0;
}

.leaderbord-current-stat-label {
    display: block;
    margin-bottom: 6px;
    color: #9da7ca;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.leaderbord-current-stat-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.leaderbord-window {
    width: 100%;
    min-height: 520px;
    border-radius: 24px;
    border: 1px solid rgba(126, 170, 255, 0.24);
    background: rgba(8, 14, 30, 0.78);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(120, 160, 255, 0.06),
        0 0 18px rgba(95, 120, 255, 0.08),
        0 0 30px rgba(168, 108, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.leaderbord-window-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(126, 170, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderbord-window-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #f4f7ff;
}

.leaderbord-window-header span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #8fa4d8;
}

.leaderbord-list {
    padding: 14px;
}

.leaderbord-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(126, 170, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 10px;
}

.leaderbord-row:last-child {
    margin-bottom: 0;
}

.leaderbord-rank {
    font-size: 17px;
    font-weight: 900;
    color: #a86cff;
}

.leaderbord-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.leaderbord-player img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(140, 170, 255, 0.18);
}

.leaderbord-player span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 800;
    color: #f3f6ff;
}

.leaderbord-value {
    font-size: 17px;
    font-weight: 900;
    color: #dce6ff;
    text-align: right;
}

.leaderbord-loading,
.leaderbord-empty {
    margin: 0;
    padding: 24px;
    text-align: center;
    color: #9ba8c8;
    font-size: 17px;
    line-height: 1.5;
}

.leaderbord-row-current {
    border-color: rgba(176, 124, 255, 0.48);
    background: linear-gradient(180deg, rgba(168, 108, 255, 0.16), rgba(102, 132, 255, 0.10));
    box-shadow:
        0 0 0 1px rgba(188, 140, 255, 0.10),
        0 0 18px rgba(168, 108, 255, 0.16),
        0 0 28px rgba(93, 162, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.leaderbord-row-current .leaderbord-rank {
    color: #e0b6ff;
}

.leaderbord-row-current .leaderbord-player img {
    border-color: rgba(190, 140, 255, 0.34);
    box-shadow: 0 0 12px rgba(168, 108, 255, 0.14);
}

.leaderbord-row-current .leaderbord-player span,
.leaderbord-row-current .leaderbord-value {
    color: #ffffff;
}

.leaderbord-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(168, 108, 255, 0.78);
    box-shadow: 0 0 10px rgba(168, 108, 255, 0.18);
}

.leaderbord-badge-large {
    margin-left: 0;
    padding: 5px 10px;
    font-size: 14px;
    letter-spacing: 0.8px;
}

.leaderbord-current-separator {
    position: relative;
    height: 12px;
    margin: 20px 0 16px;
}

.leaderbord-current-separator::before,
.leaderbord-current-separator::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(164, 188, 255, 0.28), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 10px rgba(126, 170, 255, 0.10);
}

.leaderbord-current-separator::before {
    top: 1px;
}

.leaderbord-current-separator::after {
    bottom: 1px;
}

@media (max-width: 900px) {
    .leaderbord-main {
        margin-top: 14px;
    }

    .leaderbord-header {
        margin: 20px auto 24px;
        text-align: left;
    }

    .leaderbord-title {
        font-size: clamp(34px, 9vw, 46px);
        letter-spacing: 0;
    }

    .leaderbord-subtitle,
    .leaderbord-explainer p {
        font-size: 15px;
        line-height: 1.55;
    }

    .leaderbord-explainer {
        padding: 16px;
        border-radius: 16px;
    }

    .leaderbord-explainer h2 {
        font-size: 22px;
        line-height: 1.2;
    }

    .leaderbord-overview-grid,
    .leaderbord-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .leaderbord-current-main {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .leaderbord-current-meta {
        width: 100%;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(126, 170, 255, 0.16);
        padding-top: 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .leaderbord-current-meta-item {
        min-width: 0;
        padding: 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(126, 170, 255, 0.10);
    }

    .leaderbord-current-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.16;
    }
}

@media (max-width: 600px) {
    .leaderbord-page .container {
        width: 100%;
        max-width: none;
        padding-inline: 12px;
    }

    .leaderbord-overview-card,
    .leaderbord-current-card,
    .leaderbord-window {
        border-radius: 18px;
    }

    .leaderbord-overview-card {
        min-height: auto;
        padding: 16px;
    }

    .leaderbord-overview-head h2,
    .leaderbord-window-header h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .leaderbord-distribution-chart {
        grid-template-columns: 34px 1fr;
        gap: 8px;
    }

    .leaderbord-distribution-bars {
        gap: 5px;
    }

    .leaderbord-distribution-label {
        font-size: 11px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.1;
    }

    .leaderbord-users-total {
        font-size: 36px;
    }

    .leaderbord-current-card {
        padding: 16px;
        margin-bottom: 18px;
    }

    .leaderbord-current-player {
        align-items: flex-start;
        gap: 10px;
    }

    .leaderbord-current-player img {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        flex: 0 0 44px;
    }

    .leaderbord-current-name {
        font-size: 20px;
    }

    .leaderbord-current-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .leaderbord-current-stat-value {
        font-size: 21px;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .leaderbord-window {
        min-height: auto;
    }

    .leaderbord-window-header {
        padding: 16px;
        align-items: flex-start;
        gap: 8px;
    }

    .leaderbord-window-header span {
        white-space: nowrap;
    }

    .leaderbord-list {
        padding: 10px;
    }

    .leaderbord-row {
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-areas:
            "rank player"
            "rank value";
        align-items: start;
        gap: 4px 10px;
        min-height: 0;
        padding: 12px;
        border-radius: 14px;
    }

    .leaderbord-rank {
        grid-area: rank;
        align-self: center;
        font-size: 16px;
    }

    .leaderbord-player {
        grid-area: player;
        align-items: flex-start;
        min-width: 0;
    }

    .leaderbord-player img {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        flex: 0 0 34px;
    }

    .leaderbord-player span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.2;
        font-size: 15px;
    }

    .leaderbord-value {
        grid-area: value;
        text-align: left;
        font-size: 15px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .leaderbord-badge {
        margin-left: 0;
        margin-top: 4px;
        width: fit-content;
    }
}

@media (max-width: 380px) {
    .leaderbord-page .container {
        padding-inline: 10px;
    }

    .leaderbord-row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 4px 8px;
        padding: 10px;
    }

    .leaderbord-player {
        gap: 9px;
    }

    .leaderbord-player img {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}
