.rig-poster {
  border:3.5px solid #644d38;
  border-block-color:#856b4f #493a32;
  background:#e4c596 url("./rig-poster.webp") center/100% 100% no-repeat!important;
}
.rig-display {border:3.5px solid #302f35}
.night .monitor-screen.rig-display {box-shadow:none!important}
.rig-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #c9ad83 url("/office/rig-circuit.webp") no-repeat;
}

.rig-track-left,
.rig-track-right { background-size: 377.78% 100%; }
.rig-track-left { background-position: left center; }
.rig-track-center { background-position: center; background-size: 212.5% 100%; }
.rig-track-right { background-position: right center; }

.rig-hud {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 3px;
  border-left: 1.5px solid #ffcb86;
  color: #fff0c9;
  background: #263e40cf;
  font: 700 6px/1.1 ui-monospace, monospace;
}

.rig-cushion-side {
  clip-path: polygon(0 29%, 8% 12%, 25% 16%, 47% 46%, 67% 53%, 92% 32%, 100% 39%, 98% 85%, 77% 96%, 14% 100%, 0 76%);
  backface-visibility: visible;
}

.rig-seat-back,
.rig-seat-front {
  position: absolute;
  inset: 0;
}

.rig-seat-back {
  background: linear-gradient(72deg, #282f34 8%, #344044 9% 21%, transparent 22%),
    linear-gradient(108deg, #66766d 0 23%, #495b57 24% 37%, #39484a 38% 72%, #303a3e 73%);
}

.rig-seat-back::before,
.rig-seat-front::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 3%;
  width: 40%;
  height: 14%;
  clip-path: polygon(9% 0, 93% 0, 100% 78%, 93% 100%, 7% 100%, 0 77%);
  background: linear-gradient(128deg, #dfa554 0 21%, #bd6547 22% 42%, #30393d 43%);
}

.rig-harness {
  position: absolute;
  top: 31%;
  width: 20%;
  height: 12%;
  border: 1.7px solid #8a9381;
  border-bottom-color: #202a2e;
  border-radius: 3px;
  background: #191e24;
  transform: skewY(12deg);
}

.rig-harness:first-child { left: 21%; }
.rig-harness:nth-child(2) { right: 21%; transform: skewY(-12deg); }

.rig-seat-ribs {
  position: absolute;
  inset: 46% 25% 8%;
  clip-path: polygon(0 0, 11% 6%, 22% 65%, 50% 88%, 78% 65%, 89% 6%, 100% 0, 89% 75%, 50% 100%, 11% 75%);
  background: linear-gradient(90deg, #809085, #52625f 38% 68%, #242c31 70%);
}

.rig-seat-front {
  background: linear-gradient(105deg, #774e44 12%, #9e6655 13% 25%, #5a4142 26% 72%, #945b49 73% 86%, #623f3c 87%);
}

.rig-seat-front::after {
  content: "";
  position: absolute;
  inset: 26% 27% 15%;
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, #4c3b3d 0 10px, #6c4b46 10px 12px, #81594d 12px 13px);
}

.rig-wheel {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 6px solid #292c31;
  border-top-color: #4c5150;
  border-right-color: #383d40;
  border-radius: 50%;
}

.rig-spoke {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 52%;
  height: 7px;
  transform-origin: 0 50%;
  transform: rotate(-13deg);
  background: linear-gradient(#8b958a 0 15%, #576768 16% 66%, #323e42 67%);
}

.rig-spoke:nth-child(2) { transform: rotate(90deg); }
.rig-spoke:nth-child(3) { transform: rotate(193deg); }
.rig-wheel-hub {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 14px;
  height: 13px;
  transform: translate(-50%, -42%);
  border: 1px solid #252c31;
  border-radius: 42%;
  background: radial-gradient(circle at 50% 50%, #f3c67e 0 19%, #b5714e 21% 34%, #414d50 35%);
}

.rig-wheel-index {
  position: absolute;
  left: calc(50% - 2px);
  top: -6px;
  width: 4px;
  height: 6px;
  background: #e1a457;
}

.rig-shift-lights {
  display: block;
  height: 3px;
  margin: 1px 2px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, #2b393b 2px 3.5px),
    linear-gradient(90deg, #82a68b 32%, #d8af65 33% 65%, #c16549 66%);
}

/* A thin leather welt and the metal paddles separate the cockpit from the scenery. */
.rig-paddle {border:.7px solid #364441;border-radius:2px 3px 4px 2px;backface-visibility:visible}
.rig-wheel-face {overflow:visible;backface-visibility:visible}
.rig-wheel {box-shadow:inset 0 -1px #82664e,1.7px 2px 0 #202a2b,-.8px -.9px 0 #a58b69}
.rig-wheel-index {border-inline: .5px solid #b57b4a;box-shadow:inset 0 1px #efd39b}
.rig-seat-back::after {
  content:"";position:absolute;inset:22% 3% 11%;
  background:linear-gradient(122deg,#d8a56e,#a67c57 42%,#677c76 70%);
  clip-path:polygon(3% 3%,11% 1%,4% 13%,4% 22%,20% 40%,28% 67%,29% 95%,26% 96%,24% 67%,16% 42%,0 23%,0 13%);
}
.night .rig-wheel {border-top-color:#58635d;box-shadow:inset 0 -1px #78664e,1.7px 2px 0 #202a2b,-1px -1px 0 #aed1ba}
.night .rig-seat-back::after {background:linear-gradient(120deg,#a8c5ae,#7b9183 45%,#57655e 75%)}

.night .rig-deck-light {background:radial-gradient(ellipse closest-side,#a3caca70,transparent)!important}
.night .rig-poster::after {
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 53% 78% at 50% 0%,#ffde9847,transparent),linear-gradient(0deg,#271d243c,transparent 70%);
}
.rig-deck-light {background:radial-gradient(ellipse,#ffd891ad,transparent 77%)!important;opacity:var(--practical)}
.rig-poster::after {content:"";position:absolute;inset:0;background:linear-gradient(#ffdf9d48,transparent 53%);opacity:var(--practical)}

.rig-rim-back {box-sizing:border-box;border:5.5px solid #303738;border-radius:50%}
.rig-pedal-brake {
  background:radial-gradient(circle,#313d3d 0 24%,transparent 34%) 1px 0/4px 4px,#9aa398!important;
  border-radius:1.5px;
}
.rig-pedal-throttle {
  background:repeating-linear-gradient(90deg,#a4afa4 0 1.4px,#62746f 1.8px 2.8px)!important;
  border-radius:1px;
}
