:root {
  --canvas: #f3eee7;
  --canvas-deep: #ebe3d8;
  --surface: #f8f4ee;
  --surface-strong: #fffdfa;
  --ink: #24221f;
  --ink-soft: #625d56;
  --ink-faint: #8b847b;
  --line: rgba(65, 57, 49, 0.13);
  --accent: #5d4ea0;
  --accent-deep: #47377f;
  --accent-soft: #e8e1ff;
  --success: #28745c;
  --success-soft: #dff0e8;
  --warning: #9b611d;
  --warning-soft: #f8e9cf;
  --danger: #a54b49;
  --clay-shadow: 9px 9px 22px rgba(137, 121, 103, 0.2), -9px -9px 22px rgba(255, 255, 255, 0.88);
  --clay-shadow-small: 5px 5px 13px rgba(137, 121, 103, 0.17), -5px -5px 13px rgba(255, 255, 255, 0.82);
  --inset: inset 1px 1px 0 rgba(255, 255, 255, 0.78), inset -1px -1px 0 rgba(112, 96, 79, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --page: 1180px;
  --header-height: 125px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.94), transparent 25rem),
    radial-gradient(circle at 94% 28%, rgba(215, 203, 239, 0.32), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}

body,
button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.header-shell,
.section-nav__track {
  width: min(100% - 28px, var(--page));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(74, 64, 54, 0.1);
  background: rgba(248, 244, 238, 0.9);
  box-shadow: 0 6px 20px rgba(78, 65, 53, 0.07);
  backdrop-filter: blur(18px) saturate(1.15);
}

.header-shell {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(93, 78, 160, 0.18);
  border-radius: 13px;
  background: var(--accent-soft);
  box-shadow: var(--clay-shadow-small), var(--inset);
}

.brand-mark span {
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  opacity: 0.45;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: -2px;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(93, 78, 160, 0.18);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: var(--inset);
}

.tv-launch {
  gap: 6px;
  border: 0;
  cursor: pointer;
}

.tv-mode[hidden] { display: none; }

body.tv-mode-open { overflow: hidden; }

.tv-mode {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  min-width: 320px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: radial-gradient(circle at 90% 0, rgba(125, 102, 215, 0.22), transparent 45%), #171426;
  color: #fff;
}

.tv-mode__header,
.tv-mode__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 12, 29, 0.92);
}

.tv-mode__brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tv-mode__brand .brand-mark { width: 32px; height: 32px; padding: 6px; border-radius: 10px; box-shadow: none; }
.tv-mode__brand strong, .tv-mode__brand small { display: block; white-space: nowrap; }
.tv-mode__brand strong { font-size: clamp(.75rem, 3vw, 1rem); }
.tv-mode__brand small { color: #b9b1d2; font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; }
.tv-mode__status { display: flex; align-items: center; gap: 6px; color: #dcd6ed; font-size: .66rem; }
.tv-mode__status > i { width: 7px; height: 7px; border-radius: 50%; background: #54d59d; box-shadow: 0 0 9px #54d59d; }
.tv-mode__status small { color: #9990b5; white-space: nowrap; }
.tv-mode__close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #49415f; border-radius: 10px; background: #29243c; color: #fff; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.tv-mode__slides { min-height: 0; overflow: hidden; padding: clamp(8px, 2.5vw, 22px); }
.tv-slide { height: 100%; animation: tv-slide-in 260ms ease-out; }
.tv-slide__title { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.tv-slide__title > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #6d59ca; }
.tv-slide__title small { color: #bdb4d6; font-size: .55rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tv-slide__title h2 { margin: -2px 0 0; font-size: clamp(1.15rem, 5vw, 2.2rem); line-height: 1; }
.tv-slide__content { height: calc(100% - 48px); overflow: hidden; }
.tv-mode .standings-card { height: 100%; padding: clamp(8px, 2vw, 18px); border: 1px solid rgba(255,255,255,.13); background: #f8f5fb; color: var(--ink); box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.tv-mode .standings-card__head { margin-bottom: 5px; }
.tv-mode .standings-card__head h3 { font-size: clamp(.82rem, 2.4vw, 1.2rem); }
.tv-mode .standings-note { display: none; }
.tv-mode .table-scroll { max-height: none; overflow: hidden; }
.tv-mode .standings-table { font-size: clamp(.54rem, 1.7vw, .78rem); }
.tv-mode .standings-table th { padding-block: 4px; font-size: .58em; }
.tv-mode .standings-table td { padding-block: clamp(3px, .8vh, 7px); }
.tv-mode .standings-card--players .table-scroll {
  height: calc(100% - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.tv-mode .avatar { width: clamp(20px, 4vw, 30px); height: clamp(20px, 4vw, 30px); }
.tv-mode .qualifier-badge { font-size: .48rem; padding: 2px 4px; }
.tv-mode__footer { padding-block: 7px; color: #aaa1c2; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; }
.tv-mode__dots { display: flex; gap: 5px; }
.tv-mode__dots i { width: 6px; height: 6px; border-radius: 50%; background: #5d5572; }
.tv-mode__dots i.is-active { width: 18px; border-radius: 8px; background: #a995ff; }

@keyframes tv-slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px), (max-height: 420px) {
  .tv-mode__header { padding: 6px 8px; }
  .tv-mode__status small { display: none; }
  .tv-mode__slides { padding: 6px 8px; }
  .tv-slide__title { margin-bottom: 5px; }
  .tv-slide__title > span { width: 28px; height: 28px; border-radius: 8px; }
  .tv-slide__content { height: calc(100% - 34px); }
  .tv-mode .standings-progress, .tv-mode .standings-card__head > span { display: none; }
  .tv-mode .standings-table--teams .standings-team__members,
  .tv-mode .standings-player small { display: none; }
  .tv-mode .standings-table td { padding-block: 2px; }
}

.header-link--quiet {
  display: none;
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

.header-link:hover,
.header-link:focus-visible {
  border-color: rgba(93, 78, 160, 0.42);
  outline: none;
}

.section-nav {
  overflow: hidden;
  border-top: 1px solid rgba(74, 64, 54, 0.07);
}

.section-nav__track {
  display: flex;
  overflow-x: auto;
  align-items: center;
  gap: 4px;
  padding-block: 6px 8px;
  scrollbar-width: none;
}

.section-nav__track::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 720;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a.is-active {
  background: rgba(93, 78, 160, 0.1);
  color: var(--accent-deep);
  outline: none;
}

.section-nav a.is-active::after {
  position: absolute;
  right: 10px;
  bottom: 1px;
  left: 10px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.connection-banner {
  position: sticky;
  z-index: 45;
  top: var(--header-height);
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(155, 97, 29, 0.18);
  background: var(--warning-soft);
  color: #6d4616;
  font-size: 0.76rem;
  font-weight: 650;
  text-align: center;
}

.connection-banner[hidden] {
  display: none;
}

.connection-banner__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--warning);
}

.connection-banner button {
  min-height: 44px;
  padding: 3px 7px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.65);
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: 800;
}

.section-anchor {
  scroll-margin-top: 0;
}

.hero {
  padding: 42px 0 34px;
}

.hero-grid {
  display: grid;
  gap: 26px;
}

.hero-copy {
  align-self: center;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(40, 116, 92, 0.17);
  border-radius: 999px;
  background: var(--success-soft);
  color: #205e4b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.status-chip > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip--loading {
  border-color: rgba(93, 78, 160, 0.15);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.status-chip--upcoming {
  border-color: rgba(155, 97, 29, 0.16);
  background: var(--warning-soft);
  color: #7a4a12;
}

.status-chip--complete {
  border-color: rgba(93, 78, 160, 0.18);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.status-chip--offline {
  border-color: rgba(165, 75, 73, 0.15);
  background: #f8dfdd;
  color: var(--danger);
}

.last-updated {
  color: var(--ink-faint);
  font-size: 0.73rem;
  font-weight: 630;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 830;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  max-width: 14ch;
  margin: 8px 0 14px;
  font-size: clamp(2.2rem, 11vw, 5.2rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-summary {
  max-width: 58ch;
  min-height: 3rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 3.7vw, 1.14rem);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.meta-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(74, 64, 54, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--inset);
}

.meta-chip svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.cash-prizes {
  display: grid;
  max-width: 520px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.cash-prize {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(177, 126, 31, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 249, 220, 0.92), rgba(245, 226, 165, 0.68));
  color: #664712;
  box-shadow: var(--clay-shadow-small), var(--inset);
}

.cash-prize--runner-up {
  border-color: rgba(79, 93, 163, 0.24);
  background: linear-gradient(145deg, rgba(244, 243, 255, 0.94), rgba(218, 222, 249, 0.7));
  color: #3f477c;
}

.cash-prize--individual {
  grid-column: 1 / -1;
  border-color: rgba(164, 117, 24, 0.24);
  background: linear-gradient(145deg, rgba(255, 253, 242, 0.96), rgba(246, 231, 181, 0.76));
  color: #684a13;
}

.cash-prize__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: #b47814;
  font-size: 1.08rem;
  box-shadow: var(--inset);
}

.cash-prize--runner-up .cash-prize__icon {
  color: #5965a5;
}

.cash-prize--individual .cash-prize__icon {
  color: #a47518;
}

.cash-prize > span:last-child,
.cash-prize small,
.cash-prize strong,
.cash-prize b {
  display: block;
}

.cash-prize small {
  font-size: 0.59rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.cash-prize strong {
  margin: 1px 0;
  font-size: clamp(1.18rem, 5vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.cash-prize b {
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  opacity: 0.76;
  text-transform: uppercase;
}

.clay-card {
  border: 1px solid rgba(79, 67, 55, 0.09);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 253, 250, 0.84), rgba(238, 231, 222, 0.82));
  box-shadow: var(--clay-shadow), var(--inset);
}

.schedule-card {
  padding: 22px;
}

.card-heading,
.section-heading,
.team-card__header,
.game-card__head,
.standings-card__head,
.champion-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-heading h2,
.overview-card h2 {
  margin: 3px 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.schedule-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: var(--inset);
}

.schedule-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-list li {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(74, 64, 54, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: var(--inset);
}

.schedule-time {
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 820;
  white-space: nowrap;
}

.schedule-list strong,
.schedule-list small {
  display: block;
}

.schedule-list strong {
  font-size: 0.84rem;
}

.schedule-list small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.overview-strip {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.overview-card {
  min-width: 0;
  padding: 19px;
}

.format-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

.format-flow span {
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(93, 78, 160, 0.09);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 770;
}

.format-flow i {
  color: var(--ink-faint);
  font-style: normal;
}

.scoring-block {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.scoring-block > p {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 790;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.scoring-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scoring-rules li {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(74, 64, 54, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--inset);
}

.scoring-rules li:last-child {
  grid-column: 1 / -1;
}

.scoring-rules strong {
  color: var(--accent-deep);
  font-size: 0.76rem;
}

.scoring-rules span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 720;
  white-space: nowrap;
}

.scoring-block > small {
  display: block;
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 0.65rem;
}

.hosts-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
}

.host-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.host {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(74, 64, 54, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: var(--inset);
}

.host__text {
  min-width: 0;
}

.host strong,
.host small {
  display: block;
}

.host strong {
  overflow: hidden;
  max-width: 10rem;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.avatar {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: color-mix(in srgb, var(--team-color, var(--accent)) 16%, #f8f3ed);
  color: color-mix(in srgb, var(--team-color, var(--accent)) 75%, #2d2838);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 8px rgba(122, 104, 87, 0.18), -3px -3px 8px #fff;
}

.avatar--member {
  width: 34px;
  height: 34px;
}

.avatar--host {
  width: 72px;
  height: 72px;
  border-width: 3px;
  font-size: 1rem;
  box-shadow: 5px 5px 12px rgba(122, 104, 87, 0.2), -5px -5px 12px #fff;
}

.avatar--game {
  width: 26px;
  height: 26px;
  border-width: 1px;
  box-shadow: 2px 2px 5px rgba(122, 104, 87, 0.16), -2px -2px 5px #fff;
  font-size: 0.56rem;
}

.avatar--standing {
  width: 30px;
  height: 30px;
  border-width: 1px;
  box-shadow: 2px 2px 6px rgba(122, 104, 87, 0.16), -2px -2px 6px #fff;
  font-size: 0.58rem;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar img.is-broken {
  display: none;
}

.section {
  padding: 64px 0;
}

.section--tint {
  border-block: 1px solid rgba(74, 64, 54, 0.08);
  background: rgba(234, 225, 215, 0.52);
}

.section-heading {
  flex-direction: column;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 7vw, 2.75rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.section-heading > p {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.group-grid,
.standings-grid {
  display: grid;
  gap: 22px;
}

.group-column {
  min-width: 0;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px 4px;
  font-size: 1rem;
  font-weight: 820;
}

.group-title span {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.76rem;
  box-shadow: var(--inset);
}

.group-teams {
  display: grid;
  gap: 14px;
}

.team-card {
  min-width: 0;
  padding: 17px;
  border-top: 3px solid var(--team-color, var(--accent));
}

.team-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.team-color {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--team-color, var(--accent));
  box-shadow: 0 0 0 1px rgba(52, 45, 39, 0.16);
}

.team-name {
  min-width: 0;
}

.team-name strong,
.team-name small {
  display: block;
}

.team-name strong {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 820;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name small {
  color: var(--ink-faint);
  font-size: 0.67rem;
  font-weight: 680;
}

.member-count,
.game-status,
.qualifier-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(71, 63, 55, 0.06);
  color: var(--ink-faint);
  font-size: 0.63rem;
  font-weight: 760;
}

.roster-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.roster-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
}

.member-copy {
  min-width: 0;
}

.member-copy strong,
.member-copy small {
  display: block;
}

.member-copy strong {
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy small {
  color: var(--ink-faint);
  font-size: 0.62rem;
}

.member-copy .availability-note {
  color: #6247a6;
  font-weight: 800;
}

.captain-tag {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--team-color, var(--accent)) 14%, transparent);
  color: color-mix(in srgb, var(--team-color, var(--accent)) 72%, #282126);
  font-size: 0.58rem;
  font-weight: 830;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.games-board {
  display: grid;
  gap: 22px;
}

.games-round-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(74, 64, 54, 0.1);
  border-radius: 17px;
  background: rgba(248, 244, 238, 0.86);
  box-shadow: var(--clay-shadow-small), var(--inset);
}

.games-round-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.games-round-tab span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.games-round-tab small {
  color: var(--ink-faint);
  font-size: 0.61rem;
  font-weight: 720;
}

.games-round-tab:hover,
.games-round-tab.is-active {
  border-color: rgba(93, 78, 160, 0.18);
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: var(--inset);
}

.games-round-tab.is-active small {
  color: var(--accent-deep);
}

.games-round-tab:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgba(93, 78, 160, 0.2);
  outline-offset: 2px;
}

.games-stage {
  min-width: 0;
}

.games-stage[hidden] {
  display: none;
}

.games-stage:focus-visible {
  outline: 3px solid rgba(93, 78, 160, 0.2);
  outline-offset: 6px;
}

.games-stage__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.games-stage__heading h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.games-stage__heading span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 680;
}

.game-grid {
  display: grid;
  gap: 13px;
}

.games-stage--final {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.final-fixture-preview {
  display: grid;
  gap: 17px;
  padding: 19px;
}

.final-fixture-preview__copy h4 {
  margin: 3px 0 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.final-fixture-preview__copy > p:last-child {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.final-qualification-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.final-qualification-slots li {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(74, 64, 54, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--inset);
}

.final-qualification-slots li > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.65rem;
  font-weight: 850;
}

.final-qualification-slots strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-fixture-preview__note {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(93, 78, 160, 0.08);
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 720;
}

.game-card {
  min-width: 0;
  padding: 16px;
}

.game-card__head {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.game-label strong,
.game-label small {
  display: block;
}

.game-label strong {
  font-size: 0.8rem;
  font-weight: 820;
}

.game-label small {
  color: var(--ink-faint);
  font-size: 0.64rem;
}

.game-status--complete {
  background: var(--success-soft);
  color: var(--success);
}

.game-status--live {
  background: #f8dfdd;
  color: var(--danger);
}

.game-players,
.game-result {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.game-player,
.result-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.38);
}

.game-player__seed,
.result-rank {
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 820;
  text-align: center;
}

.game-player__team,
.result-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.game-player__team span:last-child,
.result-team span:last-child {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player__member {
  color: var(--ink-faint);
  font-size: 0.63rem;
  text-align: right;
}

.game-player__member--primary {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 730;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player__identity,
.result-player__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.game-player__identity .game-player__member,
.result-player__identity .result-player {
  flex: 1 1 auto;
}

.game-player__team--badge {
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-color) 11%, rgba(255, 255, 255, 0.72));
}

.game-player__team--badge span:last-child {
  color: color-mix(in srgb, var(--team-color) 70%, var(--ink));
  font-size: 0.62rem;
  font-weight: 800;
}

.game-bye {
  display: grid;
  grid-template-columns: auto 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--team-color) 22%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--team-color) 8%, rgba(255, 255, 255, 0.55));
  font-size: 0.65rem;
}

.game-bye__label {
  color: var(--accent-deep);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.game-bye > span:last-child {
  color: var(--ink-muted);
  text-align: right;
}

.result-row:first-child {
  background: rgba(245, 208, 105, 0.2);
}

.result-points {
  color: var(--accent-deep);
  font-size: 0.66rem;
  font-weight: 850;
}

.empty-state,
.error-state {
  padding: 28px 18px;
  border: 1px dashed rgba(74, 64, 54, 0.2);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  text-align: center;
}

.empty-state strong,
.error-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.9rem;
}

.empty-state p,
.error-state p {
  margin: 0;
  font-size: 0.76rem;
}

.standings-card {
  min-width: 0;
  overflow: hidden;
  padding: 17px;
}

.standings-card__head {
  align-items: center;
  margin-bottom: 12px;
}

.standings-card__head h3 {
  margin: 0;
  font-size: 0.94rem;
}

.standings-card__head span {
  color: var(--ink-faint);
  font-size: 0.65rem;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  margin-inline: -5px;
  padding: 0 5px 4px;
}

.standings-table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.standings-table th,
.standings-table td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  font-size: 0.69rem;
  text-align: center;
}

.standings-table th {
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  min-width: 145px;
  text-align: left;
}

.standings-table td:first-child {
  width: 28px;
  color: var(--ink-faint);
  font-weight: 790;
}

.standings-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.standings-team strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.standings-player__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.standings-player__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-player__copy small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.56rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-player__copy .team-color {
  width: 7px;
  height: 7px;
}

.standings-table .points-cell {
  color: var(--accent-deep);
  font-weight: 880;
}

.standings-table tr.is-qualified td {
  background: rgba(40, 116, 92, 0.055);
}

.qualification-divider td {
  position: relative;
  height: 21px;
  padding: 0;
  border: 0;
}

.qualification-divider td::before {
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  border-top: 1px dashed rgba(40, 116, 92, 0.52);
  content: "";
}

.qualification-divider span {
  position: relative;
  display: inline-block;
  margin-left: 16px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--success);
  font-size: 0.54rem;
  font-weight: 840;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qualifier-badge {
  background: var(--success-soft);
  color: var(--success);
}

.qualifier-badge--pending {
  background: #fff1c9;
  color: #815500;
}

@media (max-width: 679px) {
  .table-scroll {
    overflow-x: visible;
  }

  .standings-table {
    display: block;
    min-width: 0;
  }

  .standings-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .standings-table tbody {
    display: grid;
    gap: 8px;
  }

  .standings-table tbody tr:not(.qualification-divider) {
    display: grid;
    grid-template-columns: 24px minmax(76px, 1fr) repeat(4, 30px);
    gap: 4px;
    align-items: center;
    padding: 7px 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
  }

  .standings-table th,
  .standings-table td,
  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    min-width: 0;
    padding: 3px 1px;
    border: 0;
  }

  .standings-table td:nth-child(n + 3) {
    display: grid;
    gap: 1px;
    place-items: center;
  }

  .standings-table td:nth-child(3)::before { content: "P"; }
  .standings-table td:nth-child(4)::before { content: "1st"; }
  .standings-table td:nth-child(5)::before { content: "2nd"; }
  .standings-table td:nth-child(6)::before { content: "Pts"; }

  .standings-table td:nth-child(n + 3)::before {
    color: var(--ink-faint);
    font-size: 0.46rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .standings-team {
    flex-wrap: wrap;
    gap: 3px 6px;
  }

  .standings-team .qualifier-badge {
    margin-left: 17px;
  }

  .qualification-divider {
    display: block;
  }
}

.section--final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(232, 225, 255, 0.18), transparent 25rem),
    linear-gradient(145deg, #2e2940, #211e2c 70%);
  color: #f8f4ee;
}

.section--final::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.section--final .page-shell {
  position: relative;
}

.section-heading--light > p {
  color: rgba(248, 244, 238, 0.65);
}

.section-heading--light .kicker {
  color: #c8bbff;
}

.final-layout {
  display: grid;
  gap: 16px;
}

.final-placeholder,
.champion-card,
.final-standings {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.final-placeholder {
  padding: 24px;
}

.champion-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.champion-card::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--team-color, #c8bbff) 42%, transparent);
  filter: blur(12px);
  content: "";
  opacity: 0.45;
}

.champion-card__top {
  position: relative;
  z-index: 1;
}

.trophy-mark {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.25rem;
}

.champion-copy {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.champion-copy .kicker {
  color: rgba(248, 244, 238, 0.58);
}

.champion-copy h3 {
  margin: 5px 0 5px;
  color: #fff;
  font-size: clamp(1.8rem, 9vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.champion-copy p {
  margin: 0;
  color: rgba(248, 244, 238, 0.66);
  font-size: 0.8rem;
}

.champion-winners {
  display: grid;
  gap: 16px;
}

.champion-card--player .champion-copy h3 {
  font-size: clamp(1.55rem, 7vw, 2.75rem);
}

.champion-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}

.champion-player > div {
  min-width: 0;
}

.champion-player--representative {
  margin: 17px 0 0;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--team-color) 34%, rgba(255, 255, 255, 0.13));
  border-radius: 15px;
  background: color-mix(in srgb, var(--team-color) 12%, rgba(255, 255, 255, 0.055));
}

.champion-player--representative .avatar--representative {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.champion-player--representative h4 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.champion-card--runner-up {
  border-color: color-mix(in srgb, var(--team-color) 38%, rgba(255, 255, 255, 0.16));
}

.champion-card--individual-pending {
  min-height: 0;
  border-color: rgba(200, 187, 255, 0.24);
  background: linear-gradient(145deg, rgba(141, 131, 189, 0.15), rgba(255, 255, 255, 0.055));
}

.champion-card--individual-pending .champion-copy {
  margin-top: 20px;
}

.champion-card--individual-pending .champion-copy h3 {
  max-width: 13ch;
  font-size: clamp(1.45rem, 6vw, 2.25rem);
}

.individual-result-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 187, 255, 0.2);
  border-radius: 999px;
  background: rgba(200, 187, 255, 0.08);
  color: rgba(248, 244, 238, 0.78);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.individual-result-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8bbff;
  box-shadow: 0 0 0 4px rgba(200, 187, 255, 0.1);
}

.avatar--winner,
.avatar--representative {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.35);
}

.champion-prize {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 208, 105, 0.28);
  border-radius: 14px;
  background: rgba(245, 208, 105, 0.1);
}

.champion-prize span,
.champion-prize strong,
.champion-prize small {
  display: block;
}

.champion-prize span {
  color: rgba(248, 244, 238, 0.72);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.champion-prize strong {
  color: #f5d069;
  font-size: clamp(1.45rem, 6vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.champion-prize small {
  color: rgba(248, 244, 238, 0.58);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.final-standings {
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.final-standings h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.88rem;
}

.final-table {
  width: 100%;
  border-collapse: collapse;
}

.final-table th,
.final-table td {
  padding: 10px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 244, 238, 0.72);
  font-size: 0.7rem;
  text-align: center;
}

.final-table th {
  color: rgba(248, 244, 238, 0.45);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.final-table th:nth-child(2),
.final-table td:nth-child(2) {
  text-align: left;
}

.final-table tr:first-child td {
  color: #fff;
  font-weight: 800;
}

.final-table .team-color {
  border-color: rgba(255, 255, 255, 0.68);
}

.grand-finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
  background:
    radial-gradient(circle at 8% 4%, rgba(185, 28, 28, 0.2), transparent 25rem),
    radial-gradient(circle at 92% 2%, rgba(29, 78, 216, 0.22), transparent 25rem),
    linear-gradient(145deg, rgba(29, 25, 42, 0.96), rgba(17, 15, 25, 0.98));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 55px rgba(0, 0, 0, 0.28);
}

.grand-finale::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.grand-finale__header {
  display: grid;
  gap: 18px;
}

.grand-finale__intro {
  min-width: 0;
}

.grand-finale__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 105, 105, 0.24);
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.16);
  color: #ffb4b4;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.grand-finale__live i,
.grand-finalist__ready i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.grand-finale__live i {
  box-shadow: 0 0 0 5px rgba(255, 105, 105, 0.1);
  animation: grand-finale-live-pulse 1.6s ease-in-out infinite;
}

.grand-finale__intro .kicker {
  color: #c8bbff;
}

.grand-finale__intro h3 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: clamp(2rem, 9vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.grand-finale__intro > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: rgba(248, 244, 238, 0.68);
  font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  line-height: 1.55;
}

.grand-finale__prize {
  display: grid;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 208, 105, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 208, 105, 0.18), rgba(245, 208, 105, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 25px rgba(0, 0, 0, 0.14);
}

.grand-finale__prize > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(245, 208, 105, 0.26);
  border-radius: 14px;
  background: rgba(245, 208, 105, 0.1);
  color: #f5d069;
  font-size: 1.25rem;
}

.grand-finale__prize small,
.grand-finale__prize strong,
.grand-finale__prize b {
  display: block;
}

.grand-finale__prize small,
.grand-finale__prize b {
  color: rgba(248, 244, 238, 0.58);
  font-size: 0.53rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grand-finale__prize strong {
  margin: 2px 0;
  color: #f5d069;
  font-size: clamp(1.6rem, 7vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.grand-finale__versus {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}

.grand-finale__versus span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.19));
}

.grand-finale__versus span:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.19), transparent);
}

.grand-finale__versus b {
  color: rgba(248, 244, 238, 0.58);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.grand-finale__contenders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grand-finalist {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 12px 9px 11px;
  border: 1px solid color-mix(in srgb, var(--team-color) 44%, rgba(255, 255, 255, 0.14));
  border-radius: 17px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--team-color) 24%, rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.045) 65%);
  box-shadow:
    inset 0 3px 0 var(--team-color),
    0 12px 24px color-mix(in srgb, var(--team-color) 13%, rgba(0, 0, 0, 0.22));
  text-align: center;
}

.grand-finalist__team {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: color-mix(in srgb, var(--team-color) 50%, #fff);
  font-size: 0.51rem;
  font-weight: 900;
  white-space: nowrap;
}

.grand-finalist__team i {
  width: 7px;
  height: 13px;
  flex: 0 0 7px;
  border-radius: 4px;
  background: var(--team-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--team-color) 68%, transparent);
}

.grand-finalist__identity {
  display: grid;
  min-width: 0;
  justify-items: center;
  margin: 13px 0 10px;
}

.avatar--finalist {
  width: clamp(50px, 15vw, 72px);
  height: clamp(50px, 15vw, 72px);
  border-width: 3px;
  border-color: color-mix(in srgb, var(--team-color) 48%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--team-color) 12%, transparent), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.grand-finalist__identity h4 {
  max-width: 100%;
  margin: 9px 0 2px;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(0.78rem, 3.4vw, 1.05rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.grand-finalist__identity small {
  color: rgba(248, 244, 238, 0.52);
  font-size: 0.49rem;
}

.grand-finalist__ready {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(248, 244, 238, 0.67);
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.grand-finalist__ready i {
  width: 5px;
  height: 5px;
  flex-basis: 5px;
  color: var(--team-color);
}

.grand-finale__pending {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.grand-finale__pending > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(200, 187, 255, 0.11);
  color: #c8bbff;
}

.grand-finale__pending small,
.grand-finale__pending strong,
.grand-finale__pending p {
  display: block;
}

.grand-finale__pending small {
  color: rgba(248, 244, 238, 0.46);
  font-size: 0.49rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grand-finale__pending strong {
  margin-top: 1px;
  color: #fff;
  font-size: 0.76rem;
}

.grand-finale__pending p {
  margin: 2px 0 0;
  color: rgba(248, 244, 238, 0.55);
  font-size: 0.58rem;
  line-height: 1.4;
}

@keyframes grand-finale-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.48; transform: scale(0.78); }
}

@media (min-width: 680px) {
  .grand-finale__header {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    align-items: end;
  }

  .grand-finale__contenders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .grand-finalist {
    padding: 15px 11px 13px;
  }
}

.final-pending {
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.065);
  text-align: center;
}

.final-pending__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  color: #c8bbff;
  font-size: 1.15rem;
}

.final-pending strong {
  display: block;
  color: #fff;
  font-size: 0.94rem;
}

.final-pending p {
  max-width: 44ch;
  margin: 5px auto 0;
  color: rgba(248, 244, 238, 0.62);
  font-size: 0.76rem;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(74, 64, 54, 0.09);
  background: var(--canvas-deep);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer strong {
  font-size: 0.8rem;
}

.site-footer p {
  margin: 3px 0 0;
  color: var(--ink-faint);
  font-size: 0.68rem;
}

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

.site-footer a {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 730;
}

.confetti-canvas {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skeleton-card {
  display: grid;
  gap: 13px;
  min-height: 150px;
  padding: 20px;
}

.skeleton {
  display: inline-block;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(99, 83, 67, 0.08), rgba(255, 255, 255, 0.55), rgba(99, 83, 67, 0.08));
  background-size: 220% 100%;
  color: transparent !important;
  animation: skeleton-wave 1.35s ease-in-out infinite;
}

.skeleton--title {
  width: min(92vw, 520px);
  height: 0.88em;
}

.skeleton--line {
  width: min(90%, 520px);
  height: 0.82rem;
}

.skeleton--line-short {
  width: min(62%, 340px);
}

.skeleton--chip {
  width: 105px;
  height: 34px;
}

.skeleton--avatar {
  border: 0;
}

.skeleton--heading {
  width: 42%;
  height: 18px;
}

.skeleton--block {
  width: 100%;
  height: 88px;
}

@keyframes skeleton-wave {
  from { background-position: 100% 0; }
  to { background-position: -110% 0; }
}

@media (min-width: 420px) {
  .header-link--quiet {
    display: inline-flex;
  }

  .schedule-list li {
    grid-template-columns: minmax(118px, 0.85fr) 1.15fr;
    align-items: center;
  }

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

  .final-qualification-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 680px) {
  :root {
    --header-height: 129px;
  }

  .page-shell,
  .header-shell,
  .section-nav__track {
    width: min(100% - 48px, var(--page));
  }

  .header-shell {
    min-height: 70px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .section-nav__track {
    justify-content: center;
    gap: 12px;
  }

  .section-nav a {
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: 44px;
  }

  .host {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .avatar--host {
    width: 84px;
    height: 84px;
  }

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

  .hero h1,
  .hero h2 {
    font-size: clamp(3.5rem, 7.5vw, 5.4rem);
  }

  .overview-strip,
  .standings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    flex-direction: row;
    align-items: end;
    margin-bottom: 34px;
  }

  .section-heading > p {
    text-align: right;
  }

  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

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

  .final-fixture-preview {
    grid-template-columns: minmax(220px, 0.72fr) minmax(340px, 1.28fr);
    align-items: center;
  }

  .final-fixture-preview__note {
    grid-column: 1 / -1;
  }

  .final-layout:has(.champion-card) {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    align-items: stretch;
  }

  .footer-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 359px) {
  .cash-prizes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1020px) {
  .page-shell,
  .header-shell,
  .section-nav__track {
    width: min(100% - 72px, var(--page));
  }

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

  .roster-list {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (hover: hover) {
  .team-card,
  .game-card,
  .standings-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .team-card:hover,
  .game-card:hover,
  .standings-card:hover {
    transform: translateY(-2px);
    box-shadow: 11px 13px 28px rgba(137, 121, 103, 0.22), -9px -9px 22px rgba(255, 255, 255, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-slide { animation: none !important; }
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .confetti-canvas {
    display: none;
  }
}

/* Light Grand Finale podium */
.section--final {
  border-top: 1px solid rgba(93, 78, 160, 0.12);
  background:
    radial-gradient(circle at 8% 5%, rgba(48, 101, 221, 0.14), transparent 25rem),
    radial-gradient(circle at 92% 10%, rgba(126, 34, 206, 0.12), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(245, 208, 105, 0.16), transparent 30rem),
    linear-gradient(180deg, #fdfcff 0%, #f7f3ed 100%);
  color: var(--ink);
}

.section--final::before {
  background-image: radial-gradient(rgba(93, 78, 160, 0.1) 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  opacity: 0.52;
}

.section--final .page-shell {
  z-index: 1;
}

.section-heading--finale {
  align-items: stretch;
  gap: 22px;
}

.section-heading--light h2 {
  color: #29252e;
}

.section-heading--light .kicker {
  color: var(--accent);
}

.finale-heading-copy {
  min-width: 0;
}

.finale-heading-copy > p:last-child {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.final-result-pills {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.final-result-pill {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 1px;
  overflow: hidden;
  padding: 10px 12px 10px 15px;
  border: 1px solid rgba(65, 57, 49, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--inset), 0 8px 20px rgba(86, 70, 102, 0.07);
}

.final-result-pill::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--result-color, #8d83bd);
  content: "";
}

.final-result-pill small,
.final-result-pill strong,
.final-result-pill b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-result-pill small {
  color: var(--result-color, var(--accent));
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.final-result-pill strong {
  color: #29252e;
  font-size: 0.84rem;
  font-weight: 900;
}

.final-result-pill b {
  color: var(--ink-faint);
  font-size: 0.62rem;
  font-weight: 750;
}

.final-result-pill--winner {
  --result-color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.2);
  background: linear-gradient(145deg, rgba(255, 253, 244, 0.96), rgba(234, 242, 255, 0.9));
}

.final-result-pill--runner-up {
  --result-color: #7e22ce;
  border-color: rgba(126, 34, 206, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 235, 255, 0.9));
}

.final-result-pill--pending {
  --result-color: #746d7c;
  grid-column: 1 / -1;
}

.final-result-pill--individual {
  --result-color: #a47518;
  grid-column: 1 / -1;
  border-color: rgba(164, 117, 24, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(252, 242, 205, 0.9));
}

.section--final .final-placeholder,
.section--final .champion-card,
.section--final .final-standings {
  border-color: rgba(65, 57, 49, 0.13);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.94), 0 18px 42px rgba(73, 59, 88, 0.12);
  backdrop-filter: blur(12px);
}

.section--final .champion-card {
  min-width: 0;
  padding: clamp(19px, 3vw, 28px);
}

.section--final .champion-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--team-color, #8d83bd);
  content: "";
}

.section--final .champion-card::after {
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: var(--team-color, #8d83bd);
  opacity: 0.1;
  filter: blur(18px);
}

.section--final .champion-card--winner {
  border-color: rgba(29, 78, 216, 0.28);
  background:
    radial-gradient(circle at 96% 4%, rgba(245, 208, 105, 0.28), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 243, 255, 0.94));
  box-shadow: inset 1px 1px 0 #fff, 0 22px 48px rgba(39, 83, 175, 0.16);
}

.section--final .champion-card--winner::before {
  background: linear-gradient(180deg, #e2ae2a 0%, #1d4ed8 72%);
}

.section--final .champion-card--runner-up {
  border-color: rgba(126, 34, 206, 0.24);
  background:
    radial-gradient(circle at 98% 4%, rgba(204, 165, 238, 0.28), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 238, 255, 0.94));
  box-shadow: inset 1px 1px 0 #fff, 0 18px 40px rgba(106, 54, 145, 0.13);
}

.section--final .champion-card--individual-pending {
  border-color: rgba(116, 109, 124, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(243, 240, 246, 0.94));
  box-shadow: inset 1px 1px 0 #fff, 0 12px 28px rgba(73, 59, 88, 0.09);
}

.section--final .champion-card--individual-pending::before {
  width: 5px;
  background: #aaa2b5;
}

.section--final .champion-card--individual-winners {
  grid-column: 1 / -1;
  border-color: rgba(164, 117, 24, 0.24);
  background:
    radial-gradient(circle at 96% 4%, rgba(245, 208, 105, 0.25), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 225, 0.94));
  box-shadow: inset 1px 1px 0 #fff, 0 16px 36px rgba(122, 91, 38, 0.12);
}

.section--final .champion-card--individual-winners::before {
  background: linear-gradient(180deg, #d8a425, #8f6a18);
}

.section--final .champion-card--individual-winners .champion-card__top > .kicker {
  border-color: rgba(164, 117, 24, 0.2);
  background: #fff4c9;
  color: #795200;
}

.section--final .champion-card--individual-winners .trophy-mark {
  border-color: rgba(164, 117, 24, 0.2);
  background: linear-gradient(145deg, #fffdf4, #f7e5a7);
  color: #9a6811;
}

.section--final .champion-card__top > .kicker {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--team-color) 20%, #ded9d2);
  border-radius: 999px;
  background: #f3f1f8;
  background: color-mix(in srgb, var(--team-color) 9%, white);
  color: #4c4356;
  color: color-mix(in srgb, var(--team-color) 76%, #24221f);
}

.section--final .champion-card--winner .champion-card__top > .kicker {
  border-color: rgba(183, 127, 18, 0.2);
  background: #fff3c8;
  color: #795200;
}

.section--final .trophy-mark {
  border-color: color-mix(in srgb, var(--team-color) 22%, #ded9d2);
  background: #fff;
  color: var(--team-color, var(--accent));
  box-shadow: 0 9px 20px color-mix(in srgb, var(--team-color) 15%, transparent);
}

.section--final .champion-card--winner .trophy-mark {
  border-color: rgba(183, 127, 18, 0.22);
  background: linear-gradient(145deg, #fffdf4, #f7e5a7);
  color: #9a6811;
}

.section--final .champion-copy .kicker {
  color: #625a69;
  color: color-mix(in srgb, var(--team-color) 72%, #403a44);
}

.section--final .champion-copy h3,
.section--final .champion-player--representative h4 {
  color: #272330;
}

.section--final .champion-copy h3 {
  margin-top: 7px;
  font-size: clamp(2rem, 6vw, 3.3rem);
}

.section--final .champion-copy > p:not(.kicker) {
  color: #706978;
  font-size: 0.82rem;
  line-height: 1.5;
}

.section--final .champion-player--representative {
  border-color: color-mix(in srgb, var(--team-color) 24%, #ded9d2);
  background: #f8f7fa;
  background: color-mix(in srgb, var(--team-color) 7%, white);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.section--final .avatar--winner,
.section--final .avatar--representative {
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--team-color) 50%, transparent), 0 8px 18px rgba(49, 41, 55, 0.14);
}

.section--final .champion-prize {
  border-color: color-mix(in srgb, var(--team-color) 24%, #ded9d2);
  background: #faf8fc;
  background: color-mix(in srgb, var(--team-color) 7%, white);
}

.section--final .champion-prize span,
.section--final .champion-prize small {
  color: #736c78;
}

.section--final .champion-prize strong {
  color: var(--team-color, var(--accent));
}

.section--final .champion-prize--winner {
  border-color: rgba(183, 127, 18, 0.24);
  background: linear-gradient(145deg, #fffaf0, #f8ebbb);
}

.section--final .champion-prize--winner strong {
  color: #9a6811;
}

.section--final .champion-prize--runner-up {
  border-color: rgba(126, 34, 206, 0.2);
  background: linear-gradient(145deg, #fff, #f0e2fb);
}

.section--final .individual-result-status {
  border-color: #d8d1df;
  background: #f1edf4;
  color: #665f70;
}

.section--final .individual-result-status i {
  background: #8d83bd;
  box-shadow: 0 0 0 4px rgba(141, 131, 189, 0.12);
}

.individual-winner-award {
  display: grid;
  gap: 17px;
  margin-top: 18px;
}

.individual-winner-award__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 14px;
}

.section--final .individual-winner-award__summary h3 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.7rem);
}

.individual-winner-award__summary > p:last-child {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(164, 117, 24, 0.18);
  border-radius: 999px;
  background: rgba(255, 244, 201, 0.72);
  color: #795d25;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

.individual-winners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.individual-winner {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(65, 57, 49, 0.11);
  border-radius: 14px;
  background: #faf9fb;
  background: color-mix(in srgb, var(--team-color) 7%, white);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.individual-winner::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--team-color);
  content: "";
}

.avatar--individual-winner {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--team-color) 45%, transparent), 0 6px 14px rgba(49, 41, 55, 0.12);
}

.individual-winner__identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.individual-winner__identity strong {
  overflow: hidden;
  color: #29252e;
  font-size: 0.76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.individual-winner__identity small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #756e78;
  font-size: 0.58rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.individual-winner__identity i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--team-color);
}

.individual-winner > b {
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--team-color) 20%, #ded9d2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: color-mix(in srgb, var(--team-color) 80%, #24221f);
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.champion-winners--finale {
  gap: 18px;
}

@media (min-width: 420px) {
  .final-result-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .final-result-pill--pending {
    grid-column: auto;
  }

  .final-result-pill--individual {
    grid-column: auto;
  }
}

@media (min-width: 480px) {
  .individual-winners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 680px) {
  .section-heading--finale {
    align-items: center;
  }

  .section-heading--finale .finale-heading-copy {
    flex: 1 1 48%;
  }

  .final-result-pills {
    width: min(100%, 560px);
    flex: 0 1 560px;
  }

  .champion-winners--finale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .champion-winners--finale > .champion-card--winner,
  .champion-winners--finale > .champion-card--runner-up {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .champion-winners--finale > .champion-card--winner .champion-copy,
  .champion-winners--finale > .champion-card--runner-up .champion-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .champion-winners--finale > .champion-card--winner .champion-player--representative,
  .champion-winners--finale > .champion-card--runner-up .champion-player--representative {
    margin-bottom: 18px;
  }

  .champion-winners--finale > .champion-card--winner .champion-prize,
  .champion-winners--finale > .champion-card--runner-up .champion-prize {
    margin-top: auto;
  }

  .champion-winners--finale > .champion-card--individual-pending {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 24px;
    padding-block: 18px;
  }

  .champion-winners--finale > .champion-card--individual-pending .champion-copy {
    margin-top: 0;
  }
}

@media (min-width: 900px) {
  .individual-winners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .section--final {
    padding-block: 44px;
  }

  .section-heading--finale {
    margin-bottom: 22px;
  }

  .section--final .champion-card {
    padding: 18px;
  }

  .section--final .champion-copy {
    margin-top: 18px;
  }
}

@media (max-height: 560px) and (min-width: 680px) {
  .section--final {
    padding-block: 26px;
  }

  .section-heading--finale {
    margin-bottom: 17px;
  }

  .section--final .champion-card {
    padding: 15px 17px;
    border-radius: 17px;
  }

  .section--final .champion-copy {
    margin-top: 13px;
  }

  .section--final .champion-copy h3 {
    font-size: clamp(1.65rem, 4vw, 2.4rem);
  }

  .section--final .champion-player--representative {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .section--final .champion-player--representative .avatar--representative {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .section--final .champion-prize {
    margin-top: 10px;
    padding: 9px 10px;
  }

  .section--final .trophy-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}

/* Unified three-round championship */
.player-plan {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(93, 78, 160, 0.13);
  border-radius: 13px;
  background: rgba(93, 78, 160, 0.07);
  color: var(--accent-deep);
  box-shadow: var(--inset);
}

.player-plan strong {
  font-size: 0.72rem;
  font-weight: 830;
}

.player-plan span {
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.45;
}

.teams-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.games-stage--championship {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.result-row--player-primary {
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
}

.result-player {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-team--badge {
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-color) 11%, rgba(255, 255, 255, 0.72));
}

.result-team--badge span:last-child {
  color: color-mix(in srgb, var(--team-color) 70%, var(--ink));
  font-size: 0.62rem;
  font-weight: 800;
}

.standings-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.standings-card--combined {
  width: 100%;
}

.standings-table--combined {
  min-width: 500px;
}

.standings-table--teams {
  min-width: 550px;
}

.standings-table--players {
  min-width: 540px;
}

.player-standings-scroll {
  max-height: 520px;
  overflow-x: auto;
  overflow-y: auto;
  border-block: 1px solid var(--line);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.player-standings-scroll:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}

.player-standings-scroll .standings-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: color-mix(in srgb, var(--surface) 94%, white);
  box-shadow: 0 1px 0 var(--line);
}

.standings-table tr.is-champion td {
  background: rgba(245, 208, 105, 0.13);
}

.standings-note {
  margin: 12px 3px 0;
  color: var(--ink-faint);
  font-size: 0.62rem;
  line-height: 1.45;
}

.final-layout:has(.champion-card--unified) {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 679px) {
  .standings-table--combined {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .standings-table--combined tbody tr:not(.qualification-divider) {
    grid-template-columns: 21px minmax(64px, 1fr) repeat(5, 25px);
    gap: 3px;
  }

  .standings-table--combined td:nth-child(3)::before { content: "P"; }
  .standings-table--combined td:nth-child(4)::before { content: "1st"; }
  .standings-table--combined td:nth-child(5)::before { content: "2nd"; }
  .standings-table--combined td:nth-child(6)::before { content: "3rd"; }
  .standings-table--combined td:nth-child(7)::before { content: "Pts"; }

  .standings-table--teams tbody tr:not(.qualification-divider) {
    grid-template-columns: 21px minmax(64px, 1fr) repeat(6, 25px);
  }

  .standings-table--teams td:nth-child(3)::before { content: "P"; }
  .standings-table--teams td:nth-child(4)::before { content: "BYE"; }
  .standings-table--teams td:nth-child(5)::before { content: "1st"; }
  .standings-table--teams td:nth-child(6)::before { content: "2nd"; }
  .standings-table--teams td:nth-child(7)::before { content: "3rd"; }
  .standings-table--teams td:nth-child(8)::before { content: "Pts"; }

  .standings-table--combined td:nth-child(n + 3) {
    display: grid;
    gap: 1px;
    place-items: center;
  }

  .standings-table--combined td:nth-child(n + 3)::before {
    color: var(--ink-faint);
    font-size: 0.43rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .standings-table--players tbody tr:not(.qualification-divider) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 8px 4px;
    padding: 12px 10px 10px;
  }

  .standings-table--players td:first-child {
    position: relative;
    z-index: 1;
    display: grid;
    grid-row: 1;
    grid-column: 1;
    width: 28px;
    height: 28px;
    align-self: center;
    justify-self: start;
    padding: 0;
    place-items: center;
    border-radius: 9px;
    background: rgba(93, 78, 160, 0.08);
    color: var(--accent-deep);
    font-size: 0.64rem;
  }

  .standings-table--players td:nth-child(2) {
    grid-row: 1;
    grid-column: 1 / -1;
    padding-inline-start: 38px;
  }

  .standings-table--players td:nth-child(3) { grid-row: 2; grid-column: 1; }
  .standings-table--players td:nth-child(4) { grid-row: 2; grid-column: 2; }
  .standings-table--players td:nth-child(5) { grid-row: 2; grid-column: 3; }
  .standings-table--players td:nth-child(6) { grid-row: 2; grid-column: 4; }
  .standings-table--players td:nth-child(7) { grid-row: 2; grid-column: 5; }

  .standings-table--players td:nth-child(n + 3) {
    min-height: 42px;
    align-content: center;
    padding: 7px 2px 2px;
    border-top: 1px solid rgba(74, 64, 54, 0.08);
    font-size: 0.75rem;
  }

  .standings-table--players .standings-player {
    width: 100%;
    min-height: 44px;
    gap: 10px;
  }

  .standings-table--players .avatar--standing {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }

  .standings-table--players .standings-player__copy strong {
    font-size: 0.82rem;
  }

  .standings-table--players .standings-player__copy small {
    font-size: 0.62rem;
  }

  .standings-table--players .standings-player .qualifier-badge {
    margin-left: auto;
  }

  .player-standings-scroll {
    max-height: 700px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 3px;
  }

  .result-row--player-primary {
    grid-template-columns: 28px minmax(70px, 1fr) auto auto;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .standings-card {
    padding: 13px;
  }
}

@media (min-width: 680px) {
  .teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1020px) {
  .teams-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Standings-first public scoreboard */
.section--standings-primary {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px) 0 58px;
  border-bottom: 1px solid rgba(93, 78, 160, 0.14);
  background:
    radial-gradient(circle at 88% 8%, rgba(244, 210, 104, 0.22), transparent 24rem),
    radial-gradient(circle at 10% 24%, rgba(207, 198, 246, 0.42), transparent 28rem),
    linear-gradient(180deg, #f8f4ed 0%, #eee8df 100%);
}

.section--standings-primary::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(93, 78, 160, 0.09) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
  pointer-events: none;
  content: "";
}

.section--standings-primary > .page-shell {
  position: relative;
}

.standings-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.standings-hero-heading__copy {
  min-width: 0;
}

.standings-hero-heading .eyebrow-row {
  margin-bottom: 22px;
}

.standings-hero-heading h1 {
  max-width: 12ch;
  margin: 5px 0 10px;
  color: #29252e;
  font-size: clamp(2.35rem, 10vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.standings-hero-heading__copy > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 3vw, 1.04rem);
  line-height: 1.6;
}

.standings-prize {
  display: grid;
  width: min(100%, 280px);
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 119, 26, 0.26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 251, 222, 0.96), rgba(242, 222, 153, 0.82));
  color: #5f4312;
  box-shadow: 7px 8px 20px rgba(122, 91, 38, 0.15), -5px -5px 16px rgba(255, 255, 255, 0.72);
}

.standings-prize > span {
  display: grid;
  width: 48px;
  height: 48px;
  grid-row: 1 / 4;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.55);
  color: #9b6815;
  font-size: 1.55rem;
  box-shadow: var(--inset);
}

.standings-prize small,
.standings-prize b {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-prize strong {
  font-size: 1.45rem;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.standings-prize b {
  color: #8a641e;
}

.section--players-secondary {
  padding-top: 54px;
  border-bottom: 1px solid rgba(74, 64, 54, 0.08);
  background: rgba(250, 247, 242, 0.7);
}

.section-heading--players {
  gap: 16px;
}

.player-prize-mini {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 9px 12px;
  border: 1px solid rgba(93, 78, 160, 0.16);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: var(--inset);
}

.player-prize-mini > span:first-child {
  font-size: 1.2rem;
}

.player-prize-mini > span:last-child {
  display: grid;
}

.player-prize-mini small {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-prize-mini strong {
  font-size: 1rem;
  font-weight: 900;
}

.standings-card--primary {
  padding: clamp(16px, 3vw, 25px);
  border-color: rgba(93, 78, 160, 0.22);
  background: rgba(255, 253, 249, 0.91);
  box-shadow: 12px 14px 34px rgba(103, 87, 70, 0.2), -9px -9px 24px rgba(255, 255, 255, 0.82);
}

.standings-card--secondary {
  background: rgba(255, 255, 255, 0.56);
}

.standings-card--primary .standings-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.standings-card__title {
  display: grid;
  gap: 4px;
}

.standings-card--primary .standings-card__title h3 {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  letter-spacing: -0.025em;
}

.standings-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success) !important;
  font-size: 0.57rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.standings-live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(40, 116, 92, 0.1);
}

.standings-progress {
  display: flex;
  min-width: 94px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: var(--inset);
}

.standings-progress strong {
  font-size: 1.25rem;
  font-weight: 920;
  line-height: 1;
}

.standings-progress span {
  color: var(--accent-deep);
  font-size: 0.52rem;
  font-weight: 780;
  line-height: 1.2;
}

.standings-table--teams {
  border-collapse: separate;
  border-spacing: 0 7px;
}

.standings-table--teams thead th {
  border: 0;
  padding-block: 5px;
}

.standings-table--teams tbody td {
  border-top: 1px solid rgba(74, 64, 54, 0.1);
  border-bottom: 1px solid rgba(74, 64, 54, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.standings-table--teams tbody td:first-child {
  border-left: 1px solid rgba(74, 64, 54, 0.1);
  border-radius: 13px 0 0 13px;
}

.standings-table--teams tbody td:last-child {
  border-right: 1px solid rgba(74, 64, 54, 0.1);
  border-radius: 0 13px 13px 0;
}

.standings-table--teams tr.is-leading td,
.standings-table--teams tr.is-champion td {
  border-color: rgba(177, 126, 31, 0.28);
  background: rgba(255, 245, 199, 0.62);
}

.standings-table--teams tr.is-tied td {
  background: rgba(255, 249, 228, 0.54);
}

.standings-table--teams .rank-cell span {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  background: rgba(93, 78, 160, 0.08);
  color: var(--accent-deep);
  font-weight: 900;
}

.standings-table--teams tr.is-leading .rank-cell span,
.standings-table--teams tr.is-champion .rank-cell span {
  background: #f1d98c;
  color: #664712;
}

.standings-table--teams .standings-team {
  gap: 10px;
}

.standings-table--teams .team-color {
  width: 13px;
  height: 34px;
  flex: 0 0 13px;
  border-radius: 8px;
  background: var(--team-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.standings-team__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.standings-team__copy strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.standings-team__copy small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-table--teams .points-cell strong {
  font-size: 1rem;
  font-weight: 930;
}

.standings-card--primary .standings-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(93, 78, 160, 0.055);
  color: var(--ink-soft);
}

.standings-card--primary .standings-note strong {
  color: var(--accent-deep);
}

@media (min-width: 680px) {
  .standings-hero-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
  }

  .standings-prize {
    flex: 0 0 260px;
  }

  .section-heading--players {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .player-prize-mini {
    align-self: auto;
  }

  .standings-table--teams th,
  .standings-table--teams td {
    padding: 12px 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 679px) {
  .section--standings-primary {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .standings-hero-heading {
    gap: 16px;
    margin-bottom: 18px;
  }

  .standings-hero-heading .eyebrow-row {
    margin-bottom: 18px;
  }

  .standings-prize {
    width: 100%;
  }

  .standings-card--primary {
    padding: 13px;
  }

  .standings-card--primary .table-scroll {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .standings-table--teams {
    display: block;
    width: 100%;
    min-width: 0;
    border-spacing: 0;
  }

  .standings-table--teams tbody {
    gap: 10px;
  }

  .standings-table--teams tbody tr:not(.qualification-divider) {
    display: grid;
    grid-template-columns: 38px repeat(4, minmax(0, 1fr)) 48px;
    grid-template-rows: auto auto;
    gap: 8px 4px;
    align-items: center;
    padding: 11px 9px 9px;
    border: 1px solid rgba(74, 64, 54, 0.11);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.61);
    box-shadow: 3px 4px 10px rgba(111, 92, 73, 0.08);
  }

  .standings-table--teams tbody tr.is-leading,
  .standings-table--teams tbody tr.is-champion {
    border-color: rgba(177, 126, 31, 0.32);
    background: rgba(255, 246, 205, 0.72);
  }

  .standings-table--teams tbody td,
  .standings-table--teams tbody td:first-child,
  .standings-table--teams tbody td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .standings-table--teams td:first-child {
    display: grid;
    grid-row: 1;
    grid-column: 1;
    width: 34px;
    place-items: center;
  }

  .standings-table--teams .rank-cell span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .standings-table--teams td:nth-child(2) {
    grid-row: 1;
    grid-column: 2 / 6;
    padding: 0;
  }

  .standings-table--teams td:nth-child(3) { grid-row: 2; grid-column: 2; }
  .standings-table--teams td:nth-child(4) { grid-row: 2; grid-column: 3; }
  .standings-table--teams td:nth-child(5) { grid-row: 2; grid-column: 4; }
  .standings-table--teams td:nth-child(6) { grid-row: 2; grid-column: 5; }
  .standings-table--teams td:nth-child(7) { grid-row: 2; grid-column: 6; }

  .standings-table--teams td:nth-child(n + 3):nth-child(-n + 7) {
    display: grid;
    min-height: 35px;
    align-content: center;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(74, 64, 54, 0.08);
    place-items: center;
    font-size: 0.7rem;
  }

  .standings-table--teams td:nth-child(8) {
    display: grid;
    grid-row: 1;
    grid-column: 6;
    align-content: center;
    gap: 0;
    place-items: center;
    color: var(--accent-deep);
  }

  .standings-table--teams td:nth-child(8)::before {
    content: "Pts";
  }

  .standings-table--teams .points-cell strong {
    font-size: 1.08rem;
  }

  .standings-table--teams .standings-team {
    width: 100%;
    gap: 8px;
  }

  .standings-table--teams .team-color {
    width: 10px;
    height: 38px;
    flex-basis: 10px;
  }

  .standings-team__copy strong {
    font-size: 0.86rem;
  }

  .standings-team__copy small {
    font-size: 0.58rem;
  }

  .standings-table--teams .qualifier-badge {
    margin-left: 0;
  }
}

@media (max-width: 370px) {
  .standings-table--teams tbody tr:not(.qualification-divider) {
    grid-template-columns: 34px repeat(4, minmax(0, 1fr)) 42px;
    padding-inline: 7px;
  }

  .standings-team__copy small {
    display: none;
  }
}

/* Team colors belong to the primary leaderboard only. */
.standings-table--teams tbody tr {
  --team-tint: color-mix(in srgb, var(--team-color) 9%, #fffdf9);
  --team-border: color-mix(in srgb, var(--team-color) 30%, rgba(74, 64, 54, 0.12));
}

.standings-table--teams tbody td {
  border-color: var(--team-border);
  background: var(--team-tint);
}

.standings-table--teams tbody td:first-child {
  border-left-color: var(--team-border);
  box-shadow: inset 4px 0 0 var(--team-color);
}

.standings-table--teams tbody td:last-child {
  border-right-color: var(--team-border);
}

.standings-table--teams .rank-cell span {
  border: 1px solid color-mix(in srgb, var(--team-color) 24%, transparent);
  background: color-mix(in srgb, var(--team-color) 15%, #fff);
  color: color-mix(in srgb, var(--team-color) 72%, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.standings-table--teams .standings-team__copy strong {
  color: color-mix(in srgb, var(--team-color) 58%, var(--ink));
}

.standings-table--teams .team-color {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    0 3px 9px color-mix(in srgb, var(--team-color) 30%, transparent);
}

.standings-table--teams .points-cell strong {
  display: inline-grid;
  min-width: 38px;
  min-height: 32px;
  padding: 4px 8px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--team-color) 24%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--team-color) 16%, #fff);
  color: color-mix(in srgb, var(--team-color) 74%, var(--ink));
  box-shadow: 2px 3px 7px color-mix(in srgb, var(--team-color) 14%, transparent);
}

.standings-table--teams tr.is-leading td,
.standings-table--teams tr.is-champion td {
  border-color: color-mix(in srgb, var(--team-color) 38%, #b17e1f);
  background: color-mix(in srgb, var(--team-color) 11%, #fff4c9);
}

.standings-table--teams tr.is-leading .rank-cell span,
.standings-table--teams tr.is-champion .rank-cell span {
  border-color: color-mix(in srgb, var(--team-color) 34%, #b17e1f);
  background: color-mix(in srgb, var(--team-color) 18%, #f5dda0);
  color: color-mix(in srgb, var(--team-color) 68%, #5f4312);
}

@media (hover: hover) {
  .standings-table--teams tbody tr {
    transition: filter 160ms ease, transform 160ms ease;
  }

  .standings-table--teams tbody tr:hover {
    filter: saturate(1.13);
    transform: translateY(-1px);
  }
}

@media (max-width: 679px) {
  .standings-table--teams tbody tr:not(.qualification-divider) {
    border-color: var(--team-border);
    background:
      linear-gradient(105deg, color-mix(in srgb, var(--team-color) 13%, #fff) 0%, var(--team-tint) 54%, #fffdf9 100%);
    box-shadow:
      inset 4px 0 0 var(--team-color),
      3px 5px 12px color-mix(in srgb, var(--team-color) 12%, rgba(111, 92, 73, 0.1));
  }

  .standings-table--teams tbody td,
  .standings-table--teams tbody td:first-child,
  .standings-table--teams tbody td:last-child {
    background: transparent;
    box-shadow: none;
  }

  .standings-table--teams td:nth-child(n + 3):nth-child(-n + 7) {
    border-top-color: color-mix(in srgb, var(--team-color) 18%, rgba(74, 64, 54, 0.08));
  }

  .standings-table--teams .points-cell strong {
    min-width: 40px;
    min-height: 34px;
    padding: 3px 6px;
  }
}

/* Compact member portraits inside each team-standing row. */
.standings-team__title-line,
.standings-team__meta {
  display: flex;
  min-width: 0;
  align-items: center;
}

.standings-team__title-line {
  flex-wrap: wrap;
  gap: 3px 6px;
}

.standings-team__title-line strong {
  min-width: 0;
}

.standings-team__title-line .qualifier-badge {
  margin-left: 0;
  padding: 2px 6px;
  font-size: 0.5rem;
}

.standings-team__meta {
  gap: 7px;
  margin-top: 3px;
}

.standings-team__meta small {
  min-width: 0;
  flex: 1 1 auto;
}

.standings-team__members {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding-inline-end: 2px;
}

.standings-team__members .avatar--team-stack,
.standings-team__members .team-avatar-stack__more {
  position: relative;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid rgba(255, 253, 249, 0.96);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(56, 45, 35, 0.18);
}

.standings-team__members > :first-child {
  margin-left: 0;
}

.standings-team__members .avatar--team-stack {
  font-size: 0.4rem;
}

.team-avatar-stack__more {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--team-color) 18%, #fff);
  color: color-mix(in srgb, var(--team-color) 74%, var(--ink));
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 679px) {
  .standings-team__members .avatar--team-stack,
  .standings-team__members .team-avatar-stack__more {
    width: 20px;
    height: 20px;
    margin-left: -5px;
  }

  .standings-team__members > :first-child {
    margin-left: 0;
  }
}

/* Refined team scorecards: one color accent, plain score, quiet stat tiles. */
.standings-table--teams .points-cell strong {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--team-color) 74%, var(--ink));
  line-height: 1;
}

@media (max-width: 679px) {
  .standings-card--primary {
    border-color: rgba(93, 78, 160, 0.12);
    box-shadow: 0 12px 28px rgba(103, 87, 70, 0.14);
  }

  .standings-progress {
    border-radius: 14px;
    box-shadow: none;
  }

  .standings-table--teams tbody {
    gap: 9px;
  }

  .standings-table--teams tbody tr:not(.qualification-divider) {
    gap: 7px 4px;
    padding: 10px 9px 9px 12px;
    border-color: rgba(74, 64, 54, 0.075);
    border-radius: 15px;
    background: linear-gradient(112deg, color-mix(in srgb, var(--team-color) 9%, #fff) 0%, #fffdf9 88%);
    box-shadow:
      inset 4px 0 0 var(--team-color),
      0 6px 16px color-mix(in srgb, var(--team-color) 9%, rgba(65, 50, 40, 0.1));
  }

  .standings-table--teams tbody tr.is-leading,
  .standings-table--teams tbody tr.is-champion {
    border-color: rgba(177, 126, 31, 0.16);
    background: linear-gradient(112deg, color-mix(in srgb, var(--team-color) 8%, #fff7d9) 0%, #fffdf4 88%);
  }

  .standings-table--teams .rank-cell span {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--team-color) 11%, rgba(255, 255, 255, 0.78));
    box-shadow: none;
  }

  .standings-table--teams .standings-team > .team-color {
    display: none;
  }

  .standings-table--teams .standings-team {
    gap: 0;
  }

  .standings-team__meta {
    gap: 5px;
    margin-top: 1px;
  }

  .standings-table--teams td:nth-child(n + 3):nth-child(-n + 7) {
    min-height: 34px;
    padding: 4px 1px 3px;
    border: 0;
    border-radius: 9px;
    background: color-mix(in srgb, var(--team-color) 4%, rgba(255, 255, 255, 0.7));
  }

  .standings-table--teams td:nth-child(n + 3):nth-child(-n + 7)::before {
    color: color-mix(in srgb, var(--team-color) 24%, var(--ink-faint));
  }

  .standings-table--teams td:nth-child(8) {
    justify-self: end;
    padding-right: 3px;
    place-items: end;
    text-align: right;
  }

  .standings-table--teams td:nth-child(8)::before {
    content: "POINTS";
    color: var(--ink-faint);
    font-size: 0.43rem;
    letter-spacing: 0.06em;
    line-height: 1;
  }

  .standings-table--teams .points-cell strong {
    font-size: 1.38rem;
  }
}

/* Top two keep their real team colors; every other card is quiet and neutral. */
.standings-table--teams tbody tr:not(.is-top-team) td {
  border-top-color: rgba(91, 88, 84, 0.18);
  border-bottom-color: rgba(91, 88, 84, 0.18);
  background: linear-gradient(100deg, #f1f1ef 0%, #f8f8f6 72%);
}

.standings-table--teams tbody tr:not(.is-top-team) td:first-child {
  border-left-color: rgba(91, 88, 84, 0.18);
  box-shadow: inset 5px 0 0 var(--team-color);
}

.standings-table--teams tbody tr:not(.is-top-team) td:last-child {
  border-right-color: rgba(91, 88, 84, 0.18);
}

.standings-table--teams tr:not(.is-top-team) .rank-cell span {
  border-color: rgba(91, 88, 84, 0.18);
  background: #e7e7e4;
  color: #5f605e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.standings-table--teams tr:not(.is-top-team) .standings-team__copy strong {
  color: color-mix(in srgb, var(--team-color) 68%, var(--ink));
}

.standings-table--teams tr:not(.is-top-team) .points-cell strong {
  color: #3f403e;
}

.standings-table--teams tr:not(.is-top-team) .team-color {
  background: var(--team-color);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 3px 9px color-mix(in srgb, var(--team-color) 24%, transparent);
}

.standings-table--teams tbody tr.is-top-team td {
  border-top-color: color-mix(in srgb, var(--team-color) 42%, rgba(74, 64, 54, 0.12));
  border-bottom-color: color-mix(in srgb, var(--team-color) 42%, rgba(74, 64, 54, 0.12));
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--team-color) 16%, #fff) 0%,
    color-mix(in srgb, var(--team-color) 7%, #fffdf9) 74%
  );
}

.standings-table--teams tbody tr.is-top-team td:first-child {
  border-left-color: var(--team-color);
  box-shadow: inset 5px 0 0 var(--team-color), -3px 3px 13px color-mix(in srgb, var(--team-color) 19%, transparent);
}

.standings-table--teams tbody tr.is-top-team td:last-child {
  border-right-color: color-mix(in srgb, var(--team-color) 48%, rgba(74, 64, 54, 0.12));
  box-shadow: 5px 4px 15px color-mix(in srgb, var(--team-color) 16%, transparent);
}

.standings-table--teams tr.is-top-team .rank-cell span {
  border-color: color-mix(in srgb, var(--team-color) 48%, transparent);
  background: color-mix(in srgb, var(--team-color) 16%, #fff);
  color: color-mix(in srgb, var(--team-color) 78%, var(--ink));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--team-color) 8%, transparent), 0 4px 10px color-mix(in srgb, var(--team-color) 18%, transparent);
  transform: scale(1.06);
}

.standings-table--teams tr.is-top-team .points-cell strong {
  color: color-mix(in srgb, var(--team-color) 78%, var(--ink));
  font-size: 1.08rem;
}

@media (max-width: 679px) {
  .standings-table--teams tbody tr:not(.is-top-team):not(.qualification-divider) {
    border-color: rgba(91, 88, 84, 0.16);
    background: linear-gradient(112deg, #efefed 0%, #fafaf8 88%);
    box-shadow: inset 5px 0 0 var(--team-color), 0 6px 15px rgba(65, 61, 56, 0.09);
  }

  .standings-table--teams tbody tr.is-top-team:not(.qualification-divider) {
    border-color: color-mix(in srgb, var(--team-color) 42%, rgba(74, 64, 54, 0.1));
    background: linear-gradient(
      112deg,
      color-mix(in srgb, var(--team-color) 17%, #fff) 0%,
      color-mix(in srgb, var(--team-color) 5%, #fffdf9) 88%
    );
    box-shadow: inset 5px 0 0 var(--team-color), 0 8px 20px color-mix(in srgb, var(--team-color) 17%, transparent);
  }

  .standings-table--teams tbody tr.is-top-team td:first-child,
  .standings-table--teams tbody tr.is-top-team td:last-child,
  .standings-table--teams tbody tr:not(.is-top-team) td:first-child {
    box-shadow: none;
  }

  .standings-table--teams tr.is-top-team .rank-cell span {
    width: 32px;
    height: 32px;
  }
}

/* Expandable individual results inside the team leaderboard. */
.standings-team-row {
  cursor: pointer;
}

.standings-team-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.standings-team-toggle:focus-visible {
  border-radius: 10px;
  outline: 3px solid color-mix(in srgb, var(--team-color) 32%, transparent);
  outline-offset: 4px;
}

.standing-chevron {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(74, 64, 54, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: color-mix(in srgb, var(--team-color) 68%, var(--ink));
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.standing-chevron svg {
  display: block;
  width: 11px;
  height: 8px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.standings-team-row.is-expanded .standing-chevron {
  background: color-mix(in srgb, var(--team-color) 12%, #fff);
  transform: rotate(180deg);
}

.standings-table--teams tbody tr.team-round-detail,
.standings-table--teams tbody tr.team-round-detail:hover {
  filter: none;
  transform: none;
}

.standings-table--teams tbody tr.team-round-detail > td,
.standings-table--teams tbody tr.team-round-detail > td:first-child,
.standings-table--teams tbody tr.team-round-detail > td:last-child {
  padding: 2px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-round-detail__panel {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--team-color) 22%, rgba(74, 64, 54, 0.1));
  border-radius: 17px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 7%, #f8f7f4), #f2f1ef 72%);
  box-shadow: inset 4px 0 0 var(--team-color), 0 8px 22px rgba(74, 62, 50, 0.1);
  animation: team-detail-reveal 200ms ease-out;
}

.team-round-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.team-round-detail__head > span small,
.team-round-detail__head > span strong {
  display: block;
}

.team-round-detail__head > span small {
  color: color-mix(in srgb, var(--team-color) 70%, var(--ink));
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-round-detail__head > span strong {
  margin-top: 1px;
  color: var(--ink);
  font-size: 0.92rem;
}

.team-round-detail__head button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(74, 64, 54, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.team-round-detail__head button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--team-color) 30%, transparent);
  outline-offset: 2px;
}

.team-round-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.team-round-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(74, 64, 54, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 3px 10px rgba(74, 62, 50, 0.06);
}

.team-round-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 2px 8px;
}

.team-round-card > header small,
.team-round-card > header strong {
  display: block;
}

.team-round-card > header small {
  color: var(--ink-faint);
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-round-card > header strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.team-round-card > header b {
  padding: 3px 6px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--team-color) 10%, #efeeeb);
  color: color-mix(in srgb, var(--team-color) 66%, var(--ink-soft));
  font-size: 0.54rem;
}

.team-round-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.round-position-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 6px;
  border-radius: 9px;
  background: #f4f3f1;
}

.round-position-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.round-position-player > span:not(.avatar):not(.round-bye-icon) {
  min-width: 0;
}

.round-position-player strong,
.round-position-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-position-player strong {
  color: var(--ink);
  font-size: 0.61rem;
}

.round-position-player small {
  color: var(--ink-faint);
  font-size: 0.5rem;
}

.avatar--round-position,
.round-bye-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.avatar--round-position {
  border-width: 2px;
}

.round-bye-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--team-color) 13%, #fff);
  color: color-mix(in srgb, var(--team-color) 72%, var(--ink));
  font-size: 0.56rem;
  font-weight: 900;
}

.round-position-badge {
  min-width: 48px;
  padding: 4px 6px;
  border-radius: 7px;
  background: #e7e6e3;
  color: #62615e;
  font-size: 0.5rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.round-position-row--1 .round-position-badge { background: #f7e8ac; color: #76520b; }
.round-position-row--2 .round-position-badge { background: #e3e8ee; color: #526171; }
.round-position-row--3 .round-position-badge { background: #f1ddcf; color: #844b2d; }
.round-position-row--bye .round-position-badge { background: #e8e1ff; color: #584394; }
.round-position-row--pending .round-position-badge { background: #e9e8e5; color: #77736e; }

.team-round-empty {
  margin: 0;
  padding: 12px 6px;
  color: var(--ink-faint);
  font-size: 0.58rem;
  text-align: center;
}

.tv-mode .standing-chevron,
.tv-mode .team-round-detail {
  display: none;
}

.tv-mode .standings-team-row {
  cursor: default;
}

@keyframes team-detail-reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .team-round-detail__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 679px) {
  .standing-chevron {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .standings-table--teams tbody tr.team-round-detail,
  .standings-table--teams tbody tr.team-round-detail:not(.qualification-divider) {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .standings-table--teams tbody tr.team-round-detail > td {
    display: block;
    width: 100%;
    padding: 0 0 3px;
  }

  .team-round-detail__panel {
    padding: 11px;
    border-radius: 15px;
  }
}

/* Live team-standing motion: brief, state-aware, and limited to eight rows. */
.standings-team-row.is-entering {
  animation-name: standings-row-enter;
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.22, 0.72, 0.25, 1);
  animation-delay: calc(var(--standings-index) * 45ms);
  animation-fill-mode: backwards;
}

.standings-team-row.is-rank-up {
  animation: standings-rank-up 440ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.standings-team-row.is-rank-down {
  animation: standings-rank-down 440ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.standings-team-row.is-points-changed .points-cell strong {
  animation: standings-points-pop 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}

.standings-team-row.is-new-leader .qualifier-badge {
  position: relative;
}

.standings-team-row.is-new-leader .qualifier-badge::after {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(198, 146, 43, 0.78);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: standings-leader-ring 850ms ease-out 2;
}

.standings-team__members > * {
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .standings-team__members:hover > :nth-child(1) { transform: translateX(-3px) translateY(-1px); }
  .standings-team__members:hover > :nth-child(2) { transform: translateX(-1px) translateY(-1px); }
  .standings-team__members:hover > :nth-child(3) { transform: translateX(1px) translateY(-1px); }
  .standings-team__members:hover > :nth-child(4) { transform: translateX(3px) translateY(-1px); }
  .standings-team__members:hover > :nth-child(5) { transform: translateX(5px) translateY(-1px); }
}

.standings-team__members:active > :nth-child(1) { transform: translateX(-3px) translateY(-1px); }
.standings-team__members:active > :nth-child(2) { transform: translateX(-1px) translateY(-1px); }
.standings-team__members:active > :nth-child(3) { transform: translateX(1px) translateY(-1px); }
.standings-team__members:active > :nth-child(4) { transform: translateX(3px) translateY(-1px); }
.standings-team__members:active > :nth-child(5) { transform: translateX(5px) translateY(-1px); }

@keyframes standings-row-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes standings-rank-up {
  from {
    opacity: 0.72;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes standings-rank-down {
  from {
    opacity: 0.72;
    transform: translateY(-9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes standings-points-pop {
  0% {
    opacity: 0.62;
    transform: scale(0.84);
    text-shadow: none;
  }
  55% {
    opacity: 1;
    transform: scale(1.18);
    text-shadow: 0 0 14px color-mix(in srgb, var(--team-color) 62%, transparent);
  }
  100% {
    transform: scale(1);
    text-shadow: none;
  }
}

@keyframes standings-leader-ring {
  from {
    opacity: 0.68;
    transform: scale(0.84);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .standings-team-row.is-entering,
  .standings-team-row.is-rank-up,
  .standings-team-row.is-rank-down,
  .standings-team-row.is-points-changed .points-cell strong,
  .standings-team-row.is-new-leader .qualifier-badge::after {
    opacity: 1 !important;
    animation: none !important;
    animation-delay: 0ms !important;
    transform: none !important;
  }

  .standings-team__members > * {
    transition: none !important;
    transform: none !important;
  }
}
