:root {
  color-scheme: light;
  --red: #ff3b30;
  --beat: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.placeholder {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.word-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.record-dot {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(108px, 14vmin, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 calc(13px + var(--beat) * 8px) rgba(255, 59, 48, 0.18);
  transform: translate(-50%, -50%) scale(calc(1 + var(--beat) * 0.11));
  transition:
    box-shadow 70ms linear,
    transform 70ms linear;
}

.record-dot::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(10px);
}

.audio-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.08);
  cursor: pointer;
}

.audio-toggle[aria-pressed="true"] {
  background: var(--red);
}

@media (max-width: 720px) {
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
