:root {
  --bg: #06080b;
  --card: #0e1217;
  --ink: #eef2f0;
  --soft: rgba(238, 242, 240, 0.5);
  --line: rgba(238, 242, 240, 0.09);
  --accent: #c8f24a;
}

*, *::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: 10px 16px;
}

.st {
  width: min(336px, 100%);
  padding: 14px 15px 11px;
  border-radius: 28px;
  background: linear-gradient(180deg, #151a21 0%, var(--card) 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px -30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.st__head { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.st__title { font-size: 15px; font-weight: 680; font-stretch: 108%; letter-spacing: -0.008em; }
.st__when { height: 22px; padding: 0 9px; border-radius: 11px; overflow: hidden; background: rgba(238, 242, 240, 0.07); font-size: 11.5px; line-height: 22px; font-weight: 620; color: var(--soft); }
.st__when span { display: block; white-space: nowrap; }

.st__read { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.st__num { height: clamp(42px, 12.500vh, 52px); font-size: clamp(36px, 11vh, 46px); line-height: clamp(42px, 12.500vh, 52px); font-weight: 400; letter-spacing: -0.035em; font-variation-settings: "wght" var(--w, 640), "wdth" 96; color: var(--accent); }
.st__goal { font-size: 12.5px; font-weight: 560; color: var(--soft); white-space: nowrap; }

/* the road to the goal: what has been walked is lit, the rest is a dashed lane */
.st__road { display: block; width: 100%; height: auto; max-height: 20vh; margin-top: clamp(0px, 1vh, 4px); overflow: visible; }
.road__bed { fill: none; stroke: rgba(238, 242, 240, 0.16); stroke-width: 2.400; stroke-linecap: round; stroke-dasharray: 1 6; }
.road__done { fill: none; stroke: var(--accent); stroke-width: 2.400; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.flag__pole { stroke: rgba(238, 242, 240, 0.4); stroke-width: 1.200; stroke-linecap: round; transition: stroke 0.3s ease; }
.flag__text { font-family: inherit; font-size: 8.500px; font-weight: 660; fill: var(--soft); text-anchor: middle; transition: fill 0.3s ease; }
.flag.is-passed .flag__pole { stroke: var(--accent); }
.flag.is-passed .flag__text { fill: var(--ink); }
.walk__halo { fill: var(--accent); opacity: 0.2; }
.walk__core { fill: var(--card); stroke: var(--accent); stroke-width: 2.600; }

/* the hours of the day: one bar each, as tall as the steps of that hour */
.st__hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 3px; height: clamp(30px, 9vh, 40px); margin-top: clamp(4px, 1.500vh, 8px); cursor: crosshair; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.st__hours i { display: block; min-height: 3px; border-radius: 2.500px; background: rgba(238, 242, 240, 0.2); transform-origin: 50% 100%; transition: background-color 0.25s ease; }
.st__hours i.is-in { background: var(--accent); }
.st__hours i.is-later { background: rgba(238, 242, 240, 0.07); }
.st__foot { height: 17px; margin-top: 8px; overflow: hidden; font-size: 12px; line-height: 17px; font-weight: 560; color: var(--soft); }
.st__foot span { display: block; white-space: nowrap; }

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

/* larger in a roomy window, so the preview is not a small card in a big page */
@media (min-width: 700px) and (min-height: 500px) { .st { zoom: 1.5; } .ghost { width: 28px; height: 28px; } }
@media (min-width: 1100px) and (min-height: 760px) { .st { zoom: 2.1; } .ghost { width: 34px; height: 34px; } }
