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: 12%;
  width: 26px;
  height: 26px;
  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, .pl__badge {
  position: absolute;
  top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.62);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

.pl__clock {
  left: 8px;
  color: #fff;
}

.pl__badge {
  right: 8px;
  color: rgba(255, 255, 255, 0.85);
}

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

.cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pl.is-off .cap {
  opacity: 0;
}

.cap__l {
  grid-area: 1/1;
  box-sizing: border-box;
  max-width: 92%;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: rgba(23, 20, 26, 0.72);
  color: #fff;
  font-size: clamp(10px, 2.9vw, 13px);
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cap__l.is-on {
  opacity: 1;
  transform: none;
}

.pl.is-outline .cap__l {
  background-color: rgba(23, 20, 26, 0);
  text-shadow: 1px 1px 0 rgba(23, 20, 26, 0.95), -1px 1px 0 rgba(23, 20, 26, 0.95), 1px -1px 0 rgba(23, 20, 26, 0.95), -1px -1px 0 rgba(23, 20, 26, 0.95);
}

.pl__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid rgba(23, 20, 26, 0.12);
  background: #fff7e6;
}

.cc {
  box-sizing: border-box;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: #2f6df6;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cc[aria-pressed=false] {
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
}

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

.cc__ic {
  display: inline-flex;
}

.seg {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seg__b {
  box-sizing: border-box;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(23, 20, 26, 0.1);
  color: #17141a;
  cursor: pointer;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  transition: background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.seg__b.is-on {
  background-color: #17141a;
  color: #fff;
}

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

.pl__time {
  margin-left: auto;
  color: rgba(23, 20, 26, 0.66);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.pl__time b {
  color: #17141a;
  font-weight: 700;
}

.pl.is-demo .cap__l--1 {
  animation-name: cap-1, cap-style;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
}

.pl.is-demo .cap__l--2 {
  animation-name: cap-2, cap-style;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
}

.pl.is-demo .cap__l--3 {
  animation-name: cap-3, cap-style;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
}

.pl.is-demo .cap__l--4 {
  animation-name: cap-4, cap-style;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
}

@keyframes cap-1 {
  0%, 21.99% {
    opacity: 1;
    transform: none;
  }
  22%, 87.99% {
    opacity: 0;
    transform: translateY(10px);
  }
  88% {
    opacity: 1;
    transform: translateY(10px);
  }
  93%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes cap-2 {
  0%, 21.99% {
    opacity: 0;
    transform: translateY(10px);
  }
  22% {
    opacity: 1;
    transform: translateY(10px);
  }
  27%, 43.99% {
    opacity: 1;
    transform: none;
  }
  44%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes cap-3 {
  0%, 43.99% {
    opacity: 0;
    transform: translateY(10px);
  }
  44% {
    opacity: 1;
    transform: translateY(10px);
  }
  49%, 65.99% {
    opacity: 1;
    transform: none;
  }
  66%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes cap-4 {
  0%, 65.99% {
    opacity: 0;
    transform: translateY(10px);
  }
  66% {
    opacity: 1;
    transform: translateY(10px);
  }
  71%, 87.99% {
    opacity: 1;
    transform: none;
  }
  88%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes cap-style {
  0%, 49% {
    background-color: rgba(23, 20, 26, 0.72);
    text-shadow: 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0);
  }
  50%, 87% {
    background-color: rgba(23, 20, 26, 0);
    text-shadow: 1px 1px 0 rgba(23, 20, 26, 0.95), -1px 1px 0 rgba(23, 20, 26, 0.95), 1px -1px 0 rgba(23, 20, 26, 0.95), -1px -1px 0 rgba(23, 20, 26, 0.95);
  }
  88%, 100% {
    background-color: rgba(23, 20, 26, 0.72);
    text-shadow: 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0), 0 0 0 rgba(23, 20, 26, 0);
  }
}
.pl.is-demo .seg__b--chip {
  animation-name: seg-chip;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.pl.is-demo .seg__b--line {
  animation-name: seg-line;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes seg-chip {
  0%, 49% {
    background-color: #17141a;
    color: #fff;
  }
  50%, 87% {
    background-color: rgba(23, 20, 26, 0.1);
    color: #17141a;
  }
  88%, 100% {
    background-color: #17141a;
    color: #fff;
  }
}
@keyframes seg-line {
  0%, 49% {
    background-color: rgba(23, 20, 26, 0.1);
    color: #17141a;
  }
  50%, 87% {
    background-color: #17141a;
    color: #fff;
  }
  88%, 100% {
    background-color: rgba(23, 20, 26, 0.1);
    color: #17141a;
  }
}
.pl.is-demo .pl__fill {
  animation-name: cap-fill;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes cap-fill {
  0% {
    transform: scaleX(0.07);
  }
  88%, 100% {
    transform: scaleX(0.62);
  }
}
@media (max-width: 340px) {
  .pl__time {
    display: none;
  }
  .cap__l {
    line-height: 14px;
  }
  .cc {
    font-size: 11px;
  }
  .seg__b {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl.is-demo .cap__l--1, .pl.is-demo .cap__l--2, .pl.is-demo .cap__l--3, .pl.is-demo .cap__l--4,
  .pl.is-demo .seg__b--chip, .pl.is-demo .seg__b--line, .pl.is-demo .pl__fill,
  .pl__stripes {
    animation: none !important;
  }
  .cap, .cap__l, .cc, .seg__b {
    transition: none;
  }
}
