:root {
  --night: #000000;
  --pill: #f4f3ef;
  --ink: #0b0c0e;
  --accent: #ffb020;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--night);
  color: var(--pill);
  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;
}
.full {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 999px;
}
.full:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
/* a thin line in the accent colour: it leaves the pill like a screen growing, and comes back into it on exit */
.full__halo {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
/* the pill: GSAP moves this element, the CSS shadow stays on it */
.full__body {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vmin, 12px);
  height: clamp(52px, 9vmin, 64px);
  padding: 0 clamp(22px, 3.6vmin, 30px) 0 clamp(15px, 2.4vmin, 20px);
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 -1px 0 rgba(0,0,0,.08) inset, 0 14px 30px -18px rgba(255,255,255,.28);
  will-change: transform;
}
.full__icon {
  width: clamp(28px, 4.8vmin, 34px);
  height: clamp(28px, 4.8vmin, 34px);
  overflow: visible;
  flex: none;
}
.full__corner {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.full__label {
  position: relative;
  display: grid;
  height: 1.2em;
  /* clipped only above and below: the word may open a hair wider than its slot while it settles */
  clip-path: inset(0 -24px);
  font-size: clamp(17px, 2.8vmin, 20px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.full__word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  width: max-content;
  font-variation-settings: 'wght' 560, 'wdth' 100;
  will-change: transform;
}
