: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-x: hidden;
  overflow-y: auto;
  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;
}

.top-menu-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-color: rgba(243, 207, 115, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(37, 22, 8, 0.96), rgba(14, 9, 4, 0.96)),
    rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.top-menu-icon-button:hover {
  background:
    linear-gradient(135deg, rgba(53, 32, 12, 0.98), rgba(20, 12, 5, 0.98)),
    rgba(255, 255, 255, 0.04);
}

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

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

.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: 78px;
  max-width: 26vw;
  overflow: hidden;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-refresh-dock {
  position: absolute;
  right: 34px;
  display: flex;
  align-items: center;
}

.auto-refresh-button.is-active {
  border-color: rgba(140, 255, 47, 0.6);
  color: #b6ff35;
  box-shadow:
    0 0 12px rgba(140, 255, 47, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

.auto-refresh-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 12px;
  width: min(340px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(243, 207, 115, 0.18);
  border-radius: 8px;
  background: rgba(7, 11, 15, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

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

.auto-refresh-control {
  display: grid;
  grid-template-columns: 1fr 72px auto;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.auto-refresh-control input {
  width: 72px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(243, 207, 115, 0.24);
  border-radius: 6px;
  background: #090e13;
  color: var(--text);
  text-align: center;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.auto-refresh-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #b6ff35;
}

.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;
  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: visible;
}

.stats-panel.stats-panel-live-scroll {
  overflow: visible;
  padding-bottom: 0;
}

.live-view {
  width: var(--content-width);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.live-view.is-competition-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.live-view[hidden] {
  display: none;
}

.live-stack {
  display: grid;
  gap: 16px;
}

.live-view.is-competition-view .live-stack {
  flex: 0 0 auto;
  min-height: auto;
}

.live-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.live-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(243, 207, 115, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(229, 182, 84, 0.03), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(7, 11, 15, 0.84);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.live-block::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 184, 221, 0.06), transparent 72%);
  pointer-events: none;
}

.live-block-wide {
  min-height: 0;
}

.live-block-competition-view {
  flex: 0 0 auto;
  min-height: auto;
  background:
    linear-gradient(180deg, #071017 0%, #071017 92%, #0b151c 100%);
  overflow: hidden;
}

.live-block-announcement {
  background:
    linear-gradient(145deg, rgba(98, 22, 24, 0.5), rgba(7, 11, 15, 0.88) 44%),
    radial-gradient(circle at top right, rgba(229, 182, 84, 0.09), transparent 34%),
    rgba(7, 11, 15, 0.92);
}

.live-block-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.live-card-kicker {
  margin: 0 0 14px;
  color: #edd48c;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-card-title {
  margin: 0;
  max-width: 100%;
  color: #fff3d0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.live-card-body {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d4dee6;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 100%;
  text-wrap: pretty;
}

.live-ongoing-subtitle {
  max-width: 64ch;
  text-wrap: balance;
  line-height: 1.45;
}

.live-registration-tournament {
  color: #f6e2a7;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.live-ongoing-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.live-ongoing-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(243, 207, 115, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.live-ongoing-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.live-ongoing-card-title {
  margin: 0;
  color: #f6e2a7;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.live-ongoing-match-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 207, 115, 0.1);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.live-ongoing-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.live-ongoing-match-groups {
  display: grid;
  gap: 14px;
}

.live-ongoing-match-group {
  display: grid;
  gap: 8px;
}

.live-ongoing-match-group-title {
  margin: 0;
  color: #d4dee6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-ongoing-match-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 180px;
  min-height: 116px;
  padding: 12px 14px 10px;
  border: 1px solid rgba(243, 207, 115, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
}

.live-ongoing-match-card-blue {
  --live-score-change-glow: rgba(81, 160, 255, 0.68);
  border-color: rgba(81, 160, 255, 0.63);
  background:
    linear-gradient(180deg, rgba(31, 74, 143, 0.36), rgba(9, 15, 26, 0.94)),
    rgba(255, 255, 255, 0.012);
}

.live-ongoing-match-card-red {
  --live-score-change-glow: rgba(236, 102, 102, 0.7);
  border-color: rgba(236, 102, 102, 0.63);
  background:
    linear-gradient(180deg, rgba(120, 34, 36, 0.36), rgba(9, 15, 26, 0.94)),
    rgba(255, 255, 255, 0.012);
}

.live-ongoing-match-card-draw {
  --live-score-change-glow: rgba(243, 207, 115, 0.7);
  border-color: rgba(243, 207, 115, 0.18);
  background:
    linear-gradient(135deg, rgba(31, 74, 143, 0.27), rgba(120, 34, 36, 0.27)),
    rgba(255, 255, 255, 0.012);
}

.live-ongoing-match-card-scheduled {
  --live-score-change-glow: rgba(212, 222, 230, 0.56);
  border-color: rgba(212, 222, 230, 0.14);
  background:
    linear-gradient(180deg, rgba(73, 82, 92, 0.18), rgba(9, 15, 26, 0.94)),
    rgba(255, 255, 255, 0.012);
}

.live-ongoing-match-card-score-changed {
  animation: live-score-change-pulse 1.1s ease-in-out infinite;
}

.live-ongoing-match-top,
.live-ongoing-match-bottom {
  display: flex;
  align-items: flex-start;
}

.live-ongoing-match-bottom {
  justify-content: flex-end;
  align-items: flex-end;
}

.live-ongoing-match-coach {
  min-width: 0;
  color: #8ec2ff;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-ongoing-match-coach-red {
  color: #ff9b9b;
}

.live-ongoing-match-coach-winner {
  font-weight: 800;
}

.live-ongoing-match-coach-loser {
  color: rgba(215, 221, 227, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
}

.live-ongoing-match-winner-label {
  color: inherit;
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.live-ongoing-match-score {
  align-self: center;
  justify-self: center;
  color: #edf3f7;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.live-ongoing-match-score-value {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}

.live-ongoing-match-score-value-changed {
  animation: live-score-value-change-pulse 1.1s ease-in-out infinite;
  color: #ffffff;
}

.live-ongoing-match-score-separator {
  color: rgba(237, 243, 247, 0.78);
}

.live-ongoing-match-coach-opponent {
  text-align: right;
}

.live-block-title {
  margin: 0;
  color: #fff3d0;
  font-size: 1.5rem;
}

.live-action-button,
.live-inline-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.live-action-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: linear-gradient(180deg, #e8bf63, #c99834);
  color: #15110a;
  text-decoration: none;
}

.live-action-button-secondary,
.live-ongoing-card-action {
  border: 1px solid rgba(243, 207, 115, 0.22);
  background: linear-gradient(180deg, rgba(232, 191, 99, 0.15), rgba(201, 152, 52, 0.06));
  color: #f6e2a7;
}

.live-action-button-secondary:hover,
.live-ongoing-card-action:hover {
  border-color: rgba(243, 207, 115, 0.3);
  background: linear-gradient(180deg, rgba(232, 191, 99, 0.22), rgba(201, 152, 52, 0.1));
}

.live-competition-back-button {
  flex: 0 0 auto;
  align-self: flex-start;
  font-weight: 700;
}

.live-competition-standings-jump {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 42px;
  white-space: nowrap;
}

.live-block-header-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.live-block-header-inline > div {
  flex: 1 1 auto;
  min-width: 0;
}

.live-competition-title {
  max-width: none;
  text-align: center;
}

.live-action-button:hover,
.live-inline-link:hover {
  background: linear-gradient(180deg, #ebc973, #d4a33c);
}

.live-action-button-secondary:hover,
.live-ongoing-card-action:hover {
  background: linear-gradient(180deg, rgba(232, 191, 99, 0.22), rgba(201, 152, 52, 0.1));
}

.live-inline-link {
  align-self: flex-start;
  margin-top: 18px;
  background: transparent;
  color: var(--accent-strong);
}

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

.live-competition-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  min-height: clamp(140px, 24vh, 320px);
  text-align: center;
}

.live-competition-section-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.live-competition-latest-matches,
.live-competition-standings {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.live-competition-standings {
  scroll-margin-top: calc(var(--top-menu-height) + 12px);
}

.live-competition-standings:focus {
  outline: none;
}

.torn-paper-note {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px 13px;
  border: 1px solid rgba(191, 86, 255, 0.9);
  border-radius: 4px;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(191, 86, 255, 0.18) 0%, rgba(123, 49, 202, 0.11) 100%);
  color: #f3dcff;
  text-shadow: 0 0 8px rgba(205, 117, 255, 0.28);
  box-shadow:
    0 0 12px rgba(191, 86, 255, 0.25),
    inset 0 0 16px rgba(191, 86, 255, 0.08);
}

.radioactive-notice {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px 13px;
  border-radius: 4px;
}

.radioactive-notice-red {
  border: 1px solid rgba(255, 67, 86, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 67, 86, 0.18) 0%, rgba(142, 18, 35, 0.11) 100%);
  color: #ffdce1;
  text-shadow: 0 0 8px rgba(255, 94, 113, 0.28);
  box-shadow:
    0 0 12px rgba(255, 67, 86, 0.25),
    inset 0 0 16px rgba(255, 67, 86, 0.08);
}

.live-competition-ended-points-notice,
.live-competition-concession-data-notice {
  justify-self: center;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.live-competition-ended-points-notice-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(220, 167, 255, 0.8);
  text-underline-offset: 3px;
}

.live-competition-ended-points-notice-link:hover {
  color: #f5ddff;
}

.live-competition-latest-matches {
  flex: 0 0 auto;
}

.live-competition-match-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.live-competition-match-carousel-track {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 44px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.live-competition-match-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.live-competition-match-carousel-track .live-ongoing-match-card {
  flex: 0 0 180px;
}

.live-competition-match-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(243, 207, 115, 0.26);
  border-radius: 999px;
  background: rgba(7, 11, 15, 0.9);
  color: var(--accent-strong);
  transform: translateY(-50%);
}

.live-competition-match-carousel-button:hover {
  background: rgba(229, 182, 84, 0.14);
}

.live-competition-match-carousel-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.live-competition-match-carousel-button-left {
  left: 0;
}

.live-competition-match-carousel-button-right {
  right: 0;
}

.live-competition-standings {
  flex: 1 1 auto;
  min-height: 0;
}

.live-competition-table-wrap {
  width: 100%;
  margin-bottom: 40px;
  overflow: hidden;
  padding-bottom: 0;
  border: 1px solid rgba(243, 207, 115, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #111820 0%, #10171e 78%, #0c1218 100%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.live-competition-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: #111820;
}

.live-competition-table th,
.live-competition-table td {
  background: #111820;
}

.live-competition-table tbody tr:last-child td {
  border-bottom: 0;
}

.live-competition-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.live-next-round-action {
  display: flex;
  justify-content: center;
}

.live-next-round-panel {
  width: min(720px, 100%);
}

.live-next-round-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.live-next-round-pairings {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-next-round-pairing {
  padding: 14px 16px;
  border: 1px solid rgba(243, 207, 115, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.live-next-round-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.live-next-round-groups > span:last-child {
  text-align: right;
}

.live-next-round-versus {
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
}

.live-next-round-bye {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-color: rgba(191, 86, 255, 0.38);
  background: rgba(191, 86, 255, 0.08);
}

.live-next-round-bye > span:last-child {
  text-align: right;
}

.live-next-round-member-pairings {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(243, 207, 115, 0.1);
  list-style: none;
}

.live-next-round-member-pairings li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-next-round-member-pairings li span:nth-child(2) {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.live-next-round-member-pairings li span:last-child {
  text-align: right;
}

.live-competition-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

.live-competition-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.live-competition-table tbody td {
  border-top: 1px solid rgba(243, 207, 115, 0.08);
}

.live-competition-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.live-competition-table-coach {
  font-weight: 700;
}

.live-competition-table-rank {
  position: relative;
}

.live-competition-table-row-live td:first-child {
  position: relative;
  padding-left: 18px;
}

.live-competition-table-row-live td:first-child::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8%;
  bottom: 8%;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(180, 106, 255, 0.08) 0%,
    rgba(180, 106, 255, 0.5) 18%,
    rgba(180, 106, 255, 0.92) 50%,
    rgba(180, 106, 255, 0.5) 82%,
    rgba(180, 106, 255, 0.08) 100%
  );
  box-shadow:
    0 0 8px rgba(180, 106, 255, 0.28),
    0 0 14px rgba(180, 106, 255, 0.14);
}

.live-competition-table-points {
  color: #fff3d0;
  font-weight: 800;
}

.live-competition-limit-note {
  max-width: 72ch;
}

.live-match-list,
.live-standings-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.live-match-card,
.live-standings-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 207, 115, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.live-match-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.live-match-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.live-match-team {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-match-team-opponent {
  text-align: right;
}

.live-match-team-name,
.live-standings-name {
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.live-match-coach,
.live-standings-subline {
  color: var(--muted);
  font-size: 0.84rem;
}

.live-match-score,
.live-standings-metric {
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-standings-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.live-rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(243, 207, 115, 0.18);
  border-radius: 999px;
  background: rgba(10, 14, 19, 0.78);
  color: #fff3d0;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-weight: 700;
}

.live-standings-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.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,
.tournament-detail-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],
.tournament-detail-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);
}

.tournament-detail-notice {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.tournament-detail-notice-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tournament-detail-notice-link:hover {
  color: var(--text);
}

.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[hidden] {
  display: none !important;
}

.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);
}

.skill-help-tooltip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid rgba(243, 207, 115, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(11, 15, 20, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.skill-help-tooltip[hidden] {
  display: none !important;
}

.skill-help-tooltip-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.skill-help-tooltip-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.skill-help-tooltip-icon-placeholder {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(243, 207, 115, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.skill-help-tooltip-title {
  color: #f5e5b5;
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.skill-help-tooltip-title-blue {
  color: #7fd3ff;
  text-shadow:
    0 0 8px rgba(74, 168, 255, 0.34),
    0 0 16px rgba(74, 168, 255, 0.16);
}

.skill-help-tooltip-title-yellow {
  color: #fff36d;
  text-shadow:
    0 0 8px rgba(245, 227, 83, 0.32),
    0 0 16px rgba(245, 227, 83, 0.14);
}

.skill-help-tooltip-title-red {
  color: #ff8d8d;
  text-shadow:
    0 0 8px rgba(255, 92, 92, 0.34),
    0 0 16px rgba(255, 92, 92, 0.16);
}

.skill-help-tooltip-title-purple {
  color: #d99bff;
  text-shadow:
    0 0 8px rgba(196, 112, 255, 0.34),
    0 0 16px rgba(196, 112, 255, 0.16);
}

.skill-help-tooltip-title-green {
  color: #92ffb2;
  text-shadow:
    0 0 8px rgba(93, 255, 146, 0.34),
    0 0 16px rgba(93, 255, 146, 0.16);
}

.skill-help-tooltip-title-brown {
  color: #d9aa78;
  text-shadow:
    0 0 8px rgba(191, 138, 84, 0.28),
    0 0 16px rgba(191, 138, 84, 0.12);
}

.skill-help-tooltip-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 207, 115, 0.04), rgba(243, 207, 115, 0.28), rgba(243, 207, 115, 0.04));
}

.skill-help-tooltip-body {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

@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;
  }
}

@keyframes live-score-change-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    filter: brightness(1);
  }

  50% {
    border-color: var(--live-score-change-glow);
    box-shadow:
      0 0 0 1px var(--live-score-change-glow),
      0 0 26px var(--live-score-change-glow);
    filter: brightness(1.22);
  }
}

@keyframes live-score-value-change-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }

  50% {
    text-shadow:
      0 0 8px var(--live-score-change-glow),
      0 0 16px var(--live-score-change-glow);
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-ongoing-match-card-score-changed {
    animation: none;
    box-shadow: 0 0 0 1px var(--live-score-change-glow);
  }

  .live-ongoing-match-score-value-changed {
    animation: none;
    text-shadow: 0 0 8px var(--live-score-change-glow);
  }
}

.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-top: 16px;
  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: transparent;
  overflow: hidden;
}

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

.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;
  overflow: visible;
}

.team-detail-table {
  width: 100%;
  min-width: 980px;
}

.team-detail-injury-header,
.team-detail-injury-cell {
  width: 68px;
  min-width: 68px;
  text-align: center;
}

.team-detail-injury-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.team-detail-injury-cross {
  font-size: 1rem;
  line-height: 1;
}

.team-detail-injury-reaper {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: auto;
}

.team-detail-injury-count {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.team-detail-injury-marker-level-1 .team-detail-injury-cross,
.team-detail-injury-marker-level-1 .team-detail-injury-count {
  color: #ff9c9c;
  text-shadow: 0 0 6px rgba(255, 110, 110, 0.2);
}

.team-detail-injury-marker-level-2 .team-detail-injury-cross,
.team-detail-injury-marker-level-2 .team-detail-injury-count {
  color: #ff4f4f;
  text-shadow: 0 0 10px rgba(255, 62, 62, 0.34);
}

.team-detail-injury-marker-level-3 .team-detail-injury-cross,
.team-detail-injury-marker-level-3 .team-detail-injury-count {
  color: #ff1515;
  text-shadow:
    0 0 14px rgba(255, 24, 24, 0.56),
    0 0 22px rgba(255, 24, 24, 0.24);
}

.team-detail-sos-cell {
  width: 38px;
  min-width: 38px;
  padding: 0 8px 0 2px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
}

.team-detail-sos-header {
  width: 38px;
  min-width: 38px;
  padding-right: 8px;
}

.team-detail-sos-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(243, 207, 115, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-strong);
}

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

.team-detail-sos-button:disabled {
  opacity: 0.45;
}

.team-detail-sos-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skill-chip {
  display: inline;
  padding: 0;
  font-weight: 400;
  line-height: 1.15;
}

.skill-chip-secondary {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.skill-chip-separator {
  color: inherit;
}

.skill-chip-blue {
  color: #7fd3ff;
  text-shadow:
    0 0 8px rgba(74, 168, 255, 0.34),
    0 0 16px rgba(74, 168, 255, 0.16);
}

.skill-chip-yellow {
  color: #fff36d;
  text-shadow:
    0 0 8px rgba(245, 227, 83, 0.32),
    0 0 16px rgba(245, 227, 83, 0.14);
}

.skill-chip-red {
  color: #ff8d8d;
  text-shadow:
    0 0 8px rgba(255, 92, 92, 0.34),
    0 0 16px rgba(255, 92, 92, 0.16);
}

.skill-chip-purple {
  color: #d99bff;
  text-shadow:
    0 0 8px rgba(196, 112, 255, 0.34),
    0 0 16px rgba(196, 112, 255, 0.16);
}

.skill-chip-green {
  color: #92ffb2;
  text-shadow:
    0 0 8px rgba(93, 255, 146, 0.34),
    0 0 16px rgba(93, 255, 146, 0.16);
}

.skill-chip-brown {
  color: #d9aa78;
  text-shadow:
    0 0 8px rgba(191, 138, 84, 0.28),
    0 0 16px rgba(191, 138, 84, 0.12);
}

.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-help-paragraph {
  color: #d9e2e8;
  text-wrap: pretty;
}

.team-detail-sos-help-formula-block {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 13px;
  border: 1px solid rgba(243, 207, 115, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(229, 182, 84, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(6, 10, 14, 0.34);
}

.team-detail-sos-help-section-title {
  margin: 0;
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-detail-sos-help-formula-lead {
  color: #e6edf2;
  font-size: 0.81rem;
  line-height: 1.42;
}

.team-detail-sos-formula-stack {
  display: grid;
  gap: 7px;
  padding: 2px 0;
}

.team-detail-sos-formula {
  display: grid;
  grid-template-columns: minmax(88px, auto) 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  white-space: normal;
  color: #f4f7fa;
  font-size: 0.82rem;
  line-height: 1.35;
}

.team-detail-sos-formula-main {
  padding-bottom: 3px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(243, 207, 115, 0.12);
}

.team-detail-sos-formula-left {
  color: #ffe3a1;
  font-weight: 700;
}

.team-detail-sos-formula-equals {
  color: rgba(255, 227, 161, 0.72);
  font-weight: 700;
  text-align: center;
}

.team-detail-sos-formula-right {
  color: #f7fafc;
}

.team-detail-sos-formula-sum-block {
  display: inline-grid;
  margin-right: 3px;
  vertical-align: middle;
}

.team-detail-sos-formula-sum {
  color: #ffe3a1;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.65em;
  line-height: 0.82;
}

.team-detail-sos-formula-condition {
  color: #d4dde4;
  font-size: 0.92em;
}

.team-detail-sos-formula-cases {
  align-items: start;
}

.team-detail-sos-formula-cases-block {
  display: inline-grid;
  grid-template-columns: 12px 1fr;
  gap: 0;
  align-items: stretch;
}

.team-detail-sos-formula-brace {
  color: #ffe3a1;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 4.4rem;
  font-weight: 300;
  line-height: 0.8;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.12rem;
  transform: translateY(0.02rem) scaleX(0.58) scaleY(1.26);
  transform-origin: center;
}

.team-detail-sos-formula-cases-rows {
  display: grid;
  gap: 4px;
  padding: 1px 0;
}

.team-detail-sos-formula-case-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) 10px minmax(56px, auto);
  gap: 8px;
  align-items: baseline;
}

.team-detail-sos-formula-expression {
  text-align: right;
}

.team-detail-sos-formula-case-separator {
  color: rgba(255, 227, 161, 0.72);
  font-weight: 700;
  text-align: center;
}

.team-detail-sos-formula-sub {
  align-self: flex-start;
  font-size: 0.7em;
  transform: translateY(0.25em);
}

.team-detail-sos-formula-fraction {
  min-width: 88px;
}

.team-detail-sos-help-variables {
  display: grid;
  gap: 7px;
}

.team-detail-sos-help-variables p {
  margin: 0;
  color: #cdd8df;
  font-size: 0.8rem;
  line-height: 1.4;
}

.team-detail-sos-help-variable-row {
  display: grid;
  grid-template-columns: minmax(62px, auto) 12px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.team-detail-sos-help-variable-symbol {
  color: #ffe3a1;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 700;
  font-size: 1.05em;
}

.team-detail-sos-help-variable-equals {
  color: rgba(255, 227, 161, 0.72);
  font-weight: 700;
  text-align: center;
}

.team-detail-sos-help-variable-text {
  color: #cdd8df;
}

.team-detail-sos-help-signature {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(243, 207, 115, 0.12);
  color: #7f8891;
  font-size: 0.76rem;
  font-style: italic;
  text-align: right;
}

.team-detail-sos-meta {
  margin: 0;
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.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-expand {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.team-detail-sos-expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  aspect-ratio: 1 / 1;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid rgba(242, 194, 82, 0.45);
  border-radius: 999px;
  background: rgba(242, 194, 82, 0.08);
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.team-detail-sos-expand-button:hover {
  background: rgba(242, 194, 82, 0.16);
  border-color: rgba(242, 194, 82, 0.7);
  transform: translateY(-1px);
}

.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-attribute-modifier {
  font-weight: 700;
}

.team-detail-attribute-modifier-bonus {
  color: #c9ff3d;
  text-shadow: 0 0 10px rgba(201, 255, 61, 0.45);
}

.team-detail-attribute-modifier-malus {
  color: #ff5d5d;
  text-shadow: 0 0 10px rgba(255, 93, 93, 0.38);
}

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

.team-detail-player-row-historical-other-injury td {
  background: rgba(146, 26, 26, 0.44);
}

.team-detail-player-row-historical-dead td {
  background: rgba(11, 10, 12, 0.96);
  color: rgba(214, 219, 224, 0.72);
}

.team-detail-player-row-historical-dead .team-detail-player-name,
.team-detail-player-row-historical-dead .team-detail-player-type,
.team-detail-player-row-historical-dead .team-detail-attribute-modifier,
.team-detail-player-row-historical-dead .team-detail-historical-casualty-label {
  color: inherit;
}

.team-detail-historical-dead-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: 4px;
  font-size: 1.2rem;
  line-height: 1;
  filter: grayscale(0.1);
}

.team-detail-historical-star-marker {
  display: inline-block;
  min-width: 1ch;
  font-size: 1.05rem;
  line-height: 1;
}

.team-detail-historical-casualty-label {
  margin-left: 0.25rem;
  color: #d5ff53;
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(201, 255, 61, 0.46),
    0 0 18px rgba(201, 255, 61, 0.2);
}

.team-detail-historical-casualty-label-healed {
  color: rgba(224, 228, 232, 0.74);
  font-weight: 600;
  text-decoration: line-through;
  text-shadow: none;
}

.team-detail-historical-casualty-healed-icon {
  color: rgba(224, 228, 232, 0.86);
  font-weight: 800;
}

.team-detail-player-name-cell-badly-hurt {
  background:
    repeating-linear-gradient(
      -63deg,
      rgba(217, 96, 96, 0.34) 0 7px,
      rgba(217, 96, 96, 0.02) 7px 14px
    ),
    rgba(105, 28, 42, 0.22);
}

.team-inline-detail {
  width: var(--content-width);
  margin: 0 auto 18px;
  display: flex;
  flex: 0 0 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: 0 0 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border-color: rgba(243, 207, 115, 0.12);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.team-inline-detail .team-detail-table-wrap {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  z-index: 1;
  overflow: visible;
}

.team-inline-detail-deck {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 140px;
  padding: 18px 12px 18px 8px;
  border-top: 1px solid rgba(243, 207, 115, 0.12);
  overflow: visible;
  z-index: 4;
}

.team-inline-detail-deck-filters {
  position: relative;
  top: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-self: center;
  height: auto;
  max-height: 100%;
  padding: 0;
}

.team-inline-detail-deck-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  padding: 0;
  border: 1px solid rgba(244, 239, 228, 0.18);
  border-radius: 6px;
  background: rgba(19, 24, 31, 0.9);
  transition: none;
}

.team-inline-detail-deck-filter-swatch {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(92, 100, 112, 0.22);
  opacity: 0.3;
  color: rgba(12, 16, 20, 0.95);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease;
}

.team-inline-detail-deck-filter.is-active .team-inline-detail-deck-filter-swatch {
  opacity: 1;
}

.team-inline-detail-deck-filter.is-win .team-inline-detail-deck-filter-swatch {
  background: rgba(109, 201, 135, 0.9);
}

.team-inline-detail-deck-filter.is-win {
  border-color: rgba(109, 201, 135, 0.9);
  box-shadow:
    0 0 0 1px rgba(109, 201, 135, 0.32),
    inset 0 0 0 1px rgba(109, 201, 135, 0.18);
}

.team-inline-detail-deck-filter.is-draw .team-inline-detail-deck-filter-swatch {
  background: rgba(168, 110, 255, 0.9);
}

.team-inline-detail-deck-filter.is-draw {
  border-color: rgba(168, 110, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(168, 110, 255, 0.32),
    inset 0 0 0 1px rgba(168, 110, 255, 0.18);
}

.team-inline-detail-deck-filter.is-loss .team-inline-detail-deck-filter-swatch {
  background: rgba(217, 96, 96, 0.9);
}

.team-inline-detail-deck-filter.is-loss {
  border-color: rgba(217, 96, 96, 0.9);
  box-shadow:
    0 0 0 1px rgba(217, 96, 96, 0.32),
    inset 0 0 0 1px rgba(217, 96, 96, 0.18);
}

.team-inline-detail-deck-filter.is-concession .team-inline-detail-deck-filter-swatch {
  background: rgba(233, 201, 88, 0.92);
}

.team-inline-detail-deck-filter.is-concession {
  border-color: rgba(233, 201, 88, 0.92);
  box-shadow:
    0 0 0 1px rgba(233, 201, 88, 0.34),
    inset 0 0 0 1px rgba(233, 201, 88, 0.18);
}

.team-inline-detail-deck-filter:not(.is-active) .team-inline-detail-deck-filter-swatch {
  background: rgba(107, 114, 128, 0.3);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.94);
}

.team-inline-detail-deck-stack {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 104px;
  min-height: 0;
  overflow: visible;
}

.team-inline-detail-deck-empty {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.team-inline-detail-deck-card {
  --deck-active-min-width: 188px;
  --deck-lift: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--deck-left, 5%);
  width: var(--deck-width, 93.5%);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 180ms ease,
    left 180ms ease,
    width 180ms ease,
    filter 180ms ease;
  z-index: var(--deck-z, 1);
  transform: translateY(calc(var(--deck-lift, 0) * -1%));
}

.team-inline-detail-deck-card:focus-visible {
  outline: none;
}

.team-inline-detail-deck-card.is-active {
  --deck-active-width: max(var(--deck-width, 93.5%), var(--deck-active-min-width));
  left: calc(var(--deck-left, 4%) - ((var(--deck-active-width) - var(--deck-width, 93.5%)) / 2));
  width: var(--deck-active-width);
  min-width: var(--deck-active-min-width);
  transform: translateY(calc(var(--deck-lift, 12) * -1%)) rotate(-1.2deg);
  z-index: 1000;
}

.team-inline-detail-deck-card.is-rest-focus {
  --deck-active-width: max(var(--deck-width, 93.5%), var(--deck-active-min-width));
  left: calc(var(--deck-left, 4%) - ((var(--deck-active-width) - var(--deck-width, 93.5%)) / 2));
  width: var(--deck-active-width);
  min-width: var(--deck-active-min-width);
}

.team-inline-detail-deck-card-face {
  --deck-card-accent: rgba(244, 239, 228, 0.86);
  --deck-card-accent-soft: rgba(123, 95, 40, 0.06);
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 228, 0.86);
  border-radius: 16px;
  background: var(--bg);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(123, 95, 40, 0.06);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.team-inline-detail-deck-card.is-win .team-inline-detail-deck-card-face {
  --deck-card-accent: rgba(109, 201, 135, 0.9);
  --deck-card-accent-soft: rgba(109, 201, 135, 0.16);
  border-color: var(--deck-card-accent);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px var(--deck-card-accent-soft);
}

.team-inline-detail-deck-card.is-draw .team-inline-detail-deck-card-face {
  --deck-card-accent: rgba(168, 110, 255, 0.9);
  --deck-card-accent-soft: rgba(168, 110, 255, 0.16);
  border-color: var(--deck-card-accent);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px var(--deck-card-accent-soft);
}

.team-inline-detail-deck-card.is-loss .team-inline-detail-deck-card-face {
  --deck-card-accent: rgba(217, 96, 96, 0.9);
  --deck-card-accent-soft: rgba(217, 96, 96, 0.16);
  border-color: var(--deck-card-accent);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px var(--deck-card-accent-soft);
}

.team-inline-detail-deck-card.is-concession .team-inline-detail-deck-card-face {
  --deck-card-accent: rgba(233, 201, 88, 0.92);
  --deck-card-accent-soft: rgba(233, 201, 88, 0.18);
  border-color: var(--deck-card-accent);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px var(--deck-card-accent-soft);
}

.team-inline-detail-deck-card.is-active .team-inline-detail-deck-card-face,
.team-inline-detail-deck-card:hover .team-inline-detail-deck-card-face {
  border-color: var(--deck-card-accent);
  background-color: var(--bg);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px var(--deck-card-accent-soft);
}

.team-inline-detail-deck-card.is-active .team-inline-detail-deck-card-face {
  border-width: 2px;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.34),
    0 0 0 1px color-mix(in srgb, var(--deck-card-accent) 72%, white 28%),
    inset 0 0 0 1px var(--deck-card-accent-soft);
}

.team-inline-detail-deck-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding: 12px 12px 11px;
  text-align: center;
  opacity: 0.82;
  transition: opacity 140ms ease;
}

.team-inline-detail-deck-card.is-active .team-inline-detail-deck-card-body {
  opacity: 1;
}

.team-inline-detail-deck-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 0;
}

.team-inline-detail-deck-card-coach,
.team-inline-detail-deck-card-rival {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-inline-detail-deck-card-coach {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.team-inline-detail-deck-card-rival {
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.05;
}

.team-inline-detail-deck-card-score {
  color: var(--text);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
}

.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-primary-row td:first-child {
  position: relative;
  padding-left: 18px;
}

.qualified-primary-row td:first-child::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8%;
  bottom: 8%;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(201, 255, 61, 0.08) 0%,
    rgba(201, 255, 61, 0.58) 18%,
    rgba(201, 255, 61, 0.98) 50%,
    rgba(201, 255, 61, 0.58) 82%,
    rgba(201, 255, 61, 0.08) 100%
  );
  box-shadow:
    0 0 8px rgba(201, 255, 61, 0.34),
    0 0 14px rgba(201, 255, 61, 0.18);
}

.qualified-repeat-row td:first-child {
  position: relative;
  padding-left: 18px;
}

.qualified-repeat-row td:first-child::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8%;
  bottom: 8%;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(180, 106, 255, 0.08) 0%,
    rgba(180, 106, 255, 0.5) 18%,
    rgba(180, 106, 255, 0.92) 50%,
    rgba(180, 106, 255, 0.5) 82%,
    rgba(180, 106, 255, 0.08) 100%
  );
  box-shadow:
    0 0 8px rgba(180, 106, 255, 0.28),
    0 0 14px rgba(180, 106, 255, 0.14);
}

.ladder-metric-positive,
.ladder-metric-negative {
  font-weight: 700;
}

.wdl-bar-cell {
  min-width: 220px;
}

.wdl-bar-track {
  display: flex;
  width: 100%;
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 16, 22, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wdl-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.wdl-bar-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.wdl-bar-segment.is-win {
  background: linear-gradient(180deg, rgba(201, 255, 61, 0.66), rgba(201, 255, 61, 0.46));
  box-shadow: inset 0 0 8px rgba(201, 255, 61, 0.22);
}

.wdl-bar-segment.is-draw {
  background: linear-gradient(180deg, rgba(180, 106, 255, 0.58), rgba(180, 106, 255, 0.38));
  box-shadow: inset 0 0 8px rgba(180, 106, 255, 0.18);
}

.wdl-bar-segment.is-loss {
  background: linear-gradient(180deg, rgba(255, 93, 93, 0.78), rgba(255, 93, 93, 0.54));
  box-shadow: inset 0 0 8px rgba(255, 93, 93, 0.22);
}

.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;
}

.development-panel {
  width: min(520px, 100%);
}

.development-dialog-body {
  display: block;
}

.development-dialog-copy {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.development-dialog-link {
  margin-left: 0.35rem;
  color: var(--accent-strong);
  font-family: Sora, Barlow, Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.development-dialog-link:hover,
.development-dialog-link:focus-visible {
  text-decoration: underline;
}

.development-dialog-dismiss-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.development-dialog-dismiss-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.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%;
  }

  .live-split-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .auto-refresh-dock {
    position: static;
    order: 2;
    margin-left: auto;
  }

  .auto-refresh-menu {
    right: 10px;
  }

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

  .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));
  }

  .live-view {
    padding: 14px 0 24px;
  }

  .live-stack,
  .live-split-grid {
    gap: 12px;
  }

  .live-block {
    min-height: 0;
    padding: 18px;
  }

  .live-card-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .live-ongoing-card-title {
    font-size: clamp(1rem, 4.3vw, 1.25rem);
  }

  .live-ongoing-card-action,
  .live-competition-back-button {
    width: 100%;
  }

  .live-competition-standings-jump {
    width: 100%;
    min-height: 34px;
  }

  .live-next-round-action .live-action-button {
    width: 100%;
  }

  .live-next-round-groups,
  .live-next-round-bye,
  .live-next-round-member-pairings li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .live-next-round-groups > span:last-child,
  .live-next-round-bye > span:last-child,
  .live-next-round-member-pairings li span:last-child {
    text-align: left;
  }

  .live-next-round-versus {
    font-size: 0.78rem;
  }

  .live-competition-match-carousel-track {
    padding-inline: 38px;
  }

  .live-competition-match-carousel-track .live-ongoing-match-card {
    flex-basis: 164px;
  }

  .live-card-body {
    text-wrap: normal;
  }

  .live-ongoing-subtitle {
    max-width: none;
    text-wrap: normal;
  }

  .live-ongoing-match-slot {
    min-height: 58px;
    padding: 12px 14px;
  }

  .live-ongoing-match-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-inline: 2px;
  }

  .live-ongoing-match-card {
    min-width: 164px;
    min-height: 108px;
  }

  .live-match-main {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .live-match-team-opponent {
    text-align: left;
  }

  .stats-panel {
    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));
  }

  .team-inline-detail .team-detail-table-wrap {
    flex: 0 0 auto;
  }

  .team-inline-detail-deck {
    min-height: 122px;
    gap: 7px;
    padding: 14px 8px 14px 6px;
  }

  .team-inline-detail-deck-filters {
    gap: 4px;
  }

  .team-inline-detail-deck-filter {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-basis: 20px;
  }

  .team-inline-detail-deck-card {
    min-width: 0;
  }

  .team-inline-detail-deck-card.is-active {
    --deck-active-min-width: 156px;
  }

  .team-inline-detail-deck-stack {
    height: 94px;
  }

  .team-inline-detail-deck-card-body {
    padding: 12px 12px 10px;
  }

  .team-inline-detail-deck-card-score {
    font-size: 1rem;
  }

  .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;
  }

  .live-competition-table-wrap {
    margin-bottom: 36px;
  }

  .stats-panel.stats-panel-live-scroll {
    padding-bottom: 0;
  }

  .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;
  }

  .development-dialog-link {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .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-inline-detail .team-detail-table-wrap {
    flex: 4 1 0;
  }

  .team-inline-detail-deck {
    min-height: 112px;
    gap: 6px;
    padding: 12px 6px 12px 4px;
  }

  .team-inline-detail-deck-filters {
    gap: 4px;
  }

  .team-inline-detail-deck-filter {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-basis: 18px;
  }

  .team-inline-detail-deck-filter-swatch {
    font-size: 0.56rem;
  }

  .team-inline-detail-deck-card {
    min-width: 0;
  }

  .team-inline-detail-deck-card.is-active {
    --deck-active-min-width: 132px;
  }

  .team-inline-detail-deck-stack {
    height: 88px;
  }

  .team-inline-detail-deck-card-face {
    border-radius: 12px;
  }

  .team-inline-detail-deck-card-body {
    gap: 4px;
    padding: 9px 9px 7px;
  }

  .team-inline-detail-deck-card-coach,
  .team-inline-detail-deck-card-rival {
    font-size: 0.56rem;
  }

  .team-inline-detail-deck-card-score {
    font-size: 0.92rem;
  }

  .team-inline-detail-deck-card-subtitle,
  .team-inline-detail-deck-card-metric {
    font-size: 0.66rem;
  }

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