:root {
  --paper: #ffffff;
  --ink: #0b0c0e;
  --pill: #ffffff;
  --line: #e4e4df;
  --ring: #c4c4be;
  --accent: #14a05a;
  --on-accent: #ffffff;
}
* { 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;
}
.done {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 999px;
}
.done:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the pill: GSAP moves this element, the CSS keeps its hairline and shadow */
.done__body {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.5vmin, 11px);
  height: clamp(52px, 9vmin, 60px);
  padding: 0 clamp(22px, 3.6vmin, 27px) 0 clamp(16px, 2.6vmin, 19px);
  border-radius: 999px;
  background: var(--pill);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px -16px rgba(11,12,14,.32), 0 2px 4px -2px rgba(11,12,14,.12);
  will-change: transform;
}
.done__icon {
  width: clamp(24px, 4vmin, 27px);
  height: clamp(24px, 4vmin, 27px);
  overflow: visible;
  flex: none;
}
.done__ring { fill: none; stroke: var(--ring); stroke-width: 1.6; }
.done__ripple { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; }
.done__disc { fill: var(--accent); }
.done__ghost, .done__check {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.done__ghost { stroke: var(--ring); opacity: 0; }
.done__check { stroke: var(--on-accent); }
.done__label {
  display: flex;
  align-items: baseline;
  height: 1.25em;
  font-size: clamp(16px, 2.7vmin, 18px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-variation-settings: 'wght' 540, 'wdth' 100;
}
/* the words that fold away: their box shrinks to nothing, the letters inside squeeze and fade one by one */
.done__lead { display: inline-block; overflow: hidden; height: 1.25em; }
.done__lead-in { display: inline-block; white-space: pre; }
.done__lead-in span { display: inline-block; white-space: pre; will-change: transform; }
/* the d and the D swap inside a cell clipped above and below only; its width follows the letter on show */
.done__d { display: inline-grid; height: 1.25em; clip-path: inset(0 -6px); }
.done__d span { grid-area: 1 / 1; display: block; width: max-content; will-change: transform; }
