/* At the Races, the player's phone: the racer list (an accordion), the bet panel, the stake chips and
   the return preview. Built on the player shell (20_player_shell.css). */

.gtf-racers {
  margin-top: 4px;
}

.gtf-racer {
  border-top: 2px solid var(--gtf-surface-2);
}

.gtf-racer__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 96px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--gtf-cream);
  cursor: pointer;
}

/* The racer's idle frame on a green mound, with the saddle number (the shared race sprite) */
.gtf-racer__sprite {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 88px;

  & .gtf-rsprite--phone { --h: 88px; }
}

.gtf-racer__name {
  flex: 1;
  min-width: 0;
}

.gtf-racer__title {
  display: block;
  font-size: 21px;
  font-weight: 800;
}

.gtf-racer__flag {
  margin-right: 6px;
}

.gtf-racer__backed {
  display: block;
  min-height: 20px;
  font-size: 15px;
  color: var(--gtf-yellow);
}

.gtf-racer__odds {
  font-family: var(--gtf-mono);
  font-size: 24px;
}

.gtf-racer__panel {
  padding: 4px 0 24px;
}

.gtf-racer__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.gtf-racer__stat-value {
  font-family: var(--gtf-mono);
  font-size: 24px;
}

.gtf-racer__stat-label {
  font-size: 14px;
  line-height: 1.3;
  color: var(--gtf-text-2);
}

.gtf-racer__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gtf-racer__help {
  margin-top: -8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--gtf-text-2);
}

.gtf-racer__chips {
  display: flex;
  gap: 8px;
}

.gtf-racer__preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gtf-racer__preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--gtf-text-2);
}

.gtf-racer__preview-value {
  font-family: var(--gtf-mono);
  font-weight: 400;
  color: var(--gtf-cream);
}

.gtf-racer__error {
  min-height: 18px;
  margin-top: -8px;
  font-size: 15px;
  color: var(--gtf-danger-red);
}

.gtf-racer__head:hover .gtf-racer__title {
  color: var(--gtf-yellow-hi);
}
