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

.wi {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(300px, 92vw);
}

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

.wi__tile {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
}
.wi__tile:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.wi__name {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.wi__tile > .wi__fx,
.wi__scene {
  height: 36px;
  display: grid;
  place-items: center;
}

.wi__scene {
  position: relative;
  width: 64px;
}

.wi__cloud-s {
  color: #5b6478;
}

.wi__drift {
  color: #5b6478;
}

.wi__sun {
  color: #ba9f72;
}

.wi__windfx {
  color: #4a89c9;
}

@keyframes wi-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.wi__sun {
  animation-name: wi-spin;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes wi-drift {
  0%, 100% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
}
.wi__drift {
  animation-name: wi-drift;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes wi-dropfall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}
.wi__drop {
  position: absolute;
  top: 20px;
  color: #2f6df6;
  animation-name: wi-dropfall;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.wi__drop--1 {
  left: 14px;
}

.wi__drop--2 {
  left: 27px;
  animation-delay: 0.33s;
}

.wi__drop--3 {
  left: 40px;
  animation-delay: 0.66s;
}

@keyframes wi-flakefall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px) rotate(160deg);
    opacity: 0;
  }
}
.wi__flake {
  position: absolute;
  top: 20px;
  color: #4a89c9;
  animation-name: wi-flakefall;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.wi__flake--1 {
  left: 18px;
}

.wi__flake--2 {
  left: 36px;
  animation-delay: 0.5s;
}

@keyframes wi-flash {
  0%, 20% {
    opacity: 0.35;
  }
  22%, 28% {
    opacity: 1;
  }
  30%, 44% {
    opacity: 0.35;
  }
  46%, 52% {
    opacity: 1;
  }
  54%, 100% {
    opacity: 0.35;
  }
}
.wi__bolt {
  position: absolute;
  top: 18px;
  left: 50%;
  margin-left: -7px;
  color: #ba9f72;
  animation-name: wi-flash;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes wi-gust {
  0%, 100% {
    transform: translateX(-4px);
  }
  45% {
    transform: translateX(5px);
  }
}
.wi__windfx {
  animation-name: wi-gust;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .wi {
    gap: 4px;
  }
  .wi__tile {
    padding: 4px 0;
    border-radius: 12px;
  }
  .wi__scene {
    width: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wi__fx {
    animation: none !important;
    transform: none !important;
  }
  .wi__drop, .wi__flake {
    opacity: 1 !important;
  }
  .wi__bolt {
    opacity: 1 !important;
  }
}
