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

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

.pkf {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  box-sizing: border-box;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  text-align: center;
}

.pkf__label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(23, 20, 26, 0.64);
}

.pkf__field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(23, 20, 26, 0.04);
  border: 1px solid rgba(23, 20, 26, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
  --ring-alpha: 0;
}

.pkf__input {
  --ring-alpha: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #17141a;
  font-size: 16px;
  letter-spacing: 0.08em;
  width: 9.5em;
  font-family: inherit;
  box-shadow: 0 0 0 calc(2px + var(--ring-alpha) * 4px) rgba(47, 109, 246, calc(0.22 + var(--ring-alpha) * 0.58));
  border-radius: 8px;
}

.pkf__eyeBtn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  cursor: pointer;
}

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

.pkf__eyeShut {
  opacity: 0;
}

.pkf__eyeOpen {
  opacity: 1;
}

.pkf.is-open .pkf__eyeShut {
  opacity: 1;
}

.pkf.is-open .pkf__eyeOpen {
  opacity: 0;
}

.pkf__eyeOpen, .pkf__eyeShut {
  transition: opacity 220ms ease-out;
}

.pkf::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(47, 109, 246, 0);
  transition: background-color 0.22s ease;
}

.pkf.is-open::before {
  background: rgba(47, 109, 246, 0.12);
}

.pkf__hint {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.58);
}

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

.pkf__kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #17141a;
  background: rgba(23, 20, 26, 0.08);
  border: 1px solid rgba(23, 20, 26, 0.2);
  border-radius: 4px;
  padding: 4px 4px;
  line-height: 1.3;
}

@media (max-width: 340px) {
  .pkf {
    gap: 12px;
    padding: 16px;
  }
  .pkf__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pkf__input {
    transition: none;
  }
  .pkf__eyeOpen, .pkf__eyeShut {
    transition: none;
  }
  .pkf::before {
    transition: none;
  }
}
