:root {
  --paper: #ffffff;
  --ink: #0b0c0e;
  --on-ink: #f4f3ef;
  --accent: #2f6bff;
  --hush: #8d8d89;
  --tick: #d9d9d5;
}
* { 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;
}
.trial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.2vmin, 16px);
}
.trial__button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 999px;
}
.trial__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the pill: GSAP moves this element, the CSS shadow stays on it */
.trial__body {
  display: flex;
  align-items: center;
  height: clamp(52px, 9vmin, 62px);
  padding: 0 clamp(24px, 4vmin, 32px);
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 12px 26px -16px rgba(11,12,14,.6), 0 2px 4px -2px rgba(11,12,14,.3);
  will-change: transform;
}
.trial__label {
  position: relative;
  display: grid;
  height: 1.2em;
  clip-path: inset(0 -24px);
  font-size: clamp(16px, 2.7vmin, 19px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.trial__word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  width: max-content;
  font-variation-settings: 'wght' 560, 'wdth' 100;
  will-change: transform;
}
/* the line under the pill: the note and the ticks share the same slot */
.trial__meta {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(18px, 3vmin, 22px);
}
.trial__note {
  grid-area: 1 / 1;
  white-space: nowrap;
  font-size: clamp(12px, 2vmin, 13.5px);
  letter-spacing: 0.01em;
  color: var(--hush);
  font-variation-settings: 'wght' 460, 'wdth' 100;
}
.trial__ticks {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(5px, 1vmin, 7px);
  height: 100%;
}
.trial__tick {
  display: block;
  width: 1.5px;
  height: 62%;
  border-radius: 1px;
  background: var(--tick);
  transform-origin: 50% 100%;
}
