@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.18;
}
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(84px, 22vw, 116px);
  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: 18%;
  top: 12%;
  width: 24px;
  height: 24px;
  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);
}

.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 {
  --p: 0.18;
  --h: 0.18;
  position: relative;
  flex: 1 1 auto;
  height: 44px;
  cursor: pointer;
  touch-action: none;
}

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

.sk__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 10px;
  margin-top: -5px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.14);
}

.sk__buf, .sk__fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transform-origin: left center;
}

.sk__buf {
  background: rgba(23, 20, 26, 0.16);
  transform: scaleX(min(1, var(--p) + 0.18));
}

.sk__fill {
  background: #2f6df6;
  transform: scaleX(var(--p));
}

.sk__thumbwrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  transform: translateX(calc((100% - 14px) * var(--p)));
}

.sk__thumb {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 20, 26, 0.4);
}

.sk__tip {
  position: absolute;
  bottom: 34px;
  left: 0;
  width: 76px;
  padding: 4px;
  border-radius: 8px;
  background: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  opacity: 0;
  transform: translateX(calc((100% - 76px) * var(--h, var(--p))));
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.sk.is-hover .sk__tip, .sk:hover .sk__tip, .sk:focus-visible .sk__tip {
  opacity: 1;
}

.sk__prev {
  position: relative;
  display: block;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(111, 169, 255, 0.5), rgba(255, 247, 230, 0.9));
}

.sk__pat {
  position: absolute;
  inset: 0 -80px;
  background: repeating-linear-gradient(90deg, rgba(23, 20, 26, 0.16) 0 10px, transparent 10px 40px);
  transform: translateX(calc(-40px + var(--h, var(--p)) * -80px));
}

.sk__tt {
  display: block;
  padding-top: 4px;
  color: #fff;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
  text-align: center;
}

.pl.is-demo .sk {
  --h: var(--p);
  animation-name: sk-p;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes sk-p {
  0% {
    --p: 0.18;
  }
  78% {
    --p: 0.92;
  }
  88% {
    --p: 0.92;
  }
  100% {
    --p: 0.18;
  }
}
.pl.is-demo .sk__tip {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pl.is-demo .sk, .pl__stripes {
    animation: none !important;
  }
  .sk__tip {
    transition: none;
  }
}
