:root {
  --bg: #0a0a0c;
  --card: #141417;
  --ink: #f4f2ee;
  --soft: rgba(244, 242, 238, 0.54);
  --line: rgba(244, 242, 238, 0.1);
  --accent: #35d0ba;
}

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

.fg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(340px, 100%); padding: 16px 16px 12px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, #ffffff), var(--card) 40%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 40px 60px -36px rgba(0, 0, 0, 0.9), 0 30px 70px -44px color-mix(in srgb, var(--accent) 60%, transparent); }
.fg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fg__head strong { font-size: 15.500px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.fg__head span { font-size: 12px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.fg__dial { position: relative; display: grid; justify-items: center; }
.fg__dial svg { display: block; width: min(100%, 264px, 46vh); height: auto; overflow: visible; }
.fg__track { fill: none; stroke: rgba(244, 242, 238, 0.1); stroke-width: 10; stroke-linecap: round; }
.fg__fill { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.fg__ticks line { stroke: rgba(244, 242, 238, 0.34); stroke-width: 1.200; stroke-linecap: round; }
.fg__ticks text { fill: var(--soft); font-size: 9px; font-weight: 660; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.fg__needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fg__hub { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.fg__read { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: -4px; }
.fg__read strong { font-size: 34px; line-height: 38px; font-weight: 760; font-stretch: 90%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fg__read span { font-size: 12px; font-weight: 640; color: var(--soft); }

.fg__tabs { position: relative; display: grid; grid-template-columns: 1.25fr 0.8fr 1fr 1.15fr; height: 34px; padding: 3px; border-radius: 17px; background: rgba(0, 0, 0, 0.36); box-shadow: inset 0 0 0 1px var(--line); }
.fg__tabs button { position: relative; z-index: 1; height: 28px; border-radius: 14px; font-size: 11.500px; font-weight: 700; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.fg__tabs button[aria-selected="true"] { color: var(--ink); }
.fg__tabs button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.fg__pill { position: absolute; left: 0; top: 3px; width: 80px; height: 28px; border-radius: 14px; background: rgba(244, 242, 238, 0.13); box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14); }

.fg__foot { height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 640; color: var(--soft); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fg__foot span { display: block; }

.live { 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; pointer-events: none; opacity: 0; fill: #f4f2ee; stroke: #0a0a0c; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }

@media (max-height: 380px) { .fg { gap: 7px; padding-top: 12px; } .fg__read strong { font-size: 28px; line-height: 32px; } }
@media (prefers-reduced-motion: reduce) { .fg__tabs button { transition: none; } }
