:root {
  --bg: #0b0b0d;
  --card: #151518;
  --ink: #f4f3f0;
  --soft: rgba(244, 243, 240, 0.56);
  --line: rgba(244, 243, 240, 0.1);
  --ts: #5aa2ff;
  --py: #f2c44d;
  --go: #4fd6c8;
  --rs: #f08a5d;
  --css: #b79cff;
}

*, *::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 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(348px, 100%); padding: 16px 16px 10px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -28px rgba(0, 0, 0, 0.9); }
.lg__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-left: 2px; }
.lg__head strong { font-size: 16px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.lg__years { position: relative; display: grid; grid-template-columns: repeat(3, 46px); height: 30px; padding: 3px; border-radius: 15px; background: rgba(244, 243, 240, 0.07); }
.lg__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 46px; border-radius: 12px; background: rgba(244, 243, 240, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.lg__year { position: relative; height: 24px; border-radius: 12px; font-size: 12px; line-height: 24px; font-weight: 680; color: var(--soft); text-align: center; font-variant-numeric: tabular-nums; transition: color 0.25s; }
.lg__year[aria-pressed="true"] { color: var(--ink); }
.lg__year:focus-visible { box-shadow: inset 0 0 0 1.500px var(--ink); }

.lg__hero { display: flex; align-items: center; gap: 12px; height: 44px; padding-left: 2px; }
.lg__num { display: block; flex: none; min-width: 108px; font-size: 40px; line-height: 44px; font-weight: 760; font-stretch: 92%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg__num span { display: inline-block; }
.lg__num i { font-style: normal; font-size: 22px; font-weight: 700; color: var(--soft); margin-left: 2px; }
.lg__what { display: grid; gap: 2px; min-width: 0; }
.lg__clip { display: block; overflow: hidden; white-space: nowrap; }
.lg__clip span { display: block; }
.lg__what b { height: 19px; font-size: 15px; line-height: 19px; font-weight: 720; color: var(--tone, var(--ts)); transition: color 0.3s; }
.lg__sub { height: 15px; font-size: 12px; line-height: 15px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }

.lg__bar { display: block; width: 100%; height: 20px; overflow: visible; }
.lg__bar .hit { fill: transparent; cursor: pointer; }

.lg__rows { position: relative; height: 130px; }
.lg__row { position: absolute; left: 0; top: 0; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 26px; padding: 0 8px; border-radius: 9px; font-size: 13px; text-align: left; transition: opacity 0.3s, background-color 0.3s; }
.lg__row b { font-weight: 700; color: var(--tone); }
.lg__row span { font-weight: 640; font-variant-numeric: tabular-nums; }
.lg[data-on] .lg__row { opacity: 0.5; }
.lg[data-on] .lg__row.is-on { opacity: 1; background: rgba(244, 243, 240, 0.07); }
.lg__row:focus-visible { box-shadow: inset 0 0 0 1.500px var(--ink); }

.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: #f4f3f0; stroke: #0b0b0d; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 6; }

@media (max-width: 350px) { .lg { padding: 14px 13px 8px; } .lg__num { font-size: 36px; min-width: 98px; } .lg__hero { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .lg__year, .lg__row, .lg__what b { transition: none; } }
