:root {
  --bg: #eef0f4;
  --card: #ffffff;
  --ink: #17181d;
  --soft: rgba(23, 24, 29, 0.56);
  --faint: rgba(23, 24, 29, 0.32);
  --line: rgba(23, 24, 29, 0.09);
  --accent: #3565f6;
  --warn: #e8890c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), 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: 10px 14px;
}

.lo { position: relative; width: min(312px, 100%); padding: 15px 16px 9px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 0 #ffffff inset, 0 30px 50px -34px rgba(23, 24, 29, 0.5), 0 8px 16px -12px rgba(23, 24, 29, 0.2); }

.lo__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lo__head h1 { font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.lo__sub { font-size: 12px; line-height: 16px; font-weight: 560; color: var(--soft); }
.lo__clock { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.lo__clock b { font-size: 26px; line-height: 28px; font-weight: 740; font-stretch: 92%; letter-spacing: -0.03em; }
.lo__clock i { font-style: normal; font-size: 11.500px; font-weight: 640; color: var(--accent); min-width: 1.300em; }

/* the route: two legs and, between them, the dashed stretch of the stop; the plane rides on it */
.lo__route { position: relative; margin: 8px -6px 0; border-radius: 14px; outline: none; cursor: ew-resize; touch-action: none; -webkit-tap-highlight-color: transparent; }
.lo__route:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.lo__route svg { display: block; width: 100%; height: auto; overflow: visible; }
.lo__rail { fill: none; stroke: #dcdfe7; stroke-width: 3; stroke-linecap: round; }
.lo__rail--stop { stroke: color-mix(in srgb, var(--warn) 60%, #ffffff); stroke-dasharray: 0.100 6; }
.lo__done { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.lo__tick { fill: none; stroke: var(--ink); stroke-width: 1.600; stroke-linecap: round; }
.lo__plane { fill: var(--accent); stroke: #ffffff; stroke-width: 1.500; stroke-linejoin: round; paint-order: stroke; }
.lo__route text { font-family: inherit; font-size: 10.500px; font-weight: 680; fill: var(--soft); letter-spacing: 0.02em; }

.lo__now { height: 17px; overflow: hidden; font-size: 12.500px; line-height: 17px; font-weight: 600; color: var(--soft); text-align: center; white-space: nowrap; }
.lo__now span { display: block; }

.lo__legs { list-style: none; margin-top: 9px; }
.lo__leg { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; align-items: center; gap: 10px; height: 34px; padding: 0 9px; margin: 0 -9px; border-radius: 11px; font-size: 12.500px; transition: background-color 0.3s ease; }
.lo__leg b { font-weight: 660; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.lo__leg span { font-weight: 560; color: var(--soft); white-space: nowrap; }
.lo__leg i { font-style: normal; font-weight: 640; text-align: right; white-space: nowrap; }
.lo__leg.is-now { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.lo__leg--stop.is-now { background: color-mix(in srgb, var(--warn) 11%, transparent); }
.lo__leg em { font-style: normal; display: inline-block; padding: 2px 7px; border-radius: 7px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: color-mix(in srgb, var(--warn) 80%, #000000); font-size: 10.500px; font-weight: 720; letter-spacing: 0.01em; }
/* how much of the stop the walk between the two gates takes */
.lo__walk { position: relative; width: 64px; height: 5px; border-radius: 3px; background: #e7e9ef; overflow: hidden; }
.lo__walk u { position: absolute; inset: 0; border-radius: 3px; background: var(--warn); transform: scaleX(0); transform-origin: 0 50%; }

.lo__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17181d; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(23, 24, 29, 0.3)); z-index: 5; }
