.training-host { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #101319; overflow: hidden; }
.training-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.training-host::backdrop { background: #101319; }
.training-coach, .training-ring { position: fixed; inset: auto; margin: 0; box-sizing: border-box; }
.training-ring { pointer-events: none; border: 3px solid #d7fa52; border-radius: 8px; background: transparent; padding: 0; box-shadow: 0 0 0 9999px #0007, 0 0 25px #d7fa5280; }
.training-coach { color: #eff3e8; background: #19201cf5; border: 1px solid #a3bf55; border-left: 4px solid #d7fa52; border-radius: 12px; padding: 16px; box-shadow: 0 15px 50px #000a; overflow: auto; font: 14px/1.5 var(--body, sans-serif); }
.training-coach-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #d7fa52; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.training-coach-top button { padding: 2px 10px; min-height: 30px; }
.training-coach h2 { font-size: 20px; margin: 7px 0 12px; }
.training-coach p { margin: 10px 0; line-height: 1.55; }
.training-coach small { display: block; color: #aab9a4; font-size: 11px; }
.training-coach details { margin: 12px 0; padding: 8px; border: 1px solid #ffffff26; border-radius: 6px; }
.training-coach summary { color: #d7fa52; cursor: pointer; }
.training-result { padding: 10px 0; color: #dcf3ac; }
.training-nav { display: flex; justify-content: space-between; gap: 10px; }
.training-coach button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.training-coach button:disabled { opacity: .45; cursor: default; }
.training-coach .training-chapters-label { margin-top: 12px; }
.training-ring-race { box-shadow: 0 0 12px #d7fa5280; }
.training-coach-race { box-shadow: none; }
/* Keep the guide outside the clipped scene, so moving cars cannot pass under it. */
.training-race .race-screen { height: calc(100dvh - min(200px, 32dvh)); }
@media (max-width: 1099px) {
  .training-race .hud-bottom-right { max-height: calc((100dvh - min(200px, 32dvh)) * .48 / .7); }
}
@media (min-width: 1100px) {
  .training-race .race-screen { width: calc(100% - min(350px, 28vw)); height: 100dvh; }
}
.training-chapters { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 12px; }
.training-chapters button { padding: 4px 7px; font-size: 10px; min-height: 28px; background: transparent; }
