.contest-board {
  --cb-ink: #1c1812;
  --cb-paper: #fffdf8;
  --cb-muted: #6b6458;
  --cb-line: rgba(28, 24, 18, 0.12);
  --cb-gold: #e4b15a;
  --cb-gold-ink: #1c1408;
  --cb-hero: #1c1812;
  --cb-hero-ink: #f6f1e7;
  width: min(1080px, calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
  color: var(--cb-ink);
  font-family: "Public Sans", sans-serif;
}

.contest-board h2,
.contest-board h3,
.cb-place strong,
.cb-status strong,
.cb-clock b,
.cb-projected b,
.cb-tabs button span {
  font-family: Syne, "Public Sans", sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.cb-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.4rem 1.15rem;
  border-radius: 1.15rem;
  background: var(--cb-hero);
  color: var(--cb-hero-ink);
}

.cb-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-gold);
}

.cb-hero h2 {
  margin: 0.35rem 0 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.cb-lead,
.cb-note {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  color: rgba(246, 241, 231, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cb-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
}

.cb-clock {
  align-self: start;
  min-width: 15rem;
  padding: 0.75rem 0.8rem 0.7rem;
  border: 1px solid rgba(228, 177, 90, 0.35);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.cb-clock p {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-gold);
}

.cb-clock-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.cb-clock-boxes div {
  padding: 0.45rem 0.2rem 0.35rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
}

.cb-clock b {
  display: block;
  font-size: 1.45rem;
  padding-top: 0.08em;
}

.cb-clock span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
}

.cb-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: var(--cb-gold);
  color: var(--cb-gold-ink);
}

.cb-status p,
.cb-projected span {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cb-status strong,
.cb-projected b {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  padding-top: 0.06em;
}

.cb-projected {
  flex-shrink: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--cb-gold-ink);
  color: var(--cb-gold);
  text-align: right;
}

.cb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-block: 0.2rem;
  overflow: visible;
}

.cb-tabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-width: max-content;
  min-height: 3.1rem;
  padding: 0.55rem 0.9rem 0.5rem;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: var(--cb-paper);
  color: var(--cb-ink);
  line-height: 1.3;
  cursor: pointer;
}

.cb-tabs button span {
  font-size: 0.86rem;
  font-weight: 700;
}

.cb-tabs button em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cb-gold-deep, #8d5a12);
}

.cb-tabs button.is-on {
  border-color: transparent;
  background: var(--cb-hero);
  color: var(--cb-hero-ink);
}

.cb-tabs button.is-on em {
  color: var(--cb-gold);
}

.cb-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.9rem;
}

.cb-place {
  padding: 1rem 0.9rem 0.95rem;
  border: 1px solid var(--cb-line);
  border-radius: 1rem;
  background: var(--cb-paper);
  text-align: center;
}

.cb-place.is-1 {
  padding-top: 1.2rem;
  padding-bottom: 1.15rem;
  border-color: transparent;
  background: var(--cb-hero);
  color: var(--cb-hero-ink);
}

.cb-place-rank,
.cb-place span {
  margin: 0;
  color: var(--cb-muted);
  font-size: 0.78rem;
}

.cb-place.is-1 .cb-place-rank,
.cb-place.is-1 span {
  color: rgba(246, 241, 231, 0.62);
}

.cb-avatar {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0.55rem auto 0.45rem;
  border-radius: 999px;
  background: #efe6d4;
  color: var(--cb-ink);
  font-weight: 800;
}

.cb-place.is-1 .cb-avatar {
  background: var(--cb-gold);
  color: var(--cb-gold-ink);
}

.cb-place strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  padding-top: 0.06em;
}

.cb-place em {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--cb-gold);
  color: var(--cb-gold-ink);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}

.cb-standings {
  margin-top: 0.9rem;
  border: 1px solid var(--cb-line);
  border-radius: 1rem;
  background: var(--cb-paper);
}

.cb-standings header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.4rem;
}

.cb-standings h3 {
  margin: 0;
  font-size: 1.15rem;
  padding-top: 0.06em;
}

.cb-standings header p {
  margin: 0.2rem 0 0;
  color: var(--cb-muted);
  font-size: 0.82rem;
}

.cb-standings header span {
  flex-shrink: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(228, 177, 90, 0.2);
  color: var(--cb-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.cb-table-wrap {
  overflow-x: auto;
}

.cb-table {
  width: 100%;
  border-collapse: collapse;
}

.cb-table th,
.cb-table td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--cb-line);
  text-align: left;
  white-space: nowrap;
}

.cb-table th {
  color: var(--cb-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html.theme-modern .contest-board,
html.dark.theme-modern .contest-board {
  color: var(--cb-ink);
}

html.theme-modern .contest-board h2,
html.theme-modern .contest-board h3,
html.dark.theme-modern .contest-board h2,
html.dark.theme-modern .contest-board h3 {
  color: var(--cb-ink);
}

html.theme-modern .contest-board .cb-hero,
html.theme-modern .contest-board .cb-hero h2,
html.dark.theme-modern .contest-board .cb-hero,
html.dark.theme-modern .contest-board .cb-hero h2 {
  color: var(--cb-hero-ink);
}

html.theme-modern .main-content .contest-board .cb-table th,
html.theme-modern .main-content .contest-board .cb-table td,
html.dark.theme-modern .main-content .contest-board .cb-table th,
html.dark.theme-modern .main-content .contest-board .cb-table td {
  color: var(--cb-ink);
}

.cb-table td[colspan] {
  text-align: left;
  color: var(--cb-muted);
}

.cb-table td:nth-child(2) {
  font-weight: 700;
}

.cb-table tr.is-you td {
  background: rgba(228, 177, 90, 0.18);
}

.cb-table th:last-child,
.cb-table td:last-child {
  text-align: right;
}

@media (max-width: 760px) {
  .cb-hero,
  .cb-status,
  .cb-standings header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cb-clock {
    min-width: 0;
  }

  .cb-projected {
    justify-self: start;
  }

  .cb-podium {
    grid-template-columns: 1fr;
  }

  .cb-tabs {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0.65rem;
    border: 1px solid var(--cb-line);
    border-radius: 1rem;
    background: var(--cb-paper);
  }

  .cb-tabs button {
    flex: 1 1 calc(50% - 0.28rem);
    max-width: calc(50% - 0.28rem);
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.7rem;
  }

  .cb-tabs button span {
    min-width: 0;
    font-size: 0.82rem;
  }

  .cb-tabs button em {
    margin-left: 0;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(28, 24, 18, 0.06);
    letter-spacing: 0;
    font-size: 0.62rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  .cb-tabs button.is-on em {
    background: rgba(228, 177, 90, 0.22);
  }

  .cb-place.is-1 {
    order: -1;
  }
}

html.theme-modern a.earn-rank {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
  text-decoration: none;
}

html.theme-modern a.earn-rank > span {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--desk-gold) 70%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--desk-gold) 28%, var(--desk-card));
  color: var(--desk-ink);
}

html.theme-modern a.earn-rank strong {
  flex: 0 0 auto;
  font-family: Syne, "Public Sans", sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--desk-gold);
}

html.theme-modern a.earn-rank .earn-rank-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

html.theme-modern a.earn-rank .earn-rank-copy b {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--desk-gold);
}

html.theme-modern a.earn-rank .earn-rank-copy em {
  font-size: 1.12rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  color: var(--desk-ink);
}
