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

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

.fc {
  position: relative;
  width: 300px;
  height: 212px;
  perspective: 900px;
}

.fc__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fc__inner.is-back {
  transform: rotateY(180deg);
}

.fc__face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fc__face--front {
  background: #fff;
  color: #17141a;
}

.fc__face--back {
  background: #fff7e6;
  color: #17141a;
  transform: rotateY(180deg);
  justify-content: center;
  gap: 16px;
}

.fc__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6df6, #b9a0ff);
  color: #17141a;
  font-weight: 800;
  font-size: 17px;
  line-height: 20px;
}

.fc__name {
  margin: 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  color: #17141a;
}

.fc__role {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: rgba(23, 20, 26, 0.6);
}

.fc__stats {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: rgba(23, 20, 26, 0.72);
}

.fc__num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #17141a;
}

.fc__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.fc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fc__btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.fc__btn--follow {
  background: #2f6df6;
  color: #fff;
}

.fc__btn--follow.is-on {
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
}

.fc__btn--ghost {
  background: transparent;
  color: #17141a;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.3);
}

.fc__f-off,
.fc__f-on {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fc__f-on {
  display: none;
}

.fc__btn--follow.is-on .fc__f-off {
  display: none;
}

.fc__btn--follow.is-on .fc__f-on {
  display: inline-flex;
}

.fc__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc__row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.fc__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.16);
  color: #2f6df6;
}

.fc__meta {
  display: flex;
  flex-direction: column;
}

.fc__k {
  font-weight: 600;
  font-size: 10px;
  line-height: 12px;
  color: rgba(23, 20, 26, 0.55);
}

.fc__v {
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.fc.is-demo .fc__inner {
  animation-name: fc-flip;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes fc-flip {
  0% {
    transform: rotateY(0deg);
  }
  30% {
    transform: rotateY(180deg);
  }
  76% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}
.fc.is-demo .fc__avatar {
  animation-name: fc-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes fc-pop {
  0% {
    transform: scale(1);
  }
  6% {
    transform: scale(1.09);
  }
  22% {
    transform: scale(1);
  }
  80% {
    transform: scale(1);
  }
  86% {
    transform: scale(1.09);
  }
  96% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
.fc.is-demo .fc__ic {
  animation-name: fc-tap;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.fc.is-demo .fc__row:nth-child(2) .fc__ic {
  animation-delay: 83ms;
}

.fc.is-demo .fc__row:nth-child(3) .fc__ic {
  animation-delay: 167ms;
}

@keyframes fc-tap {
  0% {
    transform: scale(1);
  }
  36% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.22);
  }
  58% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .fc {
    width: 272px;
    height: 164px;
  }
  .fc__face {
    padding: 12px;
  }
  .fc__face--back {
    gap: 12px;
  }
  .fc__avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 17px;
  }
  .fc__name {
    font-size: 15px;
    line-height: 18px;
  }
  .fc__role {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 14px;
  }
  .fc__stats {
    font-size: 12px;
    line-height: 16px;
  }
  .fc__btn {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 14px;
  }
  .fc__btn svg {
    width: 13px;
    height: 13px;
  }
  .fc__list {
    gap: 4px;
  }
  .fc__ic {
    width: 24px;
    height: 24px;
  }
  .fc__ic svg {
    width: 13px;
    height: 13px;
  }
  .fc__k {
    font-size: 9px;
    line-height: 11px;
  }
  .fc__v {
    font-size: 12px;
    line-height: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fc.is-demo .fc__inner,
  .fc.is-demo .fc__avatar,
  .fc.is-demo .fc__ic {
    animation: none !important;
  }
  .fc__inner {
    transition: none;
  }
  .fc__btn {
    transition: none;
  }
}
