@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-cyrillic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-cyrillic-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --panel: #14151a;
  --line: #282930;
  --muted: #a3a4b0;
  --text: #f3f1f4;
  --red: #ee4c67;
  --ruby: #ed5577;
  --emerald: #51cda1;
  --gold: #e4bc70;
  --diamond: #85c9e8;
  --platinum: #bbb8df;
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.league-wrap {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  background: var(--red);
  color: #fff;
}
.skip-link:focus {
  top: 12px;
}
.league-header {
  height: 88px;
  border-bottom: 1px solid #ffffff0d;
  background: #0c0d10ed;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 25px;
}
.league-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.055em;
  font-size: 19px;
  white-space: nowrap;
}
.league-brand b {
  color: var(--red);
}
.brand-divider {
  width: 1px;
  height: 23px;
  background: var(--line);
  margin: 0 8px;
}
.brand-league {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #d1cdd5;
}
.league-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: #b6b5bf;
}
.league-nav a {
  text-decoration: none;
  transition: color 0.2s;
}
.league-nav a:hover {
  color: #fff;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1.4;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: #dc3e5b;
  border-color: #ef6079;
  color: #fff;
  box-shadow: 0 5px 28px #d02a4820;
}
.button-primary:hover {
  background: #ee4c67;
}
.button-outline {
  border-color: #3c3b44;
  background: #ffffff03;
}
.button-outline:hover {
  background: #ffffff0a;
  border-color: #7a747e;
}
.button-small {
  min-height: 39px;
  padding: 8px 24px;
}
.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.tiny-gem {
  display: inline-block;
  width: 8px;
  height: 10px;
  background: var(--red);
  clip-path: polygon(25% 0, 75% 0, 100% 35%, 50% 100%, 0 35%);
  flex-shrink: 0;
}
.league-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
  padding-top: 72px;
}
.hero-copy {
  z-index: 1;
  padding: 0 0 58px;
}
.hero-copy h1 {
  font-size: clamp(46px, 4.7vw, 72px);
  line-height: 1.07;
  letter-spacing: -0.055em;
  font-weight: 800;
  margin: 22px 0 25px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: #afacb8;
  max-width: 465px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 29px;
}
.hero-caption {
  font-size: 12px;
  color: #908c99;
  margin-top: 18px;
}
.hero-art {
  position: relative;
  align-self: center;
  margin-top: -55px;
  margin-left: -40px;
  min-width: 0;
}
.chess-art {
  width: 100%;
  max-height: 580px;
  filter: drop-shadow(0 20px 60px #0006);
}
.art-label {
  position: absolute;
  bottom: 35px;
  left: 64%;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
}
.art-label .tiny-gem {
  width: 13px;
  height: 18px;
}
.art-label small {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  color: #a39ca9;
  white-space: nowrap;
  margin-top: 3px;
}
.art-side-label {
  position: absolute;
  right: -15px;
  top: 35%;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #6d6877;
}
.hero-facts {
  grid-column: 1/-1;
  display: flex;
  gap: 60px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0 23px;
}
.hero-facts p {
  display: flex;
  gap: 13px;
  align-items: center;
}
.hero-facts strong {
  font-weight: 600;
  font-size: 23px;
}
.hero-facts span {
  font-size: 14px;
  color: #aaa6b1;
}
.hero-facts svg {
  width: 27px;
  height: 30px;
  stroke: #d9b4c3;
  stroke-width: 1.2;
  fill: none;
}
.leaderboard-section {
  border-block: 1px solid #ffffff0b;
  background: linear-gradient(145deg, #141218, #101115 55%);
  padding: 57px 0 36px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-top: 12px;
}
.red-dot {
  color: var(--red);
}
select {
  appearance: none;
  background: #1b1b22
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23bbb8c4'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid #37343e;
  border-radius: 6px;
  padding: 11px 40px 11px 15px;
  font-size: 14px;
  max-width: 100%;
}
.season-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 12px;
  color: #a9a3b0;
}
.season-track {
  height: 2px;
  background: #333038;
  margin-top: 10px;
  margin-bottom: 28px;
}
.season-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.4s;
}
.board-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.division-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.division-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #aaa6b4;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.division-tab:hover {
  background: #ffffff05;
  color: #fff;
}
.division-tab.is-active {
  color: #fff;
  border-color: #55505c;
  background: #ffffff08;
}
.gem-dot {
  width: 8px;
  height: 9px;
  background: var(--gem, var(--ruby));
  clip-path: polygon(25% 0, 75% 0, 100% 35%, 50% 100%, 0 35%);
  display: inline-block;
}
.ruby {
  --gem: var(--ruby);
}
.emerald {
  --gem: var(--emerald);
}
.gold {
  --gem: var(--gold);
}
.diamond {
  --gem: var(--diamond);
}
.platinum {
  --gem: var(--platinum);
}
.player-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #37333e;
  border-radius: 6px;
  padding: 9px 12px;
  min-width: 160px;
}
.player-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #a8a1b0;
  stroke-width: 1.5;
}
.player-search input {
  border: 0;
  background: none;
  outline: none;
  min-width: 0;
  width: 145px;
  font-size: 14px;
}
.player-search:focus-within {
  border-color: var(--red);
}
.board-state {
  padding: 44px 20px 50px;
  border: 1px dashed #3c3543;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  background: radial-gradient(ellipse at 50% 0, #bb3c6110, transparent 65%);
}
.board-state h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 17px;
}
.board-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 470px;
  margin-top: 8px;
}
.board-state .button {
  margin-top: 22px;
}
.loading-gem {
  width: 28px;
  height: 35px;
  background: linear-gradient(125deg, #f39cb1, #a91d49);
  clip-path: polygon(25% 0, 75% 0, 100% 35%, 50% 100%, 0 35%);
  animation: gem-pulse 2s ease-in-out infinite;
}
.player-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.player-card {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gem) 7%, #19171f),
    #17171d 80%
  );
  border: 1px solid #3b333f;
  border-radius: 9px;
  padding: 23px;
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.player-card:hover {
  border-color: var(--gem);
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.place-tag {
  font-size: 14px;
  font-weight: 600;
  color: #d8cfde;
}
.division-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--gem) 25%, transparent);
  background: color-mix(in srgb, var(--gem) 7%, transparent);
  color: var(--gem);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
}
.card-person {
  display: flex;
  gap: 13px;
  align-items: center;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #302a35;
  border: 1px solid #655466;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6d7e7;
  font-size: 23px;
  flex-shrink: 0;
}
.card-person h3 {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.card-person small {
  color: var(--muted);
  font-size: 12px;
}
.card-stats {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid #ffffff0a;
}
.card-points strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.card-points span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.sparkline {
  width: 105px;
  height: 38px;
  stroke: var(--gem);
  fill: none;
  stroke-width: 2;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #aca0b0;
  margin-top: 13px;
}
.progress-caption b {
  font-weight: 400;
  color: var(--gem);
}
.standings {
  margin-top: 30px;
  border: 1px solid #302b36;
  border-radius: 9px;
  overflow: hidden;
  background: #111115;
}
.standings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 22px;
}
.standings-heading h3 {
  font-size: 15px;
  font-weight: 600;
}
.standings-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
  max-height: 650px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
th,
td {
  padding: 15px 20px;
  border-top: 1px solid #ffffff09;
  text-align: center;
}
th {
  font-weight: 400;
  color: #afa5b5;
  font-size: 12px;
  background: #19161e;
  vertical-align: middle;
}
th a {
  text-decoration: none;
}
th small {
  display: block;
  font-size: 12px;
  color: #8f8397;
  margin-top: 3px;
}
th:first-child,
td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #17141b;
  z-index: 1;
  min-width: 190px;
}
td:first-child {
  background: #111115;
}
.table-person {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  text-align: left;
}
.table-person .avatar {
  width: 31px;
  height: 31px;
  font-size: 14px;
}
.table-person .table-place {
  min-width: 19px;
  color: #aaa0b1;
  font-size: 12px;
}
.table-person:hover .table-name {
  color: var(--red);
}
.table-name small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.total-cell {
  color: #f4e7ee;
  font-weight: 600;
  background: #ffffff03;
}
tr:hover td {
  background: #1b1820;
}
.board-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 23px;
  color: #a89faf;
  font-size: 12px;
  line-height: 1.8;
}
.board-note p {
  max-width: 800px;
}
.note-symbol {
  border: 1px solid #716276;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 3px;
}
.text-button {
  background: none;
  border: 0;
  color: #d5bfcc;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0;
}
.board-note .text-button {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0 0 0 10px;
}
.gem-section {
  padding: 73px 0 66px;
}
.heading-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.gem-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
  margin-top: 35px;
}
.gem-path:before {
  content: "";
  position: absolute;
  top: 73px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(
    90deg,
    #7a354c,
    #296f57,
    #80673f,
    #4a778c,
    #64607b
  );
}
.gem-stage {
  position: relative;
  padding: 0 12px;
  text-align: center;
}
.stage-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  margin: 0 auto 14px;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--gem) 8%, #0c0d10),
    #0c0d10 65%
  );
}
.stage-art svg {
  width: 87px;
  height: 87px;
  stroke: var(--gem);
  stroke-width: 1;
  fill: color-mix(in srgb, var(--gem) 14%, #111116);
  filter: drop-shadow(0 0 13px color-mix(in srgb, var(--gem) 14%, transparent));
}
.stage-art svg path + path {
  fill: none;
  stroke-width: 0.8;
}
.stage-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gem);
}
.gem-stage h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 7px 0;
}
.gem-stage p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.path-footnote {
  text-align: center;
  font-size: 12px;
  color: #8e8796;
  margin-top: 32px;
}
.about-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
  padding: 60px 0 70px;
}
.about-copy h2 {
  font-size: clamp(27px, 2.8vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 16px 0 20px;
  font-weight: 600;
}
.about-copy h2 span {
  color: #dd7a91;
}
.about-copy > p:not(.overline) {
  font-size: 15px;
  color: var(--muted);
  max-width: 470px;
  line-height: 1.9;
}
.about-copy .button {
  margin-top: 24px;
}
.about-principles {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 29px;
}
.about-principles article {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.about-principles article > span {
  width: 41px;
  height: 41px;
  border: 1px solid #43313b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d67c96;
  font-size: 24px;
  flex-shrink: 0;
}
.about-principles h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.about-principles p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.league-footer {
  display: flex;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: 25px 0 30px;
  flex-wrap: wrap;
}
.league-footer .league-brand {
  gap: 0;
  font-size: 15px;
}
.league-footer > p {
  font-size: 12px;
  color: #a49aa9;
}
.league-footer > a:not(.league-brand) {
  margin-left: auto;
}
.league-footer > a:not(.league-brand),
.league-footer > span {
  font-size: 12px;
  color: #928998;
  text-decoration: none;
}
.league-dialog {
  background: #17151c;
  color: var(--text);
  border: 1px solid #51404e;
  border-radius: 14px;
  padding: 35px;
  width: min(590px, calc(100% - 28px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  box-shadow: 0 30px 100px #000b;
}
.league-dialog::backdrop {
  background: #050509cc;
  backdrop-filter: blur(7px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
  background: none;
  border: 0;
  color: #b9aab9;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
}
.league-dialog h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 13px 0;
}
.registration-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 25px;
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.register-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #cec0ce;
}
.register-grid input,
.register-grid select,
.admin-field {
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  background-color: #100f14;
  border: 1px solid #4a3b48;
  border-radius: 6px;
  font-size: 16px;
}
.register-grid select {
  padding-right: 32px;
}
.span-two {
  grid-column: 1/-1;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: #bdb0bf;
  margin: 15px 0;
  line-height: 1.65;
}
.check-label input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.phrase-box {
  background: #221923;
  border: 1px solid #503346;
  border-radius: 8px;
  padding: 17px;
  margin: 20px 0;
}
.phrase-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.phrase-box output {
  display: block;
  font-size: 20px;
  color: #f2b6c9;
  margin: 12px 0;
  line-height: 1.6;
  word-spacing: 5px;
}
.phrase-box p {
  font-size: 12px;
  color: #b49eaf;
  line-height: 1.7;
  margin-bottom: 10px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
}
.form-status {
  font-size: 14px;
  line-height: 1.6;
  color: #f4a9ba;
  margin: 16px 0;
}
.full-width {
  width: 100%;
}
.profile-person {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-right: 30px;
  margin-top: 10px;
}
.profile-person .avatar {
  width: 78px;
  height: 78px;
  font-size: 32px;
}
.profile-person h2 {
  margin: 0 0 9px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.profile-stats strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
}
.profile-stats span {
  font-size: 12px;
  color: var(--muted);
}
.profile-results {
  margin-top: 25px;
}
.profile-results h3 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}
.profile-result {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.profile-result a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.profile-result small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.profile-result strong {
  white-space: nowrap;
  color: #f0a1b6;
}
.profile-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.admin-wrap {
  padding-block: 50px;
}
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  margin-top: 22px;
}
.admin-panel h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
.admin-panel form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.admin-panel label {
  flex: 1;
  min-width: 150px;
  font-size: 14px;
  display: grid;
  gap: 5px;
}
.admin-list {
  font-size: 14px;
  line-height: 2;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
/* Schedule is useful even before the first results arrive. */
.arena-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.arena-event {
  display: block;
  padding: 19px 22px;
  border: 1px solid #3d303c;
  border-radius: 9px;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--gem) 5%, #18151d),
    #151419
  );
  text-decoration: none;
  transition: border-color 0.2s;
}
.arena-event:hover {
  border-color: var(--gem);
}
.arena-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.arena-event-top > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.arena-event > strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
}
.arena-event-date {
  font-size: 14px;
  color: #c1b0c0;
  display: block;
  margin-top: 5px;
}
.card-name {
  font-size: 20px;
  font-weight: 600;
  display: block;
  line-height: 1.4;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.card-person small {
  display: block;
}
.card-top,
.card-person,
.card-stats,
.progress-caption {
  display: flex;
}
.board-state .loading-gem {
  animation: none;
}
@keyframes gem-pulse {
  50% {
    opacity: 0.4;
    transform: translateY(-3px);
  }
}
@media (min-width: 1500px) {
  .league-hero {
    padding-top: 90px;
  }
  .hero-art {
    margin-top: -35px;
  }
}
@media (max-width: 1150px) {
  .league-wrap {
    width: calc(100% - 56px);
  }
  .league-nav {
    gap: 20px;
  }
  .league-hero {
    padding-top: 55px;
  }
  .board-tools {
    flex-wrap: wrap;
  }
  .player-search {
    margin-left: auto;
  }
  .division-tab {
    padding-inline: 10px;
  }
  .about-section {
    gap: 40px;
  }
  .hero-art {
    margin-left: -15px;
  }
  .hero-facts {
    gap: 40px;
  }
  .league-footer {
    gap: 18px;
  }
  .art-side-label {
    right: -8px;
  }
  .player-card {
    padding: 18px;
  }
  .stage-art {
    width: 125px;
    height: 144px;
  }
  .card-name {
    font-size: 18px;
  }
}
@media (max-width: 780px) {
  .league-wrap {
    width: calc(100% - 40px);
  }
  .league-header {
    height: 70px;
  }
  .league-nav {
    display: none;
  }
  .league-brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-divider {
    margin: 0 3px;
  }
  .brand-league {
    font-size: 12px;
  }
  .league-brand img {
    width: 25px;
    height: 25px;
  }
  .button-small {
    padding-inline: 19px;
  }
  .league-hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 38px;
  }
  .hero-copy {
    grid-column: 1/-1;
    padding-bottom: 0;
  }
  .hero-copy h1 {
    font-size: 54px;
    max-width: 570px;
    margin-top: 18px;
  }
  .desktop-break {
    display: none;
  }
  .hero-description {
    max-width: 530px;
  }
  .hero-art {
    grid-column: 1/-1;
    width: 85%;
    max-width: 450px;
    justify-self: center;
    margin: -5px -20px 0 0;
    height: 340px;
  }
  .chess-art {
    height: 100%;
  }
  .art-label {
    bottom: 5px;
    left: auto;
    right: 8px;
  }
  .art-side-label {
    display: none;
  }
  .hero-facts {
    justify-content: space-between;
    gap: 14px;
    padding-block: 19px;
  }
  .hero-facts p {
    gap: 9px;
  }
  .hero-facts span {
    font-size: 12px;
    max-width: 90px;
    line-height: 1.5;
  }
  .hero-facts strong {
    font-size: 22px;
  }
  .hero-facts svg {
    width: 22px;
  }
  .leaderboard-section {
    padding-top: 36px;
  }
  .section-heading {
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .overline {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .season-control select {
    font-size: 14px;
    padding: 9px 31px 9px 10px;
  }
  .season-meta {
    font-size: 12px;
    gap: 10px;
  }
  .board-tools {
    gap: 15px;
  }
  .division-filters {
    flex-wrap: nowrap;
    overflow: auto;
    width: calc(100% + 20px);
    padding-bottom: 5px;
    margin-right: -20px;
  }
  .division-tab {
    font-size: 14px;
    flex-shrink: 0;
  }
  .player-search {
    width: 100%;
    margin: 0;
  }
  .player-search input {
    width: 100%;
    font-size: 16px;
  }
  .arena-schedule {
    grid-template-columns: 1fr;
  }
  .player-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-card:nth-child(3) {
    grid-column: 1/-1;
  }
  .card-name {
    font-size: 19px;
  }
  .card-person .avatar {
    width: 44px;
    height: 44px;
  }
  .card-stats {
    gap: 6px;
  }
  .sparkline {
    width: 83px;
  }
  .card-points strong {
    font-size: 27px;
  }
  .card-top {
    margin-bottom: 17px;
  }
  .board-note {
    font-size: 12px;
  }
  .board-note .text-button {
    font-size: 14px;
  }
  .standings-heading {
    padding: 15px;
  }
  .gem-section {
    padding-block: 45px;
  }
  .heading-note {
    display: none;
  }
  .gem-path {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 0;
  }
  .gem-path:before {
    top: 40px;
    bottom: 40px;
    left: 52px;
    width: 1px;
    height: auto;
    background: linear-gradient(
      var(--ruby),
      var(--emerald),
      var(--gold),
      var(--diamond),
      var(--platinum)
    );
  }
  .gem-stage {
    display: grid;
    grid-template-columns: 105px 1fr;
    text-align: left;
    column-gap: 22px;
    padding: 10px 0;
    align-items: center;
  }
  .stage-art {
    grid-row: 1/4;
    width: 105px;
    height: 105px;
    margin: 0;
    position: relative;
  }
  .stage-art svg {
    width: 67px;
    height: 67px;
  }
  .stage-label {
    align-self: end;
    font-size: 12px;
  }
  .gem-stage h3 {
    margin: 3px 0;
    font-size: 19px;
  }
  .gem-stage p {
    align-self: start;
    font-size: 14px;
  }
  .gem-stage p br {
    display: none;
  }
  .path-footnote {
    text-align: left;
    font-size: 12px;
    margin-top: 22px;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 40px 50px;
  }
  .about-copy h2 {
    font-size: 31px;
  }
  .about-copy > p:not(.overline) {
    font-size: 16px;
    max-width: 100%;
  }
  .about-principles {
    gap: 24px;
  }
  .league-footer {
    gap: 14px 20px;
    padding-bottom: 25px;
  }
  .league-footer > p {
    flex: 1;
    font-size: 12px;
    text-align: right;
  }
  .league-footer > a:not(.league-brand) {
    margin: 0;
    flex-basis: 100%;
    font-size: 12px;
  }
  .league-footer > span {
    font-size: 12px;
  }
  .league-dialog {
    padding: 30px 22px;
  }
  .league-dialog h2 {
    font-size: 27px;
  }
  .register-grid {
    gap: 12px;
  }
  .phrase-box output {
    font-size: 18px;
  }
  .phrase-box > div {
    font-size: 14px;
    flex-wrap: wrap;
  }
  .profile-result {
    flex-wrap: wrap;
  }
}
@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 45px;
  }
  .hero-art {
    width: 100%;
    height: 300px;
  }
  .hero-actions {
    gap: 9px;
  }
  .hero-actions .button {
    padding-inline: 17px;
    font-size: 14px;
  }
  .hero-caption {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .section-heading .overline {
    max-width: 190px;
    line-height: 1.6;
  }
  .player-cards {
    grid-template-columns: 1fr;
  }
  .player-card:nth-child(3) {
    grid-column: auto;
  }
  .player-card {
    padding: 22px;
  }
  .sparkline {
    width: 120px;
  }
  .register-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .profile-stats {
    gap: 8px;
  }
  .profile-stats strong {
    font-size: 22px;
  }
  .profile-person .avatar {
    width: 60px;
    height: 60px;
  }
  .season-meta {
    flex-wrap: wrap;
  }
  .hero-facts {
    gap: 10px;
  }
  .brand-league,
  .brand-divider {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.card-prize {
  display: block;
  margin-top: 13px;
  color: var(--gold);
  font-size: 14px;
}
.result-prize {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 12px;
}
.profile-prize {
  margin-top: 18px;
  color: var(--gold);
  font-size: 16px;
}
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}
.profile-result > strong {
  max-width: 155px;
  text-align: right;
}
.standings table {table-layout:fixed;white-space:normal}
.standings th:first-child,.standings td:first-child {width:54%;min-width:0}
.standings th:not(:first-child),.standings td:not(:first-child) {width:23%}
.standings .table-person {max-width:100%;min-width:0}
.standings .table-name {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:540px){
  .standings th,.standings td {padding:14px 4px}
  .standings th:first-child,.standings td:first-child {width:42%}
  .standings th:not(:first-child),.standings td:not(:first-child) {width:29%}
  .standings .table-person {gap:6px}
  .standings .table-person .table-place {min-width:12px}
  .standings .table-person .avatar {display:none}
}

/* ============================================================
   ANIME LAYER (2026-11-30): лидерборд — первый экран.
   Наложено поверх базовых стилей; разметку league.js не меняет.
   ============================================================ */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.label-short {
  display: none;
}
.button-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #e0365a, #ff5a7a 55%, #e0365a);
  border-color: #ff8aa0;
  box-shadow:
    0 0 0 1px #ff5a7a40,
    0 6px 26px #ff3d6a55;
}
.button-glow::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #fff8, transparent);
  transform: skewX(-22deg);
  animation: btn-shine 3.6s ease-in-out infinite;
}
@keyframes btn-shine {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

/* --- leaderboard as the first screen --- */
.leaderboard-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 0;
  padding: 64px 0 44px;
  background:
    radial-gradient(ellipse 60% 55% at 82% 8%, #ff3d6a2e, transparent 70%),
    radial-gradient(ellipse 50% 45% at 8% 30%, #5b6cff24, transparent 70%),
    linear-gradient(170deg, #15111d, #0d0e13 60%);
}
.anime-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.speed-lines {
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(
    from 0deg at 78% 12%,
    #ffffff0d 0deg 0.6deg,
    transparent 0.6deg 7deg
  );
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 12%, transparent 12%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 78% 12%, transparent 12%, #000 40%, transparent 85%);
  animation: speed-spin 60s linear infinite alternate;
}
@keyframes speed-spin {
  to {
    transform: rotate(4deg) scale(1.03);
  }
}
.halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ff5a7a33 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
  opacity: 0.8;
}
.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px #ff8aa0);
  animation: twinkle 2.8s ease-in-out infinite;
  opacity: 0;
}
.spark.s1 { top: 14%; right: 18%; }
.spark.s2 { top: 30%; right: 8%; width: 11px; height: 11px; animation-delay: 0.9s; }
.spark.s3 { top: 9%; left: 46%; width: 9px; height: 9px; animation-delay: 1.7s; }
.spark.s4 { top: 46%; left: 4%; width: 12px; height: 12px; animation-delay: 0.4s; filter: drop-shadow(0 0 6px #85c9e8); }
.spark.s5 { top: 22%; right: 34%; width: 8px; height: 8px; animation-delay: 2.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); }
  45% { opacity: 1; transform: scale(1) rotate(45deg); }
}

.board-hero {
  align-items: flex-end;
}
.impact-title {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.impact-line {
  display: block;
  width: fit-content;
  padding-right: 0.12em;
  transform: skewX(-9deg);
  transform-origin: left bottom;
  animation: impact-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.impact-line:first-child {
  color: #fff;
  text-shadow:
    4px 4px 0 #ff3d6a,
    8px 8px 0 #0d0e13;
}
.impact-accent {
  color: transparent;
  background: linear-gradient(100deg, #ff6b8a, #ffd1dc 25%, #ff3d6a 50%, #ff8aa0 75%, #ff6b8a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px #ff3d6a66);
  animation:
    impact-in 0.7s 0.12s cubic-bezier(0.2, 1.4, 0.4, 1) both,
    shimmer 5s 1s linear infinite;
}
@keyframes impact-in {
  from {
    opacity: 0;
    transform: skewX(-9deg) translateX(-60px) scale(1.08);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.board-lead {
  margin-top: 24px;
  max-width: 520px;
  color: #c3bccb;
  font-size: 16px;
  line-height: 1.7;
}
.league-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.league-chips li {
  font-size: 13px;
  color: #ddd3e2;
  padding: 6px 14px;
  border: 1px solid #ffffff1f;
  background: #ffffff08;
  transform: skewX(-12deg);
  border-radius: 4px;
}
.league-chips b {
  color: #ff8aa0;
  margin-right: 3px;
}
.season-track {
  height: 8px;
  border-radius: 99px;
  background: #ffffff10;
  box-shadow: inset 0 0 0 1px #ffffff12;
  overflow: hidden;
}
.season-track span {
  border-radius: 99px;
  background:
    repeating-linear-gradient(-45deg, #ffffff30 0 6px, transparent 6px 12px),
    linear-gradient(90deg, #ff3d6a, #ff8aa0);
  background-size: 17px 17px, 100% 100%;
  box-shadow: 0 0 14px #ff3d6a88;
  animation: bar-move 1.2s linear infinite;
}
@keyframes bar-move {
  to {
    background-position: 17px 0, 0 0;
  }
}

/* --- division tabs as game buttons --- */
.division-tab {
  --gem: #ff8aa0;
  transform: skewX(-12deg);
  border: 1px solid #ffffff14;
  background: #ffffff06;
  padding: 9px 16px;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.division-tab[data-division="ruby"] { --gem: var(--ruby); }
.division-tab[data-division="emerald"] { --gem: var(--emerald); }
.division-tab[data-division="gold"] { --gem: var(--gold); }
.division-tab[data-division="diamond"] { --gem: var(--diamond); }
.division-tab[data-division="platinum"] { --gem: var(--platinum); }
.division-tab:hover {
  transform: skewX(-12deg) translateY(-2px);
  border-color: color-mix(in srgb, var(--gem) 60%, transparent);
}
.division-tab.is-active {
  background: color-mix(in srgb, var(--gem) 22%, #15121b);
  border-color: var(--gem);
  box-shadow: 0 0 18px color-mix(in srgb, var(--gem) 40%, transparent);
}

/* --- podium cards --- */
.player-cards {
  align-items: end;
  gap: 18px;
  padding-top: 18px;
}
.player-card {
  --glow: color-mix(in srgb, var(--gem) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--gem) 38%, #2b2433);
  border-radius: 16px;
  padding: 26px 24px 22px;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, color-mix(in srgb, var(--gem) 22%, transparent), transparent 70%),
    linear-gradient(160deg, #1d1826, #121118 75%);
  box-shadow:
    0 18px 50px #0008,
    inset 0 1px 0 #ffffff14;
  animation: card-rise 0.7s cubic-bezier(0.2, 1.3, 0.4, 1) both;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, #ffffff22 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.8s;
  pointer-events: none;
  z-index: 2;
}
.player-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 40px;
  width: 130px;
  height: 130px;
  background: var(--badge) center / contain no-repeat;
  opacity: 0.22;
  transform: rotate(14deg);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.player-card.ruby { --badge: url("/site/assets/img/badges/ruby.webp"); }
.player-card.emerald { --badge: url("/site/assets/img/badges/emerald.webp"); }
.player-card.gold { --badge: url("/site/assets/img/badges/gold.webp"); }
.player-card.diamond { --badge: url("/site/assets/img/badges/diamond.webp"); }
.player-card.platinum { --badge: url("/site/assets/img/badges/platinum.webp"); }
.player-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  border-color: var(--gem);
  box-shadow:
    0 24px 60px #000a,
    0 0 34px var(--glow);
}
.player-card:hover::before {
  transform: translateX(120%);
}
.player-card:hover::after {
  opacity: 0.4;
  transform: rotate(4deg) scale(1.08);
}
.player-card > * {
  position: relative;
  z-index: 1;
}
.place-tag {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: skewX(-10deg);
  padding: 4px 12px;
  border-radius: 4px;
  background: #ffffff10;
}
.player-card .avatar {
  width: 64px;
  height: 64px;
  border: 2px solid var(--gem);
  box-shadow:
    0 0 0 4px #0d0e13,
    0 0 22px var(--glow);
}
.card-name {
  font-size: 24px;
  font-weight: 800;
}
.card-points strong {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--gem) 70%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sparkline {
  filter: drop-shadow(0 0 6px var(--gem));
}
.sparkline polyline {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 1.4s 0.5s ease-out forwards;
}
@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
  }
}
/* 1st place in the middle and taller */
@media (min-width: 781px) {
  .player-card:nth-child(1) {
    order: 2;
    padding-block: 40px 30px;
    animation-delay: 0.25s;
  }
  .player-card:nth-child(2) {
    order: 1;
    animation-delay: 0.1s;
  }
  .player-card:nth-child(3) {
    order: 3;
    animation-delay: 0.4s;
  }
}
.player-card[data-place="1"] {
  border-width: 2px;
  box-shadow:
    0 24px 70px #000a,
    0 0 0 1px #ffd77a55,
    0 0 46px var(--glow);
}
.player-card[data-place="1"]::before {
  animation: card-sweep 4.5s 1.2s ease-in-out infinite;
}
@keyframes card-sweep {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.player-card[data-place="1"] .place-tag {
  background: linear-gradient(100deg, #ffd77a, #fff3c4, #e4a93c);
  color: #2a1a05;
}
.player-card[data-place="1"] .place-tag::before {
  content: "♛ ";
}
.player-card[data-place="2"] .place-tag {
  background: linear-gradient(100deg, #d9dde6, #f6f7fb, #a9afbd);
  color: #1b1d24;
}
.player-card[data-place="3"] .place-tag {
  background: linear-gradient(100deg, #e0a072, #f7d2b4, #b8703f);
  color: #2a1508;
}

/* --- standings table --- */
.standings {
  border-radius: 16px;
  border-color: #ffffff14;
  background: #111016cc;
  margin-top: 34px;
}
.standings-heading h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.standings tbody tr {
  animation: row-in 0.5s cubic-bezier(0.2, 1, 0.4, 1) both;
}
.standings tbody tr:nth-child(1) { animation-delay: 0.05s; }
.standings tbody tr:nth-child(2) { animation-delay: 0.1s; }
.standings tbody tr:nth-child(3) { animation-delay: 0.15s; }
.standings tbody tr:nth-child(4) { animation-delay: 0.2s; }
.standings tbody tr:nth-child(5) { animation-delay: 0.25s; }
.standings tbody tr:nth-child(6) { animation-delay: 0.3s; }
.standings tbody tr:nth-child(n + 7) { animation-delay: 0.35s; }
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}
.standings .table-person .table-place {
  font-weight: 800;
  font-size: 14px;
  color: #8d8597;
}
.standings tbody tr[data-place="1"] .table-place { color: #ffd77a; text-shadow: 0 0 10px #ffd77a88; }
.standings tbody tr[data-place="2"] .table-place { color: #e6e9f2; }
.standings tbody tr[data-place="3"] .table-place { color: #e9a876; }
.standings tbody tr:is([data-place="1"], [data-place="2"], [data-place="3"]) td:first-child {
  box-shadow: inset 3px 0 0 #ff5a7a;
}
.standings tr:hover td {
  background: #1e1520;
}
.standings .total-cell {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

/* --- gem path with real badges --- */
.gem-path:before {
  height: 3px;
  top: 82px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ruby), var(--emerald), var(--gold), var(--diamond), var(--platinum));
  box-shadow: 0 0 16px #ffffff22;
  opacity: 0.7;
}
.stage-art {
  width: 164px;
  height: 164px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gem) 28%, transparent), transparent 62%);
}
.stage-art img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--gem) 45%, transparent));
  animation: badge-float 4s ease-in-out infinite;
  transition: transform 0.3s;
}
.gem-stage:nth-child(2) .stage-art img { animation-delay: 0.4s; }
.gem-stage:nth-child(3) .stage-art img { animation-delay: 0.8s; }
.gem-stage:nth-child(4) .stage-art img { animation-delay: 1.2s; }
.gem-stage:nth-child(5) .stage-art img { animation-delay: 1.6s; }
.gem-stage:hover .stage-art img {
  transform: scale(1.12) rotate(-6deg);
}
@keyframes badge-float {
  50% {
    translate: 0 -10px;
  }
}
.gem-stage h3 {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: skewX(-8deg);
}
.stage-label {
  font-weight: 800;
}

/* --- about --- */
.about-copy h2 span {
  background: linear-gradient(100deg, #ff6b8a, #ffd1dc 50%, #ff3d6a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-principles article > span {
  border-color: #ff5a7a55;
  background: #ff3d6a12;
}

/* --- mobile --- */
@media (max-width: 780px) {
  .leaderboard-section {
    padding-top: 34px;
  }
  .board-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .season-control select {
    width: 100%;
  }
  .impact-title {
    font-size: clamp(48px, 14vw, 78px);
  }
  .board-lead {
    font-size: 15px;
  }
  .division-filters {
    padding: 4px 2px 8px 8px;
    gap: 8px;
  }
  .player-cards {
    grid-template-columns: 1fr;
  }
  .player-card:nth-child(3) {
    grid-column: auto;
  }
  .gem-path:before {
    width: 3px;
    height: auto;
    left: 51px;
  }
  .stage-art {
    width: 105px;
    height: 105px;
  }
  .stage-art img {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 520px) {
  .label-long {
    display: none;
  }
  .label-short {
    display: inline;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .button-small {
    padding-inline: 13px;
    min-height: 38px;
  }
}
@media (max-width: 360px) {
  .league-brand > span:first-of-type {
    display: none;
  }
}

/* --- avatar = athlete's main profile card (with own crop), bigger on podium --- */
.avatar-frame {
  overflow: hidden;
  padding: 0;
}
.avatar-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.player-card .card-person {
  gap: 18px;
}
.player-card .avatar {
  width: 104px;
  height: 104px;
  font-size: 40px;
  border-width: 3px;
  box-shadow:
    0 0 0 5px #0d0e13,
    0 0 30px var(--glow);
}
.player-card[data-place="1"] .avatar {
  width: 120px;
  height: 120px;
}
.player-card::after {
  top: auto;
  bottom: 70px;
}
.profile-person .avatar {
  width: 96px;
  height: 96px;
}
@media (max-width: 1150px) and (min-width: 781px) {
  .player-card .avatar,
  .player-card[data-place="1"] .avatar {
    width: 84px;
    height: 84px;
  }
}
@media (max-width: 430px) {
  .player-card .avatar,
  .player-card[data-place="1"] .avatar {
    width: 92px;
    height: 92px;
  }
}

/* --- standings as a game ladder (rows are grid cards) --- */
.standings-heading {
  flex-wrap: wrap;
}
.standings-hint {
  order: 3;
  flex-basis: 100%;
  font-size: 13px;
  color: var(--muted);
  margin-top: -6px;
}
.standings .table-scroll {
  max-height: none;
  overflow: visible;
  padding: 0 14px 14px;
}
.standings table.ladder,
.ladder thead,
.ladder tbody {
  display: block;
  width: 100%;
  white-space: normal;
}
.ladder caption {
  display: block;
}
.ladder tr {
  --gem: var(--ruby);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(160px, 260px) 150px;
  align-items: center;
  gap: 14px;
}
.ladder tr.emerald { --gem: var(--emerald); }
.ladder tr.gold { --gem: var(--gold); }
.ladder tr.diamond { --gem: var(--diamond); }
.ladder tr.platinum { --gem: var(--platinum); }
.standings .ladder th,
.standings .ladder td {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  position: static;
  text-align: left;
  box-shadow: none;
}
.ladder thead tr {
  padding: 4px 18px 10px;
}
.standings .ladder th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8597;
}
.standings .ladder th:first-child {
  text-align: center;
}
.ladder tbody {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ladder tbody tr {
  position: relative;
  padding: 12px 18px;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gem) 9%, transparent), transparent 45%),
    #17151d;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.ladder tbody tr::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--gem);
  box-shadow: 0 0 10px var(--gem);
}
.ladder tbody tr:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--gem) 50%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--gem) 18%, transparent);
}
.standings .ladder tr:hover td {
  background: none;
}
/* place shield */
.place-cell {
  display: flex;
  justify-content: center;
}
.place-shield {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  font-weight: 800;
  font-size: 18px;
  color: #d8d0de;
  background: linear-gradient(180deg, #2c2734, #1b1822);
  clip-path: polygon(50% 0, 100% 18%, 100% 68%, 50% 100%, 0 68%, 0 18%);
}
.ladder tr[data-place="1"] .place-shield {
  background: linear-gradient(180deg, #fff1b8, #f2bd4b 55%, #b77a17);
  color: #3a2504;
  filter: drop-shadow(0 0 10px #ffd77a99);
}
.ladder tr[data-place="2"] .place-shield {
  background: linear-gradient(180deg, #ffffff, #c9cfdb 55%, #8d94a3);
  color: #1d2029;
}
.ladder tr[data-place="3"] .place-shield {
  background: linear-gradient(180deg, #ffdcbf, #dc955f 55%, #9a5428);
  color: #2e1606;
}
.ladder tr[data-place="1"] {
  border-color: #ffd77a55;
  background:
    linear-gradient(90deg, #ffd77a1f, transparent 55%),
    #1a171d;
}
/* person */
.ladder .table-person {
  gap: 14px;
  width: 100%;
}
.ladder .table-person .avatar {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gem);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gem) 35%, transparent);
}
.ladder .table-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.ladder .table-name small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ladder .table-name .gem-dot {
  flex-shrink: 0;
}
/* points with power bar */
.standings .ladder .total-cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.points-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.points-value small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.points-bar {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: #ffffff0f;
  overflow: hidden;
}
.points-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gem) 60%, #fff0), var(--gem));
  box-shadow: 0 0 10px var(--gem);
  transform-origin: left;
  animation: bar-grow 0.9s 0.3s cubic-bezier(0.2, 1, 0.4, 1) both;
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
}
/* prize */
.prize-cell {
  text-align: right;
}
.standings .ladder th:last-child {
  text-align: right;
}
.prize-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 800;
  color: #3a2504;
  background: linear-gradient(100deg, #ffe39a, #f2bd4b);
  box-shadow: 0 0 14px #ffd77a55;
  white-space: nowrap;
}
.prize-none {
  color: #5a5363;
}

@media (max-width: 780px) {
  .standings .table-scroll {
    padding: 0 10px 10px;
  }
  .ladder thead {
    display: none;
  }
  .ladder tr {
    grid-template-columns: 40px minmax(0, 1fr) 92px;
    gap: 10px;
  }
  .ladder tbody tr {
    padding: 10px 12px;
  }
  .place-shield {
    width: 36px;
    height: 40px;
    font-size: 15px;
  }
  .standings .ladder .table-person .avatar {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }
  .ladder .table-person {
    gap: 10px;
  }
  .ladder .table-name {
    font-size: 16px;
  }
  .points-value {
    font-size: 20px;
  }
  .prize-cell {
    grid-column: 2 / -1;
    text-align: left;
    padding-left: 50px !important;
  }
  .prize-cell:has(.prize-none) {
    display: none;
  }
  .prize-chip {
    font-size: 12px;
    padding: 4px 10px;
  }
}
@media (max-width: 380px) {
  .standings .ladder .table-person .avatar {
    display: none;
  }
  .prize-cell {
    padding-left: 0 !important;
  }
}
.standings .ladder tbody tr[data-place] td:first-child {
  box-shadow: none;
  background: none;
}
.standings .ladder .prize-cell,
.standings .ladder th:last-child {
  text-align: right;
}
@media (max-width: 780px) {
  .standings .ladder .prize-cell {
    text-align: left;
  }
  .ladder .tourn-count {
    display: none;
  }
}

/* ============================================================
   HUD TOP (2026-11-30): верх лидерборда в стиле ALTERE:GO —
   чёрный фон, золотые акценты, срезанные углы, без красного.
   ============================================================ */
.leaderboard-section {
  --hud-gold: #d8b36a;
  --hud-line: rgba(245, 245, 245, 0.09);
  --hud-line-strong: rgba(245, 245, 245, 0.18);
  --hud-panel: #12141b;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(216, 179, 106, 0.07), transparent 70%),
    linear-gradient(180deg, #0b0c11, #08090d 70%);
  border-top: 1px solid var(--hud-line);
  padding-top: 40px;
}
.hud-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hud-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 520px);
  mask-image: linear-gradient(180deg, #000, transparent 520px);
  opacity: 0.55;
}

/* season panel */
.season-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 20px 24px;
  background: linear-gradient(180deg, #151821, var(--hud-panel));
  clip-path: var(--cut);
  box-shadow: inset 0 0 0 1px var(--hud-line-strong);
  margin-bottom: 22px;
}
.season-panel::before,
.season-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--hud-gold);
  pointer-events: none;
}
.season-panel::before {
  top: 6px;
  right: 6px;
  border-left: 0;
  border-bottom: 0;
}
.season-panel::after {
  bottom: 6px;
  left: 6px;
  border-right: 0;
  border-top: 0;
}
.season-panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hud-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-gold);
}
.hud-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.season-panel select {
  min-width: 210px;
  padding: 10px 40px 10px 14px;
  font-size: 16px;
  font-weight: 600;
  background-color: #0b0c11;
  border: 1px solid var(--hud-line-strong);
  border-radius: 0;
  clip-path: var(--cut-sm);
}
.season-panel select:hover,
.season-panel select:focus-visible {
  border-color: var(--hud-gold);
}
.season-panel .season-meta {
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9296a3;
}
.season-panel #season-remaining {
  color: #f5f5f5;
  font-weight: 600;
}
.season-panel .season-track {
  height: 6px;
  margin: 12px 0 0;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #ffffff14 0 calc(10% - 3px), transparent calc(10% - 3px) 10%);
  box-shadow: none;
  overflow: visible;
}
.season-panel .season-track span {
  position: relative;
  border-radius: 0;
  background: linear-gradient(90deg, #8f7440, var(--hud-gold));
  background-size: auto;
  box-shadow: 0 0 12px rgba(216, 179, 106, 0.45);
  animation: none;
}
.season-panel .season-track span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 6px;
  height: 14px;
  background: #fff3d6;
  box-shadow: 0 0 10px var(--hud-gold);
}

/* division tabs: cut-corner chips, neutral, gem marker */
.board-tools {
  margin-bottom: 28px;
}
.division-filters {
  gap: 6px;
  scrollbar-width: none;
}
.division-filters::-webkit-scrollbar {
  display: none;
}
.division-tab,
.division-tab:hover {
  transform: none;
}
.division-tab {
  position: relative;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background: #12141b;
  color: #9296a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: var(--cut-sm);
  box-shadow: inset 0 0 0 1px var(--hud-line);
}
.division-tab:hover {
  color: #f5f5f5;
  background: #191c25;
  box-shadow: inset 0 0 0 1px var(--hud-line-strong);
}
.division-tab.is-active {
  color: #f5f5f5;
  background: linear-gradient(180deg, #1d2029, #151821);
  box-shadow:
    inset 0 0 0 1px var(--hud-line-strong),
    inset 0 -2px 0 var(--gem, var(--hud-gold));
}
.division-tab[data-division="all"] {
  --gem: var(--hud-gold);
}

/* search: same cut-corner field */
.player-search {
  border: 0;
  border-radius: 0;
  background: #12141b;
  clip-path: var(--cut-sm);
  box-shadow: inset 0 0 0 1px var(--hud-line);
  padding: 10px 14px;
}
.player-search:focus-within {
  box-shadow: inset 0 0 0 1px var(--hud-gold);
}

@media (max-width: 780px) {
  .leaderboard-section {
    padding-top: 22px;
  }
  .season-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }
  .season-panel select {
    width: 100%;
  }
  .season-panel .season-meta {
    font-size: 11px;
  }
  .division-filters {
    width: calc(100% + 20px);
    margin-right: -20px;
    padding: 0 20px 0 0;
  }
}

/* ============================================================
   REGISTRATION = INTERVIEW WITH DZENDEX (как на главной, site/index.html)
   ============================================================ */
.registration-dialog {
  width: min(640px, calc(100% - 24px));
  border-radius: 0;
  border: 1px solid rgba(245, 245, 245, 0.18);
  background: #12141b;
}
.registration-dialog .overline {
  color: #d8b36a;
}
.dz-form {
  display: grid;
  gap: 16px;
}
.dz-form > *,
.dz-step > * {
  min-width: 0;
}
.dz-progress {
  height: 3px;
  background: rgba(245, 245, 245, 0.09);
}
.dz-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: #d8b36a;
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.dz-counter {
  margin-top: -6px;
  color: #9296a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dz-step {
  display: grid;
  gap: 14px;
}
.dz-step[hidden] {
  display: none;
}
.dz-step:not([hidden]) {
  animation: dz-step-in 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
@keyframes dz-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.dz-say {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.dz-say__face {
  width: 56px;
  height: 56px;
  border: 1px solid #d8b36a;
  border-radius: 50%;
  object-fit: cover;
  background: #191c25;
}
.dz-say__bubble {
  padding: 12px 14px;
  border: 1px solid rgba(245, 245, 245, 0.18);
  background: rgba(8, 9, 13, 0.72);
}
.dz-say__bubble p {
  font-size: 15px;
  line-height: 1.5;
}
.dz-say__bubble p + p {
  margin-top: 8px;
}
.dz-say__name {
  display: block;
  margin-bottom: 4px;
  color: #d8b36a;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.dz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #cec0ce;
}
.dz-field input,
.dz-field select {
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  background-color: #100f14;
  border: 1px solid #4a3b48;
  border-radius: 6px;
  font-size: 16px;
}
/* lines for self / for a parent */
.dz-form[data-registrant="guardian"] .only-self,
.dz-form:not([data-registrant="guardian"]) .only-guardian {
  display: none;
}
.dz-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.dz-nav .button-primary {
  flex: 1;
}
.dz-form[data-dz-first] [data-dz-back] {
  display: none;
}
.dz-form[data-dz-last] [data-dz-next],
.dz-form:not([data-dz-last]) [type="submit"] {
  display: none;
}
.registration-dialog .form-status {
  margin: 0;
}
.registration-dialog .form-status:empty {
  display: none;
}
.registration-dialog .phrase-box {
  margin: 0;
  border-radius: 0;
  border-color: #d8b36a;
  background: rgba(216, 179, 106, 0.12);
}
.registration-dialog .phrase-box output {
  color: #d8b36a;
  font-weight: 700;
}
.registration-dialog .check-label {
  margin: 0;
}

/* DZENDEX video behind the dialog */
.apply-bg {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.apply-bg[hidden] {
  display: none;
}
.apply-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.apply-bg__main {
  object-fit: contain;
}
.apply-bg__fill {
  object-fit: cover;
  filter: blur(40px) brightness(0.45) saturate(1.2);
  transform: scale(1.15);
}
@media (max-aspect-ratio: 3/4) {
  .apply-bg__main {
    object-fit: cover;
  }
  .apply-bg__fill {
    display: none;
  }
}
.registration-dialog.has-video-bg::backdrop {
  background: rgba(4, 5, 8, 0.35);
  backdrop-filter: none;
  transition: background 0.35s;
}
.registration-dialog.has-video-bg {
  background: rgba(14, 16, 22, 0.88);
  backdrop-filter: blur(10px);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.registration-dialog.is-peek {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.registration-dialog.is-peek::backdrop {
  background: transparent;
}
@media (max-width: 430px) {
  .dz-say {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .dz-say__face {
    width: 44px;
    height: 44px;
  }
  .dz-say__bubble p {
    font-size: 14px;
  }
}
