.playoff-board {
  --bracket-line: #bd4652;
  --slot-height: 64px;
  --slot-gap: 10px;
  --round-gap: clamp(34px, 5vw, 64px);
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid var(--bc-line-hi);
  border-top: 3px solid var(--bc-brand);
  background:
    repeating-linear-gradient(132deg, transparent 0 46px, #ffffff07 47px 48px),
    radial-gradient(ellipse at 100% 0%, #631824 0%, transparent 55%),
    linear-gradient(120deg, #191b21, #111216 62%, #31161d);
}

.playoff-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.playoff-heading img {
  width: clamp(42px, 7vw, 76px);
  height: auto;
  mix-blend-mode: lighten;
}

.playoff-heading h1 {
  margin: 0;
  line-height: 1;
  font-size: clamp(42px, 8vw, 94px);
  text-transform: uppercase;
}

.playoff-heading .tag {
  margin-left: auto;
  background: #101215;
}

.playoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--round-gap);
}

html .playoff-round {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html .playoff-round:first-child {
  margin-top: calc(var(--slot-height) + var(--slot-gap));
}

html .playoff-round:nth-child(2) {
  margin-top: calc((var(--slot-height) + var(--slot-gap)) / 2);
}

html .playoff-round h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.2;
  text-transform: uppercase;
}

.playoff-pair {
  position: relative;
  display: grid;
  gap: var(--slot-gap);
}

.playoff-slot {
  --slot-border: var(--bc-line-hi);
  --slot-fill: #1b1e24;
  min-width: 0;
  height: var(--slot-height);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 2.6em;
  align-items: center;
  gap: clamp(5px, 1vw, 12px);
  padding: 10px 11px;
  background: var(--slot-fill);
  border: 1px solid var(--slot-border);
  border-inline-start: 3px solid var(--slot-border);
}

.playoff-slot[data-team="false"] {
  --slot-fill: #15171c;
  color: var(--bc-mute);
}

.playoff-slot[data-winner="true"] {
  --slot-border: #f76572;
  --slot-fill: #421d27;
}

.playoff-emblem {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #101215;
  color: var(--bc-mute);
  font: 600 16px var(--bc-display);
}

.playoff-emblem img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.playoff-slot h3 {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  line-height: 1.15;
  font-size: clamp(14px, 1.7vw, 21px);
}

.playoff-score {
  border-left: 1px solid var(--slot-border);
  text-align: right;
  font: 600 clamp(18px, 2.4vw, 27px) var(--bc-display);
  font-variant-numeric: tabular-nums;
}

.playoff-round footer {
  margin-top: 12px;
  color: var(--bc-mute);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.playoff-round[data-complete="true"] footer {
  color: #ffabb2;
}

.playoff-round:not(:last-child) .playoff-pair::before,
.playoff-round:not(:last-child) .playoff-pair::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.playoff-round:not(:last-child) .playoff-pair::before {
  inset: calc(var(--slot-height) / 2) calc(var(--round-gap) / -2)
    calc(var(--slot-height) / 2) 100%;
  border: 1px solid var(--bracket-line);
  border-left: 0;
}

.playoff-round:not(:last-child) .playoff-pair::after {
  top: 50%;
  left: calc(100% + var(--round-gap) / 2);
  width: calc(var(--round-gap) / 2);
  border-top: 1px solid var(--bracket-line);
}

#playoff-status:empty {
  display: none;
}

@media (max-width: 800px) {
  .playoff-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  html .playoff-round:first-child,
  html .playoff-round:nth-child(2) {
    margin-top: 0;
  }

  .playoff-round {
    position: relative;
  }

  .playoff-round:not(:last-child) .playoff-pair::before {
    display: none;
  }

  .playoff-round:not(:last-child) .playoff-pair::after {
    content: none;
  }

  .playoff-round:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(100% + 7px);
    left: 17px;
    height: 21px;
    border-left: 1px solid var(--bracket-line);
  }

  .playoff-heading .tag {
    margin-left: 0;
  }

  .playoff-slot h3 {
    font-size: 18px;
  }
}
