:root {
  --bg: #000000;
  --pill: #16171a;
  --tile: #25272c;
  --ink: #f4f5f2;
  --soft: rgba(244, 245, 242, 0.58);
  --line: rgba(244, 245, 242, 0.12);
  --accent: #c8f04f;
}

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

.hb { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 64px; max-width: 100%; padding: 0 10px 0 8px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #1c1d21, var(--pill)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 30px -18px rgba(0, 0, 0, 0.9); transition: box-shadow 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hb[aria-pressed="true"] { box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 34px -18px color-mix(in srgb, var(--accent) 45%, #000000); }
.hb:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.hb__tile { flex: none; display: block; width: 48px; height: 48px; border-radius: 16px; background: var(--tile); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07); transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }
.hb__tile svg { display: block; width: 26px; height: 26px; margin: 11px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.hb[aria-pressed="true"] .hb__tile { background: var(--accent); color: #1a2204; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
@media (hover: hover) { .hb[aria-pressed="false"]:hover .hb__tile svg { transform: rotate(-12deg) scale(1.06); } .hb[aria-pressed="false"]:hover .hb__chip { background: #ffffff; } }

.hb__text { min-width: 0; display: grid; padding-right: 4px; }
.hb__text b { font-size: 16px; line-height: 21px; font-weight: 720; font-stretch: 106%; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb__sub { font-size: 12px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb__sub span { display: inline-block; }

.hb__chip { flex: none; display: block; height: 36px; padding: 0 15px; border-radius: 13px; background: var(--ink); color: #101112; font-size: 13.500px; line-height: 36px; font-weight: 720; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }
.hb[aria-pressed="true"] .hb__chip { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 45%, transparent); }
.hb__roll { display: block; height: 36px; overflow: hidden; }
.hb__roll span { display: block; white-space: nowrap; }

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