@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.0444;
}
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);
}

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

.pl__screen {
  position: relative;
  height: clamp(76px, 22vw, 108px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(47, 109, 246, 0.34), rgba(255, 247, 230, 0.96));
}

.pl__stripes {
  position: absolute;
  inset: 0 -72px;
  background: repeating-linear-gradient(90deg, rgba(23, 20, 26, 0.13) 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: 16%;
  top: 10%;
  width: 22px;
  height: 22px;
  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);
}

.nm {
  position: absolute;
  left: 8px;
  bottom: 8px;
  height: 20px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.74);
  overflow: hidden;
}

.nm__list {
  translate: 0 calc(var(--i, 0) * -20px);
}

.nm__i {
  display: block;
  height: 20px;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.sk__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.sk__t {
  flex: 0 0 auto;
  color: rgba(23, 20, 26, 0.72);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
}

.sk {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  box-sizing: border-box;
  height: 36px;
  padding-left: 8px;
  padding-right: 8px;
  cursor: pointer;
  touch-action: none;
}

.sk:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
  border-radius: 8px;
}

.ch {
  --p: 0.0444;
  position: relative;
  flex: 1 1 auto;
  height: 12px;
}

.ch__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--s) * 100%);
  right: calc(100% - var(--e) * 100%);
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.16);
  overflow: hidden;
}

.ch__seg--end {
  margin-right: 0;
}

.ch__seg:hover {
  background: rgba(23, 20, 26, 0.26);
}

.ch__fill {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 999px;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(clamp(0, (var(--p) - var(--s)) * var(--k), 1));
}

.ch__head {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: calc(var(--p) * 100%);
  width: 4px;
  border-radius: 999px;
  background: #17141a;
  transform: translateX(-50%);
  pointer-events: none;
}

.ch__dot {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(23, 20, 26, 0.45);
  transform: translateX(-50%);
}

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

@keyframes ch-p {
  0% {
    --p: 0.0444;
  }
  80% {
    --p: 0.94;
  }
  86% {
    --p: 0.94;
  }
  87% {
    --p: 0.0444;
  }
  100% {
    --p: 0.0444;
  }
}
.pl.is-demo .nm__list {
  animation-name: nm-roll, nm-rise;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}

@keyframes nm-roll {
  0% {
    translate: 0 0;
  }
  7.9% {
    translate: 0 -20px;
  }
  31.8% {
    translate: 0 -40px;
  }
  65.5% {
    translate: 0 -60px;
  }
  87% {
    translate: 0 0;
  }
  100% {
    translate: 0 0;
  }
}
@keyframes nm-rise {
  0% {
    transform: translateY(0);
  }
  7.8% {
    transform: translateY(0);
  }
  7.9% {
    transform: translateY(4px);
  }
  15.9% {
    transform: translateY(0);
  }
  31.7% {
    transform: translateY(0);
  }
  31.8% {
    transform: translateY(4px);
  }
  39.8% {
    transform: translateY(0);
  }
  65.4% {
    transform: translateY(0);
  }
  65.5% {
    transform: translateY(4px);
  }
  73.5% {
    transform: translateY(0);
  }
  86.9% {
    transform: translateY(0);
  }
  87% {
    transform: translateY(4px);
  }
  95% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .sk__row {
    gap: 8px;
    padding: 8px;
  }
  .sk {
    height: 32px;
  }
  .nm {
    bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl.is-demo .ch, .pl.is-demo .nm__list, .pl__stripes {
    animation: none !important;
  }
  .ch__fill, .ch__head {
    transition: none;
  }
}
