/* Credits System — Frame Overlays & Shop Styles — Loaded sitewide */

.avatar-frame {
    position: relative;
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}
.avatar-frame img {
    display: block;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}
.avatar-frame__overlay {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
}
.avatar-frame.frame-xs .avatar-frame__overlay { inset: -2px; }
.avatar-frame.frame-sm .avatar-frame__overlay { inset: -3px; }
.avatar-frame.frame-md .avatar-frame__overlay { inset: -4px; }
.avatar-frame.frame-lg .avatar-frame__overlay { inset: -6px; }
.avatar-frame.frame-xl .avatar-frame__overlay { inset: -8px; }

/* Pink Glow */
.avatar-frame--frame_pink_glow .avatar-frame__overlay {
    border: 3px solid #FF69B4;
    box-shadow: 0 0 12px 4px rgba(255,105,180,0.6), inset 0 0 8px 2px rgba(255,105,180,0.3);
    animation: frame-pink-pulse 2s ease-in-out infinite;
}
@keyframes frame-pink-pulse {
    0%,100% { box-shadow: 0 0 12px 4px rgba(255,105,180,0.6), inset 0 0 8px 2px rgba(255,105,180,0.3); }
    50%     { box-shadow: 0 0 20px 8px rgba(255,105,180,0.8), inset 0 0 12px 4px rgba(255,105,180,0.5); }
}

/* On Fire */
.avatar-frame--frame_fire .avatar-frame__overlay {
    border: 3px solid #FF4500;
    box-shadow: 0 0 10px 3px rgba(255,69,0,0.7), 0 0 20px 6px rgba(255,165,0,0.4), 0 0 30px 10px rgba(255,69,0,0.2);
    animation: frame-fire-flicker 0.15s ease-in-out infinite alternate;
}
@keyframes frame-fire-flicker {
    0%   { box-shadow: 0 0 10px 3px rgba(255,69,0,0.7), 0 0 20px 6px rgba(255,165,0,0.4), 0 0 30px 10px rgba(255,69,0,0.2); }
    100% { box-shadow: 0 0 14px 5px rgba(255,69,0,0.85), 0 0 24px 8px rgba(255,165,0,0.5), 0 0 35px 12px rgba(255,69,0,0.25); }
}

/* Diamond */
.avatar-frame--frame_diamond .avatar-frame__overlay {
    border: 3px solid transparent;
    background: conic-gradient(from 0deg, #b9f2ff, #e0e0e0, #fff, #b9f2ff, #87CEEB, #fff, #b9f2ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-shadow: 0 0 15px 5px rgba(185,242,255,0.5), 0 0 30px 10px rgba(135,206,235,0.2);
    animation: frame-diamond-spin 4s linear infinite;
}
@keyframes frame-diamond-spin { to { filter: hue-rotate(360deg); } }

/* GODDESS Gold */
.avatar-frame--frame_goddess_gold .avatar-frame__overlay {
    border: 4px solid #DAA520;
    box-shadow: 0 0 15px 5px rgba(218,165,32,0.6), 0 0 30px 10px rgba(255,215,0,0.3), inset 0 0 10px 3px rgba(218,165,32,0.2);
    background: linear-gradient(135deg, transparent 40%, rgba(255,215,0,0.4) 50%, transparent 60%);
    background-size: 300% 300%;
    animation: frame-gold-shine 3s ease-in-out infinite;
}
@keyframes frame-gold-shine {
    0%   { background-position: 100% 100%; }
    50%  { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.avatar-frame--frame_goddess_gold::after {
    content: '\1F451';
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    font-size: 14px; z-index: 3; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); line-height: 1;
}
.avatar-frame--frame_goddess_gold.frame-xs::after { font-size: 10px; top: -5px; }
.avatar-frame--frame_goddess_gold.frame-sm::after { font-size: 12px; top: -6px; }
.avatar-frame--frame_goddess_gold.frame-lg::after,
.avatar-frame--frame_goddess_gold.frame-xl::after { font-size: 20px; top: -12px; }

/* Gift Showcase */
.gift-showcase { margin: 1.5rem 0; padding: 1rem; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid rgba(255,105,180,0.15); }
.gift-showcase__title { font-family: 'Bubblegum Sans', cursive; color: #FF69B4; font-size: 1.1rem; margin: 0 0 0.75rem 0; }
.gift-showcase__grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gift-showcase__item { text-align: center; width: 60px; }
.gift-showcase__img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.05); padding: 4px; }
.gift-showcase__from { display: block; font-size: 0.65rem; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-showcase__more { display: block; text-align: center; margin-top: 0.5rem; color: #FF69B4; font-size: 0.85rem; text-decoration: none; }
.gift-showcase__more:hover { text-decoration: underline; }
