/* Shared purchased pictures: one original sheet, sixteen fixed, allowlisted cells. */
.jg-avatar{display:grid;place-items:center;flex-shrink:0;background-color:#192c42;background-repeat:no-repeat;border-radius:50%;overflow:hidden}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar]:not([data-avatar="avatar-default"]){background-image:url('/assets/shop/avatars.webp');background-size:400% 400%;image-rendering:pixelated;color:transparent!important;font-size:0!important}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-fox"]{background-position:0 0}:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-cat"]{background-position:33.333333% 0}:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-dog"]{background-position:66.666667% 0}:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-robot"]{background-position:100% 0}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-astronaut"]{background-position:0 33.333333%}:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-dragon"]{background-position:33.333333% 33.333333%}:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-knight"]{background-position:66.666667% 33.333333%}:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-slime"]{background-position:100% 33.333333%}
.jg-banner{background-color:#192b40;background-image:linear-gradient(130deg,#203b52,#162238)}
.jg-banner[data-banner="banner-midnight"]{background-image:radial-gradient(circle at 20% 25%,#b6d8ff 0 1px,transparent 2px),radial-gradient(circle at 75% 35%,#b6d8ff 0 1px,transparent 2px),linear-gradient(140deg,#192b59,#0d132c)}
.jg-banner[data-banner="banner-forest"]{background-image:linear-gradient(145deg,transparent 42%,#51835460 43% 60%,transparent 61%),linear-gradient(35deg,#193b36,#285f47)}
.jg-banner[data-banner="banner-sunset"]{background-image:radial-gradient(circle at 75% 60%,#ffc87f 0 22px,transparent 23px),linear-gradient(15deg,#493764,#aa5b66,#e6a365)}
.jg-banner[data-banner="banner-arcade"]{background-image:linear-gradient(45deg,transparent 46%,#e98fd640 47% 50%,transparent 51%),linear-gradient(135deg,#173f52,#503267);background-size:40px 40px,100% 100%}
.jg-banner[data-banner="banner-galaxy"]{background-image:radial-gradient(ellipse at 25% 35%,#8e54aa85,transparent 60%),radial-gradient(ellipse at 85% 70%,#42bbd355,transparent 60%),linear-gradient(120deg,#252d55,#211939)}
.jg-banner[data-banner="banner-ice"]{background-image:linear-gradient(145deg,transparent 50%,#a0d8e842 50% 70%,transparent 70%),linear-gradient(25deg,#254862,#6b9eaf)}
.jg-avatar[data-frame="frame-neon"]{box-shadow:0 0 0 2px #c5ff52}.jg-avatar[data-frame="frame-gold"]{box-shadow:0 0 0 2px #ffde8b}.jg-avatar[data-frame="frame-frost"]{box-shadow:0 0 0 2px #c9f4ff}.jg-avatar[data-frame="frame-ember"]{box-shadow:0 0 0 2px #ff9e70}.jg-avatar[data-frame="frame-violet"]{box-shadow:0 0 0 2px #d4b4ff}.jg-avatar[data-frame="frame-pixel"]{border-radius:7px;box-shadow:0 0 0 2px #a2f7d0}.jg-avatar[data-frame="frame-galaxy"]{box-shadow:0 0 0 2px #ac8ffa,0 0 0 4px #80ebed}.jg-avatar[data-frame="frame-rainbow"]{box-shadow:0 0 0 2px #ffb4da,0 0 0 4px #afe0ba}
[data-player-name][data-name-color="color-mint"]{color:#9cf0c0}[data-player-name][data-name-color="color-cyan"]{color:#88e9fa}[data-player-name][data-name-color="color-pink"]{color:#ffb3dc}[data-player-name][data-name-color="color-gold"]{color:#ffdf8d}[data-player-name][data-name-color="color-lavender"]{color:#d1bbff}[data-player-name][data-name-color="color-coral"]{color:#ffb09c}[data-player-name][data-name-color="color-ice"]{color:#d2f3ff}[data-player-name][data-name-color="color-lime"]{color:#c5ff52}
#account-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px}
#account-button .account-trigger-avatar{width:30px;height:30px;font-size:19px;line-height:1}
#account-dialog .account-identity{padding:22px;border:1px solid #435570;border-radius:16px;min-height:118px;gap:20px}
#account-dialog .account-avatar-preview{width:74px;height:74px;border-radius:50%;border:3px solid #1b2a40;background-color:#192c42;background-repeat:no-repeat}
#account-dialog [data-player-title]{font-size:12px;line-height:1.5;font-weight:700;color:#e3f2bd;margin:5px 0}

:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-raven"]{background-position:0 66.666667%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-wolf"]{background-position:33.333333% 66.666667%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-skull"]{background-position:66.666667% 66.666667%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-samurai"]{background-position:100% 66.666667%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-ninja"]{background-position:0 100%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-cobra"]{background-position:33.333333% 100%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-phoenix"]{background-position:66.666667% 100%}
:is(#shop-dialog,#community-dialog,#account-dialog,#account-button,#friends-dialog) .jg-avatar[data-avatar="avatar-glitch"]{background-position:100% 100%}

#account-dialog #account-shop{width:100%;min-height:44px;margin:0 0 18px}

/* The newest paid frames share the same edge across the shop, account, and Friends. */
:is([data-frame="frame-steel"],[data-profile-frame="frame-steel"]){--fresh-frame-edge:#c0d4e1;--fresh-frame-shadow:#4f6a7d;--fresh-frame-radius:9px;--fresh-frame-style:solid}
:is([data-frame="frame-pulse"],[data-profile-frame="frame-pulse"]){--fresh-frame-edge:#f3a0db;--fresh-frame-shadow:#a44c8f;--fresh-frame-radius:50%;--fresh-frame-style:double}
:is([data-frame="frame-black-ice"],[data-profile-frame="frame-black-ice"]){--fresh-frame-edge:#84c4ed;--fresh-frame-shadow:#21384e;--fresh-frame-radius:50%;--fresh-frame-style:solid}
:is([data-frame="frame-heatwave"],[data-profile-frame="frame-heatwave"]){--fresh-frame-edge:#ffc590;--fresh-frame-shadow:#b7603b;--fresh-frame-radius:50%;--fresh-frame-style:solid}
:is([data-frame="frame-chrome"],[data-profile-frame="frame-chrome"]){--fresh-frame-edge:#eef3f7;--fresh-frame-shadow:#718599;--fresh-frame-radius:50%;--fresh-frame-style:double}
:is([data-frame="frame-carbon"],[data-profile-frame="frame-carbon"]){--fresh-frame-edge:#8ed9ca;--fresh-frame-shadow:#355f62;--fresh-frame-radius:7px;--fresh-frame-style:dashed}
:is(.jg-avatar[data-frame],#account-dialog .account-avatar-preview,#shop-dialog .shop-preview-avatar):is([data-frame="frame-steel"],[data-frame="frame-pulse"],[data-frame="frame-black-ice"],[data-frame="frame-heatwave"],[data-frame="frame-chrome"],[data-frame="frame-carbon"]){
  border:3px var(--fresh-frame-style) var(--fresh-frame-edge);
  border-radius:var(--fresh-frame-radius);
  box-shadow:0 0 0 2px var(--fresh-frame-shadow);
}
:is([data-player-name],#friends-dialog .friends-name)[data-name-color="color-silver"]{color:#d8dfe8}
:is([data-player-name],#friends-dialog .friends-name)[data-name-color="color-amber"]{color:#ffd084}
:is([data-player-name],#friends-dialog .friends-name)[data-name-color="color-seaglass"]{color:#a4e4d0}
:is([data-player-name],#friends-dialog .friends-name)[data-name-color="color-ultraviolet"]{color:#c4afff}
:is([data-player-name],#friends-dialog .friends-name)[data-name-color="color-cherry"]{color:#ffabb5}

:is([data-frame="frame-gunmetal"],[data-profile-frame="frame-gunmetal"]){--gear-rim:#adb9c9;--gear-shadow:#455261;--gear-radius:12px;--gear-edge:solid}
:is([data-frame="frame-patina"],[data-profile-frame="frame-patina"]){--gear-rim:#8dcea7;--gear-shadow:#826653;--gear-radius:50%;--gear-edge:solid}
:is([data-frame="frame-vault"],[data-profile-frame="frame-vault"]){--gear-rim:#dbbb72;--gear-shadow:#7c632f;--gear-radius:9px;--gear-edge:double}
:is([data-frame="frame-cut-glass"],[data-profile-frame="frame-cut-glass"]){--gear-rim:#a6dbff;--gear-shadow:#416c9a;--gear-radius:11px;--gear-edge:double}
:is([data-frame="frame-etched"],[data-profile-frame="frame-etched"]){--gear-rim:#dfe9ed;--gear-shadow:#5c7688;--gear-radius:50%;--gear-edge:dashed}
.jg-avatar:is([data-frame="frame-gunmetal"],[data-frame="frame-patina"],[data-frame="frame-vault"],[data-frame="frame-cut-glass"],[data-frame="frame-etched"]),
#account-dialog .account-avatar-preview:is([data-frame="frame-gunmetal"],[data-frame="frame-patina"],[data-frame="frame-vault"],[data-frame="frame-cut-glass"],[data-frame="frame-etched"]),
#community-dialog .community-social :is([data-profile-frame="frame-gunmetal"],[data-profile-frame="frame-patina"],[data-profile-frame="frame-vault"],[data-profile-frame="frame-cut-glass"],[data-profile-frame="frame-etched"]) .social-avatar {
  border:3px var(--gear-edge) var(--gear-rim);
  border-radius:var(--gear-radius);
  box-shadow:0 0 0 2px var(--gear-shadow);
}
[data-name-color="color-graphite"]{--gear-name:#bcc4ce}
[data-name-color="color-sage"]{--gear-name:#b5d4b0}
[data-name-color="color-cobalt"]{--gear-name:#9ebdff}
[data-name-color="color-copper"]{--gear-name:#eeb08b}
[data-name-color="color-oxblood"]{--gear-name:#f49fae}
:is([data-player-name],#friends-dialog .friends-name):is([data-name-color="color-graphite"],[data-name-color="color-sage"],[data-name-color="color-cobalt"],[data-name-color="color-copper"],[data-name-color="color-oxblood"]),
#community-dialog .community-social :is([data-name-color="color-graphite"],[data-name-color="color-sage"],[data-name-color="color-cobalt"],[data-name-color="color-copper"],[data-name-color="color-oxblood"]) .social-author strong{color:var(--gear-name)}
