:root {
  --ink: #10110e;
  --metal: #303530;
  --yellow: #efc51b;
  --red: #db4935;
  --green: #70b775;
  --cream: #e7e5db;
}

* { box-sizing: border-box; }

html, body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--cream);
  background: #080907;
  font-family: "Arial Narrow", "Yu Gothic", "Meiryo", sans-serif;
  user-select: none;
}

button, input { font: inherit; }
button { color: inherit; }

.simulator {
  min-height: 100vh;
  padding: 18px;
  background: radial-gradient(circle at 50% 0, #3d433e, #141714 54%, #070806);
}

.cab-view {
  position: relative;
  width: min(1320px, 100%);
  height: min(900px, calc(100vh - 36px));
  min-height: 720px;
  margin: auto;
  overflow: hidden;
  border: 8px solid #171916;
  border-radius: 12px 12px 28px 28px;
  background: #707c78;
  box-shadow: 0 25px 70px #000, inset 0 0 0 2px #555b56;
  perspective: 900px;
}

.warehouse, .windshield { position: absolute; inset: 0; overflow: hidden; }
.warehouse { background: linear-gradient(#85918d 0 53%, #686a63 53%); }

.back-wall {
  position: absolute;
  inset: 0 0 44%;
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(33 37 35 / 32%) 50%, transparent 50.3%) 0 0 / 130px 100%,
    linear-gradient(#89948f, #69736e);
  box-shadow: inset 0 -22px 35px rgb(0 0 0 / 25%);
}

.ceiling {
  position: absolute;
  z-index: 1;
  inset: 0 0 75%;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 24% 100%);
  background:
    repeating-linear-gradient(90deg, transparent 0 12%, rgb(25 28 25 / 35%) 12.2% 13%, transparent 13.2% 25%),
    linear-gradient(#3f4641, #68736d);
}

.ceiling i {
  position: absolute;
  top: 38%;
  width: 11%;
  height: 11px;
  background: #ddd8bd;
  box-shadow: 0 0 18px #fff7c7;
}
.ceiling i:nth-child(1) { left: 16%; }
.ceiling i:nth-child(2) { left: 34%; }
.ceiling i:nth-child(3) { left: 51%; }
.ceiling i:nth-child(4) { left: 68%; }
.ceiling i:nth-child(5) { left: 85%; }

.floor {
  position: absolute;
  right: -20%;
  bottom: 0;
  left: -20%;
  height: 52%;
  transform: rotateX(58deg);
  transform-origin: bottom;
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(25 27 24 / 14%) 50%, transparent 50.3%) 0 0 / 110px 100%,
    linear-gradient(rgb(25 27 24 / 16%) 1px, transparent 1px) 0 0 / 100% 70px,
    #777971;
}

.lane-line {
  position: absolute;
  inset-block: 0;
  width: 7px;
  background: #d7c64a;
  opacity: .6;
}
.lane-left { left: 35%; transform: rotate(7deg); }
.lane-right { right: 35%; transform: rotate(-7deg); }
.floor-shadow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 55%;
  height: 23%;
  border-radius: 50%;
  background: rgb(0 0 0 / 35%);
  filter: blur(18px);
  transform: translateX(-50%);
}

.rack {
  position: absolute;
  bottom: 0;
  width: 19%;
  height: 62%;
  border: 9px solid #343a37;
  background:
    repeating-linear-gradient(0deg, transparent 0 25%, #343a37 26% 29%, transparent 30% 50%),
    repeating-linear-gradient(90deg, #8a6840 0 28%, #715432 29% 31%, #a47b49 32% 58%);
  opacity: .75;
}
.rack-left { left: -3%; }
.rack-right { right: -3%; }

.bay-label, .warning-board {
  position: absolute;
  top: 28%;
  padding: 8px 13px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}
.bay-label { left: 5%; border: 2px solid #c5cdc7; color: #d8ded9; }
.warning-board { right: 5%; color: #171815; background: var(--yellow); }

.windshield { z-index: 20; pointer-events: none; }
.pillar, .roof-frame, .mast {
  position: absolute;
  background: linear-gradient(90deg, #0c0d0b, #464b46 42%, #20231f 67%, #090a08);
  box-shadow: 8px 0 15px rgb(0 0 0 / 35%);
}
.pillar { top: -4%; bottom: 25%; width: 58px; }
.pillar-left { left: 4%; transform: rotate(-3deg); }
.pillar-right { right: 4%; transform: rotate(3deg); }
.roof-frame { inset: 0 0 auto; height: 35px; }
.mast { z-index: 5; top: 30%; bottom: 25%; width: 30px; opacity: .92; }
.mast::after {
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(0deg, #7f847d 0 5px, #30332f 6px 15px);
  content: "";
}
.mast-left { left: 29%; }
.mast-right { right: 29%; }

.hud {
  position: absolute;
  z-index: 30;
  top: 30px;
  right: 7%;
  left: 7%;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 105px;
  gap: 12px;
  align-items: start;
  pointer-events: none;
}

.stage-chip, .weight-chip, .mission {
  border: 1px solid rgb(235 239 230 / 38%);
  background: rgb(12 15 13 / 76%);
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
}
.stage-chip, .weight-chip { padding: 10px 12px; }
.stage-chip span, .weight-chip span, .mission > span {
  display: block;
  color: #aeb7af;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .19em;
}
.stage-chip strong { font-size: 29px; }
.stage-chip small { color: #929a92; font-weight: 900; }
.weight-chip { text-align: right; }
.weight-chip strong { display: block; margin-top: 3px; color: var(--yellow); font-size: 20px; }
.mission { justify-self: center; width: min(520px, 100%); padding: 11px 18px; text-align: center; }
.mission strong { display: block; margin: 2px 0; font-size: 19px; }
.mission p { margin: 0; color: #c6ccc5; font-size: 10px; line-height: 1.5; }

.load-zone {
  position: absolute;
  z-index: 8;
  top: 30%;
  left: 50%;
  width: 72%;
  height: 230px;
  transform: translateX(-50%);
  transition: top .55s ease;
}

.cargo {
  position: absolute;
  z-index: 2;
  top: 47px;
  left: 50%;
  width: 92%;
  height: 98px;
  transform: translateX(-50%);
  transform-origin: 50% 65%;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .65s;
}

.cargo-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 5px solid #373c39;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / 7%) 23px 25px),
    linear-gradient(#7c8580, #4d5551);
  box-shadow: inset 0 0 0 8px rgb(0 0 0 / 12%), inset 0 -18px 25px rgb(0 0 0 / 20%);
}
.cargo-shadow {
  position: absolute;
  right: 2%;
  bottom: -35px;
  left: 2%;
  height: 30px;
  border-radius: 50%;
  background: rgb(0 0 0 / 42%);
  filter: blur(10px);
}
.detail { position: absolute; display: block; }
.beam .cargo-face::before, .beam .cargo-face::after,
.weighted-beam .cargo-face::before, .weighted-beam .cargo-face::after {
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 8px;
  background: rgb(36 40 37 / 45%);
  content: "";
}
.beam .cargo-face::before, .weighted-beam .cargo-face::before { left: 18%; }
.beam .cargo-face::after, .weighted-beam .cargo-face::after { right: 18%; }
.weighted-beam .cargo-face {
  background:
    linear-gradient(90deg, transparent 0 69%, rgb(25 28 26 / 42%) 69%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / 7%) 23px 25px),
    linear-gradient(#7c8580, #4d5551);
}
.weighted-beam .detail-a, .weighted-beam .detail-b, .weighted-beam .detail-c {
  right: 4%;
  width: 24%;
  height: 11px;
  border: 2px solid #343936;
  background: #59615c;
}
.weighted-beam .detail-a { top: 12px; }
.weighted-beam .detail-b { top: 37px; }
.weighted-beam .detail-c { top: 62px; }

.pipes { height: 122px; }
.pipes .cargo-face {
  border: 0;
  border-radius: 35px;
  background:
    radial-gradient(circle at 23px 23px, #65716e 0 13px, #29312f 14px 18px, #9aa29f 19px 21px, transparent 22px) 0 0 / 46px 46px,
    #4b5350;
  box-shadow: inset 0 0 0 5px #303633;
}
.pipes .cargo-face::after {
  position: absolute;
  inset: 4px 14%;
  border-right: 8px solid #9d7950;
  border-left: 8px solid #9d7950;
  content: "";
}

.tree { height: 120px; }
.tree .cargo-face {
  border: 0;
  clip-path: polygon(0 10%, 18% 18%, 42% 4%, 72% 12%, 100% 32%, 97% 78%, 72% 92%, 39% 84%, 17% 96%, 0 83%);
  background:
    radial-gradient(ellipse at 9% 50%, #b88751 0 9%, #5e3c24 10% 13%, transparent 14%),
    repeating-linear-gradient(5deg, transparent 0 15px, rgb(57 34 20 / 25%) 16px 19px),
    linear-gradient(90deg, #6e4529, #9a6a3e 47%, #5b3822);
  box-shadow: none;
}

.frame { height: 130px; }
.frame .cargo-face {
  border: 0;
  clip-path: polygon(0 20%, 16% 20%, 19% 4%, 70% 4%, 73% 25%, 95% 25%, 100% 87%, 78% 87%, 74% 67%, 22% 67%, 18% 100%, 0 100%);
  background:
    radial-gradient(circle at 76% 42%, #303633 0 12%, #69716e 13% 18%, transparent 19%),
    linear-gradient(90deg, transparent 0 62%, #303633 62% 91%, transparent 91%),
    repeating-linear-gradient(90deg, #626b67 0 14%, #3e4642 15% 18%);
}

.crate { height: 150px; }
.crate .cargo-face {
  border-color: #5e4029;
  background:
    linear-gradient(32deg, transparent 47%, rgb(72 43 25 / 55%) 48% 52%, transparent 53%),
    linear-gradient(-32deg, transparent 47%, rgb(72 43 25 / 55%) 48% 52%, transparent 53%),
    repeating-linear-gradient(90deg, #a47545 0 12%, #79502d 12.5% 14%);
}
.crate .detail-a {
  right: 9%;
  bottom: 10%;
  width: 8%;
  height: 8%;
  border-radius: 50%;
  background: #352317;
  box-shadow: 7px 2px 12px rgb(0 0 0 / 55%);
}

.pallet {
  position: absolute;
  z-index: 1;
  top: 137px;
  left: 50%;
  width: 47%;
  height: 45px;
  border: 5px solid #4b321e;
  background: repeating-linear-gradient(90deg, #a27648 0 18%, #694629 19% 22%);
  transform: translateX(-50%) perspective(140px) rotateX(25deg);
}
.pallet i { position: absolute; bottom: -18px; width: 18%; height: 18px; background: #5d3c24; }
.pallet i:nth-child(1) { left: 8%; }
.pallet i:nth-child(2) { left: 41%; }
.pallet i:nth-child(3) { right: 8%; }

.fork-assembly {
  position: absolute;
  z-index: 14;
  bottom: 19%;
  left: 50%;
  width: 54%;
  height: 235px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: bottom .65s ease, transform .2s, margin-left .15s;
}
.fork {
  position: absolute;
  bottom: 0;
  width: 16%;
  height: 100%;
  clip-path: polygon(37% 0, 64% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #776000, #f3cb20 36%, #ad8a00 78%, #4d3f00);
  filter: drop-shadow(6px 8px 5px rgb(0 0 0 / 35%));
}
.fork::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 22%;
  height: 100%;
  background: rgb(255 247 174 / 32%);
  content: "";
  transform: translateX(-50%);
}
.fork i {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 31%;
  height: 28px;
  border-radius: 50%;
  background: #f4d12d;
  transform: translateX(-50%);
}
.fork-left { left: 12%; }
.fork-right { right: 12%; }
.carriage {
  position: absolute;
  inset: auto 0 -19px;
  height: 48px;
  border: 6px solid #171a17;
  background: repeating-linear-gradient(90deg, #2d312e 0 13%, #171a17 14% 16%);
}
.fork-assembly.inserted { bottom: 34%; transform: translateX(-50%) scale(.66); }
.fork-assembly.lifted { bottom: 43%; }
.load-zone.inserted { top: 27%; }
.load-zone.lifted { top: 18%; }

.motion-lines { position: absolute; z-index: 7; inset: 20% 13% 28%; opacity: 0; pointer-events: none; }
.motion-lines.active { animation: motion-flash .55s ease; }
.motion-lines i {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(245 239 205 / 55%), transparent);
}
.motion-lines i:nth-child(1) { top: 12%; }
.motion-lines i:nth-child(2) { top: 36%; }
.motion-lines i:nth-child(3) { top: 63%; }
.motion-lines i:nth-child(4) { top: 89%; }

.dashboard {
  position: absolute;
  z-index: 40;
  right: 3%;
  bottom: 0;
  left: 3%;
  height: 29%;
  min-height: 210px;
  padding: 14px 24px 15px;
  border: 5px solid #0c0d0b;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 9px 9px,
    linear-gradient(#363a36, #171916 74%);
  box-shadow: inset 0 4px 0 #555b55, 0 -15px 30px rgb(0 0 0 / 30%);
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 58%;
  height: 42px;
  margin: 0 auto 5px;
  border: 2px solid #0e100e;
  border-radius: 7px;
  background: #242723;
  box-shadow: inset 0 0 12px #070807;
}
.indicator-strip { display: flex; align-items: center; gap: 6px; }
.indicator-strip small { margin-right: 7px; color: #899087; font-size: 7px; font-weight: 900; }
.lamp { width: 10px; height: 10px; border: 1px solid #070807; border-radius: 50%; background: #333731; }
.lamp.ready.active, .lamp.inserted.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.lamp.load.active { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.status-screen {
  min-width: 170px;
  padding: 5px 9px;
  color: #9ebe8e;
  border: 1px solid #4d6247;
  background: #111b10;
  font-family: Consolas, monospace;
}
.status-screen span, .status-screen strong { display: block; }
.status-screen span { font-size: 8px; }
.status-screen strong { font-size: 11px; }

.controls {
  display: grid;
  grid-template-columns: 2fr .8fr 1.4fr .8fr;
  gap: 20px;
  align-items: end;
  height: calc(100% - 48px);
}
.steering-control, .lever-control, .pedal-control { position: relative; height: 100%; text-align: center; }
.steering-control > label, .lever-control > label, .control-title {
  display: block;
  color: #9da49b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
.steering-wrap { position: relative; width: 190px; height: 117px; margin: 1px auto 0; }
.steering-wheel {
  position: absolute;
  top: 0;
  left: 50%;
  width: 126px;
  height: 126px;
  border: 15px solid #0c0d0b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #484b45, 6px 8px 12px #000;
  transform: translateX(-50%);
  transition: transform .12s;
}
.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 39px;
  height: 39px;
  border: 5px solid #090a08;
  border-radius: 50%;
  background: #333631;
  transform: translate(-50%, -50%);
}
.spoke { position: absolute; top: 50%; left: 50%; width: 48px; height: 9px; background: #0a0b09; transform-origin: 0 50%; }
.spoke-a { transform: rotate(-90deg); }
.spoke-b { transform: rotate(30deg); }
.spoke-c { transform: rotate(150deg); }
#positionControl, #tiltControl { position: absolute; z-index: 5; opacity: 0; }
#positionControl { inset: 0; width: 100%; cursor: ew-resize; }

.control-scale { display: flex; align-items: center; justify-content: center; gap: 6px; color: #777e76; font-size: 7px; font-weight: 900; }
.control-scale i { width: 45px; height: 3px; background: linear-gradient(90deg, var(--red), #7f837d, var(--yellow)); }

.pedal-control, .lift-control { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 7px; }
.pedal {
  width: 88px;
  height: 66px;
  border: 5px solid #10110f;
  border-radius: 10px 10px 22px 22px;
  background: repeating-linear-gradient(0deg, #535750 0 5px, #30332e 6px 10px);
  box-shadow: 0 9px 0 #0b0c0a;
  cursor: pointer;
  transform: perspective(80px) rotateX(18deg);
}
.pedal:active:not(:disabled), .pedal.active { box-shadow: 0 3px 0 #0b0c0a; transform: translateY(6px) perspective(80px) rotateX(18deg); }
.pedal span, .pedal strong { display: block; text-shadow: 1px 2px #000; }
.pedal span { color: var(--yellow); font-size: 9px; }
.pedal strong { font-size: 12px; }
.pedal-control small, .lift-control small { margin-top: 14px; color: #777e76; font-size: 7px; }

.lever-slot {
  position: relative;
  width: 170px;
  height: 118px;
  margin: auto;
  overflow: hidden;
  border: 4px solid #0c0d0b;
  border-radius: 50%;
  background: radial-gradient(ellipse, #080907 0 28%, #242722 31% 54%, #0b0c0a 57%);
  transform: perspective(180px) rotateX(50deg);
}
.lever {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 14px;
  height: 92px;
  border-radius: 9px;
  background: linear-gradient(90deg, #151715, #777c73, #1b1d1a);
  transform: translate(-50%, 48%);
  transform-origin: 50% 100%;
}
.lever i {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 34px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(90deg, #942d22, var(--red), #7c211a);
  box-shadow: 3px 5px 8px #000;
  transform: translateX(-50%);
}
#tiltControl { inset: 0; width: 100%; height: 100%; cursor: ns-resize; }

.lift-lever {
  position: relative;
  width: 76px;
  height: 105px;
  margin-top: 3px;
  border: 4px solid #0b0c0a;
  border-radius: 50% 50% 12px 12px;
  background: radial-gradient(ellipse at 50% 90%, #111 0 28%, #373b36 30% 57%, #171916 59%);
  cursor: pointer;
}
.lift-lever i {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 13px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(90deg, #151715, #878d84, #1b1d1a);
  transform: translateX(-50%);
  transform-origin: 50% 90%;
  transition: transform .25s;
}
.lift-lever i::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(90deg, #a98400, var(--yellow), #967500);
  box-shadow: 3px 5px 8px #000;
  content: "";
  transform: translateX(-50%);
}
.lift-lever strong { position: absolute; right: 0; bottom: 6px; left: 0; font-size: 9px; }
.lift-lever:hover:not(:disabled) i { transform: translateX(-50%) rotate(-8deg); }
.lift-lever.pulled i { transform: translateX(-50%) rotate(-22deg); }
button:disabled { opacity: .35; cursor: not-allowed; }

.message-panel {
  position: absolute;
  z-index: 60;
  top: 48%;
  left: 50%;
  width: min(410px, calc(100% - 40px));
  padding: 20px 22px;
  border: 2px solid #bec5bb;
  color: #e5e9e2;
  background: rgb(12 14 12 / 92%);
  box-shadow: 0 18px 55px #000;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(.96);
  transition: opacity .25s, transform .25s;
}
.message-panel.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.message-panel.success { border-color: var(--green); }
.message-panel.failure { border-color: var(--red); }
.message-panel span { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .22em; }
.message-panel strong { display: block; margin: 7px 0; font-size: 23px; }
.message-panel p { margin: 0; color: #afb6ad; font-size: 12px; line-height: 1.7; }
.message-panel button { margin-top: 16px; padding: 9px 22px; border: 1px solid #d8ddd5; background: transparent; font-size: 11px; font-weight: 900; cursor: pointer; }
.message-panel button:hover { color: #111; background: #e4e8e1; }

.cab-view.drive { animation: cab-rumble .55s ease; }
.cargo.success { transform: translateX(-50%) translateY(-85px); }
.cargo.success .cargo-shadow { opacity: .2; }
.cargo.drop-left { animation: drop-left 1.2s cubic-bezier(.4,0,1,1) forwards; }
.cargo.drop-right { animation: drop-right 1.2s cubic-bezier(.4,0,1,1) forwards; }
.cargo.drop-front { animation: drop-front 1.15s cubic-bezier(.4,0,1,1) forwards; }
.cargo.drop-back { animation: drop-back 1.15s cubic-bezier(.4,0,1,1) forwards; }

@keyframes cab-rumble {
  0%,100% { transform: translate(0); }
  20% { transform: translate(-2px,1px); }
  45% { transform: translate(3px,-2px); }
  70% { transform: translate(-1px,2px); }
}
@keyframes motion-flash {
  0% { opacity: 0; transform: scaleY(.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1.5); }
}
@keyframes drop-left {
  18% { transform: translateX(-50%) rotate(-8deg); }
  100% { transform: translate(-105%,180px) rotate(-38deg); opacity: .15; }
}
@keyframes drop-right {
  18% { transform: translateX(-50%) rotate(8deg); }
  100% { transform: translate(5%,180px) rotate(38deg); opacity: .15; }
}
@keyframes drop-front {
  20% { transform: translateX(-50%) scale(1.08) rotateX(14deg); }
  100% { transform: translate(-50%,260px) scale(1.7) rotateX(65deg); opacity: .1; }
}
@keyframes drop-back {
  20% { transform: translateX(-50%) scale(.94) rotateX(-15deg); }
  100% { transform: translate(-50%,-190px) scale(.45) rotateX(-72deg); opacity: .12; }
}

@media (max-width: 850px) {
  .simulator { padding: 0; }
  .cab-view { min-height: 780px; height: 100vh; border: 0; border-radius: 0; }
  .hud { top: 14px; right: 3%; left: 3%; grid-template-columns: 72px 1fr 78px; gap: 6px; }
  .stage-chip, .weight-chip { padding: 8px; }
  .mission { padding: 8px 10px; }
  .mission p { display: none; }
  .load-zone { top: 28%; width: 88%; }
  .fork-assembly { width: 72%; }
  .mast-left { left: 18%; }
  .mast-right { right: 18%; }
  .dashboard { right: 0; left: 0; height: 34%; padding: 10px 8px; border-inline: 0; border-radius: 35% 35% 0 0 / 12% 12% 0 0; }
  .dash-top { width: 82%; gap: 10px; }
  .controls { grid-template-columns: 1.6fr .8fr 1.1fr .7fr; gap: 5px; }
  .steering-wrap { width: 130px; }
  .steering-wheel { width: 108px; height: 108px; }
  .lever-slot { width: 105px; }
  .pedal { width: 70px; }
}

@media (max-width: 520px) {
  .cab-view { min-height: 700px; }
  .hud { grid-template-columns: 58px 1fr 62px; }
  .stage-chip strong { font-size: 22px; }
  .weight-chip strong { font-size: 14px; }
  .mission strong { font-size: 15px; }
  .pillar { width: 30px; }
  .load-zone { top: 25%; width: 96%; }
  .cargo { height: 75px; }
  .fork-assembly { bottom: 28%; width: 85%; height: 190px; }
  .dashboard { height: 35%; min-height: 235px; }
  .dash-top { width: 95%; }
  .status-screen { min-width: 125px; }
  .controls { grid-template-columns: 1.3fr .75fr 1fr .7fr; }
  .steering-wrap { width: 104px; height: 105px; }
  .steering-wheel { width: 96px; height: 96px; border-width: 12px; }
  .lever-slot { width: 82px; height: 105px; }
  .pedal { width: 58px; height: 60px; }
  .pedal-control small, .lift-control small, .control-scale span { display: none; }
  .lift-lever { width: 58px; }
}
