:root{color-scheme:dark}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:#152b24;color:#fff8e7;font-family:system-ui,-apple-system,'PingFang SC',sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #ffd98a;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.scene{position:relative;height:100svh;min-height:450px;overflow:hidden;isolation:isolate;background:#273c2c}.background,.light,.petals{position:absolute;inset:0;pointer-events:none}.background{z-index:-4;background:#385343 var(--station-preview,none) center/cover no-repeat}.light{z-index:-3;background:linear-gradient(180deg,rgba(8,22,19,.55),transparent 20%,transparent 75%,rgba(6,18,15,.42));}.header{height:84px;display:flex;align-items:center;padding:0 clamp(22px,4vw,72px);position:relative;z-index:5;background:linear-gradient(180deg,#11251fb8,transparent)}.brand{display:flex;align-items:center;gap:15px}.numbers{font:34px/1 Georgia,serif;letter-spacing:.08em;color:#f1d28c;text-shadow:0 1px 8px #172719}.brand-name{font:600 19px/1.25 Georgia,'Songti SC',serif}.brand-name small{display:block;font:600 8px/2 system-ui;letter-spacing:.24em;color:#e9dcc0}.nav{margin-left:auto;display:flex;gap:34px}.nav a{font:600 13px Georgia,serif;letter-spacing:.08em;text-shadow:0 2px 7px #172719}main{position:absolute;inset:0;pointer-events:none}.station-sign{position:absolute;z-index:3;left:calc(var(--sign-x,50) * 1%);top:calc(var(--sign-y,50) * 1%);transform:translate(-50%,-50%);pointer-events:auto;width:var(--sign-w,250px);height:var(--sign-h,320px);padding:12px 18px;color:#392e2e;background:#f9eddd;border:1px solid #e7d3bd;border-radius:0;box-shadow:none;display:flex;flex-direction:column}.sign-mark{height:24%;display:grid;place-items:center;border-bottom:1px solid #cdbca6;color:#aa4c3c;font-size:20px}.station-sign a{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;border-bottom:1px solid #d7c4af;transition:background-color .15s ease,color .15s ease}.station-sign a:last-child{border-bottom:0}.station-name{font:700 clamp(12px,1.2vw,19px)/1.1 Georgia,serif;letter-spacing:.02em}.station-name small{display:block;font:500 9px/1.8 system-ui;color:#775c50;white-space:nowrap}.bullet{font-size:8px;color:#b94737}.arrow{color:#9d3b32;font-size:19px}.road-layer{position:absolute;left:0;right:0;bottom:var(--road-bottom,4%);height:clamp(80px,15vw,210px);overflow:visible}.vehicle{position:absolute;left:0;bottom:0;width:clamp(200px,23vw,385px);height:auto;max-height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 9px 3px #1b292680);will-change:transform;transform:translateX(-130%)}.vehicle.bus{width:clamp(290px,32vw,550px)}.petals{z-index:2;overflow:hidden}.petals i{position:absolute;left:12%;top:20%;width:10px;height:6px;border-radius:80% 10% 80% 10%;background:#f7c2cc;opacity:0;animation:petal 14s linear infinite}.petals i:nth-child(2){left:28%;top:14%;animation-delay:-4s}.petals i:nth-child(3){left:42%;top:19%;animation-delay:-8s;width:7px}.petals i:nth-child(4){left:8%;top:25%;animation-delay:-11s;width:7px}.petals i:nth-child(5){left:61%;top:30%;animation-delay:-3s;width:6px}.petals i:nth-child(6){left:22%;top:25%;animation-delay:-9s}.petals i:nth-child(7){left:48%;top:12%;animation-delay:-6s;width:8px}.petals i:nth-child(8){left:70%;top:18%;animation-delay:-12s;width:6px}@keyframes petal{0%{transform:translate3d(0,0,0) rotate(0);opacity:0}12%{opacity:.75}80%{opacity:.65}100%{transform:translate3d(145px,260px,0) rotate(360deg);opacity:0}}footer{position:absolute;z-index:5;bottom:22px;right:clamp(20px,4vw,72px);display:flex;gap:8px}footer button{min-height:40px;padding:8px 12px;border:1px solid #f3dca477;border-radius:4px;background:#1b3027c9;color:#fff8e7;font-size:11px;backdrop-filter:blur(8px)}footer button:disabled{opacity:.55;cursor:default}.scene.paused .petals i{animation-play-state:paused}@media(hover:hover) and (pointer:fine){.station-sign a:hover{background:#efd8c2;color:#922f29}footer button:hover:not(:disabled){background:#304b3c}}@media(prefers-reduced-motion:reduce){.petals i{animation:none}.station-sign a{transition:none}}@media(max-width:800px){.header{height:72px;padding:0 20px}.numbers{font-size:28px}.brand-name{font-size:16px}.nav{gap:18px}.nav a{font-size:12px}.station-sign{padding:8px 10px}.station-name{font-size:14px}.station-name small{font-size:8px}.road-layer{bottom:9%;height:110px}.vehicle{width:240px}.vehicle.bus{width:330px}footer{bottom:16px;right:18px}footer button{min-height:44px;font-size:12px}}
/* The station is one screen: two destinations, alternating with fictional posters. */
.station-sign{padding:0;overflow:hidden;touch-action:pan-y}.sign-panel{width:100%;height:100%}.sign-panel[hidden]{display:none!important}.destinations{display:flex;flex-direction:column;padding:12px 18px}.sign-mark{flex:0 0 24%}.destinations a{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;border-bottom:1px solid #d7c4af;transition:background-color .15s ease,color .15s ease}.destinations a:last-child{border-bottom:0}.station-poster{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4%;padding:8%;border:0;text-align:center;cursor:pointer;overflow:hidden}.station-poster .poster-kicker{font:700 clamp(8px,.8vw,11px)/1.2 system-ui;letter-spacing:.14em}.station-poster strong{font:600 clamp(19px,2vw,31px)/1.2 Georgia,'Songti SC',serif;letter-spacing:.08em}.station-poster .poster-copy{font-size:clamp(9px,.8vw,12px);line-height:1.4}.station-poster small{position:absolute;bottom:5%;font-size:9px;opacity:.7}[data-screen="soda"]{color:#fff4d9;background:radial-gradient(circle at 50% 35%,#607fa0 0,#2d455c 44%,#1e3042 100%)}[data-screen="post"]{color:#594b35;background:radial-gradient(circle at 60% 35%,#fff0cc,#e0c7a1 75%)}.moon-disc,.post-stamp{display:grid;place-items:center;position:relative;width:42%;aspect-ratio:1;border-radius:50%;font:400 clamp(34px,4vw,65px)/1 Georgia,serif}.moon-disc{border:1px solid #e9d9a888;color:#f9dfaa;background:#f4dca521}.post-stamp{border:1px solid #aa8762;color:#9d6652;background:#faf1d740}.moon-disc i,.post-stamp i{position:absolute;right:15%;top:12%;font:normal 13px system-ui}.road-layer{inset:0;height:auto;overflow:hidden}.vehicle,.vehicle.bus{position:absolute;width:var(--vehicle-width,600px);height:auto;max-height:none;left:0;bottom:var(--vehicle-bottom,0px);filter:drop-shadow(0 8px 3px #1b292680);will-change:transform}.vehicle-image{display:block;width:100%;height:auto}.wheel{position:absolute;display:block;border-radius:50%;aspect-ratio:1;background-repeat:no-repeat;animation:wheel-roll var(--wheel-period,2.4s) linear infinite;will-change:transform}.scene.paused .wheel{animation-play-state:paused}@keyframes wheel-roll{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.wheel{animation:none}}@media(max-width:800px){.destinations{padding:8px 10px}.station-poster strong{font-size:20px}.station-poster .poster-copy{font-size:9px}.vehicle,.vehicle.bus{width:var(--vehicle-width,450px)}}
.road-layer{z-index:4;pointer-events:none}
/* Illustrated fictional posters, with text kept readable and selectable. */
.station-poster{justify-content:space-between;gap:0;padding:9% 7% 5%;color:#fff4df;text-shadow:0 1px 4px #15232bcc;background-position:center;background-size:cover;background-repeat:no-repeat}[data-screen="soda"]{background-image:linear-gradient(180deg,#101b29b8 0%,transparent 41%,transparent 65%,#101923d9 100%),var(--poster-image,none)}[data-screen="post"]{background-image:linear-gradient(180deg,#172a1fcb 0%,transparent 43%,transparent 65%,#1a2a1cdc 100%),var(--poster-image,none)}.station-poster .poster-heading,.station-poster .poster-bottom{display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;width:100%}.station-poster .poster-heading{padding-bottom:5px}.station-poster .poster-kicker{font-size:clamp(6px,.6vw,9px);letter-spacing:.16em;color:#f3dca5}.station-poster strong{font:600 clamp(19px,2vw,30px)/1.3 Georgia,'Songti SC',serif;letter-spacing:.12em}.station-poster .poster-subtitle{font-size:clamp(8px,.7vw,10px);letter-spacing:.05em;color:#f3e9d3}.station-poster .poster-copy{font-size:clamp(8px,.8vw,11px);font-family:Georgia,'Songti SC',serif;letter-spacing:.06em}.station-poster small{position:static;font-size:9px;opacity:.8}.station-poster:focus-visible{outline:3px solid #f5b857;outline-offset:-4px}
/* Window cutouts reveal the actual scene underneath the moving vehicle. */
.vehicle-image{mask-image:var(--window-mask);-webkit-mask-image:var(--window-mask);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}
/* The replacement bus contains true transparent windows; tint sits behind its interior. */
.vehicle.bus::before{content:"";position:absolute;inset:0;background:url('bus-glass.svg') center/100% 100% no-repeat;pointer-events:none}
.vehicle.bus .vehicle-image{position:relative}
.vehicle.bus .wheel{z-index:1}
.speed-control{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid #f3dca477;border-radius:4px;background:#1b3027d9;color:#fff8e7;font-size:11px;backdrop-filter:blur(8px)}
.speed-control input{width:105px;accent-color:#e8c584;cursor:pointer}
.speed-control input:focus-visible{outline:3px solid #ffd98a;outline-offset:3px}
.speed-control output{min-width:2.5em;font-variant-numeric:tabular-nums}
@media(max-width:480px){footer{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 36px)}.speed-control{min-height:44px}.speed-control input{width:80px}}
/* Station information panel */
.station-sign{--ink:#4d3730;--red:#a24737;--copper:#aa8661;color:var(--ink);background:#f6ead8;user-select:none;touch-action:pan-y}
.destinations{position:relative;display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden;padding:10% 12% 18%;background:radial-gradient(ellipse at 85% 4%,#fff9eb 0,transparent 56%),repeating-linear-gradient(25deg,#aa8e6d08 0 1px,transparent 1px 8px),linear-gradient(145deg,#f8eedf,#f1e3ce)}
.destinations::after{content:"";position:absolute;inset:5%;border:1px solid #b69b7948;pointer-events:none}
.station-top{display:flex;align-items:center;gap:8px;position:relative;z-index:1;color:var(--red)}
.station-seal{display:grid;place-items:center;width:25px;height:25px;border:1px solid #b98b69a8;border-radius:50%;font-size:14px}
.station-id{font:600 11px/1 Georgia,serif;letter-spacing:.21em}
.station-rule{flex:1;height:1px;background:linear-gradient(90deg,#aa8763aa,transparent)}
.botanical{position:absolute;right:-8%;top:8%;width:66%;height:auto;fill:none;stroke:#b9756c;stroke-width:1.2;opacity:.20;pointer-events:none}
.botanical circle{fill:#d99d93;stroke:none}
.route-list{position:relative;z-index:1;display:flex;flex-direction:column;flex:1;margin:10% 0 0;padding:0 0 4%;min-height:0}
.station-sign .route-list a{position:relative;display:flex;flex:1;align-items:center;justify-content:flex-start;gap:0;min-height:0;border:0;color:var(--ink);text-align:left}
.route-list a:first-child::after{content:"";position:absolute;left:21%;right:0;bottom:0;height:1px;background:#b99d7c6b}
.route-rail{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 19%}
.route-rail::before{content:"";position:absolute;left:50%;width:2px;background:#ab5d4c;opacity:.7;top:50%;bottom:-50%;transform:translateX(-50%)}
.route-list a:last-child .route-rail::before{display:none}
.route-dot{position:relative;z-index:1;width:12px;height:12px;border:2px solid #a74b3b;background:#f5e7d4;border-radius:50%;box-shadow:0 0 0 4px #f5e7d4}
.route-copy{display:flex;flex:1;align-items:baseline;gap:9px;min-width:0;padding-left:2%}
.route-num{color:#a3664f;font:600 10px/1 Georgia,serif;letter-spacing:.09em}
.station-sign .station-name{font:700 clamp(16px,1.5vw,23px)/1 Georgia,serif;letter-spacing:.04em}
.route-icon{width:clamp(20px,2vw,29px);height:clamp(20px,2vw,29px);margin-right:7%;fill:none;stroke:#ae8265;stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round;opacity:.8}
.route-arrow{color:#a74b3b;font:20px/1 Georgia,serif;transition:transform .18s ease}
@media(hover:hover) and (pointer:fine){.station-sign .route-list a:hover{background:#aa675610}.station-sign .route-list a:hover .route-arrow{transform:translate(2px,-2px)}}
.sign-nav{position:absolute;z-index:3;left:5%;right:5%;bottom:2%;height:36px;display:flex;align-items:center;justify-content:center;gap:4px;color:#9d5a49}
.sign-nav button{display:grid;place-items:center;min-width:30px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.sign-prev,.sign-next{font:24px/1 Georgia,serif}
.sign-dots{display:flex;align-items:center;gap:0}.sign-dots button{min-width:24px}.sign-dots span{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.4}.sign-dots [aria-current="true"] span{width:6px;height:6px;opacity:1}
.station-sign:not([data-active="stations"]) .sign-nav{color:#fff3da;text-shadow:0 1px 4px #1a211b;background:#172b2380;border-radius:18px}
.station-sign .station-poster{padding-bottom:21%}
.station-sign:focus-visible,.sign-nav button:focus-visible{outline:2px solid #bc6249;outline-offset:-3px}
@media(max-width:800px){.station-sign .station-name{font-size:clamp(15px,3.7vw,21px)}.route-num{font-size:9px}.sign-nav{height:32px;bottom:1%}.sign-nav button{min-width:30px;height:32px}.sign-dots button{min-width:22px}.destinations{padding-bottom:20%}}
.route-copy{flex:0 1 auto;gap:6px;white-space:nowrap}
.route-icon{flex:0 0 22px;width:22px;height:22px;margin-left:auto;margin-right:7px}
.route-arrow{flex:none;margin-left:auto}
@media(max-width:800px){.route-icon{display:none}.route-copy{gap:5px}.route-arrow{font-size:18px}.station-sign .station-name{font-size:clamp(14px,3.4vw,19px)}}
.sign-nav{gap:0}
.sign-nav button{min-width:40px;width:40px;height:40px}
.sign-dots{gap:7px}.sign-dots [data-page]{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.4}.sign-dots [data-page][aria-current="true"]{width:6px;height:6px;opacity:1}
@media(max-width:800px){.sign-nav button{min-width:40px;height:40px}}
@media(max-width:360px){.destinations{padding-left:9%;padding-right:9%}.route-rail{flex-basis:17%}.route-copy{gap:3px}.route-arrow{font-size:15px;margin-left:4px}.station-sign .station-name{font-size:13px}}
/* A fictional transit map replaces the two destination links on the sign. */
.map-panel{padding:2% 2% 38px;align-items:stretch;justify-content:center;background:#f6ead9}
.map-panel::after{display:none}
.map-trigger{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;padding:0;border:0;background:transparent;cursor:zoom-in}
.map-trigger img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.map-zoom{position:absolute;top:5%;right:6%;display:grid;place-items:center;width:24px;height:24px;border:1px solid #a87a6190;border-radius:50%;color:#9a5b49;background:#f8efe1cf;font:16px/1 Georgia,serif}
.map-trigger:focus-visible,.route-close:focus-visible{outline:2px solid #a94735;outline-offset:-3px}
.route-dialog{width:min(90vw,440px);max-width:none;max-height:90svh;margin:auto;padding:14px;border:1px solid #b88d6a;border-radius:6px;background:#f5eadb;box-shadow:0 18px 70px #101a15a0}
.route-dialog::backdrop{background:#0e1c17bd;backdrop-filter:blur(4px)}
.route-dialog img{display:block;width:100%;max-height:80svh;object-fit:contain}
.route-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #b9987c;border-radius:50%;color:#805544;background:#fcf4e7;cursor:pointer;font:25px/1 system-ui}
@media(max-width:800px){.map-panel{padding:2% 2% 35px}.map-zoom{width:20px;height:20px;font-size:13px;top:4%;right:5%}}

/* The embedded preview and decoded photo use the same crop and anchor. */
.scene {
  container-type: size;
  --art-width: 1672;
  --art-height: 941;
  --art-pixel: max(calc(100cqw / var(--art-width)), calc(100cqh / var(--art-height)));
}
.station-sign {
  left: calc(50% + var(--art-pixel) * var(--sign-offset-x, 4));
  top: calc(50% + var(--art-pixel) * var(--sign-offset-y, 6.5));
  width: calc(var(--art-pixel) * var(--sign-width, 250));
  height: calc(var(--art-pixel) * var(--sign-height, 320));
}
.background-photos, .background-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.background-photo { display: block; object-fit: cover; }
#vehicle[hidden], .season-control[hidden] { display: none; }

.season-control {
  position: absolute;
  z-index: 5;
  left: clamp(20px, 4vw, 72px);
  bottom: 22px;
  display: grid;
  justify-items: start;
  gap: 6px;
}
.season-options {
  display: flex;
  padding: 2px;
  border: 1px solid #f3dca477;
  border-radius: 5px;
  background: #172c25e8;
}
.season-options button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  color: #fff3d8;
  background: transparent;
  font-size: 12px;
}
.season-options button[aria-pressed="true"] {
  color: #302517;
  background: #ecd3a0;
}
.station-status {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 5px 8px;
  border-radius: 4px;
  background: #172c25ed;
  color: #fff3d8;
  font-size: 12px;
}
.station-status:empty { padding: 0; }
@media (max-width: 800px) {
  .scene { --art-width: 941; --art-height: 1672; }
  .station-sign {
    --sign-offset-x: var(--mobile-sign-x, 162.5);
    --sign-offset-y: var(--mobile-sign-y, 32);
    --sign-width: var(--mobile-sign-width, 300);
    --sign-height: var(--mobile-sign-height, 435);
  }
  .season-control { left: 18px; bottom: 16px; }
  .season-options button { min-width: 42px; min-height: 40px; }
}
@media (max-width: 480px) {
  #scene > footer { display: grid; grid-template-columns: repeat(2, 1fr); }
  #scene > footer .speed-control { grid-column: 1 / -1; }
}
:root[data-station-season="winter"] .background { background-color: #283a50; }
:root[data-station-season="winter"] .light {
  background: linear-gradient(180deg, #18253873, transparent 24%, transparent 72%, #13243655);
}
:root[data-station-season="winter"] .petals i {
  top: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3f8ff;
  animation-name: station-snow;
  animation-duration: 19s;
}
:root[data-station-season="winter"] .petals i:nth-child(even) { width: 3px; height: 3px; }
@keyframes station-snow {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .72; }
  85% { opacity: .6; }
  100% { transform: translate3d(85px, 88svh, 0); opacity: 0; }
}
:root[data-station-season="winter"] .vehicle {
  filter: brightness(.78) saturate(.88) drop-shadow(0 8px 3px #101f2c90);
}
:root[data-station-season="winter"] .vehicle::after {
  content: '';
  position: absolute;
  left: 95%;
  bottom: 9%;
  width: 23%;
  height: 12%;
  background: radial-gradient(ellipse at 35% 49%, #ffe6a965, #f3cf7625 42%, transparent 71%);
  transform: skewX(20deg);
}
@media (prefers-reduced-motion: reduce) {
  :root[data-station-season="winter"] .scene.paused .petals i { animation: none; }
}

@media (max-width: 420px) {
  .season-options { display: grid; grid-template-columns: repeat(2, minmax(42px, 1fr)); }
}

:root[data-station-season="summer"] .petals i {
  width: 6px;
  height: 3px;
  background: #9abf81;
}
:root[data-station-season="summer"] .petals i:nth-child(n + 4) { display: none; }
:root[data-station-season="autumn"] .petals i {
  --leaf-color: #d68b45;
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: var(--leaf-color);
  clip-path: polygon(50% 0, 61% 33%, 92% 16%, 81% 51%, 100% 55%, 64% 77%, 60% 100%, 49% 77%, 7% 69%, 22% 52%, 3% 26%, 38% 37%);
}
:root[data-station-season="autumn"] .petals i:nth-child(even) { --leaf-color: #b95036; }
