:root {
  /* IBM Plex Sans Condensed** */
  --midnight: #10131A;
  --ivory: #F1E9D2;
  --vermilion: #E9452E;
  --teal: #00A6A6;
  --amber: #F2A900;
  --cobalt: #234B8E;
  --green: #1F6F52;
  --pink: #FF6FAE;
  --sign-font: "Bebas Neue", sans-serif;
  --civic-font: "IBM Plex Sans Condensed", sans-serif;
  --story-font: "Newsreader", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--civic-font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(242,169,0,.12), transparent 22%),
    radial-gradient(circle at 82% 38%, rgba(0,166,166,.13), transparent 24%),
    linear-gradient(135deg, rgba(35,75,142,.26), transparent 45%, rgba(16,19,26,.8));
  mix-blend-mode: screen;
  z-index: 1;
}

.rain-pane {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(110deg, transparent 0 16px, rgba(241,233,210,.16) 17px, transparent 18px),
    linear-gradient(110deg, transparent 0 53px, rgba(0,166,166,.16) 54px, transparent 55px);
  background-size: 78px 120px, 160px 220px;
  animation: rainDrift 10s linear infinite;
}

@keyframes rainDrift { to { transform: translate3d(-70px, 160px, 0); } }

.route-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

#routeMap { width: 100%; height: 100%; }

#routeTrack {
  fill: none;
  stroke: var(--vermilion);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(233,69,46,.7));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.station-nav {
  position: fixed;
  top: 20px;
  left: 22px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: rgba(16,19,26,.82);
  border: 2px solid var(--ivory);
  box-shadow: 7px 7px 0 rgba(0,0,0,.55), inset 0 -3px 0 rgba(242,169,0,.24);
  transform: rotate(-1deg);
}

.nav-sign {
  padding: 2px 12px 0;
  color: var(--vermilion);
  font-family: var(--sign-font);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .05em;
}

.token {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ivory);
  background: var(--midnight);
  color: var(--ivory);
  font: 700 1rem var(--civic-font);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.token.active, .token:hover { background: var(--amber); color: var(--midnight); transform: translateY(-3px) rotate(8deg); }

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) clamp(24px, 7vw, 110px);
  isolation: isolate;
}

.scene::after {
  content: attr(data-stop);
  position: absolute;
  right: 3vw;
  bottom: 3vh;
  z-index: -1;
  color: rgba(241,233,210,.055);
  font-family: var(--sign-font);
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: .8;
  letter-spacing: .03em;
}

.scene-copy { position: relative; z-index: 5; max-width: 560px; }
.line-label { display: block; margin-bottom: 12px; color: var(--amber); font: 700 .95rem var(--civic-font); letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--sign-font); font-weight: 400; line-height: .86; letter-spacing: .03em; }
h1 { color: var(--vermilion); font-size: clamp(6rem, 19vw, 19rem); text-shadow: 8px 8px 0 rgba(35,75,142,.78); }
h2 { color: var(--ivory); font-size: clamp(4rem, 11vw, 12rem); text-shadow: 5px 5px 0 rgba(233,69,46,.55); }
p { font-family: var(--story-font); font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.25; }

.entrance-scene {
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, #10131A 0%, #151B2D 50%, #10131A 100%);
}

.subway-wall {
  position: absolute;
  inset: 0 0 auto 0;
  height: 42vh;
  opacity: .22;
  background: var(--ivory);
  transform: skewY(-4deg) translateY(-7vh);
  overflow: hidden;
}

.tile-row { height: 33%; background-image: repeating-linear-gradient(90deg, transparent 0 86px, rgba(16,19,26,.7) 87px 90px); border-bottom: 3px solid rgba(16,19,26,.75); }
.tile-row.offset { transform: translateX(45px); }

.stairwell { position: absolute; left: 8vw; bottom: 8vh; width: min(52vw, 660px); height: 54vh; perspective: 500px; transform: rotate(-6deg); }
.red-sign { display: inline-block; padding: 6px 16px 0; background: var(--vermilion); color: var(--ivory); font: 400 3rem var(--sign-font); letter-spacing: .06em; box-shadow: 0 0 26px rgba(233,69,46,.7); }
.stair { position: absolute; left: 5%; right: 0; height: 9%; background: linear-gradient(90deg, rgba(241,233,210,.15), rgba(242,169,0,.42)); border-top: 2px solid rgba(241,233,210,.28); transform-origin: left center; }
.stair-1 { top: 28%; transform: rotateX(45deg) translateX(0); } .stair-2 { top: 40%; transform: rotateX(45deg) translateX(5%); } .stair-3 { top: 52%; transform: rotateX(45deg) translateX(10%); } .stair-4 { top: 64%; transform: rotateX(45deg) translateX(15%); } .stair-5 { top: 76%; transform: rotateX(45deg) translateX(20%); }
.map-paper { justify-self: end; padding: clamp(22px, 4vw, 44px); color: var(--midnight); background: var(--ivory); clip-path: polygon(0 5%, 94% 0, 100% 90%, 8% 100%); box-shadow: 16px 18px 0 rgba(0,0,0,.5); transform: rotate(2deg); }
.map-paper p { color: var(--midnight); }
.crosswalk { position: absolute; right: -5vw; bottom: 13vh; display: flex; gap: 18px; transform: rotate(-28deg); }
.crosswalk i { width: 42px; height: 210px; background: var(--ivory); opacity: .7; }

.skyline-scene { background: radial-gradient(circle at 70% 10%, rgba(35,75,142,.65), transparent 36%), var(--midnight); }
.counter-avenue { position: absolute; left: -10vw; right: -10vw; bottom: 17vh; height: 18vh; background: linear-gradient(90deg, rgba(31,111,82,.75), rgba(16,19,26,.95), rgba(242,169,0,.3)); border-top: 5px solid rgba(241,233,210,.28); transform: rotate(-5deg); box-shadow: 0 -26px 70px rgba(0,0,0,.5), inset 0 18px 22px rgba(241,233,210,.06); }
.bottle-city { position: absolute; left: 7vw; bottom: 27vh; display: flex; align-items: end; gap: clamp(12px, 2vw, 28px); transform: rotate(-5deg); z-index: 4; }
.bottle { position: relative; width: clamp(52px, 8vw, 116px); height: 260px; border: 3px solid rgba(241,233,210,.4); border-radius: 22px 22px 8px 8px; display: grid; align-content: end; justify-items: center; gap: 10px; padding: 22px 8px; box-shadow: inset 14px 0 30px rgba(255,255,255,.08), 0 0 40px rgba(0,0,0,.55); animation: bottleGlow 4.8s ease-in-out infinite alternate; }
.bottle::before { content: ""; position: absolute; top: -64px; left: 30%; width: 40%; height: 66px; border: 3px solid rgba(241,233,210,.38); border-bottom: 0; border-radius: 10px 10px 0 0; }
.bottle span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 .85rem var(--civic-font); letter-spacing: .11em; color: var(--ivory); }
.bottle b { display: block; width: 48%; height: 11px; background: rgba(241,233,210,.68); box-shadow: 0 0 14px currentColor; }
.tall { height: 360px; } .mid { height: 305px; } .short { height: 230px; } .tower { height: 420px; }
.green { background: rgba(31,111,82,.78); color: var(--green); } .cobalt { background: rgba(35,75,142,.82); color: var(--cobalt); } .amber { background: rgba(242,169,0,.76); color: var(--amber); } .teal { background: rgba(0,166,166,.72); color: var(--teal); } .vermilion { background: rgba(233,69,46,.74); color: var(--vermilion); }
@keyframes bottleGlow { from { filter: brightness(.72); } to { filter: brightness(1.18); } }
.bar-tool { width: 34px; height: 430px; border-radius: 18px; background: var(--ivory); transform: rotate(14deg); opacity: .65; }
.receipt-strip { margin-left: auto; margin-top: 2vh; padding: 30px; width: min(48vw, 570px); background: linear-gradient(var(--ivory), #e3d7b9); color: var(--midnight); clip-path: polygon(0 0, 100% 3%, 96% 100%, 5% 96%); }
.receipt-strip h2 { color: var(--midnight); text-shadow: 4px 4px 0 rgba(255,111,174,.35); }
.receipt-strip p { color: var(--midnight); }
.apartment-block { position: absolute; right: 8vw; bottom: 8vh; width: 320px; height: 260px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px; background: rgba(35,75,142,.32); border: 4px solid rgba(241,233,210,.18); transform: rotate(2deg); }
.window { border: 0; background: var(--teal); box-shadow: 0 0 26px rgba(0,166,166,.8), inset 0 -18px rgba(16,19,26,.18); cursor: pointer; animation: windowBlink 3.7s infinite steps(2); }
.window:nth-child(2n) { animation-delay: .8s; background: var(--amber); box-shadow: 0 0 24px rgba(242,169,0,.7); }
.window:nth-child(3n) { animation-delay: 1.6s; background: var(--pink); box-shadow: 0 0 22px rgba(255,111,174,.58); }
@keyframes windowBlink { 0%, 74% { opacity: 1; } 75%, 100% { opacity: .34; } }
.phrase-bubble { position: absolute; right: 9vw; bottom: 39vh; max-width: 330px; padding: 15px 18px; background: var(--midnight); border: 2px solid var(--amber); color: var(--ivory); font: 600 1.1rem var(--story-font); box-shadow: 8px 8px 0 rgba(0,0,0,.45); transform: rotate(-2deg); }

.booth-scene { background: linear-gradient(145deg, rgba(31,111,82,.55), rgba(16,19,26,.95) 52%, rgba(233,69,46,.16)); }
.awning { position: absolute; top: 13vh; left: -2vw; display: flex; width: 72vw; height: 90px; transform: rotate(-4deg); }
.awning i { flex: 1; background: var(--vermilion); border-radius: 0 0 38px 38px; border-right: 4px solid rgba(16,19,26,.35); }
.awning i:nth-child(even) { background: var(--ivory); }
.booth-shape { position: relative; z-index: 5; margin: 12vh auto 0; width: min(760px, 84vw); padding: clamp(26px, 5vw, 56px); background: rgba(233,69,46,.85); border-radius: 46px 46px 14px 14px; box-shadow: 0 34px 0 rgba(110,22,19,.9), 18px 52px 70px rgba(0,0,0,.45); transform: rotate(2deg); }
.table-token { position: absolute; top: -42px; left: 38px; width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--midnight); border: 5px solid var(--ivory); font: 700 2.9rem var(--civic-font); }
.tile-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.tile-menu span { padding: 13px 8px; color: var(--midnight); background: var(--ivory); text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.crossing-signal { position: absolute; right: 10vw; top: 20vh; width: 110px; height: 155px; display: grid; place-items: center; background: #05070a; border: 5px solid var(--ivory); box-shadow: 0 0 0 9px rgba(0,0,0,.45); font: 400 2.1rem var(--sign-font); }
.crossing-signal span { grid-area: 1/1; opacity: 0; }
.crossing-signal .wait { color: var(--vermilion); opacity: 1; }
.crossing-signal.walking .wait { opacity: 0; }
.crossing-signal.walking .walk { color: var(--teal); opacity: 1; }
.napkin-map { position: absolute; left: 7vw; bottom: 10vh; width: 280px; padding: 24px; background: var(--ivory); transform: rotate(-9deg); box-shadow: 12px 12px 0 rgba(0,0,0,.35); }
.napkin-map path { fill: none; stroke: var(--cobalt); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 12 10; }
.napkin-map circle { fill: var(--vermilion); }

.rooftop-scene { background: linear-gradient(180deg, rgba(35,75,142,.58), var(--midnight) 65%); }
.fire-escape { position: absolute; left: 8vw; top: 12vh; width: 270px; height: 410px; border-left: 6px solid var(--ivory); border-right: 6px solid var(--ivory); opacity: .55; transform: skewY(-7deg); }
.fire-escape i { display: block; height: 33%; border-bottom: 6px solid var(--ivory); background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(241,233,210,.55) 19px 23px); }
.water-tower { position: absolute; right: 12vw; top: 12vh; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: var(--green); border: 5px solid var(--ivory); color: var(--ivory); font: 400 2.6rem/.82 var(--sign-font); text-align: center; box-shadow: 0 18px 0 rgba(0,0,0,.45); }
.water-tower::before, .water-tower::after { content: ""; position: absolute; bottom: -120px; width: 5px; height: 120px; background: var(--ivory); transform-origin: top; }
.water-tower::before { transform: rotate(14deg); left: 35px; } .water-tower::after { transform: rotate(-14deg); right: 35px; }
.umbrella-antenna { position: absolute; right: 25vw; bottom: 32vh; width: 170px; height: 86px; background: conic-gradient(from 180deg, var(--pink), var(--amber), var(--teal), var(--pink)); clip-path: polygon(0 100%, 50% 0, 100% 100%); filter: drop-shadow(0 0 20px rgba(255,111,174,.45)); }
.roof-sign { margin: 27vh auto 0; padding: 32px; width: min(680px, 82vw); background: rgba(16,19,26,.78); border: 3px solid var(--teal); box-shadow: 12px 12px 0 rgba(0,0,0,.5), 0 0 40px rgba(0,166,166,.24); transform: rotate(-2deg); }
.puddles { position: absolute; inset: auto 0 8vh 0; display: flex; justify-content: space-around; }
.puddles i { width: clamp(110px, 18vw, 250px); height: 34px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,166,166,.48), rgba(35,75,142,.12) 70%); animation: ripple 2.7s ease-in-out infinite; }
.puddles i:nth-child(2) { animation-delay: .8s; } .puddles i:nth-child(3) { animation-delay: 1.4s; }
@keyframes ripple { 50% { transform: scale(1.16); opacity: .55; } }

.bus-scene { background: linear-gradient(165deg, var(--midnight), rgba(35,75,142,.55)); }
.bus-stop { position: absolute; left: 9vw; top: 22vh; width: 260px; height: 410px; border-left: 7px solid var(--ivory); }
.bus-sign { margin-left: 18px; padding: 12px; background: var(--ivory); color: var(--midnight); font: 700 1.45rem var(--civic-font); letter-spacing: .08em; }
.bench { position: absolute; left: 22px; bottom: 40px; width: 270px; height: 65px; border-top: 8px solid var(--amber); border-bottom: 8px solid var(--amber); }
.bench::before, .bench::after { content: ""; position: absolute; bottom: -84px; width: 8px; height: 82px; background: var(--amber); } .bench::before { left: 30px; } .bench::after { right: 30px; }
.night-bus { position: absolute; right: 7vw; bottom: 22vh; width: min(620px, 70vw); height: 180px; background: var(--cobalt); border: 5px solid var(--ivory); border-radius: 28px 40px 12px 12px; box-shadow: 0 0 60px rgba(35,75,142,.7); transform: rotate(2deg); }
.night-bus span { display: inline-block; width: 24%; height: 58px; margin: 25px 2% 0 4%; background: var(--amber); box-shadow: 0 0 24px rgba(242,169,0,.7); }
.wheel { position: absolute; bottom: -33px; width: 66px; height: 66px; border-radius: 50%; background: var(--midnight); border: 10px solid var(--ivory); } .wheel.left { left: 70px; } .wheel.right { right: 82px; }
.bus-ticket { position: relative; z-index: 5; margin: 8vh auto 0; width: min(620px, 80vw); padding: 30px; background: var(--ivory); color: var(--midnight); clip-path: polygon(0 0, 95% 4%, 100% 45%, 95% 100%, 4% 96%, 0 55%); transform: rotate(-3deg); }
.bus-ticket h2, .bus-ticket p { color: var(--midnight); }
.bus-ticket h2 { text-shadow: 4px 4px 0 rgba(242,169,0,.45); }
.redraw-button { border: 0; padding: 12px 18px; background: var(--pink); color: var(--midnight); font: 700 1.1rem var(--civic-font); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; box-shadow: 5px 5px 0 var(--midnight); }
.footer-route { position: absolute; left: 50%; bottom: 5vh; width: min(760px, 86vw); transform: translateX(-50%); }
.footer-route path { fill: none; stroke: var(--vermilion); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
.footer-route circle { fill: var(--amber); stroke: var(--ivory); stroke-width: 4; }
.footer-route.redrawn path { stroke-dashoffset: 0; }

@media (max-width: 760px) {
  .station-nav { left: 10px; right: 10px; top: 10px; justify-content: center; }
  .nav-sign { font-size: 1.7rem; padding-inline: 4px; }
  .token { width: 30px; height: 30px; }
  .map-paper, .receipt-strip, .booth-shape, .roof-sign, .bus-ticket { width: 100%; margin-top: 16vh; }
  .bottle-city { left: -18vw; transform: rotate(-5deg) scale(.72); transform-origin: bottom left; }
  .apartment-block, .phrase-bubble, .crossing-signal, .napkin-map, .water-tower { display: none; }
  .night-bus { width: 92vw; right: -8vw; }
  .tile-menu { grid-template-columns: 1fr; }
}
