:root {
  --bg: #090b10;
  --card: #131722;
  --ink: #f2f5fa;
  --soft: rgba(242, 245, 250, 0.58);
  --line: rgba(242, 245, 250, 0.1);
  --accent: #7cc4ff;
  --old: #aebbd0;
}

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

.sn { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(348px, 100%); padding: 18px 16px 14px; 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); }
.sn__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.sn__head strong { font-size: 16px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.sn__alt { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 660; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sn__alt span { display: block; }

.sn__seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 38px; padding: 3px; border-radius: 13px; background: rgba(242, 245, 250, 0.07); }
.sn__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 10px; background: rgba(242, 245, 250, 0.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.sn__opt { position: relative; display: grid; place-items: center; height: 32px; border-radius: 10px; font-size: 12.500px; font-weight: 680; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.sn__opt[aria-pressed="true"] { color: var(--ink); }
.sn__opt:focus-visible { box-shadow: inset 0 0 0 1.500px var(--ink); }

.sn__main { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.sn__gauge { display: block; width: 116px; height: 145px; overflow: visible; }
.sn__gauge .old { fill: var(--old); }
.sn__gauge .new { fill: #ffffff; transition: fill 0.3s; }
.sn[data-on="fresh"] .sn__gauge .new { fill: var(--accent); }
.sn__gauge .ground { stroke: rgba(242, 245, 250, 0.3); stroke-width: 1.500; stroke-linecap: round; }
.sn__gauge .stake { stroke: #ff7a59; stroke-width: 3; stroke-linecap: round; }
.sn__gauge .marks line { stroke: #ff7a59; stroke-width: 1.500; stroke-linecap: round; }
.sn__gauge .marks text { font-size: 8.500px; font-weight: 680; fill: var(--soft); paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; }

.sn__side { display: grid; align-content: space-between; gap: 8px; min-width: 0; }
.sn__depth { display: grid; gap: 0; }
.sn__depth b { font-size: 44px; line-height: 46px; font-weight: 760; font-stretch: 92%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn__depth i { font-style: normal; font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--soft); margin-left: 4px; }
.sn__depth > span { font-size: 12px; line-height: 15px; font-weight: 640; color: var(--soft); }
.sn__stats { display: grid; list-style: none; }
.sn__stat { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; height: 27px; padding: 0 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 8px; font-size: 12.500px; text-align: left; white-space: nowrap; transition: background-color 0.25s; }
.sn__stat span { font-weight: 620; color: var(--soft); }
.sn__stat b { font-weight: 720; font-variant-numeric: tabular-nums; transition: color 0.25s; }
.sn__stat b span { font-weight: inherit; color: inherit; }
.sn[data-on="fresh"] .sn__stat[data-fresh] { background: rgba(124, 196, 255, 0.13); }
.sn[data-on="fresh"] .sn__stat[data-fresh] b { color: var(--accent); }
.sn__stat: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: #f2f5fa; stroke: #090b10; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 6; }

@media (hover: hover) { .sn__opt:hover { color: var(--ink); } }
@media (max-width: 350px) { .sn { padding: 16px 13px 12px; } .sn__main { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; } .sn__gauge { width: 104px; height: 130px; } .sn__depth b { font-size: 38px; line-height: 40px; } .sn__stat { font-size: 12px; height: 25px; } }
@media (prefers-reduced-motion: reduce) { .sn__opt, .sn__stat, .sn__stat b, .sn__gauge .new { transition: none; } }
