#fh-profile-dialog {
  --rf-surface: #f8f5ff;
  --rf-ink: #25203f;
  --rf-muted: #5f5475;
  --rf-line: #e2daef;
  --rf-accent: #7051c4;
  box-sizing: border-box;
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c8b7ed;
  border-radius: clamp(20px, 4vw, 30px);
  background: var(--rf-surface);
  color: var(--rf-ink);
  box-shadow: 0 28px 90px #08051fa8, 0 0 48px #8e70e333;
  font: 400 15px/1.45 system-ui, sans-serif;
  text-align: start;
}

#fh-profile-dialog:focus,
#fh-profile-dialog h2:focus {
  outline: none;
}

#fh-profile-dialog::backdrop {
  background-image:
    url("../assets/images/register-stars.svg"),
    radial-gradient(circle at 14% 22%, #f1e7ff80 0 1px, transparent 1.8px),
    radial-gradient(circle at 67% 35%, #a9dcff64 0 1px, transparent 1.8px),
    radial-gradient(ellipse at 12% 16%, #38245f, transparent 58%),
    radial-gradient(ellipse at 86% 84%, #252750, transparent 59%),
    linear-gradient(135deg, #130c29, #17162f);
  background-size: 640px 480px, 173px 147px, 241px 193px, auto, auto, auto;
  background-position: 0 0, 26px 12px, -14px 18px, 0 0, 0 0, 0 0;
}

#fh-profile-dialog * {
  box-sizing: border-box;
}

#fh-profile-dialog .rf-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

#fh-profile-dialog .rf-header,
#fh-profile-dialog .rf-body,
#fh-profile-dialog .rf-footer {
  padding-inline: clamp(14px, 4vw, 28px);
}

#fh-profile-dialog .rf-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(14px, 3vw, 22px) 16px;
  border-bottom: 1px solid #bba9e4;
  background:
    radial-gradient(ellipse at 86% -15%, #8660c476, transparent 64%),
    linear-gradient(125deg, #262046, #36265d 65%, #28234f);
  color: #fcf8ff;
}

#fh-profile-dialog .rf-header::before,
#fh-profile-dialog .rf-header::after {
  position: absolute;
  z-index: -1;
  width: 22px;
  aspect-ratio: 1;
  background: #e1d0ff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: .56;
  content: "";
}

#fh-profile-dialog .rf-header::before {
  inset: auto 12% 20px auto;
}

#fh-profile-dialog .rf-header::after {
  inset: auto 20% 43px auto;
  width: 11px;
  background: #9ee6f6;
  opacity: .75;
}

#fh-profile-dialog .rf-top,
#fh-profile-dialog .rf-track,
#fh-profile-dialog .rf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#fh-profile-dialog .rf-top {
  flex-wrap: wrap;
  gap: 8px 12px;
}

#fh-profile-dialog .rf-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-inline-start: auto;
}

#fh-profile-dialog .rf-language-picker {
  min-width: 0;
}

#fh-profile-dialog .rf-language-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #e4d8ff9c;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #eee5ff);
  color: #39265d;
  box-shadow: 0 2px 0 #a18cc8;
  font-size: 13px;
  font-weight: 650;
}

#fh-profile-dialog .rf-language-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fh-profile-dialog .rf-language-trigger .rf-action-icon svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}

#fh-profile-dialog .rf-language-picker:has(:popover-open) .rf-language-trigger .rf-action-icon svg {
  transform: rotate(-90deg);
}

#fh-profile-dialog .rf-language-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5c3ef;
  border-radius: 15px;
  background: #fcfaff;
  color: var(--rf-ink);
  box-shadow: 0 12px 30px #170e3f52;
}

#fh-profile-dialog .rf-language-menu:popover-open {
  display: grid;
  gap: 2px;
}

#fh-profile-dialog .rf-language-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: start;
}

#fh-profile-dialog .rf-language-option:is([aria-pressed="true"], :hover) {
  background: #efe5ff;
  color: #4b2d7d;
}

#fh-profile-dialog .rf-language-menu .rf-language-option:focus-visible {
  outline-color: var(--rf-accent);
  outline-offset: -2px;
}

#fh-profile-dialog .rf-language-flag {
  display: block;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border: 1px solid #291b4620;
  border-radius: 50%;
  object-fit: cover;
}

#fh-profile-dialog .rf-language-option .rf-action-icon svg {
  width: 17px;
  height: 17px;
  color: #6a46b7;
}

#fh-profile-dialog .rf-language-option[aria-pressed="false"] .rf-action-icon {
  visibility: hidden;
}

#fh-profile-dialog .rf-kicker {
  color: #eadffd;
  font-size: 13px;
  font-weight: 650;
}

#fh-profile-dialog .rf-profile-title {
  color: #fff;
  font: 700 clamp(19px, 3vw, 24px)/1.1 "Crimson Pro", Georgia, serif;
}

#fh-profile-dialog .rf-track {
  margin-top: 16px;
}

#fh-profile-dialog .rf-meter {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-width: 0;
  height: 16px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #e1ccff66;
  border-radius: 999px;
  background: linear-gradient(180deg, #120c2b, #251841);
  box-shadow: inset 0 2px 5px #0b061e98, 0 0 12px #c0a0ff24;
}

#fh-profile-dialog .rf-meter-fill {
  position: relative;
  display: block;
  width: var(--rf-progress-to);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, #fff6, transparent 55%),
    linear-gradient(90deg, #9e7bfa, #cfafff 58%, #9be7fc);
  box-shadow: inset 0 1px 0 #fff9, 0 0 9px #b397ff9c;
}

#fh-profile-dialog .rf-meter-fill::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, #fff8 50%, transparent 65%);
  transform: translateX(-110%);
  content: "";
}

#fh-profile-dialog .rf-meter-fill::after {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #fffaff;
  box-shadow: 0 0 7px #fff;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

#fh-profile-dialog .rf-stage-count {
  padding: 3px 9px;
  border: 1px solid #dfcfff66;
  border-radius: 999px;
  color: #fcf5ff;
  background: linear-gradient(150deg, #7256a873, #21173d);
  box-shadow: inset 0 1px 0 #fff2;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#fh-profile-dialog h2 {
  margin: 11px 0 4px;
  color: #fff;
  font: 700 clamp(27px, 5vw, 36px)/1.06 "Crimson Pro", Georgia, serif;
}

#fh-profile-dialog .rf-description,
#fh-profile-dialog .rf-note {
  margin: 0;
}

#fh-profile-dialog .rf-description {
  color: #e6daf9;
}

#fh-profile-dialog .rf-note {
  color: var(--rf-muted);
}

#fh-profile-dialog .rf-body {
  min-height: 0;
  padding-block: 20px;
  overflow: auto;
  scrollbar-color: #c1addc var(--rf-surface);
  overscroll-behavior: contain;
}

#fh-profile-dialog .rf-options,
#fh-profile-dialog .rf-fields {
  display: grid;
  gap: 12px;
}

#fh-profile-dialog .rf-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#fh-profile-dialog .rf-role-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#fh-profile-dialog button,
#fh-profile-dialog input,
#fh-profile-dialog select {
  font: inherit;
}

#fh-profile-dialog button {
  cursor: pointer;
}

#fh-profile-dialog button:disabled {
  opacity: .65;
  cursor: wait;
}

#fh-profile-dialog :focus-visible {
  outline: 2px solid var(--rf-accent);
  outline-offset: 3px;
}

#fh-profile-dialog .rf-header button:focus-visible {
  outline-color: #efe4ff;
}

#fh-profile-dialog .rf-choice {
  min-width: 0;
  padding: 14px 12px;
  text-align: start;
  border: 1px solid var(--rf-line);
  border-radius: 18px;
  background: #fff;
  color: var(--rf-ink);
  box-shadow: 0 3px 8px #4028680b;
}

#fh-profile-dialog .rf-role {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

#fh-profile-dialog .rf-goal-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 13px);
  min-height: 74px;
  padding: 11px clamp(8px, 2vw, 14px);
}

#fh-profile-dialog .rf-goal-icon {
  display: grid;
  place-items: center;
  width: clamp(34px, 8vw, 45px);
  aspect-ratio: 1;
  border: 1px solid #fff9;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px #33205616;
}

#fh-profile-dialog .rf-goal-icon-ms {
  background: #f3e7ff;
  color: #6943a2;
}

#fh-profile-dialog .rf-goal-icon-ps {
  background: #e4edff;
  color: #355cad;
}

#fh-profile-dialog .rf-goal-icon-auto {
  background: #e0f5f4;
  color: #236d78;
}

#fh-profile-dialog .rf-goal-icon-military {
  background: #fff0d9;
  color: #87601d;
}

#fh-profile-dialog .rf-goal-icon.rf-action-icon svg {
  width: 65%;
  height: 65%;
}

#fh-profile-dialog .rf-choice[aria-pressed="true"] {
  border-color: var(--rf-accent);
  background: #f0e8ff;
  box-shadow: inset 0 0 0 1px var(--rf-accent);
}

#fh-profile-dialog .rf-role-icon {
  display: block;
  width: clamp(62px, 11vw, 88px);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

#fh-profile-dialog .rf-choice strong,
#fh-profile-dialog .rf-choice small {
  display: block;
  overflow-wrap: anywhere;
}

#fh-profile-dialog .rf-choice small {
  margin-top: 3px;
  color: var(--rf-muted);
  font-size: 13px;
}

#fh-profile-dialog .rf-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

#fh-profile-dialog .rf-options + .rf-field {
  margin-top: 16px;
}

#fh-profile-dialog .rf-field + .rf-field {
  margin-top: 12px;
}

#fh-profile-dialog input,
#fh-profile-dialog select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #bdb0d3;
  border-radius: 12px;
  background: #fff;
  color: var(--rf-ink);
}

#fh-profile-dialog .rf-name-fields,
#fh-profile-dialog .rf-gender-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#fh-profile-dialog .rf-name-fields .rf-field {
  margin-top: 0;
}

#fh-profile-dialog .rf-gender {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

#fh-profile-dialog .rf-gender legend {
  padding: 0 0 6px;
  font-weight: 600;
}

#fh-profile-dialog .rf-gender-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-height: 78px;
  padding: 5px clamp(8px, 2.5vw, 16px);
  font-weight: 700;
}

#fh-profile-dialog .rf-gender-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(60px, 18vw, 114px);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

#fh-profile-dialog .rf-birth-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px 13px;
  text-align: start;
  border: 1px solid #c8b9e3;
  border-radius: 14px;
  background: #fff;
  color: var(--rf-ink);
  box-shadow: 0 3px 8px #4028680b;
}

#fh-profile-dialog .rf-birth-trigger::after {
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  margin-inline-end: 3px;
  border-right: 2px solid #7051c4;
  border-bottom: 2px solid #7051c4;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

#fh-profile-dialog .rf-birth-trigger .rf-action-icon {
  padding: 4px;
  border-radius: 9px;
  background: #eee5ff;
  color: #6244ad;
}

#fh-profile-dialog .rf-birth-trigger svg {
  width: 21px;
  height: 21px;
}

#fh-profile-dialog .rf-region-picker,
#fh-profile-dialog .rf-location-list {
  display: grid;
  gap: 10px;
}

#fh-profile-dialog .rf-region-context,
#fh-profile-dialog .rf-region-empty {
  margin: 0;
  color: var(--rf-muted);
}

#fh-profile-dialog .rf-region-context {
  font-size: 13px;
  font-weight: 650;
}

#fh-profile-dialog .rf-region-search {
  position: relative;
}

#fh-profile-dialog .rf-region-search .rf-action-icon {
  position: absolute;
  inset: 0 auto 0 12px;
  color: #7557ab;
  pointer-events: none;
}

#fh-profile-dialog .rf-region-search input {
  min-height: 46px;
  padding-inline-start: 46px;
  border-color: #c8b9e3;
  border-radius: 14px;
}

#fh-profile-dialog .rf-location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 53px;
  padding: 7px 11px;
  text-align: start;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  background-color: #fff;
  color: var(--rf-ink);
  box-shadow: 0 2px 6px #3723620e;
}

#fh-profile-dialog .rf-location-row[hidden] {
  display: none;
}

#fh-profile-dialog .rf-location-row[aria-pressed="true"] {
  border-color: #9a77d6;
  background-color: #f0e7ff;
  box-shadow: inset 0 0 0 1px #cdb8ef;
}

#fh-profile-dialog .rf-location-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eee5ff;
  color: #6743ad;
}

#fh-profile-dialog .rf-location-mark.rf-action-icon svg,
#fh-profile-dialog .rf-location-indicator .rf-action-icon svg {
  width: 19px;
  height: 19px;
}

#fh-profile-dialog .rf-location-name {
  flex: 1;
  min-width: 0;
  font-weight: 650;
}

#fh-profile-dialog .rf-location-indicator {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #7459a9;
}

#fh-profile-dialog .rf-location-row[aria-pressed="true"] .rf-location-indicator {
  background: #6a46b7;
  color: #fff;
}

#fh-profile-dialog .rf-invite-code {
  display: flex;
  align-items: center;
  min-height: 49px;
  overflow: hidden;
  border: 1px solid #c8b9e3;
  border-radius: 14px;
  background: #fff;
}

#fh-profile-dialog .rf-invite-code:focus-within {
  outline: 2px solid var(--rf-accent);
  outline-offset: 2px;
}

#fh-profile-dialog .rf-invite-code:has(input[aria-invalid="true"]) {
  border-color: #992f3d;
  outline-color: #992f3d;
}

#fh-profile-dialog .rf-invite-prefix {
  align-self: stretch;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  padding-inline: 14px;
  border-inline-end: 1px solid #e6d9f7;
  background: #f1e8ff;
  color: #513285;
  font-weight: 750;
}

#fh-profile-dialog .rf-invite-code input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  letter-spacing: .13em;
  font-variant-numeric: tabular-nums;
}

#fh-profile-dialog .rf-footer {
  padding-block: 12px 15px;
  border-top: 1px solid var(--rf-line);
  background: #fcfaff;
}

#fh-profile-dialog .rf-error {
  margin: 0 0 8px;
  color: #992f3d;
}

#fh-profile-dialog .rf-error:empty {
  margin: 0;
}

#fh-profile-dialog .rf-exit,
#fh-profile-dialog .rf-back,
#fh-profile-dialog .rf-primary {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #d8cbe9;
  border-radius: 14px;
  background: #fff;
  color: var(--rf-ink);
  font-weight: 650;
}

#fh-profile-dialog .rf-exit {
  flex-shrink: 0;
  border-color: #e2d3ff59;
  background: #fcf6ff16;
  color: #fff1fd;
  font-size: 13px;
}

#fh-profile-dialog .rf-back {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: #d9c7ee;
  background-color: #f7f0ff;
  color: #472878;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px #53377c17;
}

#fh-profile-dialog .rf-back .rf-action-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #e9dcfa;
}

#fh-profile-dialog .rf-back .rf-action-icon svg {
  width: 21px;
  height: 21px;
}

#fh-profile-dialog .rf-primary {
  flex: 1;
  min-width: 0;
  padding-block: 10px;
  border-color: #5531a5;
  background: linear-gradient(112deg, #6136c3, #4a399c);
  color: #fff;
  box-shadow: 0 3px 0 #39247e, 0 6px 14px #6747bd36;
}

#fh-profile-dialog .rf-signout,
#fh-profile-dialog .rf-continue,
#fh-profile-dialog .rf-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#fh-profile-dialog .rf-action-icon {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
}

#fh-profile-dialog .rf-action-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

#fh-profile-dialog .rf-continue .rf-action-icon svg,
#fh-profile-dialog .rf-save .rf-action-icon svg {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 2px 3px #29175685);
}

@media (hover: hover) {
  #fh-profile-dialog .rf-choice:hover {
    border-color: var(--rf-accent);
  }

  #fh-profile-dialog .rf-goal-option:hover:not([aria-pressed="true"]),
  #fh-profile-dialog .rf-location-row:hover:not([aria-pressed="true"]) {
    border-color: #ac91db;
    background-color: #fbf7ff;
    box-shadow: 0 4px 12px #5e3b981b;
  }

  #fh-profile-dialog .rf-role:hover {
    background: #f5efff;
    box-shadow: inset 0 0 0 1px #bba6e7, 0 6px 18px #6e4cb51c;
  }

  #fh-profile-dialog .rf-role[aria-pressed="true"]:hover {
    background: #eee5ff;
    box-shadow: inset 0 0 0 1px var(--rf-accent), 0 6px 18px #6e4cb51c;
  }

  #fh-profile-dialog .rf-primary:hover:not(:disabled) {
    filter: brightness(1.09);
  }

  #fh-profile-dialog .rf-exit:hover:not(:disabled) {
    background: #fcf6ff2d;
  }

  #fh-profile-dialog .rf-back:hover:not(:disabled) {
    border-color: #be9de4;
    background-color: #efe3ff;
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px #53377c24;
  }
}

#fh-profile-dialog .rf-continue:active:not(:disabled),
#fh-profile-dialog .rf-save:active:not(:disabled) {
  box-shadow: inset 0 2px 5px #2816527d, 0 1px 0 #39247e;
  filter: brightness(.94);
}

@media (max-width: 620px) {
  #fh-profile-dialog .rf-role-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  #fh-profile-dialog .rf-role {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 12px;
    padding-block: 7px;
    text-align: start;
  }

  #fh-profile-dialog .rf-role-icon {
    width: clamp(49px, 13vw, 63px);
  }
}

@media (max-width: 380px) {
  #fh-profile-dialog {
    width: calc(100% - 16px);
  }

  #fh-profile-dialog .rf-actions {
    gap: 7px;
  }

  #fh-profile-dialog .rf-name-fields {
    gap: 8px;
  }

  #fh-profile-dialog .rf-back,
  #fh-profile-dialog .rf-primary {
    padding-inline: 9px;
  }
}

@media (max-height: 480px) {
  #fh-profile-dialog .rf-header,
  #fh-profile-dialog .rf-body {
    padding-block: 9px;
  }

  #fh-profile-dialog .rf-track {
    margin-top: 7px;
  }

  #fh-profile-dialog .rf-footer {
    padding-block: 8px;
  }
}

@media (max-height: 360px) {
  #fh-profile-dialog .rf-panel {
    display: block;
    overflow: auto;
    overscroll-behavior: contain;
  }

  #fh-profile-dialog .rf-body {
    overflow: visible;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #fh-profile-dialog .rf-language-menu {
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    transition: opacity 170ms ease, transform 190ms ease,
      display 190ms allow-discrete, overlay 190ms allow-discrete;
  }

  #fh-profile-dialog .rf-language-menu:popover-open {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    #fh-profile-dialog .rf-language-menu:popover-open {
      opacity: 0;
      transform: translateY(-6px) scale(.98);
    }
  }

  #fh-profile-dialog .rf-language-trigger,
  #fh-profile-dialog .rf-language-option {
    transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
  }

  #fh-profile-dialog .rf-language-trigger .rf-action-icon svg {
    transition: transform 190ms ease;
  }

  #fh-profile-dialog .rf-language-trigger:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 0 0 #a18cc8;
  }

  #fh-profile-dialog::backdrop {
    animation: rf-sky-drift 16s ease-in-out infinite alternate;
  }

  #fh-profile-dialog .rf-header::before,
  #fh-profile-dialog .rf-header::after {
    animation: rf-star-float 5s ease-in-out infinite alternate;
  }

  #fh-profile-dialog .rf-header::after {
    animation-delay: -2.5s;
  }

  #fh-profile-dialog .rf-meter-fill {
    animation: rf-meter-travel 440ms cubic-bezier(.22, .68, .27, 1);
  }

  #fh-profile-dialog .rf-meter-fill::before {
    animation: rf-meter-shine 570ms 100ms ease-out;
  }

  #fh-profile-dialog .rf-body[data-direction] {
    --rf-step-shift: 9px;
    animation: rf-step-in 220ms ease-out;
  }

  #fh-profile-dialog .rf-body[data-direction="back"] {
    --rf-step-shift: -9px;
  }

  #fh-profile-dialog .rf-choice,
  #fh-profile-dialog .rf-location-row,
  #fh-profile-dialog .rf-exit,
  #fh-profile-dialog .rf-back,
  #fh-profile-dialog .rf-continue,
  #fh-profile-dialog .rf-save {
    transition: border-color 190ms ease, background-color 190ms ease,
      box-shadow 190ms ease, filter 160ms ease, transform 170ms ease;
  }

  #fh-profile-dialog .rf-role-icon,
  #fh-profile-dialog .rf-goal-icon svg,
  #fh-profile-dialog .rf-location-indicator,
  #fh-profile-dialog .rf-signout svg,
  #fh-profile-dialog .rf-back svg,
  #fh-profile-dialog .rf-save svg,
  #fh-profile-dialog .rf-continue .rf-arrow {
    transition: transform 210ms cubic-bezier(.22, .68, .27, 1);
  }

  #fh-profile-dialog .rf-save-check {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 220ms cubic-bezier(.22, .68, .27, 1);
  }

  @media (hover: hover) {
    #fh-profile-dialog .rf-role:hover .rf-role-icon {
      transform: rotate(-7deg);
    }

    #fh-profile-dialog .rf-goal-option:hover .rf-goal-icon svg {
      transform: translateY(-2px) rotate(-5deg);
    }

    #fh-profile-dialog .rf-location-row:hover .rf-location-indicator {
      transform: translateX(3px);
    }

    #fh-profile-dialog .rf-language-trigger:hover:not(:disabled):not(:active) {
      transform: translateY(-1px);
      box-shadow: 0 3px 0 #a18cc8, 0 5px 10px #1c123d50;
    }

    #fh-profile-dialog .rf-save:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 4px 0 #39247e, 0 9px 19px #6747bd54;
    }

    #fh-profile-dialog .rf-save:hover:not(:disabled) svg {
      transform: translateY(-1px) rotate(-8deg) scale(1.08);
    }

    #fh-profile-dialog .rf-save:hover:not(:disabled) .rf-save-check {
      transform: scale(1.14);
    }

    #fh-profile-dialog .rf-continue:hover:not(:disabled) .rf-arrow,
    #fh-profile-dialog .rf-signout:hover:not(:disabled) svg {
      transform: translateX(3px);
    }

    #fh-profile-dialog .rf-back:hover:not(:disabled) svg {
      transform: translateX(-3px);
    }

    #fh-profile-dialog .rf-continue:hover:not(:disabled) .rf-continue-text {
      transform: translateY(-1px);
      text-shadow: 0 0 10px #eedcffbe;
    }
  }

  #fh-profile-dialog .rf-continue-text {
    transition: transform 180ms ease, text-shadow 180ms ease;
  }

  #fh-profile-dialog .rf-continue:active:not(:disabled) .rf-continue-text {
    transform: scale(.96);
  }

  #fh-profile-dialog .rf-back:active:not(:disabled) svg {
    transform: translateX(-4px);
  }

  #fh-profile-dialog .rf-back:active:not(:disabled) {
    box-shadow: inset 0 2px 5px #53377c2a;
  }

  #fh-profile-dialog .rf-goal-option:active,
  #fh-profile-dialog .rf-language-option:active,
  #fh-profile-dialog .rf-location-row:active {
    transform: scale(.985);
  }

  #fh-profile-dialog .rf-continue:active:not(:disabled) .rf-arrow {
    transform: translateX(4px);
  }

  #fh-profile-dialog .rf-save:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px #2816527d, 0 1px 0 #39247e;
  }

  #fh-profile-dialog .rf-save:active:not(:disabled) svg {
    transform: translateY(1px) scale(.9);
  }
}

@keyframes rf-sky-drift {
  to {
    background-position: 30px -36px, 8px -12px, 2px 43px, 0 0, 0 0, 0 0;
  }
}

@keyframes rf-star-float {
  to { transform: translate(5px, -8px) rotate(12deg); }
}

@keyframes rf-meter-travel {
  from { width: var(--rf-progress-from); }
  to { width: var(--rf-progress-to); }
}

@keyframes rf-meter-shine {
  to { transform: translateX(110%); }
}

@keyframes rf-step-in {
  from { opacity: .5; transform: translateX(var(--rf-step-shift)); }
  to { opacity: 1; transform: translateX(0); }
}

#fh-birth-dialog {
  --rf-date-row: 42px;
  box-sizing: border-box;
  width: min(458px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid #c8b7ed;
  border-radius: 24px;
  background: #f8f5ff;
  color: #25203f;
  box-shadow: 0 22px 64px #10062585;
  font: 400 15px/1.45 system-ui, sans-serif;
}

#fh-birth-dialog::backdrop {
  background: #130c32a8;
  backdrop-filter: blur(3px);
}

#fh-birth-dialog[data-closing] {
  pointer-events: none;
}

#fh-birth-dialog * {
  box-sizing: border-box;
}

#fh-birth-dialog .rf-date-frame {
  padding: clamp(12px, 4vw, 20px);
}

#fh-birth-dialog .rf-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

#fh-birth-dialog h2 {
  margin: 0;
  font: 700 clamp(23px, 5vw, 29px)/1.12 "Crimson Pro", Georgia, serif;
}

#fh-birth-dialog button {
  min-height: 44px;
  border: 1px solid #cdbfe3;
  border-radius: 13px;
  background: #fff;
  color: #3d2c66;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#fh-birth-dialog .rf-date-close {
  flex-shrink: 0;
}

#fh-birth-dialog .rf-date-close.fh-close-control {
  border-color: #cfbbea !important;
  background: linear-gradient(145deg, #fbf7ff, #ede1fb) !important;
  color: #52377e !important;
}

#fh-birth-dialog .rf-date-close.fh-close-control:is(:hover, :focus-visible) {
  border-color: #b396dd !important;
  background: linear-gradient(145deg, #f7efff, #e6d4f8) !important;
  color: #3f2469 !important;
}

#fh-birth-dialog .rf-date-close.fh-close-control:active {
  background: #e0cdf5 !important;
}

#fh-birth-dialog .rf-date-close.fh-close-control:focus-visible {
  outline-color: #7051c4;
}

#fh-birth-dialog .rf-date-columns {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(4px, 2vw, 10px);
}

#fh-birth-dialog .rf-date-caption {
  display: block;
  padding-block: 4px;
  color: #67577f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#fh-birth-dialog .rf-date-wheel {
  height: calc(5 * var(--rf-date-row));
  padding-block: calc(2 * var(--rf-date-row));
  overflow-y: auto;
  border-radius: 12px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
  mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
}

#fh-birth-dialog .rf-date-wheel::-webkit-scrollbar {
  display: none;
}

#fh-birth-dialog .rf-date-option {
  display: grid;
  place-items: center;
  height: var(--rf-date-row);
  padding-inline: 2px;
  border: 1px solid transparent;
  border-radius: 11px;
  background-color: transparent;
  color: #67577f;
  font-size: clamp(12px, 3.5vw, 15px);
  font-variant-numeric: tabular-nums;
  scroll-snap-align: center;
  cursor: pointer;
}

#fh-birth-dialog .rf-date-option[aria-selected="true"] {
  border-color: #b8a0ed;
  background-color: #ece1ff;
  box-shadow: inset 0 1px 0 #fff9;
  color: #35245c;
  font-weight: 750;
}

#fh-birth-dialog :focus-visible {
  outline: 2px solid #7051c4;
  outline-offset: 2px;
}

#fh-birth-dialog .rf-date-wheel:focus-visible {
  box-shadow: inset 0 0 0 1px #9b7ed6;
}

#fh-birth-dialog .rf-date-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

#fh-birth-dialog .rf-date-actions button {
  padding-inline: 13px;
}

#fh-birth-dialog .rf-date-confirm {
  flex: 1;
  border-color: #5531a5;
  background: linear-gradient(112deg, #6136c3, #4a399c);
  color: #fff;
  box-shadow: 0 3px 0 #39247e;
}

@media (max-height: 500px) {
  #fh-birth-dialog {
    --rf-date-row: 34px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #fh-birth-dialog::backdrop {
    animation: rf-date-backdrop-in 235ms ease-out both;
  }

  #fh-birth-dialog[data-closing]::backdrop {
    animation: rf-date-backdrop-out 170ms ease-in both;
  }

  #fh-birth-dialog .rf-date-option {
    transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
  }
}

@keyframes rf-date-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rf-date-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
