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

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

.pf__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 13px);
  color: #17141a;
}

.pf__ico {
  width: 16px;
  height: 16px;
  color: #17141a;
}

.pf__switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(23, 20, 26, 0.12);
  border-radius: 999px;
}

.pf__opt {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: rgba(23, 20, 26, 0.72);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(10px, 2.8vw, 11px);
  line-height: 1.4;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pf__opt[aria-pressed=true] {
  background: #17141a;
  color: #ffd23f;
}

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

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

.pf__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
}

.pf__act {
  font-weight: 700;
  font-size: clamp(11px, 3vw, 12px);
  color: #17141a;
}

.pf__keys {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pf__mod, .pf__key {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(23, 20, 26, 0.22);
  background: rgba(23, 20, 26, 0.06);
  color: #17141a;
  font-family: inherit;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
}

.pf__key {
  min-width: 22px;
  padding: 0 4px;
}

.pf__mod {
  position: relative;
  min-width: 34px;
  padding: 0 4px;
}

.pf__mod span {
  grid-area: 1/1;
}

.pf[data-platform=win] .pf__mac {
  visibility: hidden;
}

.pf[data-platform=mac] .pf__win {
  visibility: hidden;
}

.pf.is-demo .pf__mac,
.pf.is-demo .pf__win {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pf.is-demo .pf__mac {
  animation-name: pfShowLate;
}

.pf.is-demo .pf__win {
  animation-name: pfShowEarly;
}

@keyframes pfShowEarly {
  0%, 44% {
    visibility: visible;
  }
  45%, 89% {
    visibility: hidden;
  }
  90%, 100% {
    visibility: visible;
  }
}
@keyframes pfShowLate {
  0%, 44% {
    visibility: hidden;
  }
  45%, 89% {
    visibility: visible;
  }
  90%, 100% {
    visibility: hidden;
  }
}
.pf.is-demo .pf__mod {
  animation-name: pfPop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pf.is-demo .pf__row:nth-child(1) .pf__mod {
  animation-delay: 0ms;
}

.pf.is-demo .pf__row:nth-child(2) .pf__mod {
  animation-delay: 80ms;
}

.pf.is-demo .pf__row:nth-child(3) .pf__mod {
  animation-delay: 160ms;
}

@keyframes pfPop {
  0%, 37% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-4px);
  }
  53%, 82% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(-4px);
  }
  98%, 100% {
    transform: translateY(0);
  }
}
.pf.is-demo .pf__opt {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pf.is-demo .pf__opt[data-os=win] {
  animation-name: pfOptEarly;
}

.pf.is-demo .pf__opt[data-os=mac] {
  animation-name: pfOptLate;
}

@keyframes pfOptEarly {
  0%, 44% {
    background: #17141a;
    color: #ffd23f;
  }
  45%, 89% {
    background: transparent;
    color: rgba(23, 20, 26, 0.72);
  }
  90%, 100% {
    background: #17141a;
    color: #ffd23f;
  }
}
@keyframes pfOptLate {
  0%, 44% {
    background: transparent;
    color: rgba(23, 20, 26, 0.72);
  }
  45%, 89% {
    background: #17141a;
    color: #ffd23f;
  }
  90%, 100% {
    background: transparent;
    color: rgba(23, 20, 26, 0.72);
  }
}
@media (max-width: 340px) {
  .pf {
    gap: 8px;
  }
  .pf__row {
    padding: 4px 8px;
  }
  .pf__list {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf.is-demo .pf__mac,
  .pf.is-demo .pf__win,
  .pf.is-demo .pf__mod,
  .pf.is-demo .pf__opt {
    animation: none !important;
  }
  .pf.is-demo .pf__mac {
    visibility: hidden !important;
  }
  .pf__opt {
    transition: none !important;
  }
}
