.ke-intake-gate {
  align-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 182, 113, 0.18), transparent 28%),
    linear-gradient(155deg, rgba(26, 40, 48, 0.98), rgba(15, 29, 36, 0.98));
  display: none;
  inset: 0;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 9998;
}

.ke-intake-gate.show {
  display: flex;
}

.ke-intake-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 182, 113, 0.1), transparent 34%),
    linear-gradient(180deg, #17252d 0%, #101c23 100%);
  border: 1px solid rgba(217, 182, 113, 0.62);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(253, 251, 247, 0.04) inset;
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  width: min(430px, 100%);
}

.ke-intake-top {
  background:
    linear-gradient(135deg, rgba(217, 182, 113, 0.08), transparent 42%),
    #14232b;
  border-bottom: 1px solid rgba(217, 182, 113, 0.18);
  color: #fdfbf7;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px 1fr;
  padding: 18px;
}

.ke-intake-avatar {
  border: 2px solid #d9b671;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(217, 182, 113, 0.12);
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.ke-intake-kicker {
  color: #d9b671;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ke-intake-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 4px;
}

.ke-intake-subtitle {
  color: rgba(253, 251, 247, 0.72);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
}

.ke-intake-progress-wrap {
  background: rgba(253, 251, 247, 0.12);
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
}

.ke-intake-progress {
  background: linear-gradient(90deg, #d9b671, #fff0b9);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 220ms ease;
  width: 0;
}

.ke-intake-body {
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.02), rgba(253, 251, 247, 0));
  overflow-y: auto;
  padding: 20px 18px 18px;
  -webkit-overflow-scrolling: touch;
}

.ke-intake-nav {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ke-intake-back {
  background: rgba(253, 251, 247, 0.04);
  border: 1px solid rgba(217, 182, 113, 0.28);
  border-radius: 999px;
  color: rgba(253, 251, 247, 0.76);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 30px;
  padding: 0 12px;
}

.ke-intake-back[disabled] {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

.ke-intake-count {
  color: #d29a35;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.ke-intake-question {
  color: #fdf7ec;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.ke-intake-area {
  color: rgba(226, 234, 232, 0.7);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 0;
}

.ke-intake-options {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.ke-intake-option {
  align-items: flex-start;
  background: rgba(253, 251, 247, 0.045);
  border: 1px solid rgba(217, 182, 113, 0.28);
  border-radius: 14px;
  color: #fdf7ec;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  text-align: left;
}

.ke-intake-option::before {
  align-items: center;
  border: 2px solid rgba(217, 182, 113, 0.46);
  border-radius: 50%;
  content: "";
  display: flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 17px;
  justify-content: center;
  line-height: 1;
  width: 17px;
}

.ke-intake-option.is-multi::before {
  border-radius: 5px;
}

.ke-intake-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ke-intake-option-copy strong {
  font-size: 13px;
  line-height: 1.15;
}

.ke-intake-option-copy small {
  color: rgba(226, 234, 232, 0.62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.ke-intake-option.is-selected {
  background:
    linear-gradient(135deg, rgba(217, 182, 113, 0.18), rgba(217, 182, 113, 0.04)),
    #15262e;
  border-color: #d9b671;
  color: #fdfbf7;
  box-shadow: 0 0 0 1px rgba(217, 182, 113, 0.08) inset;
}

.ke-intake-option.is-selected::before {
  background: #d9b671;
  box-shadow: inset 0 0 0 4px #14232b;
  border-color: #d9b671;
}

.ke-intake-option.is-multi.is-selected::before {
  box-shadow: none;
  color: #1a2830;
  content: "\2713";
}

.ke-intake-option.is-selected .ke-intake-option-copy small {
  color: rgba(253, 251, 247, 0.72);
}

.ke-intake-detail,
.ke-intake-textarea {
  background: rgba(253, 251, 247, 0.055);
  border: 1px solid rgba(217, 182, 113, 0.24);
  border-radius: 16px;
  box-sizing: border-box;
  color: #fdf7ec;
  font: 800 14px/1.4 "DM Sans", sans-serif;
  margin-top: 14px;
  min-height: 104px;
  outline: none;
  padding: 13px;
  resize: none;
  width: 100%;
}

.ke-intake-detail::placeholder,
.ke-intake-textarea::placeholder {
  color: rgba(226, 234, 232, 0.48);
}

.ke-intake-detail {
  min-height: 78px;
}

.ke-intake-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-top: 18px;
}

.ke-intake-next,
.ke-intake-skip,
.ke-intake-finish {
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 16px;
}

.ke-intake-next,
.ke-intake-finish {
  background: #d9b671;
  border: 1px solid rgba(217, 182, 113, 0.62);
  color: #1a2830;
}

.ke-intake-next[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.ke-intake-skip {
  background: rgba(253, 251, 247, 0.03);
  border: 1px solid rgba(217, 182, 113, 0.2);
  color: rgba(253, 251, 247, 0.66);
}

.ke-intake-complete {
  align-items: center;
  color: #fdf7ec;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  justify-content: center;
  padding: 36px 24px;
  text-align: center;
}

.ke-intake-complete img {
  border-radius: 50%;
  height: 92px;
  object-fit: cover;
  width: 92px;
}

.ke-intake-build-orbit {
  align-items: center;
  background: radial-gradient(circle, rgba(217, 182, 113, 0.2), transparent 68%);
  border: 1px solid rgba(217, 182, 113, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(217, 182, 113, 0.18);
  display: flex;
  height: 112px;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  width: 112px;
}

.ke-intake-build-orbit::before {
  animation: intake-spin 1.6s linear infinite;
  border: 3px solid rgba(217, 182, 113, 0.18);
  border-top-color: #d9b671;
  border-radius: 50%;
  content: "";
  inset: -7px;
  position: absolute;
}

.ke-intake-build-orbit.is-ready::before {
  animation: none;
  border-color: rgba(217, 182, 113, 0.72);
  box-shadow: 0 0 24px rgba(217, 182, 113, 0.22);
}

.ke-intake-build-orbit img {
  border: 2px solid rgba(217, 182, 113, 0.86);
  position: relative;
}

.ke-intake-complete h2 {
  color: #fdf7ec;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  line-height: 1.06;
  margin: 8px 0 10px;
  max-width: 320px;
}

.ke-intake-complete p {
  color: rgba(226, 234, 232, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  max-width: 330px;
}

.ke-intake-build-bars {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  width: min(260px, 100%);
}

.ke-intake-build-bars i {
  animation: intake-glow 1.4s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(217, 182, 113, 0.2), #d9b671, rgba(217, 182, 113, 0.2));
  border-radius: 999px;
  display: block;
  height: 7px;
  opacity: 0.44;
}

.ke-intake-build-bars i:nth-child(2) {
  animation-delay: 0.18s;
  width: 78%;
}

.ke-intake-build-bars i:nth-child(3) {
  animation-delay: 0.36s;
  width: 58%;
}

.ke-intake-redirect {
  color: #d9b671;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-top: 22px;
  text-transform: uppercase;
}

@keyframes intake-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes intake-glow {
  0%, 100% {
    opacity: 0.32;
    transform: scaleX(0.86);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 520px) {
  .ke-intake-gate {
    align-items: stretch;
    padding: 0;
  }

  .ke-intake-card {
    border-radius: 0;
    max-height: none;
    min-height: 100%;
    width: 100%;
  }

  .ke-intake-top {
    padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 18px;
  }

  .ke-intake-question {
    font-size: 27px;
  }
}
