:root {
    --pink: #eb3495;
    --pink-alt: #6f28ff;
    --purple: #6c12ff;
    --purple-alt: #8f24f8;
    --page-bg: #0a0118;
    --page-bg-alt: #0d0225;
    --header-left-bg: #f70fc9;
    --header-left-bg-alt: #3613af;
    --header-right-bg: #1a0b6d;
    --header-right-bg-alt: #0d0440;
    --purple-mid: #7b2fff;
    --gold: #f5c842;
    --bg-dark: #0a0118;
    --bg-mid: #120830;
    --table-header: rgba(100, 30, 200, 0.85);
    --table-row: rgba(15, 5, 50, 0.7);
    --table-row-alt: rgba(25, 10, 70, 0.7);
    --border-purple: rgba(108, 18, 255, 0.5);
    --white: #ffffff;
    --text-muted: rgba(255,255,255,0.65);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--page-bg);
    color: var(--white);
    overflow-x: hidden;
  }

  a { text-decoration: none; color: inherit; }

  /* ===== HEADER ===== */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0;
    height: 40px;
    background: transparent;
    box-shadow: none;
  }

  #header::after {
    content: none;
  }

  .menu-left {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 40%;
    gap: clamp(100px, 3.4vw, 56px);
    height: 100%;
    padding: 0 clamp(14px, 2vw, 30px) 0 clamp(16px, 2.4vw, 34px);
    background: linear-gradient(90deg, var(--header-left-bg) 0%, var(--purple-alt) 40%, var(--header-left-bg-alt) 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 42px) 100%, 0 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }

  .menu-left::after {
    content: "";
    position: absolute;
    left: 0;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: #15f0dd;
  }

  .menu-left .logo {
    display: inline-flex;
    align-items: center;
  }

  .menu-left .logo img {
    height: 20px;
    width: auto;
    display: block;
    object-fit: contain;
  }

  .menu-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.2s, text-shadow 0.2s;
    padding: 6px 0;
  }

  .menu-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  .menu-link--soft {
    position: relative;
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
  }

  .menu-link--soft::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 80%, transparent), color-mix(in srgb, var(--pink-alt) 80%, transparent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .menu-link--soft:hover {
    transform: translateY(-1px);
  }

  .menu-link--soft:hover::after {
    transform: scaleX(1);
  }

  .menu-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    height: 100%;
    padding: 0 clamp(34px, 3.4vw, 56px) 0 100px;
    background: linear-gradient(90deg, var(--header-right-bg) 0%, var(--header-right-bg-alt) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 42px 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }

  .menu-right::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #15f0dd;
  }

  .header-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }

  .header-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
  }

  #auth-controls {
    display: flex;
    align-items: center;
  }

  .user-session {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
  }

  .user-session__name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
  }

  .user-session__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.35);
  }

  .vpl-logo {
    display: none;
  }

  /* ===== HERO SECTION ===== */
  #main-body { padding-top: 0; }

  .section--1 {
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .section--1 .wrap-video {
    width: 100%;
    display: block;
  }
  .section--1 .wrap-video img {
    width: 100%;
    display: block;
    object-fit: cover;
  }

  /* ===== TOURNAMENT SECTION ===== */
  .section--2 {
    padding: 60px 0 30px;
    position: relative;
  }

  .section--2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in srgb, var(--purple) 22%, transparent) 0%, transparent 70%),
      linear-gradient(180deg, var(--page-bg), var(--page-bg-alt), var(--page-bg));
    z-index: 0;
  }

  .section--2::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 58px),
      repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 58px),
      repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 58px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }

  .section--2 > * { position: relative; z-index: 1; }

  .title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 0 30px rgba(108,18,255,0.6);
  }

  .sub-title {
    font-size: clamp(20px, 3.6vw, 18px);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .text-center { text-align: center; }

  .container--content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Team actions */
  .team-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
  }

  .btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn--gradient {
    background: linear-gradient(90deg, var(--purple), var(--pink));
    color: var(--white);
    padding: 9px 24px;
  }
  .btn--gradient:hover { opacity: 0.88; transform: translateY(-1px); }

  .btn--feature {
    box-shadow: 0 8px 18px rgba(108, 18, 255, 0.28);
  }

  /* Tournament Table */
  .list-tournament {
    margin-top: 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(108,18,255,0.35);
  }

  .list-tournament__row {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  .list-tournament__row--title {
    background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 88%, black), color-mix(in srgb, var(--purple-alt) 88%, black));
    min-height: 44px;
    border-bottom: 1px solid rgba(108,18,255,0.4);
  }

  .list-tournament__row:not(.list-tournament__row--title) {
    background: rgba(12, 4, 40, 0.75);
    border-bottom: 1px solid rgba(108,18,255,0.18);
    transition: background 0.2s;
  }
  .list-tournament__row:not(.list-tournament__row--title):hover {
    background: rgba(30, 10, 80, 0.75);
  }

  .list-tournament__row:last-child { border-bottom: none; }

  /* Column widths */
  .list-tournament__name {
    flex: 0 0 22%;
    padding: 10px 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .list-tournament__row--title .list-tournament__name { font-size: 14px; opacity: 0.95; }

  .list-tournament__request {
    flex: 0 0 18%;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.03em;
  }
  .list-tournament__row--title .list-tournament__request { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; }

  .list-tournament__type {
    flex: 0 0 14%;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
  }
  .list-tournament__row--title .list-tournament__type { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; }

  .list-tournament__total {
    flex: 0 0 12%;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
  }
  .list-tournament__row--title .list-tournament__total { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; }

  .list-tournament__address {
    flex: 0 0 14%;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
  }
  .list-tournament__row--title .list-tournament__address { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--white); opacity: 0.95; }

  .list-tournament__actions {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
  }
  .list-tournament__row--title .list-tournament__actions { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; justify-content: flex-end; }

  .btn-detail {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 78%, black), var(--purple-alt));
    padding: 6px 15px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
  }
  .btn-detail:hover { opacity: 0.85; }

  .btn-register {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pink) !important;
    background: color-mix(in srgb, var(--pink) 18%, transparent);
    border: 1px solid rgba(235,52,149,0.4);
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .btn-register:hover { background: color-mix(in srgb, var(--pink-alt) 28%, transparent); }

  /* ===== OVERALL LEADERBOARD ===== */
  .section--leaderboard {
    padding: 80px 0 60px;
    position: relative;
  }

  .section--leaderboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in srgb, var(--purple) 16%, transparent) 0%, transparent 70%);
  }

  .section--leaderboard > * { position: relative; z-index: 1; }

  .leaderboard-actions {
    display: flex;
    justify-content: center;
    margin: 8px 0 24px;
  }

  .leaderboard-shop {
    border: 1px solid var(--pink);
    color: var(--pink);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 11px 52px;
    transition: background 0.2s, color 0.2s;
  }

  .leaderboard-shop:hover {
    background: color-mix(in srgb, var(--pink) 16%, transparent);
    color: var(--white);
  }

  .leaderboard-container {
    max-width: 880px;
  }

  .leaderboard-scroll {
    overflow-x: auto;
    padding: 0 0 8px;
    scrollbar-color: var(--purple) rgba(0, 0, 0, 0.2);
  }

  .leaderboard {
    min-width: 700px;
    border-radius: 0;
    overflow: hidden;
  }

  .leaderboard__row {
    display: grid;
    grid-template-columns: 84px minmax(250px, 1fr) 104px 104px 104px 126px;
    align-items: center;
    min-height: 66px;
    background: rgba(20, 8, 68, 0.88);
    border-bottom: 6px solid var(--page-bg);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px;
    font-weight: 600;
    text-align: center;
  }

  .leaderboard__row:not(.leaderboard__row--header):nth-child(even) {
    background: rgba(36, 15, 100, 0.78);
  }

  .leaderboard__row--header {
    min-height: 66px;
    background: linear-gradient(90deg, var(--purple), var(--purple-alt));
    border-bottom: 8px solid var(--page-bg);
    text-transform: uppercase;
    font-size: 18px;
  }

  .leaderboard__rank,
  .leaderboard__name,
  .leaderboard__score,
  .leaderboard__total {
    padding: 10px 12px;
  }

  .leaderboard__name {
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .leaderboard__total {
    font-weight: 700;
  }

  .leaderboard__medal {
    width: 27px;
    height: 27px;
    justify-self: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 7px rgba(0, 0, 0, 0.25);
  }

  .leaderboard__medal::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin: 7px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
  }

  .leaderboard__medal--gold { background: #ffbf24; }
  .leaderboard__medal--silver { background: #c9cedb; }
  .leaderboard__medal--bronze { background: #d97732; }

  .leaderboard__empty {
    padding: 28px;
    background: rgba(20, 8, 68, 0.88);
    color: var(--text-muted);
    text-align: center;
  }

  .leaderboard__loading {
    padding: 28px;
    background: rgba(20, 8, 68, 0.88);
    color: var(--text-muted);
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
  }

  .shop-modal {
    width: min(860px, calc(100vw - 32px));
    max-width: 860px;
  }

  .shop-modal h2 {
    margin-bottom: 8px;
  }

  .shop-modal__intro {
    margin: 0 auto 4px;
    max-width: 760px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
  }

  .shop-modal__current-points {
    margin: 0 0 22px;
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    text-align: center;
  }

  .shop-modal__current-points strong {
    color: var(--gold);
  }

  /* ===== MODAL ===== */
  .ReactModal__Overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 0, 30, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .ReactModal__Content {
    /* background-color: #0b0526; */
    background-image: url("../../img/background_model.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0;
    width: min(920px, calc(100vw - 32px));
    max-width: 920px;
    aspect-ratio: auto;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 28px 24px;
    position: relative;
    z-index: 1;
    isolation: isolate;
    animation: fadeInDown 0.3s ease;
    /* box-shadow: */
     
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .ReactModal__Content h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff2acb;
    text-align: center;
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(255, 45, 189, 0.6);
  }

  .tournament-detail-modal {
    max-width: 840px;
    width: min(840px, calc(100vw - 32px));
  }

  .close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    line-height: 1;
    transition: color 0.2s;
  }
  .close:hover { color: var(--pink); }

  .info-tournament__row {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(108,18,255,0.15);
    align-items: flex-start;
  }

  .info-tournament__label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    white-space: nowrap;
    min-width: 130px;
  }

  .info-tournament__content {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
  }

  .info-res {
    font-size: 12px;
    line-height: 1.7;
    color: var(--gold);
    font-weight: 600;
  }

  .hr-form {
    height: 1px;
    background: rgba(108,18,255,0.3);
    margin: 18px 0;
  }

  .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
  .col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
  .col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 8px; }
  .col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
  .justify-content-center { justify-content: center; }

  .btn--submit {
    background: linear-gradient(90deg, var(--purple), var(--purple-alt));
    color: var(--white);
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn--submit:hover { opacity: 0.88; }

  .join-modal {
    width: min(980px, calc(100vw - 40px));
    max-width: 980px;
    aspect-ratio: auto;
    max-height: 86vh;
    padding: 26px 42px 28px;
  }

  .join-modal h2 {
    text-align: center;
    font-size: clamp(28px, 3.2vw, 44px);
    color: #ff26cb;
    margin-bottom: 20px;
  }

  .join-modal__tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .join-modal__tab {
    min-width: 190px;
    padding: 10px 18px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    cursor: default;
  }

  .join-modal__tab--active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--purple-alt) 0%, var(--pink) 100%);
  }

  .join-modal__form {
    padding: 4px 4px 0;
  }

  .join-modal__grid {
    display: grid;
    grid-template-columns: 150px minmax(160px, 1fr) 150px minmax(160px, 1fr);
    gap: 12px 12px;
    align-items: center;
    margin-bottom: 16px;
  }

  .join-modal__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
  }

  .join-modal__label span {
    color: #ff2dbd;
  }

  .join-modal__input {
    height: 40px;
    width: 100%;
    padding: 6px 10px;
    font-size: 15px;
    color: #ffffff;
    background: rgba(15, 5, 50, 0.55);
    border: 1px solid rgba(173, 112, 255, 0.38);
    outline: none;
    border-radius: 3px;
  }

  .join-modal__input:focus {
    border-color: #ff2dbd;
    box-shadow: 0 0 0 1px rgba(255, 45, 189, 0.25);
  }

  .join-modal__input[type="date"] {
    color-scheme: light;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    -webkit-text-fill-color: #ffffff;
  }

  .join-modal__input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    width: 42px;
    height: 32px;
  }

  .join-modal__actions {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .join-modal__actions .btn--submit {
    min-width: 190px;
  }

  .join-modal__error {
    grid-column: 4;
    margin-top: -10px;
    font-size: 12px;
    color: #ff5ecf;
    font-weight: 600;
  }

  .join-modal__input--error {
    border-color: #ff5ecf;
    box-shadow: 0 0 0 1px rgba(255, 94, 207, 0.25);
  }

  .otp-modal {
    width: min(900px, calc(100vw - 40px));
    max-width: 920px;
    aspect-ratio: auto;
    max-height: 82vh;
    padding-bottom: 24px;
  }

  .otp-modal__line {
    display: grid;
    grid-template-columns: 240px minmax(200px, 1fr);
    align-items: center;
    gap: 14px;
    margin: 14px 0 14px;
    padding: 10px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .otp-modal__input {
    max-width: 420px;
  }

  .otp-modal__note {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 112, 220, 0.95);
    text-transform: uppercase;
  }

  .otp-modal__error {
    grid-column: auto;
    margin-top: -6px;
    margin-bottom: 6px;
    text-align: center;
  }

  .result-modal {
    width: min(900px, calc(100vw - 40px));
    max-width: 920px;
    aspect-ratio: auto;
    max-height: 82vh;
    padding-bottom: 24px;
  }

  .result-modal h2 {
    margin-bottom: 16px;
  }

  .result-modal__body {
    margin: 6px 0 2px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .result-modal__warning {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #ff4aba;
    text-transform: uppercase;
    max-width: 780px;
  }

  .result-modal__retry {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
  }

  .result-modal__retry span {
    color: #ff2ea2;
  }

  .result-modal__retry:hover {
    color: #ff45be;
  }

  .result-modal__thanks {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
  }

  /* ===== FOOTER ===== */
  #footer {
    text-align: center;
    padding: 14px 20px 12px;
    background: #030507;
    border-top: none;
  }
  .footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: none;
  }
  .footer-brand img {
    display: block;
    width: min(520px, 92%);
    height: auto;
  }
  .footer-meta p {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .footer-meta p:last-child {
    margin-bottom: 0;
  }
  .footer-meta a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
  }

  /* ===== WATERMARK BG TEXT ===== */
  .bg-text {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(108,18,255,0.07);
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
  }

  /* ===== SPONSOR LOGOS (if any) ===== */
  .sponsor-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 30px);
    padding: 0 clamp(20px, 5vw, 80px);
    flex-wrap: wrap;
    margin-top: -2px;
  }

  .sponsor-strip img {
    height: clamp(18px, 2vw, 30px);
    opacity: 0.75;
    filter: brightness(1.1);
  }

  /* Section 2 watermark */
  .section-watermark {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(108,18,255,0.045);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
  }

  /* responsive */
  @media (max-width: 768px) {
    #header {
      height: 62px;
      padding: 0;
      gap: 0;
    }
    .menu-left {
      flex: 1 1 auto;
      gap: 12px;
      padding: 0 10px;
      clip-path: none;
    }
    .menu-left::after {
      right: 0;
    }
    .menu-left .logo img {
      height: 30px;
    }
    .menu-link {
      font-size: 14px;
      letter-spacing: 0.02em;
    }
    .menu-right {
      padding: 0 12px;
      clip-path: none;
    }
    .menu-right::after {
      left: 0;
    }
    .header-btn {
      font-size: 13px;
      padding: 6px 14px;
    }
    .user-session {
      gap: 10px;
      padding: 0;
    }
    .user-session__name {
      font-size: 14px;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .user-session__divider {
      height: 16px;
    }
    #main-body {
      padding-top: 0;
    }
    .col-6 { flex: 0 0 100%; max-width: 100%; }
    .list-tournament__request, .list-tournament__type, .list-tournament__address { display: none; }
    .list-tournament__name { flex: 1; }
    .list-tournament__total { flex: 0 0 60px; }
    .join-modal {
      width: min(100%, calc(100vw - 20px));
      max-height: 88vh;
      padding: 16px 14px 18px;
    }
    .ReactModal__Content {
      width: min(100%, calc(100vw - 20px));
      max-height: 88vh;
      padding: 16px 14px 18px;
    }
    .join-modal__tabs {
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
      padding-bottom: 12px;
    }
    .join-modal__tab {
      min-width: 140px;
      font-size: 14px;
      padding: 8px 10px;
    }
    .join-modal__grid {
      grid-template-columns: 1fr;
      gap: 8px;
      margin-bottom: 16px;
    }
    .join-modal__error {
      grid-column: auto;
      margin-top: 0;
      margin-bottom: 6px;
    }
    #footer {
      padding: 12px 12px 10px;
    }
    .footer-brand {
      padding-bottom: 8px;
      margin-bottom: 8px;
    }
    .footer-meta p {
      font-size: 9px;
      line-height: 1.4;
    }
    .join-modal__label {
      font-size: 17px;
    }
    .join-modal__input {
      height: 40px;
      font-size: 16px;
    }
    .otp-modal__line {
      grid-template-columns: 1fr;
      margin: 12px 0 16px;
      padding: 10px 0;
      gap: 8px;
    }
    .otp-modal__input {
      max-width: 100%;
    }
    .otp-modal__note {
      margin-top: 10px;
      font-size: 11px;
    }
    .result-modal__warning {
      margin-bottom: 14px;
      font-size: 14px;
    }
    .result-modal__retry,
    .result-modal__thanks {
      font-size: 20px;
    }
    .otp-modal__error {
      margin-top: 0;
      margin-bottom: 8px;
      text-align: left;
    }
  }

  /* Scrollbar custom */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
  ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--purple) 65%, transparent); border-radius: 3px; }
