.practice-confirmation .app-shell { height: 100dvh; }
.practice-confirmation .page { overflow: auto; }
.practice-stage {
  --practice-accent: #00d2be;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vh, 36px);
  flex: 1;
  min-height: 0;
  padding: clamp(24px, 3.5vh, 40px) 4.5vw;
  background: #07090d;
}
.practice-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/showroom-satin.webp') center / cover no-repeat;
  opacity: .5;
}
.practice-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #07090deb, #07090d30 55%, #07090d55),
    linear-gradient(0deg, #07090df0, transparent 45%, #07090d88),
    color-mix(in srgb, var(--practice-accent) 45%, transparent);
  mix-blend-mode: multiply;
}
.practice-hero { display: grid; grid-template-columns: minmax(300px, .38fr) minmax(0, .62fr); gap: 3vw; min-height: 0; }
.practice-circuit { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.practice-heading h1 { margin-top: 12px; font-size: clamp(24px, 2.4vw, 42px); font-weight: 400; line-height: 1.35; }
.practice-heading > p { margin-top: 9px; color: #b1b4bd; font: 11px/1.6 var(--font-mono); letter-spacing: .08em; }
.practice-track-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: clamp(16px, 1.7vw, 28px); background: #171c24df; border: 1px solid #c1cbd229; border-radius: 5px; }
.practice-map { flex: 1; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.practice-map img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.practice-track-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 16px; }
.practice-track-facts > div { padding-top: 10px; border-top: 1px solid #ffffff1c; min-width: 0; }
.practice-track-facts dt { font-size: 11px; color: #9da6b3; }
.practice-track-facts dd { margin-top: 3px; font: 400 clamp(14px, 1.25vw, 21px)/1.5 var(--font-display); }
.practice-art { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.practice-wordmark { position: absolute; top: 21%; left: 0; right: 0; color: transparent; -webkit-text-stroke: 1px #ffffff60; text-align: center; font: 600 clamp(60px, 8.8vw, 164px)/1 var(--font-display); letter-spacing: .035em; white-space: nowrap; }
.practice-driver-card { position: absolute; top: 4%; right: 0; display: flex; gap: 16px; align-items: center; z-index: 2; }
.practice-driver-card > img { width: 66px; height: 44px; object-fit: contain; }
#practice-team { font: 500 18px/1.5 var(--font-display); }
#practice-driver { margin-top: 3px; color: #b4bdca; font-size: 12px; }
.practice-car {
  position: absolute;
  left: 50%;
  bottom: 0;
  /* Fit the complete baked image, including the floor reflection, below the wordmark. */
  transform: translateX(-50%);
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 70%;
  object-fit: contain;
  object-position: center bottom;
}
.practice-car-status { position: absolute; inset: 55% 0 auto; text-align: center; font-size: 12px; color: #b4bdca; }
.practice-car-status button { text-decoration: underline; margin-left: 8px; }
.practice-options { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 24px; padding: 20px 24px; background: #10151fe8; border: 1px solid #c1cbd229; border-radius: 5px; }
.practice-option { display: grid; min-width: 0; gap: 9px; }
.practice-option > span:first-child { color: #a4afbe; font-size: 11px; letter-spacing: .18em; }
.practice-options .fr-select-trigger { min-height: 58px; padding: 12px 18px; border-radius: 3px; font-size: 20px; background: #0b1019; }
.practice-options .fr-select-trigger:hover { border-color: #ffffff70; background: #19202d; }
.practice-settings-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; padding: 0 12px; color: #bdc5d1; font-size: 12px; }
.practice-settings-link:hover { color: #fff; }
.practice-settings-link > span { color: #fff; font-size: 18px; }
@media (max-width: 1000px) {
  .practice-hero { grid-template-columns: minmax(270px, .44fr) minmax(0, .56fr); gap: 16px; }
  .practice-stage { padding: 24px; gap: 20px; }
  .practice-heading h1 { font-size: 24px; }
  .practice-heading > p { font-size: 10px; }
  .practice-options { gap: 16px; padding: 16px; }
  .practice-options .fr-select-trigger { min-height: 50px; font-size: 17px; }
  .practice-settings-link { min-height: 50px; gap: 12px; padding: 0; }
}
@media (max-width: 650px) and (orientation: portrait) {
  .practice-stage { display: flex; flex-direction: column; flex: none; min-height: 100%; padding: 24px 18px; }
  .practice-hero { display: flex; flex-direction: column; gap: 16px; }
  .practice-circuit { gap: 16px; }
  .practice-track-panel { flex: none; }
  .practice-map { height: 170px; flex: none; }
  .practice-art { height: 250px; flex: none; }
  .practice-wordmark { top: 26%; font-size: 14vw; }
  .practice-driver-card { top: 0; left: 0; right: auto; }
  #practice-team { font-size: 16px; }
  .practice-car { width: 90%; }
  .practice-options { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .practice-settings-link { grid-column: 1 / -1; min-height: 28px; border-top: 1px solid #ffffff15; padding-top: 12px; }
  .practice-options .fr-select-trigger { padding: 12px; font-size: 16px; }
  .practice-confirmation .actionbar .btn-ghost { display: inline-flex; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .practice-stage { padding: 14px 24px; gap: 12px; }
  .practice-hero { grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); }
  .practice-circuit { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
  .practice-heading h1 { margin-top: 8px; font-size: 18px; }
  .practice-heading > p { font-size: 8px; margin-top: 6px; }
  .practice-track-panel { padding: 10px; }
  .practice-map { min-height: 24px; }
  .practice-track-facts { gap: 5px 10px; margin-top: 5px; }
  .practice-track-facts > div { padding-top: 4px; }
  .practice-track-facts dt { font-size: 8px; }
  .practice-track-facts dd { font-size: 11px; }
  .practice-driver-card { top: 0; gap: 8px; }
  .practice-driver-card > img { width: 40px; height: 28px; }
  #practice-team { font-size: 13px; }
  #practice-driver { font-size: 9px; }
  .practice-wordmark { top: 26%; font-size: 7vw; }
  .practice-car { width: 80%; max-height: 64%; }
  .practice-options { padding: 10px 14px; gap: 16px; }
  .practice-option { gap: 4px; }
  .practice-option > span:first-child { font-size: 9px; }
  .practice-options .fr-select-trigger { min-height: 38px; padding: 6px 12px; font-size: 14px; }
  .practice-settings-link { min-height: 38px; font-size: 11px; }
}
