/* Approved six-material collection: material, ornament, and live content stay separate. */
.ent-profile {
 --profile-art:none;
 --profile-ratio:1320 / 1777;
 --profile-inset:17%;
 --ent-ink:#f5f0e8;
 --ent-accent:#c5bdaf;
 --ent-border:#e0d8c74d;
 --profile-surface:rgba(49,45,44,.88);
 --profile-sheen:rgba(255,255,255,.15);
 --profile-material-position:0% 0%;
 --profile-material-opacity:.88;
 background-color:var(--profile-surface);
 background-image:linear-gradient(125deg,var(--profile-sheen),transparent 36%,rgba(255,255,255,.055) 70%,var(--profile-sheen));
 background-position:center;
 background-size:100% 100%;
 background-repeat:no-repeat;
 border:1px solid rgba(255,255,255,.6);
 box-shadow:inset 0 1px 0 #ffffffe6,inset 1px 0 0 #ffffff4d,inset 0 -2px 4px #4c3c5f19,0 12px 25px #49395726,0 2px 5px #3b2a4621;
 backdrop-filter:blur(18px) saturate(115%);
 -webkit-backdrop-filter:blur(18px) saturate(115%);
 color:var(--ent-ink);
 overflow:hidden;
 isolation:isolate;
}
.ent-profile.profile-gold {--profile-art:url('/images/profile-frames/gold-dragon-glass-v73.png');--profile-ratio:1081 / 1455;--profile-inset:24%;--profile-surface:#534233;--profile-material-position:0% 0%;--ent-ink:#fff2d4;--ent-accent:#f2dfb8;--ent-border:#e8c98977}
.ent-profile.profile-blackgold {--profile-art:url('/images/profile-frames/black-pearl-glass-v73.png');--profile-ratio:1026 / 1532;--profile-inset:17%;--profile-surface:#383434;--profile-material-position:50% 0%;--ent-ink:#fff5df;--ent-accent:#e9d9b9;--ent-border:#d9bf8e77}
.ent-profile.profile-aurora {--profile-art:url('/images/profile-frames/aurora-glass-v73.png');--profile-ratio:1096 / 1436;--profile-inset:20%;--profile-surface:rgba(243,235,253,.82);--profile-material-position:100% 0%;--profile-sheen:rgba(255,255,255,.74);--ent-ink:#5b4075;--ent-accent:#75628b;--ent-border:#9e87b866}
.ent-profile.profile-platinum {--profile-art:url('/images/profile-frames/silver-wings-glass-v73.png');--profile-ratio:1052 / 1495;--profile-inset:23%;--profile-surface:rgba(244,239,231,.86);--profile-material-position:0% 100%;--profile-sheen:rgba(255,255,255,.74);--ent-ink:#595169;--ent-accent:#797180;--ent-border:#a79caa77}
.ent-profile.profile-obsidian {--profile-art:url('/images/profile-frames/obsidian-glass-v73.png');--profile-ratio:1089 / 1444;--profile-inset:17%;--profile-surface:#333b47;--profile-material-position:50% 100%;--ent-ink:#f9f9ff;--ent-accent:#dbe1ed;--ent-border:#bcc7d777}
.ent-profile.profile-diamond {--profile-art:url('/images/profile-frames/ice-crystal-glass-v73.png');--profile-ratio:1095 / 1437;--profile-inset:19%;--profile-surface:rgba(223,235,249,.87);--profile-material-position:100% 100%;--profile-sheen:rgba(255,255,255,.74);--ent-ink:#435677;--ent-accent:#627795;--ent-border:#8ca9c777}
.ent-profile::before {content:"";position:absolute;inset:0;z-index:0;background:url('/images/profile-frames/glass-materials-v74.png') var(--profile-material-position) / 300% 200% no-repeat;opacity:var(--profile-material-opacity);border-radius:inherit;pointer-events:none}
:is(.ent-profile-preview,.ent-member-identity).ent-profile::after {content:"";display:block;position:absolute;inset:0;z-index:1;background:var(--profile-art) center / 100% 100% no-repeat;border:0;opacity:1;border-radius:inherit;pointer-events:none}
.ent-profile-content {position:relative;z-index:2;min-width:0}
.ent-profile>.ent-profile-content {position:absolute;inset:15% var(--profile-inset);display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;text-align:center}

#ent-profile .ent-product-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.ent-product.ent-category-profile .ent-thumbnail {height:314px;max-height:314px;padding:8px;margin:8px 0 18px;overflow:visible;contain:layout}
.ent-product.ent-category-profile .ent-profile-preview,
.ent-profile-preview {width:196px;max-width:100%;aspect-ratio:var(--profile-ratio);height:auto;min-height:0;max-height:none;padding:0;border-radius:12px;box-sizing:border-box;display:block}
.ent-profile-preview>.ent-profile-content {width:auto;text-align:center}
.ent-profile-preview .ent-mini-portrait {width:43px;height:43px;border-radius:14px;margin:0 auto 10px;border:1px solid #ffffff65;box-shadow:0 3px 15px #0006}
.ent-profile-preview .ent-mini-portrait:not(.ent-avatar-framed) {border-radius:50%;border-color:var(--ent-border);box-shadow:0 0 0 3px #ffffff18,0 3px 15px #0003}
.ent-profile-preview strong {display:block;font-size:12px;line-height:1.65;color:var(--ent-ink);overflow-wrap:anywhere}
.ent-profile-preview small {display:block;font-size:8px;line-height:1.8;color:var(--ent-accent);margin:3px 0 0;overflow-wrap:anywhere}
.ent-profile-preview p {color:var(--ent-accent);border:0;font-size:8px;line-height:1.8;margin:12px 0 0;padding:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Keep the full member identity inside the artwork; actions sit below the frame. */
.member-card-modal:has(.ent-member-identity.ent-profile) {width:min(470px,calc(100vw - 24px));padding:35px 18px 22px}
.ent-member-identity.ent-profile {width:100%;aspect-ratio:var(--profile-ratio);min-height:480px;padding:16% var(--profile-inset);margin:0 0 20px;border-radius:14px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.ent-member-identity.ent-profile>.ent-profile-content {position:relative;inset:auto;width:100%;flex:none}
.ent-member-identity.ent-profile .member-card-avatar {width:66px;height:66px;margin:0 auto 14px;border-radius:19px}
.ent-member-identity.ent-profile .member-card-avatar:not(.ent-avatar-framed) {border-radius:50%;border:1px solid var(--ent-border);box-shadow:0 0 0 4px #ffffff15,0 5px 16px #1e15252b}
.ent-member-identity.ent-profile h2 {font-size:20px;line-height:1.7;font-weight:600;letter-spacing:.5px;color:var(--ent-ink);overflow-wrap:anywhere}
.ent-member-identity.ent-profile .member-card-id {color:var(--ent-accent);font-size:11px;line-height:1.6;margin-bottom:18px}
.ent-member-identity.ent-profile .member-card-invitation {position:relative;width:100%;margin:0 0 18px;padding:15px 0;background:transparent;border:0;border-block:1px solid var(--ent-border);border-radius:0;gap:5px}
.ent-member-identity.ent-profile .member-card-invitation::before,.ent-member-identity.ent-profile .member-card-invitation::after {content:"◇";position:absolute;left:50%;transform:translateX(-50%);font-size:10px;line-height:12px;color:var(--ent-accent);pointer-events:none}
.ent-member-identity.ent-profile .member-card-invitation::before {top:-7px}
.ent-member-identity.ent-profile .member-card-invitation::after {bottom:-6px}
.ent-member-identity.ent-profile .member-card-invitation>span,
.ent-member-identity.ent-profile .member-card-note>small {color:var(--ent-accent);font-size:10px}
.ent-member-identity.ent-profile .member-card-invitation>strong {display:block;color:var(--ent-ink);font-size:19px;letter-spacing:2px;margin:0 0 3px}
.ent-member-identity.ent-profile .member-invite-actions {gap:5px;flex-wrap:wrap}
.ent-member-identity.ent-profile .member-invite-actions .btn {background:linear-gradient(145deg,#ffffff20,#ffffff08);color:var(--ent-ink);border:1px solid var(--ent-border);padding:7px 8px;font-size:10px;min-height:32px;border-radius:24px;box-shadow:inset 0 1px 0 #ffffff29,0 2px 5px #17102012;gap:4px}
.ent-member-identity.ent-profile .member-invite-actions .btn:focus-visible {outline:2px solid var(--ent-ink);outline-offset:3px}
.ent-member-identity.ent-profile .member-card-invitation-empty {font-size:10px;color:var(--ent-accent);margin:12px 0}
.ent-member-identity.ent-profile .member-card-note {width:100%;padding:0;margin:0;background:transparent;border:0;text-align:center}
.ent-member-identity.ent-profile .member-card-note>p {font-size:12px;line-height:1.8;color:var(--ent-ink);margin:0}

.ent-preview-art:has(.ent-profile-preview) {max-width:290px;margin:18px auto 22px}
.ent-preview-art>.ent-profile-preview {width:260px;padding:0}
.ent-preview-art .ent-mini-portrait {width:64px;height:64px;margin-bottom:15px}
.ent-preview-art .ent-profile-preview strong {font-size:18px}
.ent-preview-art .ent-profile-preview small {font-size:11px}
.ent-preview-art .ent-profile-preview p {font-size:12px;margin-top:20px}
.ent-own-profile-card {width:min(290px,100%);margin:20px auto 26px}
.ent-own-profile-card>.ent-profile-preview {width:100%;padding:0}
.ent-own-profile-card .ent-mini-portrait {width:65px;height:65px}
.ent-own-profile-card .ent-profile-preview strong {font-size:17px}
.ent-own-profile-card .ent-profile-preview small {font-size:11px}
.ent-own-profile-card .ent-profile-preview p {font-size:12px}

@media(max-width:1100px) {
 #ent-profile .ent-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px) {
 .ent-product.ent-category-profile .ent-thumbnail {height:230px;max-height:230px;padding:6px 0;margin:5px 0 14px}
 .ent-product.ent-category-profile .ent-profile-preview {width:145px;padding:0}
 .ent-profile-preview .ent-mini-portrait {width:36px;height:36px;border-radius:11px;margin-bottom:7px}
 .ent-profile-preview strong {font-size:10px}
 .ent-profile-preview small,.ent-profile-preview p {font-size:7px}
 .ent-profile-preview p {margin-top:9px}
 .ent-member-identity.ent-profile {min-height:450px;padding:16% var(--profile-inset)}
 .ent-member-identity.ent-profile .member-card-avatar {width:56px;height:56px;margin-bottom:11px}
 .ent-member-identity.ent-profile h2 {font-size:17px}
 .ent-member-identity.ent-profile .member-card-id {margin-bottom:12px}
 .ent-member-identity.ent-profile .member-card-invitation {margin-bottom:13px;padding-block:9px}
 .ent-preview-art .ent-mini-portrait,.ent-own-profile-card .ent-mini-portrait {width:62px;height:62px}
 .ent-preview-art .ent-profile-preview strong,.ent-own-profile-card .ent-profile-preview strong {font-size:17px}
 .ent-preview-art .ent-profile-preview small,.ent-own-profile-card .ent-profile-preview small {font-size:11px}
 .ent-preview-art .ent-profile-preview p,.ent-own-profile-card .ent-profile-preview p {font-size:12px}
}
@media(max-width:360px) {
 .ent-product.ent-category-profile .ent-thumbnail {height:205px;max-height:205px}
 .ent-profile-preview .ent-mini-portrait {width:31px;height:31px}
 .ent-member-identity.ent-profile .member-invite-actions .btn {font-size:9px;padding-inline:3px}
}
