:root {
  color-scheme: dark;
  --bg: #101419;
  --panel: #181f26;
  --panel-soft: #202a33;
  --text: #edf3f7;
  --muted: #9aabb7;
  --line: #31404c;
  --accent: #e5b654;
  --accent-strong: #f3cf73;
  --ticket-highlight: #d8ff2f;
  --ticket-highlight-ink: #151b00;
  --achievement-bronze-a: rgba(196, 100, 44, 0.86);
  --achievement-bronze-b: rgba(98, 38, 14, 0.64);
  --achievement-silver-a: rgba(219, 229, 239, 0.62);
  --achievement-silver-b: rgba(112, 126, 140, 0.38);
  --achievement-gold-a: rgba(255, 223, 84, 0.92);
  --achievement-gold-b: rgba(173, 113, 10, 0.62);
  --danger: #ef7d66;
  --top-menu-height: 58px;
  --content-width: 90%;
  --mobile-top-menu-height: 52px;
}

html,
body {
  scrollbar-color: rgba(229, 182, 84, 0.72) #111820;
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #111820;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 2px solid #111820;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: #111820;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(229, 182, 84, 0.12), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(76, 164, 179, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Barlow, Arial, sans-serif;
}

html.modal-open,
html.modal-open body {
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

.top-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--top-menu-height);
  border-bottom: 1px solid var(--line);
  background: #05080b;
  box-shadow: 0 1px 0 rgba(243, 207, 115, 0.12);
}

.top-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: rgba(243, 207, 115, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.top-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.top-menu-logos {
  position: absolute;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-menu-logos img {
  display: block;
  width: auto;
  max-width: 78px;
  height: 34px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-dock {
  position: relative;
  display: flex;
  align-items: center;
}

.language-globe-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px 0 10px;
  border-color: rgba(243, 207, 115, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(25, 44, 57, 0.96), rgba(9, 14, 18, 0.96)),
    rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.language-globe-button:hover {
  background:
    linear-gradient(135deg, rgba(30, 55, 71, 0.98), rgba(11, 17, 22, 0.98)),
    rgba(255, 255, 255, 0.04);
}

.language-globe-button:focus-visible {
  outline: 2px solid rgba(243, 207, 115, 0.7);
  outline-offset: 3px;
}

.language-globe {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  animation: language-globe-float 3.2s ease-in-out infinite;
}

.language-globe-core {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(174, 232, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(107, 223, 255, 0.95), rgba(27, 124, 170, 0.94) 48%, rgba(7, 36, 62, 0.98) 100%);
  overflow: hidden;
  box-shadow:
    inset -6px -8px 12px rgba(5, 20, 36, 0.42),
    0 0 12px rgba(67, 190, 228, 0.25);
}

.language-globe-core::before,
.language-globe-core::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(145, 255, 164, 0.78);
  filter: drop-shadow(0 0 3px rgba(145, 255, 164, 0.22));
}

.language-globe-core::before {
  top: 5px;
  left: 4px;
  width: 8px;
  height: 5px;
  transform: rotate(-18deg);
  box-shadow: 5px 7px 0 -1px rgba(145, 255, 164, 0.72);
}

.language-globe-core::after {
  right: 4px;
  bottom: 5px;
  width: 7px;
  height: 4px;
  transform: rotate(26deg);
}

.language-globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: 0.75;
}

.language-globe-ring-a {
  border-color: rgba(174, 232, 255, 0.4);
  transform: rotate(18deg) scaleX(0.48);
}

.language-globe-ring-b {
  border-color: rgba(174, 232, 255, 0.28);
  transform: rotate(90deg) scaleX(0.78);
}

.language-globe-ring-c {
  border-top-color: rgba(255, 220, 125, 0.5);
  border-bottom-color: rgba(255, 220, 125, 0.18);
  transform: rotate(-12deg) scaleY(0.58);
}

.language-orbit {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 46px;
  height: 14px;
  margin-top: -7px;
  pointer-events: none;
  overflow: hidden;
}

.language-orbit-en {
  animation: language-flag-sweep 4.8s linear infinite;
}

.language-orbit-es {
  animation: language-flag-sweep 4.8s linear infinite 2.4s;
}

.language-orbit .language-flag {
  position: absolute;
  top: 1px;
  right: -18px;
}

.language-flag {
  display: inline-block;
  width: 16px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.language-flag-en {
  background:
    linear-gradient(90deg, transparent 0 36%, #f7f7f7 36% 44%, transparent 44% 100%),
    linear-gradient(180deg, transparent 0 38%, #f7f7f7 38% 46%, transparent 46% 100%),
    linear-gradient(90deg, transparent 0 38%, #ba2532 38% 42%, transparent 42% 100%),
    linear-gradient(180deg, transparent 0 40%, #ba2532 40% 44%, transparent 44% 100%),
    #21468b;
}

.language-flag-es {
  background: linear-gradient(180deg, #b31e2d 0 25%, #f0c539 25% 75%, #b31e2d 75% 100%);
}

.language-flag-fr {
  background: linear-gradient(90deg, #244aa5 0 33.333%, #f7f7f7 33.333% 66.666%, #c42d3f 66.666% 100%);
}

.language-flag-de {
  background: linear-gradient(180deg, #111111 0 33.333%, #b11e2c 33.333% 66.666%, #efc54a 66.666% 100%);
}

.language-flag-it {
  background: linear-gradient(90deg, #1f8b4c 0 33.333%, #f7f7f7 33.333% 66.666%, #c53a3a 66.666% 100%);
}

.language-code {
  min-width: 26px;
  color: #f7ebc8;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 45;
  display: grid;
  gap: 6px;
  min-width: 164px;
  padding: 8px;
  border: 1px solid rgba(243, 207, 115, 0.2);
  border-radius: 12px;
  background: rgba(7, 11, 15, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.language-menu[hidden] {
  display: none;
}

.language-menu-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-color: rgba(243, 207, 115, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.language-menu-option span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu-option:hover {
  background: rgba(229, 182, 84, 0.12);
}

.language-menu-option.is-active {
  border-color: rgba(243, 207, 115, 0.32);
  background:
    linear-gradient(90deg, rgba(229, 182, 84, 0.18), rgba(229, 182, 84, 0.04)),
    rgba(255, 255, 255, 0.03);
  color: var(--accent-strong);
}

.language-menu-code {
  color: var(--muted);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-dock.is-open .language-globe-button {
  border-color: rgba(243, 207, 115, 0.38);
}

.refresh-countdown {
  position: absolute;
  right: 22px;
  max-width: 26vw;
  overflow: hidden;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-menu-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  min-height: var(--top-menu-height);
  padding: 0 22px;
}

.top-menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.top-menu-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.top-menu-link {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: min(18vw, 220px);
  min-height: 38px;
  padding: 0 18px;
  border-bottom: 2px solid transparent;
  color: var(--accent);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-menu-dropdown-link {
  padding-right: 12px;
}

.top-menu-dropdown-trigger {
  flex: 0 0 auto;
  min-width: 38px;
  max-width: 38px;
  padding: 0 12px 0 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.top-menu-dropdown-trigger:hover {
  background: transparent;
}

.top-menu-dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 140ms ease;
}

.top-menu-dropdown.is-open .top-menu-dropdown-caret,
.top-menu-dropdown.is-active .top-menu-dropdown-caret,
.top-menu-dropdown-trigger.is-active .top-menu-dropdown-caret {
  transform: translateY(2px) rotate(-135deg);
}

.top-menu-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(243, 207, 115, 0.18);
  border-radius: 10px;
  background: rgba(8, 12, 16, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.top-menu-dropdown.is-open .top-menu-submenu {
  display: flex;
}

.top-menu-submenu-link {
  justify-content: flex-start;
  max-width: none;
  border: 1px solid transparent;
  border-radius: 8px;
  border-bottom-width: 1px;
  background: rgba(255, 255, 255, 0.02);
}

.top-menu-submenu-link:hover {
  border-bottom-color: transparent;
  background: rgba(229, 182, 84, 0.08);
}

.top-menu-link-icon {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid rgba(243, 207, 115, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  line-height: 1;
}

.top-menu-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.top-menu-link-icon:hover {
  border-bottom-color: transparent;
  border-color: rgba(243, 207, 115, 0.34);
  background: rgba(229, 182, 84, 0.08);
}

.top-menu-link.is-active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.statistics-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - var(--top-menu-height));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Sora, Barlow, Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

.filter-control {
  display: grid;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1116;
  color: var(--text);
  padding: 0 12px;
}

button {
  min-height: 42px;
  border: 1px solid rgba(243, 207, 115, 0.36);
  border-radius: 6px;
  background: var(--accent);
  color: #15110a;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.stats-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--top-menu-height));
  min-height: calc(100vh - var(--top-menu-height));
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(rgba(82, 105, 121, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 105, 121, 0.055) 1px, transparent 1px),
    rgba(24, 31, 38, 0.82);
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
}

.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 18px;
  overflow: hidden;
  font-size: clamp(0.82rem, 0.7rem + 0.35vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.math-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
  overflow: hidden;
  font-size: clamp(0.82rem, 0.7rem + 0.35vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.math-button:disabled {
  border-color: rgba(243, 207, 115, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 243, 247, 0.42);
  cursor: not-allowed;
}

.math-button:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-actions {
  display: inline-flex;
  align-self: end;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:disabled {
  border-color: rgba(243, 207, 115, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 243, 247, 0.42);
  cursor: not-allowed;
}

.icon-button:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
}

.icon-button:not(:disabled):hover {
  background: var(--accent-strong);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
  width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0 8px;
}

.stats-panel-centered-filters .filters-grid {
  width: var(--content-width);
  max-width: var(--content-width);
  grid-template-columns: repeat(3, minmax(220px, 1fr)) auto;
}

.stats-panel-centered-filters .filter-actions {
  justify-self: start;
}

.filter-control {
  position: relative;
}

.filter-control > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111820;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  scrollbar-color: rgba(229, 182, 84, 0.72) #111820;
  scrollbar-width: thin;
}

.filter-options::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.filter-options::-webkit-scrollbar-track {
  background: #111820;
}

.filter-options::-webkit-scrollbar-thumb {
  border: 2px solid #111820;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.filter-options::-webkit-scrollbar-corner {
  background: #111820;
}

.filter-options button {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-options button:hover {
  background: var(--panel-soft);
}

.coach-ticket-notice,
.status-line {
  width: var(--content-width);
  min-height: 24px;
  margin: 0 auto;
  padding: 8px 0 18px;
}

.coach-ticket-notice {
  color: var(--ticket-highlight);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.coach-ticket-notice[hidden],
.status-line[hidden] {
  display: none;
}

.coach-ticket-notice mark {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(216, 255, 47, 0.88);
  border-radius: 4px;
  background: transparent;
  color: var(--ticket-highlight);
  text-transform: none;
}

.status-line {
  color: var(--muted);
}

.status-line.is-error {
  color: var(--danger);
}

.coach-achievements {
  width: var(--content-width);
  margin: 0 auto 16px;
}

.coach-achievements[hidden] {
  display: none;
}

.coach-achievements-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.coach-achievements-header h2 {
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-achievements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.achievement-card {
  display: inline-grid;
  grid-template-columns: 34px 0fr;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 50px;
  height: 50px;
  min-width: 50px;
  max-width: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 0;
  border: 1px solid rgba(243, 207, 115, 0.16);
  border-radius: 6px;
  background: rgba(9, 13, 18, 0.68);
  cursor: pointer;
  overflow: hidden;
  transition:
    width 180ms ease,
    max-width 180ms ease,
    grid-template-columns 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.achievement-card[aria-expanded="true"] {
  grid-template-columns: 34px minmax(0, 1fr);
  justify-content: start;
  gap: 6px;
  width: 238px;
  height: 50px;
  max-width: 238px;
  max-height: 50px;
  padding: 5px;
  border-color: rgba(243, 207, 115, 0.38);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.achievement-card:focus-visible {
  outline: 2px solid rgba(243, 207, 115, 0.7);
  outline-offset: 2px;
}

.achievement-card-bronze {
  background:
    linear-gradient(135deg, var(--achievement-bronze-a), rgba(246, 168, 96, 0.42) 34%, var(--achievement-bronze-b) 76%),
    rgba(9, 13, 18, 0.72);
  border-color: rgba(201, 110, 54, 0.5);
}

.achievement-card-silver {
  background:
    linear-gradient(135deg, var(--achievement-silver-a), rgba(242, 246, 250, 0.3) 34%, var(--achievement-silver-b) 76%),
    rgba(9, 13, 18, 0.72);
}

.achievement-card-gold {
  background:
    linear-gradient(135deg, var(--achievement-gold-a), rgba(255, 243, 157, 0.5) 34%, var(--achievement-gold-b) 76%),
    rgba(9, 13, 18, 0.72);
  border-color: rgba(255, 217, 92, 0.62);
}

.achievement-icon-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 207, 115, 0.22);
  border-radius: 6px;
  background: rgba(7, 10, 14, 0.8);
  overflow: hidden;
}

.achievement-icon-shell img,
.achievement-icon-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.achievement-copy {
  overflow: hidden;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  transition:
    max-width 180ms ease,
    opacity 140ms ease;
}

.achievement-card[aria-expanded="true"] .achievement-copy {
  max-width: 176px;
  opacity: 1;
}

.achievement-name {
  overflow: hidden;
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
}

.achievement-progress {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.coach-name-with-ticket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.floating-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(243, 207, 115, 0.26);
  border-radius: 8px;
  background: rgba(7, 10, 14, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  color: #f1f5f7;
  font-family: Barlow, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}

.floating-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  width: 12px;
  height: 12px;
  background: rgba(7, 10, 14, 0.98);
  border-right: 1px solid rgba(243, 207, 115, 0.26);
  border-bottom: 1px solid rgba(243, 207, 115, 0.26);
  transform: translateX(-50%) rotate(45deg);
}

.floating-tooltip[data-placement="top"]::after {
  bottom: -7px;
}

.floating-tooltip[data-placement="bottom"]::after {
  top: -7px;
  transform: translateX(-50%) rotate(225deg);
}

@keyframes language-globe-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes language-orbit-spin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-48px);
  }
}

@keyframes language-orbit-spin-reverse {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-48px);
  }
}

@keyframes language-flag-sweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translateX(-48px);
    opacity: 0;
  }
}

.table-wrap {
  width: var(--content-width);
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  overflow: auto;
  scrollbar-color: rgba(229, 182, 84, 0.72) #111820;
  scrollbar-width: thin;
}

.wc-tickets-view {
  width: var(--content-width);
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 16px;
  scrollbar-color: rgba(229, 182, 84, 0.72) #111820;
  scrollbar-width: thin;
}

.wc-tickets-section {
  border: 1px solid rgba(243, 207, 115, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.stats-panel.stats-panel-has-team-inline-detail {
  overflow: hidden;
}

.stats-panel.stats-panel-has-team-inline-detail #statistics-table-wrap {
  display: none;
}

.wc-tickets-section-title {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.wc-tickets-table {
  width: 100%;
  min-width: 420px;
}

.wc-tickets-table-wrap {
  max-width: 100%;
  overflow: auto;
  max-height: 340px;
  scrollbar-color: rgba(229, 182, 84, 0.72) #111820;
  scrollbar-width: thin;
}

.wc-tickets-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #182029;
}

.wc-tickets-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.wc-tickets-table-wrap::-webkit-scrollbar-track {
  background: #111820;
}

.wc-tickets-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #111820;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.wc-tickets-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.wc-tickets-table-wrap::-webkit-scrollbar-corner {
  background: #111820;
}

.wc-tickets-empty-row td {
  color: var(--muted);
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #111820;
}

.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #111820;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.table-wrap::-webkit-scrollbar-corner {
  background: #111820;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  margin: auto 0 0;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: #05080b;
  box-shadow: 0 -1px 0 rgba(243, 207, 115, 0.08);
}

.site-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(100%, var(--content-width));
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer-link:hover {
  background: transparent;
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.site-footer-link:focus-visible {
  outline: 2px solid rgba(243, 207, 115, 0.7);
  outline-offset: 3px;
}

.team-detail-body {
  overflow: auto;
}

.team-detail-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - var(--top-menu-height));
}

.team-detail-panel {
  height: calc(100vh - var(--top-menu-height));
  min-height: calc(100vh - var(--top-menu-height));
}

.team-detail-content {
  width: var(--content-width);
  margin: 0 auto;
  padding: 22px 0 18px;
}

.team-detail-top-nav {
  padding-right: 180px;
}

.team-detail-top-kicker {
  max-width: 180px;
  color: var(--accent-strong);
}

.team-detail-header {
  margin-bottom: 16px;
}

.team-detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.team-detail-title-copy {
  min-width: 0;
  text-align: center;
}

.team-detail-title {
  max-width: none;
}

.team-detail-status {
  width: 100%;
  padding-bottom: 0;
}

.team-detail-summary {
  margin-bottom: 18px;
}

.team-detail-meta,
.team-detail-coach-card,
.team-detail-roster {
  border: 1px solid rgba(243, 207, 115, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.team-detail-meta {
  padding: 12px;
}

.team-detail-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.team-detail-card,
.team-detail-coach-card {
  padding: 10px 12px;
}

.team-detail-card {
  border: 1px solid rgba(243, 207, 115, 0.12);
  border-radius: 10px;
  background: rgba(8, 12, 16, 0.64);
}

.team-detail-card-label {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-detail-card-value,
.team-detail-coach-name {
  margin: 0;
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.team-detail-coach-card {
  align-self: start;
}

.team-detail-roster {
  padding: 16px;
}

.team-detail-roster-header {
  margin-bottom: 12px;
}

.team-detail-table-wrap {
  width: 100%;
  margin: 0;
  max-height: none;
}

.team-detail-table {
  min-width: 1120px;
}

.team-detail-sos-cell {
  min-width: 170px;
  vertical-align: top;
  white-space: normal;
}

.team-detail-sos-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.team-detail-sos-panel {
  display: grid;
  gap: 8px;
}

.team-detail-sos-modal-panel {
  width: min(680px, 100%);
}

.team-detail-sos-dialog-header {
  align-items: center;
}

.team-detail-sos-dialog-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-detail-sos-dialog-title {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-detail-sos-help-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(243, 207, 115, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-detail-sos-help-button:hover {
  background: rgba(229, 182, 84, 0.12);
}

.team-detail-sos-help-button[aria-pressed="true"] {
  border-color: rgba(243, 207, 115, 0.42);
  background: rgba(229, 182, 84, 0.16);
}

.team-detail-sos-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.team-detail-sos-stat {
  display: inline-grid;
  gap: 3px;
  min-width: 58px;
  padding: 7px 9px;
  border: 1px solid rgba(243, 207, 115, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.team-detail-sos-stat-label {
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.team-detail-sos-stat-value {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.team-detail-sos-help {
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(243, 207, 115, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.team-detail-sos-help-title {
  margin: 0 0 10px;
  color: #f5e5b5;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.96rem;
}

.team-detail-sos-help-copy {
  display: grid;
  gap: 8px;
}

.team-detail-sos-help-copy p {
  margin: 0;
  color: #d9e2e8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.team-detail-sos-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.team-detail-sos-notice {
  margin: 0;
  color: #f5e5b5;
  font-size: 0.76rem;
  line-height: 1.35;
}

.team-detail-sos-list {
  display: grid;
  gap: 6px;
}

.team-detail-sos-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.team-detail-sos-rank,
.team-detail-sos-value {
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.team-detail-sos-label {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.team-detail-sos-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.team-detail-sos-state-error {
  color: var(--danger);
}

.team-detail-sos-dialog .modal-body {
  padding-top: 18px;
}

.team-detail-player-name {
  color: var(--text);
  font-weight: 700;
}

.team-detail-player-type {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.team-detail-player-row-mng td {
  background: rgba(105, 28, 42, 0.48);
}

.team-inline-detail {
  width: var(--content-width);
  margin: 0 auto 18px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.team-inline-detail[hidden] {
  display: none;
}

.team-inline-detail-status {
  width: 100%;
  padding: 4px 0 12px;
}

.team-inline-detail-block {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.team-inline-detail-block:last-child {
  margin-bottom: 0;
}

.team-inline-detail-meta {
  padding: 10px;
  border-color: rgba(243, 207, 115, 0.12);
  background: transparent;
  box-shadow: none;
}

.team-inline-detail-card-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.team-inline-detail .team-detail-roster {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border-color: rgba(243, 207, 115, 0.12);
  background: transparent;
  box-shadow: none;
}

.team-inline-detail .team-detail-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.team-inline-detail .team-detail-card {
  padding: 8px 10px;
  background: transparent;
}

.team-inline-detail .team-detail-card-label {
  margin-bottom: 4px;
  font-size: 0.64rem;
}

.team-inline-detail .team-detail-card-value {
  font-size: 0.88rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  isolation: isolate;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

tbody td.is-selectable {
  cursor: pointer;
}

tbody td.is-selectable:hover {
  background: rgba(229, 182, 84, 0.08);
}

.ladder-truncation-row td {
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  color: #f5e5b5;
  font-style: italic;
  background: rgba(229, 182, 84, 0.08);
}

.qualified-group-row td:first-child {
  border-left: 4px solid rgba(216, 255, 47, 0.98);
}

.qualified-group-row td:last-child {
  border-right: 4px solid rgba(216, 255, 47, 0.98);
}

.qualified-group-start-row td {
  border-top: 4px solid rgba(216, 255, 47, 0.98);
}

.qualified-visible-start-row td {
  border-top: 4px solid rgba(216, 255, 47, 0.98);
}

.qualified-cutoff-row td {
  border-bottom: 4px solid rgba(216, 255, 47, 0.98);
  box-shadow: inset 0 -1px 0 rgba(250, 255, 170, 0.95);
}

.qualified-visible-end-row td {
  border-bottom: 4px solid rgba(216, 255, 47, 0.98);
  box-shadow: inset 0 -1px 0 rgba(250, 255, 170, 0.95);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.62);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(520px, 100%);
  max-height: min(680px, calc(100vh - 64px));
  overflow: auto;
  border: 1px solid rgba(243, 207, 115, 0.3);
  border-radius: 8px;
  background: #080c10;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  scrollbar-color: rgba(229, 182, 84, 0.72) #111820;
  scrollbar-width: thin;
}

.modal-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal-panel::-webkit-scrollbar-track {
  background: #111820;
}

.modal-panel::-webkit-scrollbar-thumb {
  border: 2px solid #111820;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.modal-panel::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.modal-panel::-webkit-scrollbar-corner {
  background: #111820;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #080c10;
}

.modal-close-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: rgba(243, 207, 115, 0.24);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.modal-body {
  padding: 16px 20px 20px;
}

.guide-dialog {
  z-index: 60;
}

.legal-panel {
  width: min(960px, 100%);
}

.guide-panel {
  display: flex;
  flex-direction: column;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
}

.guide-header {
  align-items: flex-start;
}

.guide-kicker {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
}

.legal-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.guide-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.06), transparent 24%),
    rgba(15, 20, 26, 0.92);
  overflow: auto;
}

.guide-nav-group {
  margin: 4px 0 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-nav-item {
  width: 100%;
  min-height: 42px;
  border-color: rgba(243, 207, 115, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  overflow: hidden;
  font-size: clamp(0.84rem, 0.78rem + 0.2vw, 0.95rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-nav-item.is-active {
  border-color: rgba(243, 207, 115, 0.34);
  background:
    linear-gradient(90deg, rgba(229, 182, 84, 0.18), rgba(229, 182, 84, 0.04)),
    rgba(255, 255, 255, 0.03);
  color: var(--accent-strong);
}

.guide-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 24px;
}

.legal-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 34px 42px;
}

.guide-article {
  max-width: 640px;
}

.legal-article {
  max-width: none;
  width: 100%;
}

.legal-updated {
  color: #f5e5b5;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-link {
  color: #f0c44e;
  font-weight: 700;
  text-decoration: none;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: #ffe083;
  text-decoration: underline;
}

.guide-article h3 {
  margin: 0 0 14px;
  color: #f5e5b5;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.guide-article p {
  margin: 0 0 14px;
  color: #d9e2e8;
  font-size: 1rem;
  line-height: 1.55;
}

.guide-achievement-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.guide-achievement-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(243, 207, 115, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.guide-achievement-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(243, 207, 115, 0.18);
  border-radius: 10px;
  background: rgba(7, 10, 14, 0.82);
  overflow: hidden;
}

.guide-achievement-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-achievement-fallback-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(229, 182, 84, 0.18);
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.guide-achievement-copy {
  min-width: 0;
}

.guide-achievement-copy h4 {
  margin: 0 0 6px;
  color: #f5e5b5;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-achievement-copy p {
  margin: 0;
  color: #d9e2e8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.guide-achievement-tiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.guide-achievement-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(243, 207, 115, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-achievement-tier strong {
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-achievement-tier-bronze {
  background: rgba(196, 100, 44, 0.18);
  color: #f1c193;
}

.guide-achievement-tier-silver {
  background: rgba(219, 229, 239, 0.14);
  color: #e8edf2;
}

.guide-achievement-tier-gold {
  background: rgba(255, 223, 84, 0.16);
  color: #ffe08a;
}

.math-panel {
  width: min(1040px, 100%);
}

.math-content {
  display: block;
  min-height: 0;
  max-height: calc(100vh - 150px);
  padding-bottom: 30px;
  overflow-y: auto;
  overflow-x: hidden;
}

.math-article {
  max-width: none;
}

.math-summary-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.math-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 15px;
  border: 1px solid rgba(243, 207, 115, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  text-align: center;
}

.math-summary-label {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: clamp(0.68rem, 0.64rem + 0.18vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.math-summary-value {
  margin: 0;
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: clamp(0.9rem, 0.82rem + 0.35vw, 1.05rem);
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.math-section-block {
  margin-top: 6px;
}

.math-block-title {
  margin: 0 0 12px;
  color: #f5e5b5;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1.05rem;
}

.math-table-wrap {
  width: 100%;
  margin: 0;
  padding-bottom: 14px;
  max-height: 420px;
  min-height: 0;
}

.math-table {
  min-width: 100%;
}

.math-tiering-copy {
  margin: 0 0 12px;
  color: #d9e2e8;
  font-size: 0.95rem;
  line-height: 1.55;
}

.math-tiering-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.math-tiering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.math-tier-card,
.math-tier-side-card {
  min-height: 180px;
  padding: 16px;
  border: 1px solid rgba(243, 207, 115, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.math-tier-card-header {
  margin-bottom: 14px;
}

.math-tier-card-title {
  margin: 0 0 4px;
  color: #f5e5b5;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1rem;
}

.math-tier-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.math-tier-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 207, 115, 0.16);
  border-radius: 10px;
  background: rgba(8, 12, 16, 0.68);
}

.math-tier-chip-muted {
  border-color: rgba(154, 171, 183, 0.18);
}

.math-tier-chip-name {
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.math-tier-chip-meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.math-tier-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-empty {
  margin: 0;
  color: var(--muted);
}

.scoring-dialog-table th,
.scoring-dialog-table td {
  padding: 10px 12px;
}

.scoring-dialog-table th:last-child,
.scoring-dialog-table td:last-child {
  text-align: right;
}

.formula {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.84rem;
  white-space: nowrap;
}

.fraction {
  display: inline-grid;
  gap: 3px;
  text-align: center;
  vertical-align: middle;
}

.fraction span:first-child {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--text);
}

.fraction span:last-child {
  font-size: 0.78rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #121a22;
  background-clip: padding-box;
  box-shadow: 0 1px 0 rgba(49, 64, 76, 0.95);
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
}

th[data-sort-key] {
  cursor: pointer;
}

.wbb-standings-export-root {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 652px;
  opacity: 0.01;
  pointer-events: none;
}

.wbb-standings-canvas {
  position: relative;
  width: 652px;
  overflow: hidden;
  border: 1px solid rgba(226, 201, 127, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 78px 46px at 42px 36px, rgba(31, 197, 238, 0.42), transparent 70%),
    linear-gradient(180deg, transparent 0 50%, rgba(151, 18, 26, 0.34) 78%, rgba(151, 18, 26, 0.46) 100%),
    radial-gradient(ellipse 58px 58px at 619px 37px, rgba(77, 204, 82, 0.4), transparent 70%),
    linear-gradient(180deg, transparent 0 10%, rgba(18, 104, 48, 0.08) 30%, rgba(18, 104, 48, 0.34) 100%),
    linear-gradient(180deg, #160e0f 0 72px, #111317 190px, #101317 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.wbb-standings-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60px 34px at 39px 37px, rgba(43, 207, 244, 0.5), transparent 75%),
    linear-gradient(180deg, transparent 0 50%, rgba(153, 17, 24, 0.14) 66%, rgba(153, 17, 24, 0.52) 100%),
    radial-gradient(ellipse 46px 46px at 619px 37px, rgba(99, 226, 96, 0.48), transparent 76%),
    linear-gradient(180deg, transparent 0 10%, rgba(20, 126, 57, 0.1) 32%, rgba(20, 126, 57, 0.4) 100%),
    linear-gradient(90deg, transparent 0 90%, rgba(17, 102, 48, 0.18) 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 42px);
  pointer-events: none;
}

.wbb-standings-frame {
  position: relative;
  z-index: 1;
  padding: 17px 15px 18px;
}

.wbb-standings-brand-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 6px;
}

.wbb-standings-logo {
  position: relative;
  z-index: 4;
  display: block;
  width: 52px;
  height: 38px;
  object-position: center;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(45, 194, 231, 0.28)) drop-shadow(0 0 12px rgba(234, 39, 52, 0.28));
}

.wbb-standings-logo-cyanide {
  justify-self: start;
  object-position: left center;
}

.wbb-standings-logo-slitherine {
  justify-self: end;
  width: 32px;
  height: 36px;
  object-fit: cover;
  object-position: right top;
  filter: drop-shadow(0 0 12px rgba(76, 209, 91, 0.42));
}

.wbb-standings-brand,
.wbb-standings-title {
  text-align: center;
  font-family: Sora, Barlow, Arial, sans-serif;
  text-transform: uppercase;
}

.wbb-standings-brand {
  position: relative;
  z-index: 4;
  color: #dce7f7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.21em;
  line-height: 1.2;
  padding-top: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.wbb-standings-title {
  margin-top: 0;
  padding: 13px 18px 14px;
  border: 1px solid rgba(220, 165, 84, 0.34);
  border-radius: 8px;
  background: rgba(74, 53, 40, 0.86);
  color: #f3deb0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.wbb-standings-podium {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.wbb-standings-podium-row,
.wbb-standings-list-row {
  display: grid;
  grid-template-columns: 64px 1fr 116px;
  align-items: center;
  gap: 12px;
}

.wbb-standings-podium-row {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(137, 47, 42, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(125, 22, 24, 0.42), rgba(11, 16, 21, 0.94) 18%, rgba(11, 16, 21, 0.94) 100%),
    #101419;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(119, 20, 25, 0.34);
}

.wbb-standings-podium-row.is-first {
  grid-template-columns: 66px 1fr 124px;
  min-height: 78px;
  padding: 10px 12px;
}

.wbb-standings-podium-row.is-second {
  grid-template-columns: 60px 1fr 118px;
  min-height: 64px;
  padding: 10px;
}

.wbb-standings-podium-row.is-third {
  grid-template-columns: 54px 1fr 104px;
  min-height: 48px;
  padding: 8px 9px;
}

.wbb-standings-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  border: 1px solid rgba(216, 183, 98, 0.42);
  border-radius: 7px;
  background: rgba(11, 13, 16, 0.78);
  color: #f8d88b;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.wbb-standings-podium-row.is-first .wbb-standings-rank-badge {
  width: 58px;
  height: 52px;
}

.wbb-standings-podium-row.is-second .wbb-standings-rank-badge {
  width: 54px;
  height: 48px;
  font-size: 25px;
}

.wbb-standings-podium-row.is-third .wbb-standings-rank-badge {
  width: 48px;
  height: 38px;
  font-size: 20px;
}

.wbb-standings-rank-badge.is-silver {
  color: #d8deeb;
}

.wbb-standings-rank-badge.is-bronze {
  color: #e3b274;
}

.wbb-standings-coach {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbb-standings-podium-row.is-second .wbb-standings-coach {
  font-size: 24px;
}

.wbb-standings-podium-row.is-third .wbb-standings-coach {
  font-size: 20px;
}

.wbb-standings-points,
.wbb-standings-list-points {
  color: #f6d179;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: right;
}

.wbb-standings-podium-row.is-second .wbb-standings-points {
  font-size: 24px;
}

.wbb-standings-podium-row.is-third .wbb-standings-points {
  font-size: 20px;
}

.wbb-standings-list {
  display: grid;
  margin-top: 6px;
}

.wbb-standings-list-row {
  grid-template-columns: 52px 1fr 96px;
  min-height: 20px;
  padding: 3px 10px 3px 20px;
  border-bottom: 1px solid rgba(214, 173, 85, 0.09);
  background: rgba(12, 16, 21, 0.68);
}

.wbb-standings-list-row:nth-child(odd) {
  background: rgba(15, 19, 24, 0.8);
}

.wbb-standings-list-rank {
  color: #e9ecef;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 9px;
  text-align: center;
}

.wbb-standings-list-row .wbb-standings-coach {
  font-family: Barlow, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.wbb-standings-list-points {
  color: #dce2eb;
  font-family: Barlow, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.wbb-standings-footer {
  margin-top: 10px;
  color: rgba(220, 231, 247, 0.72);
  font-family: Barlow, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --content-width: 94%;
  }

  .filters-grid {
    gap: 12px;
    padding: 14px 0 6px;
  }

  .filter-control {
    gap: 6px;
    font-size: 0.72rem;
  }

  input,
  button {
    min-height: 38px;
  }

  input {
    padding: 0 10px;
  }

  .icon-button {
    width: 38px;
    min-width: 38px;
  }

  th,
  td {
    padding: 10px 12px;
  }
}

@media (max-width: 820px) {
  :root {
    --top-menu-height: var(--mobile-top-menu-height);
    --content-width: calc(100% - 20px);
  }

  body {
    overflow: auto;
  }

  .top-menu {
    position: sticky;
    top: 0;
    z-index: 30;
    justify-content: space-between;
    padding: 0 10px;
    min-height: var(--mobile-top-menu-height);
  }

  .top-menu-logos {
    position: static;
    gap: 8px;
  }

  .top-menu-logos img {
    max-width: 48px;
    height: 24px;
  }

  .top-menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .refresh-countdown {
    position: static;
    order: 2;
    min-width: 0;
    max-width: calc(100vw - 130px);
    overflow: hidden;
    font-size: 0.72rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-globe-button {
    min-height: 34px;
    padding-right: 10px;
  }

  .language-menu {
    left: 0;
    min-width: 150px;
  }

  .top-menu-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    left: 10px;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: auto;
    min-height: 0;
    padding: 10px;
    border: 1px solid rgba(243, 207, 115, 0.18);
    border-radius: 10px;
    background: rgba(8, 12, 16, 0.98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  }

  .top-menu-mobile-open .top-menu-nav {
    display: flex;
  }

  .top-menu-item {
    width: 100%;
    display: block;
  }

  .top-menu-dropdown::after {
    display: none;
  }

  .top-menu-link {
    justify-content: flex-start;
    max-width: none;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    border-bottom-width: 1px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
  }

  .top-menu-dropdown-trigger {
    width: auto;
    min-width: 42px;
    max-width: 42px;
    justify-content: space-between;
    border-radius: 8px;
    border-bottom-width: 1px;
    background: rgba(255, 255, 255, 0.02);
  }

  .top-menu-dropdown-trigger:hover {
    background: rgba(229, 182, 84, 0.08);
  }

  .top-menu-submenu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
  }

  .top-menu-link-icon {
    justify-content: center;
    min-height: 34px;
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .top-menu-link.is-active {
    border-color: rgba(243, 207, 115, 0.28);
    background: rgba(229, 182, 84, 0.08);
  }

  .guide-panel {
    width: min(100%, calc(100vw - 16px));
    max-height: min(100vh - 20px, 100%);
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-content: initial;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: auto hidden;
  }

  .guide-nav-item {
    min-height: 36px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .guide-content {
    padding: 16px 16px 18px;
  }

  .guide-article p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .guide-achievement-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .guide-achievement-icon {
    width: 44px;
    height: 44px;
  }

  .guide-achievement-tiers {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .statistics-shell {
    width: 100%;
    padding: 0;
    min-height: calc(100vh - var(--mobile-top-menu-height));
  }

  .stats-panel {
    height: auto;
    min-height: calc(100vh - var(--mobile-top-menu-height));
  }

  .filters-grid,
  .stats-panel-centered-filters .filters-grid {
    width: var(--content-width);
    max-width: var(--content-width);
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 0 4px;
  }

  .filter-control span {
    font-size: 0.68rem;
  }

  input,
  button {
    min-height: 34px;
    font-size: 0.92rem;
  }

  .filter-actions,
  .stats-panel-centered-filters .filter-actions {
    width: 100%;
    gap: 8px;
    justify-self: stretch;
    grid-column: 1 / -1;
  }

  .icon-button {
    width: 34px;
    min-width: 34px;
  }

  .export-button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
  }

  .math-button {
    flex: 0 0 auto;
  }

  .math-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-detail-shell {
    min-height: calc(100vh - var(--mobile-top-menu-height));
  }

  .team-detail-panel {
    height: auto;
    min-height: calc(100vh - var(--mobile-top-menu-height));
  }

  .team-detail-content {
    width: var(--content-width);
    padding-top: 14px;
  }

  .team-detail-top-nav {
    padding-right: 0;
  }

  .team-detail-top-kicker {
    display: none;
  }

  .team-detail-title-row {
    grid-template-columns: 1fr;
  }

  .team-detail-title-copy {
    text-align: left;
  }

  .team-detail-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-inline-detail-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .math-tiering-layout {
    grid-template-columns: 1fr;
  }

  .coach-ticket-notice,
  .status-line,
  .coach-achievements,
  .team-inline-detail,
  .table-wrap {
    width: var(--content-width);
  }

  .coach-ticket-notice,
  .status-line {
    padding: 4px 0 8px;
    min-height: 0;
  }

  .coach-achievements {
    margin-bottom: 8px;
  }

  .table-wrap {
    flex: 1 1 auto;
    min-height: 58vh;
    margin-bottom: 0;
  }

  .site-footer {
    min-height: 48px;
    padding: 0 10px;
  }

  .site-footer-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .site-footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 9px 10px;
  }
}

@media (max-width: 560px) {
  .filters-grid,
  .stats-panel-centered-filters .filters-grid {
    grid-template-columns: 1fr;
  }

  .top-menu {
    gap: 8px;
  }

  .refresh-countdown {
    max-width: calc(100vw - 120px);
    font-size: 0.68rem;
  }

  .math-summary-grid {
    grid-template-columns: 1fr;
  }

  .team-detail-card-grid {
    grid-template-columns: 1fr;
  }

  .team-inline-detail-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-detail-coach-card {
    width: 100%;
  }
}
