:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #17181d;
  --soft: rgba(23, 24, 29, 0.58);
  --line: rgba(23, 24, 29, 0.09);
  --accent: #f2872e;
  --low: #ec4136;
  --tone: var(--accent);
}

*, *::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;
}

.st { position: relative; width: min(284px, 100%); padding: 22px 20px 12px; border-radius: 26px; background: linear-gradient(180deg, #ffffff, #fbfbfc); text-align: center; box-shadow: 0 0 0 1px var(--line), 0 1px 0 #ffffff inset, 0 34px 54px -32px rgba(23, 24, 29, 0.45), 0 10px 18px -12px rgba(23, 24, 29, 0.18); }
.st.is-low { --tone: var(--low); }
.st.is-out { --tone: var(--ink); }

/* the dial: a soft disc tinted by the state, the ring that drains and the seconds in the middle */
.st__dial { position: relative; width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 9%, #ffffff); transition: background-color 0.5s ease; }
.st__ring { position: absolute; inset: 2px; width: 64px; height: 64px; fill: none; stroke-width: 3.500; stroke-linecap: round; }
.st__track { stroke: color-mix(in srgb, var(--tone) 16%, transparent); transition: stroke 0.5s ease; }
.st__arc { stroke: var(--tone); stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke 0.5s ease, opacity 0.3s ease; }
.st.is-out .st__arc { opacity: 0; }
.st__num { grid-area: 1 / 1; height: 30px; overflow: hidden; font-size: 26px; line-height: 30px; font-weight: 740; font-stretch: 94%; letter-spacing: -0.02em; color: var(--tone); transition: color 0.5s ease; }
.st__num span { display: block; }
.st__lock { grid-area: 1 / 1; width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; opacity: 0; overflow: visible; }

.st__title { height: 24px; margin-top: 14px; overflow: hidden; font-size: 18px; line-height: 24px; font-weight: 720; letter-spacing: -0.015em; }
.st__text { min-height: 38px; margin-top: 4px; font-size: 13.500px; line-height: 19px; font-weight: 520; color: var(--soft); text-wrap: balance; }
.st__title span, .st__text span { display: block; }

.st__keys { display: grid; gap: 2px; margin-top: 16px; }
.st__btn { height: 44px; border: 0; border-radius: 15px; background: linear-gradient(180deg, #2a2c34, var(--ink)); color: #ffffff; font: inherit; font-size: 14.500px; font-weight: 680; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 20px -14px rgba(23, 24, 29, 0.8); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.st__btntext { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.st__btntext span { display: block; }
.st__link { height: 36px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: inherit; font-size: 13px; font-weight: 620; cursor: pointer; outline: none; transition: color 0.2s ease, background-color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.st__btn:focus-visible, .st__link:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
@media (hover: hover) { .st__link:hover { color: var(--ink); background: rgba(23, 24, 29, 0.05); } }

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

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17181d; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(23, 24, 29, 0.3)); z-index: 5; }
