/* Arkenum funnel steps */

/* never show progress on the landing / topic step */
.progress[hidden] { display: none !important; }
body.is-landing .progress { display: none !important; }

/* progress bar */
.progress {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 560px; margin: 0 auto 34px;
}
.progress__back {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(231,196,99,.3); background: rgba(18,11,34,.6);
  color: var(--gold); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.progress__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.progress__back:hover { background: rgba(231,196,99,.12); border-color: var(--gold); transform: translateX(-2px); }
.progress__track {
  flex: 1; height: 5px; border-radius: 999px;
  background: rgba(231,196,99,.12); overflow: hidden;
}
.progress__bar {
  height: 100%; width: 20%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  box-shadow: 0 0 12px rgba(231,196,99,.5);
  transition: width .5s cubic-bezier(.2,.9,.3,1);
}
.progress__count {
  flex: none; font-family: var(--font-display); font-size: .82rem;
  letter-spacing: .08em; color: var(--ink-soft);
}
.progress__count span:first-child { color: var(--gold-2); }

/* step icon + copy */
.step-icon {
  width: 54px; height: 54px; margin: 0 auto 18px; display: block;
  fill: none; stroke: var(--gold); stroke-width: 3; opacity: .9;
  filter: drop-shadow(0 0 14px rgba(231,196,99,.35));
  animation: stepIconIn .6s cubic-bezier(.2,.9,.3,1) both, iconGlow 4s ease-in-out infinite;
}
@keyframes stepIconIn { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: .9; transform: none; } }
@keyframes iconGlow { 0%,100% { filter: drop-shadow(0 0 10px rgba(231,196,99,.25)); } 50% { filter: drop-shadow(0 0 20px rgba(231,196,99,.5)); } }

.step-lead {
  color: var(--ink-soft); font-size: 1.12rem; line-height: 1.5;
  max-width: 42ch; margin: 0 auto 28px;
}
.step-subtitle {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
  color: var(--gold-2); margin: 26px 0 12px;
}
.step-hint-mini { color: var(--ink-mute); font-size: .95rem; font-style: italic; margin: 8px 0 0; }

.step-why {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 22px auto 0; padding: 9px 16px; border-radius: 999px;
  background: rgba(231,196,99,.06); border: 1px solid rgba(231,196,99,.14);
  color: var(--ink-mute); font-size: .92rem;
}
.step-why__icon { color: var(--gold); }

/* ————— Redesigned funnel fields ————— */
.quiz-step[data-step="birth"] .field,
.quiz-step[data-step="city"] .field,
.quiz-step[data-step="name"] .field {
  max-width: 340px;
  margin: 0 auto 8px;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(231,196,99,.55), rgba(109,75,216,.3) 50%, rgba(231,196,99,.55));
  box-shadow: 0 18px 50px rgba(8,4,20,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow .3s, transform .3s;
}
.quiz-step[data-step="birth"] .field:hover,
.quiz-step[data-step="city"] .field:hover,
.quiz-step[data-step="name"] .field:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(231,196,99,.14), 0 18px 50px rgba(8,4,20,.55);
}
.quiz-step[data-step="birth"] .field:focus-within,
.quiz-step[data-step="city"] .field:focus-within,
.quiz-step[data-step="name"] .field:focus-within {
  box-shadow: 0 0 0 3px rgba(231,196,99,.2), 0 22px 60px rgba(231,196,99,.22);
}

.quiz-step[data-step="birth"] .field__input,
.quiz-step[data-step="city"] .field__input,
.quiz-step[data-step="name"] .field__input {
  position: relative;
  border-radius: 21px;
  padding: 24px 22px;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: .03em;
  background:
    radial-gradient(130% 130% at 50% -10%, rgba(52,34,100,.6), rgba(10,7,19,.96) 72%);
  transition: background .3s;
}

/* decorative star accents flanking the field value */
.quiz-step[data-step="birth"] .field::before,
.quiz-step[data-step="city"] .field::before,
.quiz-step[data-step="name"] .field::before,
.quiz-step[data-step="birth"] .field::after,
.quiz-step[data-step="city"] .field::after,
.quiz-step[data-step="name"] .field::after {
  content: '';
  position: absolute; top: 50%; width: 5px; height: 5px;
  margin-top: -2.5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(231,196,99,.7);
  opacity: .7; z-index: 3; pointer-events: none;
}
.quiz-step[data-step="birth"] .field::before,
.quiz-step[data-step="city"] .field::before,
.quiz-step[data-step="name"] .field::before { left: 18px; }
.quiz-step[data-step="birth"] .field::after,
.quiz-step[data-step="city"] .field::after,
.quiz-step[data-step="name"] .field::after { right: 18px; }
.field--city::before, .field--city::after,
.field--name::before, .field--name::after { display: none; }

/* date field: calendar accent + big readout */
.quiz-step[data-step="birth"] .field__input--date {
  font-family: var(--font-display);
  letter-spacing: .12em;
  color: var(--gold-2);
}
.quiz-step[data-step="birth"] .field__input--date::-webkit-datetime-edit {
  text-align: center; width: 100%;
}
.quiz-step[data-step="birth"] .field__input--date::-webkit-calendar-picker-indicator {
  filter: invert(78%) sepia(38%) saturate(560%) hue-rotate(0deg) brightness(1.05);
  cursor: pointer; opacity: .85; transform: scale(1.25); margin-left: 6px;
}
.quiz-step[data-step="birth"] .field__input--date::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

/* small mystic hint row under the input */
.field-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 20px; color: var(--ink-mute); font-size: .95rem; font-style: italic;
}
.field-hint svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 2.4; opacity: .8; }

/* city / name fields with inline icon */
.field--city, .field--name { position: relative; }
.field--city .field__icon,
.field--name .field__icon {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; z-index: 2; pointer-events: none;
  fill: none; stroke: var(--gold); stroke-width: 2; opacity: .75;
  transition: opacity .25s, transform .25s;
}
.field--city:focus-within .field__icon,
.field--name:focus-within .field__icon { opacity: 1; transform: translateY(-50%) scale(1.08); }
.quiz-step[data-step="city"] .field--city .field__input,
.quiz-step[data-step="name"] .field--name .field__input {
  text-align: left; padding-left: 58px;
}

/* gender cards */
.gender-grid { gap: 16px; margin-bottom: 26px; }
.gender-btn {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 16px; border-radius: 18px;
  transition: border-color .25s, background .25s, transform .2s, box-shadow .25s;
}
.gender-btn__icon {
  width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3;
  opacity: .8; transition: opacity .25s, transform .25s;
}
.gender-btn span { font-family: var(--font-display); letter-spacing: .06em; font-size: 1.05rem; }
.gender-btn:hover { transform: translateY(-3px); border-color: rgba(231,196,99,.5); }
.gender-btn.is-selected {
  background: rgba(231,196,99,.09);
  box-shadow: 0 12px 34px rgba(231,196,99,.16), inset 0 0 0 1px rgba(231,196,99,.4);
}
.gender-btn.is-selected .gender-btn__icon { opacity: 1; transform: scale(1.08); }

/* cosmic loader */
.loader-cosmic { position: relative; width: 130px; height: 130px; margin: 30px auto 22px; }
.loader-cosmic__ring {
  position: absolute; inset: 28px; width: auto; height: auto;
  fill: none; stroke: var(--gold); stroke-width: 3; opacity: .9;
  filter: drop-shadow(0 0 16px rgba(231,196,99,.45));
  animation: loaderPulse 2.4s ease-in-out infinite;
}
.loader-cosmic__orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(231,196,99,.16);
  border-top-color: var(--gold);
  animation: spin 1.4s linear infinite;
}
.loader-cosmic__orbit::before {
  content: ''; position: absolute; top: -4px; left: 50%; margin-left: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 12px var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%,100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.loader-text { transition: opacity .25s; }

/* pick counter dots */
.pick-counter { display: flex; justify-content: center; gap: 12px; margin: 0 0 26px; }
.pick-counter__dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(231,196,99,.4); background: transparent;
  transition: background .3s, box-shadow .3s, transform .3s;
}
.pick-counter__dot.is-on {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 12px rgba(231,196,99,.6); transform: scale(1.15);
}

/* staggered pick cards */
.pick-card { animation: pickIn .5s cubic-bezier(.2,.9,.3,1) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes pickIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .step-icon, .loader-cosmic__ring, .loader-cosmic__orbit, .pick-card { animation: none; }
}
