#cab {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 238px,
      rgba(27, 42, 92, .07) 238px 242px),
    linear-gradient(var(--wall2), var(--wall));
  animation: fadein .6s ease-out;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ceiling {
  flex: none;
  display: grid;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(#a3b0d1, #c8d1e7);
  border-bottom: 4px solid var(--ink);
}
.land .ceiling {
  grid-template-columns: auto 1fr auto auto auto auto;
  grid-template-areas: "back route mus snd fs exit";
}
.port .ceiling {
  grid-template-columns: auto 1fr auto auto auto auto;
  grid-template-areas: "back . mus snd fs exit" "route route route route route route";
}
#fsBtn {
  grid-area: fs;
}
#backBtn {
  grid-area: back;
  justify-self: start;
}
#snd {
  grid-area: snd;
}
#mus {
  grid-area: mus;
}
#exitBtn {
  grid-area: exit;
}
.route {
  grid-area: route;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  background: #12163a;
  color: #ffd34d;
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 6px 16px;
  box-shadow: inset 0 0 0 2px #2a3270;
}
.rtxt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  color: #8fa0ff;
}
.rn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
}
.dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #5a66b8;
  background: #232a63;
  color: #8fa0ff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.dot.done {
  background: #2fbf71;
  border-color: #baf5d2;
  color: #fff;
}
.dot.now {
  background: #ffd34d;
  border-color: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 3px #ffd34d;
  animation: dotp 1.2s ease-in-out infinite;
}
@keyframes dotp {
  0%, 100% {
    box-shadow: 0 0 0 2px #ffd34d;
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 211, 77, .35);
  }
}
.port .dot {
  width: 26px;
  font-size: 13px;
}
.port .dots {
  gap: 4px;
}
.wwrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
#cab.rumble .wwrap {
  animation: rumble .22s linear infinite;
}
@keyframes rumble {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(0, 1.5px);
  }
  75% {
    transform: translate(0, -1.5px);
  }
}
.rail {
  position: absolute;
  z-index: 6;
  top: -2px;
  left: 6%;
  right: 6%;
  height: 14px;
  background: var(--bus);
  border: 3px solid var(--ink);
  border-radius: 99px;
}
.frame {
  position: absolute;
  inset: 12px 18px 0;
  background: #eef2fa;
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
}
#scene {
  position: absolute;
  inset: 12px 12px 0;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(
      #7fd0ff,
      #d6f2ff 70%,
      #fff3c4);
}
.sun {
  position: absolute;
  top: 22px;
  right: 34px;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bus);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .55);
  animation: sunpulse 3s ease-in-out infinite;
}
#scene .cloud.c1 {
  top: 70px;
  animation-delay: -4s;
}
#scene .cloud.c2 {
  top: 36px;
  animation-duration: 30s;
  animation-delay: -14s;
  transform: scale(.8);
}
#scene .cloud.c3 {
  top: 104px;
  animation-duration: 38s;
  animation-delay: -20s;
  transform: scale(.6);
}
#scene.driving .cloud {
  animation-duration: 6s;
}
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(15% - 4px);
  transform: translateX(105%);
}
.skyline svg {
  width: 100%;
  height: auto;
  display: block;
}
#scene.arriving .skyline {
  transform: none;
  transition: transform 2.4s cubic-bezier(.2, .7, .25, 1);
}
.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15%;
  background: #3b4266;
  border-top: 4px solid var(--ink);
}
.sign {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  max-width: 90%;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 4px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  white-space: nowrap;
  box-shadow: 0 5px 0 var(--ink);
  scale: 0;
}
#scene.talk .sign {
  visibility: hidden;
}
#scene.arrived .sign {
  scale: 1;
  transition: scale .5s cubic-bezier(.3, 1.9, .5, 1);
}
.glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 42%,
      rgba(255, 255, 255, .16) 42% 49%,
      transparent 49% 55%,
      rgba(255, 255, 255, .1) 55% 58%,
      transparent 58%);
}
.floor {
  position: relative;
  flex: none;
  height: 62px;
  overflow: hidden;
  background: var(--wall2);
  border-top: 4px solid var(--ink);
}
.floor b {
  position: absolute;
  bottom: -14px;
  width: 21%;
  height: 84px;
  border: 4px solid var(--ink);
  border-radius: 28px 28px 0 0;
  background: var(--seat);
  box-shadow: inset 0 -18px 0 rgba(0, 0, 0, .12);
}
.floor b::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 8px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #52c58f;
}
.floor b:nth-child(1) {
  left: 3%;
}
.floor b:nth-child(2) {
  left: 27%;
}
.floor b:nth-child(3) {
  left: 51%;
}
.floor b:nth-child(4) {
  left: 75%;
}
.spinb {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 5s linear infinite;
}
.boat {
  animation: boatb 2.2s ease-in-out infinite alternate;
}
@keyframes boatb {
  from {
    transform: translateY(0) rotate(-2deg);
  }
  to {
    transform: translateY(-3px) rotate(2deg);
  }
}
.flagw {
  transform-box: fill-box;
  transform-origin: left center;
  animation: flagw 1.2s ease-in-out infinite alternate;
}
@keyframes flagw {
  from {
    transform: skewY(-6deg);
  }
  to {
    transform: skewY(6deg);
  }
}
.lampb {
  animation: lamp 2s ease-in-out infinite alternate;
}
@keyframes lamp {
  from {
    opacity: .5;
  }
  to {
    opacity: 1;
  }
}
