/* RELAY profile experience: intentionally loaded after sequence-ui. */
.relay-profile-picker {
  min-height: 100vh;
  padding: clamp(38px, 6vh, 72px) clamp(22px, 5vw, 72px);
  place-content: center;
  background:
    radial-gradient(700px 430px at 50% 38%, rgb(125 32 73 / .12), transparent 68%),
    radial-gradient(560px 380px at 68% 70%, rgb(52 83 162 / .09), transparent 72%),
    #06070c;
}
.relay-profile-picker__ambient { width: min(680px, 62vw); opacity: .025; }
.relay-profile-picker__head > img { width: 150px; height: auto; margin-bottom: 24px; }
.relay-profile-picker__head > p { font-size: 9px; letter-spacing: .28em; }
.relay-profile-picker__head h1 { margin-top: 12px; font-size: clamp(46px, 5.4vw, 74px); letter-spacing: -.065em; }
.relay-profile-picker__head > span { margin-top: 12px; font-size: 12px; }
.relay-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 196px));
  width: min(980px, calc(100vw - 160px));
  min-width: 0;
  justify-self: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 28px);
  margin: 38px auto 0;
}
.relay-profile {
  display: flex;
  width: auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 17px;
  overflow: hidden;
  border: 1px solid rgb(223 227 238 / .12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(18 23 34 / .9), rgb(7 10 17 / .96));
  box-shadow: 0 22px 58px rgb(0 0 0 / .28), inset 0 1px rgb(255 255 255 / .025);
  text-align: left;
}
.relay-profile:hover,
.relay-profile:focus-visible {
  border-color: rgb(213 71 135 / .55);
  box-shadow: 0 32px 80px rgb(0 0 0 / .48), 0 0 0 1px rgb(184 52 111 / .12);
  transform: translateY(-7px) scale(1.012);
}
.relay-profile__frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at 40% 28%, #26324d, #111725 58%, #080c14);
}
.relay-profile__frame::before,
.relay-profile__frame::after,
.relay-profile__signal { display: none; }
.relay-profile__avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at 50% 38%, rgb(74 92 133 / .55), rgb(8 12 21 / .96) 67%);
  box-shadow: none;
  color: #eef2fb;
  font-size: 46px;
  font-weight: 720;
}
.relay-profile__avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform .45s cubic-bezier(.16,1,.3,1), filter .3s; }
.relay-profile:hover .relay-profile__avatar img { transform: scale(1.065); filter: saturate(1.06) contrast(1.025); }
.relay-profile__name { margin: 15px 16px 0; color: #f2f4f9; font-size: 15px; line-height: 1.25; }
.relay-profile__enter { margin: 8px 16px 0; justify-content: space-between; color: #7c879a; font-size: 9px; letter-spacing: .03em; }
.relay-profile:hover .relay-profile__enter { color: #e2a7c0; }
.relay-profile-picker__note { margin-top: 26px; font-size: 8px; }

@media (max-width: 760px) {
  .relay-profile-picker { padding: 38px 16px 88px; place-content: start center; overflow-y: auto; }
  .relay-profile-picker__head h1 { font-size: 46px; }
  .relay-profile-grid { width: min(100%, 440px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 30px; }
  .relay-profile { width: auto; }
  .relay-profile__name { margin-inline: 13px; }
  .relay-profile__enter { margin-inline: 13px; }
}
