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

.fd {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.fd__caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
}

.fd__scene {
  position: relative;
  width: 200px;
  height: 140px;
  display: grid;
  place-items: center;
  --tone: 0;
}

.fd__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 200px;
  height: 140px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(201, 48, 0, calc(0.05 + var(--tone) * 0.72)) 0%, rgba(201, 48, 0, calc(0.02 + var(--tone) * 0.3)) 55%, transparent 88%);
  pointer-events: none;
}

.fd__shadow {
  position: absolute;
  bottom: 28px;
  width: 60px;
  height: 14px;
  border-radius: 999px;
  background: transparent;
  pointer-events: none;
}

.fd__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: #ffffff;
  border-radius: 999px;
  padding: 16px;
  cursor: pointer;
  perspective: 300px;
}

.fd__btn:focus-visible {
  outline: 2px solid #c93000;
  outline-offset: 3px;
}

.fd__wrap {
  display: block;
  transform-origin: top center;
  will-change: transform;
}

.fd__shape {
  fill: none;
  stroke: #c93000;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.fd.is-saved .fd__shape {
  fill: #c93000;
}

.fd__status {
  margin: 0;
  font-size: 11px;
  color: #17141a;
  font-weight: 600;
}

@media (max-width: 340px) {
  .fd__scene {
    width: 150px;
    height: 96px;
  }
  .fd__shadow {
    bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fd__wrap {
    transition: none;
  }
}
