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

.pcs {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcs__form {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.pcs__field {
  display: grid;
  gap: 8px;
}

.pcs__labelRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.pcs__labelText {
  color: rgba(23, 20, 26, 0.82);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.pcs__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #ffffff;
  color: #17141a;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(14px) scale(0.86);
  transform-origin: left center;
  will-change: transform, opacity;
}

.pcs__badge--active {
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.pcs__badgeIcon {
  flex: 0 0 auto;
  color: #c93000;
}

.pcs__srAnnounce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pcs__inputWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pcs__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 0;
  background: rgba(23, 20, 26, 0.06);
  color: #17141a;
  caret-color: #17141a;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.pcs__input:focus {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pcs__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 20, 26, 0.78);
  cursor: pointer;
}
.pcs__toggle:hover {
  background: rgba(23, 20, 26, 0.08);
}
.pcs__toggle:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pcs__eyeHide {
  display: none;
}

.pcs--revealed .pcs__eyeShow {
  display: none;
}

.pcs--revealed .pcs__eyeHide {
  display: block;
}

.pcs::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(201, 48, 0, 0);
  transition: background-color 0.22s ease;
}

.pcs--warning::before {
  background: rgba(201, 48, 0, 0.12);
}

@media (max-width: 340px) {
  .pcs__form {
    max-width: 260px;
  }
  .pcs__input {
    font-size: 15px;
    padding-right: 32px;
  }
  .pcs__badgeText {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pcs__badge {
    transition: none;
  }
  .pcs::before {
    transition: none;
  }
}
