#view-shop.profile-external-modal-host {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

#view-shop.profile-external-modal-host > .shop-app-container {
    display: block;
    max-width: none;
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

#view-shop.profile-external-modal-host > .shop-app-container > :not(.shop-modal) {
    display: none;
}

#view-shop.profile-external-modal-host > .shop-app-container > .shop-modal {
    pointer-events: auto;
}

.profile-star-friend {
    width: min(380px, 100%);
    margin: 18px auto 0;
    padding: 13px 6px 4px;
    position: relative;
    border: 2px solid;
    border-image: linear-gradient(
        90deg,
        rgba(197, 154, 83, 0.58),
        rgba(235, 202, 139, 0.9) 18%,
        rgba(211, 169, 99, 0.7) 50%,
        rgba(235, 202, 139, 0.9) 82%,
        rgba(197, 154, 83, 0.58)
    ) 1;
    outline: 1px solid rgba(235, 202, 139, 0.25);
    outline-offset: -5px;
    border-radius: 0;
    background: #081d38;
}

.profile-star-friend::before,
.profile-star-friend::after {
    content: '\2726';
    width: 16px;
    height: 20px;
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #e7bf72;
    background: #081d38;
    font-size: 10px;
    line-height: 1;
    text-shadow: 0 0 5px rgba(231, 191, 114, 0.25);
    pointer-events: none;
}

.profile-star-friend::before {
    left: -9px;
}

.profile-star-friend::after {
    right: -9px;
}

#view-profile.is-friend-profile .profile-star-friend::before,
#view-profile.is-friend-profile .profile-star-friend::after {
    background: transparent;
    text-shadow:
        0 0 2px #081d38,
        0 0 3px #081d38,
        0 0 6px rgba(231, 191, 114, 0.32);
}

.profile-star-friend-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #e3b867;
}

.profile-star-friend-heading h2 {
    margin: 0;
    color: #e9c37a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.05;
    letter-spacing: 0.065em;
    text-shadow: 0 1px 8px rgba(233, 195, 122, 0.18);
}

.profile-star-friend-heading > span {
    font-size: 9px;
    opacity: 0.82;
}

.profile-star-friend-layout {
    min-height: 156px;
    margin-top: 4px;
    display: grid;
    grid-template-columns: 43% minmax(0, 1fr);
    align-items: center;
    gap: 2%;
}

.profile-star-friend-avatar {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    animation: profile-star-friend-floating 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.profile-friend-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: contain;
    pointer-events: none;
}

@keyframes profile-star-friend-floating {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.profile-star-friend-info {
    min-width: 0;
    padding: 5px 3px 0 5px;
}

.profile-star-friend-name {
    margin: 0;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff8e9;
    font-size: 16px;
    font-weight: 850;
    border-bottom: 1px dashed rgba(225, 185, 111, 0.42);
}

.profile-star-friend-name > span:last-child {
    color: #edc474;
    font-size: 11px;
}

.profile-star-friend-born {
    margin: 6px 0 9px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 9px;
}

.profile-star-friend-born > span,
.profile-star-friend-items-title {
    color: #d7a957;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-star-friend-items-title {
    margin: 0 0 5px;
}

.profile-star-friend-items {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 4px;
}

.profile-star-friend-item {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    text-align: inherit;
}

button.profile-star-friend-item {
    cursor: pointer;
}

button.profile-star-friend-item:hover .profile-star-friend-item-preview {
    border-color: rgba(233, 195, 122, 0.56);
    background: rgba(255, 255, 255, 0.1);
}

button.profile-star-friend-item:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
    border-radius: 8px;
}

.profile-star-friend-item-preview {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.profile-star-friend-item-preview img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: contain;
}

.profile-star-friend-item-base {
    opacity: 0.2;
}

.profile-star-friend-item-caption {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 7px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-star-friend-empty {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    line-height: 1.5;
}

@media screen and (max-width: 350px) {
    .profile-star-friend {
        padding-inline: 2px;
    }

    .profile-star-friend-layout {
        grid-template-columns: 41% minmax(0, 1fr);
        gap: 1%;
    }

    .profile-star-friend-items {
        gap: 5px 3px;
    }
}
