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

.sf {
  width: min(100%, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sf__card {
  view-transition-name: sf-card;
  width: 120px;
  height: 90px;
  border-radius: 16px;
  background: #fff7e6;
  display: grid;
  place-items: center;
}

.sf__card.is-alt {
  background: #17141a;
}

.sf__num {
  margin: 0;
  font: 700 26px/1 "Space Mono", monospace;
  color: #17141a;
}

.sf__card.is-alt .sf__num {
  color: #fff7e6;
}

::view-transition-old(sf-card),
::view-transition-new(sf-card) {
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sf__meta {
  margin: 0;
  display: flex;
  gap: 8px;
}

.sf__pill {
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
  font: 700 10px/1 -apple-system, sans-serif;
  padding: 4px 12px;
}

.sf__pill--path.is-fallback {
  background: #17141a;
  color: #fff7e6;
}

.sf__btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #17141a;
  color: #fff7e6;
  font: 700 11px/1 -apple-system, sans-serif;
  padding: 8px 16px;
}

.sf__btn:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .sf__card {
    width: 96px;
    height: 72px;
  }
  .sf__num {
    font-size: 20px;
  }
  .sf__pill {
    font-size: 9px;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
