:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;

  /* iOS light palette */
  --blue: #0A84FF;
  --ios-blue: #007AFF;
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  --label: #000;
  --label2: rgba(60, 60, 67, .6);
  --label3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .18);
  --fill: rgba(120, 120, 128, .16);
  --fill2: rgba(120, 120, 128, .08);
  --bg: #fff;
  --bg-grouped: #F2F2F7;
  --bubble-in: #E9E9EB;

  /* stage (always dark: it's a presentation canvas) */
  --stage-bg: #0b0b10;
  --stage-ink: #f5f5f7;
  --stage-ink2: rgba(245, 245, 247, .62);
  --stage-line: rgba(255, 255, 255, .1);

  /* motion: pre-computed spring samples */
  --spring: cubic-bezier(.2, 1.2, .3, 1);
  --spring-soft: cubic-bezier(.25, 1, .3, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --d-fast: .22s;
  --d: .45s;
  --d-slow: .7s;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
    --spring-soft: linear(0, 0.05 3%, 0.2 8%, 0.43 14%, 0.67 21%, 0.85 29%, 0.95 37%, 1.005 46%, 1.025 55%, 1.02 64%, 1.008 76%, 1);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--stage-bg);
  color: var(--stage-ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
.ic { width: 1em; height: 1em; display: inline-block; flex: none; }
[hidden] { display: none !important; }

/* avatars */
.av {
  --s: 28px;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  display: inline-grid; place-items: center;
  flex: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c));
  color: #fff;
  font: 600 calc(var(--s) * .44) / 1 var(--font-round);
  box-shadow: 0 0 0 calc(var(--s) * .06) rgba(255, 255, 255, .9);
  transition: opacity var(--d) var(--ease-out), filter var(--d) var(--ease-out), transform var(--d) var(--spring);
}

/* replay without animation */
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  :root { --spring: ease; --spring-soft: ease; }
  *, *::before, *::after { animation-duration: .01s !important; }
  .tap { display: none; }
}
