:root {
  --bg: #eef0f8;
  --card: #ffffff;
  --ink: #14162b;
  --soft: #6b7089;
  --accent: #5a57f2;
  --accent-2: #9f7bff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #f7f8fd, 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: 12px;
}

.card {
  position: relative;
  width: min(400px, 100%);
  padding: 20px 20px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  box-shadow:
    inset 0 0 0 1px rgba(20, 22, 43, 0.06),
    0 1px 2px rgba(20, 22, 43, 0.05),
    0 18px 36px -18px rgba(60, 60, 140, 0.28),
    0 44px 80px -44px rgba(60, 60, 140, 0.36);
  overflow: hidden;
  isolation: isolate;
}
.card__halo {
  position: absolute;
  left: -80px;
  top: -140px;
  width: 340px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent);
  opacity: 0.3;
  z-index: -1;
}

.head__brand { font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.head__title { margin-top: 2px; font-size: 20px; line-height: 25px; font-weight: 680; font-stretch: 106%; letter-spacing: -0.015em; }

/* ---- the rail: the line, the chip with the day, the three moments ---- */
.rail { position: relative; height: 122px; margin: 0 22px; }
.rail__line { position: absolute; left: 0; right: 0; top: 66px; height: 4px; border-radius: 4px; background: rgba(20, 22, 43, 0.08); }
.rail__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }
/* a soft light at the head of the line */
.rail__glow { position: absolute; left: -22px; top: -8px; width: 44px; height: 20px; border-radius: 20px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 80%, transparent), transparent); opacity: 0; }
.chip { position: absolute; left: 0; top: 14px; width: 0; height: 0; pointer-events: none; z-index: 2; }
.chip__in {
  position: absolute;
  left: -34px;
  top: 0;
  width: 68px;
  height: 26px;
  border-radius: 99px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  line-height: 26px;
  font-weight: 620;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(20, 22, 43, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.chip__in::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); z-index: -1; }
.chip b { font-weight: 720; }

.stop {
  position: absolute;
  left: calc(var(--at) * 100%);
  top: 46px;
  width: 64px;
  margin-left: -32px;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.stop__tile {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(20, 22, 43, 0.12), 0 4px 10px -4px rgba(20, 22, 43, 0.2);
  display: grid;
  place-items: center;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.stop__tile svg { width: 22px; height: 22px; }
.stop__tile rect, .stop__tile path { fill: none; stroke: var(--soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s ease; }
.stop__name { font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; transition: color 0.4s ease; }
.stop.is-on .stop__tile {
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.stop.is-on .stop__tile rect, .stop.is-on .stop__tile path { stroke: #ffffff; }
.stop.is-on .stop__name { color: var(--ink); }
.stop.is-hot .stop__tile { box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 10px -4px rgba(20, 22, 43, 0.2); }
@media (hover: hover) { .stop:not(.is-on):hover .stop__tile { box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 10px -4px rgba(20, 22, 43, 0.2); } }

/* ---- what happens at the moment the day has reached ---- */
.say { padding-top: 12px; border-top: 1px solid rgba(20, 22, 43, 0.07); }
.say__title { height: 22px; overflow: hidden; font-size: 15.5px; line-height: 22px; font-weight: 660; }
.say__text { height: 38px; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--soft); }
.say span { display: block; }

.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 (max-width: 360px) {
  .card { padding: 16px 14px 14px; }
  .head__title { font-size: 18px; }
  .stop { width: 52px; margin-left: -26px; }
  .stop__tile { width: 40px; height: 40px; border-radius: 13px; }
}
@media (min-width: 900px) and (min-height: 680px) {
  .card { zoom: 1.5; }
}
