html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(400px, 92vw);
}

.viz__hint {
  margin: 0;
  color: #17141a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.viz__panel {
  width: 100%;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.06);
  box-shadow: 0 0 0 1px rgba(23, 20, 26, 0.14);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.viz__ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.viz__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viz__art {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #0a4fe8;
  box-shadow: 0 0 0 1px rgba(23, 20, 26, 0.18);
}

.viz__colorref {
  display: none;
  color: #0a4fe8;
}

.viz__play {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #17141a;
  color: #ffd23f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 300ms ease-out;
}

.viz__play:hover {
  transform: scale(1.06);
}

.viz__play:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.viz__play:active {
  transform: scale(0.96);
}

.viz__ico {
  width: 16px;
  height: 16px;
}

.viz__ico--pause {
  display: none;
}

.is-playing .viz__ico--play {
  display: none;
}

.is-playing .viz__ico--pause {
  display: block;
}

@media (max-width: 340px) {
  .viz__panel {
    padding: 4px;
    gap: 4px;
  }
  .viz__ring-wrap {
    width: 92px;
    height: 92px;
  }
  .viz__art {
    width: 42px;
    height: 42px;
  }
  .viz__play {
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .viz__play {
    transition: none;
  }
}
