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);
}

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

.pl__screen {
  position: relative;
  height: clamp(148px, 34vw, 164px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(47, 109, 246, 0.58), rgba(23, 20, 26, 0.94));
}

.pl__stripes {
  position: absolute;
  inset: 0 -72px;
  background: repeating-linear-gradient(90deg, rgba(255, 247, 230, 0.16) 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: 22%;
  top: 16%;
  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.22);
}

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

.pl__hill--a {
  left: -14%;
  width: 72%;
  background: rgba(255, 247, 230, 0.14);
}

.pl__hill--b {
  right: -18%;
  width: 62%;
  background: rgba(255, 247, 230, 0.08);
}

.pl__top {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pl__clock, .pl__badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.62);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
}

.pl__clock {
  color: #fff;
}

.pl__badge {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.pl__time {
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: #fff;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(23, 20, 26, 0.7);
}

.pl__time b {
  font-weight: 700;
}

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

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

.spd {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.spd__btn {
  box-sizing: border-box;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.74);
  color: #fff;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.spd__btn:hover {
  background: rgba(23, 20, 26, 0.92);
}

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

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

.pl.is-open .spd__btn {
  background: rgba(47, 109, 246, 0.92);
}

.spd__ic {
  display: inline-flex;
}

.spd__valwrap {
  position: relative;
  display: block;
  min-width: 34px;
  height: 14px;
}

.spd__val, .spd__alt {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
}

.spd__alt {
  opacity: 0;
}

.spd__menu {
  --i: 2;
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  box-sizing: border-box;
  width: 92px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.95);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.72);
  transform-origin: right bottom;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.pl.is-open .spd__menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.spd__mark {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 17px;
  background: rgba(47, 109, 246, 0.85);
  transform: translateY(calc(17px * var(--i)));
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.spd__item {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
}

.spd__item:hover {
  color: #fff;
}

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

.spd__item[aria-checked=true] {
  color: #fff;
}

.spd__lab {
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 17px;
  font-weight: 700;
}

.spd__ck {
  display: inline-flex;
  color: #ffd23f;
  opacity: 0;
}

.spd__item[aria-checked=true] .spd__ck {
  opacity: 1;
}

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

@keyframes spd-open {
  0%, 9% {
    opacity: 0;
    transform: translateY(6px) scale(0.72);
  }
  10%, 80% {
    opacity: 1;
    transform: none;
  }
  81%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.72);
  }
}
.pl.is-demo .spd__mark {
  animation-name: spd-mark;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes spd-mark {
  0%, 29% {
    transform: translateY(34px);
  }
  30%, 54% {
    transform: translateY(68px);
  }
  55%, 77% {
    transform: translateY(0);
  }
  78%, 100% {
    transform: translateY(34px);
  }
}
.pl.is-demo .spd__item:nth-of-type(1) .spd__ck,
.pl.is-demo .spd__alt--slow {
  animation-name: spd-slow;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.pl.is-demo .spd__item:nth-of-type(3) .spd__ck,
.pl.is-demo .spd__val {
  animation-name: spd-one;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.pl.is-demo .spd__item:nth-of-type(5) .spd__ck,
.pl.is-demo .spd__alt--fast {
  animation-name: spd-fast;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes spd-one {
  0%, 29% {
    opacity: 1;
  }
  30%, 77% {
    opacity: 0;
  }
  78%, 100% {
    opacity: 1;
  }
}
@keyframes spd-fast {
  0%, 29% {
    opacity: 0;
  }
  30%, 54% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}
@keyframes spd-slow {
  0%, 54% {
    opacity: 0;
  }
  55%, 77% {
    opacity: 1;
  }
  78%, 100% {
    opacity: 0;
  }
}
.pl.is-demo .pl__fill {
  animation-name: spd-fill;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes spd-fill {
  0% {
    transform: scaleX(0.14);
  }
  30% {
    transform: scaleX(0.26);
  }
  55% {
    transform: scaleX(0.41);
  }
  78% {
    transform: scaleX(0.456);
  }
  86% {
    transform: scaleX(0.488);
  }
  90%, 100% {
    transform: scaleX(0.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl__stripes,
  .pl.is-demo .spd__menu, .pl.is-demo .spd__mark, .pl.is-demo .pl__fill,
  .pl.is-demo .spd__item:nth-of-type(1) .spd__ck,
  .pl.is-demo .spd__item:nth-of-type(3) .spd__ck,
  .pl.is-demo .spd__item:nth-of-type(5) .spd__ck,
  .pl.is-demo .spd__val, .pl.is-demo .spd__alt--fast, .pl.is-demo .spd__alt--slow {
    animation: none !important;
  }
  .spd__menu, .spd__mark, .spd__btn {
    transition: none;
  }
}
