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

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

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

.lyr__hint {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

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

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

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

.lyr__play:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

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

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

.lyr__ico--pause {
  display: none;
}

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

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

.lyr__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}

.lyr__viewport:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: -2px;
}

.lyr__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lyr__line {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.5);
  cursor: pointer;
}

.lyr__line.is-active {
  color: #0a4fe8;
  font-size: 15px;
}

@media (max-width: 340px) {
  .lyr__panel {
    padding: 4px;
    gap: 4px;
  }
  .lyr__play {
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lyr__play {
    transition: none;
  }
}
