:root {
      --bg: #f6f7f9;
      --panel: #ffffff;
      --ink: #17202a;
      --muted: #657282;
      --line: #d9dee7;
      --accent: #246bfe;
      --green: #0f9f6e;
      --orange: #c77700;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.45;
    }
    .topbar {
      background: #ffffff;
      border-bottom: 1px solid var(--line);
      padding: 14px 12px;
    }
    .admin-impersonation-banner {
      align-items: center;
      background: #fff3c4;
      border-bottom: 1px solid #d7ad22;
      color: #513e00;
      display: flex;
      gap: 16px;
      height: 56px;
      justify-content: center;
      left: 0;
      padding: 10px 14px;
      position: fixed;
      right: 0;
      top: 0;
      z-index: 80;
    }
    .admin-impersonation-banner[hidden] { display: none; }
    body.is-admin-impersonating { padding-top: 56px; }
    body.is-admin-impersonating .topbar { top: 56px; }
    .admin-impersonation-banner span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .admin-impersonation-banner strong { color: #2f2500; }
    .admin-impersonation-banner button {
      appearance: none;
      background: #513e00;
      border: 0;
      border-radius: 999px;
      color: #fff;
      cursor: pointer;
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      min-height: 36px;
      padding: 7px 13px;
    }
    .topbar__head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      min-height: 56px;
      position: relative;
    }
    .topbar__left {
      align-items: center;
      display: flex;
      gap: 4px;
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
      min-width: 0;
      position: relative;
      z-index: 25;
    }
    .brand {
      display: flex;
      align-items: center;
      justify-content: center;
      grid-column: 2;
      grid-row: 1;
      gap: 10px;
      text-decoration: none;
    }
    .brand:hover,
    .brand:focus-visible {
      outline: 3px solid rgba(36, 107, 254, .2);
      outline-offset: 5px;
      border-radius: 6px;
    }
    .brand img {
      display: block;
      width: min(300px, calc(100vw - 160px));
      height: auto;
    }
    .brand span {
      color: #e11d48;
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0;
      white-space: nowrap;
    }
    .site-navigation {
      position: relative;
    }
    .site-navigation__trigger {
      align-items: center;
      appearance: none;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--ink);
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-size: 14px;
      font-weight: 800;
      gap: 9px;
      justify-content: center;
      min-height: 42px;
      padding: 8px 13px;
    }
    .site-navigation__trigger:hover,
    .site-navigation__trigger:focus-visible {
      border-color: var(--accent);
      outline: 3px solid rgba(36, 107, 254, .16);
      outline-offset: 2px;
    }
    .site-navigation__icon {
      color: #1652d6;
      display: grid;
      filter: drop-shadow(0 1px 1px rgba(22, 82, 214, .22));
      gap: 4px;
      width: 23px;
    }
    .site-navigation__icon span {
      background: currentColor;
      border-radius: 999px;
      display: block;
      height: 3px;
      width: 100%;
    }
    .site-navigation__popover {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 18px 48px rgba(23, 32, 42, .18);
      left: 0;
      padding: 8px;
      position: absolute;
      top: calc(100% + 10px);
      width: min(250px, calc(100vw - 24px));
      z-index: 35;
    }
    .site-navigation__popover[hidden] { display: none; }
    .site-navigation__action {
      align-items: center;
      appearance: none;
      background: #fff;
      border: 0;
      border-radius: 9px;
      color: var(--ink);
      cursor: pointer;
      display: flex;
      font: inherit;
      font-size: 16px;
      font-weight: 800;
      gap: 11px;
      min-height: 46px;
      padding: 11px 13px;
      text-align: left;
      width: 100%;
    }
    .site-navigation__action[hidden] { display: none; }
    .site-navigation__action:hover,
    .site-navigation__action:focus-visible {
      background: #eef5ff;
      color: #17376f;
      outline: none;
    }
    .site-navigation__action[aria-busy="true"] {
      cursor: progress;
      opacity: 0.68;
    }
    .site-navigation__action[aria-current="page"] {
      background: #e8f0ff;
      color: #1652d6;
    }
    .site-navigation__action-icon {
      font-size: 19px;
      line-height: 1;
      text-align: center;
      width: 24px;
    }
    .user-access {
      position: relative;
      grid-column: 3;
      grid-row: 1;
      justify-self: end;
      z-index: 20;
    }
    .user-login-trigger {
      align-items: center;
      appearance: none;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--ink);
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      justify-content: center;
      min-height: 40px;
      padding: 8px 13px;
    }
    .user-login-trigger:hover,
    .user-login-trigger:focus {
      border-color: var(--accent);
      outline: none;
    }
    .user-login-trigger.is-logged-in {
      height: 52px;
      min-height: 52px;
      overflow: hidden;
      padding: 0;
      width: 52px;
    }
    .user-login-trigger__avatar {
      align-items: center;
      background: #e8edf5 center/cover no-repeat;
      display: flex;
      font-size: 14px;
      font-weight: 800;
      height: 100%;
      justify-content: center;
      width: 100%;
    }
    .user-login-trigger__avatar[hidden] { display: none; }
    .user-login-popover,
    .user-menu-popover {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 18px 48px rgba(23, 32, 42, .18);
      position: absolute;
      right: 0;
      top: calc(100% + 10px);
      width: min(380px, calc(100vw - 40px));
      z-index: 30;
    }
    .user-login-popover { padding: 20px; }
    .user-login-popover[hidden],
    .user-menu-popover[hidden] { display: none; }
    .user-login-popover h2 {
      color: var(--ink);
      font-size: 20px;
      line-height: 1.25;
      margin: 0 28px 16px 0;
      text-align: left;
    }
    .user-login-close {
      appearance: none;
      background: transparent;
      border: 0;
      color: var(--muted);
      cursor: pointer;
      font-size: 26px;
      line-height: 1;
      padding: 2px 5px;
      position: absolute;
      right: 10px;
      top: 9px;
    }
    .user-login-form { display: grid; gap: 11px; }
    .user-login-form[hidden],
    .user-login-actions[hidden] { display: none; }
    .user-login-form label { font-size: 14px; font-weight: 700; }
    .user-login-form input {
      border: 2px solid var(--line);
      border-radius: 10px;
      font: inherit;
      padding: 12px 13px;
      width: 100%;
    }
    .user-login-form input:focus { border-color: var(--accent); outline: none; }
    .user-login-primary,
    .user-login-secondary,
    .user-login-actions button,
    .user-login-actions a {
      align-items: center;
      appearance: none;
      border: 1px solid var(--line);
      border-radius: 9px;
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      justify-content: center;
      min-height: 42px;
      padding: 9px 12px;
      text-align: center;
      text-decoration: none;
    }
    .user-login-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
    .user-login-secondary { background: #fff; border-color: #9db8ef; color: #174ea6; }
    .user-login-actions button,
    .user-login-actions a { background: #fff; color: var(--ink); }
    .user-login-actions {
      display: grid;
      gap: 8px;
      grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
      margin-top: 12px;
    }
    .user-login-help { color: var(--muted); font-size: 14px; margin: 0; }
    .user-login-rejection {
      background: #fff1f0;
      border: 1px solid #f4b4ae;
      border-radius: 10px;
      color: #a3160d;
      font-size: 21px;
      font-weight: 800;
      line-height: 1.28;
      margin: 16px 0 0;
      padding: 14px;
      text-align: center;
    }
    .user-login-rejection[hidden] { display: none; }
    .user-login-status { color: #b42318; font-size: 14px; font-weight: 700; margin: 12px 0 0; min-height: 20px; }
    .user-login-otp {
      font-size: 28px !important;
      font-variant-numeric: tabular-nums;
      letter-spacing: .4em;
      text-align: center;
      text-indent: .4em;
    }
    .user-login-waiting {
      animation: user-login-pulse 1.15s ease-in-out infinite;
      color: #17376f;
      font-size: 20px;
      font-weight: 800;
      margin: 0;
      text-align: center;
    }
    .user-login-waiting[hidden] { display: none; }
    @keyframes user-login-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: .28; }
    }
    .user-menu-popover { padding: 8px; width: 230px; }
    .user-menu-action {
      appearance: none;
      background: #fff;
      border: 0;
      border-radius: 9px;
      color: var(--ink);
      cursor: pointer;
      display: block;
      font: inherit;
      font-weight: 800;
      padding: 12px 13px;
      text-align: left;
      text-decoration: none;
      width: 100%;
    }
    .user-menu-action.is-danger { color: #b42318; }
    .user-menu-action[hidden] { display: none; }
    .user-menu-action:hover,
    .user-menu-action:focus { background: #eef5ff; color: #17376f; outline: none; }
    .public-admin-impersonation-page {
      background: #eef4fb;
      color: #101828;
      font-family: Arial, Helvetica, sans-serif;
      inset: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 18px;
      position: fixed;
      z-index: 115;
    }
    .public-admin-impersonation-page[hidden] { display: none; }
    .public-admin-impersonation-shell {
      display: grid;
      gap: 18px;
      margin: 0 auto;
      max-width: 680px;
    }
    .public-admin-impersonation-header {
      align-items: center;
      display: flex;
      gap: 14px;
      justify-content: space-between;
    }
    .public-admin-impersonation-header h1 { font-size: 24px; margin: 0; }
    .public-admin-impersonation-close,
    .public-admin-impersonation-start {
      appearance: none;
      border: 0;
      border-radius: 10px;
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      min-height: 44px;
      padding: 10px 15px;
    }
    .public-admin-impersonation-close { background: #fff; color: #172033; }
    .public-admin-impersonation-start { background: var(--accent); color: #fff; }
    .public-admin-impersonation-start:disabled { cursor: default; opacity: .5; }
    .public-admin-impersonation-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 18px 48px rgba(23, 32, 42, .12);
      display: grid;
      gap: 14px;
      padding: 18px;
    }
    .public-admin-impersonation-warning {
      background: #fff8d8;
      border: 1px solid #e7ca58;
      border-radius: 12px;
      color: #5f4a00;
      margin: 0;
      padding: 12px 14px;
    }
    .public-admin-impersonation-search {
      display: grid;
      gap: 8px;
    }
    .public-admin-impersonation-search label { font-size: 14px; font-weight: 800; }
    .public-admin-impersonation-search input {
      border: 2px solid var(--line);
      border-radius: 11px;
      font: inherit;
      font-size: 16px;
      padding: 12px 13px;
      width: 100%;
    }
    .public-admin-impersonation-search input:focus { border-color: var(--accent); outline: none; }
    .public-admin-impersonation-results {
      border: 1px solid var(--line);
      border-radius: 11px;
      display: grid;
      max-height: 320px;
      overflow-y: auto;
    }
    .public-admin-impersonation-results[hidden] { display: none; }
    .public-admin-impersonation-result {
      appearance: none;
      background: #fff;
      border: 0;
      border-bottom: 1px solid var(--line);
      color: #172033;
      cursor: pointer;
      font: inherit;
      font-weight: 750;
      padding: 13px;
      text-align: left;
    }
    .public-admin-impersonation-result:last-child { border-bottom: 0; }
    .public-admin-impersonation-result:hover,
    .public-admin-impersonation-result:focus { background: #eef5ff; outline: none; }
    .public-admin-impersonation-status {
      color: #526174;
      font-size: 14px;
      font-weight: 700;
      margin: 0;
      min-height: 20px;
    }
    .public-profile-photo-page {
      background: #eef4fb;
      color: #101828;
      font-family: Arial, Helvetica, sans-serif;
      inset: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 18px;
      position: fixed;
      z-index: 110;
    }
    .public-profile-photo-page[hidden] { display: none; }
    .public-profile-photo-shell {
      display: grid;
      gap: 18px;
      margin: 0 auto;
      max-width: 760px;
    }
    .public-profile-photo-header {
      align-items: center;
      display: flex;
      gap: 14px;
      justify-content: space-between;
    }
    .public-profile-photo-header h1 {
      color: #0f4fc8;
      font-size: clamp(28px, 6vw, 42px);
      line-height: 1.1;
      margin: 0;
    }
    .public-profile-photo-close,
    .public-profile-photo-action {
      appearance: none;
      background: #fff;
      border: 2px solid #bdd6fb;
      border-radius: 12px;
      color: #0755bc;
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      min-height: 48px;
      padding: 11px 16px;
    }
    .public-profile-photo-close:hover,
    .public-profile-photo-close:focus,
    .public-profile-photo-action:hover,
    .public-profile-photo-action:focus {
      background: #eef5ff;
      outline: none;
    }
    .public-profile-photo-card {
      background: #fff;
      border: 1px solid #d7e2ef;
      border-radius: 18px;
      box-shadow: 0 14px 38px rgba(23, 55, 91, .12);
      display: grid;
      gap: 16px;
      padding: clamp(18px, 4vw, 30px);
    }
    .public-profile-photo-card p {
      color: #526173;
      font-size: 16px;
      line-height: 1.5;
      margin: 0;
    }
    .public-profile-photo-user {
      align-items: center;
      background: #eef6ff;
      border: 2px solid #bfdbfe;
      border-radius: 12px;
      color: #0f172a;
      display: flex;
      font-size: 21px;
      font-weight: 800;
      justify-content: space-between;
      line-height: 1.25;
      padding: 10px 12px;
    }
    .public-profile-photo-user span:last-child {
      color: #1d4ed8;
      font-size: 15px;
      white-space: nowrap;
    }
    .public-profile-awards {
      display: grid;
      gap: 12px;
    }
    .public-profile-awards h2 {
      color: #17376f;
      font-size: 21px;
      margin: 0;
    }
    .public-profile-awards-gallery {
      display: grid;
      gap: 12px;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .public-profile-award {
      appearance: none;
      background: #fff;
      border: 3px solid transparent;
      border-radius: 14px;
      box-shadow: 0 4px 14px rgba(23, 55, 91, .12);
      color: #17376f;
      cursor: pointer;
      display: grid;
      gap: 8px;
      overflow: hidden;
      padding: 0 0 10px;
      text-align: center;
    }
    .public-profile-award img {
      aspect-ratio: 1 / 1;
      display: block;
      object-fit: cover;
      width: 100%;
    }
    .public-profile-award span {
      font-size: 13px;
      font-weight: 800;
      line-height: 1.3;
      padding: 0 8px;
    }
    .public-profile-award:hover,
    .public-profile-award:focus {
      border-color: #8ebcf5;
      outline: none;
    }
    .public-profile-award.is-selected {
      border-color: #0d6efd;
      box-shadow: 0 0 0 3px rgba(13, 110, 253, .16);
    }
    .public-profile-photo-divider {
      align-items: center;
      color: #718096;
      display: flex;
      font-size: 14px;
      font-weight: 800;
      gap: 10px;
      text-transform: uppercase;
    }
    .public-profile-photo-divider::before,
    .public-profile-photo-divider::after {
      background: #d7e2ef;
      content: "";
      flex: 1;
      height: 1px;
    }
    .public-profile-photo-picker {
      background: #f7faff;
      border: 2px dashed #9ec5f8;
      border-radius: 14px;
      display: grid;
      gap: 10px;
      padding: 18px;
    }
    .public-profile-photo-picker label {
      color: #17376f;
      font-size: 17px;
      font-weight: 800;
    }
    .public-profile-photo-picker input {
      background: #fff;
      border: 1px solid #c9d8e8;
      border-radius: 10px;
      color: #172033;
      font: inherit;
      max-width: 100%;
      padding: 10px;
      width: 100%;
    }
    .public-profile-photo-file-name {
      color: #526173;
      font-size: 14px;
      overflow-wrap: anywhere;
    }
    .public-profile-photo-editor {
      display: grid;
      gap: 14px;
    }
    .public-profile-photo-editor[hidden] { display: none; }
    .public-profile-crop-stage {
      background: #0b1220;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      touch-action: none;
      user-select: none;
      -webkit-touch-callout: none;
    }
    .public-profile-crop-stage img {
      display: block;
      height: auto;
      max-height: none;
      pointer-events: none;
      user-select: none;
      width: 100%;
      -webkit-touch-callout: none;
      -webkit-user-drag: none;
    }
    .public-profile-crop-box {
      border: 3px solid #facc15;
      box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42);
      cursor: move;
      position: absolute;
      touch-action: none;
      user-select: none;
      -webkit-touch-callout: none;
    }
    .public-profile-crop-box::after {
      background: #facc15;
      border: 2px solid #fff;
      border-radius: 50%;
      bottom: -10px;
      content: "";
      cursor: nwse-resize;
      height: 18px;
      position: absolute;
      right: -10px;
      width: 18px;
    }
    .public-profile-photo-actions {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .public-profile-photo-action.is-primary {
      background: #0d6efd;
      border-color: #0d6efd;
      color: #fff;
      grid-column: 1 / -1;
    }
    .public-profile-photo-undo {
      justify-self: center;
      margin-top: 2px;
      width: min(100%, 360px);
    }
    .public-profile-photo-undo[hidden] { display: none; }
    .public-profile-photo-action:disabled { cursor: wait; opacity: .6; }
    .public-profile-photo-status {
      border-radius: 12px;
      font-size: 15px;
      line-height: 1.45;
      margin: 0;
      min-height: 22px;
      padding: 0;
    }
    .public-profile-photo-status.is-ok {
      background: #eaf8ef;
      color: #176338;
      padding: 12px;
    }
    .public-profile-photo-status.is-warning {
      background: #fff3cd;
      color: #715500;
      padding: 12px;
    }
    body.public-profile-photo-open { overflow: hidden; }
    .public-community-vote-page {
      background: #eef4fb;
      color: #101828;
      font-family: Arial, Helvetica, sans-serif;
      line-height: normal;
      inset: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 18px;
      position: fixed;
      z-index: 100;
    }
    .public-community-vote-page[hidden] { display: none; }
    .public-community-vote-shell {
      display: grid;
      gap: 20px;
      margin: 0 auto;
      max-width: 980px;
      min-height: calc(100dvh - 36px);
    }
    .public-community-vote-header {
      align-items: center;
      display: flex;
      gap: 12px;
      justify-content: space-between;
    }
    .public-community-vote-header strong { color: #17376f; font-size: 18px; }
    .public-community-back {
      appearance: none;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--ink);
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      min-height: 42px;
      padding: 9px 15px;
    }
    .public-community-vote-card {
      align-self: start;
      background: #fff;
      border: 1px solid #d8e4f5;
      border-radius: 14px;
      box-shadow: 0 8px 28px rgba(16, 24, 40, .08);
      padding: 16px;
    }
    .public-community-question {
      color: #0f4fc8;
      font-size: clamp(30px, 5vw, 48px);
      line-height: 1.08;
      margin: 4px 0 20px;
      text-align: center;
    }
    .public-community-pair {
      align-items: center;
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .public-community-player { display: grid; gap: 10px; justify-items: center; min-width: 0; }
    .public-community-avatar {
      align-items: center;
      aspect-ratio: 1;
      background: #e8ecea center/cover no-repeat;
      border-radius: 22px;
      color: #66736d;
      display: grid;
      font-size: 42px;
      font-weight: 800;
      place-items: center;
      overflow: hidden;
      width: min(34vw, 260px);
    }
    .public-community-player h2 {
      color: #101828;
      font-size: 1.17em;
      line-height: normal;
      margin: 0;
      overflow-wrap: anywhere;
      text-align: center;
    }
    .public-community-vs { color: #7c8983; font-size: 22px; font-weight: 900; }
    .public-community-main-answers {
      display: grid;
      gap: 10px;
      grid-template-columns: 1fr 1fr 1fr;
      margin-top: 38px;
    }
    .public-community-secondary-answers { display: grid; gap: 24px; margin-top: 24px; }
    .public-community-secondary-answers button { width: 100%; }
    .public-community-answer,
    .public-community-save,
    .public-community-next,
    .public-community-option {
      appearance: none;
      border: 0;
      border-radius: 10px;
      cursor: pointer;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 17px;
      font-weight: 700;
      padding: 13px 16px;
      text-align: center;
    }
    .public-community-answer,
    .public-community-option,
    .public-community-next {
      background: #fff;
      border: 2px solid #bcd4ff;
      color: #0f4fc8;
    }
    .public-community-option { width: 100%; }
    .public-community-answer.is-selected {
      background: #f2a900;
      box-shadow: 0 0 0 3px rgba(242, 169, 0, .25);
      color: #171b19;
    }
    .public-community-save { background: #2f6df6; color: #fff; }
    .public-community-save.is-ready {
      box-shadow: 0 0 0 4px rgba(21, 126, 92, .22), 0 10px 24px rgba(21, 126, 92, .22);
      animation: public-community-save-ready .72s ease-in-out 2;
    }
    @keyframes public-community-save-ready {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.035); }
    }
    .public-community-save:disabled,
    .public-community-next:disabled { cursor: default; opacity: .5; }
    .public-community-vote-status {
      background: #f7fbff;
      border: 1px solid #d8e4f5;
      border-radius: 12px;
      color: #5f6f83;
      font-size: 14px;
      line-height: 1.4;
      margin: 14px 0;
      min-height: 45px;
      padding: 12px;
    }
    .public-community-session-actions {
      align-items: center;
      display: flex;
      gap: 12px;
      justify-content: space-between;
      margin-top: 34px;
    }
    .public-community-thanks {
      align-self: center;
      margin: auto;
      max-width: 620px;
      padding: clamp(28px, 6vw, 52px);
      text-align: center;
      width: 100%;
    }
    .public-community-thanks-icon {
      font-size: 54px;
      line-height: 1;
      margin-bottom: 18px;
    }
    .public-community-thanks h1 {
      color: #0f4fc8;
      font-size: clamp(28px, 5vw, 42px);
      line-height: 1.12;
      margin: 0 0 16px;
    }
    .public-community-thanks p {
      color: #5f6f83;
      font-size: 18px;
      line-height: 1.5;
      margin: 0;
    }
    .public-community-thanks strong { color: #17376f; }
    .public-community-thanks-actions {
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr 1fr;
      margin-top: 30px;
    }
    .public-community-thanks-actions .public-community-save,
    .public-community-thanks-actions .public-community-next { width: 100%; }
    .public-community-acting-user {
      color: #5d6963;
      font-size: 14px;
      margin-top: 22px;
      text-align: center;
    }
    .public-community-view[hidden] { display: none; }
    .public-community-perception-pair {
      align-items: center;
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      min-width: 0;
    }
    .public-community-perception-pair[hidden] { display: none; }
    .public-community-perception-player {
      align-self: stretch;
      display: grid;
      gap: 10px;
      grid-template-rows: auto 1fr;
      justify-items: center;
      min-width: 0;
      width: 100%;
    }
    .public-community-perception-player .public-community-avatar.is-selected {
      box-shadow: 0 0 0 5px #f2a900;
    }
    .public-community-perception-player h3 {
      align-self: start;
      margin: 0;
      overflow-wrap: anywhere;
      text-align: center;
    }
    .public-community-perception-relation {
      align-items: center;
      color: #214d3d;
      display: flex;
      flex-direction: column;
      gap: 14px;
      justify-content: center;
      text-align: center;
      width: 48px;
    }
    .public-community-perception-relation-word {
      display: block;
      font-size: clamp(11px, 2.8vw, 14px);
      font-weight: 800;
      line-height: .95;
      text-align: center;
      white-space: pre-line;
      width: 100%;
    }
    .public-community-perception-relation-sign {
      font-size: clamp(34px, 7vw, 48px);
      font-weight: 900;
      line-height: .78;
      margin: 0;
      text-align: center;
    }
    .public-community-perception-actions {
      align-items: center;
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr auto 1fr;
      margin-top: 30px;
    }
    .public-community-perception-counter {
      min-width: 120px;
      text-align: center;
    }
    .public-community-perception-result {
      background: #f2a900;
      border-radius: 14px;
      color: #171b19;
      font-size: clamp(17px, 4vw, 22px);
      font-weight: 900;
      margin: 24px auto 0;
      padding: 13px 18px;
      text-align: center;
    }
    .public-community-perception-result[hidden] { display: none; }
    #publicCommunityExitPerception { margin-top: 24px; width: 100%; }
    .public-community-perception-status {
      font-size: 18px;
      line-height: 1.5;
      margin: 34px auto;
      max-width: 560px;
      text-align: center;
    }
    .public-community-perception-status:empty { display: none; }
    .public-community-perception-status.is-demo {
      background: #fff2b8;
      border: 2px solid #e4c23c;
      border-radius: 12px;
      box-shadow: 0 4px 14px rgba(111, 87, 0, .18);
      color: #614900;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.45;
      margin: 0 auto 24px;
      padding: 14px 18px;
    }
    .public-community-perception-followup {
      background: #eef7ff;
      border: 2px solid #b8d8f8;
      border-radius: 12px;
      color: #14558f;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.45;
      margin: -8px auto 24px;
      max-width: 560px;
      padding: 14px 18px;
      text-align: center;
    }
    .public-community-perception-followup[hidden] { display: none; }
    .public-community-perception-gate {
      display: grid;
      gap: 26px;
      margin: 42px auto;
      max-width: 620px;
      text-align: center;
    }
    .public-community-perception-gate[hidden] { display: none; }
    .public-community-perception-gate p {
      color: #344054;
      font-size: clamp(19px, 4.5vw, 24px);
      font-weight: 700;
      line-height: 1.45;
      margin: 0;
    }
    .public-community-perception-gate button { width: 100%; }
    #publicCommunityPerceptionView { align-self: center; }
    .public-community-ranking-title {
      color: #0f4fc8;
      font-size: clamp(30px, 5vw, 46px);
      line-height: 1.1;
      margin: 0 0 12px;
      text-align: center;
    }
    #publicCommunityRankingView {
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
    }
    .public-community-ranking-stage {
      --community-visible-players: 5;
      --community-player-width: 20%;
      --community-edge-width: 40%;
      --community-ranking-row-height: clamp(176px, 27vh, 224px);
      background:
        linear-gradient(180deg, rgba(42, 105, 214, .06), transparent 26%),
        linear-gradient(0deg, rgba(238, 175, 47, .07), transparent 26%);
      border: 1px solid #dce7f6;
      border-radius: 24px;
      min-height: min(680px, calc(100dvh - 170px));
      overflow: hidden;
      position: relative;
      touch-action: none;
    }
    .public-community-ranking-direction {
      align-items: center;
      color: #ffc21c;
      display: flex;
      font-size: 32px;
      font-weight: 900;
      height: 34px;
      justify-content: center;
      line-height: 1;
      opacity: .96;
      pointer-events: none;
      position: absolute;
      text-shadow: 0 3px 9px rgba(35, 75, 138, .24);
      width: 100%;
      z-index: 6;
    }
    .public-community-ranking-direction.is-upper { top: 4px; }
    .public-community-ranking-direction.is-lower { bottom: 4px; color: #ffc21c; }
    .public-community-ranking-direction.is-horizontal {
      background: rgba(255, 255, 255, .88);
      border: 1px solid rgba(111, 146, 201, .28);
      border-radius: 50%;
      box-shadow: 0 4px 14px rgba(31, 72, 137, .18);
      height: 44px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      z-index: 5;
    }
    .public-community-ranking-direction.is-left { left: 5px; }
    .public-community-ranking-direction.is-right { right: 5px; }
    .public-community-ranking-direction[hidden] { display: flex !important; visibility: hidden; }
    .public-community-ranking-boundary {
      align-self: center;
      display: block;
      width: 100%;
    }
    .public-community-ranking-boundary-scene {
      display: block;
      filter: drop-shadow(0 5px 9px rgba(69, 91, 124, .14));
      height: 116px;
      overflow: visible;
      width: 100%;
    }
    .public-community-ranking-vertical-viewport {
      height: min(680px, calc(100dvh - 170px));
      overflow: hidden;
      position: relative;
    }
    .public-community-ranking-rail {
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
      will-change: transform;
    }
    .public-community-ranking-rail.is-settling {
      transition: transform .34s cubic-bezier(.2,.78,.22,1);
    }
    .public-community-ranking-row {
      align-items: center;
      display: flex;
      height: var(--community-ranking-row-height);
      justify-content: center;
      opacity: var(--community-row-opacity, .45);
      transform: scale(var(--community-row-scale, .82));
      transform-origin: center;
      transition: opacity .2s ease, transform .28s cubic-bezier(.2,.75,.25,1);
      width: 100%;
      will-change: opacity, transform;
    }
    .public-community-ranking-stage.is-dragging-vertical .public-community-ranking-row {
      transition: none;
    }
    .public-community-ranking-row.is-boundary {
      opacity: var(--community-row-opacity, .82);
      padding-inline: 8px;
    }
    .public-community-ranking-track {
      align-items: center;
      display: flex;
      height: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0;
      scrollbar-width: none;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      touch-action: none;
      width: 100%;
    }
    .public-community-ranking-track::-webkit-scrollbar { display: none; }
    .public-community-ranking-track.is-dragging {
      scroll-behavior: auto;
      scroll-snap-type: none;
    }
    .public-community-ranking-track.is-positioning {
      scroll-behavior: auto !important;
      scroll-snap-type: none;
    }
    .public-community-ranking-track::before,
    .public-community-ranking-track::after {
      content: "";
      flex: 0 0 var(--community-edge-width);
    }
    .public-community-ranking-player {
      align-content: center;
      color: #233756;
      display: grid;
      flex: 0 0 var(--community-player-width);
      gap: 8px;
      justify-items: center;
      min-width: 0;
      padding: 5px 4px;
      scroll-snap-align: center;
      transition: opacity .2s ease, transform .25s cubic-bezier(.2,.75,.25,1);
    }
    .public-community-ranking-player.is-placeholder { opacity: 0; pointer-events: none; }
    .public-community-ranking-avatar {
      aspect-ratio: 1;
      background: #e8ecea center/cover no-repeat;
      border: 3px solid rgba(255,255,255,.95);
      border-radius: 50%;
      box-shadow: 0 5px 14px rgba(31, 53, 86, .18);
      color: #52657f;
      display: grid;
      font-size: 22px;
      font-weight: 800;
      overflow: hidden;
      place-items: center;
      transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.75,.25,1);
      width: clamp(72px, 10.5vw, 106px);
      box-sizing: border-box;
    }
    .public-community-ranking-name {
      color: inherit;
      display: -webkit-box;
      font-size: clamp(12px, 1.8vw, 15px);
      font-weight: 750;
      line-height: 1.15;
      min-width: 0;
      overflow: hidden;
      text-align: center;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      width: 100%;
    }
    .public-community-ranking-metrics { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; line-height: 1.25; font-weight: 650; text-align: center; width: 100%; }
    .public-community-ranking-metrics span { white-space: nowrap; }
    .public-community-ranking-metrics .community-sigma-symbol { font-size: 1.35em; font-weight: 900; line-height: 1; }
    .public-community-ranking-track .public-community-ranking-player {
      opacity: .7;
      transform: scale(.88);
    }
    .public-community-ranking-track .public-community-ranking-player.is-centered {
      color: #102d62;
      opacity: 1;
      transform: scale(1);
      z-index: 2;
    }
    .public-community-ranking-track .public-community-ranking-player.is-centered .public-community-ranking-avatar {
      border-color: #a9c8ff;
      box-shadow: 0 8px 22px rgba(28, 91, 201, .28);
      cursor: zoom-in;
      transform: scale(1.2);
    }
    .public-community-ranking-track .public-community-ranking-player.is-protagonist .public-community-ranking-avatar {
      border-color: #f0b436;
      border-width: 6px;
      box-shadow: 0 0 0 6px rgba(240, 180, 54, .2), 0 9px 25px rgba(20, 72, 166, .3);
    }
    .public-community-ranking-track .public-community-ranking-player.is-protagonist.is-centered .public-community-ranking-avatar {
      transform: scale(1.34);
    }
    .public-community-ranking-track .public-community-ranking-player.is-centered .public-community-ranking-name {
      font-size: clamp(14px, 2vw, 18px);
      font-weight: 900;
      margin-top: 9px;
    }
    .public-community-ranking-overview {
      background:
        radial-gradient(circle at 84% 5%, rgba(255, 211, 73, .28), transparent 18%),
        linear-gradient(180deg, #dfefff 0%, #f7fbff 38%, #fff 56%, #eef7e8 100%);
      inset: 0;
      padding: 22px 12px 44px;
      position: absolute;
      z-index: 10;
    }
    .public-community-ranking-overview[hidden] { display: none; }
    .public-community-ranking-overview-groups {
      display: grid;
      gap: 0;
      height: 100%;
      grid-template-rows: repeat(15, minmax(0, 1fr));
    }
    .public-community-ranking-overview-group {
      align-items: center;
      display: flex;
      flex-wrap: nowrap;
      gap: clamp(1px, .35vw, 3px);
      justify-content: center;
      overflow: hidden;
      padding: 2px 6px;
      position: relative;
    }
    .public-community-ranking-overview-group::before {
      background: linear-gradient(90deg, transparent, rgba(70, 116, 181, .11), transparent);
      content: "";
      height: 1px;
      left: 8%;
      position: absolute;
      right: 8%;
      top: 0;
    }
    .public-community-ranking-overview-group[data-community-overview-band="0"]:not(:first-child)::before {
      background: linear-gradient(90deg, transparent, rgba(37, 94, 177, .35), transparent);
      height: 2px;
    }
    .public-community-ranking-overview-group.is-protagonist-row {
      overflow: visible;
      z-index: 4;
    }
    .public-community-ranking-overview-dot {
      align-items: center;
      aspect-ratio: 1;
      background: linear-gradient(145deg, #bcd4f1, #789ac7) center/cover no-repeat;
      border: 1px solid rgba(255,255,255,.9);
      border-radius: 50%;
      box-shadow: 0 2px 5px rgba(37, 65, 110, .25);
      color: #fff;
      display: flex;
      flex: 1 1 16px;
      font-size: clamp(5px, 1.4vw, 9px);
      font-weight: 900;
      justify-content: center;
      max-width: 22px;
      min-width: 5px;
      overflow: hidden;
      text-shadow: 0 1px 2px rgba(22, 48, 83, .6);
      transition: background-image .2s ease, box-shadow .2s ease, transform .2s ease;
    }
    .public-community-ranking-overview-dot.has-photo { color: transparent; text-shadow: none; }
    .public-community-ranking-overview-dot.is-protagonist {
      border: 3px solid #ffc21c;
      box-shadow: 0 0 0 4px rgba(255, 194, 28, .34), 0 4px 10px rgba(122, 78, 0, .42);
      flex: 0 0 clamp(56px, 14vw, 68px);
      max-width: clamp(56px, 14vw, 68px);
      min-width: clamp(56px, 14vw, 68px);
      transform: scale(1.06);
      z-index: 5;
    }
    .public-community-ranking-overview-you {
      align-items: center;
      background: rgba(255,255,255,.9);
      border-radius: 999px;
      bottom: 12px;
      box-shadow: 0 3px 12px rgba(30, 69, 126, .15);
      color: #274b7b;
      display: flex;
      font-size: 13px;
      font-weight: 800;
      gap: 8px;
      left: 50%;
      padding: 6px 12px;
      position: absolute;
      transform: translateX(-50%);
    }
    .public-community-ranking-overview-you-photo {
      align-items: center;
      background: linear-gradient(145deg, #bcd4f1, #789ac7) center/cover no-repeat;
      border: 2px solid #ffc21c;
      border-radius: 50%;
      box-shadow: 0 0 0 3px rgba(255,194,28,.25);
      color: #fff;
      display: flex;
      font-size: 10px;
      font-weight: 900;
      height: 27px;
      justify-content: center;
      overflow: hidden;
      width: 27px;
    }
    .public-community-ranking-overview-you-photo.has-photo { color: transparent; }
    .public-community-ranking-actions {
      display: grid;
      gap: 10px;
      grid-template-columns: minmax(0, 1.35fr) minmax(80px, .65fr) minmax(90px, .75fr);
      margin-top: 14px;
    }
    .public-community-ranking-actions button {
      min-width: 0;
      padding-inline: 10px;
    }
    .public-community-ranking-search {
      margin-top: 12px;
      position: relative;
      width: 100%;
      z-index: 20;
    }
    .public-community-ranking-search input {
      appearance: none;
      background: #fff;
      border: 2px solid #9dbbff;
      border-radius: 12px;
      box-shadow: 0 0 0 3px rgba(36, 107, 254, .08);
      color: #172033;
      font: inherit;
      font-size: 17px;
      font-weight: 700;
      min-height: 52px;
      padding: 12px 52px 12px 15px;
      width: 100%;
    }
    .public-community-ranking-search input[type="search"]::-webkit-search-cancel-button {
      appearance: none;
      -webkit-appearance: none;
    }
    .public-community-ranking-search input:focus {
      border-color: #246bfe;
      box-shadow: 0 0 0 4px rgba(36, 107, 254, .16);
      outline: none;
    }
    .public-community-ranking-search-clear {
      align-items: center;
      background: #eef1f6;
      border: 0;
      border-radius: 50%;
      color: #627087;
      display: flex;
      font-size: 29px;
      height: 38px;
      justify-content: center;
      line-height: 1;
      padding: 0 0 3px;
      position: absolute;
      right: 7px;
      top: 7px;
      width: 38px;
      z-index: 2;
    }
    .public-community-ranking-search-clear[hidden] { display: none; }
    .public-community-ranking-search-results {
      background: #fff;
      border: 1px solid #ccd9ed;
      border-radius: 12px;
      bottom: calc(100% + 7px);
      box-shadow: 0 -10px 28px rgba(27, 61, 113, .2);
      display: grid;
      gap: 3px;
      left: 0;
      max-height: min(300px, 42dvh);
      overflow-y: auto;
      padding: 6px;
      position: absolute;
      right: 0;
    }
    .public-community-ranking-search-results[hidden] { display: none; }
    .public-community-ranking-search-result {
      background: #fff;
      border: 0;
      border-radius: 8px;
      color: #172033;
      font: inherit;
      font-size: 16px;
      font-weight: 750;
      min-height: 43px;
      padding: 9px 11px;
      text-align: left;
      width: 100%;
    }
    .public-community-ranking-search-result:focus,
    .public-community-ranking-search-result:hover {
      background: #edf4ff;
      outline: none;
    }
    .public-community-ranking-empty {
      align-self: center;
      color: #52657f;
      font-size: 18px;
      font-weight: 800;
      padding: 40px 20px;
      text-align: center;
    }
    body.public-community-open { overflow: hidden; }
    @media (prefers-reduced-motion: reduce) {
      .user-login-waiting,
      .public-community-save.is-ready { animation: none; }
    }
    @media (max-width: 680px) {
      .public-community-vote-page { padding: 18px; }
      .public-profile-photo-page { padding: 12px; }
      .public-profile-photo-actions { grid-template-columns: 1fr; }
      .public-profile-photo-action.is-primary { grid-column: auto; }
      .public-community-vote-shell { min-height: calc(100dvh - 36px); }
      .public-community-pair { gap: 8px; }
      .public-community-avatar { width: min(39vw, 190px); border-radius: 16px; }
      .public-community-main-answers { gap: 6px; }
      .public-community-main-answers button { font-size: 13px; padding-inline: 7px; }
      .public-community-thanks-actions { grid-template-columns: 1fr; }
      .public-community-perception-pair { gap: 5px; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
      .public-community-perception-player .public-community-avatar { width: min(35vw, 170px); }
      .public-community-perception-actions { gap: 8px; grid-template-columns: 1fr auto 1fr; }
      .public-community-perception-actions button { padding-inline: 7px; }
      .public-community-perception-counter { min-width: 88px; font-size: 13px; }
      .public-community-ranking-stage {
        --community-visible-players: 3;
        --community-player-width: 33.333333%;
        --community-edge-width: 33.333333%;
        --community-ranking-row-height: clamp(184px, 31vh, 224px);
        min-height: min(620px, calc(100dvh - 165px));
      }
      .public-community-ranking-vertical-viewport { height: min(620px, calc(100dvh - 165px)); }
      .public-community-ranking-direction { font-size: 30px; height: 30px; }
      .public-community-ranking-direction.is-horizontal { font-size: 27px; height: 40px; width: 40px; }
      .public-community-ranking-avatar { width: clamp(76px, 25vw, 98px); }
      .public-community-ranking-actions { grid-template-columns: 1.25fr .62fr .72fr; }
      .public-community-ranking-actions button { font-size: 14px; }
    }
    .main-nav {
      display: block;
      max-width: 520px;
      margin: 14px auto 0;
    }
    .main-nav[hidden] { display: none; }
    .main-vote-ranking,
    .link-button {
      appearance: none;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      border-radius: 8px;
      padding: 10px 13px;
      font-weight: 700;
      cursor: pointer;
      text-align: center;
      min-height: 44px;
      line-height: 1.15;
    }
    .main-vote-ranking {
      align-items: center;
      background: linear-gradient(135deg, #2f6df6, #1652d6);
      border-color: #1652d6;
      box-shadow: 0 10px 24px rgba(47, 109, 246, .22);
      color: #fff;
      display: flex;
      font-size: 18px;
      gap: 12px;
      justify-content: center;
      width: 100%;
    }
    .main-vote-ranking:hover,
    .main-vote-ranking:focus {
      box-shadow: 0 12px 28px rgba(47, 109, 246, .34);
      outline: 3px solid rgba(47, 109, 246, .2);
      transform: translateY(-1px);
    }
    .main-vote-ranking__icon {
      display: inline-flex;
      height: 34px;
      width: 38px;
    }
    .main-vote-ranking__icon svg { display: block; height: 100%; width: 100%; }
    .link-button {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .data-view-back {
      display: block;
      margin: 28px auto 16px;
      min-width: min(280px, 100%);
    }
    .data-view-loading {
      align-items: center;
      color: #475569;
      display: grid;
      font-size: 15px;
      font-weight: 800;
      min-height: 240px;
      text-align: center;
    }
    .view-top-back {
      align-items: center;
      appearance: none;
      background: #fff;
      border: 2px solid #8eb4ff;
      border-radius: 10px;
      color: #0759d8;
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-weight: 900;
      justify-content: center;
      justify-self: start;
      min-height: 44px;
      padding: 8px 15px;
    }
    .view-top-back:hover,
    .view-top-back:focus-visible {
      background: #edf4ff;
      border-color: #2f6fff;
      outline: none;
    }
    .tournaments-view {
      display: grid;
      gap: 18px;
      margin: 0 auto;
      max-width: 860px;
      padding: 4px 0 24px;
    }
    .tournaments-view[hidden] { display: none; }
    .tournaments-view__header {
      align-items: center;
      background: linear-gradient(135deg, #174dbd 0%, #6656da 100%);
      border-radius: 16px;
      box-shadow: 0 12px 30px rgba(30, 75, 145, .23);
      color: #fff;
      display: grid;
      gap: 11px;
      grid-template-columns: 58px minmax(0, 1fr);
      padding: 10px 14px;
    }
    .tournaments-view__header[hidden] { display: none !important; }
    .tournaments-view__back,
    .tournament-results__back,
    .tournaments-view__bottom-back {
      appearance: none;
      background: #fff;
      border: 2px solid #8eb4ff;
      border-radius: 10px;
      color: #0759d8;
      cursor: pointer;
      font: inherit;
      font-weight: 900;
      min-height: 48px;
      padding: 10px 15px;
    }
    .tournaments-view__header .tournaments-view__back {
      align-self: center;
      border-color: rgba(255,255,255,.78);
      box-shadow: 0 5px 14px rgba(4, 24, 70, .2);
      min-height: 42px;
      padding: 8px 11px;
    }
    .tournaments-view__icon {
      align-items: center;
      background: #fff;
      border-radius: 14px;
      display: inline-flex;
      height: 54px;
      justify-content: center;
      width: 54px;
    }
    .tournaments-view__icon svg { height: 47px; width: 47px; }
    .tournaments-view__eyebrow {
      color: #dce8ff;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .tournaments-view__header h1 {
      color: #fff;
      font-size: clamp(21px, 4vw, 29px);
      line-height: 1.05;
      margin: 2px 0 0;
    }
    .tournaments-view__header p { color: #eef4ff; margin: 0; }
    .tournaments-list-view,
    .tournament-results-view {
      background: #fff;
      border: 1px solid #d8e3f5;
      border-radius: 16px;
      box-shadow: var(--shadow);
      padding: clamp(14px, 3vw, 24px);
    }
    .tournaments-list-view[hidden],
    .tournament-results-view[hidden] { display: none; }
    .tournament-results-view {
      --tournament-results-header-height: 66px;
      --tournament-results-sticky-top: 0px;
      padding-bottom: 178px;
    }
    .tournament-player-search-card {
      margin: 0 auto;
      max-width: 620px;
      position: relative;
      width: 100%;
      z-index: 6;
    }
    .tournament-player-search-notice {
      background: #fff4df;
      border: 1px solid #efb84f;
      border-radius: 10px;
      color: #714600;
      font-size: 14px;
      font-weight: 900;
      margin: 8px 0 0;
      padding: 9px 12px;
      text-align: center;
    }
    .tournament-player-search-notice[hidden] { display: none; }
    .tournament-player-search-slot:empty { display: none; }
    .tournament-results__search-slot {
      background: #fff;
      bottom: calc(86px + env(safe-area-inset-bottom));
      box-sizing: border-box;
      box-shadow: 0 90px 0 90px #fff, 0 -8px 28px rgba(20, 50, 100, .12);
      left: 50%;
      position: fixed;
      transform: translateX(-50%);
      width: min(812px, calc(100vw - 18px));
      z-index: 39;
    }
    .tournament-results__search-slot .player-search-results {
      bottom: calc(100% + 6px);
      max-height: min(280px, 48vh);
      top: auto;
    }
    .tournaments-list__heading {
      align-items: end;
      display: flex;
      gap: 12px;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .tournaments-list__heading h2 { margin: 7px 0 0; }
    .tournaments-list__heading > span { color: var(--muted); font-size: 13px; font-weight: 800; text-align: right; }
    .tournaments-demo-badge {
      background: #fff3cd;
      border: 1px solid #f1d374;
      border-radius: 999px;
      color: #755000;
      display: inline-flex;
      font-size: 12px;
      font-weight: 900;
      padding: 5px 9px;
      text-transform: uppercase;
    }
    .tournaments-list { display: grid; gap: 11px; }
    .tournament-league-divider {
      align-items: center;
      background: linear-gradient(110deg, #155ee8 0%, #6555dc 100%);
      border-radius: 13px;
      box-shadow: 0 6px 16px rgba(24, 84, 200, .2);
      color: #fff;
      display: flex;
      font-size: 18px;
      font-weight: 950;
      justify-content: center;
      letter-spacing: .035em;
      margin: 16px 0 3px;
      min-height: 46px;
      padding: 7px 16px;
      text-align: center;
      text-transform: uppercase;
    }
    .tournament-league-divider:first-child { margin-top: 2px; }
    .tournaments-load-next {
      align-items: center;
      background: #eef4ff;
      border: 2px solid #2f6fff;
      border-radius: 13px;
      color: #1458e8;
      cursor: pointer;
      display: flex;
      font-size: 16px;
      font-weight: 950;
      justify-content: center;
      margin: 17px auto 2px;
      min-height: 52px;
      padding: 9px 18px;
      width: min(360px, 100%);
    }
    .tournaments-load-next:hover,
    .tournaments-load-next:focus-visible { background: #dfeaff; outline: 3px solid rgba(47,111,255,.2); }
    .tournaments-load-next[hidden] { display: none; }
    .tournament-month-divider {
      align-items: center;
      color: #31557f;
      display: grid;
      font-size: 13px;
      font-weight: 950;
      gap: 10px;
      grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr);
      letter-spacing: .09em;
      margin: 10px 2px 2px;
      text-transform: uppercase;
    }
    .tournament-month-divider span {
      background: #edf4ff;
      border: 1px solid #cbdcf5;
      border-radius: 999px;
      padding: 5px 11px;
    }
    .tournament-month-divider::before,
    .tournament-month-divider::after { background: #b8cbea; content: ""; height: 2px; }
    .tournament-card {
      align-items: center;
      background: linear-gradient(120deg, #fff 0%, #f7faff 100%);
      border: 2px solid #d9e5f8;
      border-radius: 13px;
      display: grid;
      gap: 12px;
      grid-template-columns: 88px minmax(140px, 1fr) 52px minmax(116px, 1fr);
      padding: 12px;
    }
    .tournament-card__date {
      align-content: center;
      background: #edf4ff;
      border-radius: 11px;
      color: #1247bd;
      display: grid;
      min-height: 64px;
      padding: 7px;
      text-align: center;
    }
    .tournament-card__date strong { font-size: 24px; line-height: 1; }
    .tournament-card__date span { font-size: 12px; font-weight: 900; text-transform: uppercase; }
    .tournament-card__date .tournament-card__year { margin-top: 2px; }
    .tournament-card__copy { justify-self: center; width: 100%; }
    .tournament-card__copy h3 { align-items: center; display: flex; flex-direction: column; font-size: clamp(17px, 4vw, 21px); line-height: 1.08; margin: 0; text-align: center; }
    .tournament-card__copy h3 span { display: block; }
    .tournament-card__avatar {
      align-items: center;
      background-color: #f4f6f9;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      border: 2px solid #b7c1cf;
      border-radius: 50%;
      box-sizing: border-box;
      display: inline-flex;
      color: #66758a;
      font-size: 13px;
      font-weight: 900;
      height: 52px;
      justify-content: center;
      overflow: hidden;
      width: 52px;
    }
    .tournament-card__avatar--empty { background: #9aa4b2; border: 0; color: #fff; font-size: 30px; font-weight: 700; }
    .tournament-card__results {
      appearance: none;
      background: #2f6fff;
      border: 0;
      border-radius: 10px;
      color: #fff;
      cursor: pointer;
      font: inherit;
      font-size: 15px;
      font-weight: 900;
      height: 58px;
      justify-self: center;
      padding: 8px;
      width: 120px;
    }
    .tournament-card__results:hover,
    .tournament-card__results:focus-visible { background: #1458e8; outline: 3px solid rgba(47,111,255,.22); }
    .tournaments-view__bottom-back { display: block; margin: 20px auto 0; min-width: min(280px, 100%); }
    .tournament-results__header {
      align-items: center;
      background: linear-gradient(135deg, #174dbd 0%, #6656da 100%);
      border-radius: 14px;
      box-shadow: 0 10px 24px rgba(30, 75, 145, .2);
      color: #fff;
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 1fr);
      padding: 11px 14px;
      position: sticky;
      top: var(--tournament-results-sticky-top);
      z-index: 18;
    }
    .tournament-results__header .tournament-results__back {
      border-color: rgba(255,255,255,.78);
      box-shadow: 0 5px 14px rgba(4, 24, 70, .2);
      margin: 0;
      min-height: 42px;
      padding: 8px 11px;
    }
    .tournament-results__heading-copy { min-width: 0; text-align: center; }
    .tournament-results__date { color: #dce8ff; display: block; font-size: 14px; font-weight: 900; }
    .tournament-results__header h2 { color: #fff; font-size: clamp(21px, 4.5vw, 29px); line-height: 1.08; margin: 3px 0 0; }
    .tournament-results__podium {
      align-items: end;
      display: grid;
      gap: 8px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin: 22px auto 18px;
      max-width: 600px;
    }
    .tournament-podium-place {
      align-items: center;
      background: #f7f9fd;
      border: 2px solid #d8e3f5;
      border-radius: 13px 13px 6px 6px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      justify-content: center;
      min-height: 108px;
      padding: 10px 6px;
      text-align: center;
    }
    .tournament-podium-place--1 { background: #fff8d9; border-color: #e5bd35; min-height: 252px; order: 2; }
    .tournament-podium-place--2 { background: #f1f5f9; border-color: #aebdce; min-height: 236px; order: 1; }
    .tournament-podium-place--3 { background: #fff0e6; border-color: #cc936d; min-height: 218px; order: 3; }
    .tournament-podium-place.is-current-user {
      box-shadow: 0 0 0 4px #2d6df6, 0 12px 24px rgba(45, 109, 246, .24);
    }
    .tournament-podium-place__medal { font-size: 42px; line-height: 1; }
    .tournament-podium-place__avatars { align-items: center; display: flex; justify-content: center; padding-left: 14px; }
    .tournament-podium-place__player { display: block; margin-left: -14px; position: relative; }
    .tournament-podium-place__player:first-child { margin-left: 0; }
    .tournament-podium-place__player:nth-child(2) { z-index: 1; }
    .tournament-podium-place strong { font-size: 14px; line-height: 1.15; }
    .tournament-podium-place__points { color: var(--muted); font-size: 12px; font-weight: 800; }
    .tournament-pair { display: flex; flex-direction: column; gap: 3px; }
    .tournament-pair span { display: block; }
    .tournament-results__table-wrap { overflow: visible; width: 100%; }
    .tournament-results__table { border-collapse: collapse; table-layout: fixed; width: 100%; }
    .tournament-results__table th:nth-child(1),
    .tournament-results__table td:nth-child(1) { width: 8%; }
    .tournament-results__table th:nth-child(2),
    .tournament-results__table td:nth-child(2) { width: 52%; }
    .tournament-results__table th:nth-child(3),
    .tournament-results__table td:nth-child(3) { width: 24%; }
    .tournament-results__table th:nth-child(4),
    .tournament-results__table td:nth-child(4) { width: 16%; }
    .tournament-results__table th,
    .tournament-results__table td { border-bottom: 1px solid #dbe5f4; box-sizing: border-box; padding: 11px 9px; text-align: center; }
    .tournament-results__table th {
      background: #edf4ff;
      box-shadow: 0 2px 0 #cbdaf0, 0 7px 12px rgba(30, 75, 145, .12);
      color: #1247bd;
      font-size: 13px;
      font-weight: 900;
      overflow-wrap: anywhere;
      position: sticky;
      top: calc(var(--tournament-results-sticky-top) + var(--tournament-results-header-height));
      z-index: 17;
    }
    .tournament-results__table td:nth-child(2) { font-weight: 800; overflow-wrap: anywhere; }
    .tournament-results__row--current-user td {
      background: #e8f1ff;
      border-bottom: 2px solid #2d6df6;
      border-top: 2px solid #2d6df6;
    }
    .tournament-results__row--current-user td:first-child {
      box-shadow: inset 4px 0 0 #2d6df6;
      color: #1247bd;
    }
    .tournament-results__row--current-user td:last-child { box-shadow: inset -4px 0 0 #2d6df6; }
    .tournament-results__you-label {
      color: #1458e8;
      display: block;
      font-size: 9px;
      font-weight: 950;
      line-height: 1;
      margin-top: 4px;
      text-transform: uppercase;
    }
    .tournament-results__players { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tournament-results__player { align-items: center; display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: center; }
    .tournament-results__player-avatar {
      align-items: center;
      background: #9aa4b2 center/cover no-repeat;
      border: 2px solid #c7d1df;
      border-radius: 50%;
      box-sizing: border-box;
      color: #fff;
      display: flex;
      flex: 0 0 52px;
      font-size: 14px;
      font-weight: 900;
      height: 52px;
      justify-content: center;
      width: 52px;
    }
    .tournament-podium-place__player .tournament-results__player-avatar { border: 3px solid #fff; box-shadow: 0 2px 7px rgba(29, 46, 76, .2); }
    .tournament-results__player-name { display: flex; flex-direction: column; font-size: 12px; line-height: 1.12; }
    .tournament-results__courts { align-items: center; display: flex; justify-content: center; }
    .tournament-results__court-values { align-items: center; display: flex; font-size: 17px; font-weight: 900; gap: 5px; justify-content: center; white-space: nowrap; }
    .tournament-results__court-separator { color: #9aa4b2; }
    .tournament-results__table td.tournament-results__points { font-size: 20px; font-weight: 950; }
    .tournament-results__position { color: #6a51d2; font-size: 17px; font-weight: 900; }
    .tournament-results__last {
      border-radius: 999px;
      display: inline-flex;
      font-size: 18px;
      font-weight: 950;
      height: 30px;
      justify-content: center;
      line-height: 28px;
      width: 30px;
    }
    .tournament-results__last--won { background: #dcfce7; color: #16803c; }
    .tournament-results__last--lost { background: #fee2e2; color: #c52b2b; }
    .tournament-results__navigation {
      background: #fff;
      border: 1px solid #cfddf2;
      border-radius: 14px;
      bottom: max(8px, env(safe-area-inset-bottom));
      box-shadow: 0 -8px 28px rgba(20, 50, 100, .2);
      box-sizing: border-box;
      display: grid;
      gap: 7px;
      grid-template-columns: minmax(72px, .72fr) minmax(190px, 1.8fr) minmax(72px, .72fr);
      left: 50%;
      margin: 0;
      padding: 7px;
      position: fixed;
      transform: translateX(-50%);
      width: min(812px, calc(100vw - 18px));
      z-index: 40;
    }
    .tournament-results__nav-button {
      align-items: center;
      appearance: none;
      background: #fff;
      border: 2px solid #8eb4ff;
      border-radius: 11px;
      color: #0759d8;
      cursor: pointer;
      display: flex;
      font: inherit;
      font-size: 14px;
      font-weight: 900;
      justify-content: center;
      min-height: 58px;
      padding: 7px;
    }
    .tournament-results__nav-button:disabled { cursor: default; filter: grayscale(.7); opacity: .45; }
    .tournament-results__player-navigation {
      align-items: center;
      background: #edf4ff;
      border: 2px solid #8eb4ff;
      border-radius: 11px;
      display: grid;
      gap: 4px;
      grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
      min-height: 58px;
      padding: 5px;
    }
    .tournament-results__player-nav-button,
    .tournament-results__nav-avatar-button {
      appearance: none;
      background: transparent;
      border: 0;
      color: #0759d8;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      min-width: 0;
      padding: 5px 1px;
    }
    .tournament-results__player-nav-button:disabled { cursor: default; opacity: .38; }
    .tournament-results__nav-avatar-button { align-items: center; display: flex; justify-content: center; padding: 0; }
    .tournament-results__nav-avatar {
      align-items: center;
      background: #9aa4b2 center/cover no-repeat;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 1px 5px rgba(20, 40, 80, .2);
      color: #fff;
      display: inline-flex;
      flex: 0 0 42px;
      font-size: 12px;
      height: 42px;
      justify-content: center;
      width: 42px;
    }
    .tournament-results__nav-avatar--empty { background: #fff; border-color: #aebdce; box-shadow: none; }
    .table-label-short { display: none; }
    @media (max-width: 620px) {
      .tournament-results__table { width: calc(100% - 2px); }
      .tournaments-view__header { gap: 8px; grid-template-columns: 48px minmax(0, 1fr); padding: 9px; }
      .tournaments-view__header .tournaments-view__back { font-size: 14px; justify-self: start; min-height: 40px; padding: 7px 9px; }
      .tournaments-view__icon { height: 46px; width: 46px; }
      .tournaments-view__icon svg { height: 41px; width: 41px; }
      .tournaments-view__eyebrow { font-size: 9px; }
      .tournaments-view__header h1 { font-size: clamp(18px, 5.2vw, 23px); }
      .tournaments-list__heading { align-items: start; flex-direction: column; }
      .tournaments-list__heading > span { text-align: left; }
      .tournaments-list-view { padding: 10px; }
      .tournament-card {
        display: flex;
        gap: 0;
        justify-content: space-between;
        padding: 9px;
      }
      .tournament-card__date { flex: 0 0 54px; min-height: 82px; padding: 5px; }
      .tournament-card__date strong { font-size: 20px; }
      .tournament-card__date span { font-size: 11px; }
      .tournament-card__copy { flex: 0 0 auto; width: auto; }
      .tournament-card__copy h3 { font-size: 15px; }
      .tournament-card__avatar { flex: 0 0 52px; font-size: 14px; height: 52px; width: 52px; }
      .tournament-card__avatar--empty { font-size: 30px; }
      .tournament-card__results { flex: 0 0 78px; font-size: 12.5px; height: 54px; letter-spacing: -.2px; padding: 6px 1px; white-space: nowrap; width: 78px; }
      .tournament-results__header { gap: 9px; padding: 9px; }
      .tournament-results__header .tournament-results__back { font-size: 14px; min-height: 40px; padding: 7px 9px; }
      .tournament-results__date { font-size: 14px; line-height: 1.2; }
      .tournament-results__header h2 { font-size: clamp(19px, 5.5vw, 24px); }
      .tournament-results__navigation { gap: 4px; grid-template-columns: minmax(58px, .65fr) minmax(174px, 1.9fr) minmax(64px, .7fr); }
      .tournament-results__nav-button { font-size: 12.5px; min-height: 56px; padding: 5px 3px; }
      .tournament-results__player-navigation { gap: 2px; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); min-height: 56px; padding: 4px 2px; }
      .tournament-results__player-nav-button { font-size: 10.5px; }
      .tournament-results__nav-avatar { flex-basis: 40px; height: 40px; width: 40px; }
      .tournament-results__podium { gap: 4px; margin: 16px 0 14px; max-width: 100%; }
      .tournament-podium-place { gap: 6px; min-height: 218px; min-width: 0; padding: 12px 3px; }
      .tournament-podium-place--1 { min-height: 252px; }
      .tournament-podium-place--2 { min-height: 236px; }
      .tournament-podium-place__medal { font-size: 44px; }
      .tournament-podium-place strong { font-size: 15px; line-height: 1.16; overflow-wrap: anywhere; }
      .tournament-podium-place__points { font-size: 13px; }
      .tournament-results__table th,
      .tournament-results__table td { font-size: 14px; line-height: 1.16; padding: 13px 1px; }
      .tournament-results__table th { font-size: 13px; line-height: 1.1; padding: 12px 1px; }
      .tournament-results__table th:nth-child(1),
      .tournament-results__table td:nth-child(1) { width: 8%; }
      .tournament-results__table th:nth-child(2),
      .tournament-results__table td:nth-child(2) { width: 52%; }
      .tournament-results__table th:nth-child(3),
      .tournament-results__table td:nth-child(3) { width: 24%; }
      .tournament-results__table th:nth-child(4),
      .tournament-results__table td:nth-child(4) { width: 16%; }
      .tournament-results__players { gap: 4px; }
      .tournament-results__player { gap: 5px; }
      .tournament-results__player-avatar { height: 52px; width: 52px; }
      .tournament-results__player-name { font-size: 12px; }
      .tournament-results__court-values { font-size: 17px; gap: 3px; }
      .tournament-results__table td.tournament-results__points { font-size: 20px; }
      .tournament-results__position { font-size: 19px; }
      .tournament-results__last { font-size: 21px; height: 28px; line-height: 26px; width: 28px; }
      .table-label-full { display: none; }
      .table-label-short { display: inline; }
    }
    .master-final-view {
      margin: 0 auto;
      width: 100%;
    }
    .master-final-banner {
      align-items: center;
      background: #fff;
      border-bottom: 2px solid #cfe0ff;
      border-top: 2px solid #cfe0ff;
      color: #1247bd;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
      margin-bottom: 18px;
      min-height: 132px;
      padding: 8px 14px;
      width: 100%;
    }
    .master-final-banner img {
      display: block;
      height: 108px;
      justify-self: center;
      object-fit: contain;
      width: 108px;
    }
    .master-final-banner strong {
      font-size: 28px;
      justify-self: center;
    }
    .master-final-banner > span {
      font-size: clamp(22px, 6vw, 34px);
      font-weight: 900;
      line-height: 1;
      text-align: center;
    }
    .master-final-list {
      display: grid;
      gap: 14px;
      margin: 0 auto;
      max-width: 760px;
    }
    .master-final-entry {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .master-final-entry__emblem {
      display: grid;
      min-width: 0;
      place-items: center;
    }
    .master-final-entry__emblem img {
      display: block;
      height: 86px;
      object-fit: contain;
      width: 86px;
    }
    .master-final-entry__emblem strong {
      color: #1247bd;
      font-size: 28px;
    }
    .master-final-entry__action,
    .master-final-entry__league {
      align-items: center;
      background: #fff;
      border: 2px solid #bcd3ff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(30, 75, 145, 0.08);
      color: #1247bd;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 5px;
      height: 116px;
      justify-content: center;
      min-width: 0;
      padding: 8px 4px;
      width: 100%;
    }
    .master-final-entry__action {
      appearance: none;
    }
    .master-final-entry__league {
      cursor: default;
    }
    .master-final-entry__action:hover,
    .master-final-entry__action:focus-visible {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.14);
      outline: none;
    }
    .master-final-entry__gallery-icon {
      font-size: 48px;
      line-height: 1;
    }
    .master-final-entry__champions-icon {
      font-size: 48px;
      line-height: 1;
    }
    .master-final-entry__label {
      color: var(--text);
      font-size: clamp(13px, 3.7vw, 17px);
      font-weight: 800;
      line-height: 1.05;
      overflow-wrap: anywhere;
      text-align: center;
    }
    .master-final-gallery {
      margin: 0 auto;
      max-width: 900px;
      width: 100%;
    }
    .master-final-gallery[hidden] {
      display: none;
    }
    .master-final-champions {
      margin: 0 auto;
      max-width: 900px;
      width: 100%;
    }
    .master-final-champions[hidden] {
      display: none;
    }
    .master-final-section-back {
      margin-left: clamp(4px, 2vw, 16px) !important;
    }
    .master-final-gallery__heading {
      align-items: baseline;
      display: flex;
      justify-content: space-between;
      margin: 0 auto 12px;
      max-width: 760px;
      padding: 0 4px;
    }
    .master-final-gallery__heading h1 {
      color: #1247bd;
      font-size: clamp(22px, 6vw, 30px);
      margin: 0;
    }
    .master-final-gallery__heading span {
      color: var(--muted);
      font-weight: 800;
    }
    .master-final-champions__heading {
      margin: 0 auto 16px;
      max-width: 760px;
      padding: 0 4px;
      text-align: center;
    }
    .master-final-champions__heading h1 {
      color: #1247bd;
      font-size: clamp(24px, 6vw, 34px);
      margin: 0;
    }
    .master-final-champions__content {
      display: grid;
      gap: 20px;
      margin: 0 auto;
      max-width: 760px;
    }
    .master-champions-section {
      display: grid;
      gap: 12px;
    }
    .master-champions-section__title {
      align-items: center;
      background: #1247bd;
      border-radius: 8px;
      color: #fff;
      display: flex;
      font-size: clamp(18px, 4.8vw, 23px);
      font-weight: 900;
      justify-content: center;
      margin: 0;
      min-height: 48px;
      padding: 9px 14px;
      text-align: center;
    }
    .master-champions-section--final .master-champions-section__title {
      background: #8b5a00;
    }
    .master-champions-grid {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .master-champions-card {
      background: #fff;
      border: 2px solid #cfe0ff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(30, 75, 145, 0.08);
      min-width: 0;
      overflow: hidden;
    }
    .master-champions-card h3 {
      align-items: center;
      background: #f2f7ff;
      border-bottom: 1px solid #dbe7fb;
      color: #1247bd;
      display: flex;
      font-size: clamp(15px, 4vw, 18px);
      justify-content: center;
      line-height: 1.2;
      margin: 0;
      min-height: 50px;
      padding: 9px 10px;
      text-align: center;
    }
    .master-champions-list {
      display: grid;
      gap: 0;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .master-champions-winner {
      align-items: center;
      border-top: 1px solid #edf1f7;
      display: grid;
      gap: 8px;
      grid-template-columns: 32px minmax(0, 1fr) auto;
      min-height: 48px;
      padding: 8px 10px;
    }
    .master-champions-winner:first-child {
      border-top: 0;
    }
    .master-champions-winner--champion {
      background: #fff8df;
    }
    .master-champions-winner__place {
      color: #1247bd;
      font-size: 17px;
      font-weight: 900;
      text-align: center;
    }
    .master-champions-winner--champion .master-champions-winner__place {
      color: #9a6400;
    }
    .master-champions-winner__name {
      font-size: clamp(14px, 3.8vw, 17px);
      font-weight: 800;
      line-height: 1.2;
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .master-champions-winner__detail {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }
    .master-champions-empty {
      background: #fff;
      border: 2px solid #cfe0ff;
      border-radius: 8px;
      color: var(--muted);
      font-size: 17px;
      font-weight: 800;
      padding: 28px 18px;
      text-align: center;
    }
    @media (max-width: 560px) {
      .master-champions-grid {
        grid-template-columns: 1fr;
      }
    }
    .master-final-gallery__viewer {
      align-items: center;
      background: #081426;
      border-radius: 8px;
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr) 48px;
      margin: 0 auto;
      max-width: 760px;
      min-height: min(72vh, 720px);
      overflow: hidden;
      position: relative;
      touch-action: pan-y;
    }
    .master-final-gallery__viewer img {
      display: block;
      grid-column: 1 / -1;
      grid-row: 1;
      height: min(72vh, 720px);
      object-fit: contain;
      transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
      user-select: none;
      will-change: transform;
      width: 100%;
    }
    .master-final-gallery__nav {
      align-items: center;
      appearance: none;
      background: rgba(255, 255, 255, 0.92);
      border: 0;
      border-radius: 50%;
      color: #1247bd;
      cursor: pointer;
      display: inline-flex;
      font-size: 42px;
      height: 44px;
      justify-content: center;
      line-height: 1;
      padding: 0 0 5px;
      position: relative;
      width: 44px;
      z-index: 2;
    }
    .master-final-gallery__nav--prev {
      grid-column: 1;
      grid-row: 1;
      justify-self: center;
    }
    .master-final-gallery__nav--next {
      grid-column: 3;
      grid-row: 1;
      justify-self: center;
    }
    .master-final-gallery__nav[hidden] {
      display: none;
    }
    .master-final-gallery__status {
      color: #fff;
      font-size: 17px;
      font-weight: 800;
      grid-column: 1 / -1;
      grid-row: 1;
      margin: 0;
      padding: 24px;
      text-align: center;
    }
    .master-final-gallery__status[hidden] {
      display: none;
    }
    .featured-ranking {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
      display: grid;
      gap: 16px;
      padding: 18px 14px;
    }
    .featured-ranking[hidden] {
      display: none;
    }
    .featured-ranking__hero {
      background: #fff;
      border-radius: 8px;
      display: grid;
      gap: 8px;
      justify-items: center;
      padding: 12px;
      text-align: center;
    }
    .featured-ranking__hero img {
      display: block;
      width: clamp(156px, 46vw, 230px);
      height: clamp(156px, 46vw, 230px);
      object-fit: contain;
    }
    .featured-ranking__hero h2 {
      display: none;
    }
    .featured-ranking__list {
      display: grid;
      gap: 10px;
      max-height: 690px;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 10px;
      width: 100%;
    }
    .featured-ranking__list--virtual,
    .top-users__list--virtual {
      display: block;
    }
    .virtual-list__space {
      position: relative;
      width: 100%;
    }
    .virtual-list__window {
      position: absolute;
      inset: 0 0 auto;
      display: grid;
    }
    .featured-ranking__list--virtual .virtual-list__window { gap: 10px; }
    .top-users__list--virtual .virtual-list__window { gap: 7px; }
    .featured-ranking__actions {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-inline: auto;
      width: calc(100% - 32px);
      max-width: 760px;
    }
    .featured-ranking__actions button {
      align-items: center;
      background: #fff;
      border: 2px solid #8eb4ff;
      border-radius: 10px;
      color: #0759d8;
      cursor: pointer;
      display: flex;
      font: inherit;
      font-size: 15px;
      font-weight: 800;
      justify-content: center;
      min-height: 52px;
      padding: 10px 8px;
      transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }
    .featured-ranking__actions button:hover,
    .featured-ranking__actions button:focus-visible {
      background: #edf4ff;
      border-color: #2f6fff;
      box-shadow: 0 4px 12px rgba(47, 111, 255, 0.18);
      outline: none;
      transform: translateY(-1px);
    }
    .featured-ranking__actions button:active {
      transform: translateY(0);
    }
    .user-list-frame {
      background: #fff;
      border: 2px solid #cfe0ff;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(30, 75, 145, 0.08);
      margin-inline: auto;
      overflow: hidden;
      width: calc(100% - 32px);
    }
    .user-list-frame--featured {
      max-width: 760px;
    }
    .user-list-frame__title {
      align-items: center;
      background: #fff;
      border-bottom: 1px solid #dbe7fb;
      color: #1247bd;
      display: flex;
      font-size: clamp(16px, 4.3vw, 19px);
      font-weight: 900;
      justify-content: center;
      line-height: 1.15;
      min-height: 42px;
      padding: 8px 12px;
      text-align: center;
    }
    .featured-player-row {
      align-items: center;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      display: grid;
      grid-template-columns: 104px 1fr minmax(52px, auto);
      gap: 12px;
      min-height: 116px;
      padding: 8px 10px;
    }
    .featured-ranking__list--virtual .featured-player-row { height: 116px; }
    .featured-player-row__avatar {
      align-items: center;
      background: linear-gradient(135deg, #eaf2ff, #ffffff);
      appearance: none;
      background-repeat: no-repeat;
      border: 2px solid #2871f4;
      border-radius: 999px;
      box-shadow: inset 0 0 0 4px rgba(255,255,255,0.9);
      color: #1247bd;
      cursor: pointer;
      display: flex;
      font-size: 26px;
      font-weight: 900;
      height: 104px;
      justify-content: center;
      overflow: hidden;
      padding: 0;
      width: 104px;
    }
    .featured-player-row__name {
      color: var(--ink);
      font-size: 18px;
      font-weight: 900;
      line-height: 1.15;
      text-align: left;
    }
    .featured-player-row__value {
      color: var(--accent);
      font-size: 28px;
      font-weight: 900;
      text-align: right;
    }
    main { padding: 12px 10px 32px; max-width: 1480px; margin: 0 auto; }
    .main-view[hidden] {
      display: none;
    }
    #directTournamentLoader {
      align-items: center;
      background: var(--bg);
      display: none;
      inset: 0;
      justify-content: center;
      padding: 24px;
      position: fixed;
      text-align: center;
      z-index: 200;
    }
    .direct-tournament-loader__content {
      display: grid;
      gap: 12px;
      justify-items: center;
    }
    .direct-tournament-loader__trophy { font-size: 48px; }
    .direct-tournament-loader__content strong { font-size: 21px; }
    .direct-tournament-loader__content span { color: var(--muted); }
    html.is-direct-tournament-loading body > :not(#directTournamentLoader) {
      visibility: hidden;
    }
    html.is-direct-tournament-loading #directTournamentLoader { display: flex; }
    #personalMagicLanding {
      background: linear-gradient(155deg, #f8f5ff 0%, #fff 56%, #f2efff 100%);
      display: none;
      inset: 0;
      justify-content: center;
      padding: 24px;
      position: fixed;
      text-align: center;
      z-index: 201;
    }
    .personal-magic-landing__content {
      align-content: center;
      display: grid;
      gap: 16px;
      justify-items: center;
      max-width: 360px;
    }
    .personal-magic-landing__trophy { font-size: 54px; }
    .personal-magic-landing__content h1 { font-size: 25px; margin: 0; }
    .personal-magic-landing__content p { color: var(--muted); margin: 0; }
    .personal-magic-landing__button {
      background: #5d24bb;
      border: 0;
      border-radius: 12px;
      box-shadow: 0 8px 18px rgba(93, 36, 187, .22);
      color: #fff;
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      margin-top: 8px;
      padding: 14px 22px;
    }
    .personal-magic-landing__error { color: #a31717; font-size: 14px; min-height: 1.2em; }
    html.is-personal-magic-landing body > :not(#personalMagicLanding) { visibility: hidden; }
    html.is-personal-magic-landing #personalMagicLanding { display: flex; }
    .home-view {
      display: grid;
      gap: 14px;
    }
    .home-hero {
      display: grid;
      gap: 12px;
      padding: 16px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 10px;
      box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
    }
    .home-hero[hidden] {
      display: none;
    }
    .home-hero__copy {
      display: grid;
      gap: 6px;
      text-align: center;
    }
    .eyebrow {
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .home-hero h1 {
      margin: 0;
      font-size: 22px;
      line-height: 1.1;
      white-space: nowrap;
    }
    .player-search-card {
      display: grid;
      gap: 8px;
    }
    .player-search-card__control {
      position: relative;
    }
    .player-search-card input {
      width: 100%;
      border: 2px solid #9dbbff;
      border-radius: 10px;
      padding: 14px 54px 14px 14px;
      font: inherit;
      font-size: 18px;
      font-weight: 650;
      background: #fff;
      min-height: 54px;
      box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.08);
    }
    .player-search-card input::placeholder {
      color: #6b7a90;
      font-size: 18px;
      font-weight: 650;
    }
    .player-search-card input[type="search"]::-webkit-search-cancel-button {
      -webkit-appearance: none;
      appearance: none;
    }
    .player-search-card input:focus {
      border-color: var(--accent);
      outline: none;
      box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.16);
    }
    .player-search-clear {
      position: absolute;
      right: 7px;
      top: 7px;
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 50%;
      background: #eef1f6;
      color: var(--muted);
      font-size: 32px;
      font-weight: 500;
      line-height: 1;
      cursor: pointer;
    }
    .player-search-clear[hidden] {
      display: none;
    }
    .player-search-clear:hover,
    .player-search-clear:focus {
      background: #dfe6f2;
      color: var(--ink);
      outline: none;
    }
    .player-search-results {
      position: absolute;
      z-index: 5;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      display: grid;
      gap: 4px;
      max-height: 280px;
      overflow-y: auto;
      padding: 6px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: 0 10px 24px rgba(20, 30, 45, 0.14);
    }
    .player-search-results[hidden] {
      display: none;
    }
    .player-search-result {
      appearance: none;
      border: 0;
      border-radius: 6px;
      padding: 10px;
      background: #fff;
      color: var(--ink);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .player-search-result:hover,
    .player-search-result:focus {
      background: #eef4ff;
      outline: none;
    }
    .player-search-card p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
    }
    .home-section {
      display: grid;
      gap: 12px;
    }
    .home-section[hidden] {
      display: none;
    }
    .home-section__title {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .home-section__title h2 {
      font-size: 20px;
      margin: 0;
    }
    .home-section__title span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .home-kpis {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .player-profile {
      display: grid;
      gap: 12px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 14px;
      box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
    }
    .player-profile[hidden] {
      display: none;
    }
    .player-profile__header {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      flex-direction: column;
    }
    .player-profile__identity {
      display: grid;
      grid-template-columns: 104px minmax(0, 1fr) 62px 62px;
      gap: 12px;
      align-items: center;
      width: 100%;
      min-height: 142px;
    }
    .player-profile__copy {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      min-width: 0;
      min-height: 132px;
      align-self: stretch;
      text-align: center;
    }
    .player-profile__copy .eyebrow {
      white-space: nowrap;
    }
    .player-profile__header h2 {
      margin: 0;
      font-size: 22px;
      line-height: 1.15;
      width: 100%;
    }
    .player-profile__user-id {
      color: #1458e8;
      font-size: 13px;
      line-height: 1;
      font-weight: 800;
      white-space: nowrap;
    }
    .player-profile__trophies,
    .player-profile__five-of-five {
      display: grid;
      justify-items: center;
      align-content: center;
      gap: 2px;
      color: #0f172a;
      min-width: 0;
      justify-self: center;
      width: 100%;
    }
    .player-profile__trophy-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      font-size: 33px;
      line-height: 1;
    }
    .player-profile__five-icon {
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
    }
    .player-profile__five-icon img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .player-profile__trophies strong,
    .player-profile__five-of-five strong {
      font-size: 30px;
      line-height: 1;
      color: #1458e8;
    }
    .player-profile__avatar {
      appearance: none;
      display: grid;
      place-items: center;
      width: 104px;
      height: 104px;
      padding: 0;
      border-radius: 50%;
      border: 2px solid #2871f4;
      background: linear-gradient(135deg, #eaf2ff, #ffffff);
      color: #1247bd;
      font-size: 26px;
      font-weight: 900;
      overflow: hidden;
      justify-self: start;
      box-shadow: inset 0 0 0 4px rgba(255,255,255,0.9);
      cursor: zoom-in;
    }
    .player-profile__avatar.has-photo {
      background-size: cover;
      background-position: center;
      color: transparent;
    }
    .player-photo-lightbox {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(8, 18, 14, .82);
      backdrop-filter: blur(4px);
      cursor: zoom-out;
    }
    .player-photo-lightbox[hidden] { display: none; }
    .player-photo-lightbox__card {
      display: grid;
      justify-items: center;
      gap: 16px;
      max-width: 100%;
      color: #fff;
      text-align: center;
    }
    .player-photo-lightbox__image {
      display: grid;
      place-items: center;
      width: min(84vw, 420px);
      max-height: 72dvh;
      aspect-ratio: 1;
      border: 4px solid rgba(255,255,255,.9);
      border-radius: 28px;
      background: #dfe7e3 center/cover no-repeat;
      color: #1247bd;
      font-size: clamp(44px, 14vw, 78px);
      font-weight: 900;
      overflow: hidden;
      box-shadow: 0 22px 70px rgba(0,0,0,.48);
    }
    .player-photo-lightbox__image.has-photo { color: transparent; }
    .player-photo-lightbox__name {
      max-width: min(88vw, 480px);
      font-size: clamp(22px, 6vw, 32px);
      line-height: 1.15;
    }
    .player-photo-lightbox__meta {
      color: #ffd45a;
      font-size: clamp(18px, 4.8vw, 25px);
      font-weight: 850;
      line-height: 1.1;
      margin-top: -6px;
    }
    .player-photo-lightbox__meta[hidden] { display: none; }
    body.player-photo-open { overflow: hidden; }
    .player-profile__content {
      display: grid;
      gap: 12px;
    }
    .player-profile__content[hidden] {
      display: none;
    }
    .relationship-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }
    .relationship-tab {
      appearance: none;
      border: 1px solid #cfe0ff;
      background: #fff;
      color: #1247bd;
      border-radius: 8px;
      padding: 9px 10px;
      font-weight: 800;
      cursor: pointer;
      min-height: 40px;
    }
    .relationship-tab.is-active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .player-profile__commands {
      display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%;
    }
    .player-compare-button, .player-share-button {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px;
      border: 2px solid #2871f4; border-radius: 8px; background: #fff; color: #1458e8; font-size: 15px; font-weight: 900; cursor: pointer;
    }
    .player-command-icon {
      display: inline-flex; align-items: center; justify-content: center; width: 30px; line-height: 1;
    }
    .player-command-icon--compare { flex: 0 0 32px; width: 32px; }
    .player-command-icon--compare svg { display: block; width: 32px; height: 32px; }
    .compare-docs__back, .compare-docs__front, .compare-docs__fold {
      fill: none; stroke-width: 4.25; stroke-linecap: round; stroke-linejoin: round;
    }
    .compare-docs__back { stroke: #918cf5; }
    .compare-docs__front, .compare-docs__fold { stroke: #6768df; }
    .compare-docs__forward { fill: #918cf5; }
    .compare-docs__backward { fill: #6768df; }
    .player-command-icon--share svg { display: block; width: 29px; height: 29px; }
    .share-plane__left { fill: #918cf5; }
    .share-plane__right { fill: #6768df; }
    .compare-dialog[hidden] { display: none; }
    .compare-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 10px; }
    .compare-dialog__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.72); }
    .compare-dialog__panel { position: relative; display: flex; flex-direction: column; width: min(100%,540px,calc((100dvh - 20px)*.8)); aspect-ratio: 4 / 5; max-height: calc(100dvh - 20px); overflow: hidden; padding: 14px; border-radius: 14px; background: #f4f7fb; }
    .compare-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .compare-dialog__header h2 { margin: 0; }
    .compare-dialog__close { width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
    .compare-controls { display: grid; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid #cfe0ff; border-radius: 12px; background: #fff; }
    .compare-league-nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
    .compare-league-nav h3 { margin: 0; text-align: center; font-size: 20px; }
    .compare-league-button { width: 38px; height: 38px; border: 2px solid #c9dbff; border-radius: 10px; background: #fff; color: #1260ff; font-size: 26px; font-weight: 900; cursor: pointer; }
    .compare-league-button:disabled { opacity: .35; cursor: default; }
    .compare-categories { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 5px; border: 1px solid #c9dbff; border-radius: 11px; background: #edf4ff; }
    .compare-category { border: 0; border-radius: 8px; background: transparent; color: #003fc7; padding: 10px 6px; font-weight: 800; cursor: pointer; }
    .compare-category.is-active { background: #2d6df6; color: #fff; box-shadow: 0 2px 6px rgba(26,83,210,.25); }
    .compare-table-wrap { flex: 1 1 auto; min-height: 0; overflow: visible; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; }
    .compare-table { width: 100%; height: 100%; min-width: 0; margin: 0; table-layout: fixed; }
    .compare-table th, .compare-table td { padding: 6px 8px; border-bottom: 1px solid #e3eaf3; text-align: center; }
    .compare-table td { font-weight: 800; }
    .compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
    .compare-table thead th:first-child, .compare-table tbody th { width: 32%; }
    .compare-table tbody th { background: #fff; text-align: left; }
    .compare-player { position: relative; width: 34%; min-width: 0; vertical-align: top; }
    .compare-player__search { position: relative; }
    .compare-player__search input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
    .compare-player__search input[type="search"]::-webkit-search-cancel-button {
      cursor: pointer;
      transform: scale(1.35);
      transform-origin: center;
    }
    .compare-player__results { position: absolute; z-index: 8; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
    .compare-player__result { display: block; width: 100%; padding: 9px; border: 0; border-bottom: 1px solid #e3eaf3; background: #fff; text-align: left; cursor: pointer; }
    .compare-player__selected { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; overflow-wrap: anywhere; }
    .compare-player__remove {
      display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0;
      border: 0; border-radius: 50%; background: #eef1f6; color: #475569; font-size: 28px; line-height: 1; cursor: pointer;
    }
    .compare-player__remove:hover,
    .compare-player__remove:focus-visible { background: #dfe6f2; color: #172033; outline: none; }
    .compare-empty { color: #64748b; font-weight: 500; }
    .compare-card-site { margin-top: auto; padding: 12px 4px; border-top: 1px solid #dbe4f0; color: #1458e8; font-size: 20px; font-weight: 900; text-align: center; }
    .compare-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .compare-dialog__actions button { min-height: 48px; border-radius: 10px; font-size: 15px; font-weight: 900; cursor: pointer; }
    .compare-dialog__secondary { border: 1px solid #cbd5e1; background: #fff; color: #172033; }
    .compare-dialog__primary { border: 1px solid #2d6df6; background: #2d6df6; color: #fff; }
    body.has-compare-dialog { overflow: hidden; }
    @media (max-width: 560px) {
      .compare-dialog { padding: 4px; }
      .compare-dialog__panel { width: min(100%,calc((100dvh - 8px)*.8)); max-height: calc(100dvh - 8px); padding: 7px 6px; border-radius: 10px; }
      .compare-dialog__header { min-height: 32px; margin-bottom: 3px; }
      .compare-dialog__header h2 { font-size: 20px; }
      .compare-dialog__close { width: 32px; height: 32px; font-size: 25px; }
      .compare-controls { gap: 4px; margin-bottom: 4px; padding: 5px; }
      .compare-league-nav { grid-template-columns: 32px 1fr 32px; }
      .compare-league-button { width: 30px; height: 30px; font-size: 21px; }
      .compare-league-nav h3 { font-size: 17px; }
      .compare-categories { padding: 3px; }
      .compare-category { padding: 6px 2px; font-size: 13px; }
      .compare-table th, .compare-table td { padding: 2px 3px; font-size: 14px; line-height: 1.08; overflow-wrap: anywhere; }
      .compare-table thead th:first-child, .compare-table tbody th { width: 30%; }
      .compare-player { width: 35%; }
      .compare-player__search input { padding: 5px 4px; font-size: 14px; }
      .compare-player__selected { font-size: 14px; line-height: 1.25; }
      .compare-player__remove { flex-basis: 30px; width: 30px; height: 30px; font-size: 26px; }
      .compare-card-site { padding: 4px 3px; font-size: 16px; }
      .compare-dialog__actions { gap: 8px; }
      .compare-dialog__actions button { min-height: 40px; font-size: 14px; }
    }
    .share-card-dialog[hidden] { display: none; }
    .share-card-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 12px; }
    .share-card-dialog__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.72); }
    .share-card-dialog__panel {
      position: relative; display: grid; gap: 10px; width: min(100%,460px); max-height: calc(100dvh - 16px);
      overflow-y: auto; padding: 12px; border-radius: 10px; background: #f4f7fb; box-shadow: 0 20px 60px rgba(15,23,42,.32);
    }
    .share-card-dialog__header, .share-card-dialog__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .share-card-dialog__header h2 { margin: 0; font-size: 18px; }
    .share-card-dialog__close { width: 38px; height: 38px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
    .share-card-preview {
      display: grid; justify-items: center; gap: 5px; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
      padding: 10px 16px 7px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; color: #0f172a;
    }
    .share-card-preview__logo { display: block; width: 100%; max-height: 96px; object-fit: contain; }
    .share-card-preview__player-row {
      display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 14px; width: 100%;
    }
    .share-card-preview__player { display: grid; justify-items: center; gap: 4px; min-width: 0; }
    .share-card-preview__avatar {
      display: grid; place-items: center; width: clamp(110px,31vw,128px); height: clamp(110px,31vw,128px);
      border: 4px solid #2871f4; border-radius: 50%; background: #edf4ff; color: #1458e8;
      font-size: 34px; font-weight: 900; overflow: hidden;
    }
    .share-card-preview h3 {
      margin: 0; width: 100%; overflow: hidden; color: #0f172a; font-size: 18px; line-height: 1.05;
      text-align: center; text-overflow: ellipsis; white-space: nowrap;
    }
    .share-card-preview__achievements {
      display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 8px; width: 100%;
    }
    .share-card-preview__achievements > div { display: grid; justify-items: center; gap: 2px; min-width: 0; }
    .share-card-preview__achievements span, .share-card-preview__achievements img {
      width: 38px; height: 38px; object-fit: contain; font-size: 32px; line-height: 38px; text-align: center;
    }
    .share-card-preview__achievements strong { color: #1458e8; font-size: 27px; line-height: 1; }
    .share-card-preview__achievements small { font-size: 10px; font-weight: 800; }
    .share-card-preview h4 {
      width: 100%; margin: 0; padding-top: 6px; border-top: 2px solid #dbeafe;
      color: #1247bd; font-size: 19px; text-align: center;
    }
    .share-card-preview__stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; width: 100%; }
    .share-card-preview__stat {
      display: grid; justify-items: center; gap: 1px; padding: 4px 3px;
      border: 1px solid #dbe4f0; border-radius: 6px; background: #f8fbff;
    }
    .share-card-preview__stat span { color: #334155; font-size: 16px; font-weight: 900; line-height: 1.1; text-align: center; }
    .share-card-preview__stat strong { font-size: 18px; }
    .share-card-preview__site {
      width: 100%; margin-top: auto; padding-top: 4px; border-top: 2px solid #dbeafe;
      color: #1458e8; font-size: 22px; font-weight: 900; text-align: center;
    }
    .share-card-dialog__actions button { min-height: 44px; flex: 1; border-radius: 8px; font-weight: 900; cursor: pointer; }
    .share-card-dialog__secondary { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
    .share-card-dialog__primary { border: 1px solid #2871f4; background: #2871f4; color: #fff; }
    .share-card-dialog__status { margin: 0; padding: 9px; border-radius: 6px; background: #fff4ce; color: #6b4e00; font-size: 13px; font-weight: 700; }
    body.has-share-dialog { overflow: hidden; }
    .relationships-panel {
      display: grid;
      gap: 10px;
    }
    .relationships-panel[hidden] {
      display: none;
    }
    .relationship-category {
      display: grid;
      gap: 8px;
      border: 2px solid #cfe0ff;
      border-radius: 8px;
      background: #f8fbff;
      padding: 12px;
    }
    .relationship-category h4 {
      margin: 0;
      color: #1247bd;
      font-size: 16px;
      font-weight: 900;
      text-align: center;
    }
    .relationship-list {
      display: grid;
      gap: 6px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .relationship-list li {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      padding: 8px 9px;
      border: 1px solid #e6eaf0;
      border-radius: 8px;
      background: #fff;
      font-size: 14px;
      font-weight: 700;
    }
    .relationship-list__rank {
      color: var(--accent);
      font-weight: 900;
    }
    .relationship-list__name {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .relationship-list__count {
      color: var(--ink);
      font-weight: 900;
      white-space: nowrap;
    }
    .relationship-list__empty {
      grid-template-columns: 1fr;
      color: var(--muted);
      font-weight: 800;
      text-align: center;
    }
    .top-users {
      display: grid;
      gap: 12px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 14px;
      box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
    }
    .top-users[hidden] {
      display: none;
    }
    .top-users__header {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr) 36px;
      gap: 6px;
      align-items: center;
      text-align: center;
    }
    .top-users__title {
      min-width: 0;
    }
    .top-users__header h2 {
      margin: 0;
      font-size: clamp(18px, 5.2vw, 22px);
      line-height: 1.05;
    }
    .top-users__header span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      margin-top: 3px;
    }
    .top-users__league-nav {
      appearance: none;
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      border: 2px solid #cfe0ff;
      border-radius: 10px;
      background: #fff;
      color: #1458e8;
      cursor: pointer;
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
      padding: 0;
    }
    .top-users__league-nav.is-disabled {
      pointer-events: none;
      visibility: hidden;
    }
    .top-users__categories {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 6px;
      border: 1px solid #cfe0ff;
      border-radius: 10px;
      background: #eef5ff;
    }
    .top-users__category {
      appearance: none;
      border: 2px solid #b8c9e8;
      background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
      color: #1247bd;
      border-radius: 8px;
      padding: 10px 6px;
      font-weight: 800;
      cursor: pointer;
      text-align: center;
      min-height: 40px;
      line-height: 1.1;
      box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
      transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    }
    .top-users__category:hover:not(.is-active) {
      border-color: #75a0ff;
      background: #fff;
      box-shadow: 0 4px 9px rgba(36, 107, 254, 0.18);
      transform: translateY(-1px);
    }
    .top-users__category:active {
      transform: translateY(1px);
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
    }
    .top-users__category:focus-visible {
      outline: 3px solid rgba(36, 107, 254, 0.28);
      outline-offset: 2px;
    }
    .top-users__category.is-active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(36, 107, 254, 0.25);
    }
    .top-users__tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .top-users__tab {
      appearance: none;
      border: 2px solid #d7dce5;
      background: #fffdf9;
      color: var(--ink);
      border-radius: 9px;
      padding: 6px 5px 7px;
      font-weight: 800;
      cursor: pointer;
      text-align: center;
      min-height: 72px;
      line-height: 1.05;
      display: grid;
      align-content: center;
      justify-items: center;
      gap: 4px;
      box-shadow: 0 3px 9px rgba(15, 23, 42, 0.13);
      transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    }
    .top-users__tab:active {
      transform: translateY(1px);
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
    }
    .top-users__tab-icon {
      display: inline-grid;
      place-items: center;
      width: 30px;
      height: 30px;
      font-size: 27px;
      line-height: 1;
    }
    .top-users__tab-icon img {
      width: 34px;
      height: 34px;
      object-fit: contain;
      display: block;
    }
    .top-users__tab-icon--gp {
      width: 42px;
      height: 30px;
      grid-template-columns: 1fr auto 1fr;
      gap: 2px;
      font-size: 13px;
      color: #0b5db8;
      font-weight: 900;
    }
    .top-users__tab-icon--gp span {
      width: 17px;
      height: 17px;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      background: linear-gradient(145deg, #dff4ff, #ffffff);
      border: 2px solid #f4b43f;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    }
    .top-users__tab-icon--gp i {
      width: 14px;
      height: 3px;
      border-radius: 999px;
      background: #13a66a;
      transform: rotate(-14deg);
      align-self: center;
    }
    .top-users__tab.is-active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
      box-shadow: 0 5px 12px rgba(36, 107, 254, 0.28);
    }
    .top-users__tab.is-active .top-users__tab-icon--gp span {
      background: rgba(255, 255, 255, 0.96);
      color: #0b5db8;
    }
    .top-users__tab.is-active .top-users__tab-icon--gp i {
      background: #fff;
    }
    .top-users__views {
      background: #eef3fb;
      border: 1px solid #ccd9ed;
      border-radius: 12px;
      display: grid;
      gap: 6px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      padding: 6px;
    }
    .top-users__views[hidden],
    #topUsersPlayerSearchCard[hidden],
    #topUsersListFrame[hidden],
    #topUsersVisual[hidden],
    #topUsersPrizeLegend[hidden] { display: none !important; }
    .top-users__view {
      align-items: center;
      appearance: none;
      background: rgba(255, 255, 255, .92);
      border: 1px solid #c4d2e8;
      border-radius: 8px;
      color: #244160;
      cursor: pointer;
      display: flex;
      font-size: 14px;
      font-weight: 800;
      gap: 7px;
      justify-content: center;
      min-height: 72px;
      padding: 8px 6px;
      text-align: left;
      transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
    }
    .top-users__view-icon {
      flex: 0 0 32px;
      height: 32px;
      width: 32px;
    }
    .top-users__view-icon svg {
      display: block;
      height: 100%;
      width: 100%;
    }
    .top-users__view-label {
      display: grid;
      line-height: 1.02;
    }
    .top-users__view-label span,
    .top-users__view-label strong { font-size: 14px; font-weight: 900; }
    .top-users__view:active { transform: translateY(1px); }
    .top-users__view.is-active {
      background: var(--accent);
      border-color: var(--accent);
      box-shadow: 0 4px 10px rgba(36, 107, 254, .25);
      color: #fff;
    }
    .top-users__visual {
      min-height: 0;
    }
    .top-users__visual > #publicCommunityRankingView {
      margin: 0;
      max-width: none;
      width: 100%;
    }
    .top-users__visual > #publicCommunityRankingView .public-community-ranking-actions { display: none; }
    .public-community-sigma-help { margin: 24px 0 0; padding: 20px; border-radius: 16px; background: #f0f5fc; color: #34465b; font-size: 18px; line-height: 1.65; text-align: left; }
    .public-community-sigma-help h2 { margin: 0 0 12px; font-size: 22px; }
    .public-community-sigma-help p { margin: 0 0 12px; }
    .public-community-sigma-help p:last-child { margin-bottom: 0; }
    .top-users__visual .public-community-sigma-help { display: none; }
    .top-users__visual > #publicCommunityRankingView .public-community-ranking-title {
      font-size: clamp(26px, 4vw, 38px);
      margin-bottom: 10px;
    }
    .top-users__visual .public-community-ranking-stage {
      --community-ranking-row-height: 196px;
      min-height: 588px;
    }
    .top-users__visual .public-community-ranking-vertical-viewport { height: 588px; }
    .top-users__visual .public-community-ranking-avatar { width: clamp(68px, 9.5vw, 96px); }
    .top-users__visual .public-community-ranking-overview { padding: 14px 10px 32px; }
    .top-users__visual .public-community-ranking-overview-group { padding-block: 1px; }
    @media (max-width: 680px) {
      .top-users__visual .public-community-ranking-stage {
        --community-ranking-row-height: 174px;
        min-height: 522px;
      }
      .top-users__visual .public-community-ranking-vertical-viewport { height: 522px; }
      .top-users__visual .public-community-ranking-avatar { width: clamp(68px, 22vw, 88px); }
      .top-users__visual .public-community-ranking-overview { padding: 10px 8px 26px; }
    }
    .top-users__list {
      display: grid;
      gap: 7px;
      max-height: 510px;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 8px;
    }
    .top-users__list:not(.top-users__list--gallery) {
      height: clamp(352px, 62vh, 510px);
    }
    .top-users__loading {
      align-self: center;
      color: #475569;
      font-size: 14px;
      font-weight: 800;
      justify-self: center;
    }
    .top-users__list--gallery {
      max-height: min(82vh, 780px);
    }
    .top-user-row {
      display: grid;
      grid-template-columns: 30px 24px minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 9px 10px;
      min-height: 44px;
      border: 1px solid #e6eaf0;
      border-radius: 8px;
      background: #fbfcfe;
    }
    .top-user-row--selected {
      border-color: var(--accent);
      background: #dbeafe;
      box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.22);
    }
    .top-user-row--selected .top-user-row__name,
    .top-user-row--selected .top-user-row__value {
      color: #1247bd;
    }
    .top-users__list--virtual .top-user-row { height: 44px; }
    .top-user-row__rank {
      color: #1458e8;
      font-weight: 800;
      font-size: 15px;
    }
    .top-user-row__name {
      min-width: 0;
      color: var(--ink);
      font-weight: 700;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      text-align: left;
      cursor: pointer;
    }
    .top-user-row__name:hover,
    .top-user-row__name:focus {
      color: var(--accent);
      text-decoration: underline;
      outline: none;
    }
    .top-user-row__value {
      color: var(--ink);
      font-size: 17px;
      font-weight: 800;
      white-space: nowrap;
    }
    .tournament-gallery-jump { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; margin-top: 12px; padding: 10px 16px; border: 1px solid #c5d7fb; border-radius: 12px; background: #edf4ff; color: #1247bd; font: inherit; font-weight: 800; cursor: pointer; }
    .tournament-gallery-jump__icon { font-size: 24px; line-height: 1; }
    .tournament-gallery-jump[hidden], #tournamentGalleryStatus:empty { display: none; }
    .tournament-gallery-jump:hover { background: #dfeaff; }
    .tournament-gallery-jump:focus-visible { outline: 3px solid #1458e8; outline-offset: 2px; }
    .tournament-gallery { margin-top: 2rem; }
    .tournament-gallery__slider { position: relative; }
    .tournament-gallery__grid { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
    .tournament-gallery__grid::-webkit-scrollbar { display: none; }
    .tournament-gallery__grid button { flex: 0 0 clamp(240px, calc((100% - 24px) / 3), 340px); max-width: 100%; border: 0; padding: 0; background: #eef2f7; border-radius: 12px; overflow: hidden; cursor: grab; user-select: none; }
    .tournament-gallery__grid img { display: block; width: 100%; height: 240px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
    .tournament-gallery__grid.is-dragging, .tournament-gallery__grid.is-dragging button { cursor: grabbing; }
    .tournament-gallery__grid button:focus-visible { outline: 3px solid #1458e8; outline-offset: -3px; }
    .tournament-gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; color: #1458e8; font-size: 34px; line-height: 1; box-shadow: 0 2px 8px #0003; cursor: pointer; }
    .tournament-gallery__arrow[hidden] { display: none; }
    .tournament-gallery__arrow:disabled { opacity: .4; cursor: default; }
    .tournament-gallery__arrow--previous { left: 4px; }
    .tournament-gallery__arrow--next { right: 4px; }
    .tournament-gallery-dialog { border: 0; border-radius: 12px; padding: 12px; max-width: 96vw; max-height: 94dvh; }
    .tournament-gallery-dialog::backdrop { background: rgb(0 0 0 / 75%); }
    .tournament-gallery-dialog img { display: block; max-width: 90vw; max-height: 80dvh; object-fit: contain; }
    .tournament-gallery-dialog button { display: block; margin: 0 0 10px auto; }
    .gallery-view {
      display: grid;
      gap: 10px;
      padding: 10px;
      border: 1px solid #dbe7fb;
      border-radius: 10px;
      background: #f8fbff;
    }
    .gallery-view--empty {
      min-height: 180px;
      place-items: center;
      text-align: center;
      color: var(--muted);
      font-weight: 800;
    }
    .gallery-view--empty strong {
      color: var(--ink);
      font-size: 20px;
    }
    .gallery-view__stage {
      position: relative;
      display: grid;
      place-items: center;
      min-height: 260px;
      border-radius: 10px;
      overflow: hidden;
      background: #0b1220;
      touch-action: pan-y;
      user-select: none;
    }
    .gallery-view__stage img {
      display: block;
      grid-area: 1 / 1;
      width: 100%;
      max-height: min(62vh, 620px);
      object-fit: contain;
      background: #0b1220;
      transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
      user-select: none;
      will-change: transform;
    }
    .gallery-view__stage img[hidden] {
      display: none;
    }
    .gallery-view__nav {
      appearance: none;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      display: grid;
      place-items: center;
      width: 42px;
      height: 56px;
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.9);
      color: #1247bd;
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    }
    .gallery-view__nav--prev {
      left: 10px;
    }
    .gallery-view__nav--next {
      right: 10px;
    }
    .gallery-view__nav.is-hidden {
      display: none;
    }
    .gallery-view__meta {
      display: grid;
      gap: 3px;
      text-align: center;
      color: var(--muted);
      font-weight: 700;
    }
    .gallery-view__meta strong {
      color: #1247bd;
      font-size: 18px;
      font-weight: 900;
    }
    .gallery-view__meta span {
      color: var(--ink);
      font-size: 15px;
      font-weight: 800;
    }
    .gallery-view__meta small {
      font-size: 12px;
      font-weight: 700;
    }
    .league-card {
      display: grid;
      gap: 10px;
      border: 3px solid #b8d2ff;
      border-radius: 10px;
      padding: 12px;
      background: #f5f9ff;
      box-shadow: 0 1px 4px rgba(36, 107, 254, 0.08);
    }
    .league-card[open] {
      border-color: #8fb7ff;
      box-shadow: 0 2px 8px rgba(36, 107, 254, 0.12);
    }
    .league-card summary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 56px;
      cursor: pointer;
      list-style: none;
      position: relative;
      border-radius: 8px;
      background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
      box-shadow: inset 0 0 0 2px rgba(47, 109, 246, 0.12);
      transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
      user-select: none;
    }
    .league-card summary:hover {
      background: linear-gradient(180deg, #ffffff 0%, #e6f0ff 100%);
      box-shadow: inset 0 0 0 2px rgba(47, 109, 246, 0.24), 0 2px 8px rgba(36, 107, 254, 0.10);
    }
    .league-card summary:active {
      transform: scale(0.995);
    }
    .league-card summary::-webkit-details-marker {
      display: none;
    }
    .league-card summary::after {
      content: "";
      width: 16px;
      height: 16px;
      border-right: 5px solid #2f6df6;
      border-bottom: 5px solid #2f6df6;
      border-radius: 2px;
      transform: rotate(45deg);
      transition: transform 0.18s ease;
      position: absolute;
      right: 18px;
      filter: drop-shadow(0 1px 0 #fff);
    }
    .league-card:not([open]) summary::after {
      transform: rotate(-45deg);
    }
    .league-card h3 {
      margin: 0;
      color: #0d4ec7;
      font-size: 22px;
      font-weight: 950;
      line-height: 1.2;
      text-align: center;
      text-shadow: 0 1px 0 #fff;
    }
    .league-card__grid {
      display: grid;
      gap: 8px;
    }
    .league-card.is-slow-transition .league-card__grid {
      will-change: height, opacity, transform;
    }
    .relationship-league-card__title {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
    }
    .relationship-league-card__grid {
      display: grid;
      gap: 10px;
    }
    .league-category {
      display: grid;
      gap: 10px;
      padding: 12px;
      border: 2px solid #cfe0ff;
      border-radius: 8px;
      background: #f8fbff;
      box-shadow: inset 0 0 0 1px rgba(36, 107, 254, 0.04);
    }
    .league-category h4 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin: 0;
      font-size: 16px;
      line-height: 1.2;
    }
    .prize-emoji {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      font-size: 18px;
      line-height: 1;
    }
    .prize-legend {
      display: grid;
      gap: 6px;
      padding: 10px 12px;
      border: 1px solid #cfe0ff;
      border-radius: 8px;
      background: #f8fbff;
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
    }
    .prize-legend span {
      display: flex;
      align-items: center;
      gap: 6px;
      line-height: 1.2;
    }
    .mini-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .mini-stat {
      min-width: 0;
    }
    .mini-stat--with-chart {
      display: grid;
      gap: 5px;
    }
    .mini-stat span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .mini-stat strong {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
      color: var(--ink);
      font-size: 21px;
      line-height: 1.12;
      font-weight: 700;
      margin-top: 2px;
    }
    .rank-position {
      color: var(--accent);
      font-size: 1em !important;
      line-height: inherit;
      font-weight: 800;
      white-space: nowrap;
    }
    .mini-stat--ranking {
      padding-top: 8px;
      border-top: 1px solid #e6eaf0;
    }
    .mini-stat--ranking strong {
      font-size: 21px;
      font-weight: 900;
      color: #0f348c;
    }
    .mini-stat--ranking .rank-position {
      font-weight: 900;
    }
    .sparkline {
      display: block;
      width: 100%;
      height: 46px;
      margin-top: 1px;
    }
    .sparkline__line {
      fill: none;
      stroke: #7c3aed;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .sparkline__dot {
      fill: #7c3aed;
      stroke: #fff;
      stroke-width: 2;
    }
    .sparkline__label {
      fill: var(--muted);
      font-size: 9px;
      font-weight: 700;
    }
    .mini-stat--ranking .sparkline__line {
      stroke: #0f9f6e;
    }
    .mini-stat--ranking .sparkline__dot {
      fill: #0f9f6e;
    }
    .link-button {
      justify-self: stretch;
    }
    .legacy-link {
      justify-self: center;
      color: #1247bd;
      font-size: 14px;
      font-weight: 800;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .legacy-link:focus {
      outline: 2px solid rgba(36, 107, 254, 0.35);
      outline-offset: 3px;
      border-radius: 4px;
    }
    .home-legal-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px 16px;
    }
    .home-legal-links .analytics-consent-settings {
      border: 0;
      padding: 0;
      background: transparent;
      font: inherit;
      cursor: pointer;
    }
    .category-browser {
      margin-bottom: 16px;
    }
    .category-tabs,
    .period-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 2px 0 10px;
    }
    .category-tabs {
      margin-bottom: 8px;
    }
    .period-tabs {
      margin-bottom: 12px;
    }
    .category-tab,
    .period-tab {
      appearance: none;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      border-radius: 8px;
      padding: 10px 13px;
      font-weight: 700;
      white-space: normal;
      cursor: pointer;
      text-align: center;
      min-height: 44px;
      line-height: 1.15;
    }
    .period-tab {
      padding: 8px 12px;
      font-size: 13px;
    }
    .category-tab.is-active,
    .period-tab.is-active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .category-tab:last-child,
    .period-tab:last-child {
      grid-column: 1 / -1;
    }
    .category-panel[hidden] {
      display: none;
    }
    .category-title {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin: 4px 0 12px;
    }
    .category-title h2 {
      font-size: 21px;
      line-height: 1.2;
    }
    .category-title span {
      color: var(--muted);
      font-weight: 700;
      font-size: 13px;
    }
    .kpis {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 16px;
    }
    .kpi, .chart, .table-block {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
    }
    .kpi { padding: 12px; min-height: 104px; }
    .kpi__label { color: var(--muted); font-size: 12px; }
    .kpi__value { font-size: 25px; font-weight: 700; margin-top: 7px; line-height: 1.1; }
    .kpi__subvalue { color: var(--ink); font-size: 13px; font-weight: 700; margin-top: 2px; }
    .kpi__previous { color: var(--muted); font-size: 11px; margin-top: 4px; }
    .kpi__hint { color: var(--muted); font-size: 11px; margin-top: 4px; }
    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .comparison-pair {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 22px;
      border: 2px solid #246bfe;
      border-radius: 10px;
      padding: 6px;
      background: rgba(36, 107, 254, 0.04);
    }
    .chart { padding: 10px; min-width: 0; overflow: hidden; }
    .chart--previous {
      box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
    }
    .chart--single {
      border-top: 4px solid #0f9f6e;
    }
    .chart--wide { grid-column: 1 / -1; }
    .chart header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
      flex-direction: column;
      align-items: flex-start;
    }
    h2 { margin: 0; font-size: 14px; line-height: 1.25; }
    .chart header span { color: var(--muted); font-weight: 700; }
    svg { display: block; width: 100%; max-width: 100%; height: auto; }
    .axis { stroke: #c8ced8; stroke-width: 1; }
    .grid-line { stroke: #e6eaf0; stroke-width: 1; }
    .tick { stroke: #aeb7c4; stroke-width: 1; }
    .event-marker { stroke: #111827; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.72; }
    .event-marker-label { fill: #111827; font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
    .chart-label { fill: var(--muted); font-size: 13px; }
    .value-label { fill: var(--ink); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
    .value-label--inside { fill: var(--ink); stroke: #fff; stroke-width: 3px; }
    .value-label--secondary { font-size: 10px; }
    .value-label--small { font-size: 10px; }
    .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      color: var(--muted);
      font-size: 12px;
      margin: 2px 0 8px;
    }
    .legend span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .legend i {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 2px;
    }
    .tables {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 12px;
    }
    .tables--single {
      grid-template-columns: 1fr;
    }
    .table-block { padding: 12px; min-width: 0; }
    .table-wrap { overflow-x: auto; margin-top: 10px; }
    table { border-collapse: collapse; width: 100%; font-size: 13px; }
    th, td { border-bottom: 1px solid var(--line); padding: 8px 7px; text-align: left; white-space: nowrap; }
    th { color: var(--muted); font-weight: 700; }
    footer { color: var(--muted); font-size: 12px; margin-top: 20px; }
    @media (max-width: 420px) {
      main { padding-left: 8px; padding-right: 8px; }
      .home-hero h1 { font-size: 20px; }
      .category-tab { padding: 9px 11px; }
      .period-tab { padding: 8px 10px; }
      .kpi { padding: 10px; }
      .kpi__value { font-size: 23px; }
      .chart { padding: 8px; }
      h2 { font-size: 13px; }
    }
    @media (max-width: 899px) {
      .brand img { width: min(300px, 42vw); }
      body.has-site-header-back .brand img { width: min(260px, 34vw); }
      .site-navigation__trigger { height: 44px; padding: 8px 10px; width: 44px; }
      .site-navigation__label {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
      }
    }
    @media (max-width: 360px) {
      body.has-site-header-back .brand img { width: min(240px, 38vw); }
    }
    @media (min-width: 760px) {
      .kpis {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 12px;
      }
    }
    @media (min-width: 900px) {
      .topbar {
        padding: 22px 28px;
        position: static;
      }
      .brand img { width: 420px; }
      .brand span { font-size: 26px; }
      .main-nav {
        margin-top: 18px;
      }
      .home-view {
        gap: 20px;
      }
      .home-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
        align-items: center;
        padding: 24px;
      }
      .home-hero h1 {
        font-size: 34px;
      }
      .home-kpis {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 12px;
      }
      .player-profile {
        padding: 18px;
      }
      .player-profile__header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        align-items: center;
        gap: 12px 18px;
      }
      .player-profile__identity {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
      }
      .relationship-tabs {
        grid-column: 1;
        width: min(100%, 560px);
        min-width: 0;
      }
      .player-profile__commands {
        grid-column: 2;
        width: min(100%, 520px);
        justify-self: end;
      }
      .top-users {
        padding: 18px;
      }
      .top-users__tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .top-users__tab {
        min-height: 76px;
      }
      .top-users__view { min-height: 76px; }
      .prize-legend {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
      }
      .league-card__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .relationship-league-card__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .link-button {
        justify-self: start;
      }
      .category-tabs,
      .period-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .category-tab,
      .period-tab {
        white-space: nowrap;
      }
      .category-tab:last-child,
      .period-tab:last-child {
        grid-column: auto;
      }
      main { padding: 24px 28px 40px; }
      .category-browser { margin-bottom: 24px; }
      .category-title {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
      }
      .category-title h2 { font-size: 22px; }
      .category-title span { font-size: 14px; }
      .kpis { margin-bottom: 22px; }
      .kpi { padding: 16px; min-height: 108px; }
      .kpi__label { font-size: 13px; }
      .kpi__value { font-size: 28px; margin-top: 8px; }
      .kpi__subvalue { font-size: 15px; }
      .kpi__previous, .kpi__hint { font-size: 12px; }
      .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }
      .comparison-pair {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 24px;
        padding: 8px;
      }
      .chart { padding: 16px; overflow-x: visible; }
      .chart--previous {
        box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
      }
      .chart--single {
        border-top-width: 3px;
      }
      .chart header {
        flex-direction: row;
        align-items: baseline;
      }
      h2 { font-size: 16px; }
      svg { width: 100%; max-width: 100%; }
      .tables {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 14px;
      }
      .tables--single { grid-template-columns: 1fr; }
      .table-block { padding: 16px; }
    }
    .analytics-consent[hidden], .analytics-consent-settings[hidden] { display: none; }
    .analytics-consent {
      position: fixed; z-index: 1400; right: 16px; bottom: 16px; left: 16px;
      width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 18px;
      border: 1px solid #c8d8f8; border-radius: 16px; background: #fff;
      box-shadow: 0 18px 50px rgba(15, 23, 42, .24);
    }
    .analytics-consent h2 { margin: 0; font-size: 20px; }
    .analytics-consent p { margin: 0; color: #475569; }
    .analytics-consent__privacy { margin-top: 16px; }
    .analytics-consent__details { margin-top: 6px; color: #475569; font-size: 13px; }
    .analytics-consent__details summary { color: #1458e8; font-weight: 800; cursor: pointer; }
    .analytics-consent__details p { margin-top: 8px; font-size: inherit; }
    .analytics-consent__details a { color: #1458e8; }
    .analytics-consent__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .analytics-consent__actions button {
      min-height: 46px; padding: 10px 14px; border: 2px solid #2871f4; border-radius: 10px;
      font: inherit; font-weight: 900; cursor: pointer;
    }
    .analytics-consent__reject { background: #fff; color: #1458e8; }
    .analytics-consent__accept { background: #1458e8; border-color: #1458e8; color: #fff; }
    .cookie-policy-page[hidden] { display: none; }
    .cookie-policy-page {
      position: fixed; z-index: 1500; inset: 0; overflow-y: auto; background: #f3f6fb; color: #172033;
    }
    .cookie-policy-page__header { background: #1247bd; color: #fff; }
    .cookie-policy-page__header-inner,
    .cookie-policy-page__content { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
    .cookie-policy-page__header-inner { padding: 24px 0; }
    .cookie-policy-page__header a { color: #fff; font-weight: 800; text-decoration: none; }
    .cookie-policy-page__header a:hover { text-decoration: underline; }
    .cookie-policy-page h1 { margin: 18px 0 0; font-size: clamp(28px, 6vw, 42px); line-height: 1.1; }
    .cookie-policy-page__content {
      margin-top: 24px; margin-bottom: 40px; padding: clamp(20px, 5vw, 40px); border: 1px solid #d8e2f2;
      border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(20, 45, 90, .08);
    }
    .cookie-policy-page h2 { margin: 28px 0 10px; color: #1247bd; font-size: 21px; }
    .cookie-policy-page h2:first-of-type { margin-top: 12px; }
    .cookie-policy-page p,
    .cookie-policy-page li { color: #3d4a60; line-height: 1.65; }
    .cookie-policy-page a { color: #1247bd; }
    .cookie-policy-page__header a { color: #fff; }
    .cookie-policy-page__table { overflow-x: auto; }
    .cookie-policy-page table { width: 100%; border-collapse: collapse; margin: 14px 0; }
    .cookie-policy-page th,
    .cookie-policy-page td { padding: 12px; border: 1px solid #d8e2f2; text-align: left; vertical-align: top; }
    .cookie-policy-page th { background: #eef4ff; color: #17376f; }
    .cookie-policy-page__updated { margin-top: 0; color: #64748b; font-size: 14px; }
    .cookie-policy-page__back { margin-top: 24px; }
    @media (max-width: 560px) {
      .analytics-consent { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); padding: 15px; border-radius: 14px; }
      .analytics-consent h2 { font-size: 18px; }
      .analytics-consent__actions { grid-template-columns: 1fr; }
      .analytics-consent__actions button { min-height: 44px; }
      .cookie-policy-page__header-inner,
      .cookie-policy-page__content { width: min(100% - 20px, 920px); }
      .cookie-policy-page__header-inner { padding: 18px 4px; }
      .cookie-policy-page__content { margin-top: 10px; padding: 18px 15px; border-radius: 12px; }
      .cookie-policy-page th,
      .cookie-policy-page td { min-width: 135px; padding: 10px; }
    }
    .section-back.section-back {
      align-items: center;
      appearance: none;
      align-self: center;
      background: transparent;
      border: 0;
      border-radius: 8px;
      box-shadow: none;
      color: #475569 !important;
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-size: 14px;
      font-weight: 800 !important;
      gap: 6px;
      justify-content: center;
      justify-self: start;
      line-height: 1;
      margin: 0;
      min-height: 38px;
      min-width: 0;
      padding: 7px 9px 7px 5px;
      text-decoration: none !important;
      transition: background-color 150ms ease, color 150ms ease;
      width: fit-content;
    }
    .section-back.section-back::before {
      content: "\2039";
      font-size: 22px;
      font-weight: 500;
      line-height: 16px;
      margin-top: -1px;
    }
    .section-back.section-back:hover {
      background: rgba(15, 23, 42, .06);
      color: #1652d6 !important;
    }
    .section-back.section-back:focus-visible {
      background: rgba(47, 109, 246, .1);
      box-shadow: 0 0 0 2px rgba(47, 109, 246, .28);
      outline: none;
    }
    .section-back.section-back:active {
      background: rgba(15, 23, 42, .1);
    }
    .main-view .section-back--top.section-back--top { display: none; }
    .site-header-back.section-back {
      background: rgba(255, 255, 255, .96);
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      box-shadow: 0 2px 7px rgba(15, 23, 42, .08);
      color: #334155 !important;
      flex: 0 0 auto;
      font-size: 13px;
      gap: 5px;
      margin: 0;
      min-height: 36px;
      padding: 5px 9px 5px 7px;
      transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
      white-space: nowrap;
    }
    .site-header-back[hidden] { display: none; }
    .site-header-back.section-back:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
      color: #1652d6 !important;
    }
    .site-header-back.section-back:focus-visible {
      background: #fff;
      border-color: #2f6df6;
      box-shadow: 0 0 0 3px rgba(47, 109, 246, .2);
    }
    .section-back--top.section-back--top { margin-bottom: 8px; }
    .section-back--bottom.section-back--bottom {
      justify-self: center;
      margin: 20px auto 0;
    }
    .featured-ranking__actions .section-back.section-back,
    .public-community-ranking-actions .section-back.section-back,
    .tournament-results__navigation .section-back.section-back {
      align-self: center;
      justify-self: center;
    }
    .tournaments-view__header .section-back.section-back,
    .tournament-results__header .section-back.section-back,
    .cookie-policy-page__header .section-back.section-back {
      color: rgba(255, 255, 255, .9) !important;
    }
    .tournaments-view__header .section-back.section-back:hover,
    .tournament-results__header .section-back.section-back:hover,
    .cookie-policy-page__header .section-back.section-back:hover {
      background: rgba(255, 255, 255, .14);
      color: #fff !important;
    }
    .tournaments-view__header .section-back.section-back:focus-visible,
    .tournament-results__header .section-back.section-back:focus-visible,
    .cookie-policy-page__header .section-back.section-back:focus-visible {
      background: rgba(255, 255, 255, .14);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
    }
    @media (max-width: 899px) {
      .site-header-back.section-back { font-size: 11px; gap: 2px; min-height: 34px; padding: 4px 6px 4px 5px; }
    }
    @media (max-width: 360px) {
      .site-header-back.section-back { font-size: 0; gap: 0; height: 34px; min-height: 34px; padding: 0; width: 34px; }
      .site-header-back.section-back::before { font-size: 19px; }
    }
