:root {
  --bg: #ffffff;
  --ink: #111a15;
  --soft: #76807a;
  --card: #ffffff;
  --accent: #12a35c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 14px 16px;
}

.bus {
  position: relative;
  width: min(304px, 100%);
  padding: 15px 16px 14px;
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(17, 26, 21, 0.07),
    0 2px 4px rgba(17, 26, 21, 0.05),
    0 18px 36px -16px rgba(17, 26, 21, 0.28),
    0 44px 70px -40px color-mix(in srgb, var(--accent) 60%, transparent);
}
.bus__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bus__line { display: inline-block; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, #ffffff); color: color-mix(in srgb, var(--accent) 80%, #000000); font-size: 10.5px; line-height: 15px; font-weight: 680; letter-spacing: 0.03em; }
.bus__head h1 { margin-top: 4px; font-size: 15.5px; line-height: 20px; font-weight: 680; font-stretch: 106%; letter-spacing: -0.012em; }
.bus__seats { display: flex; align-items: baseline; gap: 4px; font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.bus__seats strong { color: var(--ink); font-size: 14px; font-weight: 700; }
.roll { display: block; height: 18px; line-height: 18px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; }

.eta { display: flex; align-items: center; gap: 10px; margin-top: min(12px, 2.6vh); }
.roll--big { height: min(56px, 13vh); line-height: min(56px, 13vh); font-size: min(56px, 13vh); font-weight: 740; font-stretch: 112%; letter-spacing: -0.04em; min-width: 0.62em; }
.eta__side { display: grid; gap: 1px; }
.eta__side .roll { font-size: 15px; font-weight: 680; }
.eta__side .eta__to { font-size: 12px; font-weight: 540; color: var(--soft); }
.bus.is-here .roll--big { color: var(--accent); }

/* ---- the line with its stops ---- */
.route { position: relative; margin-top: min(16px, 3.4vh); padding-top: 26px; }
.route__road { position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 99px; background: rgba(17, 26, 21, 0.09); }
.route__done { position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 99px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.route__van { position: absolute; top: 2px; left: 0; width: 34px; height: 20px; margin-left: -17px; filter: drop-shadow(0 3px 4px rgba(17, 26, 21, 0.25)); }
.route__van svg { display: block; width: 100%; height: 100%; overflow: visible; }
.van__body { fill: var(--accent); }
.van__glass { fill: rgba(255, 255, 255, 0.85); }
.van__wheel { fill: var(--ink); }
.route__stops { position: relative; display: flex; justify-content: space-between; }
.stop { position: relative; flex: 0 0 auto; width: 25%; padding: 9px 0 3px; border: 0; background: none; color: var(--soft); font: inherit; font-size: 11px; font-weight: 600; line-height: 14px; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.stop:first-child { text-align: left; }
.stop:last-child { text-align: right; }
.stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 8px; }
/* the stop's mark on the line: a short upright bar, not a dot */
.stop::before { content: ""; position: absolute; top: -11px; left: 50%; width: 4px; height: 14px; margin-left: -2px; border-radius: 99px; background: #ffffff; box-shadow: 0 0 0 2px rgba(17, 26, 21, 0.28); transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.stop:first-child::before { left: 2px; margin-left: 0; }
.stop:last-child::before { left: auto; right: 2px; margin-left: 0; }
.stop[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.stop[aria-checked="true"]::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.stop.is-peek { color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .stop:hover { color: var(--ink); }
}
