.race-track {
  position: relative;
  height: clamp(112px, 28dvh, 245px);
  flex: 0 0 auto;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid #a8c5ed55;
  background: linear-gradient(180deg, #0e1c2e22, #09122166), var(--race-landscape) center / cover, #1a3049;
}
.race-quiz-wrap {
  min-height: 0;
  overflow: auto;
  justify-content: center;
  padding: clamp(9px, 2vw, 28px);
}
.race-quiz .g-question { min-width: 0; overflow-wrap: anywhere; }
.race-quiz .g-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.race-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 40px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #f7c57d88;
  border-radius: 12px;
  color: #ffe9c8;
  background: linear-gradient(145deg, #4d382b, #282b3d);
  box-shadow: inset 0 1px #ffe4be33, 0 3px 9px #05112466;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.race-version[hidden] { display: none; }
.race-version:hover { border-color: #ffce88; box-shadow: 0 0 12px #f6bb6855; }
.race-version:focus-visible { outline: 2px solid #ffe9c8; outline-offset: 2px; }
.race-version-number {
  padding: 5px 6px;
  border-radius: 6px;
  color: #231b20;
  background: linear-gradient(155deg, #ffe0a3, #f2ac66);
  font-weight: 900;
}
.race-version[data-classic="true"] {
  color: #d3faff;
  border-color: #7ad8ef88;
  background: linear-gradient(145deg, #204856, #253044);
}
.race-version[data-classic="true"] .race-version-number {
  color: #102939;
  background: linear-gradient(155deg, #b2f4ff, #63d3e6);
}
@media (max-width: 590px) {
  .play-top:has(.race-version:not([hidden])) { gap: 5px; }
  .play-top:has(.race-version:not([hidden])) .play-score { min-width: 0; }
  .race-version { min-width: 44px; min-height: 44px; padding: 4px; }
  .race-version-label { display: none; }
}
@media (max-height: 510px) {
  .race-track { height: clamp(85px, 26dvh, 128px); }
  .race-quiz-wrap { justify-content: flex-start; }
  .race-quiz .g-question { font-size: clamp(18px, 3.8vh, 29px); }
  .race-quiz .g-opt { padding: 7px; font-size: clamp(13px, 3.4vh, 20px); }
}

.race-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding-right: 38px;
}
.race-card-head .game-ico { flex: 0 0 54px; }
.race-card-versions {
  display: flex;
  justify-content: space-evenly;
  flex: 1;
  gap: 6px;
  min-width: 0;
}
.race-card-version {
  display: grid;
  place-items: center;
  flex: 1 0 44px;
  max-width: 56px;
  min-height: 44px;
  border: 1px solid #ffd19866;
  border-radius: 12px;
  background: linear-gradient(150deg, #5f4639, #3b3040);
  box-shadow: inset 0 1px #ffe0b833, 0 3px 10px #080d2166;
  color: #ffe5bf;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: filter .18s, border-color .18s;
}
.race-card-version + .race-card-version {
  border-color: #8be4fc70;
  background: linear-gradient(145deg, #354d80, #215668);
  color: #dbfaff;
}
.race-card-version:hover { filter: brightness(1.22); }
.race-card-version:focus-visible,
.race-card-name:focus-visible { outline: 2px solid #c2efff; outline-offset: 2px; }
.race-card-name {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
