.indigo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.indigo-swatch {
  display: grid;
  grid-template-rows: auto minmax(26px, auto);
  align-content: start;
  min-width: 0;
  padding: 3px;
  border: 1px solid #d0d5e0;
  border-radius: 4px;
  background: #fafbfe;
  color: var(--muted);
}
.indigo-swatch:hover { border-color: #7d8cab; }
.indigo-swatch[aria-disabled="true"] { cursor: default; }
.indigo-color { width: 100%; aspect-ratio: 1; border-radius: 2px; background: var(--swatch); }
.indigo-name { display: grid; place-items: center; padding: 2px 0; font-size: 10px; line-height: 1.15; }

.horse-track { display: grid; gap: 5px; }
.horse-lane {
  display: grid;
  grid-template-columns: minmax(100px, 34%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 54px;
  border: 1px solid #c8d4e3;
  border-radius: 4px;
  background: #f3f6fb;
}
.horse-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 0;
  border-right: 1px solid #c8d4e3;
  border-radius: 3px 0 0 3px;
  background: var(--paper);
  color: #283951;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
}
.horse-pick[aria-pressed="true"] { background: #e4edff; box-shadow: inset 0 0 0 2px #8ba7df; }
.horse-pick:focus-visible { outline-offset: -2px; }
.horse-number {
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  height: 18px;
  border-radius: 2px;
  background: var(--silks);
  color: white;
  font-size: 11px;
}
.horse-straight {
  position: relative;
  margin: 6px 19px 6px 15px;
  border-left: 1px solid #a6b4c5;
  background: linear-gradient(transparent 78%, #d8dfeb 78% 83%, transparent 83%);
}
.horse-straight::after {
  content: '';
  position: absolute;
  inset: 0 -6px 0 auto;
  width: 6px;
  background: repeating-conic-gradient(#687a94 0 25%, #eaf0f7 0 50%) 0 0 / 6px 6px;
}
.horse-runner {
  position: absolute;
  top: 50%;
  left: var(--race-position, 0%);
  translate: -50% -58%;
  display: grid;
  place-items: center;
  width: 29px;
  height: 28px;
  border-radius: 50%;
  background: #f5f8fe;
  box-shadow: 0 0 0 1px var(--silks);
  font-size: 20px;
  line-height: 1;
}
.horse-runner span { scale: -1 1; }
.horse-lane[data-winner] { border-color: #82a995; background: #edf7f0; }
.horse-lane[data-winner] .horse-runner { background: #d4ecde; }
