:root {
  --bg: #000000;
  --pill: #1b1c21;
  --ink: #f4f4f6;
  --soft: rgba(244, 244, 246, 0.55);
  --accent: #ff3b30;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 14px;
}

/* --disc and --word are tweened by the script when the pill floods red */
.sos { --disc: var(--accent); --word: #ffffff; position: relative; display: flex; align-items: center; gap: 12px; width: min(252px, 100%); height: 60px; padding: 0 8px; border: 0; border-radius: 30px; background: var(--pill); color: var(--ink); font: inherit; cursor: pointer; outline: none; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px rgba(244, 244, 246, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.sos:focus-visible { box-shadow: 0 0 0 2px #000000, 0 0 0 4px var(--ink); }
.sos__roll { display: block; overflow: hidden; }
.sos__roll > span { display: block; white-space: nowrap; }

.sos__fill { position: absolute; left: 30px; top: 30px; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: var(--accent); transform: scale(0); pointer-events: none; }

.sos__disc { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--disc); color: var(--word); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
.sos__disc b { position: relative; font-size: 12.500px; font-weight: 820; font-stretch: 92%; letter-spacing: 0.04em; }
.sos__disc svg { position: absolute; inset: -4px; width: 52px; height: 52px; fill: none; overflow: visible; }
.sos__track { stroke: rgba(244, 244, 246, 0.12); stroke-width: 2.500; opacity: 0; }
.sos__ring { stroke: var(--ink); stroke-width: 2.500; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }

.sos__label { position: relative; flex: 1 1 auto; min-width: 0; height: 22px; line-height: 22px; font-size: 16px; font-weight: 720; font-stretch: 104%; letter-spacing: -0.005em; text-align: left; }

.sos__right { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.sos__right > * { grid-area: 1 / 1; opacity: 0; }
.sos__digit { height: 30px; line-height: 30px; font-size: 26px; font-weight: 780; font-stretch: 96%; }
.sos__phone { width: 28px; height: 28px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.sos__handset { fill: currentColor; stroke: none; }
.sos__wave { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sos__timer { font-size: 14px; font-weight: 720; white-space: nowrap; }

.sos__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101216; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 5; }
