     
    :root {
      --bg1: #f9fafb;
      --bg2: #fefce8;
      --bg3: #e0f2fe;

      --accent-green: #22c55e;
      --accent-yellow: #eab308;
      --accent-orange: #f97316;

      --card-bg: rgba(255, 255, 255, 0.9);
      --card-border: rgba(15, 23, 42, 0.06);
      --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);

      --text-main: #0f172a;
      --text-muted: #6b7280;
      --chip-bg: rgba(255, 255, 255, 0.9);
      --chip-border: rgba(15, 23, 42, 0.08);
      --footer-chip-bg: rgba(255, 255, 255, 0.8);
    }

    :root[data-theme="dark"] {
      --bg1: #020617;
      --bg2: #020617;
      --bg3: #020617;

      --card-bg: rgba(15, 23, 42, 0.96);
      --card-border: rgba(148, 163, 184, 0.28);
      --card-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);

      --text-main: #f9fafb;
      --text-muted: #9ca3af;
      --chip-bg: rgba(15, 23, 42, 0.96);
      --chip-border: rgba(148, 163, 184, 0.5);
      --footer-chip-bg: rgba(15, 23, 42, 0.96);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { min-height: 100%; }

    body {
		font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		text-align: center;
		color: var(--text-main);
		overflow-x: hidden;
		background: #0f1720;
    }

     
    .spot {
      position: absolute;
      z-index: 1;
      border-radius: 50%;
      filter: blur(120px);
      opacity: 0.35;
      animation: float 18s ease-in-out infinite alternate;
      pointer-events: none;
    }
    .spot.green {
      width: 420px; height: 420px;
      background: var(--accent-green);
      top: 5%; left: 10%;
      animation-delay: 0s;
    }
    .spot.yellow {
      width: 380px; height: 380px;
      background: var(--accent-yellow);
      bottom: 10%; right: 10%;
      animation-delay: 2s;
    }
    .spot.orange {
      width: 320px; height: 320px;
      background: var(--accent-orange);
      top: 60%; left: 50%;
      animation-delay: 4s;
    }
    @keyframes float {
      0% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-30px) scale(1.03); opacity: 0.45; }
      100% { transform: translateY(20px) scale(1.08); opacity: 0.3; }
    }

     
    .theme-toggle {
      position: fixed;
      top: 20px;
      right: 24px;
      z-index: 10;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      background: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      user-select: none;
      transition: background 0.3s ease, border-color 0.3s ease;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    :root[data-theme="dark"] .theme-toggle {
      background: rgba(15, 23, 42, 0.9);
      border-color: rgba(148, 163, 184, 0.4);
      box-shadow: 0 0 18px rgba(255, 255, 255, 0.04);
    }

    .theme-icon {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--text-main);
      opacity: 0.5;
      transition: opacity 0.2s ease;
    }

    :root[data-theme="light"] .theme-icon.sun,
    :root[data-theme="dark"]  .theme-icon.moon {
      opacity: 1;
    }

    .theme-icon svg {
      width: 100%;
      height: 100%;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.6;
    }

     
    .card {
      position: relative;
      z-index: 1;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      background: var(--card-bg);
      border-radius: 16px;
      box-shadow: var(--card-shadow);
      padding: 48px 38px 36px;
      max-width: 480px;
      width: 100%;
      border: 1px solid var(--card-border);
    }

    .title {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .subtitle {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .host {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
      font-size: 13px;
      padding: 6px 10px;
      background: var(--chip-bg);
      border-radius: 999px;
      border: 1px solid var(--chip-border);
      display: inline-block;
      margin-bottom: 24px;
      color: var(--text-main);
    }

    .loader {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 24px;
    }
    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      opacity: 0.4;
      animation: pulse 1.6s infinite;
    }
    .dot:nth-child(1) { background: var(--accent-yellow); }
    .dot:nth-child(2) { background: var(--accent-orange); animation-delay: 0.2s; }
    .dot:nth-child(3) { background: var(--accent-green); animation-delay: 0.4s; }

    @keyframes pulse {
      0%, 80%, 100% { opacity: 0.35; transform: scale(1); }
      40% { opacity: 1; transform: scale(1.4); }
    }

    .message {
      font-size: 15px;
      font-weight: 500;
      transition: opacity 0.6s ease;
      min-height: 24px;
      margin-bottom: 8px;
    }

    .footer {
      margin-top: 16px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .footer code {
      background: var(--footer-chip-bg);
      border-radius: 4px;
      padding: 0 4px;
      font-size: 11px;
    }

    code {
      background: rgba(0,0,0,0.03);
      border-radius: 4px;
      padding: 0 4px;
      font-size: 12px;
    }
    :root[data-theme="dark"] code {
      background: rgba(15,23,42,0.9);
    }

    @media (max-width: 480px) {
      .card { padding: 32px 20px 24px; }
      .title { font-size: 19px; }
    }
	
	.logo img {
		display: inline;
    margin: 35px auto;
    width: 400px;
	}
	
.nav-menu {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
}

.nav-item {
    width: 220px;
    border-radius: 14px;
    padding: 14px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: block;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
    transform-origin: center center;
}

.nav-item a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.nav-item > a,
.nav-item > .nav-item-main {
    display: block;
    margin-bottom: 14px;
}

.nav-item-with-sub {
    position: relative;
    width: 220px;
    /* важный отступ снизу, чтобы submenu не перекрывал соседей */
    padding-bottom: 0;
}

.nav-item:hover {
    transform: scale(1.04);
    background: rgb(38 52 70 / 13%);
    border-color: rgba(255, 230, 120, 0.45);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 0 0 2px rgba(255, 230, 120, 0.12);
}

.nav-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-image img,
.nav-image svg {
    width: 160px;
    height: 160px;
    display: block;
    object-fit: contain;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
    text-align: center;
}

.nav-mute {
    font-size: 13px;
    color: #b8c1cc;
    line-height: 1.35;
    text-align: center;
}

.nav-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    z-index: 20;

    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;

    padding: 10px;
    border-radius: 12px;

    background: rgba(38, 52, 70, 0.95);
    border: 1px solid rgba(255, 230, 120, 0.20);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.nav-item-with-sub:hover .nav-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-sub a {
    color: #eaf1ff;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav-sub a:hover {
    background: rgba(255, 230, 120, 0.12);
    border-color: rgba(255, 230, 120, 0.28);
    transform: translateY(-1px);
}

.nav-menu,
.nav-item-with-sub {
    overflow: visible;
}

.nav-item-with-sub {
    position: relative;
    width: 220px;
    padding-bottom: 0;
    overflow: visible;
}

/* Невидимый мостик между карточкой и submenu */
.nav-item-with-sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px; /* перекрывает зазор */
    z-index: 19;
}

/* Контейнер фоновой подложки */
.bg-rotator {
    position: absolute;
    inset: 0;
    z-index: 0; /* под контентом */
    overflow: hidden;
    background: #0f1720;
}

/* 2 слоя для плавной смены (crossfade) */
.bg-layer {
    position: absolute;
    inset: -6%; /* запас, чтобы blur/scale не обрезались */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: transform, opacity;
    transform: scale(1.06);
    animation: bgBreath 18s ease-in-out infinite alternate;
    filter: blur(6px) brightness(0.55) saturate(1.05);
}

/* Активный слой */
.bg-layer.is-visible {
    opacity: 1;
}

/* Дополнительная затемняющая/цветная подложка поверх фона */
.bg-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 230, 120, 0.08), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(120, 180, 255, 0.08), transparent 45%),
        linear-gradient(to bottom, rgba(6, 10, 16, 0.35), rgba(6, 10, 16, 0.55));
}

/* Плавное приближение/отдаление */
@keyframes bgBreath {
    0%   { transform: scale(1.04) translate3d(0, 0, 0); }
    50%  { transform: scale(1.08) translate3d(-0.4%, 0.2%, 0); }
    100% { transform: scale(1.12) translate3d(0.4%, -0.2%, 0); }
}

/* Ваш контент поверх */
.page-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.landing-section {
    position: relative;
    width: 100%;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 22px;
    overflow: hidden;
}

.empty-section {
    min-height: 60vh;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.empty-section-a {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(31, 41, 55, 0.96)),
        radial-gradient(circle at 12% 20%, rgba(234, 179, 8, 0.16), transparent 34%);
}

.leaderboard-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 24px;
    color: #f8fafc;
}

.leaderboard-wrap {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.leaderboard-section-header {
    grid-column: 1 / -1;
    text-align: center;
}

.leaderboard-section-header h2 {
    color: #ffffff;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 900;
}

.leaderboard-card {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.leaderboard-header {
    padding: 22px 24px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.leaderboard-header h3 {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    color: #e5e7eb;
    font-size: 15px;
    text-align: left;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table th {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr:last-child td {
    border-bottom: 0;
}

.leaderboard-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.leaderboard-table td:first-child {
    width: 84px;
    color: #facc15;
    font-weight: 800;
}

.leaderboard-table td:last-child {
    width: 140px;
    color: #86efac;
    font-weight: 700;
    white-space: nowrap;
}

.leaderboard-table .leaderboard-empty {
    width: auto;
    padding: 34px 18px;
    color: #cbd5e1;
    font-weight: 700;
    text-align: center;
    white-space: normal;
}

.landing-footer {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.72);
    background: #050914;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.landing-footer__inner {
    width: min(100%, 1180px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.landing-footer a:hover {
    color: #facc15;
}

@media (max-width: 760px) {
    .hero-section {
        padding-top: 22px;
    }

    .nav-menu {
        justify-content: center;
    }

    .landing-footer__inner {
        flex-direction: column;
        justify-content: center;
    }

    .leaderboard-section {
        padding: 16px;
    }

    .leaderboard-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .leaderboard-header {
        padding: 20px 18px 16px;
    }

    .leaderboard-section-header h2 {
        font-size: 31px;
    }

    .leaderboard-header h3 {
        font-size: 21px;
    }

    .leaderboard-table {
        font-size: 13px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 10px;
    }

    .leaderboard-table td:first-child {
        width: 58px;
    }

    .leaderboard-table td:last-child {
        width: 110px;
    }
}
  
