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

.pp {
  --f-sans: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  --f-serif: Georgia, "Times New Roman", ui-serif, serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --f-wide: Verdana, "Segoe UI", "Noto Sans KR", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 432px);
  padding: 8px;
  border: 1px solid rgba(23, 20, 26, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.pp__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp__glabel {
  flex: 0 0 auto;
  color: #17141a;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
}

.pp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.pp__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(23, 20, 26, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
}

.pp__chip--sans {
  font-family: var(--f-sans);
}

.pp__chip--serif {
  font-family: var(--f-serif);
}

.pp__chip--mono {
  font-family: var(--f-mono);
}

.pp__chip--wide {
  font-family: var(--f-wide);
}

.pp__spec {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.pp__chip.is-on {
  background: #17141a;
  border-color: #17141a;
  color: #fff7e6;
}

.pp__chip:focus-visible, .pp__ital:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pp__knobs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pp__ital {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(23, 20, 26, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
}

.pp__ital.is-on {
  background: #17141a;
  border-color: #17141a;
  color: #fff7e6;
}

.pp__knob {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #17141a;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
}

.pp__kval {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  color: #c93000;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
}

.pp__range {
  appearance: none;
  -webkit-appearance: none;
  width: 84px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.pp__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.16);
}

.pp__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #0a4fe8;
}

.pp__range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.16);
}

.pp__range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #0a4fe8;
}

.pp__sample {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.05);
}

.pp__head {
  margin: 0;
  color: #17141a;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.25;
  letter-spacing: 0;
}

.pp__body {
  margin: 0;
  color: #17141a;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
}

.pp__note {
  margin: 0;
  color: rgba(23, 20, 26, 0.78);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
}

.pp.is-demo .pp__head {
  animation-name: ppHead;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pp.is-demo .pp__body {
  animation-name: ppBody;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pp.is-demo .pp__chip {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.pp.is-demo .pp__chip--sans[data-row=head] {
  animation-name: ppHcSans;
}

.pp.is-demo .pp__chip--serif[data-row=head] {
  animation-name: ppHcSerif;
}

.pp.is-demo .pp__chip--mono[data-row=head] {
  animation-name: ppHcMono;
}

.pp.is-demo .pp__chip--wide[data-row=head] {
  animation-name: ppHcWide;
}

.pp.is-demo .pp__chip--sans[data-row=body] {
  animation-name: ppBcSans;
}

.pp.is-demo .pp__chip--serif[data-row=body] {
  animation-name: ppBcSerif;
}

.pp.is-demo .pp__chip--mono[data-row=body] {
  animation-name: ppBcMono;
}

.pp.is-demo .pp__chip--wide[data-row=body] {
  animation-name: ppBcWide;
}

@keyframes ppHead {
  0%, 12.499% {
    font-family: var(--f-sans);
    font-style: normal;
    letter-spacing: 0;
  }
  12.5%, 24.999% {
    font-family: var(--f-serif);
    font-style: normal;
    letter-spacing: 0;
  }
  25%, 37.499% {
    font-family: var(--f-serif);
    font-style: normal;
    letter-spacing: 0;
  }
  37.5%, 49.999% {
    font-family: var(--f-mono);
    font-style: italic;
    letter-spacing: 0;
  }
  50%, 62.499% {
    font-family: var(--f-mono);
    font-style: italic;
    letter-spacing: 0.06em;
  }
  62.5%, 74.999% {
    font-family: var(--f-sans);
    font-style: italic;
    letter-spacing: 0.06em;
  }
  75%, 87.499% {
    font-family: var(--f-wide);
    font-style: normal;
    letter-spacing: 0;
  }
  87.5%, 100% {
    font-family: var(--f-sans);
    font-style: normal;
    letter-spacing: 0;
  }
}
@keyframes ppBody {
  0%, 24.999% {
    font-family: var(--f-sans);
    line-height: 1.5;
  }
  25%, 37.499% {
    font-family: var(--f-wide);
    line-height: 1.5;
  }
  37.5%, 49.999% {
    font-family: var(--f-serif);
    line-height: 1.5;
  }
  50%, 74.999% {
    font-family: var(--f-mono);
    line-height: 1.9;
  }
  75%, 87.499% {
    font-family: var(--f-sans);
    line-height: 1.7;
  }
  87.5%, 100% {
    font-family: var(--f-sans);
    line-height: 1.5;
  }
}
@keyframes ppHcSans {
  0%, 12.499% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  12.5%, 62.499% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  62.5% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  70%, 74.999% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  75%, 87.499% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  87.5% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  95%, 100% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
}
@keyframes ppHcSerif {
  0%, 12.499% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  12.5% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  20%, 37.499% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  37.5%, 100% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
}
@keyframes ppHcMono {
  0%, 37.499% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  37.5% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  45%, 62.499% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  62.5%, 100% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
}
@keyframes ppHcWide {
  0%, 74.999% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  75% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  83%, 100% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
}
@keyframes ppBcSans {
  0%, 24.999% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  25%, 74.999% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  75% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  83%, 100% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
}
@keyframes ppBcSerif {
  0%, 37.499% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  37.5% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  45%, 49.999% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  50%, 100% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
}
@keyframes ppBcMono {
  0%, 49.999% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  50% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  58%, 74.999% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  75%, 100% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
}
@keyframes ppBcWide {
  0%, 24.999% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
  25% {
    background-color: #17141a;
    color: #fff7e6;
    transform: translateY(-2px);
  }
  33%, 37.499% {
    background-color: #17141a;
    color: #fff7e6;
    transform: none;
  }
  37.5%, 100% {
    background-color: transparent;
    color: #17141a;
    transform: none;
  }
}
@media (max-width: 340px) {
  .pp {
    gap: 4px;
    padding: 8px;
  }
  .pp__row {
    gap: 4px;
  }
  .pp__glabel {
    font-size: 10px;
  }
  .pp__chip {
    padding: 4px;
    font-size: 10px;
  }
  .pp__spec {
    display: none;
  }
  .pp__knobs {
    gap: 4px;
  }
  .pp__range {
    width: 48px;
  }
  .pp__kval {
    font-size: 10px;
  }
  .pp__sample {
    padding: 4px;
  }
  .pp__head {
    font-size: 15px;
  }
  .pp__body {
    font-size: 10px;
  }
  .pp__b2, .pp__body br {
    display: none;
  }
  .pp__note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pp.is-demo .pp__head,
  .pp.is-demo .pp__body,
  .pp.is-demo .pp__chip {
    animation: none !important;
    transform: none !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
  }
}
