.vehicle-photo {
  display: block;
  width: 100%;
  max-width: 88px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #18293835);
}
.pressure-diagram { color: #17324a; text-align: center; min-width: 0; }
.pressure-front, .pressure-diagram small { font-size: .77rem; }
.pressure-wheels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(44px, 23%, 68px) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(45px, 1fr));
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  isolation: isolate;
}
.pressure-wheels .vehicle-photo { grid-area: 1 / 2 / 3 / 3; justify-self: center; }
.wheel {
  display: grid;
  gap: 2px;
  padding: 4px 2px;
  background: #f7fbff;
  border: 1px solid #c7d7e4;
  border-radius: 7px;
  font-size: .72rem;
  line-height: 1.15;
}
.wheel strong { font-size: .85rem; white-space: nowrap; }
.wheel-fl { grid-area: 1 / 1; }
.wheel-fr { grid-area: 1 / 3; }
.wheel-rl { grid-area: 2 / 1; }
.wheel-rr { grid-area: 2 / 3; }
.door-diagram {
  display: grid;
  grid-template-columns: minmax(65px, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.door-opening {
  position: relative;
  height: 130px;
  border: 10px solid #a9bac8;
  border-bottom-width: 16px;
  border-radius: 55% 17% 12% 12% / 37% 15% 12% 12%;
  background: #314b60;
}
.door-pillar {
  position: absolute;
  inset: 0 0 0 auto;
  width: 24%;
  background: #d9e3ec;
}
.door-marker {
  position: absolute;
  right: 1%;
  top: 56%;
  width: 21%;
  height: 21%;
  background: #ffdb73;
  border: 1px solid #725600;
  border-radius: 2px;
}
.door-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  color: #17324a;
  background: #fff9e8;
  border-left: 4px solid #b38615;
  border-radius: 5px;
  font-size: .87rem;
}
.sim-overview .vehicle-photo, .film-car .vehicle-photo { width: 92%; }
.sim-pressure-display { margin: 9px 0; padding: 8px 3px; border-radius: 8px; background: #eaf2f8; }
.film-menu .film-detail { padding: 7px; background: #eaf2f8; border-radius: 8px; }
.film-source { color: #b4d9ff; }
@media (max-width: 430px) {
  .sim-display .sim-main { grid-template-columns: 29% 71%; }
  .film-stage .film-layout { grid-template-columns: 25% 75%; }
  .film-car small { font-size: .65rem; }
  .door-diagram { gap: 7px; }
}
.sim-main:has(.sim-pressure-display), .film-layout:has(.film-detail) {
  grid-template-columns: minmax(0, 1fr);
}
.sim-main:has(.sim-pressure-display) .sim-overview,
.film-layout:has(.film-detail) .film-car { display: none; }
.pressure-wheels, .door-diagram { max-width: 350px; margin-inline: auto; }

.exercise-links { margin-block: 12px; }
.task-visual {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 6px;
  margin: 6px 0 12px;
  color: #17324a;
  text-align: center;
  background: #eaf2f8;
  border-radius: 9px;
  font-size: .88rem;
}
.headlight-view {
  position: relative;
  isolation: isolate;
  width: 72px;
  padding-top: 25px;
}
.headlight-view span {
  position: absolute;
  z-index: -1;
  top: 0;
  width: 47%;
  height: 43px;
  background: linear-gradient(0deg, #fffad0, #ffdb6300);
  clip-path: polygon(42% 100%, 0 0, 100% 0, 68% 100%);
  animation: lights-on .35s ease-out both;
}
.headlight-view span:first-of-type { left: 0; }
.headlight-view span:last-of-type { right: 0; }
@keyframes lights-on { from { opacity: 0; } to { opacity: 1; } }

.windscreen {
  position: relative;
  width: min(100%, 166px);
  aspect-ratio: 1.9;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid #334e63;
  border-radius: 23% 23% 11% 11% / 28% 28% 15% 15%;
  background: linear-gradient(#89b7db 0 54%, #709088 55%, #324b60 56%);
}
.wet-screen {
  background: radial-gradient(ellipse, #b2d9f2 0 12%, transparent 14%) 1px 1px / 12px 15px,
    linear-gradient(145deg, #5e8fae, #294358);
}
.wiper-arm {
  position: absolute;
  bottom: 8%;
  left: 10%;
  width: 43%;
  height: 4px;
  border-radius: 6px;
  background: #162e43;
  transform-origin: 3px 50%;
  animation: wipe 1.8s ease-in-out infinite;
}
.wiper-arm.right { left: 50%; animation-delay: .08s; }
@keyframes wipe { 0%, 55%, 100% { transform: rotate(-8deg); } 27% { transform: rotate(-83deg); } }
.screen-mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #e7edf1, #b9c8d5 68%, #91a8b8);
}
.clearing .screen-mist { animation: clear-glass 2.5s ease-out forwards; }
@keyframes clear-glass { to { opacity: 0; } }
.screen-air {
  position: absolute;
  inset: auto 0 5%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 1px 4px #142b3d;
}
.mirror-view {
  width: min(100%, 140px);
  aspect-ratio: 2;
  border: 5px solid #2a4154;
  border-radius: 22% 39% 23% 25%;
  background: linear-gradient(#9cc6e7 0 45%, #638d73 46% 56%, #526478 57%) center 40% / 100% 150%;
}
.mirror-view.adjusted { animation: adjust-mirror .55s ease-out forwards; }
@keyframes adjust-mirror { to { background-position: center 100%; } }
.film-steps-menu:empty, .film-menu .task-visual:empty { display: none; }
.film-stage .task-visual { margin-bottom: 0; }
.sim-main:has(.sim-complete .task-visual) { grid-template-columns: minmax(0, 1fr); }
.sim-main:has(.sim-complete .task-visual) .sim-overview { display: none; }
@media (prefers-reduced-motion: reduce) {
  .task-visual * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.sim-dock .sim-climate {
  padding: 4px 8px;
  min-height: 32px;
  color: inherit;
  background: #f3f6f9;
  border: 1px solid #b8c8d5;
  border-radius: 7px;
  font-size: inherit;
}

.lamp-view {
  position: relative;
  width: 62px;
  margin: 3px;
}
.lamp-view span {
  position: absolute;
  width: 13px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
}
.braking span {
  bottom: 8%;
  background: #ff3838;
  box-shadow: 0 0 8px #fc302e;
  animation: lights-on .3s ease both;
}
.braking span:nth-of-type(1) { left: 10%; }
.braking span:nth-of-type(2) { right: 10%; }
.braking span:nth-of-type(3) { bottom: 15%; left: 36%; width: 28%; height: 4px; }
.flashing span {
  background: #ffb129;
  box-shadow: 0 0 8px #ff9d13;
  animation: indicator-blink 1.2s step-end infinite;
}
.flashing span:nth-of-type(1) { top: 9%; left: 10%; }
.flashing span:nth-of-type(2) { top: 9%; right: 10%; }
.flashing span:nth-of-type(3) { bottom: 8%; left: 10%; }
.flashing span:nth-of-type(4) { bottom: 8%; right: 10%; }
@keyframes indicator-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .flashing span { animation: none; opacity: 1; }
}
.hazard-switch {
  display: grid;
  place-items: center;
  width: 42px;
  height: 25px;
  color: #fff;
  background: #9a2739;
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1;
}
.washer-spray {
  position: absolute;
  inset: 2% 8%;
  background: radial-gradient(circle, #e1f6ff 0 13%, transparent 17%) 2px 4px / 13px 12px;
  animation: washer-spray .9s ease-out both;
}
@keyframes washer-spray { from { opacity: .25; transform: translateY(20%); } to { opacity: 1; transform: translateY(0); } }
.seatbelt-view {
  position: relative;
  width: 66px;
  height: 91px;
  border-radius: 28% 28% 18% 18%;
  background: linear-gradient(90deg, #2b455c, #476078 53%, #30485e);
  border: 4px solid #30465a;
}
.belt-band {
  position: absolute;
  left: 13%;
  top: 7%;
  width: 8px;
  height: 86%;
  border-radius: 3px;
  background: #b6c8d8;
  transform-origin: 50% 0;
  transition: transform .25s ease;
}
.belt-extended .belt-band { transform: rotate(-32deg); }
.belt-buckle {
  position: absolute;
  right: 12%;
  bottom: 10%;
  width: 11px;
  height: 13px;
  border-radius: 3px;
  background: #ed7b82;
}
.belt-fastened .belt-buckle { background: #69d2a4; }
