/* Spin's dial component (see spin-dial.js). Colours and shapes follow the app. */
.dial {
  --d-ink: #1B2A4E; --d-water: #3D8BFF; --d-linen: #F5F0E7; --d-mute: #7C8499;
  font-family: ui-rounded, 'SF Pro Rounded', 'General Sans', system-ui, sans-serif;
  background: #fff; color: var(--d-ink);
  border-radius: 34px; padding: 28px 24px 22px;
  width: min(360px, 100%);
  text-align: center;
  box-shadow: 0 0 0 10px var(--d-linen), 0 50px 110px -40px rgba(61, 139, 255, .55);
}
.dial__face { position: relative; width: min(230px, 72%); aspect-ratio: 1; margin: 0 auto 18px; }
.dial__face canvas { width: 100%; height: 100%; display: block; }
.dial__read { position: absolute; inset: 0; display: grid; place-content: center; color: #fff; pointer-events: none; line-height: 1; }
.dial__big { font-size: clamp(34px, 11cqw, 46px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.dial__small { font-size: 14px; opacity: .8; margin-top: 4px; min-height: 14px; }
.dial__state { margin: 0; font-size: 21px; font-weight: 700; }
.dial__sub { margin: 4px 0 18px; font-size: 15px; color: var(--d-mute); }
.dial__btn {
  width: 100%; height: 54px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--d-water); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 0 #2B66CF;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.dial__btn:hover { background: #4A94FF; }
.dial__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #2B66CF; }
.dial__btn:focus-visible { outline: 3px solid #9CC3FF; outline-offset: 3px; }
.dial[data-mode="run"] .dial__btn { background: #E9EBF0; color: var(--d-ink); box-shadow: 0 4px 0 #CDD1DB; }
.dial[data-mode="run"] .dial__btn:active { box-shadow: 0 1px 0 #CDD1DB; }
.dial__note { margin: 14px 0 0; font-size: 12.5px; color: var(--d-mute); font-family: 'General Sans', system-ui, sans-serif; }
@media (prefers-reduced-motion: reduce) { .dial__btn { transition: none; } }
