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

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

.pl {
  position: relative;
  box-sizing: border-box;
  width: min(392px, 92vw);
  margin: 0;
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  overflow: hidden;
}

.pl__screen {
  position: relative;
  height: clamp(96px, 26vw, 140px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(47, 109, 246, 0.32), rgba(255, 247, 230, 0.96));
}

.pl__stripes {
  position: absolute;
  inset: 0 -72px;
  background: repeating-linear-gradient(90deg, rgba(23, 20, 26, 0.14) 0 12px, transparent 12px 32px);
  animation-name: pl-pan;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes pl-pan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-64px);
  }
}
.pl__world {
  position: absolute;
  inset: 0;
}

.pl__sun {
  position: absolute;
  right: 18%;
  top: 14%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 210, 63, 0.95);
  box-shadow: 0 0 0 8px rgba(255, 210, 63, 0.25);
}

.pl__hill {
  position: absolute;
  bottom: -46%;
  height: 82%;
  border-radius: 50%;
}

.pl__hill--a {
  left: -14%;
  width: 72%;
  background: rgba(23, 20, 26, 0.15);
}

.pl__hill--b {
  right: -18%;
  width: 62%;
  background: rgba(23, 20, 26, 0.09);
}

.pl__clock {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.62);
  color: #fff;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.pl__badge {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.62);
  color: rgba(255, 255, 255, 0.85);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.pl__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px calc(8px + 8px);
}

.pl__time {
  color: #17141a;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 247, 230, 0.6);
}

.pl__time b {
  font-weight: 700;
}

.pp {
  position: relative;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #2f6df6;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(47, 109, 246, 0.45);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

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

.pp:active {
  transform: scale(0.94);
}

.pp:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.pp__ic {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.pp__ic--pause {
  opacity: 0;
  transform: rotate(120deg) scale(0.3);
}

.pl.is-playing .pp__ic--play {
  opacity: 0;
  transform: rotate(-120deg) scale(0.3);
}

.pl.is-playing .pp__ic--pause {
  opacity: 1;
  transform: none;
}

.pp__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  transform: scale(1);
}

.pl__fillwrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.28);
}

.pl__fill {
  display: block;
  height: 100%;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(0.07);
}

.pl.is-demo .pp__ic--play {
  animation-name: pp-play;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.pl.is-demo .pp__ic--pause {
  animation-name: pp-pause;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.pl.is-demo .pp__ring {
  animation-name: pp-ring;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.pl.is-demo .pl__fill {
  animation-name: pp-fill;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes pp-play {
  0%, 38% {
    opacity: 0;
    transform: rotate(-120deg) scale(0.3);
  }
  50%, 78% {
    opacity: 1;
    transform: none;
  }
  90%, 100% {
    opacity: 0;
    transform: rotate(-120deg) scale(0.3);
  }
}
@keyframes pp-pause {
  0%, 38% {
    opacity: 1;
    transform: none;
  }
  50%, 78% {
    opacity: 0;
    transform: rotate(120deg) scale(0.3);
  }
  90%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pp-ring {
  0%, 36% {
    opacity: 0;
    transform: scale(0.9);
  }
  42% {
    opacity: 0.9;
  }
  56% {
    opacity: 0;
    transform: scale(1.9);
  }
  76% {
    opacity: 0;
    transform: scale(0.9);
  }
  82% {
    opacity: 0.9;
  }
  96%, 100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
@keyframes pp-fill {
  0% {
    transform: scaleX(0.07);
  }
  38% {
    transform: scaleX(0.3);
  }
  50%, 78% {
    transform: scaleX(0.3);
  }
  90%, 100% {
    transform: scaleX(0.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl.is-demo .pp__ic--play, .pl.is-demo .pp__ic--pause, .pl.is-demo .pp__ring,
  .pl.is-demo .pl__fill, .pl__stripes {
    animation: none !important;
  }
  .pp, .pp__ic {
    transition: none;
  }
}
