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

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

.sp {
  width: min(100%, 300px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp__tabs {
  display: flex;
  gap: 4px;
  background: rgba(23, 20, 26, 0.08);
  padding: 4px;
  border-radius: 999px;
}

.sp__tab {
  flex: 1 1 0;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.sp__tab.is-active {
  background: #17141a;
  color: #ffd23f;
}

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

.sp__viewport {
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.06);
}

.sp__track {
  display: flex;
  will-change: transform;
  transition: transform var(--sp-dur, 300ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__panel {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 120px;
  display: grid;
  place-items: center;
}

.sp__num {
  font-size: 40px;
  font-weight: 800;
  color: #17141a;
  opacity: 0.82;
}

.sp__meta {
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.78);
  text-align: center;
}

.sp__meta b {
  color: #17141a;
  font-weight: 700;
}

@media (max-width: 340px) {
  .sp {
    width: 100%;
  }
  .sp__panel {
    height: 96px;
  }
  .sp__num {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp__track {
    transition: none;
  }
}
