/* Stage 2, task 14. All selectors are confined to the FoxLand profile. */
.fox-account-profile {
    --fox-profile-outer: rgba(var(--fox-rgb-as4l15, 191, 120, 255), .78);
    --fox-profile-section: rgba(var(--fox-rgb-as3l14, 178, 111, 243), .55);
    --fox-profile-inner: rgba(var(--fox-rgb-as3l13, 165, 106, 226), .33);
    box-sizing: border-box;
    min-width: 0;
    padding: 13px;
    border: 2px solid var(--fox-profile-outer);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(var(--fox-rgb-ts2l7, 95, 38, 149), .075), rgba(var(--fox-rgb-ts2l1, 8, 5, 17), .29));
    box-shadow: 0 0 0 1px rgba(var(--fox-rgb-gs3l11, 143, 69, 220), clamp(0, calc(.14 * var(--fox-glow-strength, 1)), 1)), 0 0 27px rgba(var(--fox-rgb-gs3l12, 155, 70, 230), clamp(0, calc(.25 * var(--fox-glow-strength, 1)), 1)), 0 18px 40px rgba(0, 0, 0, .22);
}

.fox-account-profile .fox-profile-cover,
.fox-account-profile .fox-profile-panel,
.fox-account-profile .fox-profile-identity {
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid var(--fox-profile-section);
    border-radius: 13px;
    box-shadow: 0 0 13px rgba(var(--fox-rgb-gs3l11, 145, 65, 224), clamp(0, calc(.13 * var(--fox-glow-strength, 1)), 1)), 0 10px 26px rgba(0, 0, 0, .23);
}

.fox-account-profile .fox-profile-panel:hover,
.fox-account-profile .fox-profile-identity:hover {
    border-color: rgba(var(--fox-rgb-as4l16, 199, 141, 255), .68);
    box-shadow: 0 0 17px rgba(var(--fox-rgb-gs3l11, 145, 65, 224), clamp(0, calc(.17 * var(--fox-glow-strength, 1)), 1)), 0 10px 26px rgba(0, 0, 0, .23);
}

.fox-account-profile .fox-profile-info-group,
.fox-account-profile .fox-profile-info-group:last-child,
.fox-account-profile .fox-service-group,
.fox-account-profile .fox-profile-last-topic {
    min-width: 0;
    border: 1px solid var(--fox-profile-inner);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(var(--fox-rgb-gs3l11, 145, 65, 224), clamp(0, calc(.07 * var(--fox-glow-strength, 1)), 1));
}

.fox-account-profile .fox-profile-last-topic:hover { border-color: rgba(var(--fox-rgb-as4l15, 188, 130, 249), .47); }
.fox-account-profile .fox-profile-forum-grid > div,
.fox-account-profile .fox-profile-activity__list > span:not(.empty-element),
.fox-account-profile .fox-profile-contact-list a,
.fox-account-profile .fox-profile-contact-list > span {
    border-color: rgba(var(--fox-rgb-as3l13, 163, 103, 223), .25);
    box-shadow: none;
}

.fox-account-profile .fox-profile-identity__title h1,
.fox-account-profile .fox-profile-panel__head h2,
.fox-account-profile .fox-profile-info-group h2,
.fox-account-profile .fox-profile-details__top strong {
    background: linear-gradient(100deg, var(--fox-tone-ts4l19, #eddcff) 10%, var(--fox-tone-ts3l15, #bb86f4) 41%, var(--fox-tone-ts4l19, #f3e5ff) 53%, var(--fox-tone-ts3l15, #bd88ee) 88%);
    background-size: 215% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fox-profile-type-glint 13s ease-in-out infinite alternate;
}

@keyframes fox-profile-type-glint {
    from { background-position: 0% center; }
    to { background-position: 100% center; }
}

.fox-account-profile .fox-profile-info-group dt,
.fox-account-profile .fox-profile-panel__head span { color: var(--fox-tone-as1l13, #aa90be); }
.fox-account-profile .fox-profile-info-group dd:not([style]),
.fox-account-profile .fox-profile-description__content { color: var(--fox-tone-as2l17, #dfcbee); }
.fox-account-profile .fox-profile-rank { overflow: visible; white-space: normal; }
.fox-profile-rank__number { color: var(--fox-tone-as4l17, #e1bbff); font-size: 15px; font-weight: 900; }
.fox-profile-rank__unavailable { color: var(--fox-tone-as1l13, #aa90be); font-size: 11px; }
.fox-profile-rank__trophy {
    display: inline-grid;
    place-items: center;
    min-width: 31px;
    min-height: 29px;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    color: var(--fox-trophy-light);
    text-shadow: 0 0 6px var(--fox-trophy-glow), 0 0 13px var(--fox-trophy-glow);
}
.fox-profile-rank__trophy--1 { --fox-trophy-light: #ffd263; --fox-trophy-glow: rgba(255, 184, 42, .65); }
.fox-profile-rank__trophy--2 { --fox-trophy-light: #dceaff; --fox-trophy-glow: rgba(199, 221, 255, .55); }
.fox-profile-rank__trophy--3 { --fox-trophy-light: #dba077; --fox-trophy-glow: rgba(233, 140, 82, .55); }

.fox-account-profile .fox-service-group { background: rgba(var(--fox-rgb-as2l9, 112, 45, 177), .045); }
.fox-account-profile .fox-service-group__cards { align-items: stretch; }
.fox-account-profile .fox-service-card {
    --fox-service-rgb: 168, 112, 224;
    box-sizing: border-box;
    min-width: 0;
    min-height: 215px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(var(--fox-service-rgb), .53);
    border-radius: 11px;
    background: linear-gradient(160deg, rgba(var(--fox-service-rgb), .085), rgba(var(--fox-rgb-ts2l1, 12, 8, 22), .45));
    box-shadow: 0 0 10px rgba(var(--fox-service-rgb), .11);
    text-align: center;
}
.fox-account-profile .fox-service-card--pearl { --fox-service-rgb: 235, 237, 247; }
.fox-account-profile .fox-service-card--gold { --fox-service-rgb: 246, 192, 89; }
.fox-account-profile .fox-service-card--red { --fox-service-rgb: 244, 96, 111; }
.fox-account-profile .fox-service-card--violet { --fox-service-rgb: 168, 112, 224; }
.fox-account-profile .fox-service-card:hover,
.fox-account-profile .fox-service-card:focus-within {
    border-color: rgba(var(--fox-service-rgb), .72);
    box-shadow: 0 0 15px rgba(var(--fox-service-rgb), .16);
}
.fox-account-profile .fox-service-card__top {
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
}
.fox-account-profile .fox-service-card__top h4 { flex: 1 1 100px; }
.fox-account-profile .fox-service-card__visual {
    display: grid;
    width: min(100%, 170px);
    height: 145px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(var(--fox-service-rgb), .28);
    border-radius: 10px;
    background: radial-gradient(circle at top, rgba(var(--fox-service-rgb), .15), rgba(var(--fox-rgb-ts2l1, 10, 6, 19), .65));
}
.fox-account-profile .fox-service-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.fox-account-profile .fox-service-card__fallback {
    display: grid;
    max-width: 100%;
    gap: 8px;
    padding: 10px;
    color: rgb(var(--fox-service-rgb));
    overflow-wrap: anywhere;
}
.fox-account-profile .fox-service-card__fallback i { font-size: 35px; }
.fox-account-profile .fox-service-card__fallback b { font-size: 13px; }
.fox-account-profile .fox-service-card__renew {
    align-self: center;
    margin: 0 auto;
    border-color: rgba(var(--fox-service-rgb), .58);
    background: rgba(var(--fox-service-rgb), .12);
}
.fox-account-profile .fox-service-card__expiry {
    width: 100%;
    align-self: stretch;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid rgba(var(--fox-service-rgb), .19);
    text-align: left;
}
.fox-account-profile .fox-service-card__expiry strong { margin-left: auto; text-align: right; }

.fox-account-profile .fox-profile-wall__comments { display: grid; gap: 10px; }
.fox-account-profile .fox-profile-wall .comment,
.fox-account-profile .fox-profile-wall .comment:last-child {
    box-sizing: border-box;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(var(--fox-rgb-as3l13, 166, 106, 226), .31);
    border-radius: 10px;
    background: rgba(var(--fox-rgb-as2l9, 113, 47, 177), .055);
    box-shadow: 0 0 7px rgba(var(--fox-rgb-gs3l11, 142, 65, 224), clamp(0, calc(.06 * var(--fox-glow-strength, 1)), 1));
}
.fox-account-profile .fox-profile-wall .comment > div { min-width: 0; }
.fox-account-profile .fox-profile-wall .comment .info { flex-wrap: wrap; }
.fox-account-profile .fox-profile-wall .comment .with_code { overflow-wrap: anywhere; }

@media (max-width: 680px) {
    .fox-account-profile {
        padding: 9px;
        border-width: 1.5px;
        border-radius: 14px;
        box-shadow: 0 0 16px rgba(var(--fox-rgb-gs3l12, 155, 70, 230), clamp(0, calc(.18 * var(--fox-glow-strength, 1)), 1));
    }
    .fox-account-profile .fox-profile-cover,
    .fox-account-profile .fox-profile-panel,
    .fox-account-profile .fox-profile-identity { box-shadow: 0 0 8px rgba(var(--fox-rgb-gs3l11, 145, 65, 224), clamp(0, calc(.1 * var(--fox-glow-strength, 1)), 1)); }
    .fox-account-profile .fox-profile-rank { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fox-account-profile .fox-profile-identity__title h1,
    .fox-account-profile .fox-profile-panel__head h2,
    .fox-account-profile .fox-profile-info-group h2,
    .fox-account-profile .fox-profile-details__top strong { animation: none; background-position: 50% center; }
    .fox-account-profile .fox-profile-panel,
    .fox-account-profile .fox-profile-identity,
    .fox-account-profile .fox-service-card { transition: none; }
}
