/* The avatar of a player: the art of a card they chose. The address is set inline (background-image) by the page, only for a
   player who chose one; this rule turns the round initial into that picture, wherever the initial is drawn. */
.has-art {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* Settings, Avatar */
.pav { display: flex; flex-direction: column; gap: 1.1rem; }

/* the avatar as it is now, big, on a soft violet card */
.pav-hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem; border-radius: 18px; border: 1px solid rgba(167, 123, 255, 0.28); background: radial-gradient(120% 140% at 0% 0%, rgba(122, 66, 238, 0.28), rgba(18, 13, 27, 0.9) 60%); }
.pav-preview { display: inline-grid; place-items: center; flex: none; width: 6rem; height: 6rem; border-radius: 50%; background: linear-gradient(135deg, #7a42ee, #d998ff); color: #fff; font-size: 2.4rem; font-weight: 800; box-shadow: 0 0 0 3px #120d1b, 0 0 0 5px #a77bff, 0 10px 30px rgba(122, 66, 238, 0.45); }
.pav-hero__text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; flex: 1; }
.pav-hero__label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 700; color: #b79bff; }
.pav-hero__text b { font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.pav-hero__text small:last-child { color: var(--text-muted, #9aa7bb); font-size: 0.84rem; }
.pav-hero__remove { flex: none; margin: 0; }

.pav-form { display: flex; flex-direction: column; gap: 0.8rem; }

/* the search box: a wide pill with the lens inside */
.pav-search { position: relative; display: block; margin: 0; }
.pav-search input { display: block; width: 100%; min-height: 54px; padding: 0.7rem 3rem 0.7rem 3rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: #0e0a16; color: #fff; font: inherit; font-size: 1rem; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35); transition: border-color 0.15s ease, box-shadow 0.15s ease; -webkit-appearance: none; appearance: none; }
.pav-search input::placeholder { color: #7f8aa0; }
.pav-search input:hover { border-color: rgba(167, 123, 255, 0.5); }
.pav-search input:focus { outline: none; border-color: #a77bff; box-shadow: 0 0 0 3px rgba(167, 123, 255, 0.28), inset 0 2px 8px rgba(0, 0, 0, 0.35); }
.pav-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pav-search__icon { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: #a77bff; font-size: 1rem; pointer-events: none; }
.pav-search__spin { position: absolute; right: 1.1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -0.55rem; border-radius: 50%; border: 2px solid rgba(167, 123, 255, 0.25); border-top-color: #d998ff; opacity: 0; pointer-events: none; }
.pav-search.is-busy .pav-search__spin { opacity: 1; animation: pav-spin 0.7s linear infinite; }
@keyframes pav-spin { to { transform: rotate(360deg); } }

.pav-note { margin: 0; min-height: 1.2em; font-size: 0.86rem; color: var(--text-muted, #8c9ab0); }
.pav-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; }
.pav-results:empty { display: none; }
.pav-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; padding: 0.8rem 0.6rem 0.7rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(180deg, #17101f, #110b19); color: inherit; font: inherit; cursor: pointer; transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease; }
.pav-card:hover { border-color: #a77bff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.pav-card.is-on { border-color: #a77bff; background: linear-gradient(180deg, #25163f, #1a0f2e); box-shadow: 0 0 0 1px #a77bff, 0 10px 28px rgba(122, 66, 238, 0.4); }
.pav-card.is-on::after { content: "\2713"; position: absolute; top: 0.45rem; right: 0.45rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #7a42ee; color: #fff; font-size: 0.78rem; font-weight: 800; }
.pav-card:focus-visible { outline: 2px solid #d998ff; outline-offset: 2px; }
.pav-card__art { display: block; width: 6rem; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center; background-color: #0f0b17; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14); }
.pav-card.is-on .pav-card__art { box-shadow: 0 0 0 2px #a77bff; }
.pav-card__name { font-size: 0.8rem; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }

.pav-bar { position: sticky; bottom: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; padding: 0.7rem 0.9rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(14, 10, 22, 0.92); backdrop-filter: blur(6px); }
.pav-bar small { font-size: 0.78rem; color: var(--text-muted, #8c9ab0); }

@media (max-width: 575px) {
    .pav-hero { flex-wrap: wrap; padding: 1rem; }
    .pav-preview { width: 4.6rem; height: 4.6rem; font-size: 1.9rem; }
    .pav-hero__remove { width: 100%; }
    .pav-hero__remove .ix-btn { width: 100%; justify-content: center; min-height: 44px; }
    .pav-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pav-bar { justify-content: center; text-align: center; }
    .pav-bar .ix-btn { width: 100%; justify-content: center; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .pav-card, .pav-search input { transition: none; } .pav-card:hover { transform: none; } .pav-search.is-busy .pav-search__spin { animation-duration: 2s; } }

/* on the sign-up form the picker sits inside a Bootstrap card */
.pav--register .pav-hero { padding: 0.8rem 1rem; }
.pav--register .pav-preview { width: 4rem; height: 4rem; font-size: 1.6rem; color: #d9c4ff; }
.pav--register .pav-hero__text b { font-size: 1.05rem; }
.pav--register .pav-results { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.pav--register .pav-card__art { width: 4.8rem; }
.pav-search input { color-scheme: dark; }
