.wgp {
  background-color: #fff;
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: "TeleNeo", Arial, sans-serif;
  padding: 48px 18px;
  position: relative;
}

.wgp *,
.wgp *::before,
.wgp *::after {
  box-sizing: border-box;
}

@media screen and (min-width: 1024px) {
  .wgp {
    padding: 80px 18px;
  }
}

.wgp__container {
  margin: 0 auto;
  max-width: 77.5rem;
}

.wgp__header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.wgp__headline {
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 500;
  line-height: 2rem;
  margin: 0;
}

@media screen and (min-width: 1024px) {
  .wgp__headline {
    font-size: 3rem;
    line-height: 3rem;
  }
}

.wgp__intro {
  color: #5f5f5f;
  font-size: 1.125rem;
  line-height: 1.5rem;
  margin: 0;
  max-width: 52rem;
}

.wgp__scroll {
  margin-left: -18px;
  margin-right: -18px;
  overflow-x: auto;
  padding: 8px 18px 16px;
}

@media screen and (min-width: 1024px) {
  .wgp__scroll {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.wgp__matches {
  display: flex;
  min-width: max-content;
}

.wgp__round {
  display: flex;
  flex-direction: column;
  width: 11.5rem;
}

.wgp__round + .wgp__round {
  margin-left: 2.5rem;
}

.wgp__round-header {
  background-color: #e20074;
  border-radius: 8px;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px 12px;
  text-align: center;
}

.wgp__round-matches {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.wgp__slot {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  min-height: 7.5rem;
  position: relative;
}

.wgp__round:not(:last-child) .wgp__slot::after {
  border-right: 2px solid rgba(226, 0, 116, .55);
  content: "";
  height: 50%;
  position: absolute;
  right: -1.25rem;
  transform: translateY(-0.6rem);
  width: 1.25rem;
}

.wgp__round:not(:last-child) .wgp__slot:nth-child(odd)::after {
  border-top: 2px solid rgba(226, 0, 116, .55);
  top: 50%;
}

.wgp__round:not(:last-child) .wgp__slot:nth-child(even)::after {
  border-bottom: 2px solid rgba(226, 0, 116, .55);
  bottom: 50%;
}

.wgp__round:not(:first-child) .wgp__slot::before {
  border-top: 2px solid rgba(226, 0, 116, .55);
  content: "";
  height: 2px;
  left: -1.25rem;
  position: absolute;
  top: 50%;
  transform: translateY(-0.6rem);
  width: 1.25rem;
}

.wgp__match {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.wgp__round:last-child .wgp__match {
  border: 2px solid #e20074;
}

.wgp__meta {
  align-items: center;
  background-color: #f7f7f7;
  border-bottom: 1px solid #ededed;
  color: #767676;
  display: flex;
  font-size: .6875rem;
  gap: 6px;
  justify-content: flex-start;
  line-height: 1;
  padding: 4px 10px;
  white-space: nowrap;
}

.wgp__penalty {
  color: #e20074;
  font-weight: 700;
}

.wgp__team {
  align-items: center;
  border-left: 3px solid transparent;
  color: #1a1a1a;
  display: flex;
  gap: 7px;
  line-height: 1.1rem;
  padding: 6px 8px;
}

.wgp__team + .wgp__team {
  border-top: 1px solid #ededed;
}

.wgp__team--winner {
  border-left-color: #e20074;
  font-weight: 700;
}

.wgp__team--loser {
  color: #8c8c8c;
}

.wgp__team--placeholder {
  color: #767676;
  font-style: italic;
}

.wgp__flag {
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  height: 1.125rem;
  width: 1.5rem;
}

.wgp__flag--empty {
  background-color: #e0e0e0;
  display: inline-block;
}

.wgp__team-name {
  flex: 1;
  font-size: .8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wgp__score {
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: .75rem;
  text-align: center;
}

.wgp__third-place {
  margin: 48px auto 0;
  max-width: 11.5rem;
}

.wgp__third-place-label {
  background-color: #e20074;
  border-radius: 8px;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px 12px;
  text-align: center;
}

.wgp__third-place .wgp__match {
  border: 2px solid #e20074;
}

.wgp__error {
  background: rgba(226, 0, 116, .06);
  border-left: 3px solid #e20074;
  border-radius: 4px;
  color: #a30057;
  font-size: .9375rem;
  padding: 16px;
}
