/* Alvartus — «Совместимость»: выбор знаков, кольцо с процентом, стихии, приглашение. Сначала телефон. Розовый и фиолет. */

.alv-el--fire { --alv-el: #ff7a3d; }
.alv-el--earth { --alv-el: #5fd38a; }
.alv-el--air { --alv-el: #9fd0ff; }
.alv-el--water { --alv-el: #4da3ff; }

/* выбор знаков */
.alv-compat-form { max-width: 1000px; margin: 0 auto; }
.alv-compat-form__pickers { display: grid; gap: 18px; }
.alv-compat-form__plus { display: grid; place-items: center; color: #ff8fc8; }
.alv-compat-form__plus .alv-ico { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(255, 95, 168, .8)); }
.alv-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.alv-pick__legend { margin-bottom: 12px; padding: 0; font: 600 1.5rem/1.1 var(--alv-serif); color: #ffe0f0; }
.alv-pick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.alv-pick__radio { position: absolute; opacity: 0; pointer-events: none; }
.alv-pick__chip {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--alv-soft);
  background: rgba(20, 16, 56, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease, transform .25s ease;
}
.alv-pick__chip i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--alv-el); box-shadow: 0 0 10px var(--alv-el); }
.alv-pick__chip:hover { color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--alv-el) 60%, transparent); }
.alv-pick__radio:checked + .alv-pick__chip {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--alv-el) 40%, #2a1660), #2a1660);
  box-shadow: inset 0 0 0 1.5px var(--alv-el), 0 0 24px color-mix(in srgb, var(--alv-el) 45%, transparent);
}
.alv-pick__radio:focus-visible + .alv-pick__chip { outline: 2px solid var(--alv-gold); outline-offset: 2px; }
.alv-compat-form__error { margin: 16px 0 0 !important; text-align: center; color: #ffb4a8; }

/* результат */
.alv-cres { --alv-acc: #ff8fc8; max-width: 900px; margin: 28px auto 0; display: grid; gap: 22px; justify-items: center; text-align: center; }
.alv-cres--in { animation: alv-cres-in .8s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes alv-cres-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.alv-cres__ring { position: relative; width: 190px; height: 190px; }
.alv-cres__ring svg { width: 100%; height: 100%; filter: drop-shadow(0 0 16px rgba(255, 95, 168, .5)); }
.alv-cres__arc { transition: stroke-dashoffset 1.5s cubic-bezier(.2, .8, .2, 1); }
.alv-cres__pct { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; }
.alv-cres__pct b { font: 600 3.8rem/1 var(--alv-serif); font-variant-numeric: lining-nums tabular-nums; color: #fff0f8; text-shadow: 0 0 20px rgba(255, 95, 168, .8); }
.alv-cres__pct span { font: 600 1.6rem var(--alv-serif); color: #ffb8dc; }
.alv-cres__body { width: 100%; }
.alv-cres__pair { margin: 0 0 16px !important; font: 600 1.9rem/1.1 var(--alv-serif); color: var(--alv-gold-l) !important; }
.alv-cres__bars { display: grid; gap: 12px; margin-bottom: 18px; text-align: left; }
.alv-cres__bar { display: grid; grid-template-columns: 76px 1fr 46px; gap: 10px; align-items: center; font-size: .92rem; color: var(--alv-soft); }
.alv-cres__bar i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.alv-cres__bar em { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--alv-acc) 60%, #fff), var(--alv-acc)); box-shadow: 0 0 14px var(--alv-acc); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.alv-cres__bar b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.alv-cres__text { color: var(--alv-soft) !important; font-size: 1.04rem; }
.alv-cres__el { color: #ffc4e2 !important; font-style: italic; }
.alv-cres .alv-actions { justify-content: center; }

/* стихии */
.alv-elcard .alv-h3 { font-size: 1.7rem; margin-bottom: .2em; }
.alv-elcard__who { color: var(--alv-acc) !important; font-weight: 600; font-size: .9rem; }

/* приглашение */
.alv-invite { display: grid; gap: 30px; align-items: center; }
.alv-invite__note { display: flex; gap: 10px; color: #ffc4e2; }
.alv-invite__note .alv-ico { width: 22px; height: 22px; flex: none; color: #ff8fc8; }
.alv-invite__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.alv-invite__steps .alv-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.alv-invite__n {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font: 700 1.5rem/1 var(--alv-serif); color: #1a1433; background: var(--alv-acc); box-shadow: 0 0 24px color-mix(in srgb, var(--alv-acc) 60%, transparent);
}
.alv-invite__steps .alv-h3 { margin-bottom: .25em; }

@media (min-width: 600px) {
  .alv-pick__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .alv-compat-form__pickers { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
  .alv-pick__grid { grid-template-columns: repeat(3, 1fr); }
  .alv-cres { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 40px; padding: 40px; align-items: center; }
  .alv-cres .alv-actions { justify-content: flex-start; }
  .alv-cres__ring { width: 220px; height: 220px; }
  .alv-invite { grid-template-columns: 1fr 1fr; gap: 60px; }
}
