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

.ig__defs {
  position: absolute;
  width: 0;
  height: 0;
}

.ig {
  box-sizing: border-box;
  width: min(100%, 432px);
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-areas: "hero a b" "hero c d";
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.ig__hero {
  grid-area: hero;
}

.ig__cell--a {
  grid-area: a;
}

.ig__cell--b {
  grid-area: b;
}

.ig__cell--c {
  grid-area: c;
}

.ig__cell--d {
  grid-area: d;
}

.ig__hero {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #17141a;
}

.ig__tag {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1.2;
}

.ig__line {
  overflow: hidden;
}

.ig__title {
  margin: 0;
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(14px, 4.2vw, 19px);
  line-height: 1.2;
}

.ig__lede {
  margin: 0;
  color: #fff7e6;
  font-weight: 500;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.4;
}

.ig__link {
  margin-top: auto;
  align-self: start;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ig__link:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
  border-radius: 4px;
}

.ig__cell {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(23, 20, 26, 0.16);
  border-radius: 16px;
  background: #fff7e6;
}

.ig__ic {
  width: 18px;
  height: 18px;
  color: #2f6df6;
}

.ig__name {
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(10px, 3vw, 12px);
  line-height: 1.25;
}

.ig__note {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1.3;
}

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

.ig.is-demo .ig__title {
  animation-name: igTitle;
}

.ig.is-demo .ig__cell {
  animation-name: igCell;
}

.ig.is-demo .ig__cell--a {
  animation-delay: 0.14s;
}

.ig.is-demo .ig__cell--b {
  animation-delay: 0.24s;
}

.ig.is-demo .ig__cell--c {
  animation-delay: 0.34s;
}

.ig.is-demo .ig__cell--d {
  animation-delay: 0.44s;
}

@keyframes igTitle {
  0% {
    transform: translateY(120%);
  }
  30% {
    transform: translateY(0);
  }
  74% {
    transform: translateY(0);
  }
  88%, 100% {
    transform: translateY(120%);
  }
}
@keyframes igCell {
  0% {
    transform: translateY(14px) scale(0.94);
  }
  30% {
    transform: translateY(0) scale(1);
  }
  74% {
    transform: translateY(0) scale(1);
  }
  88%, 100% {
    transform: translateY(14px) scale(0.94);
  }
}
@media (max-width: 340px) {
  .ig {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "hero hero hero hero" "a a b b" "c c d d";
    grid-template-rows: auto auto auto;
    gap: 4px;
  }
  .ig__hero {
    gap: 0;
    padding: 4px;
  }
  .ig__cell {
    gap: 0;
    padding: 4px;
  }
  .ig__ic {
    width: 14px;
    height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ig.is-demo .ig__title,
  .ig.is-demo .ig__cell {
    animation: none !important;
    transform: none !important;
  }
}
