/* Panels for The Long Drive. Each kind of stop prints its menu in its own
   way: a till receipt at the petrol station, a guest check at the diner, a
   room ticket at the motel and the casino, and the dashboard at garages and
   dealers. The pause menu is the road atlas from the glovebox. */

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.panel-icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: none;
  color: inherit;
  font-family: var(--trip-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.panel-button .panel-icon {
  width: 16px;
  height: 16px;
}

.panel-button--quiet {
  justify-self: start;
  border-color: transparent;
  padding-inline: 0;
}

.panel-button--quiet:hover,
.panel-button--quiet:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.panel-stats:empty,
.panel-stats[hidden] {
  display: none;
}

.panel-stats__item {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.panel-stats__label {
  font-family: var(--trip-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.panel-stats__value {
  margin: 0;
  font-family: var(--trip-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.panel-gauges {
  display: grid;
  gap: 5px;
}

.panel-gauges__item {
  display: grid;
  grid-template-columns: 4.6em 1fr 3em;
  gap: 10px;
  align-items: center;
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-gauges__bar {
  position: relative;
  height: 6px;
  background: rgb(127 127 127 / 0.25);
  overflow: hidden;
}

.panel-gauges__bar::after {
  position: absolute;
  inset: 0;
  background: currentColor;
  content: "";
  transform-origin: left;
  scale: var(--level, 1) 1;
}

.panel-gauges__value {
  text-align: right;
}

.panel-gauges__item--low {
  color: #b8322a;
}

/* Stop panel structure, shared by every look. */

.stop-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 16px;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100% - 40px);
  padding: 28px 30px 24px;
  overflow-y: auto;
  translate: -50% -50%;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.4);
  overscroll-behavior: contain;
}

.stop-panel[hidden] {
  display: none;
}

.stop-panel__head {
  display: grid;
  gap: 4px;
}

.stop-panel__title {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
}

.stop-panel__meta,
.stop-panel__note,
.stop-panel__sign-off {
  margin: 0;
}

.stop-panel__note {
  font-size: 13px;
  line-height: 1.4;
}

.stop-panel__note:empty {
  display: none;
}

.stop-panel__groups {
  display: grid;
  gap: 18px;
}

.stop-panel__group {
  display: grid;
  gap: 4px;
}

.stop-panel__group-title {
  margin: 0 0 4px;
  font-family: var(--trip-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stop-panel__list {
  display: grid;
}

.stop-panel__option {
  display: grid;
  grid-template-columns: 24px 1fr auto 5.2em;
  gap: 4px 14px;
  align-items: center;
  width: 100%;
  padding: 10px 6px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stop-panel__option:disabled {
  cursor: default;
}

.stop-panel__option:disabled > :not(.stop-panel__price) {
  opacity: 0.45;
}

.stop-panel__swatch {
  width: 22px;
  height: 22px;
  border: 2px solid rgb(0 0 0 / 0.25);
  border-radius: 50%;
  background: var(--swatch);
}

.stop-panel__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stop-panel__name {
  font-size: 17px;
  line-height: 1.25;
}

.stop-panel__detail {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.72;
}

.stop-panel__time,
.stop-panel__price {
  font-family: var(--trip-mono);
  font-size: 12px;
  white-space: nowrap;
}

.stop-panel__time {
  opacity: 0.65;
}

.stop-panel__price {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.stop-panel__option:disabled .stop-panel__price {
  font-size: 11px;
  opacity: 0.7;
}

.stop-panel__sign-off {
  font-size: 12px;
  line-height: 1.4;
}

.stop-panel__foot {
  display: flex;
  justify-content: flex-end;
}

/* Petrol station: a till receipt. */

.stop-panel--receipt {
  --paper: #fbfaf5;
  width: min(440px, calc(100vw - 32px));
  padding: 34px 30px 40px;
  background: var(--paper);
  color: #26252a;
  font-family: var(--trip-mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}

.stop-panel--receipt .stop-panel__head {
  justify-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed currentColor;
  text-align: center;
}

.stop-panel--receipt .stop-panel__title {
  font-family: var(--trip-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stop-panel--receipt .stop-panel__meta {
  font-size: 12px;
  opacity: 0.75;
}

.stop-panel--receipt .panel-stats {
  grid-template-columns: 1fr;
  gap: 2px;
}

.stop-panel--receipt .panel-stats__item {
  grid-template-columns: 1fr auto;
}

.stop-panel--receipt .panel-stats__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 1;
}

.stop-panel--receipt .panel-stats__value {
  font-size: 12px;
}

.stop-panel--receipt .panel-gauges {
  padding: 10px 0;
  border-block: 1px dashed currentColor;
}

.stop-panel--receipt .panel-gauges__bar {
  height: 4px;
  background: repeating-linear-gradient(90deg, rgb(38 37 42 / 0.18) 0 3px, transparent 3px 5px);
}

.stop-panel--receipt .stop-panel__group-title {
  text-align: center;
}

.stop-panel--receipt .stop-panel__group-title::before,
.stop-panel--receipt .stop-panel__group-title::after {
  content: " *** ";
  letter-spacing: 0;
}

.stop-panel--receipt .stop-panel__option {
  grid-template-columns: 20px 1fr auto;
  padding: 7px 4px;
}

.stop-panel--receipt .stop-panel__time {
  display: none;
}

.stop-panel--receipt .stop-panel__name {
  display: flex;
  gap: 6px;
  font-size: 14px;
  text-transform: uppercase;
}

.stop-panel--receipt .stop-panel__name::after {
  flex: 1;
  min-width: 20px;
  margin-bottom: 4px;
  border-bottom: 1px dotted currentColor;
  content: "";
}

.stop-panel--receipt .stop-panel__detail {
  font-size: 11px;
}

.stop-panel--receipt .panel-icon {
  width: 18px;
  height: 18px;
}

.stop-panel--receipt .stop-panel__option:hover,
.stop-panel--receipt .stop-panel__option:focus-visible {
  outline: none;
  background: rgb(38 37 42 / 0.07);
}

.stop-panel--receipt .stop-panel__sign-off {
  padding-top: 14px;
  border-top: 1px dashed currentColor;
  text-align: center;
}

.stop-panel--receipt .stop-panel__sign-off::after {
  display: block;
  height: 34px;
  margin: 14px auto 0;
  width: 70%;
  background: repeating-linear-gradient(90deg, #26252a 0 2px, transparent 2px 4px, #26252a 4px 5px, transparent 5px 8px, #26252a 8px 11px, transparent 11px 12px);
  content: "";
}

.stop-panel--receipt .stop-panel__foot {
  justify-content: center;
}

/* Diner: a guest check from the waitress's pad. */

.stop-panel--order {
  padding: 0 0 22px;
  background:
    linear-gradient(90deg, transparent 54px, rgb(196 64 52 / 0.45) 54px 55px, transparent 55px),
    repeating-linear-gradient(transparent 0 33px, rgb(70 120 150 / 0.22) 33px 34px),
    #eef2e3;
  color: #1f2a33;
  font-family: var(--trip-sans, "IBM Plex Sans", sans-serif);
}

.stop-panel--order > * {
  margin-inline: 30px 26px;
}

.stop-panel--order .stop-panel__head {
  margin: 0;
  padding: 22px 26px 16px 30px;
  background: var(--stop-colour);
  color: #f4f2ea;
}

.stop-panel--order .stop-panel__title {
  font-family: var(--trip-serif);
  font-size: 34px;
  font-style: italic;
}

.stop-panel--order .stop-panel__meta {
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.stop-panel--order .panel-stats {
  padding: 10px 12px;
  border: 1px solid rgb(31 42 51 / 0.35);
  background: rgb(255 255 255 / 0.45);
}

.stop-panel--order .stop-panel__group-title {
  color: #b8322a;
}

.stop-panel--order .stop-panel__option {
  border-bottom: 1px solid rgb(70 120 150 / 0.3);
}

.stop-panel--order .stop-panel__name {
  font-family: var(--trip-serif);
  font-size: 21px;
  font-style: italic;
}

.stop-panel--order .stop-panel__option:hover,
.stop-panel--order .stop-panel__option:focus-visible {
  outline: none;
  color: #b8322a;
}

.stop-panel--order .stop-panel__sign-off {
  font-family: var(--trip-serif);
  font-size: 16px;
  font-style: italic;
  text-align: right;
}

/* Motel: a room ticket with a tear-off stub down the left. */

.stop-panel--ticket {
  padding: 28px 30px 24px 74px;
  background:
    linear-gradient(90deg, var(--stop-colour) 0 44px, transparent 44px),
    #f3ecdc;
  color: #2a2232;
  font-family: "IBM Plex Sans", sans-serif;
  -webkit-mask:
    radial-gradient(circle 12px at 52px 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 12px at 52px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 12px at 52px 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 12px at 52px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}

.stop-panel--ticket::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 52px;
  border-left: 2px dashed rgb(42 34 50 / 0.35);
  content: "";
}

.stop-panel--ticket .stop-panel__head {
  padding-bottom: 14px;
  border-bottom: 3px double rgb(42 34 50 / 0.4);
}

.stop-panel--ticket .stop-panel__title {
  font-family: var(--trip-serif);
  font-size: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stop-panel--ticket .stop-panel__meta {
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stop-panel--ticket .panel-stats__item {
  padding: 6px 8px;
  border: 1px solid rgb(42 34 50 / 0.25);
}

.stop-panel--ticket .stop-panel__group-title {
  color: var(--stop-colour);
}

.stop-panel--ticket .stop-panel__option {
  border-top: 1px solid rgb(42 34 50 / 0.15);
}

.stop-panel--ticket .stop-panel__option:hover,
.stop-panel--ticket .stop-panel__option:focus-visible {
  outline: none;
  background: rgb(123 44 191 / 0.08);
}

.stop-panel--ticket .stop-panel__sign-off {
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Casino: the same ticket in black and gold. */

.stop-panel--casino {
  --gold: #d6b25e;
  padding: 30px 30px 24px;
  border: 1px solid var(--gold);
  outline: 4px double rgb(214 178 94 / 0.55);
  outline-offset: -10px;
  background: radial-gradient(ellipse at top, #3a1219, #170d10 70%);
  color: #efe6d2;
  font-family: "IBM Plex Sans", sans-serif;
}

.stop-panel--casino .stop-panel__head {
  justify-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(214 178 94 / 0.4);
  text-align: center;
}

.stop-panel--casino .stop-panel__title {
  color: var(--gold);
  font-family: var(--trip-serif);
  font-size: 38px;
  letter-spacing: 0.04em;
}

.stop-panel--casino .stop-panel__meta,
.stop-panel--casino .stop-panel__group-title {
  color: rgb(214 178 94 / 0.8);
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stop-panel--casino .stop-panel__option {
  border-bottom: 1px solid rgb(214 178 94 / 0.18);
}

.stop-panel--casino .stop-panel__price {
  color: var(--gold);
}

.stop-panel--casino .stop-panel__option:hover,
.stop-panel--casino .stop-panel__option:focus-visible {
  outline: none;
  background: rgb(214 178 94 / 0.1);
}

.stop-panel--casino .panel-gauges__bar::after {
  background: var(--gold);
}

.stop-panel--casino .stop-panel__sign-off {
  color: rgb(239 230 210 / 0.6);
  text-align: center;
}

/* Garage and dealer: the car's own dashboard. */

.stop-panel--dash,
.workshop--dash {
  --amber: #e8a849;
  border: 1px solid rgb(236 232 222 / 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgb(32 33 37 / 0.96), rgb(16 17 20 / 0.96));
  color: #e4e0d6;
  font-family: "IBM Plex Sans", sans-serif;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 30px 80px rgb(0 0 0 / 0.45);
}

.stop-panel--dash .stop-panel__head {
  grid-template-columns: 1fr;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(236 232 222 / 0.12);
}

.stop-panel--dash .stop-panel__title {
  font-family: var(--trip-serif);
  font-size: 34px;
  font-style: italic;
}

.stop-panel--dash .stop-panel__meta {
  color: rgb(228 224 214 / 0.6);
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stop-panel--dash .panel-stats {
  padding: 12px 14px;
  border-radius: 6px;
  background: #0b0c0e;
}

.stop-panel--dash .panel-stats__value {
  color: var(--amber);
}

.stop-panel--dash .panel-gauges__item {
  color: rgb(228 224 214 / 0.75);
}

.stop-panel--dash .panel-gauges__bar {
  height: 8px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.08) 0 6px, transparent 6px 8px);
}

.stop-panel--dash .panel-gauges__bar::after {
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 8px);
}

.stop-panel--dash .panel-gauges__item--low .panel-gauges__bar::after {
  background: repeating-linear-gradient(90deg, #e2574a 0 6px, transparent 6px 8px);
}

.stop-panel--dash .panel-gauges__item--low {
  color: #e2574a;
}

.stop-panel--dash .stop-panel__group-title {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgb(228 224 214 / 0.55);
}

.stop-panel--dash .stop-panel__group-title::after {
  flex: 1;
  border-top: 1px solid rgb(236 232 222 / 0.12);
  content: "";
}

.stop-panel--dash .stop-panel__option {
  border-radius: 6px;
}

.stop-panel--dash .stop-panel__option:hover,
.stop-panel--dash .stop-panel__option:focus-visible {
  outline: none;
  background: rgb(255 255 255 / 0.06);
}

.stop-panel--dash .stop-panel__price {
  color: var(--amber);
}

.stop-panel--dash .stop-panel__sign-off {
  color: rgb(228 224 214 / 0.5);
  font-family: var(--trip-mono);
  font-size: 11px;
}

.stop-panel__price--earn,
.stop-panel--dash .stop-panel__price--earn,
.stop-panel--casino .stop-panel__price--earn {
  color: #3f8f5c;
}

.stop-panel--dash .stop-panel__price--earn,
.stop-panel--casino .stop-panel__price--earn {
  color: #8fd19e;
}

/* Workshop jobs and the casino tables. */

.workshop {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  gap: 14px;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100% - 32px);
  padding: 26px 28px 24px;
  overflow-y: auto;
  translate: -50% -50%;
}

.workshop[hidden] {
  display: none;
}

.workshop__title {
  margin: 0;
  font-family: var(--trip-serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
}

.workshop__step {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.85;
}

.workshop__slip {
  margin: 0;
  color: #e2574a;
  font-size: 14px;
}

.workshop__slip:empty {
  display: none;
}

.workshop__stage {
  padding: 10px;
  border-radius: 6px;
  background: #e8e3d8;
}

.workshop__picture {
  display: block;
  width: 100%;
  max-height: 240px;
}

.workshop__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workshop__controls:empty {
  display: none;
}

.workshop__button {
  padding: 9px 16px;
  border: 1px solid var(--amber, #23221f);
  border-radius: 4px;
  background: var(--amber, #23221f);
  color: #18191c;
  font-family: var(--trip-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.workshop__button:disabled {
  opacity: 0.4;
  cursor: default;
}

.workshop__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgb(236 232 222 / 0.3);
  border-radius: 50%;
  background: none;
  color: inherit;
  font: 400 20px/1 var(--trip-mono);
  cursor: pointer;
}

.workshop__close:hover,
.workshop__close:focus-visible {
  border-color: rgb(236 232 222 / 0.7);
}

.workshop__close:disabled {
  opacity: 0.3;
  cursor: default;
}

.workshop__button--quiet {
  border-color: rgb(236 232 222 / 0.3);
  background: none;
  color: inherit;
}

.workshop--casino {
  --amber: #d6b25e;
  border: 1px solid #d6b25e;
  outline: 4px double rgb(214 178 94 / 0.55);
  outline-offset: -10px;
  background: radial-gradient(ellipse at top, #3a1219, #170d10 70%);
  color: #efe6d2;
  font-family: "IBM Plex Sans", sans-serif;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}

.workshop--casino .workshop__title {
  color: #d6b25e;
  text-align: center;
}

.workshop--casino .workshop__step {
  text-align: center;
}

.casino__tabs,
.casino__stakes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.casino__tab,
.casino__chip {
  border-color: rgb(214 178 94 / 0.45);
  background: none;
  color: #efe6d2;
}

.casino__tab[aria-selected="true"],
.casino__chip[aria-pressed="true"] {
  border-color: #d6b25e;
  background: #d6b25e;
  color: #1b1012;
}

.casino__label {
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.casino__chip {
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 999px;
}

.casino__table {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px 12px;
  border: 6px solid #5a3a22;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #2f6a48, #1f4a32);
}

.casino__rules {
  margin: 0;
  color: rgb(239 230 210 / 0.8);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.casino__wheel {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 8px solid #6b4a2e;
  border-radius: 50%;
  background: repeating-conic-gradient(#9a2a2a 0deg 9.73deg, #1e1e20 9.73deg 19.46deg);
}

.casino__pocket {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8e3d8;
  color: #23221f;
  font-family: var(--trip-mono);
  font-size: 22px;
  font-weight: 500;
}

.casino__pocket--red {
  background: #b0302c;
  color: #f4efe2;
}

.casino__pocket--black {
  background: #1e1e20;
  color: #f4efe2;
}

.casino__pocket--green {
  background: #2a7d4f;
  color: #f4efe2;
}

.casino__reels,
.casino__cards {
  display: flex;
  gap: 8px;
}

.casino__reel {
  display: grid;
  place-items: center;
  width: 84px;
  height: 64px;
  border: 2px solid #d6b25e;
  border-radius: 4px;
  background: #f4efe2;
  color: #23221f;
  font-family: var(--trip-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.casino__card {
  display: grid;
  place-items: center;
  width: 54px;
  height: 76px;
  border-radius: 5px;
  background: #f4efe2;
  color: #23221f;
  font-family: var(--trip-serif);
  font-size: 28px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.3);
}

.casino__card--back {
  background: repeating-linear-gradient(45deg, #8a1c2b 0 6px, #a2303e 6px 12px);
  color: #f4efe2;
}

.casino__card--old {
  opacity: 0.45;
}

.casino__result {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--trip-serif);
  font-size: 19px;
  text-align: center;
}

.casino__result--win {
  color: #8fd19e;
}

/* Pause menu: the road atlas. Contour lines and a faint grid on folded paper,
   with the trip summary in the map's key box. */

.trip-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100% - 32px);
  padding: 28px 30px 24px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 33%, rgb(0 0 0 / 0.05) 33.2%, transparent 34%, transparent 66%, rgb(0 0 0 / 0.05) 66.2%, transparent 67%),
    repeating-radial-gradient(circle at 82% 18%, transparent 0 22px, rgb(150 110 60 / 0.13) 22px 23px),
    repeating-radial-gradient(circle at 10% 92%, transparent 0 26px, rgb(150 110 60 / 0.1) 26px 27px),
    linear-gradient(rgb(70 110 140 / 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(70 110 140 / 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    #efe8d4;
  color: #2b2a26;
  font-family: "IBM Plex Sans", sans-serif;
  overflow-y: auto;
  translate: -50% -50%;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.4);
  overscroll-behavior: contain;
}

.trip-menu[hidden] {
  display: none;
}

.trip-menu__view {
  display: grid;
  gap: 16px;
}

.trip-menu__view[hidden] {
  display: none;
}

.trip-menu__title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  font-family: var(--trip-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
}

.trip-menu__title::before {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 30px;
  border: 2px solid #f6f1e2;
  border-radius: 4px;
  background: #2d6a46;
  box-shadow: 0 0 0 1px #2d6a46;
  color: #f6f1e2;
  content: "A1";
  font-family: var(--trip-mono);
  font-size: 12px;
  font-weight: 500;
}

.trip-menu .panel-stats {
  padding: 12px 14px;
  border: 1.5px solid #2b2a26;
  background: rgb(246 241 226 / 0.85);
}

.trip-menu__note {
  margin: 0;
  color: #5a564c;
  font-size: 15px;
  line-height: 1.45;
}

.trip-menu__note:empty,
.trip-menu__note[hidden] {
  display: none;
}

.trip-menu__list {
  display: grid;
}

.trip-menu__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1px 14px;
  align-items: center;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px dashed rgb(43 42 38 / 0.25);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.trip-menu__item[hidden] {
  display: none;
}

.trip-menu__item .panel-icon {
  grid-row: span 2;
  box-sizing: content-box;
  padding: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: rgb(246 241 226 / 0.9);
}

.trip-menu__name {
  font-family: var(--trip-serif);
  font-size: 21px;
  line-height: 1.15;
}

.trip-menu__hint {
  color: #6a655a;
  font-size: 13px;
}

.trip-menu__item:hover,
.trip-menu__item:focus-visible,
.trip-menu__item[data-confirm] {
  outline: none;
  color: #a33a2a;
}

.trip-menu__form {
  display: grid;
  gap: 14px;
}

.trip-menu__form[hidden] {
  display: none;
}

.trip-menu__set {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1.5px solid rgb(43 42 38 / 0.5);
  background: rgb(246 241 226 / 0.7);
}

.trip-menu__legend {
  padding: 0 6px;
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trip-menu__check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}

.trip-menu__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-menu__switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border: 1.5px solid #2b2a26;
  border-radius: 999px;
  background: #e2dac3;
  transition: background 150ms ease;
}

.trip-menu__switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2b2a26;
  content: "";
  transition: translate 150ms ease;
}

.trip-menu__check input:checked + .trip-menu__switch {
  background: #2d6a46;
}

.trip-menu__check input:checked + .trip-menu__switch::after {
  background: #f6f1e2;
  translate: 16px 0;
}

.trip-menu__check input:focus-visible + .trip-menu__switch {
  outline: 2px solid #a33a2a;
  outline-offset: 2px;
}

.trip-menu__range {
  display: grid;
  grid-template-columns: 1fr 3em;
  gap: 4px 12px;
  align-items: center;
  font-size: 15px;
}

.trip-menu__range-name {
  grid-column: 1 / -1;
}

.trip-menu__range input {
  width: 100%;
  accent-color: #2d6a46;
}

.trip-menu__level {
  font-family: var(--trip-mono);
  font-size: 12px;
  text-align: right;
}

.trip-menu__check:has(input:disabled),
.trip-menu__range:has(input:disabled) {
  opacity: 0.45;
}

.trip-menu__field {
  display: grid;
  gap: 4px;
  font-size: 15px;
}

.trip-menu__field input {
  padding: 9px 10px;
  border: 1.5px solid rgb(43 42 38 / 0.45);
  border-radius: 2px;
  background: #faf7ee;
  color: inherit;
  font-family: var(--trip-mono);
  font-size: 15px;
}

.trip-menu__field input:focus-visible {
  outline: 2px solid #a33a2a;
  outline-offset: 1px;
}

.trip-menu__error {
  margin: 0;
  color: #a1281c;
  font-size: 14px;
}

.trip-menu__error:empty {
  display: none;
}

.trip-menu__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trip-menu__button {
  padding: 9px 18px;
  border: 1.5px solid #2b2a26;
  border-radius: 2px;
  background: #2b2a26;
  color: #f6f1e2;
  font-family: var(--trip-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.trip-menu__button--quiet {
  background: none;
  color: #2b2a26;
}

.trip-menu__button--danger {
  justify-self: start;
  border-color: #a1281c;
  background: #a1281c;
}

.trip-menu__button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.trip-menu__danger summary {
  color: #6a655a;
  font-size: 13px;
  cursor: pointer;
}

.trip-menu__danger[open] summary {
  margin-bottom: 10px;
}

.trip-menu__tabs {
  display: flex;
  gap: 8px;
}

.trip-menu__tab {
  padding: 6px 12px;
  border: 1.5px solid rgb(43 42 38 / 0.35);
  border-radius: 999px;
  background: none;
  color: #5a564c;
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.trip-menu__tab[aria-pressed="true"] {
  border-color: #2b2a26;
  background: #2b2a26;
  color: #f6f1e2;
}

.trip-saves {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-saves__slot {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid #2b2a26;
  background: rgb(246 241 226 / 0.85);
}

.trip-saves__slot--live {
  border-color: #2d6a46;
  box-shadow: inset 4px 0 0 #2d6a46;
}

.trip-saves__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.trip-saves__name {
  font-family: var(--trip-serif);
  font-size: 21px;
}

.trip-saves__when {
  color: #6a655a;
  font-family: var(--trip-mono);
  font-size: 12px;
}

.trip-saves__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.trip-saves__slot--empty .trip-saves__text {
  color: #6a655a;
}

.trip-saves__login {
  justify-self: start;
}

.trip-saves__login[hidden] {
  display: none;
}

.trip-board__head,
.trip-board__row {
  display: grid;
  grid-template-columns: 2.4em 1fr 5.6em 4em;
  gap: 10px;
  align-items: baseline;
}

.trip-board__head {
  padding: 0 8px 6px;
  border-bottom: 1.5px solid #2b2a26;
  font-family: var(--trip-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trip-board__head > :nth-child(n + 3) {
  text-align: right;
}

.trip-board {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-board__row {
  padding: 8px;
  border-bottom: 1px dashed rgb(43 42 38 / 0.25);
}

.trip-board__row:nth-child(-n + 3) .trip-board__place {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2d6a46;
  color: #f6f1e2;
}

.trip-board__row--mine {
  background: rgb(163 58 42 / 0.1);
  color: #a33a2a;
}

.trip-board__place,
.trip-board__days {
  font-family: var(--trip-mono);
  font-size: 12px;
}

.trip-board__days {
  color: #6a655a;
  text-align: right;
}

.trip-board__name {
  font-family: var(--trip-serif);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.trip-board__miles {
  font-family: var(--trip-mono);
  font-size: 14px;
  text-align: right;
}

/* The trip log reads as the route drawn on the map: a dashed line with a
   stop marker for each thing that happened. */

.trip-log {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.trip-menu .trip-log {
  max-height: 46vh;
  padding-left: 6px;
}

.trip-log__entry {
  display: grid;
  gap: 1px;
}

.trip-menu .trip-log__entry {
  position: relative;
  padding: 0 0 12px 24px;
}

.trip-menu .trip-log__entry::before {
  position: absolute;
  top: 6px;
  bottom: -6px;
  left: 6px;
  border-left: 2px dashed rgb(163 58 42 / 0.55);
  content: "";
}

.trip-menu .trip-log__entry:last-child::before {
  display: none;
}

.trip-menu .trip-log__entry::after {
  position: absolute;
  top: 3px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #a33a2a;
  border-radius: 50%;
  background: #efe8d4;
  content: "";
}

.trip-log__when {
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.trip-log__text {
  font-family: var(--trip-serif);
  font-size: 17px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .stop-panel,
  .trip-menu {
    padding: 22px 18px 20px;
  }

  .stop-panel--receipt {
    padding: 26px 18px 36px;
  }

  .stop-panel--order {
    padding: 0 0 20px;
  }

  .stop-panel--order > * {
    margin-inline: 22px 16px;
  }

  .stop-panel--order .stop-panel__head {
    padding: 18px 16px 14px 22px;
  }

  .stop-panel--ticket {
    padding: 22px 18px 20px 62px;
  }

  .stop-panel__option {
    grid-template-columns: 22px 1fr auto;
  }

  .stop-panel__time {
    grid-column: 2;
    grid-row: 2;
  }

  .stop-panel__price {
    grid-row: 1 / span 2;
    grid-column: 3;
  }

  .stop-panel__title,
  .trip-menu__title {
    font-size: 28px;
  }

  .trip-menu__title::before {
    width: 32px;
    height: 26px;
    font-size: 11px;
  }

  .casino__reel {
    width: 70px;
    font-size: 11px;
  }
}

html:has(.page--drive) {
  background: #2a2b30;
}

.page--drive {
  background: #2a2b30;
  -webkit-tap-highlight-color: transparent;
}

.page--drive .game__stage {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.page--drive .game__stage :is(input, textarea) {
  -webkit-user-select: text;
  user-select: text;
}

.page--drive button {
  touch-action: manipulation;
}

.pedals {
  display: none;
}

@media (pointer: coarse) {
  .pedals {
    position: absolute;
    right: 0;
    bottom: calc(var(--dash-height, 150px) + 10px);
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
    pointer-events: none;
  }

  .pedals__pedal {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    width: 84px;
    height: 92px;
    padding: 0;
    border: 1px solid var(--trip-line);
    border-radius: 14px;
    background: rgb(24 25 28 / 0.55);
    color: var(--trip-ink);
    font-family: var(--trip-mono);
    pointer-events: auto;
    touch-action: none;
    transition: background 120ms ease, scale 120ms ease;
  }

  .pedals__pedal--gas {
    height: 112px;
  }

  .pedals__pedal--down {
    border-color: rgb(236 232 222 / 0.6);
    background: rgb(236 232 222 / 0.24);
    scale: 0.95;
  }

  .pedals__icon {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pedals__label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .trip .game__stage:has(> :is(.game__overlay, .stop-panel, .workshop, .trip-menu):not([hidden])) .pedals {
    display: none;
  }

  .trip__top {
    top: calc(14px + env(safe-area-inset-top));
    left: calc(16px + env(safe-area-inset-left));
  }

  .trip .radio {
    top: calc(14px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
  }

  .trip__dash {
    padding-right: calc(14px + env(safe-area-inset-right));
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    padding-left: calc(14px + env(safe-area-inset-left));
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .pedals {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .pedals__pedal {
    width: 76px;
    height: 84px;
  }

  .pedals__pedal--gas {
    height: 100px;
  }

  .trip__dash {
    display: grid;
    grid-template-areas:
      "speedo fuel cans money"
      "speedo wear wear wear";
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 6px 16px;
    right: calc(108px + env(safe-area-inset-right));
    left: calc(108px + env(safe-area-inset-left));
    padding: 0 0 calc(8px + env(safe-area-inset-bottom));
  }

  .trip__speedo {
    grid-area: speedo;
    width: 64px;
    height: 64px;
  }

  .trip__readout {
    gap: 3px;
    padding-bottom: 0;
  }

  .trip__readout--fuel {
    grid-area: fuel;
  }

  .trip__readout:nth-of-type(2) {
    grid-area: cans;
  }

  .trip__readout:nth-of-type(3) {
    grid-area: money;
  }

  .trip__bar {
    width: 100%;
  }

  .trip__readout--wear {
    grid-area: wear;
    grid-template-columns: repeat(4, auto minmax(0, 1fr));
    gap: 3px 8px;
  }

  .trip__readout--wear .trip__bar {
    width: 100%;
  }

  .trip__label {
    font-size: 9px;
  }

  .trip__note {
    font-size: 10px;
  }

  .trip__value {
    font-size: 15px;
  }

  .trip__top {
    top: calc(10px + env(safe-area-inset-top));
    max-width: 40%;
  }

  .trip__place {
    font-size: 24px;
  }

  .trip__meta {
    font-size: 10px;
  }

  .trip .radio {
    top: 10px;
    grid-template-columns: 26px minmax(0, 1fr) 26px auto;
    width: 300px;
    padding: 6px;
  }

  .trip .radio__volume {
    grid-column: 1 / -1;
  }

  .trip .radio__volume-label {
    display: none;
  }

  .trip__menu-button {
    top: auto;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(122px + env(safe-area-inset-bottom));
  }

  .trip__cruise {
    top: auto;
    right: auto;
    bottom: calc(122px + env(safe-area-inset-bottom));
    left: calc(12px + env(safe-area-inset-left));
  }

  .trip__message {
    top: 24%;
    right: 22%;
    bottom: auto;
    left: 22%;
    max-width: none;
    font-size: 16px;
    text-align: center;
  }

  .trip__action {
    top: 42%;
    padding: 7px 16px;
    font-size: 17px;
  }

  .trip__action--quiet {
    top: calc(42% + 46px);
    font-size: 15px;
  }

  .trip__action--low {
    top: calc(42% + 86px);
  }
}

.trip-menu__wide {
  justify-self: start;
}

.trip-menu__wide[hidden] {
  display: none;
}

.car-guide {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #2b2a26;
  background: rgb(246 241 226 / 0.85);
}

.car-guide__title {
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.car-guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.car-guide__table th,
.car-guide__table td {
  padding: 6px 8px 6px 0;
  border-bottom: 1px dashed rgb(43 42 38 / 0.25);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}

.car-guide__table thead th {
  color: #6a655a;
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.car-guide__table tbody th {
  font-family: var(--trip-serif);
  font-size: 17px;
}

.car-guide__row--yours th,
.car-guide__row--yours td {
  color: #2d6a46;
}

.drive-admin,
.drive-admin__toggle {
  --trip-ink: #ece8de;
  --trip-muted: rgb(236 232 222 / 0.62);
  --trip-line: rgb(236 232 222 / 0.22);
  --trip-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --trip-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.drive-admin__toggle {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  padding: 8px 14px;
  border: 1px solid var(--trip-line);
  border-radius: 2px;
  background: rgb(24 25 28 / 0.82);
  color: var(--trip-ink);
  font-family: var(--trip-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  translate: -50% 0;
  cursor: pointer;
}

.drive-admin {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 29;
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(360px, 100vw);
  height: 100%;
  padding: 20px 18px 72px;
  overflow-y: auto;
  border-right: 1px solid var(--trip-line);
  background: rgb(20 21 24 / 0.94);
  color: var(--trip-ink);
  font-family: var(--trip-mono);
  font-size: 12px;
  overscroll-behavior: contain;
}

.drive-admin[hidden] {
  display: none;
}

.drive-admin__head,
.drive-admin__section {
  display: grid;
  gap: 8px;
}

.drive-admin__section {
  padding-top: 14px;
  border-top: 1px solid var(--trip-line);
}

.drive-admin__title {
  margin: 0;
  font-family: var(--trip-serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
}

.drive-admin__heading {
  margin: 0;
  color: var(--trip-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drive-admin__note,
.drive-admin__status {
  margin: 0;
  color: var(--trip-muted);
  line-height: 1.5;
}

.drive-admin__status:empty {
  display: none;
}

.drive-admin__readout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
}

.drive-admin__term {
  color: var(--trip-muted);
}

.drive-admin__detail {
  margin: 0;
}

.drive-admin__list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--trip-muted);
}

.drive-admin__field {
  display: grid;
  gap: 4px;
  color: var(--trip-muted);
}

.drive-admin__field--gauge {
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  text-transform: capitalize;
}

.drive-admin__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
}

.drive-admin__inline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.drive-admin__input,
.drive-admin__code {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--trip-line);
  border-radius: 2px;
  background: rgb(0 0 0 / 0.3);
  color: var(--trip-ink);
  font: inherit;
}

.drive-admin__input[type="range"] {
  padding: 0;
  border: 0;
  background: none;
  accent-color: #d9a62e;
}

.drive-admin__code {
  resize: vertical;
  font-size: 11px;
  line-height: 1.45;
}

.drive-admin__value {
  color: var(--trip-ink);
  text-align: right;
}

.drive-admin__check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drive-admin__check input {
  accent-color: #d9a62e;
}

.drive-admin__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drive-admin__button {
  padding: 7px 12px;
  border: 1px solid var(--trip-line);
  border-radius: 2px;
  background: none;
  color: var(--trip-ink);
  font: inherit;
  cursor: pointer;
}

.drive-admin__button:hover,
.drive-admin__button:focus-visible {
  border-color: var(--trip-ink);
}

.drive-admin__button--danger {
  border-color: #a3262a;
  color: #f0b4ae;
}

@media (max-width: 600px) {
  .drive-admin__toggle {
    top: auto;
    bottom: 12px;
  }

  .drive-admin__input,
  .drive-admin__code {
    font-size: 16px;
  }
}

.pour__can {
  fill: #b8261f;
}

.pour__handle,
.pour__spout {
  fill: #8f1d17;
}

.pour__mark {
  fill: none;
  stroke: #8f1d17;
  stroke-width: 4;
}

.pour__funnel {
  fill: #e0a526;
}

.pour__fuel {
  fill: #c9a75a;
}

.pour__stream {
  fill: none;
  stroke: #c9a75a;
  stroke-linecap: round;
}

.bay__engine {
  fill: #5d5f5e;
}

.bay__part {
  cursor: pointer;
}

.bay__part:hover,
.bay__part:focus-visible {
  outline: none;
  filter: brightness(1.25);
}

.bay__battery {
  fill: #2a2a2c;
}

.bay__label {
  fill: #e8e3d8;
  font: 600 8px "IBM Plex Mono", monospace;
  text-anchor: middle;
}

.bay__pulley {
  fill: #8d8f8c;
  stroke: #3a3a37;
  stroke-width: 2;
}

.bay__belt {
  fill: none;
  stroke: #1d1e20;
  stroke-width: 3;
}

.bay__lead {
  fill: #7d3a3a;
  stroke: #7d3a3a;
  stroke-width: 3;
}

.bay__hose {
  fill: none;
  stroke: #1d1e20;
  stroke-width: 8;
  stroke-linecap: round;
}

.bay__radiator {
  fill: #6b7378;
}

.bay__point {
  fill: #e0a526;
  stroke: #23221f;
  stroke-width: 2;
  cursor: pointer;
}

.bay__point--done {
  fill: #2a7d4f;
}

.karts {
  padding: 0;
  overflow: hidden;
}

.karts__track {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 300;
}

.karts__pads {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
}

.karts__pad {
  justify-content: center;
  padding-block: 14px;
  touch-action: none;
  user-select: none;
}

.workshop--casino .workshop__picture,
.workshop--casino .karts {
  background: #1e1f22;
}

.bay__wire {
  fill: none;
  stroke: #7d3a3a;
  stroke-width: 2.5;
}

.bay__hit {
  fill: transparent;
}

.bay__label--dark {
  fill: #23221f;
  font-size: 11px;
}

.driver-look__preview {
  justify-self: center;
  width: 160px;
  height: 160px;
  border: 1.5px solid rgb(43 42 38 / 0.5);
  border-radius: 50%;
  background: #d9d2bd;
}

.driver-look__set {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.driver-look__option {
  position: relative;
  cursor: pointer;
}

.driver-look__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.driver-look__swatch {
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid rgb(43 42 38 / 0.35);
  border-radius: 50%;
  background: var(--swatch);
}

.driver-look__word {
  display: block;
  padding: 6px 12px;
  border: 1.5px solid rgb(43 42 38 / 0.5);
  font-family: var(--trip-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-look__option input:checked + .driver-look__swatch {
  border-color: #2b2a26;
  box-shadow: 0 0 0 2px #f6f1e2, 0 0 0 4px #2b2a26;
}

.driver-look__option input:checked + .driver-look__word {
  background: #2b2a26;
  color: #f6f1e2;
}

.driver-look__option input:focus-visible + .driver-look__swatch,
.driver-look__option input:focus-visible + .driver-look__word {
  outline: 2px solid #a33a2a;
  outline-offset: 3px;
}

.driver-look--off .driver-look__set {
  opacity: 0.55;
}
