@font-face {
  font-family: "Community Cup Sans";
  src: url("./assets/ibm-plex-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Community Cup Sans";
  src: url("./assets/ibm-plex-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Community Cup Display";
  src: url("./assets/russo-one.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* All component rules stay inside this root. No theme/body/global reset. */
.community-cup {
  --cc-page: #0d0d17;
  --cc-panel: #1e1c20;
  --cc-card: #2a272e;
  --cc-border: #3b3843;
  --cc-border-soft: #6c6873;
  --cc-accent: #ab84ff;
  --cc-text: #ffffff;
  --cc-muted: #c5c5c6;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  background: var(--cc-page);
  color: var(--cc-text);
  font: 400 16px/1.5 "Community Cup Sans", sans-serif;
  text-align: left;
  overflow-wrap: break-word;
  isolation: isolate;
  container: community-cup / inline-size;
  padding-top: 66px;
  padding-bottom: 20px;

  @media (min-width: 1024px) {
    padding-top: 118px;
  }
}

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

.community-cup :where(h1, h2, h3, p, ul, ol, li, figure, table, picture) {
  margin: 0;
  padding: 0;
}

.community-cup :where(h1, h2, h3) {
  color: inherit;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.community-cup :where(p, li, time, span, strong) {
  font-family: inherit;
}

.community-cup :where(ul, ol) {
  list-style: none;
}

.community-cup :where(li)::marker {
  content: "";
}

.community-cup :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.community-cup :where(button, a) {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.community-cup :where(button) {
  appearance: none;
  cursor: pointer;
}

.community-cup :where(a) {
  text-decoration: none;
}

.community-cup :where(a, button):focus-visible {
  outline: 3px solid var(--cc-accent);
  outline-offset: 4px;
}

.community-cup .cc-container {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.community-cup .cc-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  background-color: var(--cc-panel);
}

.community-cup .cc-eyebrow {
  margin-bottom: 8px;
  color: var(--cc-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.community-cup .cc-section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
}

.community-cup .cc-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.community-cup .cc-section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.community-cup .cc-section-description {
  color: var(--cc-muted);
  font-size: 16px;
  line-height: 24px;
}

.community-cup .cc-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  background: var(--cc-card);
}

.community-cup .cc-card > p:not(.cc-format-number) {
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.community-cup .cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  min-width: 0;
  padding: 8px 16px;
  border: 1px solid var(--cc-accent);
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  color: var(--cc-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  white-space: normal;
  text-decoration: none;
}

.community-cup .cc-button::before,
.community-cup .cc-button::after,
.community-cup .cc-social::before,
.community-cup .cc-social::after {
  content: none;
}

.community-cup .cc-button img {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.community-cup .cc-button:hover {
  background-color: #312640;
  color: var(--cc-text);
}

.community-cup .cc-button-primary {
  background: var(--cc-accent);
  color: #ffffff;
}

.community-cup .cc-button-primary img {
  filter: none;
}

.community-cup .cc-button-primary:hover {
  background: #bb9bff;
  color: #ffffff;
}

.community-cup .cc-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.community-cup .cc-icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cc-accent);
}

.community-cup .cc-icon-badge img {
  width: 24px;
  height: 24px;
}

/* The illustration and copy share a Grid cell; both remain in normal flow. */
.community-cup .cc-hero {
  display: grid;
  padding: 0;
  overflow: hidden;
  background: var(--cc-page);
}

.community-cup .cc-hero-art, .community-cup .cc-hero-content {
  grid-area: 1 / 1;
}

.community-cup .cc-hero-art {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
}

.community-cup .cc-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.community-cup .cc-hero-content {
  z-index: 1;
  align-self: center;
  width: min(100%, 640px);
  min-height: 438px;
  padding: 64px 49px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgb(13 13 23 / 60%) 0%, rgb(13 13 23 / 60%) 90%, transparent 100%);
}

.community-cup .cc-hero-content .cc-eyebrow {
  margin-bottom: 12px;
}

.community-cup .cc-hero-title {
  font: 400 48px/1 "Community Cup Display", sans-serif;
  letter-spacing: 0;
}

.community-cup .cc-hero-title > span {
  display: block;
}

.community-cup .cc-hero-title em {
  color: var(--cc-accent);
  font-style: normal;
}

.community-cup .cc-hero-description {
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
}

.community-cup .cc-season {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  background: var(--cc-panel);
}

.community-cup .cc-season-date {
  flex: 1 1 170px;
}

.community-cup .cc-season-date span {
  display: block;
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 20px;
}

.community-cup .cc-season-date strong {
  display: block;
  font-size: 16px;
  line-height: 20px;
}

.community-cup .cc-season .cc-button {
  flex: 0 1 auto;
}

.community-cup .cc-benefit-grid, .community-cup .cc-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.community-cup .cc-benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-cup .cc-benefit .cc-icon-badge {
  margin-bottom: 4px;
}

.community-cup .cc-benefit .cc-button {
  width: 100%;
  margin-top: auto;
}

.community-cup .cc-benefit > p {
  margin-bottom: 16px;
}

.community-cup .cc-league, .community-cup .cc-tournaments {
  padding: 24px 16px 16px;
}

.community-cup .cc-league-copy {
  display: grid;
  gap: 16px;
  margin-block: 24px;
  color: var(--cc-muted);
}

.community-cup .cc-league-copy strong {
  color: var(--cc-text);
}

.community-cup .cc-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.community-cup .cc-format {
  display: grid;
  align-content: start;
  gap: 6px;
}

.community-cup .cc-format-number {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--cc-accent);
}

.community-cup .cc-format .cc-card-title {
  text-transform: none;
}

.community-cup .cc-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  border: 0;
  table-layout: auto;
  color: var(--cc-text);
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
}

.community-cup .cc-table th, .community-cup .cc-table td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--cc-border);
  background: transparent;
  color: inherit;
  text-align: left;
  vertical-align: middle;
}

.community-cup .cc-table thead th {
  color: var(--cc-muted);
  font-size: 12px;
  font-weight: 400;
}

.community-cup .cc-table th:first-child {
  width: 64px;
}

.community-cup .cc-table th:first-child, .community-cup .cc-tournament-number {
  text-align: center;
}

.community-cup .cc-table th:last-child, .community-cup .cc-table td:last-child {
  width: 132px;
}

.community-cup .cc-table tbody tr:last-child > * {
  border-bottom: 0;
}

.community-cup .cc-table tr {
  background: transparent;
}

@media (min-width: 600px) {
  .community-cup .cc-table {
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--cc-card);
    overflow: hidden;
  }
}

.community-cup .cc-tournament-number span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 2px;
  border-radius: 4px;
  background: var(--cc-accent);
  color: #fff;
}

.community-cup .cc-tournament-format img {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.community-cup .cc-tournament-prize strong {
  color: var(--cc-accent);
  white-space: nowrap;
}

.community-cup .cc-mobile-label {
  display: none;
}

.community-cup .cc-step {
  display: grid;
  align-content: start;
  gap: 8px;
}

.community-cup .cc-step-number {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--cc-accent);
}

.community-cup .cc-community {
  display: grid;
  grid-template-columns: minmax(0, 590px);
  align-content: center;
  align-items: start;
  gap: 4px;
  min-height: 178px;
  padding: 25.5px 49px;
  background-color: var(--cc-page);
  background-image: linear-gradient(90deg, rgb(13 13 23 / 80%) 0%, rgb(13 13 23 / 80%) 90%, transparent 100%), url("assets/community-desktop.png");
  background-position: left center, center;
  background-size: min(640px, 100%) 100%, cover;
  background-repeat: no-repeat;
}

.community-cup .cc-community-brand {
  display: grid;
  gap: 12px;
}

.community-cup .cc-logo {
  width: 150px;
  height: auto;
}

.community-cup .cc-community-contact {
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
}

.community-cup .cc-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-cup .cc-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.community-cup .cc-social img {
  width: 38px;
  height: 38px;
}

.community-cup .cc-social:hover {
  background: #ab84ff33;
}

/* Absolute positioning is used only for text kept available to screen readers. */
.community-cup .cc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .community-cup .cc-benefit-grid, .community-cup .cc-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .community-cup .cc-section-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-cup .cc-hero-content {
    max-width: 60%;
    padding: 40px 24px;
  }

  .community-cup .cc-hero-title {
    font-size: clamp(30px, 4vw, 42px);
  }

  .community-cup .cc-hero-content {
    background: linear-gradient(90deg, #0d0d17e6, #0d0d1780, transparent);
  }

  .community-cup .cc-season .cc-button {
    flex-basis: 100%;
  }

  .community-cup .cc-table th, .community-cup .cc-table td {
    padding-inline: 8px;
  }

  .community-cup .cc-community {
    padding-inline: 24px;
  }
}

@media (max-width: 599px) {
  .community-cup .cc-panel {
    padding: 20px 16px 16px;
  }

  .community-cup .cc-hero {
    padding: 0;
  }

  .community-cup .cc-hero {
    min-height: 569px;
  }

  .community-cup .cc-hero-art, .community-cup .cc-hero-content {
    grid-area: auto;
  }

  .community-cup .cc-hero-art {
    display: grid;
  }

  .community-cup .cc-hero-art img {
    grid-area: 1 / 1;
    height: auto;
    aspect-ratio: 328 / 200;
    object-fit: cover;
  }

  .community-cup .cc-hero-art::after {
    content: none;
  }

  .community-cup .cc-hero-content {
    align-self: auto;
    width: 100%;
    max-width: none;
    min-height: 369px;
    padding: 24px 16px;
    background: transparent;
  }

  .community-cup .cc-hero-title {
    font-size: clamp(26px, 8.33vw, 40px);
    line-height: 1.13;
  }

  .community-cup .cc-hero-description {
    font-size: 16px;
  }

  .community-cup .cc-season {
    padding: 12px;
    gap: 8px;
  }

  .community-cup .cc-season-date {
    flex-basis: 160px;
  }

  .community-cup .cc-season .cc-button {
    flex-basis: 100%;
  }

  .community-cup .cc-section-title {
    font-size: 20px;
    line-height: 24px;
  }

  .community-cup .cc-section-description {
    font-size: 16px;
  }

  .community-cup .cc-benefit-grid, .community-cup .cc-format-grid, .community-cup .cc-step-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .community-cup .cc-card {
    padding: 12px;
    border-radius: 12px;
  }

  .community-cup .cc-benefit .cc-button {
    margin-top: 4px;
  }

  .community-cup .cc-button {
    min-height: 44px;
  }

  .community-cup .cc-format {
    gap: 8px;
  }

  .community-cup .cc-format-number {
    font-size: 28px;
  }

  .community-cup .cc-league-copy {
    margin-block: 24px;
  }

  .community-cup .cc-table {
    display: block;
  }

  .community-cup .cc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .community-cup .cc-table tbody {
    display: grid;
    gap: 12px;
  }

  .community-cup .cc-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "number format prize" "date date time";
    align-items: center;
    gap: 12px 8px;
    min-height: 111px;
    padding: 12px;
    border: 1px solid var(--cc-border-soft);
    border-radius: 12px;
    background: linear-gradient(to bottom, transparent 52px, var(--cc-border) 52px, var(--cc-border) 53px, transparent 53px), var(--cc-card);
  }

  .community-cup .cc-table tbody th, .community-cup .cc-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .community-cup .cc-tournament-number {
    grid-area: number;
  }

  .community-cup .cc-tournament-format {
    grid-area: format;
    font-weight: 700;
  }

  .community-cup .cc-tournament-format img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }

  .community-cup .cc-tournament-date {
    grid-area: date;
    color: var(--cc-muted);
    font-size: 12px;
  }

  .community-cup .cc-tournament-time {
    grid-area: time;
    text-align: right;
    color: var(--cc-muted);
    font-size: 12px;
  }

  .community-cup .cc-tournament-prize {
    grid-area: prize;
  }

  .community-cup .cc-mobile-label {
    display: block;
    font-size: 10px;
    color: var(--cc-muted);
  }

  .community-cup .cc-community {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 181px;
    padding: 24px 16px;
    background-image: linear-gradient(90deg, rgb(13 13 23 / 85%), rgb(13 13 23 / 70%)), url("assets/community-mobile.png");
    background-size: 100% 100%, cover;
  }

  .community-cup .cc-community .cc-card-title {
    max-width: 26ch;
  }
}

/* The same responsive rules apply inside narrow WordPress theme columns. */
@container community-cup (max-width: 1023px) {
  .community-cup .cc-benefit-grid, .community-cup .cc-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .community-cup .cc-section-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-cup .cc-hero-content {
    max-width: 60%;
    padding: 40px 24px;
  }

  .community-cup .cc-hero-title {
    font-size: clamp(30px, 4vw, 42px);
  }

  .community-cup .cc-hero-content {
    background: linear-gradient(90deg, #0d0d17e6, #0d0d1780, transparent);
  }

  .community-cup .cc-season .cc-button {
    flex-basis: 100%;
  }

  .community-cup .cc-table th, .community-cup .cc-table td {
    padding-inline: 8px;
  }

  .community-cup .cc-community {
    padding-inline: 24px;
  }
}

@container community-cup (max-width: 599px) {
  .community-cup .cc-panel {
    padding: 20px 16px 16px;
  }

  .community-cup .cc-hero {
    padding: 0;
  }

  .community-cup .cc-hero {
    min-height: 569px;
  }

  .community-cup .cc-hero-art, .community-cup .cc-hero-content {
    grid-area: auto;
  }

  .community-cup .cc-hero-art {
    display: grid;
  }

  .community-cup .cc-hero-art img {
    grid-area: 1 / 1;
    height: auto;
    aspect-ratio: 328 / 200;
    object-fit: cover;
  }

  .community-cup .cc-hero-art::after {
    content: none;
  }

  .community-cup .cc-hero-content {
    align-self: auto;
    width: 100%;
    max-width: none;
    min-height: 369px;
    padding: 24px 16px;
    background: transparent;
  }

  .community-cup .cc-hero-title {
    font-size: clamp(26px, 8.33vw, 40px);
    line-height: 1.13;
  }

  .community-cup .cc-hero-description {
    font-size: 16px;
  }

  .community-cup .cc-season {
    padding: 12px;
    gap: 8px;
  }

  .community-cup .cc-season-date {
    flex-basis: 160px;
  }

  .community-cup .cc-season .cc-button {
    flex-basis: 100%;
  }

  .community-cup .cc-section-title {
    font-size: 24px;
  }

  .community-cup .cc-section-description {
    font-size: 16px;
  }

  .community-cup .cc-benefit-grid, .community-cup .cc-format-grid, .community-cup .cc-step-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .community-cup .cc-card {
    padding: 12px;
    border-radius: 12px;
  }

  .community-cup .cc-benefit .cc-button {
    margin-top: 4px;
  }

  .community-cup .cc-button {
    min-height: 44px;
  }

  .community-cup .cc-format {
    gap: 8px;
  }

  .community-cup .cc-format-number {
    font-size: 28px;
  }

  .community-cup .cc-league-copy {
    margin-block: 24px;
  }

  .community-cup .cc-table {
    display: block;
  }

  .community-cup .cc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .community-cup .cc-table tbody {
    display: grid;
    gap: 12px;
  }

  .community-cup .cc-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "number format prize" "date date time";
    align-items: center;
    gap: 12px 8px;
    min-height: 111px;
    padding: 12px;
    border: 1px solid var(--cc-border-soft);
    border-radius: 12px;
    background: linear-gradient(to bottom, transparent 52px, var(--cc-border) 52px, var(--cc-border) 53px, transparent 53px), var(--cc-card);
  }

  .community-cup .cc-table tbody th, .community-cup .cc-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .community-cup .cc-tournament-number {
    grid-area: number;
  }

  .community-cup .cc-tournament-format {
    grid-area: format;
    font-weight: 700;
  }

  .community-cup .cc-tournament-format img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }

  .community-cup .cc-tournament-date {
    grid-area: date;
    color: var(--cc-muted);
    font-size: 12px;
  }

  .community-cup .cc-tournament-time {
    grid-area: time;
    text-align: right;
    color: var(--cc-muted);
    font-size: 12px;
  }

  .community-cup .cc-tournament-prize {
    grid-area: prize;
  }

  .community-cup .cc-mobile-label {
    display: block;
    font-size: 10px;
    color: var(--cc-muted);
  }

  .community-cup .cc-community {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 181px;
    padding: 24px 16px;
    background-image: linear-gradient(90deg, rgb(13 13 23 / 85%), rgb(13 13 23 / 70%)), url("assets/community-mobile.png");
    background-size: 100% 100%, cover;
  }

  .community-cup .cc-community .cc-card-title {
    max-width: 26ch;
  }
}
