.td-demo {
  box-sizing: border-box;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  color: var(--td-text, #F5F7F8);
}

.td-court {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background-color: var(--td-board, #20342B);
}

.td-paint {
  fill: var(--td-control, rgba(255, 255, 255, 0.08));
}

.td-court-lines {
  fill: none;
  stroke: var(--td-line, rgba(255, 255, 255, 0.55));
}

.td-hoop {
  stroke: var(--td-path, rgba(255, 255, 255, 0.8));
}

.td-route {
  fill: none;
  stroke: var(--td-path, rgba(255, 255, 255, 0.8));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-pass {
  stroke-dasharray: 8 7;
}

.td-shot {
  stroke-dasharray: 0.5 8;
}

.td-defense-route .td-route {
  stroke: var(--td-defense, #8FA39A);
  opacity: 0.75;
}

.td-offense {
  fill: var(--td-offense, #FFFFFF);
  stroke: var(--td-board, #20342B);
  stroke-width: 2;
}

.td-defense {
  fill: var(--td-board, #20342B);
  stroke: var(--td-defense, #8FA39A);
  stroke-width: 3;
}

.td-number,
.td-phase-index {
  font-family: "Barlow Condensed", var(--td-host-font, sans-serif);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.td-number {
  fill: var(--td-board, #20342B);
  font-size: 23px;
}

.td-defense-number {
  fill: var(--td-defense, #8FA39A);
}

.td-ball {
  fill: var(--td-ball, #C2F826);
  stroke: var(--td-board, #20342B);
  stroke-width: 1.75;
}

.td-ball-seam {
  stroke: var(--td-board, #20342B);
  stroke-width: 1;
}

.td-caption {
  position: relative;
  margin: 12px 0 0;
  color: var(--td-text, #F5F7F8);
  font-size: 15px;
  line-height: 1.55;
}

.td-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.td-controls {
  display: grid;
  grid-template-columns: 44px repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-block-start: 10px;
}

.td-toggle,
.td-phase {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 12px;
  appearance: none;
  background-color: var(--td-control, rgba(255, 255, 255, 0.08));
  color: var(--td-text, #F5F7F8);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.td-phase {
  flex-direction: column;
  gap: 1px;
}

.td-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.td-phase-index {
  color: var(--td-muted, rgba(245, 247, 248, 0.6));
  font-size: 14px;
  line-height: 1;
}

.td-phase-name {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.td-phase[aria-current="step"] {
  background-color: var(--td-control-active, #F5F7F8);
  color: var(--td-control-active-text, #192821);
}

.td-phase[aria-current="step"] .td-phase-index {
  color: inherit;
}

@media (hover: hover) {
  .td-toggle:hover,
  .td-phase:hover {
    outline: 1px solid var(--td-line, rgba(255, 255, 255, 0.55));
    outline-offset: -2px;
  }
}

.td-toggle:focus-visible,
.td-phase:focus-visible {
  outline: 3px solid var(--td-ball, #C2F826);
  outline-offset: 2px;
}

@container (max-width: 280px) {
  .td-caption {
    min-block-size: 3.1em;
  }
}

@container (min-width: 460px) {
  .td-controls {
    gap: 8px;
    margin-block-start: 12px;
  }

  .td-phase {
    flex-direction: row;
    gap: 6px;
  }

  .td-phase-index {
    font-size: 16px;
  }

  .td-phase-name {
    font-size: 14px;
  }
}
