/* Original vector portrait jewelry. Only small transform/opacity layers animate. */
body .framed-avatar{position:relative;display:inline-block;flex:none;width:100%;aspect-ratio:1;vertical-align:middle;isolation:isolate;overflow:visible;--frame-glow:#edb263}
body .framed-avatar .frame-face{position:absolute;inset:15%;display:block;overflow:hidden;border-radius:20%;z-index:1}
body .framed-avatar.frame-none .frame-face{inset:0}
body .framed-avatar .frame-face>.avatar-art{display:block;width:100%!important;height:100%!important;max-width:none;border:0;border-radius:0}
body .framed-avatar>.frame-art{position:absolute;inset:-5%;display:block;width:110%!important;height:110%!important;max-width:none;z-index:2;overflow:visible;fill:none;stroke-linejoin:round;pointer-events:none;border:0;border-radius:0}
body .framed-avatar[data-frame]:before{content:'';position:absolute;inset:-7%;background:radial-gradient(closest-side,transparent 60%,color-mix(in srgb,var(--frame-glow) 22%,transparent) 78%,transparent);z-index:0;pointer-events:none}
body .frame-ember{--frame-glow:#ff512b}body .frame-tide{--frame-glow:#67e8ef}body .frame-astral{--frame-glow:#a34cdd}body .frame-premium{--frame-glow:#e3c373}
body .framed-avatar .frame-move{animation-play-state:paused!important;transform-box:fill-box;transform-origin:center}
body .framed-avatar[data-frame-motion=on] .frame-move{animation-play-state:running!important}
body .frame-cog{animation:frame-turn 14s linear infinite}body .frame-cog.frame-reverse{animation-direction:reverse;animation-duration:11s}
body .frame-machine{animation:frame-piston 3.2s ease-in-out infinite}
body .frame-lava-flow{animation:frame-turn 15s linear infinite}
body .frame-flames{animation:frame-flame-drift 2.6s ease-in-out infinite alternate}
body .frame-flare{animation:frame-flame-bright 2s ease-in-out infinite alternate}
body .frame-mist{animation:frame-ghost-drift 4.5s ease-in-out infinite alternate}
body .frame-wisps{animation:frame-ghost-drift 3.2s ease-in-out infinite alternate-reverse}
body .frame-toxic-flow{animation:frame-turn 21s linear infinite reverse}
body .frame-premium-glint{animation:frame-flame-bright 3.2s ease-in-out infinite alternate}
@keyframes frame-turn{to{transform:rotate(360deg)}}
@keyframes frame-piston{0%,20%,80%,100%{transform:scaleY(1)}45%,55%{transform:scaleY(1.055)}}
@keyframes frame-flame-drift{from{transform:translateY(1px) scaleX(.97);opacity:.75}to{transform:translateY(-2px) scaleX(1.02);opacity:1}}
@keyframes frame-flame-bright{from{opacity:.6}to{opacity:1}}
@keyframes frame-ghost-drift{from{transform:rotate(-3deg) scale(.98);opacity:.65}to{transform:rotate(4deg) scale(1.04);opacity:1}}
html.frame-motion-paused .framed-avatar .frame-move{animation-play-state:paused!important}
[data-graphics=low] .framed-avatar .frame-move{animation:none!important;transform:none!important;opacity:1}
@media(prefers-reduced-motion:reduce){body .framed-avatar .frame-move{animation:none!important;transform:none!important;opacity:1}}

/* A frame is part of the portrait, never a clipped border around the whole button. */
body #app .player-profile .avatar{overflow:visible;background:transparent;border:0;border-radius:0}
body #app .player-profile.has-cosmetic{border:0!important;box-shadow:none!important}
body #app .player-profile .avatar>.framed-avatar[data-frame]{width:46px;height:46px;margin:-5px}
body .player-portrait-edit>.framed-avatar{position:relative;display:block;inset:auto;width:82px;height:82px}
body .profile-frame-edit{display:flex;align-items:center;gap:7px;width:100%;min-height:44px;padding:8px 11px;margin:0 0 14px;border:1px solid #c6b083;border-left:3px solid #37808b;background:#eee3c8;color:#264f5b;font:800 12px Nunito,sans-serif;text-align:left;cursor:pointer}
body .profile-frame-edit>.icon{width:19px;height:19px;color:#8e6b32}body .profile-frame-edit small{margin-left:auto;font-size:11px;font-weight:600;color:#64716c}
body .profile-avatar>.framed-avatar{width:76px;height:76px}body .profile-heading .profile-avatar{overflow:visible}
body .online-avatar>.framed-avatar{width:42px;height:42px}
body #app .arena-rival-profile>.framed-avatar{display:block;width:38px;height:38px;flex:0 0 38px;overflow:visible}

/* Enchanter's display: compact paper cards and an actual preview of the equipped art. */
body .frame-store{margin:18px 0 14px;color:#214d59;scroll-margin-top:15px}
body .frame-store-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 12px}
body .frame-store-heading>div{min-width:0}body .frame-store-heading>div>span{font-size:8px;font-weight:900;letter-spacing:.11em;color:#88703e}
body .frame-store-heading h3{font:700 23px/1.2 Georgia,serif;color:#214d59;margin:3px 0 0}
body .frame-wardrobe-link{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-height:44px;border:1px solid #b8a174;border-bottom:3px solid #a78b50;padding:8px;background:#efe1bb;color:#264f59;font:800 11px Nunito,sans-serif;cursor:pointer}
body .frame-wardrobe-link>.icon{width:17px;height:17px}
body .frame-offers{display:grid;gap:14px}
body .frame-offer{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;padding:12px;background:#fff6e4;border:1px solid #ccb585;border-bottom:3px solid #bba477;box-shadow:inset 0 0 0 3px #f3e8ce}
body .frame-offer-stage{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;min-height:164px;align-self:stretch;background:radial-gradient(ellipse at 50% 50%,#692d36,#241c2d 75%);overflow:hidden;border:1px solid #74534d}
body .frame-offer-tide .frame-offer-stage{background:radial-gradient(ellipse at 50% 50%,#275e71,#122d40 75%);border-color:#5f8b96}
body .frame-offer-astral .frame-offer-stage{background:radial-gradient(ellipse at 50% 50%,#673183,#201a35 75%);border-color:#8a63a5}
body .frame-offer-stage>.framed-avatar{width:112px;height:112px;z-index:2}
body .frame-live-tag{position:absolute;top:8px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:4px;color:#f6dbb1;font:800 8px Nunito,sans-serif;letter-spacing:.08em;text-transform:uppercase}
body .frame-live-tag>.icon{width:12px;height:12px}
body .frame-stage-plinth{position:absolute;bottom:15px;width:78%;height:12px;z-index:0;background:#0003;clip-path:polygon(16% 0,84% 0,100% 50%,84% 100%,16% 100%,0 50%)}
body .frame-offer-copy{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:7px}
body .frame-offer-copy h4{font:800 20px/1.1 'Baloo 2',Nunito,sans-serif;color:#284e59;margin:0}
body .frame-offer-copy p{margin:0;color:#5b6968;font-size:11px;line-height:1.45}
body .frame-offer-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;color:#264f59;margin-top:2px}
body .frame-offer-price strong{font-size:19px;font-weight:900}body .frame-offer-price small{font-size:9px;color:#6b715e}
body .frame-offer-copy .btn{min-height:44px;padding:9px 6px;font-size:12px;margin-top:2px}
body .frame-store-note{margin:12px 0 0;text-align:center;font-size:11px;color:#61746a}
body .merchant-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 14px}
body .merchant-tabs button{min-height:46px;padding:8px;border:1px solid #bba16a;border-bottom:3px solid #9d814b;color:#325562;background:#f0e3c4;font:900 12px Nunito,sans-serif;cursor:pointer}
body .merchant-tabs button[aria-pressed=true]{background:#276774;color:#fff2cf;border-color:#24515c;box-shadow:inset 0 0 0 2px #e0d7a626}
body .frame-picker-intro{margin:0 0 15px;color:#45626a;font-size:13px}
body .frame-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body .frame-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:156px;padding:14px 7px 10px;background:#eee3c9;color:#284f5b;border:1px solid #c9b482;border-bottom:3px solid #b39a64;cursor:pointer;font:800 12px/1.2 Nunito,sans-serif;transition:transform .15s,background .15s}
body .frame-choice>.framed-avatar{width:min(90px,100%);height:auto;aspect-ratio:1}
body .frame-choice strong{font-size:11px;overflow-wrap:anywhere}body .frame-choice small{display:flex;align-items:center;gap:4px;color:#637166;font-size:10px;font-weight:600}body .frame-choice small .icon{width:13px;height:13px}
body .frame-choice.is-equipped{outline:2px solid #2a7a80;outline-offset:-2px;background:#dfe9d9;opacity:1!important;cursor:default}
body .frame-choice.is-locked small{color:#7b633b}body .frame-choice.is-locked .framed-avatar{opacity:1}
body .frame-choice:focus-visible,body .frame-wardrobe-link:focus-visible,body .profile-frame-edit:focus-visible{outline:3px solid #267581;outline-offset:2px}
body .frame-choice:not(:disabled):active{transform:translateY(2px)}
body .frame-picker-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:16px;padding-top:12px;border-top:1px solid #d1c29f}
body .frame-picker-footer .btn{min-height:44px;font-size:12px}
@media(max-width:430px){body .frame-offer{grid-template-columns:105px minmax(0,1fr);gap:10px;padding:9px}body .frame-offer-stage>.framed-avatar{width:94px;height:94px}body .frame-offer-stage{min-height:160px}body .frame-offer-copy h4{font-size:18px}body .frame-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .frame-store-heading h3{font-size:21px}}
@media(max-width:350px){body .frame-offer{grid-template-columns:88px minmax(0,1fr);gap:8px;padding:8px}body .frame-offer-stage>.framed-avatar{width:80px;height:80px}body .frame-offer-copy h4{font-size:17px}body .frame-offer-copy p{font-size:10px}body .frame-offer-price strong{font-size:17px}body .frame-store-heading>div>span{letter-spacing:0;font-size:7px}body .frame-wardrobe-link{padding:6px;font-size:10px}}
@media(prefers-reduced-motion:reduce){body .frame-choice{transition:none;transform:none!important}}
[data-graphics=low] .frame-choice{transition:none;transform:none!important}
