.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 {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) clamp(76px, 22%, 225px);
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
}
.race-quiz .g-question {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.race-quiz .g-options { grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); }
.race-prompt-art {
  height: clamp(58px, 15dvh, 132px);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 40% 38%, #294b63, #132541 86%);
  border: 1px solid #7acedb44;
  border-radius: 14px;
}
.race-prompt-art > svg { display: block; width: 100%; height: 100%; }

@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-prompt-art,
.race-choice-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.race-prompt-art > img,
.race-choice-art > img {
  min-width: 0;
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.race-quiz .g-question {
  padding: 4px;
  font-size: clamp(16px, 2.4vw, 29px);
  line-height: 1.23;
}
.race-quiz .g-opt:has(.race-choice-art) {
  display: grid;
  grid-template-columns: clamp(58px, 12vw, 155px) minmax(0,1fr);
  align-items: center;
  text-align: left;
  min-width: 0;
  gap: clamp(4px, 1.2vw, 13px);
  padding: clamp(5px, 1vw, 11px);
  font-size: clamp(13px, 1.75vw, 22px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.race-choice-art {
  height: clamp(36px, 8dvh, 76px);
  padding: 2px;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 43%, #294558, #10213a);
}
.race-quiz .g-opt { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 530px) {
  .race-quiz .g-opt:has(.race-choice-art) { grid-template-columns: minmax(0,1fr); text-align: center; }
  .race-quiz .g-opt { font-size: clamp(13px, 4vw, 19px); padding: 8px; }
}
@media (max-width: 480px) and (max-height: 680px) {
  .race-track { height: clamp(97px, 21dvh, 128px); }
  .race-quiz > .g-question { text-align: left; font-size: clamp(15px, 4.4vw, 18px); }
}
