:root {
  --bg: #f4f7f5;
  --paper: #ffffff;
  --ink: #10211d;
  --muted: #60716b;
  --line: #d8e0dc;
  --night: #06171d;
  --green: #0f7b55;
  --green-dark: #07583d;
  --red: #b83232;
  --blue: #1d67a8;
  --gold: #cf9b3a;
  --shadow: 0 20px 50px rgba(10, 32, 27, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

body.nav-open,
body.city-detail-open,
body.team-detail-open,
body.match-detail-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 23, 29, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(4, 13, 17, 0.24);
}

.site-header.is-scrolled {
  color: var(--ink);
  border-color: rgba(16, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%),
    linear-gradient(0deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%);
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-width: 58px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: currentColor;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  outline: none;
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-scrolled .site-nav a.is-active {
  background: rgba(15, 123, 85, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  color: #ffffff;
  background: var(--night);
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(3, 12, 17, 0.88) 0%, rgba(3, 12, 17, 0.6) 38%, rgba(3, 12, 17, 0.18) 72%),
    linear-gradient(0deg, rgba(6, 23, 29, 0.98) 0%, rgba(6, 23, 29, 0) 34%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  margin: 0 auto;
  padding: 132px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.button--primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(15, 123, 85, 0.3);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--green-dark);
}

.button--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button--outline {
  color: var(--green-dark);
  border-color: rgba(15, 123, 85, 0.32);
  background: #ffffff;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 150px));
  gap: 12px;
  max-width: 520px;
}

.hero__stats a {
  display: block;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero__stats a:hover,
.hero__stats a:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero__stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.hero__stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.status-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.status-strip__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
}

.status-strip h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.status-meter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
}

.status-meter__bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efeb;
}

.status-meter__bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--red));
  transition: width 420ms ease;
}

.status-meter p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section--tinted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: #eaf2ee;
}

.section--dark {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(6, 23, 29, 0.96), rgba(6, 23, 29, 0.9)),
    linear-gradient(135deg, var(--green-dark), var(--blue));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading--wide {
  max-width: 850px;
}

.section-heading--split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
}

.section-inline-note {
  max-width: 620px;
  padding-bottom: 13px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.section-heading h2 {
  margin: 6px 0 10px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading .section-inline-note {
  margin: 0;
  padding-bottom: 13px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.section--dark .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.timeline__item,
.city-card,
.travel-grid article {
  border-radius: var(--radius);
}

.feature-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(10, 32, 27, 0.06);
}

.feature-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-card__number {
  background: var(--blue);
}

.feature-card:nth-child(3) .feature-card__number {
  background: var(--red);
}

.feature-card h3,
.timeline__item h3,
.travel-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-card p,
.timeline__item p,
.travel-grid p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline__item {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  background: var(--night);
}

.timeline__item::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.timeline__item:nth-child(2) {
  background: var(--green-dark);
}

.timeline__item:nth-child(3) {
  background: #712223;
}

.timeline__item span {
  display: block;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 900;
}

.timeline__item p {
  color: rgba(255, 255, 255, 0.76);
}

.city-tools {
  display: grid;
  gap: 12px;
  min-width: min(460px, 100%);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.search-box input:focus {
  outline: none;
  border-color: #aebdb7;
  box-shadow: none;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
}

.country-flag {
  flex: 0 0 auto;
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(7, 24, 22, 0.12);
}

.city-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -4px 0 22px;
}

.city-summary__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--summary-accent, var(--green)) 18%, #d9e4df);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--summary-accent, var(--green)) 5%, #ffffff) 0%, #ffffff 58%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(10, 32, 27, 0.06);
}

.city-summary__item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--summary-accent, var(--green));
}

.city-summary__flag {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--summary-accent, var(--green)) 14%, #e3ece8);
  border-radius: 13px;
  background: color-mix(in srgb, var(--summary-accent, var(--green)) 7%, #f6faf8);
}

.city-summary__flag .country-flag {
  width: 34px;
  height: 25px;
  border-radius: 5px;
}

.city-summary__name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.city-summary__metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.city-summary__metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--summary-accent, var(--green)) 10%, #e3ece8);
  background: color-mix(in srgb, var(--summary-accent, var(--green)) 6%, #f4f8f6);
}

.city-summary__metrics strong {
  color: color-mix(in srgb, var(--summary-accent, var(--green-dark)) 78%, #071816);
  font-size: 20px;
  line-height: 1;
}

.city-summary__metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.city-card {
  position: relative;
  display: grid;
  min-height: 268px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 29, 0.1);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 32, 27, 0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.city-card:hover,
.city-card:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent, var(--green)) 50%, var(--line));
  box-shadow: 0 18px 38px rgba(10, 32, 27, 0.12);
  transform: translateY(-2px);
}

.city-card__media {
  position: relative;
  display: flex;
  min-height: 106px;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(6, 23, 29, 0.04), rgba(6, 23, 29, 0.46)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--green)) 78%, #ffffff), color-mix(in srgb, var(--accent, var(--green)) 54%, #10211d) 78%);
}

.city-card__scene {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
}

.city-card__event-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 24, 22, 0.62);
  box-shadow: 0 8px 18px rgba(4, 13, 17, 0.18);
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.city-card__event-tag--final {
  color: #fff7d8;
  border-color: rgba(238, 194, 87, 0.62);
  background: linear-gradient(135deg, #18130b 0%, #8c6417 58%, #e0b544 100%);
  box-shadow: 0 10px 24px rgba(103, 70, 10, 0.32);
}

.city-card__event-tag span {
  font-size: 14px;
  line-height: 1;
}

.city-card__body {
  display: grid;
  gap: 8px;
  padding: 16px 16px 12px;
  border-top: 1px solid color-mix(in srgb, var(--accent, var(--green)) 12%, #e6eeea);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--green)) 8%, #ffffff) 0%, #ffffff 54%),
    #ffffff;
}

.city-card__country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent, var(--green));
  font-size: 13px;
  font-weight: 900;
}

.city-card__country .country-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
}

.city-card strong {
  display: block;
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.city-card__body > span:last-child {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 9%, #e5eee9);
  border-radius: 10px;
  color: #52655f;
  background: color-mix(in srgb, var(--accent, var(--green)) 5%, #f7faf8);
  font-size: 15px;
}

.city-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 0 16px 16px;
}

.city-card__bottom span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.city-card__bottom span:last-child {
  padding: 6px 9px;
  border-radius: var(--radius);
  color: var(--accent, var(--green));
  background: #eef4f1;
}

.city-detail {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.city-detail__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 23, 29, 0.52);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.city-detail__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  width: min(920px, 100%);
  max-height: min(720px, calc(100svh - 48px));
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(4, 13, 17, 0.28);
}

.city-detail__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 23, 29, 0.62);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.city-detail__visual {
  position: relative;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(6, 23, 29, 0.04), rgba(6, 23, 29, 0.82)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--green)) 82%, #10211d), #07191d 72%);
}

.city-detail__city-mark {
  position: absolute;
  right: -10px;
  top: 34px;
  max-width: 92%;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(70px, 9vw, 118px);
  font-weight: 900;
  line-height: 0.86;
  text-align: right;
  white-space: nowrap;
}

.city-detail__poster {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  display: grid;
  gap: 10px;
  max-width: 330px;
  transform: translateY(-48%);
}

.city-detail__poster > span,
.city-detail__poster small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.city-detail__landmark {
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.city-detail__content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px;
}

.city-detail__content h3 {
  margin: -8px 0 0;
  font-size: 42px;
  line-height: 1.05;
}

.city-detail__content p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.city-detail__meta span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.city-detail__meta span:first-child {
  grid-column: 1 / -1;
}

.city-detail__meta strong {
  color: var(--ink);
}

.city-detail__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-detail__highlights span {
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--green-dark);
  background: #eef4f1;
  font-size: 13px;
  font-weight: 900;
}

.empty-state {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.module-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 460px;
}

.module-summary span {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 123, 85, 0.18);
  border-radius: var(--radius);
  color: var(--green-dark);
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -12px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.schedule-action-button {
  min-height: 44px;
  padding: 9px 16px;
  border-color: rgba(183, 207, 202, 0.22);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(3, 12, 17, 0.18);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.schedule-action-button:hover,
.schedule-action-button:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(3, 12, 17, 0.24);
  transform: translateY(-1px);
}

.schedule-action-button strong {
  font-size: 13px;
  font-weight: 950;
}

.schedule-action-button--locate {
  border-color: rgba(93, 190, 148, 0.34);
  background: rgba(15, 123, 85, 0.18);
}

.schedule-action-button--refresh {
  border-color: rgba(155, 193, 220, 0.3);
  background: rgba(29, 103, 168, 0.14);
}

.data-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.data-toolbar p[data-tone="success"] {
  color: var(--green-dark);
}

.data-toolbar p[data-tone="error"] {
  color: var(--red);
}

.data-toolbar--dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.data-toolbar--dark p {
  color: rgba(255, 255, 255, 0.74);
}

.filter-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.knockout-dashboard {
  display: grid;
  gap: 34px;
}

.knockout-panel {
  display: grid;
  gap: 16px;
}

.knockout-panel--full {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.panel-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.bracket-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x proximity;
}

.bracket-half {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.bracket-column {
  --stage-accent: var(--green-dark);
  --stage-border: rgba(15, 123, 85, 0.16);
  --stage-bg-start: rgba(255, 255, 255, 0.98);
  --stage-bg-end: rgba(238, 247, 243, 0.95);
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  scroll-snap-align: start;
}

.bracket-column--round32 {
  --stage-accent: #0f7b55;
  --stage-border: rgba(15, 123, 85, 0.18);
  --stage-bg-start: #ffffff;
  --stage-bg-end: #eaf6f1;
}

.bracket-column--round16 {
  --stage-accent: #1d67a8;
  --stage-border: rgba(29, 103, 168, 0.18);
  --stage-bg-start: #ffffff;
  --stage-bg-end: #e9f2fb;
}

.bracket-column--quarter {
  --stage-accent: #3b7d86;
  --stage-border: rgba(59, 125, 134, 0.22);
  --stage-bg-start: #ffffff;
  --stage-bg-end: #e8f3f4;
}

.bracket-column--semi {
  --stage-accent: #34495e;
  --stage-border: rgba(52, 73, 94, 0.22);
  --stage-bg-start: #ffffff;
  --stage-bg-end: #edf1f4;
}

.bracket-column h3 {
  margin: 0;
  color: var(--stage-accent);
  font-size: 15px;
  line-height: 1.2;
}

.bracket-column__matches,
.focus-grid,
.knockout-schedule {
  display: grid;
  gap: 8px;
}

.bracket-match {
  position: relative;
  min-height: 86px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--stage-bg-start), var(--stage-bg-end));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(10, 32, 27, 0.06);
}

.bracket-match::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--stage-accent);
  opacity: 0.62;
}

.bracket-match--finished {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 11px 24px rgba(10, 32, 27, 0.07);
}

.bracket-match--pending {
  color: rgba(16, 33, 29, 0.9);
}

.bracket-match time {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.bracket-match__teams {
  display: grid;
  gap: 5px;
}

.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
  min-width: 0;
}

.bracket-team__identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bracket-team__identity span {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team strong {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 14px;
  line-height: 1;
}

.bracket-team--placeholder {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: var(--radius);
  background: rgba(238, 244, 241, 0.86);
}

.bracket-match__penalty {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.bracket-center {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 150px;
  padding: 12px 10px;
  border: 1px solid rgba(207, 155, 58, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
    #fff7df;
  box-shadow: 0 18px 40px rgba(10, 32, 27, 0.08);
}

.trophy-mark {
  width: min(112px, 100%);
  height: 166px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(121, 75, 10, 0.2));
}

.bracket-center__slot {
  display: grid;
  gap: 6px;
  width: 100%;
}

.bracket-center__label {
  display: inline-flex;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.bracket-center__label--third {
  background: var(--green-dark);
}

.bracket-center__label--final {
  color: #fff7dc;
  border: 1px solid rgba(255, 224, 139, 0.45);
  background:
    linear-gradient(135deg, #8b641c 0%, #d2a33a 46%, #6d4b15 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(122, 82, 18, 0.2);
}

.bracket-center .bracket-match {
  width: 100%;
}

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

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

.knockout-match {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 32, 27, 0.06);
}

.knockout-match__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.knockout-match__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  border-radius: var(--radius);
  color: #0f4c81;
  background: #d9ecff;
}

.knockout-match__teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.knockout-match__teams > strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.score-penalty {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.score-vs {
  color: var(--red);
}

.schedule-item .score-vs {
  color: #ffffff;
}

.knockout-team span {
  color: var(--ink);
  font-weight: 900;
}

.knockout-team small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-name--placeholder {
  padding: 3px 8px;
  border-radius: var(--radius);
  background: #eef4f1;
}

.team-name--placeholder span {
  color: var(--ink);
}

.knockout-match p {
  margin: 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.knockout-match small {
  display: block;
  align-self: end;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.knockout-match--focus {
  min-height: 132px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 18px;
  align-items: start;
  border-color: #d9e4df;
  border-left: 4px solid #23715a;
  background: #fbfcfb;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(10, 32, 27, 0.065);
}

.knockout-match--focus .knockout-match__meta {
  display: contents;
}

.knockout-match--focus .knockout-match__meta span {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.knockout-match--focus .knockout-match__meta time {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
}

.knockout-match--focus .knockout-match__teams {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  justify-content: center;
  width: min(100%, 440px);
  margin: 10px 0 8px;
  padding: 10px 12px;
  border: 1px solid #dde7e2;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(16, 33, 29, 0.03);
  text-align: center;
}

.knockout-match--focus p {
  grid-column: 1;
  grid-row: 3;
}

.knockout-match--focus small {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  margin-top: 0;
  text-align: right;
}

.knockout-match--schedule {
  min-height: 128px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 18px;
  align-items: start;
  border-color: #d9e4df;
  border-left: 4px solid #1d67a8;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(10, 32, 27, 0.06);
}

.knockout-match--schedule .knockout-match__meta {
  display: contents;
}

.knockout-match--schedule .knockout-match__meta span {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.knockout-match--schedule .knockout-match__meta time {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
}

.knockout-match--schedule .knockout-match__teams {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  justify-content: center;
  width: min(100%, 460px);
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 1px solid #dde7e2;
  border-radius: var(--radius);
  background: #f7faf8;
  box-shadow: inset 0 1px 0 rgba(16, 33, 29, 0.025);
  text-align: center;
}

.knockout-match--schedule p {
  grid-column: 1;
  grid-row: 3;
}

.knockout-match--schedule small {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  margin-top: 0;
  text-align: right;
}

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

.round32-team {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid #dbe5e0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(10, 32, 27, 0.045);
}

.round32-team::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  pointer-events: none;
  background: #23715a;
}

.round32-team .team-flag {
  width: 30px;
  height: 22px;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(16, 33, 29, 0.1),
    0 6px 14px rgba(10, 32, 27, 0.08);
}

.round32-team__info {
  min-width: 0;
}

.round32-team__info strong {
  line-height: 1.2;
}

.round32-team strong,
.round32-team span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round32-team strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.round32-team span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.round32-team__group {
  justify-self: end;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: var(--radius);
  color: #28584b;
  border: 1px solid #cbdad4;
  background: #f3f7f5;
  text-align: center;
}

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

.group-card,
.team-card,
.schedule-item {
  border-radius: var(--radius);
}

.group-card {
  position: relative;
  min-height: 230px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 29, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 32, 27, 0.06);
}

.group-card--live {
  border-color: #d6e4dd;
  background: #fbfdfc;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 34px rgba(10, 32, 27, 0.08);
}

.group-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--green));
}

.group-card h3,
.team-card h3,
.schedule-item h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.group-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.group-card__head h3 {
  min-width: 0;
}

.group-card__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  border: 1px solid #c8e4d8;
  background: #edf8f3;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
}

.slot-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #eef4f1;
  font-size: 13px;
  font-weight: 900;
}

.group-card p,
.team-card p,
.schedule-item p {
  margin: 0;
  color: var(--muted);
}

.standing-table {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
}

.standing-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(74px, 0.42fr) minmax(64px, 0.35fr) minmax(48px, 0.25fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: var(--radius);
  background: #eef4f1;
  font-size: 13px;
  font-weight: 800;
}

.standing-row--qualified {
  border: 1px solid #9fd4bd;
  color: #063c2a;
  background: #d6f0e3;
  box-shadow: inset 4px 0 0 #0f7b55;
}

.standing-row--eliminated {
  border: 1px solid #d9dfdc;
  color: rgba(16, 33, 29, 0.58);
  background: #f0f2f1;
}

.standing-row--head {
  color: var(--muted);
  background: transparent;
}

.standing-row span:first-child {
  min-width: 0;
}

.standing-row > span:not(:first-child) {
  justify-self: center;
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.standing-team,
.team-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-flag {
  flex: 0 0 auto;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(16, 33, 29, 0.12);
}

.standing-row strong,
.standing-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-row--eliminated .team-flag {
  opacity: 0.72;
  filter: saturate(0.72);
}

.standing-team strong[title] {
  cursor: help;
}

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

.team-card {
  min-height: 196px;
  padding: 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 32, 27, 0.06);
  text-align: left;
}

.team-card--live {
  display: grid;
  gap: 12px;
  min-height: 212px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button.team-card {
  width: 100%;
  appearance: none;
}

.team-card--live:hover,
.team-card--live:focus-visible {
  outline: none;
  border-color: rgba(15, 123, 85, 0.34);
  box-shadow: 0 18px 38px rgba(10, 32, 27, 0.12);
  transform: translateY(-2px);
}

.team-card--qualified {
  border-color: #c5ded2;
  background: #ffffff;
}

.team-card--qualified .team-card__status {
  color: #ffffff;
  background: var(--green);
}

.team-card--eliminated {
  border-color: #d6dde1;
  color: #53616b;
  background: #f7f8fa;
  box-shadow: 0 10px 22px rgba(25, 38, 48, 0.045);
}

.team-card--eliminated .team-card__flag,
.team-card--eliminated .team-flag {
  opacity: 0.74;
  filter: saturate(0.62);
}

.team-card--eliminated .team-card__identity strong {
  color: #3f4f5a;
}

.team-card--eliminated .team-card__numbers span {
  color: #5f6f7a;
  background: #edf1f4;
}

.team-card--eliminated .team-card__numbers strong {
  color: #41525e;
}

.team-card--eliminated .team-card__group {
  color: #50616d;
  background: #e7ecef;
}

.team-card--eliminated .team-card__status {
  color: #ffffff;
  background: #667783;
}

.team-card--eliminated .team-card__more {
  background: #536570;
}

.team-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.team-card__identity {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.team-card__identity strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  border-radius: var(--radius);
  border: 1px solid #d7e4de;
  background: #f4f8f6;
}

.team-card__group,
.team-card__status,
.team-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--green-dark);
  background: #e8f2ed;
  font-size: 12px;
  font-weight: 900;
}

.team-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.team-card__more {
  justify-self: start;
  color: #ffffff;
  background: var(--green);
}

.team-card__numbers {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.team-card__numbers--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.team-card__numbers span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #eef4f1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.team-card__numbers--compact span {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 50px;
}

.team-card__numbers strong {
  color: var(--green-dark);
  font-size: 15px;
}

.team-card__numbers--compact strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-detail__panel {
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
}

@media (min-width: 981px) {
  .team-detail__panel {
    grid-template-columns: minmax(300px, 0.72fr) minmax(620px, 1.28fr);
    width: min(1120px, calc(100% - 48px));
  }

  .team-detail__matches {
    max-height: 380px;
  }
}

.team-detail__visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background:
    linear-gradient(135deg, #083d31, #07191d);
}

.team-detail__flag {
  width: 150px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.team-detail__visual > span {
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

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

.team-detail__stats span {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d9e4df;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f5f8f6;
  font-size: 12px;
  font-weight: 800;
}

.team-detail__stats strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.team-detail__matches {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.team-detail__match {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dde7e2;
  border-left: 4px solid #9aa9a3;
  border-radius: var(--radius);
  background: #ffffff;
}

.team-detail__match time,
.team-detail__match > div:first-child span,
.team-detail__match small,
.team-detail__result {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team-detail__versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce7e1;
  border-radius: var(--radius);
  background: #f7faf8;
}

.team-detail__side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-detail__side--opponent {
  justify-content: flex-end;
}

.team-detail__side strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-detail__score {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 70px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px #d9e4df,
    0 6px 14px rgba(10, 32, 27, 0.06);
  font-variant-numeric: tabular-nums;
}

.team-detail__score strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.team-detail__score span {
  color: #8c9a94;
  font-size: 13px;
  font-weight: 900;
}

.team-detail__score-number--win {
  color: var(--green) !important;
}

.team-detail__score--pending {
  display: inline-flex;
  color: #b21d2a;
  font-size: 15px;
  font-weight: 950;
}

.team-detail__result {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 950;
}

.team-detail__match small {
  grid-column: 1 / -1;
}

.team-detail__match--win { border-left-color: var(--green); }
.team-detail__match--draw { border-left-color: var(--gold); }
.team-detail__match--loss { border-left-color: #9aa9a3; }

.team-detail__match--win .team-detail__result {
  color: #ffffff;
  background: var(--green);
}

.team-detail__match--draw .team-detail__result {
  color: #6f4a00;
  background: #fff1c6;
}

.team-detail__match--loss .team-detail__result {
  color: #ffffff;
  background: #7b8790;
}

.scorer-dashboard {
  display: grid;
  gap: 16px;
}

.scorer-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scorer-card,
.scorer-empty,
.scorer-table {
  border: 1px solid #d6e4dd;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 32, 27, 0.07);
}

.scorer-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 20px;
}

.scorer-card > span:first-child {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.scorer-card > strong {
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
}

.scorer-card > small {
  color: var(--muted);
  font-weight: 800;
}

.scorer-card--rank-1 {
  border-color: rgba(207, 155, 58, 0.42);
  box-shadow: inset 0 4px 0 var(--gold), 0 14px 30px rgba(10, 32, 27, 0.07);
}

.scorer-empty {
  grid-column: 1 / -1;
  padding: 24px;
}

.scorer-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.scorer-empty p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.scorer-table {
  display: grid;
  overflow: hidden;
}

.scorer-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 76px 76px 96px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid #edf2ef;
  font-size: 13px;
  font-weight: 850;
}

.scorer-row--head {
  min-height: 44px;
  border-top: 0;
  color: var(--muted);
  background: #f4f8f6;
}

.scorer-row > span:not(:nth-child(2)) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.scorer-player {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

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

.scorer-player small {
  color: var(--muted);
  font-size: 12px;
}

.schedule-list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.schedule-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: start;
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.schedule-item--match {
  grid-template-columns: 84px 150px minmax(270px, 1.25fr) minmax(150px, 0.6fr) minmax(220px, 0.85fr);
  gap: 14px;
  align-items: center;
  min-height: 106px;
  background: rgba(255, 255, 255, 0.09);
}

.schedule-item--current {
  border-color: rgba(215, 166, 53, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(215, 166, 53, 0.32),
    0 16px 36px rgba(10, 32, 27, 0.18);
}

.schedule-item.is-located {
  animation: schedule-locate 1500ms ease;
}

@keyframes schedule-locate {
  0%, 100% {
    border-color: rgba(215, 166, 53, 0.72);
  }
  35% {
    border-color: #ffffff;
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.5),
      0 0 0 5px rgba(215, 166, 53, 0.26);
  }
}

.schedule-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  min-height: 42px;
  border-radius: var(--radius);
  color: var(--night);
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.schedule-item--match .schedule-item__badge {
  width: 72px;
  min-height: 38px;
}

.schedule-item__time {
  min-width: 0;
}

.schedule-item time {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 900;
}

.schedule-item__time span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 7px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.schedule-item__main {
  min-width: 0;
}

.schedule-item h3 {
  color: #ffffff;
}

.schedule-item--match h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.schedule-item--match h3 strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--gold);
  font-size: 20px;
}

.schedule-item--match .team-name span {
  color: #ffffff;
}

.schedule-item--match .team-name small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.schedule-item__stage,
.schedule-item__venue {
  min-width: 0;
}

.schedule-item__venue {
  text-align: right;
}

.schedule-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.schedule-item[role="button"] {
  width: 100%;
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.schedule-item--match[role="button"] {
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.schedule-item--match[role="button"]:hover,
.schedule-item--match[role="button"]:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 38px rgba(3, 12, 17, 0.24);
  transform: translateY(-1px);
}

.schedule-item[role="button"]:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.match-detail__panel {
  grid-template-columns: 1fr;
  width: min(780px, calc(100% - 48px));
}

.match-detail__scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d8e5df;
  border-radius: var(--radius);
  background: #f6faf8;
}

.match-detail__team {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.match-detail__team .team-flag,
.match-detail__flag-placeholder {
  width: 56px;
  height: 40px;
  border-radius: 6px;
}

.match-detail__flag-placeholder {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: #e9f0ed;
  font-size: 13px;
  font-weight: 900;
}

.match-detail__team strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-detail__score {
  display: grid;
  min-width: 84px;
  justify-items: center;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  text-align: center;
}

.match-detail__score .score-penalty {
  margin-top: 6px;
  color: #7b8790;
  font-size: 12px;
}

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

.match-detail__facts span {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e4df;
  border-radius: var(--radius);
  background: #ffffff;
}

.match-detail__facts small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-detail__facts strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-link {
  margin-top: 24px;
}

.schedule-top-button {
  position: fixed;
  z-index: 18;
  right: max(18px, calc((100vw - var(--max)) / 2 - 72px));
  bottom: 36px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(16, 33, 29, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 28px rgba(2, 15, 25, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.schedule-top-button:hover,
.schedule-top-button:focus-visible {
  outline: none;
  color: #ffffff;
  background: var(--green);
  box-shadow:
    0 14px 30px rgba(2, 15, 25, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.schedule-top-button span {
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.travel-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.travel-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.deploy-section {
  padding-bottom: 72px;
}

.command-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b1d22;
  box-shadow: var(--shadow);
}

.command-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #d9f4e8;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  max-width: 620px;
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  min-width: 260px;
  font-weight: 800;
}

.footer-links a {
  color: var(--green-dark);
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 56px;
  }

  .feature-grid,
  .timeline,
  .travel-grid,
  .scorer-podium,
  .focus-grid,
  .knockout-schedule {
    grid-template-columns: 1fr;
  }

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

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

  .section-heading--split {
    align-items: stretch;
    flex-direction: column;
  }

  .status-strip__inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .module-summary {
    justify-content: flex-start;
  }

  .data-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .data-actions {
    justify-content: flex-start;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .panel-heading p {
    text-align: left;
  }

  .bracket-scroll {
    grid-template-columns: minmax(520px, 1fr) 132px minmax(520px, 1fr);
  }

  .bracket-center {
    min-width: 132px;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    margin-top: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    text-align: left;
  }

  .hero,
  .hero__inner {
    min-height: 86svh;
  }

  .hero__inner {
    width: min(100% - 32px, var(--max));
    padding-top: 122px;
    padding-bottom: 52px;
  }

  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(3, 12, 17, 0.9), rgba(3, 12, 17, 0.48)),
      linear-gradient(0deg, rgba(6, 23, 29, 0.98) 0%, rgba(6, 23, 29, 0) 42%);
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero__stats a {
    min-height: 72px;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 66px 0;
  }

  .section--tinted,
  .section--dark {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .city-grid,
  .group-grid,
  .team-grid,
  .round32-grid {
    grid-template-columns: 1fr;
  }

  .city-tools {
    min-width: 0;
  }

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

  .city-detail {
    padding: 14px;
  }

  .city-detail__panel {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .city-detail__visual {
    min-height: 260px;
  }

  .city-detail__content {
    padding: 28px 22px;
  }

  .city-detail__content h3 {
    font-size: 34px;
  }

  .city-detail__meta {
    grid-template-columns: 1fr;
  }

  .match-detail__scoreboard,
  .match-detail__facts {
    grid-template-columns: 1fr;
  }

  .match-detail__score {
    min-width: 0;
  }

  .button {
    width: 100%;
  }

  .hero__actions .button {
    width: auto;
    flex: 1 1 180px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .schedule-item--match {
    grid-template-columns: 1fr;
  }

  .schedule-item__venue {
    text-align: left;
  }

  .schedule-top-button {
    right: 18px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  .team-card__numbers span {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .team-detail__match {
    grid-template-columns: 1fr 42px;
  }

  .team-detail__match > div:first-child,
  .team-detail__match small {
    grid-column: 1 / -1;
  }

  .scorer-table {
    overflow-x: auto;
  }

  .scorer-row {
    min-width: 620px;
  }

  .standing-row {
    grid-template-columns: minmax(0, 1fr) 58px 52px 40px;
    gap: 6px;
  }

  .bracket-scroll {
    grid-template-columns: minmax(500px, 1fr) 128px minmax(500px, 1fr);
  }

  .bracket-column h3 {
    font-size: 13px;
  }

  .bracket-match time {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
