:root {
  --bg: #000000;
  --pill: #15161b;
  --tile: #23252d;
  --ink: #f4f5f8;
  --soft: rgba(244, 245, 248, 0.55);
  --line: rgba(244, 245, 248, 0.09);
  --accent: #34d67c;
}

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

.hs { position: relative; width: min(298px, 100%); }
.hs__btn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 64px; padding: 0 14px 0 12px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #1b1d23, 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.07), 0 20px 34px -22px color-mix(in srgb, var(--accent) 0%, #000000); transition: box-shadow 0.5s ease; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.hs__btn.is-on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, var(--line)), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 34px -22px color-mix(in srgb, var(--accent) 70%, #000000); }
.hs__btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* the tile: dark while off, it takes the accent when the hotspot is on */
.hs__tile { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--tile); color: var(--soft); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: background-color 0.4s ease, color 0.4s ease; }
.hs__btn.is-on .hs__tile { background: var(--accent); color: #04180d; }
.hs__tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; }
.hs__dot { fill: currentColor; stroke: none; }
.hs__tile path { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.45; }

.hs__text { flex: 1 1 auto; min-width: 0; display: grid; }
.hs__label { font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.hs__sub { height: 17px; overflow: hidden; font-size: 12.500px; line-height: 17px; font-weight: 560; color: var(--soft); white-space: nowrap; transition: color 0.4s ease; }
.hs__btn.is-on .hs__sub { color: var(--accent); }
.hs__sub span { display: block; }

/* the devices that joined: small tiles that overlap like a stack of avatars */
.hs__stack { flex: none; display: flex; flex-direction: row-reverse; padding-left: 7px; }
.hs__dev { width: 28px; height: 28px; margin-left: -7px; border-radius: 10px; display: grid; place-items: center; background: #262931; box-shadow: 0 0 0 2px var(--pill), inset 0 1px 0 rgba(255, 255, 255, 0.1); opacity: 0; transform: scale(0.4); }
.hs__dev svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.300; stroke-linecap: round; stroke-linejoin: round; }

.hs__say { 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; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f4f5f8; stroke: #101114; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)); z-index: 5; }
