:root {
  --bg: #0b0a09;
  --ink: #f2ede4;
  --soft: rgba(242, 237, 228, 0.56);
  --line: rgba(242, 237, 228, 0.1);
  --glow: #ffc98a;
}

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

.df { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; width: min(340px, 100%); }
/* the air above the diffuser: the mist is painted on the canvas, the body sits at the bottom of it */
.df__air { position: relative; width: 100%; height: min(230px, 52vh); }
.df__mist { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.df__body { position: absolute; left: 50%; bottom: 0; width: 132px; height: 78px; margin-left: -66px; overflow: visible; }
.df__floor { fill: rgba(255, 201, 138, 0.08); }
.df__band { fill: none; stroke: var(--glow); stroke-width: 1.600; stroke-linecap: round; opacity: 0.7; filter: drop-shadow(0 0 4px var(--glow)); transition: opacity 0.5s ease; }

.df__seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(264px, 100%); height: 40px; padding: 3px; border-radius: 20px; background: rgba(242, 237, 228, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.06); }
.df__thumb { position: absolute; left: 0; top: 3px; height: 34px; width: 33%; border-radius: 17px; background: var(--ink); box-shadow: 0 6px 14px -6px #000000; pointer-events: none; }
.df__opt { position: relative; display: grid; place-items: center; height: 34px; border-radius: 17px; font-size: 13px; font-weight: 640; color: var(--soft); white-space: nowrap; transition: color 0.3s ease; }
.df__opt span { display: block; }
.df__opt[aria-checked="true"] { color: #14120f; font-weight: 740; }
.df__opt:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) { .df__opt[aria-checked="false"]:hover { color: var(--ink); } }

.df__info { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; width: 100%; text-align: center; }
.df__clip { display: block; max-width: 100%; height: 17px; line-height: 17px; overflow: hidden; white-space: nowrap; font-size: 12.500px; font-weight: 580; color: var(--soft); }
.df__clip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.df__clip--tall { height: 22px; line-height: 22px; font-size: 16px; font-weight: 720; letter-spacing: -0.01em; color: 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: #f2ede4; stroke: #0b0a09; 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: 400px) { .df { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .df__band, .df__opt { transition: none; } }
