: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; }

    .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);
    }

    .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;
    }

    .file-mount {
      color: #14213d;
    }

    .file-mount * {
      box-sizing: border-box;
    }

    .file-mount img {
      max-width: 100%;
      display: block;
    }

    .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.referee-mount {
      margin-top: 0;
    }

    .file-mount.referee-mount .page-header {
      padding: 28px 0 10px;
    }

    .file-mount.referee-mount .section-head {
      width: min(100%, 520px);
      padding: 0 54px;
      margin: 0 auto 28px;
    }

    .file-mount.referee-mount .section-head h1 {
      white-space: nowrap;
      font-size: clamp(2rem, 3.2vw, 2.8rem);
    }

    .file-mount.referee-mount .carousel-shell {
      position: relative;
      width: min(100%, 520px);
      padding: 0 54px;
      margin: 0 auto 12px;
      --referee-image-center: 260px;
    }

    .file-mount.referee-mount .carousel {
      overflow: hidden;
      width: 100%;
    }

    .file-mount.referee-mount .carousel-track {
      display: flex;
      gap: 18px;
      transition: transform .35s ease;
      will-change: transform;
      align-items: stretch;
    }

    .file-mount.referee-mount .tile-card {
      flex: 0 0 100%;
      min-width: 0;
      min-height: 280px;
      background: rgba(255,255,255,0.92);
      border-radius: 24px;
      border: 1px solid rgba(9, 40, 103, 0.08);
      box-shadow: 0 18px 40px rgba(8, 31, 80, 0.12);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .file-mount.referee-mount .tile-card img {
      width: 100%;
      height: auto;
      aspect-ratio: 1638 / 2048;
      object-fit: contain;
      background: #edf1f7;
      margin: 0;
      border-radius: 0;
    }

    .file-mount.referee-mount .tile-body {
      flex: 1 1 auto;
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      overflow: auto;
    }

    .file-mount.referee-mount .tile-body h3 {
      margin: 0;
      font-size: 1.12rem;
      line-height: 1.25;
      color: #10367e;
    }

    .file-mount.referee-mount .tile-body p,
    .file-mount.referee-mount .rule-text {
      display: none;
      color: #47526b;
      font-size: 0.98rem;
      line-height: 1.7;
    }

    .file-mount.referee-mount .rule-text strong {
      display: block;
      margin-bottom: 14px;
      color: #10367e;
    }

    .file-mount.referee-mount .rule-text ol {
      margin: 0;
      padding-left: 22px;
    }

    .file-mount.referee-mount .rule-text li {
      margin-bottom: 12px;
    }

    .file-mount.referee-mount .tile-card.open .tile-body p,
    .file-mount.referee-mount .tile-card.open .rule-text {
      display: block;
    }

    .file-mount.referee-mount .tile-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      padding: 0;
      border: none;
      background: none;
      color: #2b55aa;
      font-weight: 800;
      cursor: pointer;
    }

    .file-mount.referee-mount .tile-toggle span:last-child {
      width: 10px;
      height: 10px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
      transition: transform .2s ease;
    }

    .file-mount.referee-mount .tile-card.open .tile-toggle span:last-child {
      transform: rotate(-135deg);
      margin-top: 6px;
    }

    .file-mount.referee-mount .carousel-btn {
      position: absolute;
      top: var(--referee-image-center);
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, #1e59c0, #0f3f96);
      color: white;
      box-shadow: 0 12px 20px rgba(16, 59, 138, 0.3);
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: transform .2s ease, opacity .2s ease;
      z-index: 2;
    }

    .file-mount.referee-mount .carousel-btn:hover:not(:disabled) {
      transform: translateY(-50%) scale(1.04);
    }

    .file-mount.referee-mount .carousel-btn:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .file-mount.referee-mount .carousel-btn.prev { left: 0; }
    .file-mount.referee-mount .carousel-btn.next { right: 0; }

    .file-mount.referee-mount .carousel-btn::before {
      content: "";
      width: 10px;
      height: 10px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      display: block;
    }

    .file-mount.referee-mount .carousel-btn.prev::before {
      transform: rotate(-135deg);
      margin-left: 4px;
    }

    .file-mount.referee-mount .carousel-btn.next::before {
      transform: rotate(45deg);
      margin-right: 4px;
    }

    .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;
    }


    @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;
      }
    }

    @media (max-width: 560px) {
      .file-mount.referee-mount .section-head,
      .file-mount.referee-mount .carousel-shell {
        width: 100%;
        padding: 0 46px;
      }

      .file-mount.referee-mount .section-head {
        gap: 10px;
      }

      .file-mount.referee-mount .section-head .puck {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
      }

      .file-mount.referee-mount .section-head h1 {
        white-space: nowrap;
        font-size: clamp(1.28rem, 7.2vw, 2.2rem);
        letter-spacing: -0.055em;
      }

      .file-mount.referee-mount .carousel-btn {
        width: 40px;
        height: 40px;
      }
    }


    @media (max-width: 380px) {
      .file-mount.referee-mount .section-head {
        padding: 0 34px;
        gap: 8px;
      }

      .file-mount.referee-mount .section-head h1 {
        font-size: clamp(1.12rem, 7vw, 1.55rem);
      }

      .file-mount.referee-mount .section-head .puck {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
      }
    }
      .optimized-picture {
      display: contents;
    }
