:root {
      --bg: #07111f;
      --bg-soft: rgba(10, 20, 36, 0.82);
      --card: rgba(15, 31, 54, 0.82);
      --line: rgba(255,255,255,0.12);
      --text: #eef6ff;
      --muted: #b7c7de;
      --accent: #4bb7ff;
      --accent-2: #89f0ff;
      --danger: #ff6b6b;
      --gold: #ffd166;
      --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      min-height: 100%;
      font-family: "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top, rgba(61, 112, 174, 0.28), transparent 30%),
        linear-gradient(180deg, #020814 0%, #06101e 55%, #071420 100%);
      overflow-x: hidden;
    }



    .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0 0 0 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--accent-2);
      outline-offset: 4px;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -2;
    }

    body::before {
      background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.9), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(255,255,255,.65), transparent),
        radial-gradient(1.5px 1.5px at 55% 35%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 80% 25%, rgba(255,255,255,.75), transparent),
        radial-gradient(1.5px 1.5px at 75% 70%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 90% 82%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 14% 64%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 45% 14%, rgba(255,255,255,.75), transparent);
      animation: twinkle 8s linear infinite alternate;
      opacity: 0.95;
    }

    body::after {
      background:
        radial-gradient(circle at 50% 50%, rgba(70, 185, 255, 0.10), transparent 18%),
        radial-gradient(circle at 20% 20%, rgba(155, 100, 255, 0.08), transparent 22%),
        radial-gradient(circle at 80% 80%, rgba(255, 120, 120, 0.06), transparent 20%);
      animation: nebulaMove 18s ease-in-out infinite alternate;
    }

    @keyframes twinkle {
      0% { transform: translateY(0) scale(1); opacity: .85; }
      100% { transform: translateY(-12px) scale(1.04); opacity: 1; }
    }

    @keyframes nebulaMove {
      0% { transform: translate3d(0, 0, 0) scale(1); }
      100% { transform: translate3d(0, -20px, 0) scale(1.06); }
    }

    .container {
      width: min(1280px, calc(100% - 32px));
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(12px);
      background: rgba(4, 11, 22, 0.84);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 0;
      flex-wrap: nowrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
      flex: 1 1 auto;
      max-width: 420px;
    }

    .logo-slot {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: transparent;
      flex-shrink: 0;
    }

    .logo-slot img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .brand-text .brand-title {
      font-size: clamp(16px, 1.65vw, 24px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0.01em;
    }

    .brand-text p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255,255,255,0.04);
      color: var(--text);
      cursor: pointer;
      flex-shrink: 0;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
      content: "";
      display: block;
      width: 20px;
      height: 2px;
      background: white;
      border-radius: 999px;
      position: relative;
      transition: .25s ease;
    }

    .nav-toggle span::before { position: absolute; top: -6px; }
    .nav-toggle span::after { position: absolute; top: 6px; }

    .main-nav {
      flex: 0 1 auto;
      min-width: 0;
    }

    .menu {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      justify-content: flex-end;
      white-space: nowrap;
    }

    .menu > li {
      position: relative;
    }

    .menu > li > a,
    .menu > li > button {
      color: var(--text);
      background: transparent;
      border: 0;
      cursor: pointer;
      font: inherit;
      font-size: 14px;
      padding: 10px 10px;
      border-radius: 12px;
      transition: 0.25s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .menu > li > a:hover,
    .menu > li > button:hover,
    .menu > li:hover > a,
    .menu > li:hover > button {
      background: rgba(255,255,255,0.08);
      color: var(--accent-2);
    }

    .dropdown-arrow {
      width: 8px;
      height: 8px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-1px);
      transition: transform .2s ease;
    }

    .has-submenu:hover .dropdown-arrow,
    .has-submenu.open .dropdown-arrow {
      transform: rotate(225deg) translateY(-1px);
    }

    .submenu {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      min-width: 200px;
      list-style: none;
      padding: 10px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 18px;
      background: rgba(7, 16, 31, 0.95);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: .25s ease;
    }

    .submenu li a {
      display: block;
      padding: 12px 14px;
      border-radius: 12px;
      color: var(--muted);
      transition: .2s ease;
    }

    .submenu li a:hover {
      background: rgba(255,255,255,0.08);
      color: var(--text);
    }

    .has-submenu:hover .submenu,
    .has-submenu.open .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    main {
      position: relative;
      padding: 42px 0 60px;
    }

    .site-footer {
      padding: 44px 0 40px;
    }

    .footer-inner {
      background: rgba(4,11,22,.82);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 24px;
      padding: 24px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: 1fr;
      gap: 20px;
      align-items: stretch;
    }

    .footer-block {
      min-width: 0;
      min-height: 260px;
      height: 100%;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 20px;
      background: rgba(255,255,255,.04);
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
    }

    .footer-title h3 {
      font-size: 20px;
      margin-bottom: 6px;
    }

    .socials {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .social-link {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 64px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.1);
      background: rgba(255,255,255,.05);
      transition: .22s ease;
      font-weight: 700;
    }

    .social-link:hover {
      background: rgba(255,255,255,.1);
      color: var(--accent-2);
      transform: translateY(-2px);
    }

    .social-icon-slot {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.1);
      display: grid;
      place-items: center;
      overflow: hidden;
      flex-shrink: 0;
    }

    .social-icon-slot img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .social-link span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .support-card {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .support-brand {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 24px;
      min-width: 0;
      height: 100%;
      text-align: center;
    }

    .support-logo-slot {
      width: 160px;
      height: 160px;
      border-radius: 28px;
      background: rgba(255,255,255,.06);
      border: 1px dashed rgba(255,255,255,.18);
      display: grid;
      place-items: center;
      overflow: hidden;
      flex-shrink: 0;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
      padding: 12px;
      transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
    }

    .support-logo-slot:hover {
      background: rgba(255,255,255,.1);
      border-color: rgba(137,240,255,.42);
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 10px 24px rgba(0,0,0,.22);
    }

    .support-logo-slot img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .support-copy {
      text-align: center;
    }

    .support-copy a {
      color: var(--text);
      transition: color .22s ease;
    }

    .support-copy a:hover {
      color: var(--accent-2);
    }

    .support-copy strong {
      display: block;
      font-size: 1.5rem;
      line-height: 1.3;
      margin-bottom: 0;
      color: inherit;
      text-align: center;
      transition: color .22s ease;
    }

    .nav-toggle.active span {
      background: transparent;
    }

    .nav-toggle.active span::before {
      top: 0;
      transform: rotate(45deg);
    }

    .nav-toggle.active span::after {
      top: 0;
      transform: rotate(-45deg);
    }

    .file-mount {
      color: #14213d;
    }

    .file-mount * {
      box-sizing: border-box;
    }

    .file-mount img {
      max-width: 100%;
      display: block;
    }

    .file-mount a {
      color: inherit;
      text-decoration: none;
    }

    .file-mount button {
      font: inherit;
    }

    .file-mount .page-header {
      padding: 28px 0 10px;
    }

    .file-mount .section-head {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 28px;
    }

    .file-mount .puck {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, #3b4350, #0f141c 65%);
      box-shadow: inset 0 -2px 4px rgba(255,255,255,0.08), 0 4px 10px rgba(0,0,0,0.18);
      flex: 0 0 24px;
    }

    .file-mount .section-head h1 {
      margin: 0;
      font-size: clamp(2rem, 4vw, 3.2rem);
      letter-spacing: -0.04em;
      color: #ffffff;
    }

    .file-mount .rules-gallery {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 22px;
      margin-bottom: 36px;
    }

    .file-mount .zoom-card {
      margin: 0;
      overflow: hidden;
      border-radius: 24px;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(9, 40, 103, 0.08);
      box-shadow: 0 18px 40px rgba(8, 31, 80, 0.12);
    }

    .file-mount .zoom-trigger {
      display: block;
      width: 100%;
      padding: 0;
      border: none;
      background: none;
      color: inherit;
      cursor: zoom-in;
    }

    .file-mount .zoom-trigger .optimized-picture {
      display: block;
    }

    .file-mount .zoom-card img {
      width: 100%;
      height: auto;
      aspect-ratio: auto;
      object-fit: contain;
      transition: transform .25s ease;
    }

    .file-mount .zoom-card:hover img {
      transform: scale(1.01);
    }

    .file-mount .zoom-card figcaption {
      padding: 16px 18px 18px;
      font-weight: 800;
      color: #10367e;
    }

    .file-lightbox {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(4, 17, 46, 0.82);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .25s ease, visibility .25s ease;
      z-index: 200;
    }

    .file-lightbox.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .file-lightbox-dialog {
      position: relative;
      width: min(1100px, 100%);
      max-height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .file-lightbox-image {
      width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 24px;
      box-shadow: 0 24px 50px rgba(0,0,0,0.28);
      background: #fff;
    }

    .file-lightbox-close {
      position: absolute;
      top: -14px;
      right: -14px;
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 50%;
      background: white;
      color: #0c2d75;
      font-size: 1.8rem;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 12px 26px rgba(0,0,0,0.22);
    }

    .file-lightbox-close:hover {
      transform: scale(1.05);
    }

    @media (max-width: 860px) {
      .file-mount .rules-gallery {
        grid-template-columns: 1fr;
      }
    }


    @media (max-width: 1080px) {
      .footer-inner {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 900px) {
      .site-header {
        position: sticky;
      }

      .header-inner {
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 0;
      }

      .brand {
        max-width: calc(100% - 58px);
      }

      .logo-slot {
        width: 58px;
        height: 58px;
        border-radius: 14px;
      }

      .brand-text .brand-title {
        font-size: clamp(15px, 4vw, 20px);
      }

      .brand-text p {
        font-size: 11px;
      }

      .nav-toggle {
        display: inline-flex;
      }

      .main-nav {
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .28s ease, opacity .22s ease;
      }

      .main-nav.active {
        max-height: min(80vh, 680px);
        opacity: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 4px;
      }

      .menu {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
        padding: 10px 0 4px;
        white-space: normal;
      }

      .menu > li > a,
      .menu > li > button {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        background: rgba(255,255,255,.045);
        border: 1px solid rgba(255,255,255,.08);
        font-size: 15px;
        padding: 12px 14px;
      }

      .submenu {
        position: static;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 8px;
        padding: 8px;
        border-radius: 14px;
        background: rgba(255,255,255,0.045);
      }

      .has-submenu.open .submenu {
        display: block;
      }

      .submenu li a {
        padding: 12px 14px;
      }

      .footer-block {
        min-height: auto;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 20px, 1280px);
      }

      .header-inner {
        gap: 10px;
      }

      .logo-slot {
        width: 52px;
        height: 52px;
        border-radius: 12px;
      }

      .brand {
        gap: 10px;
      }

      .brand-text .brand-title {
        line-height: 1.15;
      }

      .brand-text p {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.25;
      }

      .nav-toggle {
        width: 42px;
        height: 42px;
      }

      .footer-inner {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 16px;
        gap: 16px;
      }

      .footer-block {
        border-radius: 18px;
        padding: 18px;
        gap: 16px;
        text-align: center;
      }

      .footer-title h3 {
        text-align: center;
      }

      .support-brand {
        flex-direction: column;
        gap: 14px;
        text-align: center;
      }

      .support-logo-slot {
        width: 120px;
        height: 120px;
        border-radius: 22px;
      }

      .support-copy strong {
        font-size: 1.1rem;
        text-align: center;
      }

      .socials {
        grid-template-columns: 1fr;
      }

      .social-link {
        min-height: 58px;
        padding: 10px 12px;
        justify-content: center;
      }
    }
      .optimized-picture {
      display: contents;
    }
