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

.dr {
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  width: min(292px, 92vw);
  padding: 8px;
  border: 1px solid rgba(23, 20, 26, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

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

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

.dr__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dr__row {
  display: grid;
  width: 100%;
  grid-template-columns: 26px 16px 20px 1fr 20px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.dr__row:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}
.dr__row.is-sel {
  background: rgba(110, 200, 255, 0.22);
}

.dr__day {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}

.is-sel .dr__day {
  color: #17141a;
}

.dr__i--sun {
  color: #ba9f72;
}

.dr__i--cloudsun {
  color: #b59c6a;
}

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

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

.dr__lo, .dr__hi {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.dr__hi {
  text-align: right;
}

.dr__lo {
  color: rgba(23, 20, 26, 0.72);
}

.dr__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
}

.dr__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4d6e2, #d2bea4);
}

.dr__detail {
  margin: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

@keyframes dr-wipe {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  36%, 86% {
    clip-path: inset(0 0 0 0);
  }
  88%, 100% {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes dr-num {
  0% {
    transform: translateY(6px);
    opacity: 0;
  }
  30%, 86% {
    transform: translateY(0);
    opacity: 1;
  }
  88%, 100% {
    transform: translateY(6px);
    opacity: 0;
  }
}
.dr.is-demo .dr__list > li:nth-child(1) .dr__bar {
  animation-name: dr-wipe;
  animation-delay: 0s;
}
.dr.is-demo .dr__list > li:nth-child(2) .dr__bar {
  animation-name: dr-wipe;
  animation-delay: 0.12s;
}
.dr.is-demo .dr__list > li:nth-child(3) .dr__bar {
  animation-name: dr-wipe;
  animation-delay: 0.24s;
}
.dr.is-demo .dr__list > li:nth-child(4) .dr__bar {
  animation-name: dr-wipe;
  animation-delay: 0.36s;
}
.dr.is-demo .dr__list > li:nth-child(5) .dr__bar {
  animation-name: dr-wipe;
  animation-delay: 0.48s;
}
.dr.is-demo .dr__bar {
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}
.dr.is-demo .dr__list > li:nth-child(1) .dr__hi, .dr.is-demo .dr__list > li:nth-child(1) .dr__lo {
  animation-name: dr-num;
  animation-delay: 0s;
}
.dr.is-demo .dr__list > li:nth-child(3) .dr__hi, .dr.is-demo .dr__list > li:nth-child(3) .dr__lo {
  animation-name: dr-num;
  animation-delay: 0.12s;
}
.dr.is-demo .dr__list > li:nth-child(5) .dr__hi, .dr.is-demo .dr__list > li:nth-child(5) .dr__lo {
  animation-name: dr-num;
  animation-delay: 0.24s;
}
.dr.is-demo .dr__lo, .dr.is-demo .dr__hi {
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@media (max-width: 340px) {
  .dr {
    padding: 4px;
  }
  .dr__row {
    grid-template-columns: 22px 14px 18px 1fr 18px;
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dr.is-demo .dr__bar,
  .dr.is-demo .dr__lo,
  .dr.is-demo .dr__hi {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
}
