.ap-decor-layer{display:none;position:absolute;inset:-50%;pointer-events:none;z-index:2;background:var(--frame,none) center/contain no-repeat}
html[data-profile-frame] #login-button .account-avatar,html[data-profile-frame] .ap-profile .ap-portrait{position:relative;overflow:visible!important}
html[data-profile-frame] #login-button{overflow:visible}
html[data-profile-frame] .ap-decor-layer,.decor-face .ap-decor-layer{display:block}
.ap-profile .ap-portrait>span{z-index:3}
.ap-decor-layer em{display:none;position:absolute;left:var(--x);top:var(--y);font-style:normal;line-height:1;color:var(--ink);font-size:var(--particle,9px);text-shadow:0 1px 2px #15374966}
.ap-decor-layer em:nth-child(1){--x:12%;--y:26%;--delay:-.4s}
.ap-decor-layer em:nth-child(2){--x:77%;--y:14%;--delay:-1.7s}
.ap-decor-layer em:nth-child(3){--x:85%;--y:55%;--delay:-.9s}
.ap-decor-layer em:nth-child(4){--x:21%;--y:67%;--delay:-2.1s}
.ap-decor-layer em{display:var(--motion,none);animation:var(--anim,decorRise) 2.5s ease-in-out var(--delay) infinite}
.ap-decor-layer em:before{content:var(--glyph,'')}
@keyframes decorRise{0%{transform:translateY(60%) scale(.55);opacity:0}30%{opacity:1}100%{transform:translateY(-170%) scale(1.1);opacity:0}}
@keyframes decorSnow{0%{transform:translate(-25%,-130%);opacity:0}24%{opacity:1}100%{transform:translate(30%,180%) rotate(75deg);opacity:0}}
@keyframes decorTwinkle{0%,100%{transform:scale(.4) rotate(-15deg);opacity:0}50%{transform:scale(1.2) rotate(15deg);opacity:1}}
@media(prefers-reduced-motion:reduce){.ap-decor-layer em{display:none!important}}
#modal:has(.decor-manager){width:min(1040px,96vw);max-width:96vw;max-height:92dvh;padding:clamp(16px,3vw,32px);overflow:auto;color:#17294c;background:linear-gradient(130deg,#edf8ff,#fcfcff 50%,#f1f4ff);border-radius:22px}
.decor-manager h2,.decor-manager h3{color:#13274c;margin:0 0 8px}.decor-manager p{margin:5px 0 14px}.decor-layout{display:grid;grid-template-columns:minmax(170px,215px) minmax(0,1fr);gap:20px;align-items:start}
.decor-preview,.decor-card,.decor-manager details{border:1px solid #ccdaea;border-radius:15px;background:#ffffffc9;padding:12px}
.decor-preview{text-align:center;position:sticky;top:0}.decor-manager button,.decor-manager input,.decor-manager select{font:inherit}.decor-manager button,.decor-manager summary{cursor:pointer}
.decor-card{width:100%;display:grid;justify-items:center;gap:4px;color:#142848;text-align:center;line-height:1.2}
.decor-card[aria-pressed=true]{outline:2px solid #007cde;background:#eefaff}.decor-card small,.decor-preview small{color:#47617a;font-size:12px}
.decor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(127px,1fr));gap:9px;margin-bottom:20px}
.decor-stage{height:106px;display:grid;place-items:center}.decor-face{--particle:14px;position:relative;display:grid;place-items:center;border-radius:50%;background:linear-gradient(130deg,#153759,#126f9f);color:white;font-weight:750;font-size:21px;width:65px;height:65px}.decor-face>img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.decor-preview .decor-stage{height:160px}.decor-preview .decor-face{width:96px;height:96px;--particle:19px}
.decor-preview button{display:block;width:100%;margin:8px 0}.decor-manager details{margin:14px 0}.decor-manager summary{font-weight:700}.decor-manager form{display:grid;gap:10px;margin-top:12px}.decor-manager label{display:grid;gap:4px}.decor-manager input,.decor-manager select{max-width:100%;padding:8px;border:1px solid #acbdd1;border-radius:8px;color:#162b43;background:white}
@media(max-width:620px){.decor-layout{grid-template-columns:1fr}.decor-preview{position:static}.decor-preview .decor-stage{height:94px}.decor-preview .decor-face{width:58px;height:58px}.decor-preview button{display:inline-block;width:auto;margin:4px}.decor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.decor-stage{height:122px}.decor-preview .decor-stage{height:180px}
@media(max-width:620px){.decor-preview .decor-stage{height:106px}}
