:root {
  --sky: #74c7ef;
  --grass: #7cbc4a;
  --asphalt: #6b7380;
  --line: #f2c200;
  --ink: #2a3038;
  --red: #ff4b4b;
  --blue: #3d8dff;
  --yellow: #ffd23c;
  --money: #ffd23c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.lot {
  background: var(--sky);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
}

.back {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 5;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}

.hud {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
}

.coins {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-family: Fredoka, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.coins i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe566, #e2b000);
  border: 2px solid #c49200;
}

.world {
  width: min(460px, 100%);
  margin: 0 auto;
  padding-top: 52px;
}

.title {
  margin: 0;
  text-align: center;
  font-family: Fredoka, sans-serif;
  font-size: 40px;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 3px 0 #2a6fa0;
}

.walk {
  margin-top: 8px;
  background: #d8c49a;
  border-top: 10px solid #c3ae84;
  border-bottom: 8px solid #b89b6c;
  padding: 8px 10px 10px;
}

.walk-label {
  margin: 0 0 4px;
  font-family: Fredoka, sans-serif;
  font-size: 12px;
  color: #6a5840;
}

.people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 70px;
  align-items: flex-end;
}

.rider {
  appearance: none;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.rider svg {
  display: block;
  width: 34px;
  height: 58px;
}

.asphalt {
  position: relative;
  min-height: 280px;
  padding: 18px 10px 22px 52px;
  background:
    repeating-linear-gradient(
      90deg,
      #5f6774 0 18px,
      #656d7a 18px 20px
    );
  border-top: 6px solid var(--grass);
  border-bottom: 18px solid var(--grass);
}

.exit {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 18px;
  width: 42px;
  background: #4a9a3a;
  color: #fff;
  font-family: Fredoka, sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.bays {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bay-slot {
  appearance: none;
  min-height: 150px;
  margin: 0;
  padding: 6px;
  background: transparent;
  border: 3px dashed rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.bay-slot.move {
  border-color: var(--line);
  background: rgba(242, 194, 0, 0.2);
}

.toy {
  display: block;
  height: 100%;
  min-height: 136px;
  border-radius: 18px 18px 14px 14px;
  border: 3px solid #1f2430;
  position: relative;
  overflow: hidden;
}

.toy.red {
  background: linear-gradient(180deg, #ff7a7a, var(--red));
}

.toy.blue {
  background: linear-gradient(180deg, #7ab3ff, var(--blue));
}

.toy.yellow {
  background: linear-gradient(180deg, #ffe680, var(--yellow));
}

.toy .glass {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 36px;
  background: #9fe7ff;
  border: 3px solid #1f2430;
  border-radius: 10px;
}

.toy .pax {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.toy .pax i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid #1f2430;
}

.toy .pax i.on {
  background: #fff;
}

.toy.full {
  box-shadow: 0 0 0 4px #fff;
}

.hint {
  width: min(460px, 100%);
  margin: 10px auto 28px;
  padding: 0 14px;
  font-size: 14px;
  color: #245;
}

@media (prefers-reduced-motion: reduce) {
  .toy {
    transition: none;
  }
}

.bay-slot:focus-visible, .rider:focus-visible { outline:3px solid white; outline-offset:3px; }
