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

.ft {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.ft__open {
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  background: #17141a;
  cursor: pointer;
}

.ft__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 20, 26, 0.38);
}

.ft__dialog {
  position: relative;
  width: min(84%, 240px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ft__marker {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 16px;
  width: calc(100% - 16px);
  height: 34px;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.16);
  border: 2px solid #2f6df6;
  box-sizing: border-box;
  transform: translateY(calc(var(--i, 0) * 40px));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.ft__field {
  position: relative;
  z-index: 1;
  height: 34px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  color: #17141a;
  background: transparent;
  cursor: pointer;
}

.ft__field:focus-visible {
  outline: none;
}

@media (max-width: 340px) {
  .ft__dialog {
    padding: 12px;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft__marker {
    transition: none !important;
  }
}
