:root {
  --cc-cyan: #6dfffd;
  --cc-cyan-50: #36827e;
  --cc-cyan-10: #0b2724;
  --cc-cyan-5: #081a17;
  --cc-green: #b8ff5d;
  --cc-white-60: #999b99;
  --cc-white-30: #4c504c;
  --cc-white-15: #262a26;
  --cc-black: #000500;
  --cc-yellow: #ffd02b;

  --cc-header-height: 68px;
  --cc-content-width: 1300px;
  --cc-table-width: 748px;
  --cc-side-padding: 70px;

  --cc-h1-size: 80px;
  --cc-h1-line: 68px;
  --cc-h2-size: 64px;
  --cc-h2-line: 50px;
}

/* Header on the landing: solid bar, the landing tabs instead of the menu */
.cc-page .header {
  top: var(--cc-banner-offset, 0px);
  background: var(--cc-black);
}
.cc-page .content.header__content,
.cc-page .header.active .content.header__content {
  max-width: none;
  padding: 12px 40px;
}
.cc-page .logo.header__logo {
  margin-right: 0;
}
.cc-page .logo.header__logo > img {
  max-height: 28px;
}
.cc-page .menu.header__menu {
  margin: 0 auto 0 40px;
}
.cc-page .menu.header__menu > ul {
  gap: 40px;
}
.cc-page .menu.header__menu > ul li a {
  font-size: 16px;
  line-height: 20px;
  text-transform: none;
  color: var(--main-color);
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.cc-page .menu.header__menu > ul li a[aria-current="page"] {
  color: var(--cc-cyan);
  border-bottom-color: var(--cc-cyan);
}

/* Survey banner above the header */
.cc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 21;
  padding: 12px var(--cc-side-padding);
  background: linear-gradient(90deg, #062741 5.8%, var(--cc-cyan) 60.3%);
}
.cc-banner__title {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--second-font);
  font-size: 58px;
  line-height: 46px;
  letter-spacing: 1.74px;
  text-transform: uppercase;
  color: var(--cc-cyan);
}
.cc-banner__text {
  flex: 0 1 530px;
  font-size: 15px;
  line-height: 20px;
  color: var(--cc-cyan-5);
}
.cc-banner__button {
  flex: 0 0 auto;
  padding: 5px 24px;
  border-radius: 4px;
  background: var(--cc-yellow);
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--cc-black);
  white-space: nowrap;
}
.cc-banner__button:hover {
  background: #ffe087;
}

/* Page */
.cc {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--cc-header-height) + 46px) var(--cc-side-padding) 100px;
  background: var(--cc-black);
  color: var(--main-color);
  overflow: hidden;
}
.cc__background {
  position: absolute;
  top: var(--cc-header-height);
  left: 0;
  right: 0;
  /* Fixed proportions from the design, so the cup sits at the same spot on every tab. */
  aspect-ratio: 1440 / 1637;
  pointer-events: none;
}
.cc__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cc__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 5, 0, 0.7) 0%, var(--cc-black) 100%);
}
.cc > :not(.cc__background) {
  position: relative;
  max-width: var(--cc-content-width);
  margin-left: auto;
  margin-right: auto;
}

.cc-accent {
  font-weight: 700;
  color: var(--cc-cyan);
}
.cc-muted {
  color: var(--cc-white-60);
}
.cc-link {
  color: var(--cc-cyan);
  text-decoration: underline;
}
.cc .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero */
.cc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  text-align: center;
}
.cc-hero[hidden] {
  display: none;
}
.cc-hero__logo {
  width: 146px;
  height: 54px;
}
.cc-hero__title {
  font-family: var(--second-font);
  font-size: var(--cc-h1-size);
  font-weight: 400;
  line-height: var(--cc-h1-line);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.cc-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}
.cc-chip {
  padding: 6px 12px;
  border: 1px solid var(--cc-cyan-50);
  border-radius: 100px;
  background: var(--cc-cyan-10);
  font-size: 15px;
  line-height: 32px;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  color: var(--cc-cyan);
}
.cc-chip--status[data-cc-status="active"] {
  color: var(--cc-green);
}
.cc-chip--status[data-cc-status="ended"] {
  color: var(--cc-cyan-50);
}
.cc-hero__dates {
  font-size: 18px;
  line-height: 24px;
}
.cc-hero__dates strong {
  font-size: 16px;
  line-height: 20px;
}
.cc-hero__description {
  max-width: 760px;
  font-size: 18px;
  line-height: 24px;
}

/* Panels */
.cc-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
}
.cc-panel[hidden] {
  display: none;
}
.cc-hero[hidden] + .cc-panel,
.cc-hero[hidden] ~ .cc-panel {
  padding-top: 0;
}

.cc-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: center;
}
.cc-winners .cc-heading,
.cc-faq .cc-heading {
  gap: 16px;
}
.cc-heading__title {
  font-family: var(--second-font);
  font-size: var(--cc-h2-size);
  font-weight: 400;
  line-height: var(--cc-h2-line);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cc-cyan);
}
.cc-heading__text {
  font-size: 18px;
  line-height: 24px;
}
.cc-heading__text--large {
  font-size: 20px;
  line-height: 28px;
}
.cc-heading__text strong {
  font-size: 16px;
  line-height: 20px;
}

.cc-card {
  border-radius: 8px;
  background: var(--cc-cyan-10);
}

/* Leaderboard */
.cc-leaderboard__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--cc-table-width);
}
.cc-regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.cc-regions .cc-btn {
  flex: 0 0 auto;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--cc-white-30);
  border-radius: 4px;
  background: transparent;
  font-family: var(--main-font);
  font-size: 15px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.cc-btn:hover {
  border-color: var(--cc-cyan-50);
}
.cc-btn[aria-selected="true"],
.cc-btn[aria-current="page"] {
  border-color: var(--cc-cyan);
  background: var(--cc-cyan);
  color: var(--cc-black);
}
.cc-btn:disabled {
  border-color: var(--cc-white-15);
  cursor: default;
}
.cc-btn--arrow {
  width: 42px;
  padding: 0;
}
.cc-btn--arrow::before {
  content: '';
  width: 24px;
  height: 24px;
  background: url(images/arrow.svg) center / 24px 24px no-repeat;
}
.cc-btn--arrow:disabled::before {
  opacity: 0.3;
}
.cc-btn--prev::before {
  transform: scaleX(-1);
}
.cc-pagination .cc-btn {
  width: 42px;
  padding: 0;
}
.cc-pagination__gap {
  cursor: default;
}
.cc-pagination__gap:hover {
  border-color: var(--cc-white-30);
}

.cc-search {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.cc-search::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 18px;
  width: 17px;
  height: 22px;
  margin-top: -11px;
  background: url(images/search.svg) center / contain no-repeat;
  transform: rotate(-15deg);
  pointer-events: none;
}
.cc-search__input {
  width: 100%;
  padding: 12px 16px 12px 50px;
  border: 1px solid var(--cc-cyan-50);
  border-radius: 8px;
  background: rgba(0, 5, 0, 0.6);
  font-family: var(--main-font);
  font-size: 20px;
  line-height: 28px;
  color: var(--main-color);
  outline: none;
}
.cc-search__input::placeholder {
  color: var(--cc-cyan-50);
}
.cc-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}
.cc-search__input:focus {
  border-color: var(--cc-cyan);
}

.cc-table {
  width: 100%;
  max-width: var(--cc-table-width);
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: -8px 0;
  font-weight: 700;
}
.cc-table th {
  padding: 0 24px 0 8px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.48px;
  text-align: left;
  text-transform: uppercase;
  color: var(--cc-white-60);
}
.cc-table td {
  padding: 16px 24px;
  background: var(--cc-cyan-10);
  font-size: 16px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.cc-table td:first-child {
  border-radius: 8px 0 0 8px;
}
.cc-table td:last-child {
  border-radius: 0 8px 8px 0;
}
.cc-table td:only-child {
  border-radius: 8px;
  text-align: center;
}
.cc-table .cc-table__rank {
  width: 88px;
  color: var(--cc-green);
}
.cc-table th.cc-table__rank,
.cc-table th.cc-table__club {
  color: var(--cc-white-60);
}
.cc-table .cc-table__points {
  width: 120px;
  text-align: right;
  white-space: nowrap;
  color: var(--cc-green);
}
.cc-table th.cc-table__points {
  color: var(--cc-white-60);
}
.cc-table__loading td {
  color: var(--cc-white-60);
}

.cc-leaderboard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: var(--cc-table-width);
}
.cc-leaderboard__caption {
  font-size: 12px;
  line-height: 16px;
  color: var(--cc-white-60);
}
.cc-pagination {
  display: flex;
  gap: 8px;
}
.cc-pagination[hidden] {
  display: none;
}
.cc-leaderboard__help {
  max-width: 964px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: var(--cc-white-60);
}
.cc-leaderboard__help a,
.cc-text a {
  color: var(--cc-cyan);
  text-decoration: underline;
}

/* Schedule */
.cc-schedule__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
.cc-schedule__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
}
.cc-card__title {
  font-family: var(--main-font);
  letter-spacing: normal;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--cc-cyan);
  opacity: 0.8;
}
.cc-schedule__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.cc-schedule__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 20px;
}
.cc-schedule__row dt {
  color: var(--cc-white-60);
}
.cc-schedule__row dd {
  font-weight: 700;
  text-align: right;
}
.cc-schedule__sub {
  display: block;
  font-size: 14px;
  font-weight: 300;
}
.cc-schedule__intro,
.cc-schedule__note {
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: var(--cc-white-60);
}
.cc-schedule__intro p + p,
.cc-schedule__note p + p {
  margin-top: 8px;
}
.cc-schedule__intro strong,
.cc-schedule__note strong {
  font-weight: 700;
  color: var(--main-color);
}
.cc-leaderboard .cc-heading__text--links {
  max-width: var(--cc-table-width);
}
.cc-heading__text--links a {
  color: var(--cc-cyan);
  text-decoration: underline;
}
.cc-schedule__row--accent dd {
  color: var(--cc-green);
}
/* Top Winners */
.cc-panel.cc-winners {
  gap: 40px;
}
.cc-winners__soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 284px;
  padding: 24px;
  background: var(--cc-cyan-5);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.cc-winners__soon[hidden],
.cc-winners__list[hidden] {
  display: none;
}
.cc-winners__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.cc-winners__region {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 42px 24px 65px;
  border-radius: 8px;
  background: var(--cc-cyan-5);
}
.cc-winners__region .cc-card__title {
  text-align: center;
}
.cc-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 19px;
  width: 100%;
  margin: 0;
}
.cc-podium__place {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 1 205px;
  min-height: 112px;
  padding: 16px 12px;
  border: 1px solid #a5bbd4;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(165, 187, 212, 0.2) 0%, rgba(165, 187, 212, 0) 100%);
  text-align: center;
}
.cc-podium__place--1 {
  order: 2;
  min-height: 124px;
  border-color: #ffe087;
  background: linear-gradient(180deg, rgba(255, 208, 43, 0.2) 0%, rgba(255, 167, 43, 0) 100%);
}
.cc-podium__place--2 {
  order: 1;
}
.cc-podium__place--3 {
  order: 3;
  min-height: 110px;
  border-color: #8c6e72;
  background: linear-gradient(180deg, rgba(140, 110, 114, 0.2) 0%, rgba(140, 110, 114, 0) 100%);
}
.cc-podium__medal {
  font-size: 32px;
  line-height: 20px;
}
.cc-podium__place--1 .cc-podium__medal {
  font-size: 36px;
}
.cc-podium__club,
.cc-podium__points {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.cc-podium__points {
  margin-top: -6px;
  color: var(--cc-green);
}

/* Tournament Details */
.cc-panel.cc-details {
  counter-reset: cc-section;
}
.cc-details__section {
  counter-increment: cc-section;
  counter-reset: cc-point;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.cc-panel.cc-details > .cc-details__section + .cc-details__section {
  margin-top: 0;
}
.cc-details__heading::before {
  content: counter(cc-section) ". ";
}
.cc-details__section .cc-text > ol {
  list-style: none;
  padding-left: 0;
}
.cc-details__section .cc-text > ol > li {
  counter-increment: cc-point;
  counter-reset: cc-subpoint;
}
.cc-details__section .cc-text > ol > li::before {
  content: counter(cc-section) "." counter(cc-point) ". ";
  font-weight: 700;
}
.cc-details__section .cc-text > ol > li > ol {
  list-style: none;
  margin-top: 12px;
  padding-left: 24px;
}
.cc-details__section .cc-text > ol > li > ol > li {
  counter-increment: cc-subpoint;
}
.cc-details__section .cc-text > ol > li > ol > li::before {
  content: counter(cc-section) "." counter(cc-point) "." counter(cc-subpoint) ". ";
  font-weight: 700;
}
.cc-details__heading {
  font-family: var(--main-font);
  text-transform: none;
  text-align: left;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0.28px;
}
.cc-text {
  font-size: 16px;
  line-height: 20px;
}
.cc-text p + p {
  margin-top: 12px;
}
.cc-text ul {
  list-style: disc;
  padding-left: 24px;
}
.cc-text ol {
  list-style: decimal;
  padding-left: 24px;
}
.cc-text li + li,
.cc-text li > ul,
.cc-text li > ol {
  margin-top: 12px;
}
.cc-text strong {
  font-weight: 700;
}
.cc-text em {
  font-style: italic;
}
.cc-details__table {
  width: 100%;
  max-width: 275px;
  margin-left: 23px;
  border-collapse: collapse;
}
.cc-details__table th,
.cc-details__table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--cc-white-15);
  font-size: 16px;
  line-height: 20px;
  text-align: left;
}
.cc-details__table th:last-child,
.cc-details__table td:last-child {
  padding-left: 16px;
  text-align: right;
  white-space: nowrap;
}
.cc-details__table th {
  padding-top: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--cc-white-60);
}
.cc-details__table td:last-child {
  font-weight: 700;
  color: var(--cc-green);
}

/* FAQ */
.cc-panel.cc-faq {
  gap: 40px;
}
.cc-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cc-faq__item {
  border-radius: 8px;
  background: var(--cc-cyan-10);
}
.cc-faq__item[open] {
  background: linear-gradient(180deg, rgba(109, 255, 253, 0.02) 0%, rgba(109, 255, 253, 0.11) 100%), var(--cc-cyan-10);
}
.cc-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px;
  font-size: 20px;
  line-height: 28px;
  color: var(--cc-cyan);
  list-style: none;
  cursor: pointer;
}
.cc-faq__question::-webkit-details-marker {
  display: none;
}
.cc-faq__question::after {
  content: '';
  flex: 0 0 20px;
  height: 20px;
  background: url(images/plus.svg) center / 20px 20px no-repeat;
}
.cc-faq__item[open] .cc-faq__question {
  color: var(--main-color);
}
.cc-faq__item[open] .cc-faq__question::after {
  background-image: url(images/minus.svg);
}
.cc-faq__answer {
  padding: 4px 64px 20px 20px;
}

/* Responsive */
@media screen and (max-width: 1348px) {
  :root {
    --cc-side-padding: 32px;
  }
}

@media screen and (max-width: 1200px) {
  .cc-page .content.header__content,
  .cc-page .header.active .content.header__content {
    /* Exact height: the open menu starts at --cc-header-height, a rounded header left a gap. */
    box-sizing: border-box;
    height: var(--cc-header-height);
    padding: 0 var(--cc-side-padding);
    align-items: center;
  }
  .cc-page .menu.header__menu {
    margin: 0;
  }
  .cc-page .menu.header__menu.active {
    top: calc(var(--cc-banner-offset, 0px) + var(--cc-header-height));
  }
  .cc-page .menu.header__menu > ul {
    gap: var(--header-menu-gap);
  }
  .cc-page .menu.header__menu > ul li a {
    font-size: var(--header-menu-link-font-size);
    line-height: var(--header-menu-link-line-height);
    padding: var(--header-menu-link-padding);
    border-bottom: 0;
  }
  .cc-page .button-menu.header__button {
    margin-left: auto;
  }
  :root {
    --cc-table-width: 100%;
    --cc-header-height: 52px;
  }
  .cc-regions {
    justify-content: center;
  }
  .cc-leaderboard__footer {
    flex-direction: column;
    justify-content: center;
  }
  .cc-schedule__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cc-banner {
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, #062741 1%, var(--cc-cyan) 99%);
  }
  .cc-banner__title {
    white-space: normal;
    color: var(--main-color);
  }
  .cc-banner__text {
    flex: none;
    font-size: 14px;
    line-height: normal;
    color: var(--cc-black);
  }
  .cc-banner__button {
    padding: 8px 12px;
  }
}

@media screen and (max-width: 900px) {
  .cc__background {
    aspect-ratio: 800 / 1467;
  }
  :root {
    --cc-h1-size: 80px;
    --cc-h1-line: 68px;
    --cc-h2-size: 58px;
    --cc-h2-line: 46px;
  }
  .cc {
    padding-bottom: 64px;
  }
}

@media screen and (max-width: 700px) {
  .cc__background {
    aspect-ratio: 375 / 1649;
  }
  :root {
    --cc-side-padding: 16px;
    --cc-h1-size: 48px;
    --cc-h1-line: 46px;
  }
  .cc {
    padding-top: calc(var(--cc-header-height) + 24px);
  }
  .cc-panel {
    gap: 32px;
    padding-top: 32px;
  }
  .cc-heading {
    gap: 16px;
  }
  .cc-heading__text,
  .cc-heading__text--large,
  .cc-hero__dates {
    font-size: 16px;
    line-height: 22px;
  }
  .cc-regions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cc-search {
    max-width: none;
  }
  .cc-search__input {
    font-size: 16px;
    line-height: 24px;
  }
  .cc-table th {
    padding: 0 12px 0 8px;
  }
  .cc-table td {
    padding: 14px 12px;
  }
  .cc-table .cc-table__rank {
    width: 56px;
  }
  .cc-table .cc-table__points {
    width: 80px;
  }
  .cc-schedule__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-winners__region {
    padding: 24px 12px 32px;
  }
  .cc-podium {
    gap: 8px;
  }
  .cc-podium__place {
    padding: 12px 6px;
  }
  .cc-podium__club {
    font-size: 14px;
    line-height: 18px;
  }
  .cc-details__heading {
    font-size: 24px;
    line-height: 30px;
  }
  .cc-details__table {
    max-width: none;
    margin-left: 0;
  }
  .cc-faq__question {
    font-size: 17px;
    line-height: 24px;
    padding: 16px;
  }
  .cc-faq__answer {
    padding: 0 16px 16px;
  }
  /* The design's 40px top is room for the notch; the browser already lays out below it. */
  .cc-banner {
    padding: 20px;
  }
  .cc-banner__title {
    font-size: 40px;
    line-height: 32px;
    letter-spacing: 1.2px;
  }
  .cc-banner__button {
    font-size: 14px;
  }
}
