:root {
    --page-bg: #05060a;
    --panel: #0c0e13;
    --panel-strong: #0f1118;
    --text: #f5f7fb;
    --muted: #99a0b3;
    --accent: #0fb56d;
    --accent-2: #4f6bff;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(79, 107, 255, 0.12), transparent 35%), radial-gradient(circle at 80% 10%, rgba(15, 181, 109, 0.12), transparent 30%), var(--page-bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
}

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

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.global-common-header #app-name {
    font-size: 20px;
    letter-spacing: 0.4px;
    color: #f9f9f9;
    margin: 0;
    line-height: 1.2;
    display: inline-block;
}

.global-common-header {
    position: relative;
    z-index: 10002;
}

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 10003;
    background: rgba(12, 14, 19, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
    flex: 1 1 220px;
}

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

.cookie-button {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border 120ms ease;
}

.cookie-button.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #0b0b0d;
    border-color: transparent;
}

.cookie-button:hover {
    transform: translateY(-1px);
}

@media (min-width: 769px) {
    .global-common-header .wallet-connect .inner-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.welcome-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.welcome-modal {
    background: #0c0e13;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 380px;
    width: 100%;
    padding: 18px 18px 16px;
    color: var(--text);
    display: grid;
    gap: 10px;
}

.welcome-headline {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.welcome-body {
    margin: 0;
    color: var(--muted);
}

.welcome-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.welcome-close {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.welcome-close.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #0b0b0d;
    border-color: transparent;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    position: relative;
    overflow: visible;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e7eaf1;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    letter-spacing: 0.1px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: background 140ms ease, transform 120ms ease, border 140ms ease, box-shadow 140ms ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.nav-button.active {
    background: linear-gradient(120deg, rgba(15, 181, 109, 0.9), rgba(79, 107, 255, 0.9));
    color: #0b0b0d;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(15, 181, 109, 0.28);
}

.nav-more {
    position: relative;
}

.nav-more.hidden {
    display: none;
}

.more-trigger {
    padding-right: 32px;
    position: relative;
}

.more-trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid var(--muted);
    border-left: 0;
    border-top: 0;
    transform: translateY(-50%) rotate(45deg);
}

.more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #0c0e13;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    min-width: 160px;
    z-index: 50;
}

.nav-more.open .more-menu {
    display: grid;
    gap: 6px;
}

.burger-trigger {
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    min-width: 44px;
    justify-content: center;
}

.burger-container {
    position: relative;
}

.burger-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #0c0e13;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    min-width: 200px;
    z-index: 10001;
    grid-template-columns: 1fr;
    gap: 8px;
}

.burger-menu a {
    width: 100%;
}

.burger-open .burger-menu {
    display: grid;
}

@media (max-width: 768px) {

    .nav-bar,
    .nav-more {
        display: none;
    }

    .header-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
    }

    .header-left {
        grid-column: 1;
        flex: 0 1 auto;
        gap: 8px;
    }

    .nav-wraper {
        grid-column: 2;
        display: flex;
        justify-content: center;
        margin-left: 0;
    }

    .burger-container {
        grid-column: 3;
        justify-self: end;
    }

    .burger-trigger {
        display: inline-flex;
        margin-left: 0;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(79, 107, 255, 0.12), rgba(15, 181, 109, 0.14));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    position: sticky;
    top: 12px;
    backdrop-filter: blur(8px);
    z-index: 5;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 18px;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 20px rgba(79, 107, 255, 0.4);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.nav a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 120ms ease, background 120ms ease, border 120ms ease, transform 120ms ease;
    font-weight: 600;
}

.nav a:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.nav a.active {
    color: var(--text);
    border-color: rgba(15, 181, 109, 0.5);
    background: rgba(15, 181, 109, 0.1);
    box-shadow: 0 10px 28px rgba(15, 181, 109, 0.12);
}

.hero {
    padding: 36px 24px;
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-title {
    margin: 0 0 8px;
    font-size: 28px;
}

.hero-subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.card {
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    min-height: 160px;
    overflow: auto;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--muted);
    letter-spacing: 0.2px;
}

.card-value {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(15, 181, 109, 0.1);
    border: 1px solid rgba(15, 181, 109, 0.4);
    border-radius: 999px;
    color: #b6f3d5;
    font-weight: 600;
    font-size: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.lb-table {
    table-layout: fixed;
}

.table th,
.table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.section {
    margin-top: 28px;
}

.section h2 {
    margin: 0 0 12px;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
}

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

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    font-weight: 600;
    transition: background 120ms ease, color 120ms ease, border 120ms ease;
}

.chip.active {
    color: var(--text);
    border-color: rgba(15, 181, 109, 0.6);
    background: rgba(15, 181, 109, 0.12);
}

.leaderboard-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0 12px;
}

.top-card {
    background: linear-gradient(145deg, rgba(255, 208, 85, 0.16), rgba(255, 209, 255, 0.04));
    border: 1px solid rgba(255, 208, 85, 0.4);
    border-radius: var(--radius);
    padding: 14px;
}

.top-card.silver {
    background: linear-gradient(145deg, rgba(196, 196, 196, 0.16), rgba(255, 255, 255, 0.02));
    border-color: rgba(196, 196, 196, 0.4);
}

.top-card.bronze {
    background: linear-gradient(145deg, rgba(255, 131, 77, 0.16), rgba(255, 183, 131, 0.04));
    border-color: rgba(255, 131, 77, 0.4);
}

.top-card h4 {
    margin: 0 0 4px;
}

.top-card .wallet {
    color: var(--muted);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
}

.mini-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mini-nav button {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(79, 107, 255, 0.35);
    background: linear-gradient(120deg, rgba(79, 107, 255, 0.2), rgba(15, 181, 109, 0.2));
    color: #e9ecf7;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(79, 107, 255, 0.2);
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.mini-nav button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 181, 109, 0.22);
    opacity: 0.95;
}

.timeline {
    display: grid;
    gap: 12px;
    padding: 12px 0;
    max-width: 780px;
    margin: 0 auto;
}

.section.what-see {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section.what-see h2 {
    margin-left: 0;
}

.card.timeline {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-shell {
        padding: 20px 16px 40px;
    }
}