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

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

.wf {
  box-sizing: border-box;
  width: min(100%, 432px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 46px;
  grid-auto-flow: row dense;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf__card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: #241f2a;
  transition: background-color 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wf__card--tall {
  grid-row: span 2;
}

.wf__card--s2 {
  grid-row: 1/span 2;
  grid-column: 2;
}

.wf__card--s5 {
  grid-row: 2/span 2;
  grid-column: 3;
}

.wf__card--wide {
  grid-column: span 2;
}

.wf__card--pin {
  order: -1;
}

.wf__no {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff7e6;
  color: #17141a;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wf__title {
  margin: 0;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.2;
}

.wf__meta {
  margin: 0;
  margin-top: auto;
  color: #fff7e6;
  font-weight: 500;
  font-size: clamp(8px, 2.2vw, 9px);
  line-height: 1.2;
}

.wf.is-demo .wf__card {
  animation-name: wfRead;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.wf__card--s2 {
  animation-delay: 0.3333s;
}

.wf__card--s3 {
  animation-delay: 0.6666s;
}

.wf__card--s4 {
  animation-delay: 0.9999s;
}

.wf__card--s5 {
  animation-delay: 1.3332s;
}

.wf__card--s6 {
  animation-delay: 1.6665s;
}

@keyframes wfRead {
  0% {
    background-color: #241f2a;
  }
  5% {
    background-color: #0a4fe8;
  }
  13% {
    background-color: #0a4fe8;
  }
  18%, 100% {
    background-color: #241f2a;
  }
}
@media (max-width: 340px) {
  .wf {
    grid-auto-rows: 40px;
    gap: 4px;
  }
  .wf__card {
    gap: 0;
    padding: 4px;
  }
  .wf__no {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wf.is-demo .wf__card {
    animation: none !important;
  }
  .wf__card {
    transition: none !important;
  }
}
