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

.xpost {
  width: 256px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid #e7e5ea;
  background: #fff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.xpost__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.xpost__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f6df6, #b9a0ff);
  color: #17141a;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.xpost__id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.xpost__name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: #17141a;
}

.xpost__name svg {
  color: #2f6df6;
  flex: 0 0 auto;
}

.xpost__handle {
  font-size: 12px;
  color: #6b6875;
}

.xpost__text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #201d26;
}

.xpost__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.xpost__act {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  color: #6b6875;
  font-size: 12px;
  cursor: pointer;
}

.xpost__act:hover {
  color: #2f6df6;
}

.xpost__act--repost.is-active {
  color: #50a26e;
}

.xpost__act--like.is-active {
  color: #bf7d91;
}

.xpost__act--like.is-active .xpost__heart {
  animation: xpost-bump 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes xpost-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
.stage.is-demo .xpost__act--like .xpost__heart {
  animation: xpost-breathe 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes xpost-breathe {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .xpost__act--like .xpost__heart {
    animation: none;
    opacity: 0.8;
  }
}
