:root {
  --paper: #ffffff;
  --ink: #0b0c0e;
  --muted: #6b6a66;
  --hair: #e4e2dc;
  --chip: #f3f2ee;
  --accent: #1f7a57;
  --on-fill: #f7f6f2;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}
/* the pill: GSAP moves this element; the hairline and the shadow stay on it */
.fb {
  position: relative;
  display: grid;
  align-items: center;
  max-width: calc(100vw - 32px);
  height: clamp(50px, 8.6vmin, 58px);
  padding: 0 clamp(6px, 1vmin, 8px) 0 clamp(16px, 2.6vmin, 22px);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 10px 26px -18px rgba(11,12,14,.45), 0 2px 5px -3px rgba(11,12,14,.18);
  overflow: hidden;
  font-size: clamp(14px, 2.3vmin, 16px);
  will-change: transform;
}
.fb__fill {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.fb__ask, .fb__done { grid-area: 1 / 1; position: relative; z-index: 1; }
.fb__ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vmin, 18px);
  white-space: nowrap;
}
.fb__q {
  color: var(--ink);
  font-variation-settings: 'wght' 470, 'wdth' 100;
  letter-spacing: -0.005em;
}
.fb__chips { display: flex; gap: 6px; }
.fb__chip {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  background: var(--chip);
  height: clamp(36px, 6.2vmin, 42px);
  min-width: clamp(50px, 8.4vmin, 58px);
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(11,12,14,.05);
  will-change: transform;
}
.fb__chip:focus-visible, .fb__undo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fb__chipword {
  display: inline-block;
  font-variation-settings: 'wght' 560, 'wdth' 100;
}
.fb__done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-right: clamp(10px, 1.6vmin, 14px);
  color: var(--on-fill);
  white-space: nowrap;
  visibility: hidden;
}
.fb__tick {
  width: 18px; height: 18px;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: var(--on-fill);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fb__thanks {
  display: inline-block;
  font-variation-settings: 'wght' 540, 'wdth' 100;
  letter-spacing: -0.005em;
}
.fb__rule {
  width: 1px; height: 16px;
  background: currentColor;
  opacity: .35;
  margin-left: 3px;
}
.fb__undo {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 6px;
  opacity: .78;
  font-variation-settings: 'wght' 470, 'wdth' 100;
}
.fb__live {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
