@layer v1Runtime {
@layer tokens {
  :root {
    --bg: #0b0f14;
    --bg-soft: #121922;
    --card: rgba(18, 25, 34, 0.9);
    --card-2: rgba(25, 34, 46, 0.9);
    --line: rgba(255, 255, 255, 0.08);
    --text: #ecf3ff;
    --muted: #9fb0c5;
    --accent: #ff5b2e;
    --accent-2: #ffd166;
    --gold: #f5c451;
    --silver: #b8c4d4;
    --bronze: #d28b5f;
    --green: #39d98a;
    --red: #ef4444;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-lg: var(--shadow);
    --layer-background: 0;
    --layer-decoration: 1;
    --layer-content: 2;
    --layer-sticky: 20;
    --layer-dropdown: 100;
    --layer-nav: 1000;
    --layer-floating: 1100;
    --layer-guide-scrim: 1180;
    --layer-guide-highlight: 1190;
    --layer-widget: 1200;
    --layer-guide-launcher: 1240;
    --layer-guide: 1250;
    --layer-toast: 2600;
    --layer-modal: 9999;
    --layer-modal-priority: 100000;
    --duration-fast: 160ms;
    --duration-normal: 240ms;
    --ease-standard: ease;
    --nav-scroll-offset: 84px;
  }
}

}
@layer v1Runtime {
@layer reset {
  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
  }
}

@layer base {
  html,
  body {
    background: transparent;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
  }

  html {
    scroll-padding-top: var(--nav-scroll-offset);
  }

  body {
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: var(--layer-decoration);
    pointer-events: none;
    background:
      radial-gradient(circle at top left, rgba(255, 91, 46, 0.16), transparent 28%),
      radial-gradient(circle at top right, rgba(255, 209, 102, 0.12), transparent 24%);
  }

  body.monza-bg-page::after,
  body.track-bg-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: var(--layer-background);
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.12) 38%, rgba(8, 12, 18, 0.18) 100%),
      var(--page-track-background, url("https://asgracing.ru/assets/monza.jpg")) center center / cover no-repeat;
  }

  body.monza-bg-page .site-video-bg,
  body.track-bg-page .site-video-bg,
  body.lite-background .site-video-bg {
    display: none;
  }

  body.monza-bg-page .site-video-overlay,
  body.track-bg-page .site-video-overlay {
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.03) 0%, rgba(8, 12, 18, 0.06) 36%, rgba(8, 12, 18, 0.1) 100%);
  }

  body.lite-background .site-video-overlay {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.82) 0%, rgba(11, 15, 20, 0.88) 55%, rgba(11, 15, 20, 0.94) 100%);
  }

  .reveal-ready {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@layer layout {
  .top-nav,
  .container {
    position: relative;
    z-index: var(--layer-content);
  }

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

}
@layer v1Runtime {
@layer components {
  .site-video-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  
  .site-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.05);
    pointer-events: none;
  }
  
  .site-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(11, 15, 20, 0.45) 0%,
        rgba(11, 15, 20, 0.62) 55%,
        rgba(11, 15, 20, 0.82) 100%
      );
  }
  
  body > :not(.site-video-bg):not(.site-video-overlay):not(.bg-video-sound-toggle):not(script) {
    transition:
      opacity 0.4s ease,
      filter 0.4s ease;
  }
  
  body.background-audio-focus > :not(.site-video-bg):not(.site-video-overlay):not(.bg-video-sound-toggle):not(script) {
    opacity: 0.01;
    filter: blur(1.2px);
    pointer-events: none;
    user-select: none;
  }
  
  body.background-audio-focus .site-video-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(10, 14, 18, 0.08) 0%,
        rgba(10, 14, 18, 0.14) 55%,
        rgba(10, 14, 18, 0.22) 100%
      );
  }
  
  body.background-audio-focus .site-bg-video {
    transform: translate(-50%, -50%) scale(1.01);
    filter: saturate(1.08) contrast(1.04) brightness(1.02);
  }
  
  .bg-video-sound-toggle {
    position: fixed;
    top: 58%;
    right: clamp(10px, 1.8vw, 28px);
    z-index: var(--layer-floating);
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(356px, calc(100vw - 24px));
    padding: 14px 16px;
    border: 1px solid rgba(255, 198, 122, 0.42);
    border-right: 0;
    border-radius: 26px 0 0 26px;
    background:
      radial-gradient(circle at top left, rgba(255, 214, 135, 0.28), transparent 56%),
      linear-gradient(160deg, rgba(255, 113, 56, 0.94), rgba(18, 25, 34, 0.92) 68%);
    box-shadow:
      0 22px 54px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff8eb;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transform: translate3d(0, -50%, 0);
    transition:
      transform 0.24s ease,
      box-shadow 0.24s ease,
      border-color 0.24s ease,
      background 0.24s ease;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
  
  .bg-video-sound-toggle[hidden] {
    display: none !important;
  }
  
  .bg-video-sound-toggle::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 65%);
    z-index: -2;
  }
  
  .bg-video-sound-toggle::after {
    content: "";
    position: absolute;
    inset: auto 22px 11px 74px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 233, 194, 0.52), transparent 82%);
    opacity: 0.72;
  }
  
  .bg-video-sound-toggle:hover,
  .bg-video-sound-toggle:focus-visible {
    transform: translate3d(-6px, -50%, 0);
    box-shadow:
      0 26px 62px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
  
  .bg-video-sound-toggle:focus-visible {
    outline: 2px solid rgba(255, 231, 176, 0.85);
    outline-offset: 3px;
  }
  
  .bg-video-sound-toggle.is-active {
    border-color: rgba(114, 232, 191, 0.52);
    background:
      radial-gradient(circle at top left, rgba(103, 209, 255, 0.24), transparent 52%),
      linear-gradient(165deg, rgba(22, 167, 231, 0.92), rgba(16, 24, 33, 0.94) 74%);
  }
  
  .bg-video-sound-toggle-orbit {
    position: absolute;
    top: 50%;
    right: -28px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    transform: translateY(-50%);
    background:
      radial-gradient(circle, rgba(255, 232, 193, 0.32) 0%, rgba(255, 232, 193, 0.08) 38%, transparent 72%);
    opacity: 0.55;
    mix-blend-mode: screen;
    animation: bg-video-sound-orbit 8s linear infinite;
  }
  
  .bg-video-sound-toggle.is-active .bg-video-sound-toggle-orbit {
    opacity: 0.72;
  }
  
  .bg-video-sound-toggle-icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  
  .bg-video-sound-toggle-icon::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 14px;
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 244, 214, 0.8), rgba(255, 179, 71, 0.2) 48%, transparent 74%);
    opacity: 0.92;
  }
  
  .bg-video-sound-toggle-bar {
    position: relative;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff5d2, #ff9f45);
    box-shadow: 0 0 18px rgba(255, 179, 71, 0.42);
    transform-origin: 50% 100%;
    animation: bg-video-sound-bars 1.15s ease-in-out infinite;
  }
  
  .bg-video-sound-toggle-bar:nth-child(1) {
    height: 15px;
    animation-delay: -0.28s;
  }
  
  .bg-video-sound-toggle-bar:nth-child(2) {
    height: 24px;
    animation-delay: -0.08s;
  }
  
  .bg-video-sound-toggle-bar:nth-child(3) {
    height: 19px;
    animation-delay: -0.2s;
  }
  
  .bg-video-sound-toggle.is-active .bg-video-sound-toggle-bar {
    background: linear-gradient(180deg, #fff8d8, #67d1ff 45%, #39d98a 100%);
    box-shadow: 0 0 18px rgba(103, 209, 255, 0.34);
    animation-duration: 0.78s;
  }
  
  .bg-video-sound-toggle-copy {
    position: relative;
    display: grid;
    gap: 4px;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .bg-video-sound-toggle-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.15;
  }
  
  .bg-video-sound-toggle-note {
    display: block;
    max-width: 170px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 245, 229, 0.84);
  }
  
  .bg-video-volume {
    display: grid;
    grid-template-columns: auto minmax(84px, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    max-width: 188px;
  }
  
  .bg-video-volume-label,
  .bg-video-volume-value {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 245, 229, 0.82);
  }
  
  .bg-video-volume-slider {
    width: 100%;
    height: 18px;
    margin: 0;
    accent-color: #ffd166;
    cursor: pointer;
  }
  
  .bg-video-sound-toggle.is-active .bg-video-volume-slider {
    accent-color: #67d1ff;
  }
  
  .bg-video-playback-toggle {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0;
    min-width: 54px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 244, 214, 0.18);
    border-radius: 999px;
    background: rgba(13, 18, 25, 0.28);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }
  
  .bg-video-playback-toggle:hover,
  .bg-video-playback-toggle:focus-visible {
    border-color: rgba(255, 225, 170, 0.42);
    background: rgba(255, 255, 255, 0.08);
  }
  
  .bg-video-playback-toggle:focus-visible {
    outline: 2px solid rgba(255, 231, 176, 0.85);
    outline-offset: 2px;
  }
  
  .bg-video-playback-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #effcff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .bg-video-sound-toggle.is-disabled .bg-video-playback-toggle {
    border-color: rgba(255, 159, 69, 0.36);
  }
  
  .bg-video-sound-toggle.is-disabled .bg-video-playback-state {
    color: #fff2df;
  }
  
  .bg-video-sound-toggle.is-disabled .bg-video-volume {
    opacity: 0.56;
  }
  
  body.background-audio-focus .bg-video-sound-toggle {
    transform: translate3d(-6px, -50%, 0) scale(1.02);
  }
  
  @keyframes bg-video-sound-bars {
    0%,
    100% {
      transform: scaleY(0.62);
      opacity: 0.7;
    }
  
    50% {
      transform: scaleY(1.2);
      opacity: 1;
    }
  }
  
  @keyframes bg-video-sound-orbit {
    from {
      transform: translateY(-50%) rotate(0deg);
    }
  
    to {
      transform: translateY(-50%) rotate(360deg);
    }
  }
}

}
@layer v1Runtime {
@layer components {
  .top-nav {
    --top-nav-band-width: min(1440px, calc(100% - 16px));
    position: sticky;
    top: 0;
    width: 100%;
    z-index: var(--layer-nav);
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }
  
  .top-nav::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 50%;
    width: var(--top-nav-band-width);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background:
      linear-gradient(
        90deg,
        rgba(12, 17, 26, 0) 0%,
        rgba(12, 17, 26, 0.58) 14%,
        rgba(12, 17, 26, 0.94) 30%,
        rgba(12, 17, 26, 0.94) 70%,
        rgba(12, 17, 26, 0.58) 86%,
        rgba(12, 17, 26, 0) 100%
      );
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  
  .top-nav-inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 20px 10px;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "brand socials actions"
      "menu menu menu";
    justify-content: center;
    align-items: center;
    gap: 7px 12px;
  }
  
  .top-nav-brand {
    grid-area: brand;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  
  .top-nav-brand-logo {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    flex: 0 0 auto;
  }
  
  .top-nav-brand-text {
    display: inline-block;
  }
  
  .top-nav-center {
    grid-area: menu;
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    position: relative;
  }
  
  .top-nav-socials {
    grid-area: socials;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  
  .top-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
  }
  
  .top-nav-menu > [hidden] {
    display: none !important;
  }
  
  .top-nav-actions {
    grid-area: actions;
    display: flex;
    justify-self: end;
    justify-content: flex-end;
  }
  
  @media (min-width: 1680px) and (min-height: 900px) {
    .top-nav {
      --top-nav-band-width: min(1760px, calc(100% - 32px));
    }
  
    .top-nav-inner {
      max-width: none;
      width: 100%;
      grid-template-columns: auto auto 1fr auto;
      grid-template-areas: "brand socials . actions";
      padding: 10px 20px;
      gap: 10px 14px;
    }
  
    .top-nav-brand {
      justify-self: start;
      margin-right: 6px;
    }
  
    .top-nav-socials {
      justify-self: start;
    }
  
    .top-nav-center {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      justify-content: center;
      align-self: center;
      width: max-content;
      max-width: calc(100% - 760px);
      z-index: 2;
    }
  
    .top-nav-menu {
      width: auto;
      justify-content: center;
      gap: 6px;
    }
  
    .top-nav-actions {
      align-items: center;
      gap: 10px;
      margin-left: auto;
    }
  
    .top-nav-news-bell {
      margin-right: 0;
    }
  
    .top-nav-link-primary,
    .top-nav-link-secondary {
      padding: 6px 10px;
      font-size: 0.7rem;
    }
  
    .nav-social {
      min-width: 34px;
      min-height: 34px;
      padding: 7px;
    }
  
    .lang-switch {
      gap: 6px;
      padding: 5px;
    }
  
    .lang-btn {
      min-width: 52px;
      height: 40px;
      padding: 0 8px;
    }
  }
  
  .top-nav-more {
    position: relative;
    display: none;
  }
  
  .top-nav-more.is-visible {
    display: block;
  }
  
  .top-nav-more-toggle {
    gap: 8px;
  }
  
  .top-nav-more-icon {
    font-size: 1rem;
    line-height: 1;
  }
  
  .top-nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(12, 17, 26, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }
  
  .top-nav-more-menu[hidden] {
    display: none !important;
  }
  
  .top-nav-more-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #f4f8ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .top-nav-more-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 209, 102, 0.26);
  }
  
  .top-nav-group {
    position: relative;
    flex: 0 0 auto;
  }
  
  .top-nav-group-toggle {
    gap: 8px;
  }
  
  .top-nav-group-caret {
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.8;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  
  .top-nav-group.is-open .top-nav-group-caret {
    transform: rotate(180deg);
    opacity: 1;
  }
  
  .top-nav-group-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 32;
    min-width: 220px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(12, 17, 26, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }
  
  .top-nav-group-menu[hidden] {
    display: none !important;
  }
  
  .top-nav-group-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #f4f8ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }
  
  .top-nav-group-link:hover,
  .top-nav-group-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 209, 102, 0.26);
    transform: translateY(-1px);
  }
  
  .top-nav-group.is-current .top-nav-group-toggle,
  .top-nav-group.is-open .top-nav-group-toggle,
  .top-nav-group-link.is-current {
    border-color: rgba(255, 91, 46, 0.38);
    background:
      linear-gradient(180deg, rgba(255, 91, 46, 0.18), rgba(255, 255, 255, 0.03)),
      rgba(255, 91, 46, 0.08);
    color: #fff4ef;
  }
  
  .top-nav-group-link.is-current {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.18);
  }
  
  .top-nav-menu.has-nav-groups .top-nav-more,
  .top-nav-group ~ .top-nav-more {
    display: none !important;
  }
  
  .top-nav-link-primary,
  .top-nav-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
  }
  
  .top-nav-link-primary,
  .nav-link-primary,
  .top-nav .btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(255, 91, 46, 0.28);
  }
  
  .top-nav-link-primary:hover,
  .nav-link-primary:hover,
  .top-nav .btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 14px 30px rgba(255, 91, 46, 0.36);
  }
  
  .top-nav-link-secondary,
  .nav-link-secondary {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f4f8ff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 24px rgba(0, 0, 0, 0.18);
  }
  
  .top-nav-link-secondary:hover,
  .nav-link-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 209, 102, 0.42);
    color: #ffffff;
    box-shadow:
      0 0 0 1px rgba(255, 209, 102, 0.16),
      0 14px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
  }
  
  .top-nav-link-special,
  .top-nav-more-link-special {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.96), rgba(20, 184, 166, 0.88));
    border-color: rgba(134, 239, 172, 0.52);
    color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 12px 26px rgba(20, 184, 166, 0.26);
  }
  
  .top-nav-link-special:hover,
  .top-nav-more-link-special:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(45, 212, 191, 0.98));
    border-color: rgba(187, 247, 208, 0.7);
    box-shadow:
      0 0 0 1px rgba(187, 247, 208, 0.22),
      0 14px 30px rgba(20, 184, 166, 0.34);
  }
  
  .nav-social {
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.015em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }
  
  .nav-social.nav-social-discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.34);
  }
  
  .nav-social.nav-social-telegram {
    background: linear-gradient(135deg, #27a7e7, #168ac7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(39, 167, 231, 0.3);
  }
  
  .nav-social:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
  }
  
  .nav-social.nav-social-discord:hover {
    box-shadow: 0 16px 34px rgba(88, 101, 242, 0.42);
  }
  
  .nav-social.nav-social-telegram:hover {
    box-shadow: 0 16px 34px rgba(39, 167, 231, 0.38);
  }
  
  .nav-social.nav-social-tiktok {
    background: linear-gradient(135deg, #151515, #2b2b2b);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  }
  
  .nav-social.nav-social-tiktok:hover {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  }
  
  .nav-social.nav-social-youtube {
    background: linear-gradient(135deg, #ff2a23, #cc181e);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(204, 24, 30, 0.34);
  }
  
  .nav-social.nav-social-youtube:hover {
    box-shadow: 0 16px 34px rgba(204, 24, 30, 0.42);
  }
  
  .nav-social.nav-social-twitch {
    background: linear-gradient(135deg, #9146ff, #6f2cff);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(145, 70, 255, 0.34);
  }
  
  .nav-social.nav-social-twitch:hover {
    box-shadow: 0 16px 34px rgba(145, 70, 255, 0.42);
  }
  
  .social-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}

}
@layer v1Runtime {
@layer components {
  .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 16, 24, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    z-index: 3;
  }
  
  .lang-switch-floating {
    position: absolute;
    top: 10px;
    right: 24px;
  }
  
  .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 56px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
  }
  
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  th.sortable:focus-visible,
  tr.is-interactive-row:focus-visible {
    outline: 2px solid rgba(255, 209, 102, 0.92);
    outline-offset: 2px;
  }
  
  .lang-btn.active {
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 91, 46, 0.25);
  }
  
  .lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    line-height: 1;
  }
  
  .lang-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  }
}

}
@layer v1Runtime {
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 91, 46, 0.25);
  }
  
  .btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
  }
  
  /* Primary CTA in hero */
  .btn-today-stats,
  .btn-last-races {
    position: relative;
    width: auto;
    min-width: 260px;
    min-height: 104px;
    padding: 18px 20px;
    border-radius: 20px;
    align-self: flex-start;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text);
    border: 1px solid rgba(255, 184, 77, 0.26);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(255, 91, 46, 0.10));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 12px 28px rgba(255, 91, 46, 0.16);
  }
  
  .btn-today-stats:hover,
  .btn-last-races:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.18), rgba(255, 91, 46, 0.14));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 16px 34px rgba(255, 91, 46, 0.22);
  }
  
  /* Secondary hero CTA with highlighted accent border */
  .btn-driver-day {
    position: relative;
    width: auto;
    min-width: 260px;
    min-height: 104px;
    padding: 18px 20px;
    border-radius: 20px;
    align-self: flex-start;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text);
    border: 1px solid rgba(255, 184, 77, 0.26);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(255, 91, 46, 0.10));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 12px 28px rgba(255, 91, 46, 0.16);
  }
  
  .btn-driver-day:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.18), rgba(255, 91, 46, 0.14));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 16px 34px rgba(255, 91, 46, 0.22);
  }
  
  .hero-actions-stacked-mobile .btn-today-stats,
  .hero-actions-stacked-mobile .btn-last-races,
  .hero-actions-stacked-mobile .btn-driver-day {
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.08;
    letter-spacing: 0;
    border-color: rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      rgba(31, 37, 47, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 26px rgba(0, 0, 0, 0.16);
  }
  
  .hero-actions-stacked-mobile .btn-today-stats {
    color: #fff6e8;
    border-color: rgba(255, 186, 92, 0.36);
    background:
      radial-gradient(circle at top left, rgba(255, 209, 102, 0.3), transparent 42%),
      linear-gradient(135deg, rgba(255, 145, 48, 0.32), rgba(255, 91, 46, 0.16)),
      rgba(40, 32, 28, 0.84);
  }
  
  .hero-actions-stacked-mobile .btn-last-races,
  .hero-actions-stacked-mobile .btn-driver-day {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .hero-actions-stacked-mobile .btn-driver-day {
    display: grid;
    gap: 2px;
    align-content: center;
    justify-items: center;
    font-size: 0.78rem;
    overflow: hidden;
  }
  
  .driver-day-btn-label,
  .driver-day-btn-name {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .driver-day-btn-label {
    font-size: 0.66rem;
    line-height: 1.05;
    opacity: 0.82;
  }
  
  .driver-day-btn-name {
    font-size: 0.78rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  
  .hero-actions-stacked-mobile .btn:hover,
  .hero-actions-stacked-mobile .btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.4);
    background:
      radial-gradient(circle at top left, rgba(255, 209, 102, 0.22), transparent 40%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
      rgba(36, 40, 50, 0.86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 16px 32px rgba(0, 0, 0, 0.22);
  }
  
  /* Pulsing attention ring for primary CTA */
  .pulse-attention {
    animation: pulseAttention 2.1s infinite;
  }
  
  @keyframes pulseAttention {
    0% {
      box-shadow:
        0 0 0 0 rgba(255, 184, 77, 0.34),
        0 10px 30px rgba(255, 140, 0, 0.16);
    }
    70% {
      box-shadow:
        0 0 0 12px rgba(255, 184, 77, 0),
        0 10px 30px rgba(255, 140, 0, 0.16);
    }
    100% {
      box-shadow:
        0 0 0 0 rgba(255, 184, 77, 0),
        0 10px 30px rgba(255, 140, 0, 0.16);
    }
  }
}

}
@layer v1Runtime {
@layer components {
  .hero {
    padding: 10px 0 4px;
  }
  
  .hero-card {
    position: relative;
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
      linear-gradient(135deg, rgba(255, 91, 46, 0.12), rgba(255, 255, 255, 0.03)),
      var(--card);
    box-shadow: var(--shadow);
  }
  
  .hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    gap: 10px 12px;
    align-items: stretch;
  }
  
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
  }
  
  h1 {
    margin: 0 0 4px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }
  
  .hero-subtitle {
    max-width: min(100%, 1080px);
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
  }
  
  .hero-main-column {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    align-self: stretch;
  }
  
  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    padding-top: 0;
    margin-left: 0;
  }
  
  .hero-copy .eyebrow {
    margin-bottom: 8px;
  }
  
  .hero-hourly-promo {
    position: relative;
    overflow: hidden;
    grid-column: 2 / 3;
    grid-row: 1;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 209, 102, 0.34);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 91, 46, 0.14)),
      rgba(21, 19, 20, 0.92);
    box-shadow: 0 18px 38px rgba(255, 91, 46, 0.14);
  }
  
  .hero-hourly-promo-title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(255, 209, 102, 0.46);
    border-radius: 8px;
    background: rgba(255, 209, 102, 0.14);
    color: #ffd166;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 26px rgba(255, 209, 102, 0.18);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }
  
  .hero-hourly-promo-title:hover,
  .hero-hourly-promo-title:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 209, 102, 0.8);
    background: rgba(255, 209, 102, 0.22);
    color: #fff2bd;
  }
  
  .hero-hourly-promo-title:focus-visible {
    outline: 2px solid rgba(255, 209, 102, 0.62);
    outline-offset: 3px;
  }
  
  .hero-hourly-promo-title.pulse-attention {
    animation: pulseAttention 2.1s infinite, hourlyPromoBlink 1.35s ease-in-out infinite;
  }
  
  @keyframes hourlyPromoBlink {
    0%,
    100% {
      text-shadow: 0 0 10px rgba(255, 209, 102, 0.28);
    }
    50% {
      text-shadow:
        0 0 18px rgba(255, 209, 102, 0.78),
        0 0 34px rgba(255, 91, 46, 0.52);
    }
  }
  
  .hero-hourly-promo-note {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.35;
  }
  
  .hero-hourly-winner-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 82px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 91, 46, 0.08)),
      rgba(14, 18, 24, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 18px 38px rgba(0, 0, 0, 0.24);
  }
  
  .hero-hourly-winner-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -34px;
    width: 210px;
    height: 210px;
    background: url("https://asgracing.ru/assets/crown.png") center / contain no-repeat;
    opacity: 0.2;
    transform: rotate(12deg);
    pointer-events: none;
  }
  
  .hero-hourly-winner-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -48px auto;
    width: 210px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.22), transparent 70%);
    pointer-events: none;
  }
  
  .hero-hourly-winner-copy,
  .hero-hourly-winner-media {
    position: relative;
    z-index: 1;
  }
  
  .hero-hourly-winner-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  
  .hero-hourly-winner-label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .hero-hourly-winner-name {
    min-width: 0;
    margin-bottom: 0;
    color: var(--text);
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    font-weight: 950;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hero-hourly-winner-meta {
    min-width: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hero-hourly-winner-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
  }
  
  .hero-hourly-winner-car {
    position: absolute;
    right: -8px;
    bottom: -2px;
    width: min(190px, 46%);
    height: auto;
    max-height: 102px;
    object-fit: contain;
    opacity: 0.52;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.34));
  }
  
  .hero-hourly-card {
    --hero-hourly-track-photo: none;
    position: relative;
    grid-column: 2 / 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
    min-height: 100%;
    margin-inline: 0;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 209, 102, 0.26);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 193, 86, 0.14), rgba(255, 91, 46, 0.08)),
      rgba(36, 33, 38, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 18px 40px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  
  .hero-hourly-card:hover,
  .hero-hourly-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 24px 46px rgba(0, 0, 0, 0.28);
  }
  
  .hero-hourly-card:focus-visible {
    outline: 2px solid rgba(255, 209, 102, 0.55);
    outline-offset: 3px;
  }
  
  .hero-hourly-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      linear-gradient(120deg, rgba(8, 12, 18, 0.25) 0%, rgba(8, 12, 18, 0.25) 38%, rgba(8, 12, 18, 0.25) 100%),
      radial-gradient(circle at top right, rgba(255, 184, 77, 0.08), transparent 32%),
      var(--hero-hourly-track-photo);
    background-position: center, top right, center;
    background-size: cover, auto, cover;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  
  .hero-hourly-card > * {
    position: relative;
    z-index: 1;
  }
  
  .hero-hourly-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  
  .hero-hourly-eyebrow {
    margin: 0;
    color: #ffcc5c;
    font-size: 0.84rem;
  }
  
  .hero-hourly-meta {
    display: grid;
    gap: 10px;
  }
  
  .hero-hourly-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }
  
  .hero-hourly-meta-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  .hero-hourly-meta-value {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
  }
  
  .hero-hourly-meta-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }
  
  .hero-hourly-meta-time {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  
  .hero-hourly-card .btn.hero-hourly-btn {
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff8b2c, #ff5b2e);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(255, 91, 46, 0.28);
  }
  
  .hero-hourly-btn {
    align-self: stretch;
  }
  
  .hero-hourly-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .hero-hourly-btn.is-disabled {
    opacity: 0.75;
    pointer-events: none;
  }
  
  .hero-hourly-btn.is-voted {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.96), rgba(20, 184, 166, 0.88));
    color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 12px 26px rgba(20, 184, 166, 0.26);
  }
  
  .hero-hourly-btn.is-voted,
  .hero-hourly-btn:disabled,
  .hourly-modal-cta-btn.is-voted,
  .hourly-modal-cta-btn:disabled {
    cursor: default;
  }
  
  .hero-hourly-btn.is-voted:hover,
  .hero-hourly-btn:disabled:hover,
  .hourly-modal-cta-btn.is-voted:hover,
  .hourly-modal-cta-btn:disabled:hover {
    transform: none;
    filter: none;
  }
  
  .hero-hourly-cancel,
  .hourly-modal-cta-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 107, 107, 0.34);
    border-radius: 999px;
    background: rgba(180, 35, 35, 0.92);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  }
  
  .hero-hourly-cancel[hidden],
  .hourly-modal-cta-cancel[hidden] {
    display: none !important;
  }
  
  .hero-hourly-cancel:hover:not(:disabled),
  .hourly-modal-cta-cancel:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }
  
  .hero-hourly-cancel:disabled,
  .hourly-modal-cta-cancel:disabled {
    cursor: default;
    opacity: 0.84;
  }
  
  .hero-hourly-votes {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(8, 12, 18, 0.42);
    color: #f6f0dc;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    backdrop-filter: blur(10px);
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
  }
}

}
@layer v1Runtime {
@layer components {
  .hero-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    margin-top: 0;
    max-width: none;
  }
  
  .hero-actions.hero-actions-stacked-mobile {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.82fr) minmax(0, 1.36fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(54px, auto) minmax(74px, auto);
    grid-template-areas:
      "today races driver online online"
      "stats stats stats online online";
    gap: 8px;
    margin-top: 0;
    align-items: stretch;
    justify-content: flex-start;
  }
  
  .hero-hourly-promo,
  .hero-hourly-card {
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-actions.hero-actions-stacked-mobile .btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 54px;
    padding: 9px 12px;
    align-self: stretch;
    flex: 0 0 auto;
  }
  
  .hero-primary-actions {
    display: contents;
  }
  
  .btn-today-stats {
    grid-area: today;
  }
  
  .btn-last-races {
    grid-area: races;
  }
  
  .btn-driver-day {
    grid-area: driver;
  }
  
  .support-inline-widget {
    grid-area: support;
    min-width: 0;
  }
  
  .support-hourly-widget {
    grid-area: auto;
    grid-column: 2 / 3;
    grid-row: 2;
    align-self: stretch;
  }
  
  .support-inline-widget.support-center-widget {
    grid-area: auto;
    min-height: 0;
  }
  
  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: minmax(0, 1fr) minmax(156px, auto) 82px;
    grid-template-rows: minmax(66px, auto);
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px 14px;
  }
  
  .support-inline-widget.support-center-widget .support-widget-copy-block {
    gap: 6px;
  }
  
  .support-inline-widget.support-center-widget .support-widget-title {
    font-size: 0.95rem;
  }
  
  .support-inline-widget.support-center-widget .support-widget-copy {
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
  
  .support-inline-widget.support-center-widget .support-widget-btn {
    min-height: 44px;
    font-size: 0.9rem;
    justify-self: end;
    min-width: 156px;
    animation-duration: 2.4s;
    box-shadow:
      0 16px 30px rgba(255, 91, 46, 0.34),
      0 0 0 4px rgba(255, 163, 86, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
  
  .support-inline-widget.support-center-widget .support-widget-qr-shell {
    width: 70px;
    align-self: center;
    padding: 2px;
    border-radius: 8px;
  }
  
  .support-inline-widget.support-center-widget .support-widget-qr {
    border-radius: 5px;
  }
  
  .support-inline-widget .support-widget-card {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    border-color: rgba(255, 170, 82, 0.38);
    background:
      radial-gradient(circle at 12% 0%, rgba(255, 209, 102, 0.2), transparent 36%),
      linear-gradient(145deg, rgba(43, 26, 16, 0.96), rgba(18, 19, 23, 0.96));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 38px rgba(0, 0, 0, 0.22);
  }
  
  .support-inline-widget .support-widget-copy-block {
    align-content: start;
    gap: 5px;
    min-width: 0;
  }
  
  .support-inline-widget .support-widget-title {
    font-size: 0.76rem;
    line-height: 1.08;
    letter-spacing: 0;
  }
  
  .support-inline-widget .support-widget-qr-shell {
    grid-column: auto;
    grid-row: auto;
    align-self: end;
    justify-self: center;
    width: 84px;
    padding: 3px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 229, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 12px 24px rgba(0, 0, 0, 0.22);
  }
  
  .support-inline-widget .support-widget-qr {
    width: 100%;
    padding: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
  }
  
  .support-inline-widget .support-widget-copy {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 225, 199, 0.88);
    font-size: 0.64rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  
  .support-inline-widget .support-widget-btn {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    line-height: 1.12;
    box-shadow:
      0 12px 22px rgba(255, 91, 46, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  .support-inline-widget .support-widget-note {
    display: none;
  }
  
  .hero-online-card {
    grid-area: online;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 136px;
    padding: 10px 14px 9px;
    border: 1px solid rgba(99, 169, 255, 0.18);
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(99, 169, 255, 0.16), transparent 44%),
      linear-gradient(180deg, rgba(23, 31, 44, 0.94), rgba(16, 22, 31, 0.9));
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }
  
  .hero-online-card:hover,
  .hero-online-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 179, 71, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  }
  
  .hero-online-card:focus-visible {
    outline: 2px solid rgba(255, 179, 71, 0.68);
    outline-offset: 2px;
  }
  
  .hero-online-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
  }
  
  .hero-online-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(210, 226, 247, 0.68);
  }
  
  .hero-online-range {
    font-size: 12px;
    white-space: nowrap;
    color: rgba(230, 239, 255, 0.78);
  }
  
  .hero-online-chart-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
    align-items: end;
    flex: 1;
    min-height: 0;
  }
  
  .hero-online-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
    min-height: 100px;
    padding-top: 8px;
  }
  
  .hero-online-bar-group {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
  }
  
  .hero-online-bar-stage {
    display: flex;
    align-items: end;
    justify-content: center;
    width: 100%;
    min-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .hero-online-bar {
    width: 100%;
    max-width: 24px;
    min-height: 0;
    align-self: end;
    border-radius: 999px 999px 5px 5px;
    background: linear-gradient(180deg, #ffd166 0%, #ff9f45 46%, #ff6d35 100%);
    box-shadow: 0 8px 16px rgba(255, 125, 57, 0.22);
  }
  
  .hero-online-date {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    color: rgba(210, 226, 247, 0.56);
  }
  
  .hero-online-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 100px;
    padding: 8px 0 19px;
    font-size: 10px;
    line-height: 1;
    color: rgba(210, 226, 247, 0.5);
  }
  
  .hero-online-empty {
    grid-column: 1 / -1;
    align-self: center;
    justify-self: center;
    font-size: 13px;
    color: var(--muted);
  }
  
  .hero-funnel-card {
    display: grid;
    gap: 8px;
    margin-top: 6px;
  }
  
  .hero-copy h1 {
    font-size: clamp(26px, 3.4vw, 42px);
  }
  
  .hero-funnel-title {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
  }
  
  .hero-funnel-note {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
  }
  
  .hero-funnel-link {
    font-weight: 900;
    text-decoration: none;
    transition: color 0.18s ease, text-shadow 0.18s ease;
  }
  
  .hero-funnel-link:hover,
  .hero-funnel-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  .hero-funnel-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
  }
  
  .hero-funnel-link-telegram {
    color: #27a7e7;
    text-shadow: 0 0 18px rgba(39, 167, 231, 0.24);
  }
  
  .hero-funnel-link-telegram:hover,
  .hero-funnel-link-telegram:focus-visible {
    color: #6ed0ff;
    text-shadow: 0 0 22px rgba(39, 167, 231, 0.42);
  }
  
  .hero-funnel-link-discord {
    color: #5865f2;
    text-shadow: 0 0 18px rgba(88, 101, 242, 0.24);
  }
  
  .hero-funnel-link-discord:hover,
  .hero-funnel-link-discord:focus-visible {
    color: #8d96ff;
    text-shadow: 0 0 22px rgba(88, 101, 242, 0.42);
  }
  
  .hero-funnel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    min-height: 48px;
    padding-inline: 18px;
  }
}

.hero-funnel-link-sr { color: rgb(143 255 120); }
.hero-funnel-link-elo { color: rgb(216 180 254); }
#safety-about, #elo-about { scroll-margin-top: 110px; }
html { scroll-behavior: smooth; }

}
@layer v1Runtime {
@layer components {
  .elo-cat-1 {
    --elo-bg: linear-gradient(135deg, rgba(196, 169, 255, 0.94), rgba(137, 104, 218, 0.82));
    --elo-border: rgba(213, 194, 255, 0.66);
    --elo-fg: #171124;
    --elo-accent: #4b2c8a;
    --elo-color: #c4a9ff;
    --elo-color-rgb: 196, 169, 255;
    --elo-text-color: #171124;
  }

  .elo-cat-2 {
    --elo-bg: linear-gradient(135deg, rgba(213, 238, 255, 0.95), rgba(132, 182, 218, 0.86));
    --elo-border: rgba(216, 244, 255, 0.72);
    --elo-fg: #102232;
    --elo-accent: #0b536e;
    --elo-color: #d5eeff;
    --elo-color-rgb: 213, 238, 255;
    --elo-text-color: #102232;
  }

  .elo-cat-3 {
    --elo-bg: linear-gradient(135deg, rgba(255, 214, 128, 0.86), rgba(196, 137, 45, 0.72));
    --elo-border: rgba(255, 215, 126, 0.56);
    --elo-fg: #20160a;
    --elo-accent: #6a3d00;
    --elo-color: #ffd680;
    --elo-color-rgb: 255, 214, 128;
    --elo-text-color: #20160a;
  }

  .elo-cat-4 {
    --elo-bg: linear-gradient(135deg, rgba(184, 205, 230, 0.8), rgba(88, 121, 158, 0.62));
    --elo-border: rgba(202, 223, 244, 0.42);
    --elo-fg: #f6fbff;
    --elo-accent: #dcecff;
    --elo-color: #7895b7;
    --elo-color-rgb: 120, 149, 183;
    --elo-text-color: #f6fbff;
  }

  .elo-cat-5 {
    --elo-bg: linear-gradient(135deg, rgba(205, 127, 50, 0.86), rgba(124, 73, 34, 0.72));
    --elo-border: rgba(226, 153, 79, 0.48);
    --elo-fg: #fff8ee;
    --elo-accent: #ffe0b6;
    --elo-color: #a96631;
    --elo-color-rgb: 169, 102, 49;
    --elo-text-color: #fff8ee;
  }

  .elo-cat-6 {
    --elo-bg: linear-gradient(135deg, rgba(239, 97, 97, 0.68), rgba(113, 52, 73, 0.62));
    --elo-border: rgba(255, 139, 139, 0.34);
    --elo-fg: #fff5f5;
    --elo-accent: #ffd6d6;
    --elo-color: #a94f5b;
    --elo-color-rgb: 169, 79, 91;
    --elo-text-color: #fff5f5;
  }

  .sr-cat-A {
    --sr-bg: linear-gradient(135deg, rgba(89, 218, 154, 0.9), rgba(29, 134, 96, 0.74));
    --sr-border: rgba(127, 246, 183, 0.58);
    --sr-fg: #071c13;
    --sr-accent: #06442b;
    --sr-color: #59da9a;
    --sr-text-color: #071c13;
  }

  .sr-cat-B {
    --sr-bg: linear-gradient(135deg, rgba(255, 213, 112, 0.9), rgba(188, 129, 43, 0.76));
    --sr-border: rgba(255, 220, 126, 0.54);
    --sr-fg: #241707;
    --sr-accent: #7a4300;
    --sr-color: #d0a244;
    --sr-text-color: #241707;
  }

  .sr-cat-C {
    --sr-bg: linear-gradient(135deg, rgba(255, 118, 104, 0.86), rgba(153, 54, 62, 0.72));
    --sr-border: rgba(255, 150, 139, 0.5);
    --sr-fg: #fff6f5;
    --sr-accent: #ffe3df;
    --sr-color: #b84f57;
    --sr-text-color: #fff6f5;
  }
}


@layer components {
  .hero-side {
    display: grid;
    grid-area: stats;
    grid-row: auto;
    gap: 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  
  .hero-side-compact {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(118px, 0.68fr);
    gap: 8px;
  }
  
  .hero-online-card-inline {
    min-height: 136px;
    justify-content: flex-start;
  }
  
  .hero-online-card-inline .hero-online-chart,
  .hero-online-card-inline .hero-online-scale {
    height: 100%;
    min-height: 0;
  }
  
  .hero-online-card-inline .hero-online-chart {
    gap: 7px;
    padding-top: 0;
  }
  
  .hero-online-card-inline .hero-online-head {
    margin-bottom: 0;
  }
  
  .hero-online-card-inline .hero-online-chart-wrap {
    flex: 1 1 auto;
    align-items: stretch;
  }
  
  .mini-stat {
    min-height: 58px;
    padding: 7px 10px 5px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
      rgba(16, 22, 31, 0.88);
    margin-top: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }
  
  .mini-stat-bestlap {
    min-height: 58px;
    border-color: rgba(172, 97, 255, 0.28);
    background:
      radial-gradient(circle at top left, rgba(173, 82, 255, 0.24), transparent 42%),
      linear-gradient(180deg, rgba(25, 21, 38, 0.96), rgba(15, 20, 29, 0.92));
  }
  
  .hero-side-compact .mini-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-content: center;
    align-items: center;
    min-height: 58px;
    padding: 8px 12px;
  }
  
  .hero-side-compact .mini-label {
    grid-column: 1;
    margin: 0;
  }
  
  .hero-side-compact .mini-value {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: center;
    text-align: right;
    white-space: nowrap;
  }
  
  .hero-side-compact .mini-note {
    grid-column: 1 / -1;
    margin: 0;
    align-self: center;
  }
  
  .hero-side-compact .mini-stat-bestlap .mini-value {
    font-size: 1.16rem;
  }
  
  .hero-side-compact .mini-stat-drivers-count {
    align-content: center;
    grid-template-rows: auto auto;
  }
  
  .hero-side-compact .mini-stat-drivers-count .mini-label,
  .hero-side-compact .mini-stat-drivers-count .mini-value {
    align-self: center;
  }
  
  .hero-side-compact #drivers-count {
    font-size: 1.18rem;
  }
  
  .mini-stat:hover,
  .driver-stat-card:hover,
  .driver-highlight-card:hover,
  .race-summary-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 209, 102, 0.2);
    background: rgba(255, 255, 255, 0.06);
  }
  
  .mini-label {
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(218, 229, 245, 0.62);
  }
  
  .mini-value {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.05;
  }
  
  .mini-note {
    font-size: 10px;
    line-height: 1.16;
    color: rgba(218, 229, 245, 0.68);
  }
  
  .mini-stat-bestlap {
    min-height: 86px;
  }
  
  .hero-stats-row {
    display: contents;
  }
  
  .hero-top3-panel {
    min-width: 0;
    align-self: end;
  }
  
  .cards-top3.cards-top3-hero {
    gap: 8px;
  }
  
  .cards-top3-hero .pilot-card {
    min-height: 0;
    padding: 9px 10px;
    border-radius: 14px;
    box-shadow: none;
  }
  
  .cards-top3-hero .pilot-topline {
    gap: 6px;
    margin-bottom: 5px;
  }
  
  .cards-top3-hero .pilot-rank {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .cards-top3-hero .pilot-rank-wrap {
    gap: 4px;
  }
  
  .cards-top3-hero .pilot-name {
    font-size: 14px;
  }
  
  .cards-top3-hero .pilot-topline-car {
    width: 46px;
    height: 28px;
  }
  
  .cards-top3-hero .pilot-card .muted {
    font-size: 11px;
    line-height: 1.2;
  }
  
  .cards-top3-hero .pilot-lap-line {
    gap: 6px;
  }
  
  .cards-top3-hero .pilot-meta {
    gap: 5px;
    margin-top: 7px;
  }
  
  .cards-top3-hero .meta-box {
    padding: 5px 6px;
    border-radius: 10px;
  }
  
  .cards-top3-hero .meta-label {
    margin-bottom: 2px;
    font-size: 9px;
  }
  
  .cards-top3-hero .meta-value {
    font-size: 13px;
  }
  
  .hero-card-page {
    display: block;
  }
  
  .cars-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(240px, 0.8fr);
    gap: 18px;
    align-items: start;
  }
  
  .cars-hero-copy-card {
    display: grid;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      rgba(15, 19, 26, 0.44);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(8, 11, 17, 0.18);
  }
  
  .cars-hero-card .page-hero-copy {
    display: grid;
    gap: 12px;
    align-content: start;
  }
  
  .cars-hero-card .page-hero-subtitle {
    max-width: 760px;
  }
  
  .page-hero-copy .hero-subtitle {
    margin-bottom: 0;
  }
  
  .page-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }
  
  .cars-hero-spotlight {
    display: grid;
    gap: 12px;
    min-height: 100%;
    margin-top: 0;
    padding: 16px 18px;
    align-self: start;
  }
  
  .cars-hero-spotlight-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  
  .cars-hero-spotlight-image {
    width: min(100%, 240px);
    height: auto;
    max-height: 132px;
    object-fit: contain;
  }
  
  .cars-hero-spotlight-name {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
  }
  
  .cars-hero-spotlight-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  
  .cars-hero-spotlight-stat {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }
  
  .cars-hero-spotlight-stat-label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
  }
  
  .cars-hero-spotlight-stat-value {
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
  }
  
  @media (max-width: 900px) {
    .cars-hero-card {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 640px) {
    .page-hero-stats,
    .cars-hero-spotlight-meta {
      grid-template-columns: 1fr;
    }
  }
  
  .driver-hero-card{padding:18px 20px}.driver-hero-heading{min-width:0}

  .driver-hero-mainline{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:clamp(12px,1.25vw,18px);min-width:0}

  .driver-hero-copy{min-width:0}

  .driver-steam-portrait{position:relative;display:grid;place-items:center;width:clamp(72px,6vw,88px);aspect-ratio:1;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:clamp(18px,1.5vw,22px);background:radial-gradient(circle at 26% 24%,rgba(96,174,255,.2),transparent 42%),linear-gradient(145deg,rgba(24,42,62,.96),rgba(8,13,20,.98));box-shadow:0 18px 42px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.1)}
  .driver-steam-portrait[hidden]{display:none}

  .driver-steam-portrait-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}.driver-steam-portrait-image[hidden]{display:none}

  .driver-steam-portrait-fallback{color:rgba(224,239,255,.84);font-size:clamp(.62rem,.8vw,.76rem);font-weight:900;letter-spacing:.1em;line-height:1;text-indent:.1em;text-shadow:0 2px 12px rgba(86,164,230,.42)}

  .driver-title-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .driver-title-primary{display:flex;align-items:center;gap:10px;min-width:0}
  
  #driver-page-name{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;width:100%;margin:0;font-size:clamp(2rem,4vw,3.1rem);line-height:1}

  .driver-title-primary{grid-column:1;grid-row:1}.driver-hero-ratings{grid-column:1;grid-row:2}.driver-title-affiliations{grid-column:2;grid-row:1/3;display:grid;align-self:center;gap:6px;width:300px;font:600 12px/1.35 Inter,Arial,sans-serif;letter-spacing:0}
  .driver-title-affiliation{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;align-items:center}
  .driver-title-affiliation-label{color:var(--muted);font-size:11px;font-weight:500}.driver-title-affiliation-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.driver-title-affiliation-value .driver-link{display:block;color:var(--text)}

  .driver-steam-portrait + .driver-hero-copy{grid-column:2}.driver-steam-portrait[hidden] + .driver-hero-copy{grid-column:1/-1}

  .driver-hero-heading > .hero-subtitle{margin:8px 0 0 calc(clamp(72px,6vw,88px) + clamp(12px,1.25vw,18px));font-size:.9rem;line-height:1.35}

  .driver-hero-ratings{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}

  .driver-hero-ratings .elo-badge,.driver-hero-ratings .driver-rank-pill,.driver-hero-ratings .driver-race-number-pill{margin-left:0}

  .driver-race-number-pill{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:40px;box-sizing:border-box;padding:0 14px;border:1px solid rgba(244,183,64,.55);border-radius:999px;background:#f4b740;color:#191205;font-size:.95rem;font-weight:950;line-height:1}

  @media (max-width:760px){.driver-steam-portrait{width:clamp(60px,16vw,72px);border-radius:18px}.driver-hero-ratings{align-items:flex-start}}
  
  .driver-rank-pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);font-size:.8rem;font-weight:900;letter-spacing:.02em;line-height:1;white-space:nowrap;margin-left:0;color:var(--text)}
  
  .driver-rank-label{color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}

  .driver-hero-ratings .elo-badge{min-height:32px;padding:0 10px;font-size:.8rem}
  
  .driver-rank-value{color:inherit}
  
  .driver-rank-pill.rank-1{color:var(--gold);border-color:rgba(245,196,81,.34);background:rgba(245,196,81,.12)}
  
  .driver-rank-pill.rank-2 {
    color: var(--silver);
    border-color: rgba(184, 196, 212, 0.34);
    background: rgba(184, 196, 212, 0.12);
  }
  
  .driver-rank-pill.rank-3 {
    color: var(--bronze);
    border-color: rgba(210, 139, 95, 0.34);
    background: rgba(210, 139, 95, 0.12);
  }
  
  .driver-rank-pill.rank-default {
    color: #e8eef8;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .elo-badge {
    --elo-bg: rgba(255, 255, 255, 0.06);
    --elo-border: rgba(255, 255, 255, 0.16);
    --elo-fg: var(--text);
    --elo-accent: var(--accent-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--elo-border);
    border-radius: 999px;
    background: var(--elo-bg);
    color: var(--elo-fg);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  
  .elo-badge:hover,
  .elo-badge:focus-visible {
    transform: translateY(-1px);
    border-color: var(--elo-accent);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  
  .elo-badge-compact {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
  
  .elo-badge-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--elo-accent);
    background: rgba(255, 255, 255, 0.12);
  }
  
  .elo-badge-value {
    color: inherit;
  }
  
  .sr-badge {
    --sr-bg: rgba(255, 255, 255, 0.06);
    --sr-border: rgba(255, 255, 255, 0.16);
    --sr-fg: var(--text);
    --sr-accent: #78e6b0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sr-border);
    border-radius: 999px;
    background: var(--sr-bg);
    color: var(--sr-fg);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  
  .sr-badge:hover,
  .sr-badge:focus-visible {
    transform: translateY(-1px);
    border-color: var(--sr-accent);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  
  .sr-badge-compact {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
  
  .top-nav-link-championship,
  .top-nav-more-link-championship {
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.96), rgba(168, 85, 247, 0.92));
    border-color: rgba(216, 180, 254, 0.6);
    color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 12px 26px rgba(126, 34, 206, 0.28);
  }
  
  .sr-badge-rank {
    display: contents;
    color: var(--sr-accent);
  }
  
  .sr-badge-value,
  .sr-badge-delta {
    color: inherit;
  }
  
  .sr-badge-delta.positive {
    color: #27ff86;
  }
  
  .sr-badge-delta.negative {
    color: #ff4f5e;
  }
  
  .safety-row.sr-cat-A td {
    background: rgba(89, 218, 154, 0.035);
  }
  
  .safety-row.sr-cat-B td {
    background: rgba(255, 213, 112, 0.035);
  }
  
  .safety-row.sr-cat-C td {
    background: rgba(255, 118, 104, 0.04);
  }
  
  .driver-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }
  
  .driver-stat-card,
  .driver-highlight-card {
    min-height: 40px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
  
  .driver-stat-label,
  .driver-highlight-label,
  .driver-stat-note {
    font-size: 11px;
    line-height: 1.25;
    color: var(--muted);
  }
  
  .driver-stat-value,
  .driver-highlight-value {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
  }
  
  .driver-stat-badge,
  .driver-highlight-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .driver-safety-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
  }

  .driver-safety-column {
    min-width: 0;
    padding: 12px 16px;
  }

  .driver-safety-column + .driver-safety-column {
    border-inline-start: 1px solid var(--line);
  }

  .driver-safety-badge-slot,
  .driver-strikes {
    display: inline-flex;
    align-items: center;
  }

  .driver-strikes {
    gap: 5px;
    flex: 0 0 auto;
  }

  .driver-safety-warnings .driver-highlight-value {
    flex-wrap: nowrap;
  }

  .driver-strike-dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.16);
  }

  .driver-strike-dot.is-active {
    border-color: #ff6977;
    background: #ff4f5e;
    box-shadow: 0 0 8px rgba(255, 79, 94, 0.4);
  }
  
  .stat-with-trend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .driver-stat-mainline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  
  .driver-stat-side {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
  }
  
  .driver-stat-note {
    margin-top: 4px;
  }
  
  .driver-stat-meta {
    margin-top: 5px;
    color: rgba(210, 226, 247, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
  }
  
  .driver-stat-bestlap-mainline {
    align-items: center;
  }
  
  .driver-stat-value-bestlap {
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.24);
  }
  
  .driver-stat-bestlap-car {
    max-width: 46%;
    overflow: hidden;
    color: rgba(232, 221, 255, 0.78);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .driver-stat-label-with-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  
  .driver-stat-track-select {
    max-width: 128px;
    min-width: 86px;
    height: 26px;
    border: 1px solid rgba(216, 180, 254, 0.34);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(33, 23, 48, 0.95), rgba(18, 24, 34, 0.94));
    color: var(--text);
    color-scheme: dark;
    padding: 0 22px 0 9px;
    font-size: 0.72rem;
    font-weight: 800;
    outline: none;
  }
  
  .driver-stat-track-select:focus {
    border-color: rgba(216, 180, 254, 0.78);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
  }
  
  .driver-stat-track-select option {
    background: #111821;
    color: var(--text);
    font-weight: 700;
  }
  
  .driver-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }
  
  .form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    margin-right: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    font-weight: 800;
  }
  
  .empty-inline {
    color: var(--muted);
  }
  
  .driver-penalties-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  
  .driver-penalty-card {
    overflow: hidden;
  }
  
  .driver-penalty-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
  }
  
  .driver-penalty-list {
    padding: 12px 16px 16px;
  }
  
  .penalty-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .penalty-item:last-child {
    border-bottom: none;
  }
  
  .penalty-name {
    color: var(--text);
  }
  
  .penalty-value {
    color: var(--accent-2);
    font-weight: 800;
  }
  
  .server-status-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .server-status-wrap-total {
    align-items: baseline;
  }
  
  .server-total-label {
    font-size: 13px;
    font-weight: 700;
    color: #edf2ff;
  }
  
  .server-status {
    font-weight: 600;
  }
  
  .server-status.online {
    color: #22c55e;
  }
  
  .server-status.offline {
    color: #ef4444;
  }
  
  .server-status.degraded {
    color: #f59e0b;
  }
  
  .server-players {
    opacity: 0.8;
    font-size: 14px;
  }
  
  .server-sticky-widget {
    position: fixed;
    top: 106px;
    right: 22px;
    z-index: var(--layer-floating);
    width: min(190px, calc(100vw - 44px));
    display: grid;
    gap: 7px;
  }
  
  .server-sticky-head {
    padding: 0 2px;
  }
  
  .server-sticky-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(237, 242, 255, 0.78);
  }
  
  .server-sticky-cards {
    display: grid;
    gap: 7px;
  }
  
  .server-sticky-card {
    --server-card-bg: none;
    position: relative;
    overflow: hidden;
    min-height: 76px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(8, 12, 19, 0.165), rgba(8, 12, 19, 0.585)),
      var(--server-card-bg);
    background-position: center;
    background-size: cover;
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.24),
      0 8px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
  }

  .server-sticky-card-main {
    --server-card-bg: url("https://asgracing.ru/assets/main.jpg");
  }

  .server-sticky-card-monza {
    --server-card-bg: url("https://asgracing.ru/assets/monza.jpg");
  }

  .server-sticky-card-sunset {
    --server-card-bg: url("https://asgracing.ru/assets/sunset.jpg");
  }

  .server-sticky-card-spa {
    --server-card-bg: url("https://asgracing.ru/assets/spa.jpg");
  }

  .server-sticky-card-nurburgring {
    --server-card-bg: url("https://asgracing.ru/assets/nurburgring.jpg");
  }

  .server-sticky-card-nurburgring24h {
    --server-card-bg: url("https://asgracing.ru/assets/nurburgring_24h.jpg");
  }

  .server-sticky-card-silverstone {
    --server-card-bg: url("https://asgracing.ru/assets/silverstone.jpg");
  }
  
  .server-sticky-card-clickable {
    cursor: pointer;
  }
  
  .server-sticky-card-clickable::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }
  
  .server-sticky-card-clickable:hover::after,
  .server-sticky-card-clickable:focus-visible::after {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 3px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .server-sticky-card-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
      linear-gradient(180deg, rgba(8, 12, 19, 0.06), rgba(8, 12, 19, 0.3));
  }
  
  .server-sticky-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    padding: 10px 12px;
  }
  
  .server-sticky-card-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
  
  .server-sticky-card-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  
  .server-sticky-card-status .server-status {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  
  .server-sticky-card-status .server-players {
    font-size: 0.98rem;
    font-weight: 900;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  }
  
  .server-session-mini {
    font-size: 0.68em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
  }
  
  .server-sticky-actions {
    display: grid;
    gap: 6px;
  }
  
  .server-connect-btn,
  .server-connect-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    transition:
      transform 0.18s ease,
      background 0.18s ease,
      opacity 0.18s ease;
  }
  
  .server-connect-btn {
    border: 1px solid rgba(255, 209, 102, 0.48);
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.92), rgba(255, 91, 46, 0.92));
    color: #101418;
    box-shadow: 0 10px 22px rgba(255, 91, 46, 0.22);
  }
  
  .server-connect-help {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(236, 243, 255, 0.9);
  }
  
  .server-connect-btn:hover,
  .server-connect-btn:focus-visible,
  .server-connect-help:hover,
  .server-connect-help:focus-visible {
    transform: translateY(-1px);
  }
  
  .server-connect-btn.is-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.58;
    filter: grayscale(0.35);
  }
}

}
@layer v1Runtime {
@layer components {
  .elo-cat-1 {
    --elo-bg: linear-gradient(135deg, rgba(196, 169, 255, 0.94), rgba(137, 104, 218, 0.82));
    --elo-border: rgba(213, 194, 255, 0.66);
    --elo-fg: #171124;
    --elo-accent: #4b2c8a;
    --elo-color: #c4a9ff;
    --elo-color-rgb: 196, 169, 255;
    --elo-text-color: #171124;
  }

  .elo-cat-2 {
    --elo-bg: linear-gradient(135deg, rgba(213, 238, 255, 0.95), rgba(132, 182, 218, 0.86));
    --elo-border: rgba(216, 244, 255, 0.72);
    --elo-fg: #102232;
    --elo-accent: #0b536e;
    --elo-color: #d5eeff;
    --elo-color-rgb: 213, 238, 255;
    --elo-text-color: #102232;
  }

  .elo-cat-3 {
    --elo-bg: linear-gradient(135deg, rgba(255, 214, 128, 0.86), rgba(196, 137, 45, 0.72));
    --elo-border: rgba(255, 215, 126, 0.56);
    --elo-fg: #20160a;
    --elo-accent: #6a3d00;
    --elo-color: #ffd680;
    --elo-color-rgb: 255, 214, 128;
    --elo-text-color: #20160a;
  }

  .elo-cat-4 {
    --elo-bg: linear-gradient(135deg, rgba(184, 205, 230, 0.8), rgba(88, 121, 158, 0.62));
    --elo-border: rgba(202, 223, 244, 0.42);
    --elo-fg: #f6fbff;
    --elo-accent: #dcecff;
    --elo-color: #7895b7;
    --elo-color-rgb: 120, 149, 183;
    --elo-text-color: #f6fbff;
  }

  .elo-cat-5 {
    --elo-bg: linear-gradient(135deg, rgba(205, 127, 50, 0.86), rgba(124, 73, 34, 0.72));
    --elo-border: rgba(226, 153, 79, 0.48);
    --elo-fg: #fff8ee;
    --elo-accent: #ffe0b6;
    --elo-color: #a96631;
    --elo-color-rgb: 169, 102, 49;
    --elo-text-color: #fff8ee;
  }

  .elo-cat-6 {
    --elo-bg: linear-gradient(135deg, rgba(239, 97, 97, 0.68), rgba(113, 52, 73, 0.62));
    --elo-border: rgba(255, 139, 139, 0.34);
    --elo-fg: #fff5f5;
    --elo-accent: #ffd6d6;
    --elo-color: #a94f5b;
    --elo-color-rgb: 169, 79, 91;
    --elo-text-color: #fff5f5;
  }

  .sr-cat-A {
    --sr-bg: linear-gradient(135deg, rgba(89, 218, 154, 0.9), rgba(29, 134, 96, 0.74));
    --sr-border: rgba(127, 246, 183, 0.58);
    --sr-fg: #071c13;
    --sr-accent: #06442b;
    --sr-color: #59da9a;
    --sr-text-color: #071c13;
  }

  .sr-cat-B {
    --sr-bg: linear-gradient(135deg, rgba(255, 213, 112, 0.9), rgba(188, 129, 43, 0.76));
    --sr-border: rgba(255, 220, 126, 0.54);
    --sr-fg: #241707;
    --sr-accent: #7a4300;
    --sr-color: #d0a244;
    --sr-text-color: #241707;
  }

  .sr-cat-C {
    --sr-bg: linear-gradient(135deg, rgba(255, 118, 104, 0.86), rgba(153, 54, 62, 0.72));
    --sr-border: rgba(255, 150, 139, 0.5);
    --sr-fg: #fff6f5;
    --sr-accent: #ffe3df;
    --sr-color: #b84f57;
    --sr-text-color: #fff6f5;
  }
}


@layer components {
  .clubs-teams-rating-value {
    display: inline-flex;
    min-width: 48px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #fff);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .clubs-teams-rating-value[class*="elo-cat-"] {
    border-color: var(--elo-border);
    background: var(--elo-bg);
    color: var(--elo-fg);
  }

  .clubs-teams-rating-value[class*="sr-cat-"] {
    border-color: var(--sr-border);
    background: var(--sr-bg);
    color: var(--sr-fg);
  }
}

}
@layer v1Runtime {
@layer components {
  .server-sticky-widget {
    top: calc(var(--top-nav-height, 64px) + 18px);
    right: 18px;
    width: min(310px, calc(100vw - 36px));
    max-height: calc(100vh - var(--top-nav-height, 64px) - 42px);
    padding: 12px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255, 132, 48, 0.075), rgba(255, 132, 48, 0) 58%),
      linear-gradient(180deg, rgba(18, 25, 34, 0.78), rgba(9, 13, 19, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 44px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px) saturate(135%);
    scrollbar-width: thin;
  }

  .server-sticky-head {
    padding: 0 2px 6px;
  }

  .server-sticky-title {
    color: #f4f7ff;
    font-size: calc(0.82rem - 2px);
    letter-spacing: 0.075em;
  }

  .server-sticky-cards,
  .server-status-group,
  .server-status-group-cards {
    display: grid;
  }

  .server-sticky-cards {
    gap: 12px;
  }

  .server-status-group {
    gap: 6px;
  }

  .server-status-group + .server-status-group {
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .server-status-group-head {
    padding: 0 2px;
    color: rgba(211, 220, 235, 0.72);
    font-size: calc(0.66rem - 2px);
    font-weight: 850;
    letter-spacing: 0.085em;
    text-transform: uppercase;
  }

  .server-status-group-cards {
    gap: 7px;
  }

  .server-sticky-card {
    position: relative;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-left: 3px solid rgba(239, 68, 68, 0.8);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(255, 132, 48, 0.035), rgba(255, 132, 48, 0) 62%),
      linear-gradient(135deg, rgba(31, 40, 53, 0.78), rgba(17, 23, 32, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 18px rgba(0, 0, 0, 0.17);
  }

  .server-sticky-card.is-online {
    border-left-color: #34d399;
  }

  .server-sticky-card.is-degraded {
    border-left-color: #fbbf24;
  }

  .server-sticky-card-clickable {
    cursor: pointer;
  }

  .server-sticky-card-clickable::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .server-sticky-card-clickable:hover::after,
  .server-sticky-card-clickable:focus-visible::after {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
  }

  .server-sticky-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 3px 10px 4px;
  }

  .server-sticky-card-name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: calc(0.7rem - 2px);
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .server-sticky-card-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 36px 42px;
    gap: 5px;
  }

  .server-sticky-metric {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
  }

  .server-sticky-metric:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .server-sticky-metric:nth-child(3),
  .server-sticky-metric:nth-child(4) {
    padding-left: 3px;
  }

  .server-sticky-metric span {
    overflow: hidden;
    color: rgba(183, 195, 213, 0.66);
    font-size: 0.5rem;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .server-sticky-metric strong {
    overflow: hidden;
    color: #f6f8fc;
    font-size: calc(0.7rem - 2px);
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .server-sticky-metric-access strong {
    display: flex;
    align-items: baseline;
    gap: 3px;
  }

  .server-sticky-metric-access b,
  .server-sticky-metric-access i {
    font: inherit;
    font-style: normal;
    white-space: nowrap;
  }

  .server-sticky-metric-access i {
    color: rgba(183, 195, 213, 0.5);
  }

  .server-sticky-sr {
    color: #f8cb61;
  }

  .server-sticky-metric-session strong {
    color: #f8cb61;
  }

  @media (max-height: 820px) {
    .server-sticky-widget {
      max-height: calc(100vh - var(--top-nav-height, 64px) - 34px);
    }

    .server-sticky-card {
      min-height: 54px;
    }

    .server-sticky-card-content {
      gap: 5px;
      padding-block: 3px;
    }
  }
}

}
@layer v1Runtime {
@layer components {
  /* ===== SECTIONS ===== */

  .section {
    padding: 18px 0 12px;
  }

  .section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .section-title {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
  }

  .section-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
  }

  .section-subtitle-hint {
    color: #ff9a62;
  }

  .combined-stats-shell {
    display: contents;
  }

  .combined-stats-shell-header,
  .combined-stats-tabs {
    display: none;
  }

  body.experiment-combined-stats .combined-stats-shell {
    display: block;
  }

  body.experiment-combined-stats .combined-stats-shell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
  }

  body.experiment-combined-stats .combined-stats-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
  }

  .combined-stats-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
  }

  .combined-stats-shell-title {
    min-width: 0;
    flex: 0 1 220px;
  }

  .combined-stats-shell-title .section-title {
    white-space: nowrap;
  }

  .combined-stats-shell-title .section-subtitle {
    white-space: nowrap;
  }

  .combined-stats-shell-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .combined-stats-active-tools {
    display: flex;
    justify-content: flex-end;
    flex: 0 1 210px;
    min-width: 0;
  }

  .combined-stats-active-tools .table-tools {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .combined-stats-active-tools .search-input {
    margin-left: auto;
    width: min(210px, 100%);
  }

  .combined-stats-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 91, 46, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.3);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
  }

  .combined-stats-tab:hover,
  .combined-stats-tab:focus-visible {
    transform: translateY(-1px);
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 91, 46, 0.3);
  }

  .combined-stats-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 91, 46, 0.22);
  }

  .combined-stats-directory-link {
    flex: 0 0 auto;
    text-decoration: none;
  }

  body.experiment-combined-stats .combined-stats-panels {
    min-width: 0;
  }

  body.experiment-combined-stats .combined-stats-panel {
    padding: 0;
  }

  body.experiment-combined-stats .combined-stats-panel:not(.is-active) {
    display: none;
  }

  body.experiment-combined-stats .combined-stats-panel .section-header {
    display: none;
  }

  body.experiment-combined-stats .combined-stats-panel .table-card {
    display: flex;
    flex-direction: column;
  }

  body.experiment-combined-stats .combined-stats-panel .table-wrap {
    flex: 1 1 auto;
  }

  .clubs-teams-home-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .clubs-teams-home-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
  }

  .clubs-teams-home-tab {
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .clubs-teams-home-tab:hover,
  .clubs-teams-home-tab:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
  }

  .clubs-teams-home-tab.is-active {
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    box-shadow: 0 7px 16px rgba(255, 91, 46, 0.2);
  }

  .clubs-teams-home-directory {
    flex: 0 0 auto;
    text-decoration: none;
  }

  .clubs-teams-home-name {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
  }

  .clubs-teams-home-table .logo-column{width:48px;padding-inline:6px;text-align:center}
  .clubs-teams-home-logo{display:inline-grid;width:32px;height:32px;place-items:center;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:9px;background:rgba(255,255,255,.06);color:var(--muted);font-size:.7rem;font-weight:900;text-decoration:none}
  .clubs-teams-home-logo img{display:block;width:100%;height:100%;object-fit:contain}

  .clubs-teams-home-name:hover,
  .clubs-teams-home-name:focus-visible {
    color: var(--accent);
  }

  .clubs-teams-home-tag {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #d9e1ec;
    font-size: 12px;
    font-weight: 800;
  }

}


}
@layer v1Runtime {
@layer components {
  .support-widget-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 166, 79, 0.32);
    background:
      radial-gradient(circle at top right, rgba(255, 175, 73, 0.24), transparent 34%),
      radial-gradient(circle at bottom left, rgba(255, 91, 46, 0.24), transparent 40%),
      linear-gradient(180deg, rgba(29, 18, 10, 0.98), rgba(17, 15, 14, 0.96));
    box-shadow:
      0 26px 60px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .support-widget-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
  }

  .support-widget-card > * {
    position: relative;
    z-index: 1;
  }

  .support-widget-copy-block {
    display: grid;
    gap: 8px;
  }

  .support-widget-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff8ef;
  }

  .support-widget-copy {
    margin: 0;
    color: #ffd9bb;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .support-widget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff9f45, #ff5b2e);
    color: #fffaf3;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow:
      0 18px 34px rgba(255, 91, 46, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    animation: supportWidgetPulse 3s ease-in-out infinite;
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      filter 0.18s ease;
  }

  @keyframes supportWidgetPulse {
    0%, 100% {
      transform: translateY(0) scale(1);
      box-shadow:
        0 18px 34px rgba(255, 91, 46, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }
    50% {
      transform: translateY(-1px) scale(1.015);
      box-shadow:
        0 22px 40px rgba(255, 91, 46, 0.3),
        0 0 0 6px rgba(255, 163, 86, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
  }

  .support-widget-btn:hover,
  .support-widget-btn:focus-visible {
    animation-play-state: paused;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
      0 24px 40px rgba(255, 91, 46, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .support-widget-qr-shell {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      rgba(8, 11, 16, 0.48);
  }

  .support-widget-qr {
    display: block;
    width: min(100%, 156px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 8px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .support-widget-note {
    margin: 0;
    color: rgba(255, 231, 212, 0.82);
    font-size: 0.76rem;
    line-height: 1.45;
    text-align: center;
  }

}

}
@layer v1Runtime {
@layer components {
  .car-thumb {
    display: block;
    width: 34px;
    height: 20px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
  }

  .car-thumb-inline {
    width: 50px;
    height: 50px;
  }

  .car-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    vertical-align: middle;
  }

  .car-label-inline > span,
  .car-label-inline > a {
    min-width: 0;
  }

  .table-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .filter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 16px;
    flex-wrap: wrap;
  }

  .filter-meta.is-empty {
    margin-top: 0;
  }

  .filter-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .filter-meta-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .filter-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
  }

  .filter-chip-label {
    color: var(--accent-2);
  }

  .btn-filter-clear {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .search-input {
    width: min(280px, 100%);
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(20, 28, 38, 0.94), rgba(17, 24, 33, 0.9));
    color: var(--text);
    outline: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 24px rgba(0, 0, 0, 0.16);
  }

  .search-input::placeholder {
    color: #bdd0e6;
  }

  .search-input:focus {
    border-color: rgba(255, 91, 46, 0.72);
    background:
      linear-gradient(180deg, rgba(23, 31, 42, 0.98), rgba(20, 28, 38, 0.94));
    box-shadow:
      0 0 0 4px rgba(255, 91, 46, 0.16),
      0 14px 30px rgba(0, 0, 0, 0.22);
  }

  .filter-select {
    min-width: 150px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(20, 28, 38, 0.94), rgba(17, 24, 33, 0.9));
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
  }

  .filter-select:focus {
    border-color: rgba(255, 91, 46, 0.72);
    outline: none;
    box-shadow:
      0 0 0 4px rgba(255, 91, 46, 0.16),
      0 14px 30px rgba(0, 0, 0, 0.22);
  }
}


}
@layer v1Runtime {
@layer components {
  /* ===== TOP 3 ===== */

  .cards-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .pilot-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--card);
    box-shadow: var(--shadow);
  }

  .pilot-card.top1 {
    background: linear-gradient(180deg, rgba(245, 196, 81, 0.16), rgba(255, 255, 255, 0.03)), var(--card);
  }

  .pilot-card.top2 {
    background: linear-gradient(180deg, rgba(184, 196, 212, 0.14), rgba(255, 255, 255, 0.03)), var(--card);
  }

  .pilot-card.top3 {
    background: linear-gradient(180deg, rgba(210, 139, 95, 0.16), rgba(255, 255, 255, 0.03)), var(--card);
  }

  .pilot-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    min-width: 0;
  }

  .pilot-rank-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .pilot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
  }

  .top1 .pilot-rank {
    color: var(--gold);
  }

  .top2 .pilot-rank {
    color: var(--silver);
  }

  .top3 .pilot-rank {
    color: var(--bronze);
  }

  .pilot-topline .trend-badge {
    flex: 0 0 auto;
  }

  .pilot-name {
    margin: 0;
    min-width: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .pilot-topline-car {
    margin-left: auto;
    flex: 0 0 auto;
    width: 60px;
    height: 36px;
  }

  .pilot-card .muted {
    font-size: 13px;
    line-height: 1.35;
  }

  .pilot-lap-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .pilot-lap-car {
    flex: 0 0 auto;
    color: var(--text);
    font-weight: 600;
    text-align: right;
  }

  .pilot-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .meta-box {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
  }

  .meta-label {
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--muted);
  }

  .meta-value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
  }
}


}
@layer v1Runtime {
@layer components {
  /* ===== TABLES ===== */

  .table-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .table-wrap {
    overflow-x: auto;
    position: relative;
  }

  table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
  }

  thead tr {
    background: rgba(255, 255, 255, 0.04);
  }

  th {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(18, 25, 34, 0.96);
    backdrop-filter: blur(10px);
  }

  th.sortable {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: 0.2s ease;
  }

  th.sortable:hover {
    color: var(--text);
  }

  th.sortable::after {
    content: "\2195";
    margin-left: 8px;
    font-size: 12px;
    color: var(--muted);
  }

  th.sortable.sort-asc::after {
    content: "\2191";
    color: var(--accent-2);
  }

  th.sortable.sort-desc::after {
    content: "\2193";
    color: var(--accent);
  }

  td {
    padding: 8px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 15px;
  }

  tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
  }

  tbody tr:not(.is-interactive-row):hover { transform: none; }

  tbody tr.is-driver-preview-row {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  tbody tr.is-driver-preview-row:hover,
  tbody tr.is-driver-preview-row:focus-visible {
    background: rgba(255, 91, 46, 0.07);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.22);
  }

  tbody tr.elo-row { position: relative; }

  tbody tr.elo-row td:first-child { box-shadow: inset 3px 0 0 var(--elo-row-accent, rgba(255, 255, 255, 0.18)); }

  tbody tr.elo-cat-1 { --elo-row-accent: rgba(180, 145, 255, .9); background: linear-gradient(90deg, rgba(180, 145, 255, .14), rgba(180, 145, 255, .03) 52%, transparent); }
  tbody tr.elo-cat-2 { --elo-row-accent: rgba(164, 218, 255, .88); background: linear-gradient(90deg, rgba(164, 218, 255, .13), rgba(164, 218, 255, .025) 52%, transparent); }
  tbody tr.elo-cat-3 { --elo-row-accent: rgba(241, 178, 82, .82); background: linear-gradient(90deg, rgba(241, 178, 82, .11), rgba(241, 178, 82, .025) 52%, transparent); }
  tbody tr.elo-cat-4 { --elo-row-accent: rgba(148, 176, 210, .78); background: linear-gradient(90deg, rgba(148, 176, 210, .1), rgba(148, 176, 210, .02) 52%, transparent); }
  tbody tr.elo-cat-5 { --elo-row-accent: rgba(205, 127, 50, .82); background: linear-gradient(90deg, rgba(205, 127, 50, .1), rgba(205, 127, 50, .025) 52%, transparent); }
  tbody tr.elo-cat-6 { --elo-row-accent: rgba(239, 97, 97, .78); background: linear-gradient(90deg, rgba(239, 97, 97, .1), rgba(239, 97, 97, .02) 52%, transparent); }

  tbody tr.elo-row:hover,
  tbody tr.elo-row:focus-visible {
    background-color: rgba(255, 255, 255, 0.035);
  }

  tbody tr.is-authenticated-driver>td { background:rgba(255,91,46,.1)!important; }
  tbody tr.is-authenticated-driver>td:first-child { box-shadow: inset 3px 0 0 rgba(255,132,72,.92); }

  tbody tr.is-driver-preview-row td:last-child {
    position: relative;
    padding-right: 28px;
  }

  tbody tr.is-driver-preview-row td:last-child::after {
    content: "\2197";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: rgba(255, 209, 102, 0.72);
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.18s ease, color 0.18s ease;
  }

  tbody tr.is-driver-preview-row:hover td:last-child::after,
  tbody tr.is-driver-preview-row:focus-visible td:last-child::after {
    color: var(--accent-2);
    transform: translateY(-50%) translateX(1px);
  }

  .races-table tbody tr {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
  }

  .driver-races-table tbody tr {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
  }

  .races-table tbody tr:hover {
    background: rgba(255, 91, 46, 0.07);
    transform: translateY(-1px);
  }

  .driver-races-table tbody tr:hover {
    background: rgba(255, 91, 46, 0.07);
    transform: translateY(-1px);
  }

  .is-interactive-row:focus-visible {
    background: rgba(255, 91, 46, 0.08);
  }

  .race-track-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .race-track-name {
    font-weight: 800;
  }

  .race-server-cell {
    min-width: 145px;
    max-width: 210px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .races-table {
    min-width: 1040px;
  }

  .race-server-name,
  .race-server-detail {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .race-server-name {
    font-weight: 800;
    color: var(--text);
  }

  .race-server-detail {
    margin-top: 2px;
    color: var(--muted);
  }

  .races-header-search {
    width: min(360px, 100%);
    margin-left: auto;
  }

  .safety-warning-cell .driver-strikes {
    justify-content: center;
    cursor: help;
  }

  .race-type-cell {
    width: 64px;
    text-align: center;
  }

  .race-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.04em;
  }

  .race-type-pub {
    background: rgba(148, 163, 184, 0.18);
    color: #d8e0eb;
  }

  .race-type-h {
    border-color: rgba(245, 162, 26, 0.42);
    background: rgba(245, 162, 26, 0.18);
    color: #ffc766;
  }

  .race-type-e {
    border-color: rgba(57, 217, 138, 0.42);
    background: rgba(57, 217, 138, 0.17);
    color: #72e8ad;
  }

  .race-type-ch {
    border-color: rgba(184, 77, 255, 0.44);
    background: rgba(184, 77, 255, 0.18);
    color: #d79aff;
  }

  .race-track-meta,
  .race-note {
    font-size: 13px;
    color: var(--muted);
  }

  .race-winner {
    font-weight: 700;
  }

  .positions-delta {
    font-weight: 700;
    color: var(--text);
  }

  .positions-delta.delta-positive {
    color: #2dff91;
  }

  .positions-delta.delta-negative {
    color: #ff5365;
  }

  .positions-delta.delta-neutral {
    color: var(--text);
  }

  .trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
  }

  .trend-badge-compact {
    padding: 2px 6px;
    font-size: 0.72rem;
  }

  .trend-badge.trend-up {
    color: var(--green);
    border-color: rgba(57, 217, 138, 0.2);
    background: rgba(57, 217, 138, 0.12);
  }

  .trend-badge.trend-down {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.12);
  }

  .trend-arrow {
    font-size: 0.74em;
  }

  .rank-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  tbody tr:last-child td {
    border-bottom: none;
  }

  .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
  }

  .rank-1 {
    color: var(--gold);
  }

  .rank-2 {
    color: var(--silver);
  }

  .rank-3 {
    color: var(--bronze);
  }

  .driver-cell {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .driver-avatar {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 91, 46, 0.9), rgba(255, 209, 102, 0.9));
    color: #101418;
    font-size: 14px;
    font-weight: 900;
  }

  .elo-period-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
  }

  .elo-period-pager button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
  }

  .elo-period-pager button:disabled {
    cursor: default;
    opacity: 0.35;
  }

  .driver-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .driver-name {
    font-weight: 700;
    color: var(--text);
  }

  .driver-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
  }

  .driver-link:hover {
    color: var(--accent-2);
  }

  .driver-link:focus-visible {
    color: var(--accent-2);
  }

  .today-stat-value .driver-link,
  .today-detail-main .driver-link,
  .today-detail-sub .driver-link {
    position: relative;
    font-weight: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
  }

  .today-stat-value .driver-link:hover,
  .today-detail-main .driver-link:hover,
  .today-detail-sub .driver-link:hover,
  .today-stat-value .driver-link:focus-visible,
  .today-detail-main .driver-link:focus-visible,
  .today-detail-sub .driver-link:focus-visible {
    color: var(--accent-2);
    border-bottom-color: rgba(255, 209, 102, 0.42);
  }

  .driver-link-heading {
    color: var(--text);
  }

  .driver-link-subtle {
    color: var(--muted);
  }

  .driver-name-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .driver-row-hint,
  .driver-link-hint {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .driver-row-hint {
    border: 1px solid rgba(255, 138, 76, 0.22);
    background: rgba(255, 91, 46, 0.08);
    color: #ffd6ba;
  }

  .driver-link-hint {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
  }

  .best-lap-value {
    color: #a300f5;
    text-shadow: 0 0 12px rgba(163, 0, 245, 0.2);
  }

  .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
  }

  .pill-session-r {
    color: var(--green);
  }

  .pill-session-q {
    color: var(--accent-2);
  }

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


}
@layer v1Runtime {
@layer components {
  /* ===== PAGINATION ===== */

  .pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 18px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
  }

  .pagination-info {
    font-size: 13px;
    color: var(--muted);
  }

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

  .page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
  }

  .page-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #ff7d57);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 91, 46, 0.25);
  }

  .page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .page-dots {
    padding: 0 2px;
    color: var(--muted);
    font-weight: 700;
  }
}


}
@layer v1Runtime {
@layer components {
  /* ===== MODALS ===== */

  .modal-overlay {
    --modal-offset-bottom: 20px;
    position: fixed;
    inset: 0;
    z-index: var(--layer-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 10, 16, 0.78);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: var(--top-nav-modal-offset, 140px);
  }

  .modal-card {
    position: relative;
    width: min(920px, 100%);
    max-height: 88vh;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(255, 184, 77, 0.08), transparent 30%),
      linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 20, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }

  .modal-card-activity {
    width: min(1280px, 100%);
    max-height: calc(100dvh - var(--top-nav-modal-offset, 140px) - var(--modal-offset-bottom, 20px));
  }

  .modal-card-server-players {
    width: min(680px, 100%);
  }

  .modal-card-slot {
    --modal-track-photo: none;
    max-height: none;
    overflow: visible;
    background:
      linear-gradient(112deg, rgba(7, 11, 16, 0.28) 0%, rgba(7, 11, 16, 0.28) 38%, rgba(7, 11, 16, 0.28) 100%),
      radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 30%),
      var(--modal-track-photo),
      linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 20, 0.98));
    background-position: center, top right, center, center;
    background-size: cover, auto, cover, cover;
    background-repeat: no-repeat;
  }

  .modal-header {
    margin-bottom: 14px;
    padding-right: 42px;
  }

  .modal-title {
    margin: 8px 0 6px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--text);
  }

  .modal-subtitle {
    margin: 0;
    color: var(--muted);
  }

  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.03);
  }
}


}
@layer v1Runtime {
@layer components {
  .server-players-list {
    display: grid;
    gap: 8px;
    padding-top: 6px;
  }

  .server-player-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .server-player-position {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 900;
    font-size: 0.78rem;
  }

  .server-player-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
  }

  .server-player-name {
    min-width: 0;
    color: #fff;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .server-player-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .server-player-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .server-player-meta span:last-child {
    max-width: min(220px, 34vw);
  }

  .server-player-car {
    justify-self: end;
    max-width: 82px;
    max-height: 34px;
  }
}


}
@layer v1Runtime {
@layer components {
  .today-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
  }

  .today-stat-card,
  .today-detail-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
  }

  .today-stat-label,
  .today-detail-title {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .today-stat-value {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
  }

  .today-stat-value-sm {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .today-stats-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .today-detail-main {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .today-detail-side-inline {
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
  }

  .today-detail-sub {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
  }
}


}
@layer v1Runtime {
@layer components {
  .activity-controls {
    display: grid; grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px; align-items: end;
    margin-bottom: 12px;
  }

  .activity-month-picker {
    display: grid; gap: 8px;
  }

  .activity-month-picker select {
    width: 100%; min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 28, 38, 0.96), rgba(17, 24, 33, 0.92));
    color: var(--text); color-scheme: dark;
    font-weight: 800; outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.16);
  }

  .activity-month-picker select:focus {
    border-color: rgba(255, 91, 46, 0.72);
    box-shadow: 0 0 0 4px rgba(255,91,46,.16), 0 14px 30px rgba(0,0,0,.22);
  }

  .activity-month-picker select option {
    background: #111821;
    color: var(--text);
    font-weight: 700;
  }

  .activity-days-strip {
    display: flex; gap: 8px;
    overflow-x: auto; min-width: 0;
    padding: 2px 1px 5px;
  }

  .activity-days-navigation {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px; align-items: center; min-width: 0;
  }

  .activity-scroll-button {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit; font-size: 1.4rem; line-height: 1;
    cursor: pointer;
  }

  .activity-scroll-button:hover,
  .activity-scroll-button:focus-visible {
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.12);
    outline: none;
  }

  .activity-month-history {
    margin-top: 14px;
  }

  .activity-month-history-head {
    margin-bottom: 10px;
  }

  .activity-month-overview {
    display: flex; gap: 10px; min-width: 0;
    overflow-x: auto; padding: 1px 1px 5px;
  }

  .activity-month-card {
    display: grid; gap: 5px;
    flex: 1 0 168px; min-width: 168px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer; text-align: left;
  }

  .activity-month-card span {
    font-size: 0.88rem; font-weight: 850; line-height: 1.2;
  }

  .activity-month-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.74rem; line-height: 1.25;
    text-overflow: ellipsis; white-space: nowrap;
  }

  .activity-month-card:hover,
  .activity-month-card.is-active {
    border-color: rgba(184, 77, 255, 0.42);
    background: rgba(184, 77, 255, 0.12);
  }

  .activity-day-pill {
    display: grid; justify-items: center; gap: 4px;
    flex: 0 0 auto;
    min-width: 82px; min-height: 46px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text); cursor: pointer;
    white-space: nowrap;
  }

  .activity-day-pill strong {
    color: var(--accent); font-size: 0.9rem; line-height: 1;
  }

  .activity-day-pill span {
    max-width: 100%; overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem; line-height: 1.1;
    text-overflow: ellipsis; white-space: nowrap;
  }

  .activity-day-pill:hover,
  .activity-day-pill.is-active {
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.12);
  }

  .activity-day-pill.is-active span {
    color: var(--text);
  }
}


}
@layer v1Runtime {
@layer components {
.activity-summary-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr repeat(4, minmax(0, 1fr));
  gap: 10px; margin-bottom: 12px;
}

.activity-summary-card,
.activity-panel,
.activity-hour-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.activity-summary-card {
  display: grid; align-content: center;
  min-width: 0; min-height: 88px;
}

.activity-summary-card-accent {
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.12), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 179, 71, 0.22);
}

.activity-summary-label {
  margin-bottom: 6px; font-size: 0.78rem; color: var(--muted);
}

.activity-summary-value {
  font-size: clamp(1rem, 1.55vw, 1.32rem); line-height: 1.25;
  font-weight: 800; color: var(--text);
}

.activity-summary-card-primary .activity-summary-value {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.activity-summary-card-tracks .activity-summary-value {
  display: -webkit-box; overflow: hidden;
  font-size: 0.74rem; font-weight: 750; line-height: 1.35;
  color: rgba(232, 241, 255, 0.82);
  -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}

.activity-panel {
  min-width: 0;
  padding: 14px;
}

.activity-panel-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}

.activity-panel-title {
  margin: 0; font-size: 1rem; color: var(--text);
}

.activity-panel-note {
  font-size: 0.82rem; color: var(--muted); text-align: right;
}

.activity-chart-scroll {
  max-width: 100%; overflow-x: auto;
  padding-bottom: 3px; scrollbar-width: thin;
}

.activity-hours-list {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px; align-items: end;
  width: 100%; min-width: 820px;
}

.activity-hour-bar-card {
  display: grid; gap: 6px; min-width: 0;
}

.activity-hour-unique {
  font-size: 0.7rem; font-weight: 700;
  text-align: center;
  color: var(--text); line-height: 1;
}

.activity-hour-bar-stage {
  display: flex; align-items: end; justify-content: center;
  height: 142px;
  padding: 10px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), rgba(255,255,255,.02);
}

.activity-hour-bar-vertical {
  display: block;
  width: min(100%, 16px);
  min-height: 2px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #ffd36a 0%, #ff9a2f 45%, #ff5b2e 100%);
}

.activity-hour-bar-card.is-prime .activity-hour-bar-stage {
  background: linear-gradient(180deg, rgba(255,179,71,.1), rgba(255,255,255,.02)), rgba(255,255,255,.02);
  outline: 1px solid rgba(255, 179, 71, 0.28);
}

.activity-hour-bar-card.is-prime .activity-hour-bar-vertical {
  background: linear-gradient(180deg, #ffe08b 0%, #ffb347 38%, #ff6d2e 100%);
}

.activity-hour-axis-label {
  font-size: 0.72rem; text-align: center; color: var(--muted);
  letter-spacing: 0.02em;
}

}

}
@layer v1Runtime {
@layer components {
body.modal-open {
  overflow: hidden;
}

.hourly-modal-details {
  display: grid;
  gap: 12px;
}

.hourly-modal-details-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(16, 20, 27, 0.58);
  backdrop-filter: blur(10px);
}

.hourly-modal-cta-btn {
  width: auto;
  min-width: 180px;
  justify-content: center;
  gap: 8px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a43, #ff6b2d);
  box-shadow: 0 12px 24px rgba(255, 107, 45, 0.24);
}

.hourly-modal-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hourly-modal-cta-meta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #eef3ff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.hourly-modal-subtitle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.hourly-modal-subtitle-card,
.hourly-modal-side-card,
.hourly-modal-left-cluster {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(22, 27, 35, 0.46);
  backdrop-filter: blur(14px);
}

.hourly-modal-subtitle-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.hourly-modal-subtitle-label,
.hourly-modal-label {
  color: rgba(213, 224, 239, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.hourly-modal-subtitle-value {
  color: #f4f8ff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hourly-modal-subtitle-card:nth-child(1) .hourly-modal-subtitle-value,
.hourly-modal-subtitle-card:nth-child(2) .hourly-modal-subtitle-value {
  font-size: 1.08rem;
}

.hourly-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.hourly-modal-left-cluster {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(116, 120, 129, 0.18);
}

.hourly-modal-panel-grid {
  display: grid;
  gap: 10px;
}

.hourly-modal-panel-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hourly-modal-panel-item {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 14px;
  min-height: 158px;
  align-content: start;
  background: linear-gradient(180deg, rgba(40, 43, 49, 0.82), rgba(30, 33, 40, 0.78));
}

.hourly-modal-side-stack {
  display: grid;
  gap: 10px;
}

.hourly-modal-side-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(20, 27, 38, 0.92);
  border-color: rgba(171, 123, 83, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 117, 0.06);
}

.hourly-modal-side-card-combined {
  align-content: start;
}

.hourly-modal-side-card-compact {
  gap: 8px;
}

.hourly-modal-side-section {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(13, 18, 28, 0.74);
}

.hourly-modal-side-section-weather .hourly-modal-token-list {
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: space-between;
}

.hourly-modal-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hourly-modal-panel-item .hourly-modal-token-list {
  align-content: flex-start;
}

.hourly-modal-panel-item .hourly-modal-token {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.hourly-modal-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef3ff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.hourly-modal-token-primary {
  border-color: rgba(211, 121, 82, 0.52);
  background: rgba(132, 73, 51, 0.34);
  color: #ffe2cf;
}

.hourly-modal-token-muted {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 248, 255, 0.78);
}

.hourly-modal-token-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.94;
}

#hourly-details-modal {
  z-index: var(--layer-modal-priority);
}

#hourly-details-modal .modal-card-slot.is-event-details-v2 {
  width: min(960px, calc(100vw - 32px));
  height: 560px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101720;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

#hourly-details-modal .modal-header.event-details-v2-legacy-header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#hourly-details-modal .modal-card-slot.is-event-details-v2 .hourly-modal-details {
  height: 100%;
}

#hourly-details-modal .modal-card-slot.is-event-details-v2 .modal-close {
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 22, 31, 0.52);
  color: #f5f7fa;
  font-size: 1.7rem;
}

#hourly-details-modal .event-details-v2 {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101720;
}

#hourly-details-modal .event-details-v2-background,
#hourly-details-modal .event-details-v2-shade {
  position: absolute;
  inset: 0;
}

#hourly-details-modal .event-details-v2-background {
  z-index: 0;
  background-image: var(--modal-track-photo);
  background-position: center;
  background-size: cover;
  opacity: 0.92;
}

#hourly-details-modal .event-details-v2-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 13, 19, 0.24) 0%, rgba(8, 13, 19, 0.5) 42%, rgba(8, 13, 19, 0.8) 100%);
  pointer-events: none;
}

#hourly-details-modal .event-details-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 90px 330px 64px;
  gap: 12px;
  height: 100%;
  padding: 20px 28px 16px;
}

#hourly-details-modal .event-details-v2-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-right: 52px;
}

#hourly-details-modal .event-details-v2-eyebrow {
  margin-bottom: 6px;
  color: #f5a21a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#hourly-details-modal .event-details-v2-title {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 0.95;
  font-weight: 800;
}

#hourly-details-modal .event-details-v2-date-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4f6f8;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

#hourly-details-modal .event-details-v2-date-time-icon,
#hourly-details-modal .event-details-v2-card-icon {
  width: 20px;
  height: 20px;
  color: #f5a21a;
}

#hourly-details-modal .event-details-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 12px;
  height: 330px;
}

#hourly-details-modal .event-details-v2-card {
  min-width: 0;
  height: 330px;
  padding: 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 35, 45, 0.56), rgba(14, 19, 26, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#hourly-details-modal .event-details-v2-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding-bottom: 7px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#hourly-details-modal .event-details-v2-card-title {
  margin: 0;
  color: #dde4ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#hourly-details-modal .event-details-v2-card-body {
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
}

#hourly-details-modal .event-details-v2-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#hourly-details-modal .event-details-v2-info-row:first-child {
  border-top: 0;
}

#hourly-details-modal .event-details-v2-card-conditions .event-details-v2-info-row {
  min-height: 25px;
  padding: 2px 0;
}

#hourly-details-modal .event-details-v2-divider-row {
  margin-bottom: 3px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#hourly-details-modal .event-details-v2-info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(222, 229, 237, 0.8);
  font-size: 12px;
  line-height: 1.2;
}

#hourly-details-modal .event-details-v2-card-conditions .event-details-v2-info-label {
  font-size: 11px;
}

#hourly-details-modal .event-details-v2-info-value {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

#hourly-details-modal .event-details-v2-card-conditions .event-details-v2-info-value {
  font-size: 11.5px;
}

#hourly-details-modal .event-details-v2-info-label-accent,
#hourly-details-modal .event-details-v2-info-value-accent,
#hourly-details-modal .event-details-v2-info-icon-accent {
  color: #f5a21a;
}

#hourly-details-modal .event-details-v2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

#hourly-details-modal .event-details-v2-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#hourly-details-modal .event-details-v2-info-icon {
  width: 16px;
  height: 16px;
  color: rgba(223, 230, 239, 0.82);
}

#hourly-details-modal .event-details-v2-card-conditions .event-details-v2-info-icon {
  width: 14px;
  height: 14px;
}

#hourly-details-modal .event-details-v2-password-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#hourly-details-modal .event-details-v2-password {
  user-select: all;
}

#hourly-details-modal .event-details-v2-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6f8;
  cursor: pointer;
}

#hourly-details-modal .event-details-v2-copy-button .hero-copy-icon-done {
  display: none;
}

#hourly-details-modal .event-details-v2-copy-button.is-copied .hero-copy-icon-copy {
  display: none;
}

#hourly-details-modal .event-details-v2-copy-button.is-copied .hero-copy-icon-done {
  display: inline-flex;
}

#hourly-details-modal .event-details-v2-class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(242, 126, 52, 0.65);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

#hourly-details-modal .event-details-v2-footer {
  display: grid;
  grid-template-columns: 190px 44px minmax(145px, auto) 1fr auto;
  align-items: center;
  column-gap: 10px;
  height: 64px;
  padding: 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(15, 20, 27, 0.88);
}

#hourly-details-modal .event-details-v2-participation-button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, #1f9c47, #137535);
  color: #f6fff8;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

#hourly-details-modal .event-details-v2-participation-button.is-voted {
  background: linear-gradient(180deg, #1da047, #148039);
}

#hourly-details-modal .event-details-v2-participation-button:disabled {
  opacity: 0.72;
  cursor: default;
}

#hourly-details-modal .event-details-v2-participation-icon,
#hourly-details-modal .event-details-v2-cancel-icon,
#hourly-details-modal .event-details-v2-participant-icon {
  width: 18px;
  height: 18px;
}

#hourly-details-modal .event-details-v2-cancel-button,
#hourly-details-modal .event-details-v2-cancel-placeholder {
  width: 44px;
  height: 44px;
}

#hourly-details-modal .event-details-v2-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #c83c2f, #991f18);
  color: #fff;
  cursor: pointer;
}

#hourly-details-modal .event-details-v2-participant-count {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
}

#hourly-details-modal .event-details-v2-voting-notice {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #949ca8;
  font-size: 10.5px;
  text-align: right;
}

#hourly-details-modal .event-details-v2-voting-notice a,
#hourly-details-modal .event-details-v2-details-link {
  color: #f5a21a;
  text-decoration: none;
}

@media (max-width: 1099px) {
  #hourly-details-modal .modal-card-slot.is-event-details-v2 {
    width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  #hourly-details-modal .event-details-v2-inner {
    grid-template-rows: auto auto auto;
    height: auto;
  }

  #hourly-details-modal .event-details-v2-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #hourly-details-modal .event-details-v2-date-time {
    white-space: normal;
  }

  #hourly-details-modal .event-details-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  #hourly-details-modal .event-details-v2-card,
  #hourly-details-modal .event-details-v2-card-conditions {
    height: auto;
  }

  #hourly-details-modal .event-details-v2-card-conditions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 799px) {
  #hourly-details-modal .modal-card-slot.is-event-details-v2 {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  #hourly-details-modal .event-details-v2-inner {
    padding: 18px 16px 16px;
  }

  #hourly-details-modal .event-details-v2-title {
    font-size: 34px;
  }

  #hourly-details-modal .event-details-v2-grid {
    grid-template-columns: 1fr;
  }

  #hourly-details-modal .event-details-v2-footer {
    grid-template-columns: 1fr;
    row-gap: 8px;
    height: auto;
  }
}

+}

}
@layer v1Runtime {
@layer components {
/* ===== DRIVER OF THE DAY MODAL ===== */

.driver-day-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-day-card-wide {
  grid-column: span 3;
}

.driver-day-card-wide .today-stat-value {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.modal-card-driver-preview {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header-driver-preview {
  display: block;
  margin-bottom: 12px;
  padding-right: 48px;
}

.driver-preview-hero-copy > .eyebrow {
  display: none;
}

.driver-preview-hero-mainline {
  gap: clamp(12px, 1.25vw, 18px);
  align-items: end;
}

.driver-preview-steam-portrait {
  width: clamp(72px, 6vw, 88px);
  border-radius: clamp(18px, 1.5vw, 22px);
}

.driver-preview-hero-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.driver-preview-profile-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 112, 0.62);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(255, 76, 34, 0.9), rgba(255, 151, 36, 0.82) 56%, rgba(255, 209, 91, 0.78));
  box-shadow: 0 0 20px rgba(255, 113, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fffbea;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.driver-preview-profile-title[hidden] { display: none; }
.driver-preview-profile-title .driver-profile-title-icon { flex: 0 0 auto; font-size: 0.95rem; }
.driver-preview-profile-title #driver-preview-profile-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#driver-preview-title{display:block;width:100%;margin:0;font-size:clamp(2rem,4vw,3.1rem);line-height:1}

#driver-preview-title .driver-title-name {
  overflow-wrap: anywhere;
}

.modal-card-driver-preview .driver-hero-ratings {
  gap: 6px;
}

.driver-preview-action-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
}

.driver-preview-action-row .driver-hero-meta-row{display:contents}.driver-preview-action-row .driver-title-affiliations{flex:1 0 280px;width:auto;min-width:280px;margin-left:auto}

.modal-card-driver-preview .driver-rank-pill {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.btn-driver-preview-link {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  margin: 0;
  align-self: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 143, 82, 0.92);
  border-radius: 10px;
  background: linear-gradient(180deg, #ff7a3d, #f05a22);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(240, 90, 34, 0.28);
}

.btn-driver-preview-link:hover,
.btn-driver-preview-link:focus-visible {
  background: linear-gradient(180deg, #ff8b57, #f56a37);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(240, 90, 34, 0.34);
}

.driver-preview-stats-grid {
  margin-top: 0;
}

.driver-preview-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.modal-card-elo {
  width: min(960px, 100%);
}

.elo-modal-summary {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.elo-modal-rating,
.elo-modal-category {
  min-height: 66px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.elo-modal-rating {
  color: var(--elo-fg);
  background: var(--elo-bg);
  border-color: var(--elo-border);
}

.elo-modal-rating.sr-cat-A,
.elo-modal-rating.sr-cat-B,
.elo-modal-rating.sr-cat-C {
  color: var(--sr-fg);
  background: var(--sr-bg);
  border-color: var(--sr-border);
}

.elo-modal-label {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.elo-modal-value {
  display: block;
  font-size: clamp(1.5rem, 3.8vw, 2.45rem);
  font-weight: 950;
  line-height: 0.95;
}

.elo-modal-category-name {
  color: var(--text);
  font-size: clamp(0.96rem, 1.8vw, 1.32rem);
  font-weight: 900;
  line-height: 1.1;
}

.elo-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented-control button {
  min-height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.active,
.segmented-control button:hover,
.segmented-control button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.elo-chart-wrap {
  min-height: 186px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 13, 18, 0.42);
  overflow: hidden;
}

.elo-chart {
  display: block;
  width: 100%;
  height: auto;
}

.elo-chart-grid-line {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.elo-chart-axis {
  fill: rgba(232, 238, 248, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.elo-chart-area {
  fill: rgba(255, 122, 61, 0.14);
}

.elo-chart-line {
  fill: none;
  stroke: #ffd166;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elo-chart-dot {
  fill: #ffd166;
  stroke: #111820;
  stroke-width: 2;
}

.elo-chart-dot-button {
  cursor: pointer;
}

.elo-chart-dot-button:focus-visible .elo-chart-dot-hit,
.elo-chart-dot-button:hover .elo-chart-dot-hit {
  fill: rgba(255, 209, 102, 0.16);
}

.elo-chart-dot-button:focus-visible {
  outline: none;
}

.elo-chart-dot-hit {
  fill: transparent;
  stroke: transparent;
}

.elo-chart-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.elo-about-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.25fr);
  gap: 18px;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
}

.sr-breakdown-popover {
  position: fixed;
  z-index: var(--layer-toast);
  width: min(236px, calc(100vw - 24px));
  max-width: min(236px, calc(100vw - 24px));
}

.elo-history-popover {
  width: min(248px, calc(100vw - 24px));
  max-width: min(248px, calc(100vw - 24px));
}

.sr-breakdown-popover-card {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.98), rgba(12, 17, 25, 0.98));
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.sr-breakdown-loading,
.sr-breakdown-empty {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.sr-breakdown-summary {
  color: rgba(232, 238, 248, 0.78);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.3;
}

.sr-breakdown-table {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0;
}

.sr-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sr-breakdown-row:last-child {
  border-bottom: none;
}

.sr-breakdown-table dt,
.sr-breakdown-table dd {
  margin: 0;
  font-size: 0.63rem;
  line-height: 1.2;
}

.sr-breakdown-table dt {
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.sr-breakdown-table dd {
  color: var(--text);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

.sr-breakdown-open-race {
  width: 100%;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.62rem;
}

.elo-about-copy h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.elo-about-copy p:last-child {
  margin-bottom: 0;
}

.elo-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.elo-category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--elo-border);
  border-radius: 16px;
  background: var(--elo-bg);
  color: var(--elo-fg);
}

.elo-category-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--elo-accent);
  font-weight: 950;
}

.elo-category-card strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.elo-category-card small {
  margin-left: auto;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.78;
  white-space: nowrap;
}

.safety-about-block {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.safety-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.safety-category-grid .elo-category-card {
  min-height: 48px;
  padding: 9px 12px;
  border-color: var(--sr-border);
  background: var(--sr-bg);
  color: var(--sr-fg);
}

.safety-category-grid .elo-category-card span {
  width: 34px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--sr-accent);
}

.safety-category-grid .elo-category-card strong {
  font-size: 0.8rem;
}

.safety-category-grid .elo-category-card small {
  font-size: 0.72rem;
}

.safety-reason-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.safety-reason-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text);
}

.safety-reason-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.safety-reason-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 12px 0 0;
}

.safety-reason-card dl > div {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.safety-reason-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.safety-reason-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  font-size: 0.92rem;
}

.elo-period-pager {
  font-size: 0.76rem;
}

.elo-period-pager button {
  min-width: 28px;
  min-height: 28px;
}

#driver-of-day-content.is-empty {
  opacity: 0.45;
}

.modal-card-race {
  width: min(1280px, 100%);
}

.race-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.race-summary-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

#race-results-table tr.race-result-row-highlight {
  background: rgba(255, 122, 61, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 98, 0.28);
}

#race-results-table tr.race-result-row-highlight:hover,
#race-results-table tr.race-result-row-highlight:focus-visible {
  background: rgba(255, 122, 61, 0.16);
}

#race-results-table tr.race-result-row-highlight .driver-name,
#race-results-table tr.race-result-row-highlight .positions-delta,
#race-results-table tr.race-result-row-highlight td {
  color: inherit;
}

.race-driver-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.race-driver-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.race-driver-title .driver-name {
  min-width: 0;
}

.race-driver-elo .elo-badge {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.race-driver-elo .elo-badge-rank {
  min-width: 24px;
  min-height: 18px;
  padding: 0 5px;
}

.race-result-car-cell {
  width: 118px;
  max-width: 130px;
}

.race-result-car-cell .car-label-inline {
  max-width: 100%;
}

.race-result-car-cell .car-label-inline > span,
.race-result-car-cell .car-label-inline > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bestlaps-table th {
  padding-top: 12px;
  padding-bottom: 12px;
}

.table-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 0;
}

.table-filter-label {
  color: var(--muted);
  font-size: 13px;
}

.track-filter-select {
  min-width: 180px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.96), rgba(17, 24, 33, 0.92));
  color: var(--text);
  color-scheme: dark;
  padding: 0 34px 0 12px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.track-filter-select:focus {
  border-color: rgba(255, 91, 46, 0.72);
  background:
    linear-gradient(180deg, rgba(23, 31, 42, 0.98), rgba(20, 28, 38, 0.94));
  box-shadow:
    0 0 0 4px rgba(255, 91, 46, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.track-filter-select option {
  background: #111821;
  color: var(--text);
  font-weight: 700;
}

.bestlap-tracks-open,
.driver-stat-label-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: inherit;
}

.driver-stat-label-button {
  color: var(--muted);
}

.bestlap-track-list {
  display: grid;
  gap: 10px;
}

.bestlap-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.bestlap-track-main,
.bestlap-track-side {
  display: grid;
  gap: 3px;
}

.bestlap-track-side {
  text-align: right;
}

.bestlap-track-name {
  font-weight: 800;
}

.bestlap-track-driver,
.bestlap-track-side span:last-child {
  color: var(--muted);
  font-size: 13px;
}

#bestlaps-table td {
  padding-top: 6px;
  padding-bottom: 6px;
}

#bestlaps-table .rank-badge {
  height: 30px;
  min-width: 30px;
}

#bestlaps-table .elo-badge-compact {
  min-height: 28px;
}

#bestlaps-table .sr-badge-compact {
  min-height: 28px;
}

#leaderboard-table th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.74rem;
  line-height: 1.1;
}

#leaderboard-table { overflow-x: auto; }

#leaderboard-table .leaderboard-stats-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

#leaderboard-table .rank-column { width: 62px; }
#leaderboard-table .driver-column { width: 18%; }
#leaderboard-table .elo-column { width: 106px; }
#leaderboard-table .sr-column { width: 88px; }
#leaderboard-table .points-column { width: 76px; }
#leaderboard-table .wins-column { width: 82px; }
#leaderboard-table .podiums-column { width: 88px; }
#leaderboard-table .races-column { width: 76px; }
#leaderboard-table .avg-finish-column { width: 112px; }
#leaderboard-table .club-column { width: 14%; }
#leaderboard-table .team-column { width: 16%; }

#leaderboard-table th,
#leaderboard-table td {
  height: 52px;
  box-sizing: border-box;
}

#leaderboard-table th {
  padding-left: 7px;
  padding-right: 7px;
  white-space: nowrap;
}

#leaderboard-table td.numeric-cell {
  padding-left: 7px;
  padding-right: 7px;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#leaderboard-table td.rank-column {
  padding-left: 5px;
  padding-right: 5px;
}

#leaderboard-table td.rank-column .rank-badge-wrap {
  width: 100%;
  min-width: 0;
  gap: 3px;
  justify-content: center;
}

#leaderboard-table td.rank-column .rank-badge {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  font-size: 0.76rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#leaderboard-table .driver-cell-wrapper,
#leaderboard-table .affiliation-cell {
  padding-left: 12px;
  padding-right: 12px;
}

#leaderboard-table .driver-cell,
#leaderboard-table .driver-name-wrap { min-width: 0; }

#leaderboard-table .driver-name-wrap { gap: 2px; }

#leaderboard-table .driver-name,
#leaderboard-table .affiliation-cell .driver-link {
  min-width: 0;
  line-height: 1.15;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: normal;
  overflow-wrap: normal;
}

#leaderboard-table .driver-team {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

#leaderboard-table .elo-badge,
#leaderboard-table .sr-badge {
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

#leaderboard-table td.elo-column .elo-badge,
#leaderboard-table td.sr-column .sr-badge { margin-inline: auto; }

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.table-sort-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

th.sortable::after { content: none; }

.table-sort-button .sort-icon {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

th.sort-asc .table-sort-button .sort-icon { color: var(--accent-2); }
th.sort-desc .table-sort-button .sort-icon { color: var(--accent); }

@media (pointer: coarse) {
  .table-sort-button,
  .elo-badge,
  .sr-badge,
  .driver-link {
    position: relative;
    touch-action: manipulation;
  }

  .table-sort-button::before,
  .elo-badge::before,
  .sr-badge::before,
  .driver-link::before {
    content: "";
    position: absolute;
    inset: -9px -6px;
    min-width: 44px;
    min-height: 44px;
  }

  .modal-close,
  .page-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  tbody tr.is-driver-preview-row:hover {
    transform: none;
  }
}

#bestlaps-table .car-thumb-inline {
  width: 42px;
  height: 28px;
}

#bestlaps-table .driver-cell {
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.24);
}

.banned-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 93, 93, 0.44);
  color: #ffe8e8;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(128, 22, 31, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px rgba(239, 68, 68, 0.16);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.banned-badge-compact {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.safety-row.is-banned td {
  background: rgba(239, 68, 68, 0.045);
}

.race-summary-label {
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.race-summary-value {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.table-card-modal {
  border-radius: 18px;
}

@media (max-width: 760px) {
  .elo-modal-summary,
  .elo-about-block,
  .elo-category-grid {
    grid-template-columns: 1fr;
  }

  .elo-modal-controls {
    align-items: stretch;
  }

  .segmented-control {
    width: 100%;
    justify-content: space-between;
  }

  .segmented-control button {
    flex: 1 1 auto;
    padding: 0 8px;
  }

  .safety-reason-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .safety-reason-card dl {
    grid-template-columns: 1fr;
  }
}

+}

}
@layer v1Runtime {
@layer components {
/* ===== FOOTER ===== */

.footer {
  padding: 26px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.footer-text {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-links .footer-social-link {
  width: 38px;
  padding: 0;
}

.footer-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.twitch-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--layer-widget);
  display: flex;
  justify-content: flex-end;
  width: min(320px, calc(100vw - 22px));
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, width 0.22s ease;
}

.twitch-widget.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.twitch-widget.is-expanded {
  width: min(50vw, 780px);
}

.twitch-widget.is-collapsed {
  width: min(320px, calc(100vw - 22px));
}

.twitch-widget-shell {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(145, 70, 255, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 10px 26px rgba(145, 70, 255, 0.16);
  backdrop-filter: blur(12px);
}

.twitch-widget.is-platform-youtube .twitch-widget-shell {
  border-color: rgba(255, 63, 58, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 63, 58, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 10px 26px rgba(255, 63, 58, 0.14);
}

.twitch-widget-header {
  display: grid;
  gap: 10px;
  padding: 14px 14px 10px;
}

.twitch-widget-title-wrap {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.twitch-widget-title-wrap:hover .twitch-widget-title,
.twitch-widget-title-wrap:focus-visible .twitch-widget-title {
  color: #ffffff;
}

.twitch-widget-title {
  color: #edf2ff;
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twitch-widget-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.twitch-widget-open,
.twitch-widget-expand,
.twitch-widget-hide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf2ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.twitch-widget-open:hover,
.twitch-widget-open:focus-visible,
.twitch-widget-expand:hover,
.twitch-widget-expand:focus-visible,
.twitch-widget-hide:hover,
.twitch-widget-hide:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(145, 70, 255, 0.42);
  color: #ffffff;
  transform: translateY(-1px);
}

.twitch-widget.is-platform-youtube .twitch-widget-open:hover,
.twitch-widget.is-platform-youtube .twitch-widget-open:focus-visible,
.twitch-widget.is-platform-youtube .twitch-widget-expand:hover,
.twitch-widget.is-platform-youtube .twitch-widget-expand:focus-visible,
.twitch-widget.is-platform-youtube .twitch-widget-hide:hover,
.twitch-widget.is-platform-youtube .twitch-widget-hide:focus-visible {
  border-color: rgba(255, 63, 58, 0.42);
}

.twitch-widget-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.twitch-widget-player-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.twitch-widget-launcher-wrap {
  position: relative;
  width: 100%;
}

.twitch-widget-launcher-wrap[hidden] {
  display: none;
}

.twitch-widget-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(145, 70, 255, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 10px 26px rgba(145, 70, 255, 0.16);
  color: #edf2ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.twitch-widget-launcher-close {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.twitch-widget-launcher[hidden] {
  display: none;
}

.twitch-widget-launcher:hover,
.twitch-widget-launcher:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(145, 70, 255, 0.48);
  color: #ffffff;
}

.twitch-widget-launcher-close:hover,
.twitch-widget-launcher-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(16, 22, 32, 0.98);
  color: #ffffff;
}

.twitch-widget.is-platform-youtube .twitch-widget-launcher {
  border-color: rgba(255, 63, 58, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 63, 58, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 10px 26px rgba(255, 63, 58, 0.14);
}

.twitch-widget.is-platform-youtube .twitch-widget-launcher:hover,
.twitch-widget.is-platform-youtube .twitch-widget-launcher:focus-visible {
  border-color: rgba(255, 63, 58, 0.48);
}

.top-guide {
  position: fixed;
  top: 120px;
  left: 22px;
  z-index: var(--layer-guide);
  width: min(320px, calc(100vw - 44px));
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(18, 24, 34, 0.97), rgba(10, 14, 21, 0.97));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 10px 30px rgba(255, 91, 46, 0.12);
  backdrop-filter: blur(16px);
}

.top-guide-progress {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 214, 199, 0.92);
}

.top-guide-title {
  margin: 10px 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #f7fbff;
}

.top-guide-body {
  margin: 12px 0 0;
  color: rgba(226, 234, 245, 0.9);
  line-height: 1.6;
  font-size: 0.96rem;
}

.top-guide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.top-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #edf2ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.top-guide-btn:hover,
.top-guide-btn:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
}

.top-guide-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.top-guide-btn-primary {
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.92), rgba(255, 141, 87, 0.88));
  border-color: rgba(255, 141, 87, 0.5);
  color: #fff6f0;
}

.top-guide-btn-secondary:hover,
.top-guide-btn-secondary:focus-visible,
.top-guide-btn-ghost:hover,
.top-guide-btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.top-guide-launcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: var(--layer-guide-launcher);
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 91, 46, 0.3);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(18, 24, 34, 0.97), rgba(10, 14, 21, 0.97));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 8px 24px rgba(255, 91, 46, 0.14);
  color: #f7fbff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.top-guide-launcher:hover,
.top-guide-launcher:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 141, 87, 0.5);
}

.top-guide-highlight {
  position: fixed;
  z-index: var(--layer-guide-highlight);
  pointer-events: none;
  border: 3px solid rgba(255, 91, 46, 0.82);
  border-radius: 24px;
  box-shadow:
    0 0 0 8px rgba(255, 91, 46, 0.13),
    0 0 0 9999px rgba(7, 11, 17, 0.52),
    0 24px 54px rgba(0, 0, 0, 0.28);
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease, border-radius 0.18s ease;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.join-community-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.join-community-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.join-community-icon-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.join-community-copy {
  color: var(--muted);
  line-height: 1.5;
}

.rules-callout {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 91, 46, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(12, 17, 26, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.top-nav-link-rules,
.top-nav-more-link-rules {
  border-color: rgba(255, 108, 92, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 146, 84, 0.74), rgba(220, 44, 44, 0.96)),
    rgba(185, 32, 32, 0.34);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(92, 8, 8, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(255, 145, 96, 0.16),
    0 12px 30px rgba(201, 35, 35, 0.38),
    0 0 24px rgba(255, 98, 64, 0.24);
}

.top-nav-link-rules:hover,
.top-nav-link-rules:focus-visible,
.top-nav-more-link-rules:hover,
.top-nav-more-link-rules:focus-visible {
  border-color: rgba(255, 140, 112, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 160, 96, 0.82), rgba(232, 52, 52, 0.98)),
    rgba(198, 34, 34, 0.38);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(255, 170, 120, 0.2),
    0 16px 36px rgba(210, 36, 36, 0.46),
    0 0 30px rgba(255, 108, 72, 0.28);
}

.rules-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 123, 84, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 91, 46, 0.24), rgba(255, 91, 46, 0.14));
  color: #fff0e6;
  font-family: "Arial Black", "Segoe UI", Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-callout-badge::before {
  content: "🏁";
}

.rules-callout-title,
.rules-callout-subtitle {
  margin: 0;
  color: var(--text);
}

.rules-callout-title {
  margin-bottom: 10px;
  color: #fff5ee;
  font-family: "Arial Black", "Segoe UI", Inter, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 8px 24px rgba(255, 91, 46, 0.22);
}

.rules-callout-lead {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid rgba(255, 132, 82, 0.88);
  border-radius: 14px;
  background: rgba(255, 103, 62, 0.1);
  color: #ffe0d0;
  font-size: 1rem;
  font-weight: 800;
}

.rules-callout-subtitle {
  margin: 20px 0 10px;
  color: #ffb38f;
  font-family: "Arial Black", "Segoe UI", Inter, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rules-list {
  margin: 0;
  padding-left: 22px;
  color: #f8fbff;
  font-size: 0.98rem;
}

.rules-list li + li {
  margin-top: 8px;
}

.community-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 21, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.community-card:hover,
.community-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.community-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.community-card-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.community-card-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.community-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.community-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff6d4;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.community-card-cta::after {
  content: "↗";
  font-size: 0.95rem;
  line-height: 1;
}

.community-card-telegram {
  background:
    radial-gradient(circle at top right, rgba(39, 167, 231, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(15, 28, 38, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-telegram .community-card-icon-wrap {
  background: linear-gradient(135deg, #27a7e7, #168ac7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(39, 167, 231, 0.28);
}

.community-card-discord {
  background:
    radial-gradient(circle at top right, rgba(88, 101, 242, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 21, 40, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-discord .community-card-icon-wrap {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(88, 101, 242, 0.3);
}

.community-card-youtube {
  background:
    radial-gradient(circle at top right, rgba(255, 42, 35, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(36, 18, 18, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-youtube .community-card-icon-wrap {
  background: linear-gradient(135deg, #ff2a23, #cc181e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(204, 24, 30, 0.3);
}

.community-card-twitch {
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(27, 18, 44, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-twitch .community-card-icon-wrap {
  background: linear-gradient(135deg, #9146ff, #6f2cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(145, 70, 255, 0.3);
}

.community-card-tiktok {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(10, 14, 21, 0.92));
}

.community-card-tiktok .community-card-icon-wrap {
  background: linear-gradient(135deg, #151515, #2b2b2b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

+}

}
@layer v1Runtime {
@layer utilities {
/* ===== UTILITY / STATE ===== */

.empty-box {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
}

.loading {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: loadingStateSpin 0.8s linear infinite;
}

.table-wrap > .loading,
.table-wrap > [data-table-state] {
  min-height: 180px;
}

.cards-top3 > .loading,
.driver-stats-grid > .loading {
  min-height: 120px;
}

.server-sticky-cards > .loading {
  min-height: 48px;
  padding: 8px;
  font-size: 0.72rem;
}

[data-table-state="error"] {
  border-color: rgba(255, 91, 46, 0.3);
  color: rgba(255, 210, 198, 0.92);
}

@keyframes loadingStateSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loading::before { animation: none; }
}
}

}
@layer v1Runtime {
@layer overrides {
/* ===== RESPONSIVE ===== */

@media (max-width: 1420px) {
  html {
    scroll-padding-top: 132px;
  }

  .top-nav-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "brand socials actions"
      "menu menu menu";
    align-items: center;
    gap: 7px 10px;
    padding: 8px 16px 10px;
  }

  .top-nav-socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
  }

  .top-nav-brand {
    grid-area: brand;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .top-nav-center {
    grid-area: menu;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .top-nav-menu {
    display: flex;
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    overflow: visible;
    padding: 2px 0 0;
  }

  .top-nav-center::after {
    display: none;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  .nav-social {
    min-width: 34px;
    min-height: 34px;
    padding: 7px;
    font-size: 0.74rem;
  }
}

@media (max-width: 1420px) and (min-width: 721px) {
  .top-nav-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "brand socials actions"
      "menu menu menu";
    align-items: center;
    padding: 8px 16px 10px;
  }

  .top-nav-brand {
    grid-area: brand;
  }

  .top-nav-socials {
    grid-area: socials;
    display: flex;
  }

  .top-nav-center {
    grid-area: menu;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: visible;
  }

  .top-nav-menu {
    width: 100%;
    overflow: visible;
    justify-content: center;
    padding: 2px 0 0;
  }

  .top-nav-center::after {
    display: none;
  }

  .top-nav-actions {
    grid-area: actions;
  }

  .top-nav-more-menu {
    z-index: 30;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 132px;
  }

  .hero-grid,
  .cards-top3 {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-main-column,
  .hero-hourly-promo,
  .support-hourly-widget,
  .hero-hourly-card,
  .hero-actions-row,
  .hero-side {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-side {
    max-width: none;
    margin-left: 0;
  }

  .hero-card {
    padding: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  body.experiment-combined-stats .combined-stats-tabs{display:contents}
  .combined-stats-navigation{display:grid;grid-template-columns:1fr 1fr}

  body.experiment-combined-stats .combined-stats-shell-header,
  body.experiment-combined-stats .combined-stats-shell-controls {
    flex-direction: column;
    align-items: stretch;
  }

  body.experiment-combined-stats .combined-stats-shell-header {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  body.experiment-combined-stats .combined-stats-shell-title {
    flex: none;
  }

  body.experiment-combined-stats .combined-stats-shell-controls {
    flex: none;
    justify-content: flex-start;
    gap: 10px;
  }

  .combined-stats-active-tools {
    width: 100%;
    flex: none;
  }

  .combined-stats-active-tools .table-tools {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .combined-stats-tab,.combined-stats-directory-link{white-space:normal}

  body.experiment-combined-stats .combined-stats-panel .table-card {
    min-height: 0;
  }

  .table-tools {
    width: 100%;
  }

  .filter-meta {
    align-items: stretch;
  }

  .search-input,
  .filter-select,
  .track-filter-select {
    width: 100%;
  }

  .top-nav-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand socials actions"
      "menu menu menu";
    align-items: center;
    gap: 7px 9px;
    padding: 8px 12px 10px;
  }

  .top-nav-brand {
    grid-area: brand;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .top-nav-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .top-nav-center {
    grid-area: menu;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .top-nav-menu {
    display: flex;
    width: 100%;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 0;
  }

  .top-nav-group-menu {
    min-width: 210px;
    max-width: min(280px, calc(100vw - 32px));
  }

  .top-nav-center::after {
    display: none;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  .nav-social {
    min-width: 34px;
    min-height: 34px;
    padding: 7px;
    font-size: 0.74rem;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-actions.hero-actions-stacked-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "today races"
      "driver driver"
      "stats stats"
      "online online";
    gap: 10px;
    align-items: stretch;
  }

  .hero-side {
    grid-area: stats;
  }

  .hero-side-compact {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.82fr);
  }

  .hero-actions-stacked-mobile .btn,
  .btn-today-stats,
  .btn-last-races,
  .btn-driver-day {
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    padding: 13px 14px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .support-hourly-widget .support-widget-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: auto auto;
  }

  .support-hourly-widget .support-widget-qr-shell {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 96px;
  }

  .support-hourly-widget .support-widget-copy {
    -webkit-line-clamp: 2;
  }

  .support-center-widget .support-widget-card {
    grid-template-columns: minmax(0, 1fr) auto 90px;
  }

  .hero-actions-row {
    grid-template-columns: 1fr;
  }

  .hero-hourly-card {
    margin-bottom: 6px;
    margin-inline: 0;
  }

  .hero-hourly-winner-card {
    min-height: 82px;
  }

  .hero-online-card {
    min-height: 104px;
    max-height: none;
  }

  .cards-top3.cards-top3-hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card-page {
    grid-template-columns: 1fr;
  }

  .driver-stats-grid,
  .driver-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-penalties-grid {
    grid-template-columns: 1fr;
  }

  .today-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-stats-details {
    grid-template-columns: 1fr;
  }

  .activity-controls {
    grid-template-columns: 1fr;
  }

  .activity-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .driver-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .race-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-day-card-wide {
    grid-column: span 2;
  }

  .modal-overlay {
    --modal-offset-bottom: 12px;
    align-items: flex-start;
    padding: 12px;
  }

  .modal-card,
  .modal-card.modal-card-driver {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - var(--top-nav-modal-offset, 140px) - var(--modal-offset-bottom, 12px));
    margin: 0;
    padding: 20px 14px 14px;
    border-radius: 18px;
  }

  .modal-card.modal-card-activity {
    max-height: calc(100dvh - var(--top-nav-modal-offset, 140px) - var(--modal-offset-bottom, 12px));
  }

  .modal-header {
    margin-bottom: 16px;
    padding-right: 44px;
  }

  .hourly-modal-subtitle-grid,
  .hourly-modal-grid {
    grid-template-columns: 1fr;
  }

  .hourly-modal-panel-grid-three {
    grid-template-columns: 1fr;
  }

  .hourly-modal-panel-item {
    min-height: 0;
  }

  .hourly-modal-details-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hourly-modal-cta-btn {
    width: 100%;
  }

  .today-stat-card,
  .today-detail-card,
  .driver-day-card {
    min-width: 0;
    padding: 14px;
  }

  .today-stat-value,
  .today-detail-main {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .today-detail-sub,
  .today-stat-label,
  .modal-subtitle {
    overflow-wrap: anywhere;
  }

  .activity-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-panel-note {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .races-header-search {
    width: 100%;
    margin-left: 0;
  }
  .server-player-row:not(.server-status-row){grid-template-columns:30px minmax(0,1fr) 58px;gap:4px;min-height:0;padding:2px 3px}.server-player-row:not(.server-status-row) .server-player-main{display:grid;gap:1px}.server-player-row:not(.server-status-row) .server-player-car{max-width:58px;max-height:24px}

  .clubs-teams-home-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .clubs-teams-home-tabs,
  .clubs-teams-home-directory {
    width: 100%;
  }

  .clubs-teams-home-tab {
    flex: 1 1 50%;
  }

  html {
    scroll-padding-top: 140px;
  }

  .container {
    width: min(100% - 20px, 1200px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .pilot-name {
    font-size: 20px;
  }

  .mini-value {
    font-size: 24px;
  }

  .pagination-wrap {
    align-items: stretch;
  }

  .pagination {
    width: 100%;
  }

  .page-btn {
    flex: 1 1 auto;
  }

  .lang-switch-floating {
    top: 14px;
    right: 14px;
  }

  .top-nav {
    --top-nav-band-width: min(1200px, calc(100% - 20px));
  }

  .lang-btn {
    min-width: 40px;
    min-height: 32px;
    padding: 0 6px;
  }

  .lang-flag {
    width: 22px;
    height: 16px;
  }

  .lang-switch {
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
  }

  .top-nav-inner {
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px 7px;
  }

  .top-nav-brand {
    gap: 6px;
  }

  .top-nav-brand-text {
    display: none;
  }

  .top-nav-brand-logo {
    width: 34px;
    height: 34px;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .nav-social {
    min-width: 31px;
    min-height: 31px;
    padding: 6px;
    font-size: 0.68rem;
  }

  .social-icon {
    width: 15px;
    height: 15px;
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "support"
      "today"
      "races"
      "driver"
      "stats"
      "online";
  }

  .support-inline-widget.support-hourly-widget .support-widget-card,
  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
  }

  .support-inline-widget.support-hourly-widget .support-widget-qr-shell,
  .support-inline-widget.support-center-widget .support-widget-qr-shell {
    display: none;
  }

  .support-inline-widget.support-hourly-widget .support-widget-copy,
  .support-inline-widget.support-center-widget .support-widget-copy {
    -webkit-line-clamp: 2;
  }

  .support-center-widget {
    grid-area: support;
    order: -1;
  }

  .support-inline-widget.support-center-widget .support-widget-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 150px;
    width: fit-content;
  }

  .support-inline-widget.support-center-widget .support-widget-copy-block {
    grid-column: 1;
    min-width: 0;
  }

  .hero-side-compact,
  .cards-top3.cards-top3-hero {
    grid-template-columns: 1fr;
  }

  .hero-actions-stacked-mobile .btn,
  .btn-driver-day,
  .btn-today-stats,
  .btn-last-races {
    width: 100%;
    min-width: 0;
  }

  .hero-side .mini-value {
    font-size: 16px;
  }

  .cards-top3-hero .pilot-name {
    font-size: 14px;
  }

  .hero-hourly-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-hourly-meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-hourly-winner-card {
    min-height: 96px;
  }

  .hero-hourly-winner-media {
    min-height: 0;
  }

  .hero-hourly-winner-card::before {
    width: 150px;
    height: 150px;
    opacity: 0.18;
  }

  .hero-hourly-winner-car {
    width: min(160px, 62%);
  }

  .btn-today-stats,
  .btn-last-races,
  .btn-driver-day {
    font-size: 0.92rem;
  }

  .hero-primary-actions {
    grid-template-columns: 1fr;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .page-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-hero-stats .mini-stat {
    min-height: 0;
  }

  .page-hero-stats .mini-value,
  .page-hero-stats .mini-note,
  .page-hero-stats .driver-link {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-hero-stats .mini-value {
    font-size: clamp(0.8rem, 4.1vw, 1.7rem);
    line-height: 1.05;
  }

  .page-hero-stats .mini-note {
    line-height: 1.25;
  }

  .page-hero-copy .hero-subtitle.page-hero-subtitle {
    font-size: 16px;
  }

  .modal-overlay {
    --modal-offset-bottom: 8px;
    padding: 8px;
  }

  .modal-overlay.is-open {
    padding-top: var(--top-nav-modal-offset, 84px);
  }

  .modal-card,
  .modal-card.modal-card-driver {
    max-height: calc(100dvh - var(--top-nav-modal-offset, 84px) - var(--modal-offset-bottom, 8px));
    padding: 18px 12px 12px;
  }

  .modal-card.modal-card-slot {
    overflow: auto;
    max-height: calc(100dvh - var(--top-nav-modal-offset, 84px) - var(--modal-offset-bottom, 8px));
  }

  .modal-card.modal-card-activity {
    max-height: calc(100dvh - var(--top-nav-modal-offset, 84px) - var(--modal-offset-bottom, 8px));
  }

  #driver-preview-modal{top:var(--driver-preview-top,8px);z-index:999}
  #driver-preview-modal.is-open{padding-top:8px}
  .modal-card-driver-preview{height:100%;max-height:100%;min-width:0;padding-bottom:12px}

  .driver-preview-scroll {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .hourly-modal-panel,
  .hourly-modal-weather,
  .hourly-modal-subtitle-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hourly-modal-left-cluster,
  .hourly-modal-side-card,
  .hourly-modal-side-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .driver-name-meta {
    gap: 6px;
  }

  .today-stats-grid,
  .driver-day-grid {
    grid-template-columns: 1fr;
  }

  .hero-funnel-actions {
    flex-direction: column;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
  }

  .driver-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-highlights-grid {
    grid-template-columns: 1fr;
  }

  :is(.driver-hero-mainline,.driver-preview-hero-mainline){display:block;position:relative}
  :is(.driver-hero-mainline,.driver-preview-hero-mainline) .driver-steam-portrait{position:absolute;inset:0 auto auto 0;width:56px}
  :is(.driver-hero-mainline .driver-hero-copy,.driver-preview-hero-mainline .driver-preview-hero-copy){padding-top:64px}
  :is(.driver-hero-mainline,.driver-preview-hero-mainline) .driver-steam-portrait[hidden]+*{padding-top:0}

  .driver-title-primary{display:block}
  .driver-title-name{display:block;white-space:normal}
  #driver-page-name{grid-template-columns:minmax(0,1fr)}
  #driver-page-name .driver-title-affiliations{grid-column:1;grid-row:3;margin-top:10px}

  .driver-preview-hero-mainline{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:start}
  .driver-preview-hero-mainline .driver-preview-steam-portrait{position:relative;inset:auto;width:48px;height:48px;aspect-ratio:1;border-radius:13px}
  .driver-preview-hero-mainline .driver-preview-hero-copy{display:grid;gap:6px;min-width:0;padding-top:0}
  #driver-preview-title{display:block;font-size:clamp(1.25rem,7vw,1.75rem);line-height:1.05}
  #driver-preview-title .driver-title-primary{display:block;min-width:0}
  .driver-preview-profile-title{max-width:100%;padding:5px 8px;font-size:.62rem}
  .driver-preview-action-row{flex-wrap:wrap;margin-top:2px}
  .driver-preview-action-row .driver-title-affiliations{flex:1 0 100%;width:auto;min-width:0;margin-left:0}

  .modal-card-driver-preview .driver-preview-stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .filter-meta-left,
  .filter-chip-row {
    width: 100%;
  }

  .race-modal-summary {
    grid-template-columns: 1fr;
  }

  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-summary-card {
    min-height: 82px;
    padding: 12px;
  }

  .activity-days-navigation {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .activity-scroll-button {
    width: 36px;
    height: 36px;
  }

  .activity-day-pill {
    min-width: 76px;
  }

  .activity-panel {
    margin-inline: -2px;
    padding: 12px;
  }

  .activity-hours-list {
    min-width: 760px;
  }

  .driver-day-card-wide {
    grid-column: span 1;
  }

  .today-stat-value {
    font-size: 1.2rem;
  }

  .today-stat-value-sm,
  .today-detail-main,
  .today-detail-sub {
    font-size: 0.95rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .twitch-widget {
    right: 16px;
    bottom: 16px;
    width: min(320px, calc(100vw - 32px));
  }

  .twitch-widget.is-expanded {
    width: min(50vw, calc(100vw - 32px));
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links a {
    flex: 1 1 auto;
  }

  .hero-online-chart {
    gap: 6px;
    height: 90px;
  }

  .hero-online-scale {
    height: 90px;
  }

  .hero-online-bar {
    max-width: 22px;
  }

  .hero-online-range {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .modal-header-driver-preview {
    padding-right: 34px;
  }

  .modal-card-driver-preview .driver-hero-ratings {
    align-items: flex-start;
  }


  .top-nav-inner {
    padding: 7px 8px 9px;
    gap: 6px 5px;
  }

  .news-notifications-panel {
    left: var(--news-popover-inset, 6px);
    right: var(--news-popover-inset, 6px);
    width: auto;
    max-width: none;
    padding: 14px;
    border-radius: 20px;
  }

  .news-notifications-panel::before {
    display: none;
  }

  .top-nav-group {
    width: auto;
    min-width: 0;
  }

  .top-nav-group-link {
    font-size: 0.8rem;
  }

  .top-nav-brand-logo {
    width: 28px;
    height: 28px;
  }

  .top-nav-socials {
    gap: 3px;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .nav-social {
    min-width: 24px;
    min-height: 24px;
    padding: 4px;
  }

  .social-icon {
    width: 13px;
    height: 13px;
  }

  .lang-switch {
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
  }

  .lang-btn {
    min-width: 31px;
    min-height: 28px;
    padding: 0 3px;
  }

  .lang-flag {
    width: 18px;
    height: 14px;
  }

  .top-nav-more-toggle {
    gap: 6px;
  }

  .top-nav-more-icon {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .top-nav-brand {
    gap: 0;
  }

  .top-nav-brand-text {
    display: none;
  }
}

+}

}
@layer v1Runtime {
﻿:root {
}

@layer tokens, reset, base, layout, components, pages, utilities, legacy, overrides;

/*
 * R11 migration boundary. Existing rules keep their exact internal source order
 * in `legacy`; consolidated rules move to the named layers above.
 */
@layer legacy {

/* Wide safety table needs horizontal scroll area */
.safety-table-dynamic {
  min-width: 980px;
}

/* ===== FUN STATS PAGE ===== */

.fun-hero-card {
  overflow: hidden;
}

.fun-period-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.fun-period-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fun-period-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fun-period-btn:hover {
  color: var(--text);
}

.fun-period-btn.active {
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.92), rgba(255, 209, 102, 0.92));
  color: #11161d;
  box-shadow: 0 12px 30px rgba(255, 91, 46, 0.22);
}

.fun-period-range {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.fun-summary-grid,
.fun-awards-grid,
.fun-lists-grid {
  display: grid;
  gap: 18px;
}

.fun-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.fun-awards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fun-lists-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fun-summary-card,
.fun-award-card,
.fun-list-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 21, 31, 0.92), rgba(11, 15, 20, 0.9));
  box-shadow: var(--shadow);
}

.fun-summary-card {
  padding: 22px;
}

.fun-summary-label,
.fun-award-label,
.fun-list-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fun-summary-value {
  margin-top: 10px;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 900;
}

.fun-summary-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fun-summary-card-driver-note .fun-summary-value {
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.1;
}

.fun-summary-card-driver-note .fun-summary-note {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fun-award-card {
  padding: 24px;
  position: relative;
}

.fun-award-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.14);
}

.fun-award-card-accent::before {
  background: linear-gradient(90deg, #ff5b2e, #ffd166);
}

.fun-award-card-warm::before {
  background: linear-gradient(90deg, #ffd166, #ff8a3d);
}

.fun-award-card-gold::before {
  background: linear-gradient(90deg, #ffe28a, #f5c451);
}

.fun-award-card-cool::before {
  background: linear-gradient(90deg, #67d1ff, #5d9cff);
}

.fun-award-card-clean::before {
  background: linear-gradient(90deg, #39d98a, #9cf7cb);
}

.fun-award-card-danger::before {
  background: linear-gradient(90deg, #ef4444, #ff8c7a);
}

.fun-award-card-neutral::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
}

.fun-award-title {
  margin-top: 14px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
}

.fun-award-title .driver-link-heading {
  font-size: inherit;
}

.fun-award-note {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.fun-list-card {
  padding: 22px;
}

.fun-lists-grid .fun-list-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(255, 120, 72, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(26, 18, 18, 0.96), rgba(14, 14, 18, 0.92));
}

.fun-lists-grid .fun-list-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(98, 170, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(16, 21, 31, 0.96), rgba(11, 15, 20, 0.92));
}

.fun-lists-grid .fun-list-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(76, 217, 136, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(16, 27, 23, 0.96), rgba(11, 15, 20, 0.92));
}

.fun-lists-grid .fun-list-card:nth-child(4) {
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(30, 24, 14, 0.96), rgba(14, 14, 18, 0.92));
}

.fun-lists-grid .fun-list-card:nth-child(5) {
  background:
    radial-gradient(circle at top right, rgba(205, 146, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(26, 18, 33, 0.96), rgba(12, 14, 20, 0.92));
}

.fun-lists-grid .fun-list-card:nth-child(6) {
  background:
    radial-gradient(circle at top right, rgba(142, 220, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(15, 24, 30, 0.96), rgba(11, 15, 20, 0.92));
}

.fun-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fun-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fun-list-item-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.fun-list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 91, 46, 0.14);
  color: #ffd8c7;
}

.fun-list-main {
  min-width: 0;
  font-weight: 700;
}

.fun-list-side {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.community-hero-card {
  min-height: 0;
  padding: clamp(16px, 1.4vw, 22px);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 76, 48, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(18, 24, 34, 0.96), rgba(11, 15, 20, 0.92));
}

.community-hero-card .page-hero-copy {
  display: grid;
  gap: 8px;
}

.community-hero-card h1 {
  margin: 0;
}

.community-hero-card .hero-subtitle {
  max-width: 820px;
}

.community-feed {
  display: grid;
  gap: 22px;
}

.community-feed-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(14, 19, 27, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.community-feed-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 8px 6px 8px 8px;
}

.community-feed-date {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  background: rgba(255, 76, 48, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.community-feed-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.12;
}

.community-feed-text {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.community-feed-text p {
  margin: 0;
}

.community-feed-text ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
}

.community-feed-text li {
  padding-left: 2px;
}

.community-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.community-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.community-like-btn:hover:not(:disabled),
.community-like-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 76, 48, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 76, 48, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 76, 48, 0.08);
}

.community-like-btn:focus-visible {
  outline: 2px solid rgba(255, 76, 48, 0.65);
  outline-offset: 2px;
}

.community-like-btn:disabled {
  cursor: default;
  opacity: 0.74;
}

.community-like-btn.is-liked {
  border-color: rgba(255, 76, 48, 0.54);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 76, 48, 0.28), rgba(255, 76, 48, 0.11)),
    rgba(255, 76, 48, 0.12);
}

.community-like-heart {
  color: var(--accent);
  line-height: 1;
}

.community-like-btn.is-liked .community-like-heart {
  color: #ff6b4a;
}

.community-like-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.community-feed-gallery {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.community-feed-gallery-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-feed-photo {
  min-height: 240px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.community-feed-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.community-feed-photo-btn:disabled {
  cursor: default;
}

.community-feed-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.community-lightbox-modal {
  padding: clamp(18px, 3vw, 34px);
}

.community-lightbox-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(96vw, 1480px);
  height: min(88vh, 960px);
  padding: 14px;
  border-radius: 22px;
  background: rgba(8, 12, 18, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.community-lightbox-close {
  top: 16px;
  right: 16px;
  z-index: 2;
}

.community-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.top-nav-news-bell {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.news-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  color: #fff6ea;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.news-bell-btn:hover,
.news-bell-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 91, 46, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 91, 46, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 91, 46, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.news-bell-btn.has-unread {
  border-color: rgba(255, 110, 69, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 110, 69, 0.24), rgba(255, 255, 255, 0.04)),
    rgba(255, 110, 69, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 110, 69, 0.18),
    0 12px 30px rgba(255, 75, 33, 0.28);
}

.news-bell-btn.has-unread .news-bell-icon {
  color: #fff2d9;
}

.news-bell-btn:focus-visible {
  outline: 2px solid rgba(255, 91, 46, 0.58);
  outline-offset: 2px;
}

.news-bell-icon {
  font-size: 1.02rem;
  line-height: 1;
}

.news-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6e45, #ff4b21);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(255, 75, 33, 0.35);
}

.top-nav-link-secondary.is-current {
  border-color: rgba(255, 91, 46, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 91, 46, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(255, 91, 46, 0.08);
  color: #fff4ef;
}

.news-notifications-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  width: min(460px, calc(100vw - 28px));
  max-height: min(70vh, 680px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.985), rgba(11, 15, 20, 0.985));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.news-notifications-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.98);
  transform: rotate(45deg);
}

.news-notifications-popover-head {
  margin-bottom: 14px;
}

.news-notifications-popover-title {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text);
}

.news-notifications-popover-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.news-notifications-list {
  display: grid;
  gap: 12px;
}

.news-notification-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.news-notification-card:hover,
.news-notification-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 91, 46, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 91, 46, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 91, 46, 0.05);
}

.news-notification-card.is-unread {
  border-color: rgba(255, 209, 102, 0.26);
  box-shadow: inset 3px 0 0 rgba(255, 209, 102, 0.92);
}

.news-notification-card--membership {
  border-color: rgba(255, 91, 46, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 91, 46, 0.16), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.news-notification-card {
  display: block;
}

.news-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.news-thumb-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.2), transparent 50%),
    linear-gradient(145deg, rgba(36, 48, 64, 0.96), rgba(16, 23, 31, 0.98));
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.news-notification-thumb {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
}

.news-notification-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.news-bilingual-stack {
  display: grid;
  gap: 4px;
}

.news-notification-meta,
.news-feed-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.news-notification-title,
.news-feed-title {
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}

.news-notification-title {
  font-size: 1rem;
}

.news-notification-title-secondary {
  color: rgba(236, 243, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-feed-summary {
  color: var(--muted);
  line-height: 1.55;
}

.news-notifications-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.news-notifications-open-all {
  border-color: rgba(255, 91, 46, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 91, 46, 0.22), rgba(255, 255, 255, 0.05)),
    rgba(255, 91, 46, 0.14);
  color: #fff4ef;
  box-shadow: 0 14px 28px rgba(255, 91, 46, 0.18);
}

.news-notifications-open-all:hover,
.news-notifications-open-all:focus-visible {
  border-color: rgba(255, 133, 93, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 91, 46, 0.32), rgba(255, 255, 255, 0.06)),
    rgba(255, 91, 46, 0.22);
  box-shadow: 0 18px 34px rgba(255, 91, 46, 0.24);
}

.news-hero-card {
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 209, 102, 0.15), transparent 30%),
    radial-gradient(circle at 10% 14%, rgba(255, 91, 46, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(18, 24, 34, 0.96), rgba(11, 15, 20, 0.92));
}

.news-feed {
  display: grid;
  gap: 18px;
}

.news-feed-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(14, 19, 27, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

.news-feed-card-link {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.news-feed-thumb {
  min-height: 230px;
  border-radius: 0;
}

.news-feed-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.news-feed-title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.news-feed-summary {
  margin: 0;
  font-size: 1rem;
}

.news-feed-cta {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 91, 46, 0.12);
  color: #ffd8c7;
  font-size: 0.84rem;
  font-weight: 800;
}

.news-article {
  display: grid;
  gap: 18px;
}

.news-back-link {
  width: fit-content;
  color: #ffd8c7;
  text-decoration: none;
  font-weight: 800;
}

.news-back-link:hover,
.news-back-link:focus-visible {
  color: #fff4ef;
}

.news-article-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(14, 19, 27, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

.news-article-cover-wrap {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.news-article-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-body {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--muted);
  line-height: 1.7;
}

.news-article-body p,
.news-article-body ul {
  margin: 0;
}

.news-article-body ul {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.news-inline-link {
  color: #ffd8c7;
  font-weight: 800;
  text-decoration-color: rgba(255, 91, 46, 0.56);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.news-inline-link:hover,
.news-inline-link:focus-visible {
  color: #fff4ef;
  text-decoration-color: rgba(255, 133, 93, 0.88);
}

@media (min-width: 900px) {
  .community-feed-photo-btn {
    cursor: zoom-in;
  }

  .community-feed-photo img {
    transition: transform 0.18s ease, filter 0.18s ease;
  }

  .community-feed-photo-btn:hover img,
  .community-feed-photo-btn:focus-visible img {
    transform: scale(1.025);
    filter: brightness(1.08);
  }

  .community-feed-photo-btn:focus-visible {
    outline: 2px solid rgba(255, 76, 48, 0.72);
    outline-offset: -4px;
  }
}

@media (max-width: 1080px) {
  .fun-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fun-lists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-feed-card {
    grid-template-columns: 1fr;
  }

  .news-feed-card-link {
    grid-template-columns: 1fr;
  }

  .news-feed-thumb {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .twitch-widget,
  .twitch-widget.is-expanded {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  .twitch-widget-header {
    gap: 8px;
  }

  .twitch-widget-actions {
    flex-wrap: wrap;
  }

  .fun-period-toolbar {
    align-items: stretch;
  }

  .fun-period-switch {
    width: 100%;
  }

  .fun-period-btn {
    flex: 1 1 0;
  }

  .fun-summary-grid,
  .fun-awards-grid,
  .fun-lists-grid {
    grid-template-columns: 1fr;
  }

  .fun-list-item {
    grid-template-columns: auto 1fr;
  }

  .fun-list-side {
    grid-column: 2;
    text-align: left;
  }

  .community-feed-card {
    padding: 14px;
    border-radius: 18px;
  }

  .community-feed-gallery-2 {
    grid-template-columns: 1fr;
  }

  .community-feed-photo,
  .community-feed-photo-btn,
  .community-feed-photo img {
    min-height: 210px;
  }

  .top-nav-news-bell {
    margin-right: 8px;
  }

  .news-bell-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .news-notification-card {
    padding: 10px;
  }

  .news-notification-thumb {
    border-radius: 14px;
  }

  .news-feed-copy {
    padding: 16px;
  }

  .news-feed-thumb {
    min-height: 180px;
  }

  .news-notifications-footer {
    justify-content: stretch;
  }

  .news-notifications-open-all {
    width: 100%;
    justify-content: center;
  }

  .news-notifications-panel {
    top: calc(100% + 10px);
    right: -6px;
    width: min(420px, calc(100vw - 16px));
    padding: 14px;
    border-radius: 18px;
  }

  .news-notifications-panel::before {
    right: 18px;
  }

  .community-lightbox-modal {
    display: none;
  }
}

@media (max-width: 1279px) {
  .top-guide,
  .top-guide-launcher,
  .top-guide-highlight {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-video-bg {
    display: none;
  }
}

@media (max-width: 768px) {
  .bg-video-sound-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video-sound-toggle,
  .bg-video-sound-toggle::before,
  .bg-video-sound-toggle::after,
  .bg-video-sound-toggle-orbit,
  .bg-video-sound-toggle-bar {
    animation: none;
    transition: none;
  }

  .reveal-ready,
  .reveal-ready.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse-attention {
    animation: none;
  }

  .support-widget-btn {
    animation: none;
  }

  .top-nav,
  .top-nav::before,
  .lang-switch,
  .modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .btn,
  .top-nav-link-primary,
  .top-nav-link-secondary,
  .page-btn,
  .modal-close,
  .twitch-widget,
  .twitch-widget-open,
  .twitch-widget-expand,
  .twitch-widget-hide,
  .twitch-widget-launcher,
  .twitch-widget-launcher-close {
    transition: none;
  }
}

/* ===== HERO REFACTOR 1105 ===== */

.hero {
  padding: 16px 0 8px;
}

.hero-card {
  padding: clamp(16px, 1.6vw, 24px);
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(18, 25, 34, 0.94), rgba(18, 22, 30, 0.9)),
    rgba(10, 14, 20, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.hero-card::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(90deg, rgba(255, 91, 46, 0.08), transparent 44%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.58fr) minmax(330px, 0.86fr);
  gap: clamp(14px, 1.4vw, 20px);
}

.hero-main-column {
  grid-template-rows: auto auto auto;
  gap: clamp(12px, 1.2vw, 16px);
}

.hero-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero-funnel-card {
  max-width: 880px;
  margin-top: 0;
}

.hero-funnel-title {
  color: rgba(236, 243, 255, 0.94);
  font-size: clamp(1rem, 1.35vw, 1.26rem);
  line-height: 1.24;
}

.hero-funnel-note {
  max-width: 820px;
  color: rgba(204, 216, 232, 0.78);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.52;
}

.hero-actions.hero-actions-stacked-mobile {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.28fr) minmax(280px, 1.7fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "today races driver online"
    "stats stats stats online";
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(8, 13, 19, 0.34);
}

.hero-actions-stacked-mobile .btn-today-stats,
.hero-actions-stacked-mobile .btn-last-races,
.hero-actions-stacked-mobile .btn-driver-day {
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  color: rgba(236, 243, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-actions-stacked-mobile .btn-today-stats {
  border-color: rgba(255, 209, 102, 0.32);
  background: linear-gradient(135deg, rgba(255, 166, 73, 0.18), rgba(255, 91, 46, 0.08));
  color: #fff4df;
}

.hero-actions-stacked-mobile .btn:hover,
.hero-actions-stacked-mobile .btn:focus-visible {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.hero-side-compact {
  grid-template-columns: minmax(0, 1.18fr) minmax(118px, 0.58fr);
  gap: 8px;
}

.hero-side-compact .mini-stat,
.mini-stat,
.hero-online-card,
.cards-top3-hero .pilot-card,
.support-inline-widget .support-widget-card,
.hero-hourly-winner-card {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.hero-side-compact .mini-stat {
  min-height: 58px;
  padding: 9px 12px;
  border-radius: 12px;
}

.mini-stat-bestlap {
  border-color: rgba(177, 119, 255, 0.2);
  background: linear-gradient(135deg, rgba(116, 77, 184, 0.16), rgba(255, 255, 255, 0.035));
}

.hero-side-compact .mini-stat-bestlap .mini-value,
.hero-side-compact #drivers-count {
  font-size: 1.06rem;
}

.mini-label {
  color: rgba(218, 229, 245, 0.54);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.mini-note {
  color: rgba(218, 229, 245, 0.62);
}

.hero-online-card {
  min-height: 118px;
  padding: 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(99, 169, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.hero-online-card:hover,
.hero-online-card:focus-visible,
.mini-stat:hover,
.driver-stat-card:hover,
.driver-highlight-card:hover,
.race-summary-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.hero-online-title {
  color: rgba(210, 226, 247, 0.6);
}

.hero-online-chart {
  min-height: 82px;
  gap: 8px;
}

.hero-online-bar {
  max-width: 22px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.9), rgba(255, 111, 53, 0.82));
  box-shadow: none;
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-columns: minmax(0, 1fr) minmax(144px, auto) 72px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.07), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.support-inline-widget.support-center-widget .support-widget-title {
  color: rgba(236, 243, 255, 0.88);
}

.support-inline-widget.support-center-widget .support-widget-copy {
  color: rgba(255, 225, 199, 0.66);
}

.support-inline-widget.support-center-widget .support-widget-btn {
  min-height: 42px;
  border-radius: 12px;
  box-shadow: none;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  width: 64px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.cards-top3.cards-top3-hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cards-top3-hero .pilot-card {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.cards-top3-hero .pilot-card.top1 {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 209, 102, 0.18);
}

.cards-top3-hero .meta-box {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(8, 13, 19, 0.24);
}

.hero-hourly-promo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: clamp(16px, 1.5vw, 22px);
  border-radius: 20px;
  border-color: rgba(255, 209, 102, 0.24);
  background:
    linear-gradient(160deg, rgba(255, 209, 102, 0.18), rgba(255, 91, 46, 0.09) 42%, rgba(255, 255, 255, 0.04)),
    rgba(16, 18, 24, 0.9);
  box-shadow: none;
}

.hero-hourly-promo-title {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd166;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 0.96;
  letter-spacing: 0;
  box-shadow: none;
}

.hero-hourly-promo-title:hover,
.hero-hourly-promo-title:focus-visible {
  background: transparent;
  color: #ffe1a1;
}

.hero-hourly-promo-note {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
}

.hero-hourly-winner-card {
  margin-top: auto;
  min-height: 84px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.34);
}

.hero-hourly-winner-card::before {
  opacity: 0.08;
}

.hero-hourly-winner-card::after {
  opacity: 0.35;
}

.hero-hourly-winner-car {
  opacity: 0.46;
}

.hero-hourly-card {
  min-height: auto;
  padding: 18px;
  border-radius: 20px;
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.hero-hourly-card::before {
  background:
    linear-gradient(120deg, rgba(8, 12, 18, 0.66), rgba(8, 12, 18, 0.34)),
    var(--hero-hourly-track-photo);
  opacity: 0.88;
}

.hero-hourly-card:hover,
.hero-hourly-card:focus-visible {
  border-color: rgba(255, 209, 102, 0.36);
  box-shadow: none;
}

.hero-hourly-eyebrow {
  color: rgba(255, 209, 102, 0.86);
  font-size: 0.78rem;
}

.hero-hourly-meta-value {
  font-size: 1.32rem;
  font-weight: 950;
}

.hero-hourly-meta-time {
  color: rgba(236, 243, 255, 0.9);
  font-size: 0.78rem;
}

.hero-hourly-meta-schedule {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.event-countdown {
  color: #ffd166;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-hourly-countdown {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 209, 102, 0.4);
  font-size: 0.78rem;
}

.event-countdown[hidden] {
  display: none;
}

.hero-hourly-votes {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 18, 0.36);
  color: rgba(246, 240, 220, 0.88);
  font-size: 0.9rem;
  box-shadow: none;
}

.hero-hourly-card .btn.hero-hourly-btn {
  min-height: 48px;
  border-radius: 13px;
  box-shadow: 0 12px 26px rgba(255, 91, 46, 0.22);
}

.hero-hourly-promo-title.pulse-attention {
  animation: none;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(310px, 0.9fr);
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "today races driver"
      "stats stats stats"
      "online online online";
  }
}

@media (max-width: 980px) {
  .hero-card {
    padding: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "today races"
      "driver driver"
      "stats stats"
      "online online";
  }

  .hero-hourly-promo {
    order: 2;
  }

  .hero-hourly-card {
    order: 3;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 14px;
  }

  .news-notifications-panel {
    position: fixed;
    top: var(--news-popover-top, 72px);
    left: var(--news-popover-inset, 10px);
    right: var(--news-popover-inset, 10px);
    width: auto;
    max-width: none;
    padding: 16px;
  }

  .news-notifications-panel::before {
    display: none;
  }

  .top-nav-menu {
    gap: 6px;
  }

  .top-nav-group {
    width: auto;
    min-width: 0;
  }

  .top-nav-group-toggle {
    width: auto;
    justify-content: center;
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .top-nav-group-menu {
    left: 0;
    right: auto;
    width: auto;
    min-width: min(240px, calc(100vw - 24px));
  }

  .hero-card {
    padding: 14px;
    border-radius: 20px;
  }

  .hero-main-column {
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .hero-funnel-note {
    font-size: 0.86rem;
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "today"
      "races"
      "driver"
      "stats"
      "online";
    padding: 8px;
  }

  .hero-side-compact,
  .cards-top3.cards-top3-hero {
    grid-template-columns: 1fr;
  }

  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .support-center-widget {
    order: 0;
  }

  .support-inline-widget.support-center-widget .support-widget-btn {
    min-width: 132px;
  }

  .hero-hourly-promo-title {
    font-size: clamp(1.7rem, 11vw, 2.35rem);
  }

  .hero-hourly-meta-line {
    gap: 5px;
  }
}

@media (max-width: 420px) {
  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: 1fr;
  }

  .support-inline-widget.support-center-widget .support-widget-btn {
    justify-self: stretch;
    width: 100%;
  }
}

/* ===== HERO BRAND SYSTEM 1105 V2 ===== */

.hero {
  padding: clamp(18px, 2.2vw, 30px) 0 10px;
}

.hero-card {
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 34px);
  border: 0;
  border-radius: 32px;
  background:
    linear-gradient(115deg, rgba(8, 12, 18, 0.86) 0%, rgba(12, 17, 24, 0.78) 46%, rgba(20, 16, 18, 0.8) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card::before {
  background:
    linear-gradient(90deg, rgba(255, 91, 46, 0.12), transparent 38%),
    linear-gradient(140deg, rgba(255, 209, 102, 0.08), transparent 44%);
  opacity: 0.72;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, 0.92fr);
  gap: clamp(22px, 2.4vw, 34px);
  align-items: start;
}

.hero-main-column {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: clamp(18px, 2vw, 26px);
}

.hero-copy {
  order: 1;
}

.hero-actions-row {
  order: 2;
}

.hero-top3-panel {
  order: 3;
}

.support-inline-widget.support-center-widget {
  order: 4;
}

.hero-copy {
  max-width: 850px;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 10px;
  font-size: clamp(42px, 5.9vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-funnel-card {
  max-width: 780px;
  margin: 0;
}

.hero-funnel-title {
  max-width: 720px;
  color: rgba(236, 243, 255, 0.94);
  font-size: clamp(1.04rem, 1.45vw, 1.42rem);
  font-weight: 850;
  line-height: 1.24;
}

.hero-funnel-note {
  max-width: 760px;
  margin-top: 8px;
  color: rgba(210, 220, 234, 0.76);
  font-size: clamp(0.94rem, 1.05vw, 1.04rem);
  line-height: 1.62;
}

.hero-funnel-link {
  font-weight: 850;
  text-shadow: none;
}

.hero-actions-row {
  max-width: 100%;
}

.hero-actions.hero-actions-stacked-mobile {
  grid-template-columns: minmax(120px, 0.72fr) minmax(120px, 0.72fr) minmax(180px, 1.02fr) minmax(0, 1.46fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "today races driver online"
    "stats stats stats online";
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-primary-actions {
  display: contents;
}

.hero-actions-stacked-mobile .btn-today-stats,
.hero-actions-stacked-mobile .btn-last-races,
.hero-actions-stacked-mobile .btn-driver-day {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: rgba(236, 243, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 850;
}

.hero-actions-stacked-mobile .btn-today-stats {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.96), rgba(255, 91, 46, 0.92));
  color: #101419;
}

.hero-actions-stacked-mobile .btn-last-races,
.hero-actions-stacked-mobile .btn-driver-day {
  margin-left: 8px;
}

.hero-actions-stacked-mobile .btn:hover,
.hero-actions-stacked-mobile .btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-actions-stacked-mobile .btn-today-stats:hover,
.hero-actions-stacked-mobile .btn-today-stats:focus-visible {
  background: linear-gradient(135deg, #ffd166, #ff6d35);
}

.btn-driver-day {
  overflow: hidden;
}

.hero-side {
  grid-area: stats;
  margin-top: clamp(14px, 1.6vw, 20px);
}

.hero-side-compact {
  grid-template-columns: minmax(0, 1.18fr) minmax(130px, 0.66fr) minmax(130px, 0.66fr);
  gap: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats-row {
  display: contents;
}

.hero-server-total-stat {
  display: grid;
}

.hero-side-compact .mini-stat,
.mini-stat,
.hero-online-card,
.support-inline-widget .support-widget-card,
.hero-hourly-winner-card,
.cards-top3-hero .pilot-card,
.cards-top3-hero .meta-box {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-side-compact .mini-stat {
  min-height: 0;
  padding: 0 18px;
  border-radius: 0;
}

.hero-side-compact .mini-stat:first-child {
  padding-left: 0;
}

.hero-side-compact .mini-stat + .mini-stat,
.hero-side-compact .hero-stats-row .mini-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.mini-label {
  margin: 0 0 7px;
  color: rgba(218, 229, 245, 0.48);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.mini-value,
.hero-side-compact .mini-stat-bestlap .mini-value,
.hero-side-compact #drivers-count {
  color: rgba(248, 251, 255, 0.96);
  font-size: clamp(1rem, 1.35vw, 1.32rem);
  line-height: 1.08;
}

.mini-note {
  color: rgba(210, 220, 234, 0.58);
  font-size: 0.72rem;
  line-height: 1.34;
}

.server-status-wrap {
  display: grid;
  gap: 2px;
}

.server-total-label {
  color: rgba(218, 229, 245, 0.56);
  font-size: 0.7rem;
  font-weight: 750;
}

.hero-online-card {
  grid-area: online;
  min-height: 156px;
  margin-left: clamp(18px, 2vw, 26px);
  padding: 0;
  border-radius: 0;
}

.hero-online-card:hover,
.hero-online-card:focus-visible,
.mini-stat:hover,
.driver-stat-card:hover,
.driver-highlight-card:hover,
.race-summary-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hero-online-head {
  margin-bottom: 8px;
}

.hero-online-title {
  color: rgba(210, 226, 247, 0.54);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hero-online-range {
  color: rgba(230, 239, 255, 0.64);
  font-size: 0.72rem;
}

.hero-online-chart {
  min-height: 118px;
  gap: 9px;
}

.hero-online-bar-stage {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.hero-online-bar {
  max-width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.9), rgba(255, 91, 46, 0.86));
  box-shadow: none;
}

.hero-online-date,
.hero-online-scale {
  color: rgba(210, 226, 247, 0.42);
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-columns: minmax(0, 1fr) auto 72px;
  gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: transparent;
}

.support-inline-widget.support-center-widget .support-widget-title {
  color: rgba(236, 243, 255, 0.78);
  font-size: 0.9rem;
}

.support-inline-widget.support-center-widget .support-widget-copy {
  max-width: 560px;
  color: rgba(255, 225, 199, 0.58);
  font-size: 0.78rem;
}

.support-inline-widget.support-center-widget .support-widget-btn {
  min-width: 148px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: none;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  width: 58px;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero-top3-panel {
  align-self: stretch;
  padding-top: 2px;
}

.cards-top3.cards-top3-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 0;
}

.cards-top3-hero .pilot-card {
  min-height: 0;
  padding: 0 18px;
  border-radius: 0;
}

.cards-top3-hero .pilot-card:first-child {
  padding-left: 0;
}

.cards-top3-hero .pilot-card + .pilot-card {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.cards-top3-hero .pilot-rank {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.cards-top3-hero .pilot-name {
  font-size: 0.95rem;
}

.cards-top3-hero .pilot-meta {
  gap: 8px;
  margin-top: 10px;
}

.cards-top3-hero .meta-box {
  padding: 0;
}

.cards-top3-hero .meta-label {
  color: rgba(218, 229, 245, 0.44);
  font-size: 0.64rem;
}

.cards-top3-hero .meta-value {
  color: rgba(236, 243, 255, 0.84);
}

.hero-hourly-promo {
  grid-column: 2;
  grid-row: 1;
  min-height: 370px;
  padding: clamp(22px, 2vw, 30px);
  border: 0;
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 209, 102, 0.24), rgba(255, 91, 46, 0.15) 38%, rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hero-hourly-promo-title {
  max-width: 12ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd166;
  font-size: clamp(2rem, 2.65vw, 3rem);
  line-height: 0.9;
  letter-spacing: 0;
  box-shadow: none;
}

.hero-hourly-promo-title:hover,
.hero-hourly-promo-title:focus-visible {
  background: transparent;
  color: #ffe2a3;
}

.hero-hourly-promo-note {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.98rem;
  line-height: 1.42;
}

.hero-hourly-winner-card {
  min-height: 104px;
  margin-top: auto;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

.hero-hourly-winner-card::before {
  opacity: 0.055;
}

.hero-hourly-winner-card::after {
  display: none;
}

.hero-hourly-winner-label {
  color: rgba(255, 255, 255, 0.48);
}

.hero-hourly-winner-name {
  font-size: clamp(1.15rem, 1.55vw, 1.52rem);
}

.hero-hourly-winner-meta {
  color: rgba(255, 255, 255, 0.58);
}

.hero-hourly-winner-car {
  right: 0;
  bottom: 0;
  width: min(164px, 40%);
  max-height: 78px;
  opacity: 0.42;
}

.hero-hourly-card {
  grid-column: 2;
  grid-row: 2;
  margin-top: -12px;
  padding: 0 clamp(22px, 2vw, 30px) clamp(22px, 2vw, 30px);
  border: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}

.hero-hourly-card::before {
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(160deg, rgba(8, 12, 18, 0.58), rgba(8, 12, 18, 0.22)),
    var(--hero-hourly-track-photo);
  opacity: 0.56;
}

.hero-hourly-head,
.hero-hourly-meta,
.hero-hourly-votes,
.hero-hourly-actions {
  position: relative;
  z-index: 1;
}

.hero-hourly-eyebrow {
  color: rgba(255, 209, 102, 0.76);
  font-size: 0.76rem;
}

.hero-hourly-meta-value {
  font-size: clamp(1.32rem, 1.8vw, 1.7rem);
  font-weight: 950;
}

.hero-hourly-votes {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(246, 240, 220, 0.78);
  backdrop-filter: none;
}

.hero-hourly-card .btn.hero-hourly-btn {
  min-height: 52px;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(255, 91, 46, 0.22);
}

.hero-hourly-promo-title.pulse-attention {
  animation: none;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-hourly-promo,
  .hero-hourly-card {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-hourly-card {
    margin-top: -28px;
  }
}

@media (max-width: 980px) {
  .hero-card {
    padding: 22px;
    border-radius: 28px;
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "today races driver"
      "stats stats stats"
      "online online online";
    row-gap: 18px;
  }

  .hero-online-card {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "today"
      "races"
      "driver"
      "stats"
      "online";
    row-gap: 10px;
  }

  .hero-actions-stacked-mobile .btn-last-races,
  .hero-actions-stacked-mobile .btn-driver-day {
    margin-left: 0;
  }

  .hero-side-compact {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 16px;
  }

  .hero-side-compact .mini-stat,
  .hero-side-compact .mini-stat:first-child {
    padding: 0;
    border-left: 0;
  }

  .hero-side-compact .mini-stat + .mini-stat,
  .hero-side-compact .hero-stats-row .mini-stat {
    border-left: 0;
  }

  .cards-top3.cards-top3-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cards-top3-hero .pilot-card,
  .cards-top3-hero .pilot-card:first-child {
    padding: 0;
    border-left: 0;
  }

  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-inline-widget.support-center-widget .support-widget-btn {
    justify-self: stretch;
    width: 100%;
  }

  .support-inline-widget.support-center-widget .support-widget-qr-shell {
    display: none;
  }

  .hero-hourly-promo {
    min-height: 330px;
    padding: 22px;
    border-radius: 24px;
  }

  .hero-hourly-promo-title {
    font-size: clamp(2.2rem, 15vw, 3.25rem);
  }

  .hero-hourly-card {
    margin-top: -26px;
    padding: 0 22px 22px;
    border-radius: 0 0 24px 24px;
  }

  .hero-hourly-card::before {
    border-radius: 0 0 24px 24px;
  }
}

/* ===== BEST LAP TRACK CTA + VIDEO SOUND TUNE 0605 ===== */

.bestlap-track-cta,
.bestlap-tracks-open.bestlap-track-cta,
.driver-stat-label-button.bestlap-track-cta,
.mini-stat-bestlap .mini-value.bestlap-track-cta,
.hero-side-compact .mini-stat-bestlap .mini-value.bestlap-track-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(216, 180, 254, 0.52);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 180, 254, 0.32), transparent 48%),
    linear-gradient(135deg, rgba(147, 51, 234, 0.96), rgba(109, 40, 217, 0.94));
  box-shadow:
    0 12px 28px rgba(126, 34, 206, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(40, 12, 72, 0.45);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.bestlap-track-cta:hover,
.bestlap-track-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(237, 233, 254, 0.78);
  filter: brightness(1.05);
  box-shadow:
    0 16px 34px rgba(126, 34, 206, 0.44),
    0 0 0 1px rgba(216, 180, 254, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.bestlap-track-cta:focus-visible {
  outline: 2px solid rgba(237, 233, 254, 0.75);
  outline-offset: 3px;
}

.mini-stat-bestlap {
  align-content: center;
}

.mini-stat-bestlap .bestlap-track-cta {
  width: 100%;
  min-height: 38px;
  margin: 2px 0 0;
}

.mini-stat-bestlap .mini-label,
.mini-stat-bestlap .mini-note {
  display: none;
}

.driver-stat-label-button.bestlap-track-cta {
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.bg-video-sound-toggle-icon {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 13px;
}

.bg-video-sound-toggle-icon::before {
  inset: 5px;
  border-radius: 10px;
}

.bg-video-sound-toggle-bar {
  width: 4px;
}

.bg-video-sound-toggle-bar:nth-child(1) {
  height: 11px;
}

.bg-video-sound-toggle-bar:nth-child(2) {
  height: 17px;
}

.bg-video-sound-toggle-bar:nth-child(3) {
  height: 14px;
}

.bg-video-sound-toggle-title {
  font-size: 11px;
  letter-spacing: 0.055em;
}

.bg-video-sound-toggle-note {
  display: none;
}

.bg-video-sound-toggle::after {
  inset: auto 16px 7px 56px;
}

/* ===== HERO THREE COLUMN LAYOUT 1105 V3 ===== */

.hero-card {
  padding: clamp(24px, 2.5vw, 40px);
}

.hero-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 2.8vw, 44px);
  align-items: start;
}

.hero-main-column {
  display: contents;
}

.hero-copy {
  grid-column: 1 / -1;
  order: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: end;
  max-width: none;
  padding-bottom: clamp(18px, 1.8vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 3.15vw, 58px);
  line-height: 0.95;
}

.hero-funnel-title {
  font-size: clamp(1rem, 1.1vw, 1.18rem);
}

.hero-funnel-note {
  max-width: 760px;
  font-size: 0.94rem;
}

.hero-actions-row {
  grid-column: 1;
  order: 1;
  margin-top: 0;
}

.hero-actions.hero-actions-stacked-mobile {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "driver"
    "today"
    "stats"
    "online";
  row-gap: clamp(16px, 1.5vw, 22px);
}

.hero-primary-actions {
  display: contents;
}

.btn-last-races {
  display: none !important;
}

.hero-actions-stacked-mobile .btn-today-stats,
.hero-actions-stacked-mobile .btn-driver-day {
  width: 100%;
  min-height: 54px;
  margin-left: 0;
  padding: 0 22px;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero-actions-stacked-mobile .btn-driver-day {
  grid-area: driver;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(236, 243, 255, 0.9);
}

.hero-actions-stacked-mobile .btn-today-stats {
  grid-area: today;
}

.hero-side {
  grid-area: stats;
  margin-top: 0;
}

.hero-side-compact {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 0 0;
}

.hero-side-compact .mini-stat,
.hero-side-compact .mini-stat:first-child {
  padding: 0;
  border-left: 0;
}

.hero-side-compact .mini-stat + .mini-stat,
.hero-side-compact .hero-stats-row .mini-stat {
  border-left: 0;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero-server-total-stat {
  display: grid;
}

.mini-label {
  font-size: 0.7rem;
}

.mini-value,
.hero-side-compact .mini-stat-bestlap .mini-value,
.hero-side-compact #drivers-count {
  font-size: clamp(1.18rem, 1.55vw, 1.58rem);
}

.hero-online-card {
  grid-area: online;
  min-height: 190px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-online-chart {
  min-height: 140px;
}

.support-inline-widget.support-center-widget {
  grid-column: 2;
  order: 1;
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-columns: 1fr 92px;
  grid-template-rows: auto auto;
  gap: 18px 22px;
  padding: 0 0 24px;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-inline-widget.support-center-widget .support-widget-copy-block {
  grid-column: 1;
  grid-row: 1;
}

.support-inline-widget.support-center-widget .support-widget-title {
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  line-height: 1;
}

.support-inline-widget.support-center-widget .support-widget-copy {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.support-inline-widget.support-center-widget .support-widget-btn {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  grid-column: 2;
  grid-row: 1;
  width: 92px;
  align-self: start;
}

.hero-top3-panel {
  grid-column: 2;
  order: 2;
  padding-top: clamp(18px, 1.7vw, 26px);
}

.cards-top3.cards-top3-hero {
  grid-template-columns: 1fr;
  gap: 20px;
}

.cards-top3-hero .pilot-card,
.cards-top3-hero .pilot-card:first-child {
  padding: 0;
  border-left: 0;
}

.cards-top3-hero .pilot-card + .pilot-card {
  border-left: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cards-top3-hero .pilot-rank {
  width: 38px;
  height: 38px;
}

.cards-top3-hero .pilot-name {
  font-size: 1.06rem;
}

.hero-hourly-promo {
  grid-column: 3;
  grid-row: auto;
  order: 1;
  min-height: 360px;
}

.hero-hourly-card {
  grid-column: 3;
  grid-row: auto;
  order: 2;
  margin-top: -22px;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-actions-row,
  .support-inline-widget.support-center-widget,
  .hero-top3-panel,
  .hero-hourly-promo,
  .hero-hourly-card {
    grid-column: auto;
  }

  .hero-copy {
    order: 1;
    grid-template-columns: 1fr;
  }

  .hero-actions-row {
    order: 2;
  }

  .support-inline-widget.support-center-widget {
    order: 3;
  }

  .hero-top3-panel {
    order: 4;
  }

  .hero-hourly-promo {
    order: 5;
  }

  .hero-hourly-card {
    order: 6;
  }
}

@media (max-width: 640px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: 1fr;
  }

  .support-inline-widget.support-center-widget .support-widget-qr-shell {
    display: none;
  }

  .support-inline-widget.support-center-widget .support-widget-title {
    font-size: clamp(1.38rem, 9vw, 2rem);
  }
}

/* ===== HERO THREE COLUMN LAYOUT 1105 V4 COMPACT ===== */

.hero {
  padding: 12px 0 8px;
}

.hero-card {
  padding: clamp(18px, 1.45vw, 24px);
  border-radius: 24px;
}

.hero-grid {
  gap: clamp(18px, 1.8vw, 28px);
}

.hero-copy {
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 30px);
  padding-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 0.96;
}

.hero-funnel-title {
  font-size: clamp(0.94rem, 0.92vw, 1.08rem);
}

.hero-funnel-note {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-actions.hero-actions-stacked-mobile {
  row-gap: 10px;
}

.hero-actions-stacked-mobile .btn-today-stats,
.hero-actions-stacked-mobile .btn-driver-day {
  min-height: 42px;
  padding: 0 18px;
}

.hero-actions-row,
.support-inline-widget.support-center-widget,
.hero-hourly-promo {
  grid-row: 2;
}

.hero-top3-panel,
.hero-hourly-card {
  grid-row: 2;
  align-self: start;
}

.hero-top3-panel {
  margin-top: clamp(146px, 9.2vw, 178px);
}

.hero-hourly-card {
  margin-top: clamp(260px, 16vw, 306px);
}

.mini-stat-bestlap .mini-value,
.best-lap-value {
  text-shadow: 0 0 22px rgba(184, 77, 255, 0.34);
}

.hero-side-compact {
  gap: 12px;
  padding-top: 12px;
}

.hero-stats-row {
  gap: 14px;
}

.mini-label {
  margin-bottom: 5px;
  font-size: 0.62rem;
}

.mini-value,
.hero-side-compact .mini-stat-bestlap .mini-value,
.hero-side-compact #drivers-count {
  font-size: clamp(1rem, 1.25vw, 1.32rem);
}

.mini-note {
  font-size: 0.66rem;
}

.hero-online-card {
  min-height: 124px;
  padding-top: 12px;
}

.hero-online-chart {
  min-height: 92px;
}

.hero-online-scale {
  min-height: 92px;
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px 16px;
  padding: 0 0 16px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}

.support-inline-widget.support-center-widget .support-widget-title {
  font-size: clamp(1.18rem, 1.45vw, 1.72rem);
  line-height: 1.02;
}

.support-inline-widget.support-center-widget .support-widget-copy {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.support-inline-widget.support-center-widget .support-widget-btn {
  min-height: 42px;
  box-shadow: none;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  width: 76px;
  border-radius: 10px;
}

.hero-top3-panel {
  padding-top: 14px;
}

.cards-top3.cards-top3-hero {
  gap: 12px;
}

.cards-top3-hero .pilot-topline {
  margin-bottom: 4px;
}

.cards-top3-hero .pilot-rank {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
}

.cards-top3-hero .pilot-name {
  font-size: 0.88rem;
}

.cards-top3-hero .pilot-topline-car {
  width: 42px;
  height: 24px;
}

.cards-top3-hero .pilot-card .muted,
.cards-top3-hero .pilot-lap-line {
  font-size: 0.66rem;
}

.cards-top3-hero .pilot-meta {
  gap: 6px;
  margin-top: 6px;
}

.cards-top3-hero .meta-label {
  font-size: 0.58rem;
}

.cards-top3-hero .meta-value {
  font-size: 0.74rem;
}

.hero-hourly-promo {
  min-height: 250px;
  padding: clamp(16px, 1.35vw, 22px);
  border-radius: 22px;
}

.hero-hourly-promo-title {
  font-size: clamp(1.85rem, 2.65vw, 2.9rem);
}

.hero-hourly-promo-note {
  font-size: 0.8rem;
}

.hero-hourly-winner-card {
  min-height: 70px;
  padding-top: 12px;
}

.hero-hourly-winner-name {
  font-size: clamp(1rem, 1.2vw, 1.24rem);
}

.hero-hourly-card {
  margin-top: -14px;
  padding: 0 clamp(16px, 1.35vw, 22px) clamp(16px, 1.35vw, 22px);
  border-radius: 0 0 22px 22px;
}

.hero-hourly-card::before {
  border-radius: 0 0 22px 22px;
}

.hero-hourly-meta-value {
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
}

.hero-hourly-votes {
  font-size: 0.82rem;
}

.hero-hourly-card .btn.hero-hourly-btn {
  min-height: 40px;
}

@media (max-width: 1180px) {
  .hero-copy {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO COMPACT STACK FIX 1105 V6 ===== */

.hero-actions-row,
.support-inline-widget.support-center-widget,
.hero-hourly-promo {
  grid-row: 2;
}

.hero-top3-panel,
.hero-hourly-card {
  grid-row: 2;
  align-self: start;
}

.hero-top3-panel {
  margin-top: clamp(138px, 8.2vw, 166px);
}

.hero-hourly-card {
  margin-top: clamp(222px, 13.2vw, 258px);
}

.hero-hourly-promo {
  min-height: 222px;
}

.hero-hourly-promo-title {
  font-size: clamp(1.65rem, 2.28vw, 2.55rem);
}

.hero-actions-stacked-mobile .btn-today-stats,
.hero-actions-stacked-mobile .btn-driver-day {
  justify-content: center;
  text-align: center;
}

.mini-stat-bestlap .mini-value,
.best-lap-value {
  color: #b84dff;
  text-shadow: 0 0 22px rgba(184, 77, 255, 0.34);
}

@media (max-width: 1180px) {
  .hero-top3-panel,
  .hero-hourly-card {
    grid-row: auto;
    margin-top: 0;
  }
}

/* ===== HERO FINAL SPACING TUNE 1105 V7 ===== */

.hero {
  padding: 8px 0 4px;
}

.hero-card {
  padding: clamp(14px, 1.15vw, 20px);
}

.hero-grid {
  gap: clamp(14px, 1.35vw, 22px);
}

.hero-copy {
  padding-bottom: 8px;
}

.hero-copy h1 {
  font-size: clamp(25px, 1.95vw, 36px);
  line-height: 0.9;
}

.hero-actions-row {
  margin-top: -2px;
}

.hero-actions.hero-actions-stacked-mobile {
  row-gap: 8px;
}

.hero-actions-stacked-mobile .btn-driver-day {
  font-size: 1.04rem;
}

.hero-side-compact {
  padding-top: 10px;
}

.hero-stats-row {
  gap: 22px;
}

.hero-server-total-stat,
.mini-stat-drivers-count {
  min-width: 0;
}

.support-inline-widget.support-center-widget .support-widget-card {
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.support-inline-widget.support-center-widget .support-widget-btn {
  justify-self: center;
  width: min(100%, 300px);
}

.hero-hourly-promo {
  min-height: 214px;
}

.hero-hourly-promo-title {
  font-size: clamp(1.42rem, 1.95vw, 2.16rem);
}

.hero-hourly-promo-title.pulse-attention {
  animation: hourlyTitlePulse 1.65s ease-in-out infinite;
}

@keyframes hourlyTitlePulse {
  0%,
  100% {
    color: #ffd166;
    text-shadow: 0 0 0 rgba(255, 209, 102, 0);
    transform: scale(1);
  }
  50% {
    color: #ffe39b;
    text-shadow:
      0 0 18px rgba(255, 209, 102, 0.5),
      0 0 34px rgba(255, 91, 46, 0.26);
    transform: scale(1.018);
  }
}

.hero-hourly-card {
  margin-top: clamp(232px, 13.8vw, 270px);
}

@media (max-width: 1180px) {
  .hero-hourly-card {
    margin-top: 12px;
  }
}

/* ===== HERO SUPPORT + HOURLY TUNE 1105 V8 ===== */

.hero-top3-panel {
  display: none;
}

.support-inline-widget.support-center-widget {
  align-self: start;
  justify-self: center;
  width: min(100%, 340px);
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-columns: 1fr;
  min-height: 260px;
  gap: 14px;
  padding: 18px;
}

.support-inline-widget.support-center-widget .support-widget-copy-block {
  grid-column: 1;
  grid-row: auto;
}

.support-inline-widget.support-center-widget .support-widget-title {
  width: 100%;
  font-size: clamp(1.32rem, 1.55vw, 1.86rem);
}

.support-inline-widget.support-center-widget .support-widget-copy {
  display: block;
  overflow: visible;
  max-width: none;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.42;
  -webkit-line-clamp: unset;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
  width: 112px;
}

.support-inline-widget.support-center-widget .support-widget-btn {
  grid-column: 1;
  grid-row: auto;
  width: min(100%, 260px);
  min-height: 44px;
}

.hero-hourly-promo {
  min-height: 216px;
  gap: 8px;
}

.hero-hourly-promo-title {
  max-width: none;
  font-size: clamp(1.28rem, 1.62vw, 1.86rem);
  line-height: 0.96;
}

.hero-hourly-promo-note {
  max-width: none;
  font-size: 0.78rem;
  white-space: nowrap;
}

.hero-hourly-winner-card {
  margin-top: auto;
  margin-bottom: 4px;
}

.hero-hourly-card {
  margin-top: 220px;
}

@media (max-width: 1180px) {
  .support-inline-widget.support-center-widget {
    width: 100%;
  }

  .hero-hourly-promo-note {
    white-space: normal;
  }

  .hero-hourly-card {
    margin-top: 4px;
  }
}

/* ===== HERO RIGHT STACK + COMPACT SPACING 1105 V9 ===== */

.hero {
  padding: 6px 0 2px;
}

.hero-card {
  padding: clamp(12px, 1vw, 18px);
}

.hero-grid {
  gap: clamp(10px, 1.1vw, 18px);
}

.hero-copy {
  padding-bottom: 6px;
}

.hero-actions.hero-actions-stacked-mobile {
  row-gap: 6px;
}

.hero-side-compact {
  gap: 8px;
  padding-top: 8px;
}

.hero-online-card {
  min-height: 112px;
  padding-top: 8px;
}

.hero-online-chart,
.hero-online-scale {
  min-height: 82px;
}

.support-inline-widget.support-center-widget .support-widget-card {
  min-height: 0;
  gap: 10px;
  padding: 14px;
}

.hero-hourly-stack {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-self: start;
}

.hero-hourly-promo,
.hero-hourly-card {
  grid-column: auto;
  grid-row: auto;
  order: initial;
  width: 100%;
}

.hero-hourly-promo {
  min-height: 196px;
  padding: 14px 16px;
}

.hero-hourly-winner-card {
  margin-bottom: 0;
}

.hero-hourly-card {
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 18px;
}

.hero-hourly-card::before {
  border-radius: 18px;
}

.hero-hourly-meta {
  gap: 6px;
}

.hero-hourly-votes {
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .hero-hourly-stack {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ===== HERO COLUMN BALANCE + WINNER ART 1105 V10 ===== */

.hero-actions.hero-actions-stacked-mobile {
  row-gap: 10px;
}

.hero-side-compact {
  gap: 12px;
  padding-top: 10px;
}

.hero-online-card {
  min-height: 150px;
  padding-top: 12px;
}

.hero-online-chart,
.hero-online-scale {
  min-height: 118px;
}

.support-inline-widget.support-center-widget .support-widget-card {
  min-height: 322px;
  gap: 12px;
  padding: 18px;
}

.support-inline-widget.support-center-widget .support-widget-title {
  font-size: clamp(1.48rem, 1.7vw, 2rem);
}

.support-inline-widget.support-center-widget .support-widget-copy {
  font-size: 0.9rem;
  line-height: 1.46;
}

.support-inline-widget.support-center-widget .support-widget-btn {
  min-height: 48px;
  font-size: 1.04rem;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  width: 132px;
}

.hero-hourly-promo {
  min-height: 236px;
}

.hero-hourly-winner-card {
  position: relative;
  min-height: 88px;
  padding: 14px 0 0 0;
}

.hero-hourly-winner-card::before {
  top: auto;
  right: -20px;
  bottom: -44px;
  width: 66%;
  height: 170px;
  opacity: 0.11;
  transform: rotate(0deg);
  background-position: right bottom;
}

.hero-hourly-winner-copy {
  padding-left: min(38%, 142px);
}

.hero-hourly-winner-car {
  left: -6px;
  right: auto;
  bottom: -4px;
  width: min(160px, 42%);
  max-height: 86px;
  opacity: 0.66;
}

@media (max-width: 1180px) {
  .hero-hourly-winner-copy {
    padding-left: 0;
  }

  .hero-hourly-winner-car {
    left: auto;
    right: 0;
    opacity: 0.42;
  }
}

/* ===== HERO COLUMN FILL + WINNER BACKDROP 1105 V11 ===== */

.hero-actions-row,
.support-inline-widget.support-center-widget,
.hero-hourly-stack {
  height: 100%;
}

.hero-actions.hero-actions-stacked-mobile {
  height: 100%;
  grid-template-rows: minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(92px, 0.95fr) minmax(150px, 1.55fr);
  align-content: stretch;
}

.hero-side {
  height: 100%;
}

.hero-side-compact {
  height: 100%;
  align-content: stretch;
  grid-template-rows: minmax(52px, 0.9fr) minmax(52px, 0.7fr);
}

.hero-online-card {
  height: 100%;
}

.support-inline-widget.support-center-widget .support-widget-card {
  height: 100%;
  grid-template-rows: auto auto minmax(118px, 1fr);
  align-content: stretch;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  align-self: end;
}

.hero-hourly-promo {
  position: relative;
}

.hero-hourly-winner-card::before {
  top: -40px;
  right: -58px;
  bottom: auto;
  width: 88%;
  height: 230px;
  opacity: 0.13;
  transform: rotate(9deg);
  background-position: center;
}

.hero-hourly-winner-copy {
  position: relative;
  z-index: 3;
  padding-left: 0;
  padding-right: min(34%, 126px);
}

.hero-hourly-winner-media {
  z-index: 2;
}

.hero-hourly-winner-car {
  left: 0;
  right: auto;
  bottom: -8px;
  width: min(220px, 58%);
  max-height: 112px;
  opacity: 0.32;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
}

@media (max-width: 1180px) {
  .hero-actions-row,
  .support-inline-widget.support-center-widget,
  .hero-hourly-stack,
  .hero-side,
  .hero-side-compact,
  .hero-online-card {
    height: auto;
  }

  .hero-actions.hero-actions-stacked-mobile,
  .hero-side-compact,
  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-rows: initial;
  }
}

/* ===== HERO EQUAL COMPACT COLUMNS 1105 V12 ===== */

.hero-card {
  --hero-panel-height: clamp(310px, 18.4vw, 354px);
}

.hero-actions-row,
.support-inline-widget.support-center-widget,
.hero-hourly-stack {
  height: var(--hero-panel-height);
}

.hero-actions.hero-actions-stacked-mobile {
  grid-template-rows: 46px 46px auto minmax(112px, 1fr);
  row-gap: 8px;
}

.hero-side-compact {
  grid-template-rows: auto auto;
  gap: 9px;
  padding-top: 8px;
}

.hero-online-card {
  min-height: 0;
  height: 100%;
}

.hero-online-chart,
.hero-online-scale {
  min-height: 86px;
}

.support-inline-widget.support-center-widget .support-widget-card {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto auto minmax(94px, 1fr);
  gap: 10px;
  padding: 16px;
}

.support-inline-widget.support-center-widget .support-widget-title {
  font-size: clamp(1.34rem, 1.45vw, 1.72rem);
}

.support-inline-widget.support-center-widget .support-widget-copy {
  font-size: 0.82rem;
  line-height: 1.38;
}

.support-inline-widget.support-center-widget .support-widget-btn {
  min-height: 42px;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  width: 112px;
}

.hero-hourly-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 126px;
  gap: 4px;
}

.hero-hourly-promo {
  min-height: 0;
  height: 100%;
}

.hero-hourly-card {
  min-height: 0;
  height: 126px;
}

.hero-hourly-promo-title {
  font-size: clamp(1.32rem, 1.7vw, 2rem);
}

.hero-hourly-winner-card::before {
  top: -18%;
  right: -16%;
  width: 120%;
  height: 132%;
  opacity: 0.12;
  transform: rotate(10deg);
  background-size: contain;
  background-position: center;
}

.hero-hourly-winner-copy {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.hero-hourly-winner-car {
  left: auto;
  right: -8px;
  bottom: -8px;
  width: min(210px, 56%);
  max-height: 110px;
  opacity: 0.34;
}

@media (max-width: 1180px) {
  .hero-card {
    --hero-panel-height: auto;
  }

  .hero-actions-row,
  .support-inline-widget.support-center-widget,
  .hero-hourly-stack,
  .support-inline-widget.support-center-widget .support-widget-card,
  .hero-hourly-promo,
  .hero-hourly-card {
    height: auto;
  }

  .hero-hourly-stack {
    display: flex;
  }
}

/* ===== HERO FINAL MICRO TUNE 1105 V13 ===== */

.hero-actions.hero-actions-stacked-mobile {
  row-gap: 10px;
}

.hero-actions-stacked-mobile .btn-driver-day {
  margin-bottom: 2px;
}

.hero-side-compact {
  padding-top: 14px;
}

.hero-hourly-stack {
  grid-template-rows: minmax(0, 1fr) 150px;
}

.hero-hourly-promo {
  gap: 6px;
}

.hero-hourly-promo::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18% -16% -12% 12%;
  background: url("https://asgracing.ru/assets/crown.png") center / contain no-repeat;
  opacity: 0.12;
  transform: rotate(9deg);
  pointer-events: none;
}

.hero-hourly-promo > * {
  position: relative;
  z-index: 1;
}

.hero-hourly-promo-note {
  margin-bottom: 2px;
}

.hero-hourly-winner-card {
  margin-top: 6px;
}

.hero-hourly-winner-card::before {
  display: none;
}

.hero-hourly-card {
  height: 150px;
  justify-content: space-between;
}

.hero-hourly-card .btn.hero-hourly-btn {
  min-height: 42px;
}

@media (max-width: 1180px) {
  .hero-hourly-card {
    height: auto;
  }
}

.mini-stat-bestlap .bestlap-track-cta {
  width: 100%;
  min-height: 38px;
  margin: 2px 0 0;
}

.mini-stat-bestlap .mini-label,
.mini-stat-bestlap .mini-note {
  display: none;
}

.mini-stat-bestlap.bestlap-tracks-open {
  width: 100%;
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.mini-stat-bestlap.bestlap-tracks-open:focus-visible {
  outline: 2px solid rgba(237, 233, 254, 0.75);
  outline-offset: 3px;
}

.driver-stat-label-button.bestlap-track-cta {
  width: 100%;
  min-height: 44px;
  margin: 0;
}

.server-status-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.server-status-row-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 86px;
}

.server-status-row-count strong {
  color: #f8fbff;
  font-size: 1.35rem;
  line-height: 1;
}

.server-status-row-count span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ===== DONATION ALERTS RECENT SUPPORTERS ===== */

.donation-alerts-widget {
  position: fixed;
  top: calc(var(--top-nav-height, 62px) + 18px);
  left: 12px;
  z-index: 950;
  width: 260px;
  max-width: calc(100vw - 24px);
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 209, 102, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(18, 25, 34, 0.9), rgba(11, 15, 20, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.donation-alerts-widget::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0), rgba(11, 15, 20, 0.92));
}

.donation-alerts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.donation-alerts-title {
  margin: 0;
  color: #fff4df;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0;
}

@keyframes supportWidgetPulseLite {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 16px 30px rgba(255, 91, 46, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  50% {
    transform: translateY(-1px);
    box-shadow:
      0 18px 34px rgba(255, 91, 46, 0.24),
      0 0 0 3px rgba(255, 184, 77, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes hourlyPromoGlowLite {
  0%,
  100% {
    color: #ffd166;
    text-shadow: 0 0 0 rgba(255, 209, 102, 0);
  }

  50% {
    color: #ffe39b;
    text-shadow:
      0 0 10px rgba(255, 209, 102, 0.28),
      0 0 18px rgba(255, 91, 46, 0.12);
  }
}

@keyframes hourlyCtaPulseLite {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 14px 28px rgba(255, 140, 0, 0.16),
      0 0 0 0 rgba(255, 184, 77, 0);
  }

  50% {
    transform: translateY(-1px);
    box-shadow:
      0 16px 32px rgba(255, 140, 0, 0.2),
      0 0 0 4px rgba(255, 184, 77, 0.08);
  }
}

.donation-alerts-goal {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(99, 169, 255, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(99, 169, 255, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(99, 169, 255, 0.1), rgba(57, 217, 138, 0.06)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(99, 169, 255, 0.08);
}

.donation-alerts-goal[hidden] {
  display: none !important;
}

.donation-alerts-goal-embed {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(99, 169, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(99, 169, 255, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(99, 169, 255, 0.08), rgba(57, 217, 138, 0.05)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(99, 169, 255, 0.06);
}

.donation-alerts-goal-embed[hidden] {
  display: none !important;
}

.donation-alerts-goal-embed-frame {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  background: transparent;
}

.donation-alerts-goal-eyebrow {
  color: rgba(153, 204, 255, 0.92);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.donation-alerts-goal-title {
  min-width: 0;
  overflow: hidden;
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.donation-alerts-goal-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.donation-alerts-goal-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #39d98a, #ffd166);
  box-shadow: 0 0 16px rgba(57, 217, 138, 0.26);
}

.donation-alerts-goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(236, 243, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.donation-alerts-goal-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-alerts-special {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px 10px 11px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.24), transparent 58%),
    linear-gradient(145deg, rgba(255, 209, 102, 0.12), rgba(255, 91, 46, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(255, 209, 102, 0.08);
}

.donation-alerts-special-eyebrow {
  color: rgba(255, 209, 102, 0.9);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.donation-alerts-special-name {
  min-width: 0;
  overflow: hidden;
  color: #fff4df;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.donation-alerts-list {
  display: grid;
  gap: 8px;
  max-height: clamp(220px, calc(100vh - 360px), 370px);
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 4px;
  padding-bottom: 24px;
  scrollbar-color: rgba(255, 209, 102, 0.46) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.donation-alerts-list::-webkit-scrollbar {
  width: 6px;
}

.donation-alerts-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.donation-alerts-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.46);
}

.donation-alerts-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.donation-alerts-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.donation-alerts-name {
  min-width: 0;
  overflow: hidden;
  color: #f8fbff;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-alerts-amount {
  min-width: 0;
  max-width: 92px;
  overflow: hidden;
  color: #ffd166;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-alerts-message,
.donation-alerts-time,
.donation-alerts-state {
  color: rgba(236, 243, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.32;
}

.donation-alerts-message {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.donation-alerts-time {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-alerts-state {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1500px) {
  .donation-alerts-widget {
    width: 220px;
  }
}

@media (max-width: 1360px) {
  .donation-alerts-widget {
    top: auto;
    right: 12px;
    bottom: 170px;
    left: auto;
    width: min(244px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 18px;
  }

  .donation-alerts-goal,
  .donation-alerts-special {
    margin-bottom: 8px;
    padding: 8px 9px;
  }

  .donation-alerts-list {
    gap: 7px;
    max-height: 204px;
    padding-bottom: 12px;
  }
}

/* ===== HERO POST-PROD TUNE 1105 V22 ===== */

.hero-actions-stacked-mobile .btn-today-stats {
  font-size: 0.8rem;
}

.hero-actions-stacked-mobile .btn-driver-day,
.driver-day-btn-name {
  font-size: 1.12rem;
}

.driver-day-btn-label {
  font-size: 0.82rem;
}

@media (min-width: 1181px) {
  .hero-stats-row {
    position: relative;
  }

  .hero-stats-row::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-0.5px);
    pointer-events: none;
  }

  .hero-hourly-stack {
    transform: translateX(-16px);
  }

  .hero-hourly-winner-copy {
    max-width: 62%;
  }

  .hero-hourly-winner-name,
  .hero-hourly-winner-meta {
    white-space: nowrap;
  }

  .hero-hourly-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .hero-hourly-meta-value {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(0.98rem, 1.12vw, 1.12rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-hourly-meta-time {
    font-size: clamp(0.7rem, 0.76vw, 0.8rem);
  }
}

/* ===== HERO STACK RESPONSIVE FIX 1105 V20 ===== */

.hero-grid {
  align-items: stretch;
}

.hero-actions-row,
.support-inline-widget.support-center-widget,
.hero-hourly-stack {
  height: var(--hero-panel-height);
  align-self: stretch;
}

.hero-hourly-stack {
  display: grid;
  grid-template-rows: auto minmax(172px, 1fr);
  gap: 4px;
}

.hero-hourly-promo {
  height: auto;
  align-self: start;
}

.hero-hourly-card {
  height: auto;
  min-height: 172px;
  align-self: stretch;
}

@media (max-width: 1180px) {
  .hero-grid {
    align-items: stretch;
  }

  .hero-actions-row,
  .support-inline-widget.support-center-widget,
  .hero-hourly-stack,
  .hero-hourly-promo,
  .hero-hourly-card {
    height: auto;
    min-height: 0;
    align-self: auto;
  }

  .hero-hourly-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-hourly-card {
    min-height: 154px;
  }
}

@media (max-width: 640px) {
  .hero-hourly-card {
    min-height: 168px;
  }
}

/* ===== HERO PROMO HEIGHT REPAIR 1105 V15 ===== */

.hero-card {
  --hero-panel-height: clamp(362px, 20.5vw, 394px);
}

.hero-hourly-stack {
  grid-template-rows: minmax(210px, 1fr) 172px;
}

.hero-hourly-promo {
  min-height: 210px;
}

.hero-actions.hero-actions-stacked-mobile {
  grid-template-rows: 46px 46px auto minmax(136px, 1fr);
}

.hero-online-chart,
.hero-online-scale {
  min-height: 108px;
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-rows: auto auto minmax(112px, 1fr);
}

.hero-actions-stacked-mobile .btn-today-stats {
  font-size: 1.04rem;
}

@media (max-width: 1180px) {
  .hero-card {
    --hero-panel-height: auto;
  }
}

/* ===== HERO FINAL CONTROL TUNE 1105 V16 ===== */

.hero-actions-stacked-mobile .btn-today-stats {
  font-size: calc(1.04rem - 2px);
}

.hero-actions-stacked-mobile .btn-driver-day {
  font-size: calc(1.04rem + 4px);
}

.hero-online-bar {
  border-radius: 999px 999px 0 0;
}

.support-inline-widget.support-center-widget .support-widget-card {
  grid-template-rows: auto minmax(54px, auto) minmax(128px, 1fr);
}

.support-inline-widget.support-center-widget .support-widget-btn {
  align-self: end;
  width: min(100%, 286px);
  min-height: 48px;
  font-size: 1.08rem;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  align-self: start;
  width: 124px;
  margin-top: -2px;
}

/* ===== HERO RESPONSIVE REPAIR 1105 V17 ===== */

.hero-actions-stacked-mobile .btn-today-stats {
  font-size: 0.82rem;
}

.support-inline-widget.support-center-widget .support-widget-qr-shell {
  margin-top: 8px;
}

.hero-hourly-promo {
  min-height: 228px;
}

.hero-hourly-winner-card {
  min-height: 104px;
}

.hero-hourly-winner-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 1180px) {
  .hero {
    padding: 12px 0 6px;
  }

  .hero-card {
    --hero-panel-height: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-main-column {
    display: contents;
  }

  .hero-copy {
    grid-column: 1;
    order: 1;
    display: block;
    padding-bottom: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 0.96;
  }

  .hero-funnel-title {
    margin-top: 10px;
  }

  .hero-funnel-note {
    max-width: none;
  }

  .hero-actions-row {
    grid-column: 1;
    order: 2;
    height: auto;
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "driver today"
      "stats stats"
      "online online";
    gap: 12px;
    height: auto;
  }

  .hero-actions-stacked-mobile .btn-driver-day,
  .hero-actions-stacked-mobile .btn-today-stats {
    min-height: 46px;
    padding: 0 14px;
  }

  .hero-actions-stacked-mobile .btn-driver-day {
    margin-bottom: 0;
    font-size: 0.96rem;
  }

  .hero-actions-stacked-mobile .btn-today-stats {
    font-size: 0.82rem;
  }

  .hero-side,
  .hero-side-compact,
  .hero-online-card,
  .support-inline-widget.support-center-widget,
  .support-inline-widget.support-center-widget .support-widget-card,
  .hero-hourly-stack,
  .hero-hourly-promo,
  .hero-hourly-card {
    height: auto;
  }

  .hero-side-compact {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    padding-top: 12px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-online-card {
    min-height: 150px;
  }

  .hero-online-chart,
  .hero-online-scale {
    min-height: 108px;
  }

  .support-inline-widget.support-center-widget {
    grid-column: 1;
    order: 3;
    width: 100%;
    justify-self: stretch;
  }

  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: minmax(0, 1fr) 116px;
    grid-template-rows: auto auto;
    gap: 14px;
    min-height: 0;
  }

  .support-inline-widget.support-center-widget .support-widget-copy-block {
    grid-column: 1;
    grid-row: 1;
  }

  .support-inline-widget.support-center-widget .support-widget-btn {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: min(100%, 286px);
  }

  .support-inline-widget.support-center-widget .support-widget-qr-shell {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 116px;
    margin-top: 0;
  }

  .hero-hourly-stack {
    grid-column: 1;
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-hourly-promo,
  .hero-hourly-card {
    width: 100%;
  }

  .hero-hourly-promo {
    min-height: 0;
    padding: 18px;
  }

  .hero-hourly-promo-note {
    white-space: normal;
  }

  .hero-hourly-card {
    min-height: 154px;
    padding: 16px 18px;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 14px;
    border-radius: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.75rem);
  }

  .hero-actions.hero-actions-stacked-mobile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "driver"
      "today"
      "stats"
      "online";
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .support-inline-widget.support-center-widget .support-widget-card {
    grid-template-columns: 1fr;
  }

  .support-inline-widget.support-center-widget .support-widget-btn {
    justify-self: stretch;
    width: 100%;
  }

  .support-inline-widget.support-center-widget .support-widget-qr-shell {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: 124px;
  }

  .hero-hourly-winner-copy {
    padding-right: 0;
  }
}

/* ===== HERO HOURLY PROMO BOTTOM TUNE 1105 V18 ===== */

.hero-hourly-promo {
  padding-bottom: 4px;
}

.hero-hourly-winner-card {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ===== HERO CSS CLEANUP 1105 V19 ===== */

.hero-hourly-stack {
  align-self: start;
  height: auto;
  grid-template-rows: auto 172px;
  gap: 4px;
}

.hero-hourly-promo {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  min-height: 0;
  height: auto;
  padding: 14px 16px 4px;
  gap: 6px;
}

.hero-hourly-winner-card {
  min-height: 0;
  margin-top: 8px;
  padding-top: 10px;
  padding-bottom: 0;
}

.hero-hourly-winner-copy {
  min-height: 0;
}

.hero-hourly-card {
  min-height: 172px;
}

@media (max-width: 1180px) {
  .hero-hourly-stack {
    height: auto;
  }

  .hero-hourly-card {
    min-height: 154px;
  }
}

/* ===== HERO HOURLY CARD + LEFT CTA TUNE 1105 V14 ===== */

.hero-actions.hero-actions-stacked-mobile {
  row-gap: 14px;
}

.hero-actions-stacked-mobile .btn-today-stats,
.hero-actions-stacked-mobile .btn-driver-day {
  font-size: calc(1.04rem + 2px);
}

.hero-actions-stacked-mobile .btn-driver-day {
  margin-bottom: 4px;
}

.hero-hourly-stack {
  grid-template-rows: minmax(0, 1fr) 172px;
}

.hero-hourly-card {
  height: 172px;
}

.hero-hourly-card::before {
  background:
    linear-gradient(160deg, rgba(8, 12, 18, 0.46), rgba(8, 12, 18, 0.2)),
    var(--hero-hourly-track-photo);
  background-position: center center, center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

@media (max-width: 1180px) {
  .hero-hourly-card {
    height: auto;
  }
}

} /* end legacy */

@layer overrides {
  html,
  body {
    background: #0b0f14;
  }

  .support-inline-widget.support-center-widget .support-widget-card {
    background: rgba(255, 255, 255, 0.025);
  }

  .hero-hourly-card {
    margin-top: 0;
  }

  .cards-top3-hero .pilot-card,
  .cards-top3-hero .pilot-card.top1,
  .cards-top3-hero .pilot-card.top2,
  .cards-top3-hero .pilot-card.top3 {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cards-top3-hero .pilot-card + .pilot-card {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .driver-stat-value-bestlap,
  .mini-stat-bestlap .mini-value,
  .best-lap-value {
    color: #b84dff;
  }

  .bestlap-track-cta,
  .bestlap-tracks-open.bestlap-track-cta,
  .driver-stat-label-button.bestlap-track-cta,
  .mini-stat-bestlap .mini-value.bestlap-track-cta,
  .hero-side-compact .mini-stat-bestlap .mini-value.bestlap-track-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid rgba(216, 180, 254, 0.52);
    border-radius: var(--radius-pill);
    background:
      radial-gradient(circle at 20% 0%, rgba(216, 180, 254, 0.32), transparent 48%),
      linear-gradient(135deg, rgba(147, 51, 234, 0.96), rgba(109, 40, 217, 0.94));
    box-shadow:
      0 12px 28px rgba(126, 34, 206, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 1px 12px rgba(40, 12, 72, 0.45);
  }

  body *,
  body *::before,
  body *::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bg-video-sound-toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 6px;
    min-height: 82px;
    padding: 10px 14px;
  }

  .bg-video-sound-toggle-icon {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .bg-video-sound-toggle-copy {
    display: contents;
  }

  .bg-video-sound-toggle-title {
    grid-column: 2;
    grid-row: 1;
  }

  .bg-video-sound-toggle-note {
    display: none;
  }

  .bg-video-sound-toggle .bg-video-volume {
    display: grid;
    grid-column: 2 / 4;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
    margin-top: 0;
    visibility: visible;
    opacity: 1;
  }

  .bg-video-sound-toggle .bg-video-volume-slider {
    display: block;
    min-width: 0;
  }

  .bg-video-volume-label {
    display: none;
  }

  .bg-video-playback-toggle {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
  }

  .bg-video-sound-toggle::after {
    display: none;
  }

  .bg-video-sound-toggle-orbit,
  .bg-video-sound-toggle-bar,
  .pulse-attention,
  .hero-hourly-promo-title.pulse-attention {
    animation: supportWidgetPulseLite 5.6s ease-in-out infinite;
  }

  .hero-hourly-promo-title.pulse-attention {
    animation: hourlyPromoGlowLite 5.2s ease-in-out infinite;
  }

  .hero-hourly-btn.pulse-attention,
  .hourly-modal-cta-btn.pulse-attention {
    animation: hourlyCtaPulseLite 4.8s ease-in-out infinite;
  }

}

/* Endurance occurrence accent supplied by hourly announcement metadata. */
.hero-hourly-card.is-endurance-event {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.82);
  border-radius: 22px;
  background: rgba(7, 18, 11, 0.9);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.16),
    0 24px 54px rgba(57, 255, 20, 0.22),
    0 20px 44px rgba(0, 0, 0, 0.36);
}

.hero-hourly-card.is-endurance-event::before {
  border-radius: 22px;
  background:
    linear-gradient(118deg, rgba(5, 14, 9, 0.7) 0%, rgba(7, 24, 12, 0.52) 52%, rgba(21, 92, 24, 0.22) 100%),
    radial-gradient(circle at 88% 8%, rgba(57, 255, 20, 0.34), transparent 42%),
    var(--hero-hourly-track-photo);
  background-position: center, 88% 8%, center center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.96;
}

/* Keep the registration summary visually anchored to the card's right edge. */
.hero-hourly-card .hero-hourly-votes {
  align-self: flex-end;
  justify-content: flex-end;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  text-align: right;
}

.hero-hourly-card.is-endurance-event .hero-hourly-eyebrow {
  color: #8fff78;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.34);
}

.hero-hourly-card.is-endurance-event .hero-hourly-meta-value {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid rgba(57, 255, 20, 0.7);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 49, 17, 0.9), rgba(20, 86, 21, 0.72));
  color: #8fff78;
  box-shadow: 0 12px 28px rgba(57, 255, 20, 0.18);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.28), 0 7px 20px rgba(0, 0, 0, 0.48);
}

.hero-hourly-card.is-endurance-event:hover,
.hero-hourly-card.is-endurance-event:focus-visible {
  border-color: #8fff78;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.24),
    0 28px 60px rgba(57, 255, 20, 0.28),
    0 22px 48px rgba(0, 0, 0, 0.4);
}

/* Standalone Special Event accent. Single-model events are not Endurance. */
.hero-hourly-card.is-special-event {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(112, 196, 229, 0.78);
  background: rgba(7, 18, 27, 0.92);
  box-shadow:
    0 0 0 1px rgba(143, 216, 244, 0.12),
    0 24px 54px rgba(57, 153, 196, 0.18),
    0 20px 44px rgba(0, 0, 0, 0.36);
}

.hero-hourly-card.is-special-event::before {
  background:
    linear-gradient(118deg, rgba(5, 15, 23, 0.82) 0%, rgba(7, 28, 40, 0.58) 54%, rgba(36, 118, 153, 0.22) 100%),
    radial-gradient(circle at 88% 12%, rgba(105, 196, 232, 0.28), transparent 44%),
    var(--hero-hourly-track-photo);
  background-position: center, 88% 12%, center center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.96;
}

.hero-hourly-card.is-special-event .hero-hourly-eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(174, 226, 247, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 109, 141, 0.9), rgba(87, 173, 210, 0.76));
  color: rgb(232 248 255);
  box-shadow: 0 8px 22px rgba(72, 175, 217, 0.24);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-hourly-card.is-special-event .hero-hourly-meta-value {
  color: rgb(223 246 255);
  text-shadow: 0 0 20px rgba(105, 196, 232, 0.32), 0 7px 20px rgba(0, 0, 0, 0.48);
}

.hero-hourly-card.is-special-event:hover,
.hero-hourly-card.is-special-event:focus-visible {
  border-color: rgb(174 226 247);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(143, 216, 244, 0.2),
    0 28px 60px rgba(57, 153, 196, 0.24),
    0 22px 48px rgba(0, 0, 0, 0.4);
}

.special-event-car-artwork-home {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: rotate(-10deg);
  transform-origin: bottom left;
  pointer-events: none;
  opacity: 0.8;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.5));
}

}
@layer v1Runtime {
/* Compact upcoming card: let content determine height at every breakpoint. */
.hero-card .hero-hourly-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  gap: 8px;
  height: auto;
  min-height: 0;
  padding: 14px;
}

.hero-hourly-card .hero-hourly-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.hero-hourly-card .hero-hourly-eyebrow {
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.hero-hourly-card .hero-hourly-countdown {
  padding: 4px 7px;
  border: 1px solid rgba(255, 166, 51, 0.6);
  border-radius: 999px;
  background: rgba(43, 24, 10, 0.85);
  font-size: 0.76rem;
  line-height: 1.2;
}

.hero-hourly-card .hero-hourly-meta,
.hero-hourly-card .hero-hourly-meta-row {
  gap: 7px;
}

.hero-hourly-card .hero-hourly-meta-value {
  max-width: 100%;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.hero-hourly-card .hero-hourly-meta-schedule {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
}

.hero-hourly-card .hero-hourly-meta-time {
  font-size: 0.76rem;
  line-height: 1.4;
}

.hero-hourly-card .hero-hourly-votes {
  align-self: auto;
  justify-content: flex-start;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: left;
}

.hero-hourly-card .hero-hourly-actions {
  margin: 0;
  gap: 8px;
}

.hero-hourly-card .btn.hero-hourly-btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
}

.hero-hourly-card .hero-hourly-cancel {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
}

.hero-hourly-card .legal-inline-note {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.4;
}

/* Keep all event details visible when text grows or the desktop column narrows.
   These rules are unlayered to override the legacy homepage stylesheet. */
.hero-card .hero-hourly-card {
  min-width: 0;
  height: auto;
  overflow-wrap: anywhere;
}

.hero-hourly-card .hero-hourly-meta,
.hero-hourly-card .hero-hourly-meta-row {
  min-width: 0;
}

.hero-hourly-card .hero-hourly-meta-line {
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.hero-hourly-card .hero-hourly-meta-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.hero-hourly-card .hero-hourly-meta-schedule {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
  white-space: normal;
  gap: 6px 8px;
}

.hero-hourly-card .hero-hourly-meta-time {
  flex: 0 1 auto;
  white-space: normal;
}

.hero-hourly-card .hero-hourly-countdown {
  white-space: nowrap;
}

.hero-hourly-card .hero-hourly-actions {
  min-width: 0;
}

.hero-hourly-card .btn.hero-hourly-btn {
  min-width: 0;
  width: auto;
  white-space: normal;
}

@media (min-width: 1181px) {
  .hero-card .hero-hourly-stack {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    min-height: var(--hero-panel-height);
  }
}

@layer overrides {
  @media (min-width: 1181px) {
    .hero-grid {
      row-gap: 6px;
      align-items: stretch;
    }

    .hero-actions.hero-actions-stacked-mobile {
      row-gap: 6px;
    }

    .hero-actions-stacked-mobile .btn-driver-day {
      margin-bottom: 0;
    }

    .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-side.hero-side-compact {
      column-gap: 14px;
      row-gap: 8px;
    }

    .hero-hourly-stack {
      display: flex;
      flex-direction: column;
      grid-column: 3;
      grid-row: 2;
      gap: 4px;
      height: var(--hero-panel-height);
      min-height: var(--hero-panel-height);
      align-self: stretch;
    }

    .hero-hourly-promo {
      flex: 0 0 auto;
      height: auto;
      min-height: 0;
      padding-bottom: 0;
      gap: 3px;
    }

    .hero-hourly-winner-card {
      margin-top: 3px;
      padding-top: 6px;
    }

    .hero-hourly-card {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      height: auto;
      min-height: 190px;
      justify-content: space-between;
      align-self: stretch;
    }
  }

  @media (max-width: 1180px) {
    .hero-card { --hero-panel-height: auto; }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .hero-copy,
    .hero-actions-row,
    .support-inline-widget.support-center-widget,
    .hero-hourly-stack {
      grid-column: 1;
      grid-row: auto;
      width: 100%;
      height: auto;
      min-height: 0;
      align-self: auto;
    }

    .hero-copy { order: 1; }
    .hero-actions-row { order: 2; }
    .support-inline-widget.support-center-widget { order: 3; }

    .hero-hourly-stack {
      order: 4;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .hero-hourly-promo,
    .hero-hourly-card {
      width: 100%;
      height: auto;
      min-height: 0;
      align-self: auto;
    }

    .hero-hourly-card { min-height: 160px; }
  }

  @media (max-width: 640px) {
    .hero-grid {
      display: flex;
      flex-direction: column;
      gap: 14px;
      height: auto;
      min-height: 0;
      align-items: stretch;
    }

    .hero-copy,
    .hero-actions-row,
    .support-inline-widget.support-center-widget,
    .hero-hourly-stack {
      position: static;
      inset: auto;
      grid-area: auto;
      width: 100%;
      height: auto;
      min-height: 0;
      margin: 0;
      transform: none;
      flex: 0 0 auto;
    }

    .hero-copy { order: 1; }
    .hero-actions-row { order: 2; }
    .support-inline-widget.support-center-widget { order: 3; }
    .hero-hourly-stack { order: 4; }

    .hero-main-column {
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: 100%;
      min-width: 0;
      height: auto;
      min-height: 0;
      align-self: stretch;
    }

    .hero-main-column > .hero-copy,
    .hero-main-column > .hero-actions-row,
    .hero-main-column > .support-inline-widget.support-center-widget,
    .hero-main-column > .hero-top3-panel {
      position: static;
      grid-column: auto;
      grid-row: auto;
      width: 100%;
      min-width: 0;
      height: auto;
      min-height: 0;
      margin: 0;
      transform: none;
      flex: 0 0 auto;
    }

    .hero-main-column > .hero-copy { order: 1; }
    .hero-main-column > .hero-actions-row { order: 2; }
    .hero-main-column > .support-inline-widget.support-center-widget { order: 3; }
    .hero-main-column > .hero-top3-panel { order: 4; }

    .hero-main-column > .hero-actions-row {
      display: block;
      overflow: visible;
      contain: layout;
    }

    .hero-actions.hero-actions-stacked-mobile {
      position: static;
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      height: auto;
      min-height: 0;
      overflow: visible;
      float: none;
    }

    .hero-actions.hero-actions-stacked-mobile > * {
      position: static;
      inset: auto;
      float: none;
      width: 100%;
      max-width: none;
      height: auto;
      min-width: 0;
      margin: 0;
      transform: none;
      flex: 0 0 auto;
    }

    .hero-actions.hero-actions-stacked-mobile > .btn-driver-day { order: 1; }

    .hero-actions.hero-actions-stacked-mobile > .hero-primary-actions {
      display: flex;
      flex-direction: column;
      order: 2;
      gap: 10px;
      width: 100%;
      min-width: 0;
    }

    .hero-actions.hero-actions-stacked-mobile > .hero-side {
      position: static;
      order: 3;
      width: 100%;
      min-width: 0;
      height: auto;
      min-height: 0;
      margin: 0;
      transform: none;
      flex: 0 0 auto;
    }

    .hero-actions.hero-actions-stacked-mobile > .hero-online-card {
      order: 4;
      flex: 0 0 auto;
    }

    .hero-actions.hero-actions-stacked-mobile .btn,
    .hero-actions.hero-actions-stacked-mobile .btn-driver-day,
    .hero-actions.hero-actions-stacked-mobile .btn-today-stats,
    .hero-actions.hero-actions-stacked-mobile .btn-last-races {
      position: static;
      width: 100%;
      min-width: 0;
      max-width: none;
      min-height: 48px;
      margin: 0;
      transform: none;
    }

    .hero-actions.hero-actions-stacked-mobile .hero-online-card {
      position: static;
      width: 100%;
      min-width: 0;
      margin: 0;
    }

    .support-inline-widget.support-center-widget .support-widget-card {
      position: relative;
      height: auto;
      min-height: 0;
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      margin: 0;
      transform: none;
      overflow: hidden;
    }

    .hero-main-column > .support-inline-widget.support-center-widget {
      position: static;
      display: block;
      clear: both;
      float: none;
      overflow: visible;
    }

    .support-inline-widget.support-center-widget .support-widget-btn {
      width: 100%;
      justify-self: stretch;
    }

    .support-inline-widget.support-center-widget .support-widget-qr-shell {
      grid-column: 1;
      grid-row: auto;
      justify-self: center;
    }

    .hero-hourly-card { min-height: 176px; }
  }

  .bg-video-sound-toggle {
    top: auto;
    left: clamp(10px, 1.8vw, 22px);
    right: auto;
    bottom: 84px;
    gap: 9px;
    width: min(224px, calc(100vw - 24px));
    padding: 8px 12px 8px 10px;
    border-right: 1px solid rgba(255, 198, 122, 0.42);
    border-left: 0;
    border-radius: 0 18px 18px 0;
    transform: none;
  }

  .bg-video-sound-toggle:hover,
  .bg-video-sound-toggle:focus-visible,
  body.background-audio-focus .bg-video-sound-toggle {
    transform: translateX(4px);
  }
}

.hero-hourly-card.is-championship-event {
  border: 1px solid #d8b4fe;
  box-shadow:
    0 0 0 2px rgba(216, 180, 254, 0.32),
    0 0 22px rgba(192, 132, 252, 0.86),
    0 0 48px rgba(126, 34, 206, 0.68);
}

.hero-hourly-card.is-championship-event .hero-hourly-eyebrow,
.hero-hourly-card.is-championship-event .hero-hourly-meta-value {
  color: #f3e8ff;
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.78);
}

/* Tablet hero: restore normal flow between desktop and mobile layouts. */
@media (min-width: 641px) and (max-width: 1180px) {
  .hero-card .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .hero-card .hero-main-column {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
  }

  .hero-card .hero-main-column > .hero-copy,
  .hero-card .hero-main-column > .hero-actions-row,
  .hero-card .hero-main-column > .support-inline-widget.support-center-widget {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .hero-card .hero-main-column > .hero-copy { order: 1; }
  .hero-card .hero-main-column > .hero-actions-row { order: 2; }
  .hero-card .hero-main-column > .support-inline-widget.support-center-widget { order: 3; }

  .hero-card .hero-actions.hero-actions-stacked-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-template-areas:
      "driver today"
      "stats online";
    gap: 12px 16px;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-primary-actions {
    display: contents;
  }

  .hero-card .hero-actions.hero-actions-stacked-mobile > .btn-driver-day,
  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-side,
  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-online-card {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    transform: none;
  }

  .hero-card .hero-actions-stacked-mobile .btn-driver-day { grid-area: driver; }
  .hero-card .hero-actions-stacked-mobile .btn-today-stats { grid-area: today; }
  .hero-card .hero-actions-stacked-mobile > .hero-side { grid-area: stats; }
  .hero-card .hero-actions-stacked-mobile > .hero-online-card { grid-area: online; }

  .hero-card .hero-side-compact {
    align-content: start;
    padding-top: 12px;
  }

  .hero-card .support-inline-widget.support-center-widget {
    justify-self: stretch;
    max-width: none;
  }

  .hero-card .support-inline-widget.support-center-widget .support-widget-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto) 96px;
    grid-template-rows: auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
  }

  .hero-card .support-inline-widget.support-center-widget .support-widget-copy-block {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .hero-card .support-inline-widget.support-center-widget .support-widget-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: auto;
    min-width: 160px;
    margin: 0;
  }

  .hero-card .support-inline-widget.support-center-widget .support-widget-qr-shell {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 96px;
    margin: 0;
  }

  .hero-card .hero-hourly-stack {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .hero-card .hero-hourly-promo,
  .hero-card .hero-hourly-card {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 210px;
    margin: 0;
    grid-column: auto;
    grid-row: 1;
    align-self: stretch;
    transform: none;
  }
}


/* Mobile hero must remain unlayered until the legacy display:contents rules are removed. */
@media (max-width: 640px) {
  .hero-card .hero-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .hero-card .hero-main-column {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .hero-card .hero-main-column > .hero-copy,
  .hero-card .hero-main-column > .hero-actions-row,
  .hero-card .hero-main-column > .support-inline-widget.support-center-widget,
  .hero-card .hero-main-column > .hero-top3-panel {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .hero-card .hero-main-column > .hero-copy { order: 1; }
  .hero-card .hero-main-column > .hero-actions-row { order: 2; }
  .hero-card .hero-main-column > .support-inline-widget.support-center-widget { order: 3; }
  .hero-card .hero-main-column > .hero-top3-panel { order: 4; }

  .hero-card .hero-actions.hero-actions-stacked-mobile {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero-card .hero-actions.hero-actions-stacked-mobile > .btn-driver-day { order: 1; }
  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-primary-actions { order: 2; }
  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-side { order: 3; }
  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-online-card { order: 4; }

  .hero-card .hero-actions.hero-actions-stacked-mobile > * {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    min-width: 0;
    margin: 0;
    grid-area: auto;
    transform: none;
    flex: 0 0 auto;
  }

  .hero-card .hero-actions.hero-actions-stacked-mobile > .hero-primary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-card .support-inline-widget.support-center-widget,
  .hero-card .support-inline-widget.support-center-widget .support-widget-card,
  .hero-card .hero-hourly-stack {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }
}

/* Override the earlier breakpoint rules that stretch both cards to equal height. */
.hero-card .hero-hourly-card {
  align-self: start;
  height: auto;
  min-height: 0;
  padding: 14px;
}

.hero-hourly-card.is-championship-event .hero-hourly-meta-value {
  display: inline-flex;
  padding: 6px 11px;
  border: 1px solid rgba(192, 132, 252, 0.7);
  border-radius: 12px;
  background: rgba(39, 17, 57, 0.85);
}

/* Shared with the existing single-model track title accent. */
:root { --hourly-single-model-text: rgb(223 246 255); }
.hero-hourly-card.is-special-event .hero-hourly-meta-value,
.hero-hourly-promo.is-special-event .hero-hourly-promo-accent {
  color: var(--hourly-single-model-text);
}

.hero-card .hero-hourly-promo {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  align-self: start;
  height: auto;
  min-height: 0;
  padding: 14px;
  gap: 4px;
  border: 0;
  background:
    linear-gradient(150deg, rgba(255, 209, 102, 0.24), rgba(255, 91, 46, 0.15) 38%, rgba(255, 255, 255, 0.055)),
    rgba(21, 19, 20, 0.2);
  box-shadow: none;
}
.hero-hourly-promo::after { opacity: 0.25; }
.hero-hourly-promo .hero-hourly-promo-title {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 1.1rem;
  line-height: 1.2;
  color: rgb(255 209 102);
  overflow-wrap: anywhere;
}
.hero-hourly-promo .hero-hourly-promo-note {
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hero-hourly-promo .hero-hourly-winner-card {
  position: static;
  min-height: 0;
  margin: 4px 0 0;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.hero-hourly-promo .hero-hourly-winner-media {
  position: absolute;
  inset: 0;
}
.hero-hourly-promo .hero-hourly-winner-copy {
  width: 100%;
  max-width: 100%;
  padding: 0;
  gap: 4px;
}
.hero-hourly-promo .hero-hourly-winner-name,
.hero-hourly-promo .hero-hourly-winner-meta {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.hero-hourly-promo .hero-hourly-winner-name {
  font-size: 1.15rem;
  line-height: 1.2;
}
.hero-hourly-promo .hero-hourly-winner-meta {
  display: grid;
  gap: 3px;
  font-size: 0.7rem;
  line-height: 1.35;
}
.hero-hourly-promo .hero-hourly-winner-model { color: rgb(255 255 255); }
.hero-hourly-promo .hero-hourly-winner-car {
  right: 14px;
  /* Compensate for transparent padding below the car in the source PNG. */
  bottom: -10px;
  width: min(180px, 54%);
  opacity: 0.7;
}
.hero-hourly-promo.is-endurance-event .hero-hourly-promo-accent { color: rgb(143 255 120); }
.hero-hourly-promo.is-championship-event .hero-hourly-promo-accent { color: rgb(216 180 254); }

/* V1 homepage partner banner. Keep both supplied compositions uncropped. */
.hero-card .hero-copy.hero-copy-partner {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
}
.hero-partner-banner {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(255 255 255);
  box-shadow: 0 3px 14px rgb(0 0 0 / 20%);
}
.hero-partner-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-partner-banner picture { display: block; aspect-ratio: 1150 / 80; }
.hero-partner-banner picture > img { height: 100%; object-fit: contain; }
.hero-partner-banner:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
#about-server > .about-community-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2vw, 28px);
  margin-bottom: 18px;
}
.about-community-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.about-community-intro .hero-funnel-copy { min-width: 0; }
.about-community-intro .hero-funnel-card {
  min-width: 0;
  margin: 0;
  padding-inline-start: 24px;
  border-inline-start: 1px solid rgb(204 216 232 / 22%);
}
.about-community-intro .hero-funnel-note { max-width: none; margin: 0; }
@media (max-width: 1279px) {
  /* Align the server tab with the support dock, clear of the full-width ad. */
  body:has(.hero-copy-partner) #server-sticky-widget {
    right: auto;
    left: 12px;
  }
  body:has(.hero-copy-partner) #server-sticky-widget.is-collapsed,
  body:has(.hero-copy-partner) #donation-collapsible-widget.is-collapsed {
    top: var(--home-ad-widget-top, calc(100dvh - 360px));
    bottom: auto;
  }
}
@media (max-width: 640px) {
  .hero-partner-banner { border-radius: 12px; }
  .hero-partner-banner picture { aspect-ratio: 300 / 160; }
  #about-server > .about-community-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
  }
  .about-community-intro .hero-funnel-card {
    padding-inline-start: 0;
    padding-top: 14px;
    border-inline-start: 0;
    border-top: 1px solid rgb(204 216 232 / 22%);
  }
}

}
@layer v1Runtime {
@layer overrides {
  .hero-server-total-stat {
    display: grid;
  }

  .hero-side.hero-side-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(62px, auto));
    gap: 8px;
    padding-top: 10px;
  }

  .hero-side-compact > .mini-stat-server-online {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-side-compact > .mini-stat-bestlap {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-side-compact > .hero-server-total-stat {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-side-compact > .mini-stat-drivers-count {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-side-compact .hero-server-total-stat,
  .hero-side-compact .mini-stat-drivers-count {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 8px;
  }

  .hero-side-compact .hero-server-total-stat .mini-label,
  .hero-side-compact .mini-stat-drivers-count .mini-label {
    min-width: 0;
    margin: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-side-compact .hero-server-total-stat .mini-value,
  .hero-side-compact .mini-stat-drivers-count .mini-value,
  .hero-side-compact .mini-stat-drivers-count #drivers-count {
    justify-self: end;
    align-self: center;
    font-size: clamp(0.9rem, 1vw, 1.08rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .hero-side-compact .mini-stat,
  .hero-side-compact .mini-stat:first-child,
  .hero-side-compact .mini-stat + .mini-stat,
  .hero-side-compact > .mini-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    min-height: 62px;
    height: 62px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 46%),
      rgba(255, 255, 255, 0.045);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 8px 18px rgba(0, 0, 0, 0.12);
    transition:
      transform 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease;
  }

  .hero-side-compact > .mini-stat:hover,
  .hero-side-compact > .mini-stat:focus-within {
    transform: translateY(-2px);
    border-color: rgba(255, 179, 71, 0.34);
    background:
      radial-gradient(circle at top left, rgba(255, 179, 71, 0.15), transparent 48%),
      rgba(255, 255, 255, 0.065);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 24px rgba(0, 0, 0, 0.2);
  }

  .hero-side-compact .mini-stat::before,
  .hero-side-compact .mini-stat::after {
    display: none;
  }

  .hero-server-online-stat {
    appearance: none;
    border: 1px solid rgba(57, 217, 138, 0.26);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .hero-server-online-stat:hover,
  .hero-server-online-stat:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(57, 217, 138, 0.48);
    background:
      radial-gradient(circle at top left, rgba(57, 217, 138, 0.16), transparent 48%),
      rgba(255, 255, 255, 0.06);
  }

  .hero-server-online-stat:focus-visible {
    outline: 2px solid rgba(57, 217, 138, 0.58);
    outline-offset: 3px;
  }

  .hero-side-compact .mini-label {
    display: block;
    margin: 0 0 4px;
    color: rgba(218, 229, 245, 0.58);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    line-height: 1.05;
    text-transform: uppercase;
  }

  .hero-side-compact .mini-value,
  .hero-side-compact #drivers-count,
  .hero-side-compact #servers-online-count,
  .hero-side-compact #serverPlayersValue {
    grid-column: auto;
    grid-row: auto;
    align-self: end;
    margin: 0;
    color: rgba(248, 251, 255, 0.96);
    font-size: clamp(0.98rem, 1.12vw, 1.18rem);
    font-weight: 950;
    line-height: 0.95;
    text-align: left;
    white-space: nowrap;
  }

  .hero-side-compact .server-status-wrap,
  .hero-side-compact .server-status-wrap-total {
    display: block;
  }

  .hero-side-compact .mini-stat-bestlap {
    padding: 6px 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side-compact .mini-stat-bestlap .mini-label,
  .hero-side-compact .mini-stat-bestlap .mini-note {
    display: none;
  }

  .hero-side-compact .mini-stat-bestlap .mini-value {
    grid-column: 1;
    justify-self: stretch;
    min-width: 0;
  }

  .hero-side-compact .mini-stat-bestlap .bestlap-track-cta {
    align-self: center;
    width: 100%;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.68rem;
    line-height: 1.05;
  }

  @media (max-width: 560px) {
    .hero-side.hero-side-compact {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      gap: 6px;
      padding-top: 0;
    }

    .hero-side-compact > .mini-stat-server-online,
    .hero-side-compact > .mini-stat-bestlap,
    .hero-side-compact > .hero-server-total-stat,
    .hero-side-compact > .mini-stat-drivers-count {
      grid-column: 1;
      grid-row: auto;
    }

    .hero-side-compact > .mini-stat {
      width: 100%;
      min-height: 58px;
      height: 58px;
      padding: 8px 12px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-side-compact > .mini-stat {
      transition: none;
    }

    .hero-side-compact > .mini-stat:hover,
    .hero-side-compact > .mini-stat:focus-within {
      transform: none;
    }
  }
}

/* Final card geometry stays unlayered while the legacy hero cascade is being removed. */
.hero-card .hero-side.hero-side-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 58px;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 0 0;
}

.hero-card .hero-actions.hero-actions-stacked-mobile > .hero-side.hero-side-compact {
  transform: none;
}

.hero-card .hero-side.hero-side-compact > .mini-stat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  margin: 0;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.075), transparent 48%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hero-card .hero-side.hero-side-compact > .mini-stat:hover,
.hero-card .hero-side.hero-side-compact > .mini-stat:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 71, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .hero-card .hero-side.hero-side-compact {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 48px;
    gap: 6px;
    padding-top: 0;
  }

  .hero-card .hero-side.hero-side-compact > .mini-stat {
    height: 48px;
    min-height: 48px;
    padding: 7px 10px;
  }
}

}
@layer v1Runtime {
@layer overrides {
  .server-sticky-widget,
  .driver-achievements-widget,
  .donation-alerts-widget {
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  }

  .widget-collapse-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 180, 104, 0.42);
    border-radius: 10px;
    background: rgba(8, 12, 18, 0.72);
    color: rgb(255 212 166);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .widget-collapse-toggle:hover,
  .widget-collapse-toggle:focus-visible {
    border-color: rgba(255, 180, 104, 0.82);
    background: rgba(255, 123, 46, 0.2);
    color: rgb(255 246 236);
  }

  .widget-collapse-icon {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
  }

  .widget-collapse-label {
    display: none;
  }

  .server-sticky-widget > .widget-collapsible-content {
    display: grid;
    min-height: 0;
    gap: 7px;
  }

  .widget-collapsible-content[hidden] {
    display: none;
  }

  .server-sticky-widget:not(.is-collapsed) .server-sticky-head {
    padding-right: 34px;
  }

  .donation-alerts-widget:not(.is-collapsed) .donation-alerts-head {
    padding-right: 34px;
  }

  .collapsible-widget.is-collapsed .widget-collapse-toggle {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 116px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 7px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 137, 55, 0.24), rgba(17, 21, 29, 0.94)),
      rgba(10, 14, 20, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px rgba(0, 0, 0, 0.28);
  }

  .collapsible-widget.is-collapsed .widget-collapse-icon {
    transform: rotate(90deg);
  }

  .collapsible-widget.is-collapsed .widget-collapse-label {
    display: block;
    color: rgb(255 244 232);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .server-sticky-widget.is-collapsed,
  .driver-achievements-widget.is-collapsed,
  .donation-alerts-widget.is-collapsed {
    width: 42px;
    min-width: 42px;
    height: 116px;
    min-height: 116px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
  }

  .donation-alerts-widget.is-collapsed::after {
    display: none;
  }

  #donation-collapsible-widget.collapsible-widget.is-collapsed {
    box-sizing: border-box;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
  }

  #donation-collapsible-widget.is-collapsed > .widget-collapse-toggle {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 190px;
    font-size: 0.66rem;
  }

  #donation-collapsible-widget.is-collapsed > :not(.widget-collapse-toggle) {
    display: none;
  }

  #donation-collapsible-widget.is-collapsed .widget-collapse-label {
    font-size: 0.66rem;
  }

  .server-sticky-cards {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.modal-open .server-sticky-widget,
  body.modal-open .driver-achievements-widget,
  body.modal-open .donation-alerts-widget {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .support-widget-btn {
    animation: none;
  }

  @media (min-width: 1280px) and (max-width: 1360px) {
    .donation-alerts-widget {
      right: auto;
      bottom: 24px;
      left: 12px;
    }
  }

  @media (max-width: 1279px) {
    .server-sticky-widget {
      display: grid;
      top: calc(var(--top-nav-height, 64px) + 18px);
      right: 10px;
      width: min(310px, calc(100vw - 20px));
      max-height: calc(100dvh - var(--top-nav-height, 64px) - 42px);
    }
  }

  @media (max-width: 760px) {
    .server-sticky-widget:not(.is-collapsed) {
      top: calc(var(--top-nav-height, 64px) + 8px);
      right: 8px;
      width: min(310px, calc(100vw - 16px));
      max-height: calc(100dvh - var(--top-nav-height, 64px) - 16px);
    }

    .donation-alerts-widget:not(.is-collapsed) {
      top: auto;
      bottom: 8px;
      max-height: calc(100dvh - var(--top-nav-height, 64px) - 16px);
      overflow: auto;
      overscroll-behavior: contain;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .server-sticky-widget,
    .driver-achievements-widget,
    .donation-alerts-widget,
    .widget-collapse-toggle {
      transition: none;
    }
  }
}

}
@layer v1Runtime {
body.legal-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.12), transparent 24%),
    linear-gradient(180deg, #0a0f15, #111926 55%, #0c1118);
  color: #edf4ff;
  font-family: Inter, Arial, sans-serif;
}

.legal-layout {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffd166;
  text-decoration: none;
  font-weight: 700;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  color: #ffe09a;
}

.legal-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.legal-page-toolbar .legal-back-link {
  margin-bottom: 0;
}

.legal-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 25, 34, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.legal-lang-btn {
  min-width: 52px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d8e3f2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.legal-lang-btn:hover,
.legal-lang-btn:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.legal-lang-btn.is-active {
  background: linear-gradient(135deg, #ff5b2e, #ff7d57);
  color: #ffffff;
}

.legal-hero,
.legal-card {
  background: rgba(18, 25, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.legal-hero {
  padding: 28px;
  margin-bottom: 18px;
}

.legal-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffd166;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.legal-updated {
  margin: 0;
  color: #9fb0c5;
  font-size: 0.96rem;
}

.legal-warning {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.08);
  color: #fff0b7;
}

.legal-language-warning {
  margin-bottom: 18px;
}

.legal-card {
  padding: 24px;
  margin-bottom: 16px;
}

.legal-card h2,
.legal-card h3 {
  margin-top: 0;
}

.legal-card p,
.legal-card li,
.legal-card dd,
.legal-card td,
.legal-card th {
  color: #d8e3f2;
  line-height: 1.65;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-definition-grid {
  display: grid;
  gap: 14px;
}

.legal-definition-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-definition-grid dt {
  margin-bottom: 6px;
  color: #ffd166;
  font-weight: 800;
}

.legal-definition-grid dd {
  margin: 0;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.legal-table th,
.legal-table td {
  padding: 14px 12px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.legal-table th {
  color: #fff4c7;
  font-size: 0.92rem;
}

.legal-card code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff4c7;
  font-family: Consolas, "Courier New", monospace;
}

.legal-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-links-inline a,
.asg-legal-link {
  color: #ffd166;
  text-decoration: none;
  font-weight: 700;
}

.legal-links-inline a:hover,
.legal-links-inline a:focus-visible,
.asg-legal-link:hover,
.asg-legal-link:focus-visible {
  color: #ffe09a;
}

.legal-note {
  color: #9fb0c5;
  font-size: 0.95rem;
}

.legal-inline-note {
  margin-top: 6px;
  color: #9fb0c5;
  font-size: 0.62rem;
  line-height: 1.18;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.legal-inline-note a {
  color: #ffd166;
}

.asg-legal-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1600;
  width: min(560px, calc(100vw - 32px));
}

.asg-legal-banner[hidden] {
  display: none !important;
}

.asg-legal-banner-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 17, 26, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.asg-legal-banner-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.asg-legal-banner-body {
  margin: 0;
  color: #d8e3f2;
  font-size: 0.92rem;
  line-height: 1.55;
}

.asg-legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}

.asg-legal-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.asg-legal-banner-btn,
.asg-legal-link-button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.asg-legal-banner-btn {
  padding: 11px 16px;
  font-weight: 800;
}

.asg-legal-banner-btn-primary {
  background: linear-gradient(135deg, #ff5b2e, #ff7d57);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 91, 46, 0.32);
}

.asg-legal-banner-btn-secondary,
.asg-legal-link-button {
  background: rgba(255, 255, 255, 0.08);
  color: #edf4ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
}

.asg-legal-footer-links {
  margin-top: 12px;
}

.asg-legal-footer-note {
  color: #9fb0c5;
  font-size: 0.84rem;
  line-height: 1.5;
}

.asg-legal-mini-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.asg-legal-mini-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(18, 25, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.asg-legal-mini-footer-title {
  color: #fff4c7;
  font-weight: 800;
}

.asg-legal-mini-footer-note {
  margin-top: 6px;
  color: #9fb0c5;
  font-size: 0.9rem;
  line-height: 1.5;
}

.asg-legal-mini-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

@media (max-width: 820px) {
  .legal-page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-lang-switch {
    justify-content: center;
  }

  .legal-layout {
    width: min(100%, calc(100% - 24px));
    padding-top: 20px;
  }

  .legal-hero,
  .legal-card {
    padding: 20px;
  }

  .asg-legal-mini-footer-inner {
    flex-direction: column;
  }

  .asg-legal-mini-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .asg-legal-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .asg-legal-banner-actions {
    flex-direction: column;
  }

  .asg-legal-banner-btn,
  .asg-legal-link-button {
    width: 100%;
    justify-content: center;
  }
}

}
@layer v1Runtime {
/* R13 final responsive and accessibility safeguards. */
:where(a, button, input, select, [role="button"], [role="tab"]):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

:where(.modal-card, .table-wrap, .hero-card, .support-widget-card) {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }

  .site-bg-video { display: none; }
}

@media (pointer: coarse) {
  :where(.top-nav-link, .top-nav-group-toggle, .top-nav-more-toggle, .lang-btn, .combined-stats-tab, .pagination button, .modal-close, .table-sort-button, .server-sticky-card-clickable, .hero-server-online-stat, .hero-online-card, .hero-hourly-card) {
    min-height: 44px;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, [role="button"], [role="tab"]):focus-visible {
    outline: 2px solid Highlight;
  }

  .modal-overlay.is-open { background: Canvas; }
}

}
@layer v1Runtime {
/* Home support concept 3: keep the existing hero column and desktop height. */
.hero-card .support-inline-widget.support-center-widget .support-widget-card.support-widget-card-announcements {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: stretch;
}
.support-announcements { display: grid; gap: 8px; min-width: 0; }
.support-announcement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 13px 10px 19px;
  border: 1px solid rgba(255, 157, 62, .45);
  border-radius: 11px;
  background: linear-gradient(110deg, rgba(255, 122, 42, .16), rgba(255, 122, 42, .035));
  box-shadow: inset 0 0 22px rgba(255, 122, 42, .04), 0 0 14px rgba(255, 122, 42, .07);
  color: #fff4e9;
  text-decoration: none;
  cursor: default;
}
.support-announcement::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: #ffad50;
  box-shadow: 0 0 9px rgba(255, 146, 49, .7);
}
.support-announcement-label { font-size: .88rem; font-weight: 850; line-height: 1.25; letter-spacing: .025em; }
.support-announcement-arrow { color: #ffab57; font-size: 22px; line-height: 1; flex: 0 0 auto; }
.support-announcement:focus-visible { outline: 2px solid #ffb661; outline-offset: 3px; }
.support-donation { display: grid; gap: 14px; align-content: center; min-width: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.hero-card .support-center-widget .support-donation .support-widget-copy-block { grid-column: auto; grid-row: auto; gap: 5px; min-width: 0; }
.hero-card .support-center-widget .support-donation .support-widget-title { font-size: 22px; line-height: 1.2; margin: 0; }
.hero-card .support-center-widget .support-donation .support-widget-copy { display: block; font-size: 12px; line-height: 1.4; margin: 0; -webkit-line-clamp: unset; }
.support-donation-body { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: center; }
.hero-card .support-center-widget .support-donation .support-widget-qr-shell { display: block; grid-column: auto; grid-row: auto; width: 108px; padding: 0; margin: 0; border: 0; background: none; border-radius: 10px; justify-self: start; align-self: center; }
.hero-card .support-center-widget .support-donation .support-widget-qr { width: 108px; height: 108px; box-sizing: border-box; padding: 4px; border: 3px solid #fff; background: #fff; border-radius: 10px; }
.support-donation-actions { display: grid; gap: 8px; min-width: 0; }
.hero-card .support-center-widget .support-donation .support-widget-btn { grid-column: auto; grid-row: auto; justify-self: stretch; align-self: center; width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border-radius: 9px; font-size: 13px; line-height: 1.25; gap: 7px; animation: none; box-shadow: 0 5px 16px rgba(255,91,46,.16); }
.hero-card .support-center-widget .support-donation .support-widget-note { display: block; font-size: 10px; line-height: 1.4; text-align: left; margin: 0; color: rgba(230,234,240,.7); }
@media (min-width: 641px) and (max-width: 1180px) {
  .hero-card .support-inline-widget.support-center-widget .support-widget-card.support-widget-card-announcements { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto; gap: 20px; }
  .support-donation { grid-template-columns: minmax(0, 1fr) 88px; grid-template-rows: auto auto; gap: 6px 12px; border-top: 0; border-left: 1px solid rgba(255,255,255,.14); padding: 0 0 0 20px; }
  .support-donation-body { display: contents; }
  .hero-card .support-center-widget .support-donation .support-widget-copy-block { grid-column: 1; grid-row: 1; }
  .hero-card .support-center-widget .support-donation .support-widget-qr-shell { grid-column: 2; grid-row: 1 / span 2; width: 88px; }
  .hero-card .support-center-widget .support-donation .support-widget-qr { width: 88px; height: 88px; }
  .support-donation-actions { grid-column: 1; grid-row: 2; gap: 4px; }
  .hero-card .support-center-widget .support-donation .support-widget-btn { min-height: 34px; padding-block: 6px; }
  .support-announcement { min-height: 40px; padding-block: 7px; }
}
@media (max-width: 640px) {
  .hero-card .support-inline-widget.support-center-widget .support-widget-card.support-widget-card-announcements { gap: 10px; padding: 12px; grid-template-rows: auto auto; }
  .support-announcements { gap: 6px; }
  .support-announcement { min-height: 36px; padding: 7px 11px 7px 18px; border-radius: 8px; }
  .support-announcement-label { font-size: 12px; }
  .support-announcement-arrow { font-size: 19px; }
  .support-donation { padding-top: 10px; gap: 8px; align-content: start; }
  .hero-card .support-center-widget .support-donation .support-widget-title { font-size: 20px; }
  .hero-card .support-center-widget .support-donation .support-widget-copy { font-size: 11px; }
  .support-donation-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-card .support-center-widget .support-donation .support-widget-qr-shell { display: none; }
  .support-donation-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
  .hero-card .support-center-widget .support-donation .support-widget-btn { min-height: 34px; font-size: 12px; padding: 7px 10px; }
  .hero-card .support-center-widget .support-donation .support-widget-note { font-size: 9px; max-width: 100px; }
}

}
@layer v1Runtime {
.seo-intro {
  box-sizing: border-box;
  max-width: 1100px;
  width: 100%;
  margin: 20px auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card, rgba(10, 16, 24, .8));
}
#combined-stats-shell + .seo-intro,
#recent-races + .seo-intro {
  max-width: none;
  grid-column: 1 / -1;
}
.seo-intro h1, .seo-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.25;
}
.seo-intro p { margin: 0 0 12px; line-height: 1.65; color: var(--muted); }
.seo-intro a, .seo-guide a { color: var(--accent-2, var(--accent)); text-underline-offset: 3px; }
.seo-guide {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  background: var(--bg-soft);
  min-height: 100vh;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.seo-guide nav { margin-bottom: 18px; }
.seo-guide h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; }
.seo-guide section { margin-top: 28px; }

.locale-suggestion {
  position: fixed;
  z-index: 10050;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--card, #101822);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .38);
}
.locale-suggestion-action { color: var(--accent-2, var(--accent)); font-weight: 700; white-space: nowrap; }
.locale-suggestion-dismiss {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
.locale-suggestion-dismiss:hover, .locale-suggestion-dismiss:focus-visible { color: var(--text); background: rgba(255, 255, 255, .08); }
@media (max-width: 560px) {
  .locale-suggestion { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .locale-suggestion span { flex: 1; }
}

}