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

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

.hs {
  box-sizing: border-box;
  width: min(300px, 92vw);
  padding: 8px;
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.hs * {
  box-sizing: border-box;
}

.hs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hs__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.hs__hint {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}

.hs__viewport {
  margin-top: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hs__viewport::-webkit-scrollbar {
  display: none;
}
.hs__viewport:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
  border-radius: 12px;
}

.hs__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 52px;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs__cell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 0 4px;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.06);
  scroll-snap-align: start;
  font-variant-numeric: tabular-nums;
}

.hs__h {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: #17141a;
}

.hs__i {
  color: #ba9f72;
}

.hs__i--cloud {
  color: #5b6478;
}

.hs__i--rain {
  color: #2f6df6;
}

.hs__t {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.hs__dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0);
}

.hs__cell.is-now {
  background: rgba(110, 200, 255, 0.35);
  transform: translateY(-2px);
}
.hs__cell.is-now .hs__dot {
  background: #2f6df6;
}
.hs__cell.is-now .hs__h {
  color: #17141a;
}

@keyframes hs-slide {
  0%, 30% {
    transform: translateX(0);
  }
  44%, 80% {
    transform: translateX(-52px);
  }
  90%, 100% {
    transform: translateX(0);
  }
}
@keyframes hs-lita {
  0%, 43% {
    background-color: rgba(110, 200, 255, 0.35);
  }
  44%, 87% {
    background-color: rgba(23, 20, 26, 0.06);
  }
  88%, 100% {
    background-color: rgba(110, 200, 255, 0.35);
  }
}
@keyframes hs-litb {
  0%, 43% {
    background-color: rgba(23, 20, 26, 0.06);
  }
  44%, 87% {
    background-color: rgba(110, 200, 255, 0.35);
  }
  88%, 100% {
    background-color: rgba(23, 20, 26, 0.06);
  }
}
@keyframes hs-dota {
  0%, 43% {
    opacity: 1;
  }
  44%, 87% {
    opacity: 0;
  }
  88%, 100% {
    opacity: 1;
  }
}
@keyframes hs-dotb {
  0%, 43% {
    opacity: 0;
  }
  44%, 87% {
    opacity: 1;
  }
  88%, 100% {
    opacity: 0;
  }
}
@keyframes hs-pop {
  0%, 41% {
    transform: translateY(0);
  }
  44% {
    transform: translateY(-2px);
  }
  58%, 85% {
    transform: translateY(-2px);
  }
  88% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes hs-dotpulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.6);
  }
}
.hs.is-demo .hs__viewport {
  scroll-snap-type: none;
}
.hs.is-demo .hs__track {
  animation-name: hs-slide;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}
.hs.is-demo .hs__cell:nth-child(1) {
  animation-name: hs-lita, hs-pop;
}
.hs.is-demo .hs__cell:nth-child(2) {
  animation-name: hs-litb;
}
.hs.is-demo .hs__cell:nth-child(1), .hs.is-demo .hs__cell:nth-child(2) {
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), ease-out;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}
.hs.is-demo .hs__cell:nth-child(1) .hs__dot {
  animation-name: hs-dota, hs-dotpulse;
  animation-duration: 2s, 1s;
  animation-timing-function: steps(1, end), ease-out;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}
.hs.is-demo .hs__cell:nth-child(2) .hs__dot {
  animation-name: hs-dotb;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@media (max-width: 340px) {
  .hs {
    padding: 8px 4px;
  }
  .hs__track {
    grid-auto-columns: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs.is-demo .hs__track,
  .hs.is-demo .hs__cell,
  .hs.is-demo .hs__dot {
    animation: none !important;
    transform: none !important;
  }
  .hs__cell.is-now,
  .hs.is-demo .hs__cell.is-now {
    background: rgba(110, 200, 255, 0.35) !important;
    transform: translateY(-2px) !important;
  }
  .hs__cell.is-now .hs__dot {
    opacity: 1 !important;
  }
}
