﻿:root {
      --bg:          #080808;
      --surface:     #0e0e0e;
      --panel:       rgba(255,255,255,0.034);
      --panel-hover: rgba(255,255,255,0.058);
      --line:        rgba(255,255,255,0.08);
      --line-hi:     rgba(255,255,255,0.15);
      --text:        #f0f0f0;
      --dim:         #a0a0a0;
      --muted:       #505050;
      --accent:      #eff923;
      --accent-dim:  rgba(239,249,35,0.10);
      --accent-glow: rgba(239,249,35,0.28);
      --red:         #ef4444;
      --am:          #e8354a;
      --eu:          #4da3ff;
      --apac:        #22c55e;
      --asia:        #f5c518;
      --r:           6px;
      --ease:        cubic-bezier(.4,0,.2,1);
      --fd: 'Barlow Condensed', sans-serif;
      --fb: 'Barlow', sans-serif;
      --fm: 'JetBrains Mono', monospace;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--fb);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: geometricPrecision;
    }
    /* grain overlay */
    body::before {
      content: '';
      position: fixed; inset: 0; pointer-events: none; z-index: 9999;
      opacity: 0.022;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    }
    a { color: inherit; text-decoration: none; }

    /* ── TOPBAR ── */
    .topbar {
      position: sticky; top: 0; z-index: 200;
      min-height: 72px;
      display: flex; align-items: center;
      padding: 0 36px;
      background: #06080b;
      border-bottom: 1px solid var(--line);
      gap: 0;
      overflow: hidden;
    }
    .topbar::after {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(90deg, transparent 0%, var(--accent) 38%, var(--accent) 62%, transparent 100%);
      background-size: 200% 100%;
      animation: shimmer 7s ease-in-out infinite;
      opacity: 0.3;
    }
    @keyframes shimmer { 0%{background-position:-100% 0} 100%{background-position:200% 0} }

    .brand {
      display: flex; align-items: center; gap: 8px;
      font-family: var(--fd); font-weight: 900; font-size: 34px;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0;
      word-spacing: -0.08em;
      color: var(--text); flex-shrink: 0;
      padding-right: 26px;
      border-right: 1px solid rgba(255,255,255,0.08);
      margin-right: 0;
    }
    .brand-bar { display: none; }
    .brand-wordmark { color: inherit; text-shadow: none; }
    .brand .brand-initial { color: var(--accent); }

    .nav-primary {
      display: flex; align-items: center; gap: 0; flex: 1;
      overflow-x: auto; scrollbar-width: none;
    }
    .nav-primary::-webkit-scrollbar { display: none; }
    .nav-primary a {
      display: flex; align-items: center; gap: 6px;
      height: 72px; padding: 0 20px;
      margin: 0;
      font-family: var(--fd); font-size: 14px; font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: rgba(255,255,255,0.58);
      transition: color 0.16s var(--ease);
      white-space: nowrap;
      text-decoration: none;
    }
    .nav-primary a:hover { color: var(--text); }
    .nav-primary a.active { color: var(--accent); }

    .nav-regions {
      display: flex; align-items: center; gap: 8px; margin-left: 14px;
    }
    .nav-region-pin {
      width: 34px; height: 34px;
      display: flex; align-items: center; justify-content: center;
      opacity: 0.86;
      transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), filter 0.18s var(--ease);
    }
    .nav-region-pin.global {
      width: 38px;
    }
    .nav-region-pin img {
      width: 24px; height: 24px;
      object-fit: contain;
      display: block;
    }
    .nav-region-pin.global img { width: 28px; height: 28px; }
    .nav-region-pin:hover {
      opacity: 1;
      transform: translateY(-1px);
      filter: drop-shadow(0 0 8px rgba(239,249,35,0.2));
    }
    .live-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 1.3s ease-in-out infinite; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.18} }

    /* ── HERO ── */
    .hero {
      position: relative;
      height: calc(100vh - 72px);
      min-height: 560px;
      display: grid;
      grid-template-columns: 1fr 480px;
      overflow: hidden;
    }
    .hero.hero-initializing .hero-body,
    .hero.hero-initializing .hero-side,
    .hero.hero-initializing .hero-bg-num,
    .hero.hero-initializing .hero-dots {
      visibility: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(160deg, #0c0c06 0%, #080808 45%, #06060e 100%);
    }
    .hero-grid {
      position: absolute; inset: 0; pointer-events: none;
      background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg,  rgba(255,255,255,0.02) 0 1px, transparent 1px 80px);
    }
    .hero-beam { display: none; } /* replaced by canvas */
    .hero-canvas {
      position: absolute; inset: 0; z-index: 1;
      pointer-events: none; width: 100%; height: 100%;
    }
    .hero-glow {
      position: absolute;
      top: -80px; left: -80px;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,159,67,0.08) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-bg-num {
      position: absolute; z-index: 1;
      bottom: 24px; right: 460px;
      font-family: var(--fd); font-size: 260px; font-weight: 900;
      color: transparent; line-height: 1;
      -webkit-text-stroke: 1px rgba(239,249,35,0.055);
      pointer-events: none; user-select: none;
    }

    .hero-body {
      position: relative; z-index: 2;
      padding: 64px 40px 64px 52px;
      display: flex; flex-direction: column; justify-content: center;
    }
    .hero-eyebrow {
      display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
    }
    .hero-eyebrow-line { width: 36px; height: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(239,249,35,0.6); }
    .hero-eyebrow-label {
      font-family: var(--fd); font-size: 14px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent);
    }
    .hero-region-tag {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(255,159,67,0.10);
      border: 1px solid rgba(255,159,67,0.28);
      border-radius: 3px; padding: 5px 12px;
      font-family: var(--fd); font-size: 12px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--am);
    }
    .hero-region-tag:empty { display: none; }

    .hero-title {
      font-family: var(--fd);
      font-size: clamp(58px, 7.2vw, 112px);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.01em;
      line-height: 1;
      margin-bottom: 32px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hero-title span {
      color: var(--accent);
      display: inline;
      text-shadow: 0 0 80px rgba(239,249,35,0.12);
    }

    .hero-chips {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
      margin-bottom: 36px;
    }
    .hero-live-badge {
      display: flex; align-items: center; gap: 6px;
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.4);
      border-radius: 4px; padding: 8px 16px;
      font-family: var(--fd); font-size: 13px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--red); box-shadow: 0 0 16px rgba(239,68,68,0.08);
    }
    .hero-stat {
      display: flex; align-items: center; gap: 6px;
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 4px; padding: 8px 16px;
      font-family: var(--fd); font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim);
    }
    .hero-stat b { font-family: var(--fm); font-size: 20px; font-weight: 700; color: var(--text); }

    .hero-cta { display: flex; align-items: center; gap: 12px; }
    .btn-accent {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--accent); color: #000;
      font-family: var(--fd); font-size: 15px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.1em;
      padding: 16px 32px; border-radius: var(--r);
      transition: all 0.2s var(--ease);
      box-shadow: 0 0 28px rgba(239,249,35,0.28);
    }
    .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 4px 40px rgba(239,249,35,0.4); }
    .btn-outline {
      display: inline-flex; align-items: center; gap: 8px;
      border: 1px solid var(--line-hi);
      background: var(--panel); color: var(--dim);
      font-family: var(--fd); font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      padding: 13px 22px; border-radius: var(--r);
      transition: all 0.2s var(--ease);
    }
    .btn-outline:hover { border-color: rgba(239,249,35,0.38); color: var(--accent); background: var(--accent-dim); }

    /* Hero participants table */
    .hero-side {
      position: relative; z-index: 2;
      display: flex; align-items: stretch;
      padding: 48px 40px 48px 0;
      min-height: 0;
      overflow: hidden;
    }
    .mini-lb {
      flex: 1;
      min-height: 0;
      max-height: 100%;
      background: rgba(14,14,14,0.7);
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex; flex-direction: column;
    }
    .mini-lb-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,0.03);
    }
    .mini-lb-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .mini-lb-title {
      display: flex; align-items: center; gap: 8px;
      font-family: var(--fd); font-size: 10px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
      flex: 0 0 auto;
    }
    .mini-lb-title::before {
      content: '';
      width: 3px; height: 13px; background: var(--accent); border-radius: 2px;
      box-shadow: 0 0 8px rgba(239,249,35,0.55);
    }
    .mini-lb-region {
      min-width: 74px;
      max-width: 96px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      border: 1px solid rgba(var(--mini-lb-rc, 210,215,222),0.28);
      border-radius: 3px;
      padding: 2px 7px;
      background: rgba(var(--mini-lb-rc, 210,215,222),0.08);
      font-family: var(--fd);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgb(var(--mini-lb-rc, 210,215,222));
      text-align: center;
    }
    .mini-lb-link {
      font-family: var(--fd); font-size: 10px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--muted); transition: color 0.15s;
      white-space: nowrap;
    }
    .mini-lb-link:hover { color: var(--accent); }
    .mini-lb-body {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      display: block;
      padding: 10px 16px 14px 24px;
      scrollbar-width: thin;
      scrollbar-color: rgba(239,249,35,0.35) rgba(255,255,255,0.04);
    }
    .mini-lb-body::-webkit-scrollbar { width: 6px; }
    .mini-lb-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
    .mini-lb-body::-webkit-scrollbar-thumb { background: rgba(239,249,35,0.35); border-radius: 999px; }
    .lb-row {
      display: grid;
      grid-template-columns: 34px 40px 1fr;
      align-items: center;
      width: calc(100% - 132px);
      min-height: 44px; padding: 0 18px 0 14px;
      margin: 0 0 7px var(--stair, 0px);
      border: 1px solid rgba(255,255,255,0.055);
      border-radius: 5px;
      background: rgba(12,12,12,0.74);
      clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
      transform: translateX(0) skewX(-8deg) scale(1);
      transform-origin: right center;
      transition:
        background 0.16s var(--ease),
        border-color 0.16s var(--ease),
        box-shadow 0.16s var(--ease),
        opacity 0.16s var(--ease),
        transform 0.16s var(--ease);
      position: relative;
      z-index: 1;
    }
    .lb-row:last-child { margin-bottom: 0; }
    .mini-lb-body:hover .lb-row:not(:hover) { opacity: 0.76; }
    .lb-row:hover {
      background: rgba(255,255,255,0.062);
      border-color: rgba(239,249,35,0.36);
      box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 0 18px rgba(239,249,35,0.12);
      transform: translateX(-14px) skewX(-8deg) scale(1.065);
      z-index: 5;
    }
    .lb-rank { font-family: var(--fm); font-size: 11px; font-weight: 600; color: var(--muted); }
    .lb-logo {
      width: 36px; height: 36px;
      background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 3px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden; position: relative;
      font-family: var(--fd); font-size: 9px; font-weight: 900; color: var(--muted); text-transform: uppercase;
      transform: skewX(8deg);
    }
    .lb-logo img {
      position: absolute;
      inset: -3px;
      width: calc(100% + 6px);
      height: calc(100% + 6px);
      object-fit: contain;
      transform: scale(var(--logo-scale, 1));
      transform-origin: center center;
    }
    .lb-team {
      font-family: var(--fd); font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.04em;
      padding-left: 12px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      transform: skewX(8deg);
    }
    .lb-rank { transform: skewX(8deg); }

    /* ── FOOTER ── */
    .footer {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px 32px;
      align-items: center;
      padding: 22px 36px;
      border-top: 1px solid rgba(239,249,35,0.16);
      background:
        linear-gradient(180deg, rgba(239,249,35,0.035) 0%, transparent 42%),
        rgba(6,6,6,0.96);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    }
    .footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
    .footer-links a {
      font-family: var(--fd); font-size: 11px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim);
      transition: color 0.15s;
    }
    .footer-links a:hover { color: var(--accent); }
    .footer-disclaimer {
      font-family: var(--fb);
      font-size: 13px;
      font-weight: 600;
      color: var(--dim);
      text-align: right;
    }
    .footer-copy {
      grid-column: 1 / -1;
      font-family: var(--fm);
      font-size: 10px;
      color: var(--muted);
    }

    /* ── Hero banner bg & region tint ── */
    .hero { --hero-rc: 210,215,222; }
    .hero::after {
      content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
      background: radial-gradient(ellipse at 75% 0%, rgba(var(--hero-rc),0.10) 0%, transparent 55%);
      transition: background 1s var(--ease);
    }
    .hero-banner {
      position: absolute;
      top: 50%; right: 430px; transform: translateY(-50%);
      width: 760px; height: 440px;
      object-fit: contain;
      z-index: 1; pointer-events: none;
      opacity: 0.2;
      display: none;
      transition: opacity 0.8s;
    }

    /* ── Hero carousel dots ── */
    .hero-dots {
      position: absolute; bottom: 22px; left: 52px; z-index: 5;
      display: flex; gap: 7px; align-items: center;
    }
    .hero-dot {
      width: 18px; height: 3px; border-radius: 2px; border: none; cursor: pointer; padding: 0;
      background: rgba(255,255,255,0.22);
      transition: width 0.35s var(--ease), background 0.35s;
    }
    .hero-dot.active {
      width: 34px; background: var(--accent);
      box-shadow: 0 0 8px rgba(239,249,35,0.45);
    }
    .hero-dot:hover:not(.active) { background: rgba(255,255,255,0.4); }

    /* ── Hero status badges ── */
    .hero-upcoming-badge {
      display: flex; align-items: center; gap: 6px;
      background: rgba(77,163,255,0.10); border: 1px solid rgba(77,163,255,0.35);
      border-radius: 4px; padding: 6px 14px;
      font-family: var(--fd); font-size: 11px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.12em; color: #4da3ff;
    }
    .hero-ongoing-badge {
      display: flex; align-items: center; gap: 6px;
      background: rgba(56,189,248,0.10); border: 1px solid rgba(56,189,248,0.40);
      border-radius: 4px; padding: 6px 14px;
      font-family: var(--fd); font-size: 11px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.12em; color: #38bdf8;
    }
    .hero-finished-badge {
      display: flex; align-items: center;
      background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.35);
      border-radius: 4px; padding: 6px 14px;
      font-family: var(--fd); font-size: 11px; font-weight: 900;
      text-transform: uppercase; letter-spacing: 0.12em; color: #22c55e;
    }

    /* ── Entrance animations ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .hero-body  { animation: fadeUp 0.65s ease both; }

    /* ── Responsive ── */
    @media (max-width: 1100px) {
    }
    @media (max-width: 860px) {
      .hero { grid-template-columns: 1fr; min-height: auto; }
      .hero-body { padding: 40px 24px; }
      .hero-bg-num { display: none; }
      .topbar { padding: 0 20px; }
      .nav-regions { display: none; }
    }
    @media (max-width: 580px) {
      .hero-title { font-size: 56px; }
      .topbar { gap: 14px; }
      .nav-primary { min-width: 0; }
    }

