/* Static artwork: the same themes are used by Store previews and public lists. */
[data-cosmetic-theme] {
  --cosmetic-base: #171425;
  --cosmetic-art: radial-gradient(circle at 88% 40%, #171020 0 9%, #e9966c 10%, #a74054 12%, transparent 24%),
    radial-gradient(ellipse at 85% 110%, #793445 0, transparent 70%);
  --cosmetic-edge: #c387a94d;
}
[data-cosmetic-theme="aurora"] {
  --cosmetic-base: #10212a;
  --cosmetic-art: linear-gradient(127deg, transparent 25%, #67f6d533 47%, transparent 50%, #89b4fa55 55%, transparent 72%),
    radial-gradient(ellipse at 95% 20%, #42688f, transparent 65%), radial-gradient(ellipse at 70% 100%, #1d7875, transparent 60%);
  --cosmetic-edge: #88d9ce4d;
}
[data-cosmetic-theme="nebula"] {
  --cosmetic-base: #20182e;
  --cosmetic-art: radial-gradient(circle at 89% 31%, #dbcaef 0 1%, transparent 1.6%),
    radial-gradient(ellipse at 98% 25%, #cb8ecf80, transparent 58%),
    radial-gradient(ellipse at 61% 110%, #5265be90, transparent 72%);
  --cosmetic-edge: #c8a3ed50;
}
[data-cosmetic-theme="custom"] { --cosmetic-base: #161927; --cosmetic-edge: #c8c2e854; background-size: cover; background-position: center; background-repeat: no-repeat; }
.cosmetic-preview,
html[data-color-theme] #inbox-list .inbox-item.has-cosmetic-badge,
html[data-color-theme] #friends-view .friend-item.has-cosmetic-cover {
  position: relative;
  isolation: isolate;
  background-color: var(--cosmetic-base);
  background-image: linear-gradient(90deg, #0e121ccd, #10141c70 55%, transparent), var(--cosmetic-art);
  color: #f7f6fd;
}
.cosmetic-preview::before,
#inbox-list .has-cosmetic-badge::before,
#friends-view .has-cosmetic-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 72% 18%, #e3dfff9c 0 .7px, transparent 1.4px),
    radial-gradient(circle at 94% 72%, #e3dfff80 0 .8px, transparent 1.5px),
    radial-gradient(circle at 61% 73%, #e3dfff60 0 .6px, transparent 1.3px);
}
html[data-color-theme] #inbox-list .inbox-item.has-cosmetic-badge { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--cosmetic-edge); }
html[data-color-theme] #inbox-list .inbox-item.has-cosmetic-badge:is(.selected, :hover, :focus-visible) { box-shadow: inset 3px 0 #c5b6fa, inset 0 0 0 1px #d4c7ff9c; }
html[data-color-theme] #inbox-list .has-cosmetic-badge :is(.inbox-item-name, .inbox-item-preview, .inbox-item-time, .inbox-receipt) { color: #f0eefb; text-shadow: 0 1px 3px #0009; }
html[data-color-theme] #inbox-list .has-cosmetic-badge .inbox-item-preview { color: #d0d7e8; }
html[data-color-theme] #friends-view .friend-item.has-cosmetic-cover { border-color: var(--cosmetic-edge); }
html[data-color-theme] #friends-view .has-cosmetic-cover :is(.friend-name, .friend-presence) { color: #ece9f7; text-shadow: 0 1px 3px #0008; }
html[data-color-theme] #friends-view .has-cosmetic-cover .friend-presence.is-online { color: #a0f3d2; }
html[data-color-theme] #friends-view .has-cosmetic-cover .friend-chat-button { background: #eee3ff24; border-color: #eee3ff50; color: #fff; }
html[data-color-theme] #inbox-list .inbox-item.has-cosmetic-badge[data-cosmetic-theme="custom"],
html[data-color-theme] #friends-view .friend-item.has-cosmetic-cover[data-cosmetic-theme="custom"] { background-size: cover; background-position: center; background-repeat: no-repeat; }

.cosmetic-preview { border: 1px solid var(--cosmetic-edge); border-radius: 14px; overflow: hidden; min-width: 0; width: 100%; box-sizing: border-box; }
.cosmetic-badge-preview { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 14px 12px; text-align: left; }
.cosmetic-preview-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(145deg, #76dfd0, #7f6ec2); color: #10172b; font: 700 20px/1 system-ui, sans-serif; box-shadow: 0 0 0 2px #ece6ff40; }
.cosmetic-preview-info { display: grid; gap: 5px; min-width: 0; }
.cosmetic-preview-info b { color: #f9f7ff; font-size: 13px; line-height: 1.2; }
.cosmetic-preview-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d4d9e9; font-size: 11px; }
.cosmetic-preview-detail { font-size: 10px; color: #d1cce7; align-self: start; }
.cosmetic-cover-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px 16px; text-align: center; background-image: linear-gradient(#0f11213b, #14102290), var(--cosmetic-art); }
.cosmetic-cover-preview .cosmetic-preview-avatar { width: 50px; height: 50px; font-size: 27px; }
.cosmetic-cover-preview .cosmetic-preview-detail { align-self: center; padding: 7px 26px; border: 1px solid #ffffff3b; border-radius: 30px; background: #ffffff1a; color: #fff; font-size: 12px; }
#store-products .store-cosmetic { background: linear-gradient(145deg, #302940, #211c31); }
.store-cosmetic .store-showcase { display: flex; flex-direction: column; gap: 20px; justify-content: center; aspect-ratio: auto; min-height: 190px; padding: 25px 16px 14px; }
.store-cosmetic .store-glass { display: block; width: 100%; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.store-cosmetic .store-glass::before, .store-cosmetic .store-glass::after { display: none; }
.store-cosmetic .store-card-actions { position: static; opacity: 1; transform: none; pointer-events: auto; }
.store-cosmetic .store-item-gift { min-width: 140px; }
.store-cosmetic .store-item-gift:disabled { opacity: .55; cursor: progress; }
.store-cosmetic .store-item-info p { font-size: 13px; line-height: 1.5; }
.store-dialog-preview { max-width: 310px; margin: 0 auto 18px; }
#store-gift-art[hidden] { display: none; }
#profile-decorations .cosmetic-preview { max-width: 170px; height: 76px; pointer-events: none; }
#profile-decorations .cosmetic-badge-preview { grid-template-columns: 24px minmax(0, 1fr); gap: 6px; padding: 10px 6px; }
#profile-decorations .cosmetic-preview-avatar { width: 24px; height: 24px; font-size: 14px; }
#profile-decorations .cosmetic-preview-info b { font-size: 10px; }
#profile-decorations .cosmetic-preview-info small { font-size: 8px; }
#profile-decorations .cosmetic-preview-detail { display: none; }
#profile-decorations .cosmetic-cover-preview { gap: 6px; padding: 6px; }
.cosmetic-inventory-title { display: grid; gap: 3px; }
.cosmetic-inventory-title small { color: var(--theme-muted, #b7adc8); font-size: 11px; }
.dev-cosmetic-preview { display: grid; place-items: center; padding: 20px; border-radius: 16px; background: var(--theme-canvas, #171a20); }
.dev-cosmetic-preview .cosmetic-badge-preview { max-width: 400px; min-height: 82px; }
.dev-cosmetic-preview .cosmetic-cover-preview { max-width: 230px; min-height: 255px; }
.dev-cosmetic-form .developer-description { line-height: 1.5; }
.dev-cosmetic-form .dev-label > span { display: flex; align-items: center; gap: 9px; }
.developer-panel .dev-cosmetic-form input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; }
@media (max-width: 700px) {
  .store-cosmetic .store-showcase { min-height: 160px; padding-inline: 14px; }
}
