:root {
  --bg: #f4f2ea;
  --card: #fffefb;
  --ink: #1b1d19;
  --soft: rgba(27, 29, 25, 0.46);
  --line: rgba(27, 29, 25, 0.1);
  --bar: rgba(27, 29, 25, 0.13);
  --accent: #2f9259;
  --name: 92px;
  --row: 23px;
}

*, *::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: 12px 14px;
}

.sc {
  width: min(352px, 100%);
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgba(27, 29, 25, 0.05),
    0 30px 60px -34px rgba(27, 29, 25, 0.35);
}
.sc__head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 2px; }
.sc__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.sc__count { font-size: 12px; font-weight: 480; color: var(--soft); }
.sc__count b { display: inline-block; font-weight: 700; color: var(--accent); }
.sc__month { grid-column: 1 / -1; height: 36px; overflow: hidden; font-size: 30px; line-height: 36px; font-weight: 340; font-stretch: 112%; letter-spacing: -0.02em; }
.sc__month span { display: block; }

.sc__chart { position: relative; margin-top: 10px; padding-top: 2px; outline: none; touch-action: pan-y; cursor: ew-resize; border-radius: 8px; }
.sc__chart:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.sc__months { display: grid; grid-template-columns: repeat(12, 1fr); margin-left: var(--name); height: 20px; border-bottom: 1px solid var(--line); }
.sc__months span { font-size: 10.500px; line-height: 16px; font-weight: 560; text-align: center; color: var(--soft); transition: color 0.3s ease, font-weight 0.3s ease; }
.sc__months span.is-on { color: var(--accent); font-weight: 760; }

.sc__rows { padding-top: 5px; }
.row { display: grid; grid-template-columns: var(--name) 1fr; align-items: center; height: var(--row); }
.row__name { font-size: 13px; font-weight: 520; color: var(--soft); white-space: nowrap; transition: color 0.35s ease; }
.row__name i { display: inline-block; font-style: normal; }
.row__line { position: relative; height: 100%; }
.row__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.row__bar { position: absolute; top: 50%; height: 6px; margin-top: -3px; padding: 0 1.500px; }
.row__bar i { display: block; height: 100%; border-radius: 99px; background: #d9d8d0; transition: background-color 0.35s ease; }
.row.is-on .row__name { color: var(--ink); font-weight: 640; }
.row.is-on .row__bar i { background: var(--accent); }

.sc__track { position: absolute; left: var(--name); right: 0; top: 0; bottom: 0; pointer-events: none; }
.sc__hair { position: absolute; top: 2px; bottom: 0; left: 0; width: 0; }
.sc__hair::before { content: ""; position: absolute; left: -0.500px; top: 18px; bottom: -4px; width: 1px; background: var(--ink); opacity: 0.55; }
.sc__cap { position: absolute; left: -11px; top: -1px; width: 22px; height: 18px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.sc__knots { position: absolute; left: 0; top: 23px; }
.sc__knots i { position: absolute; left: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--accent), 0 1px 3px rgba(27, 29, 25, 0.25); transform: scale(0); }

@media (min-width: 700px) and (min-height: 500px) { .sc { zoom: 1.3; } }
@media (min-width: 1100px) and (min-height: 760px) { .sc { zoom: 1.6; } }
