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

.ig {
  width: min(320px, 94vw);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ig__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig__ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(110, 200, 255, 0.18);
  color: #6ec8ff;
  animation: ig-pulse 220ms ease-in-out infinite alternate;
}

@keyframes ig-pulse {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}
.ig__name {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  font-family: inherit;
  color: #ffffff;
}

.ig__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.ig__toggle[aria-pressed=true] {
  color: #ffffff;
}

.ig__track {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ig__toggle[aria-pressed=true] .ig__track {
  background: #50a26e;
}

.ig__dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ig__toggle[aria-pressed=true] .ig__dot {
  transform: translateX(12px);
}

@media (prefers-reduced-motion: reduce) {
  .ig__ic, .ig__toggle, .ig__dot {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .ig {
    width: min(260px, 92vw);
    gap: 4px;
  }
  .ig__tile {
    padding: 8px 4px;
    gap: 4px;
  }
  .ig__ic {
    width: 20px;
    height: 20px;
  }
  .ig__ic svg {
    width: 13px;
    height: 13px;
  }
  .ig__name {
    font-size: 9px;
  }
  .ig__toggle {
    font-size: 8px;
    gap: 4px;
  }
  .ig__track {
    width: 20px;
    height: 11px;
  }
  .ig__dot {
    width: 9px;
    height: 9px;
  }
  .ig__toggle[aria-pressed=true] .ig__dot {
    transform: translateX(9px);
  }
}
