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

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

.paperui {
  box-sizing: border-box;
  width: clamp(240px, 78vw, 328px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 0 #e7dccb;
}

.paperui__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fbf6ec;
  box-shadow: inset 0 3px 0 #e7dccb;
}

.paperui__ic {
  color: #5c5048;
  font-size: 16px;
  line-height: 1;
}

.paperui__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #2a2320;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
}

.paperui__input::placeholder {
  color: #5c5048;
}

.paperui__input:focus-visible {
  outline: 2px solid #6a8db5;
  outline-offset: 4px;
}

.paperui__row {
  display: flex;
  gap: 12px;
}

.paperui__btn {
  flex: 1 1 0;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  animation: btnPress 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.paperui__btn--solid {
  background: #b97b71;
  color: #ffffff;
  box-shadow: 0 6px 0 rgba(42, 35, 32, 0.28);
}

.paperui__btn--ghost {
  background: #ffffff;
  color: #2a2320;
  box-shadow: 0 6px 0 #e7dccb, inset 0 0 0 2px #e7dccb;
  animation-delay: -1s;
}

.paperui__btn:focus-visible {
  outline: 3px solid #6a8db5;
  outline-offset: 3px;
}

@keyframes btnPress {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .paperui {
    width: 256px;
    padding: 12px;
    gap: 12px;
  }
  .paperui__field {
    padding: 8px 12px;
  }
  .paperui__ic {
    font-size: 13px;
  }
  .paperui__input {
    font-size: 11px;
  }
  .paperui__row {
    gap: 8px;
  }
  .paperui__btn {
    padding: 8px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paperui__btn {
    animation: none !important;
    transform: none;
  }
}
