/* PROFILE THEMES (2026-11-25, services/points/themes.js; rebuilt 2026-11-26, owner: "lets go HARD on profile themes ...
   make sure they all work well, and store ones are the best"). The sky behind a creator's profile, and the same sky on
   the store and Settings swatches. Two layers: ::before is the still sky, ::after the moving one. Only transform and
   opacity animate (cheap on phones). Never a metal or a constellation, so a theme never reads as an award. Reduced
   motion stops every animation. */
.ptheme-sky { position: relative; isolation: isolate; }
.ptheme-sky::before, .ptheme-sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
body.ptheme-sky { isolation: auto; }
.ptheme-sky:not(body) { overflow: hidden; }   /* swatches clip the moving layer */
body.ptheme-sky::before, body.ptheme-sky::after { position: fixed; z-index: -1; border-radius: 0; }

/* STARDUST (free): a quiet field of stars, nothing moves */
.ptheme-stardust::before {
  background-image:
    radial-gradient(1.3px 1.3px at 22px 34px, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 180px 160px, rgba(220,210,255,.75), transparent 60%),
    radial-gradient(1px 1px at 60px 190px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.1px 1.1px at 200px 40px, rgba(200,220,255,.6), transparent 60%);
  background-size: 230px 230px;
}

/* AURORA (300 Orbs): green, violet and blue curtains that sway slowly over a starry night */
.ptheme-aurora::before {
  background:
    radial-gradient(1.2px 1.2px at 30px 40px, rgba(255,255,255,.7), transparent 60%) 0 0 / 190px 190px,
    radial-gradient(1px 1px at 140px 110px, rgba(255,255,255,.5), transparent 60%) 0 0 / 190px 190px,
    linear-gradient(180deg, #06121c 0%, #0b0b22 55%, #0d0a1f 100%);
}
.ptheme-aurora::after {
  inset: -30% -20% 10% -20%;
  background:
    radial-gradient(38% 22% at 28% 34%, rgba(64, 255, 178, .42), transparent 72%),
    radial-gradient(30% 26% at 52% 22%, rgba(40, 220, 200, .30), transparent 72%),
    radial-gradient(34% 22% at 72% 30%, rgba(150, 96, 255, .42), transparent 72%),
    radial-gradient(26% 18% at 45% 46%, rgba(70, 150, 255, .26), transparent 72%);
  transform-origin: 50% 0%;
  animation: pthemeAurora 26s ease-in-out infinite alternate;
}
@keyframes pthemeAurora {
  0%   { transform: translate3d(-5%, 0, 0) rotate(-4deg) scaleY(1); opacity: .85; }
  50%  { transform: translate3d(2%, 2%, 0) rotate(1deg) scaleY(1.12); opacity: 1; }
  100% { transform: translate3d(6%, -1%, 0) rotate(4deg) scaleY(.95); opacity: .9; }
}

/* METEOR SHOWER (300 Orbs): a dense starfield, and meteors crossing it at different places */
.ptheme-meteors::before {
  background:
    radial-gradient(1.4px 1.4px at 20px 30px, rgba(255,255,255,.85), transparent 60%) 0 0 / 160px 160px,
    radial-gradient(1px 1px at 110px 90px, rgba(255,255,255,.6), transparent 60%) 0 0 / 160px 160px,
    radial-gradient(1.2px 1.2px at 70px 140px, rgba(210,220,255,.7), transparent 60%) 0 0 / 230px 230px,
    radial-gradient(60% 40% at 80% 0%, rgba(90, 70, 200, .25), transparent 70%),
    linear-gradient(180deg, #070818, #0b0a1e);
}
.ptheme-meteors::after {
  background-image:
    linear-gradient(315deg, transparent 48.6%, rgba(255,255,255,.95) 49.8%, rgba(190,210,255,.25) 50.2%, transparent 51%),
    linear-gradient(315deg, transparent 48.8%, rgba(255,255,255,.8) 49.8%, rgba(190,210,255,.2) 50.2%, transparent 51%),
    linear-gradient(315deg, transparent 48.8%, rgba(255,255,255,.9) 49.8%, rgba(190,210,255,.2) 50.2%, transparent 51%),
    linear-gradient(315deg, transparent 49%, rgba(255,255,255,.7) 49.8%, transparent 50.6%);
  background-size: 180px 180px, 130px 130px, 220px 220px, 110px 110px;
  background-repeat: no-repeat;
  animation: pthemeMeteors 9s linear infinite;
}
@keyframes pthemeMeteors {
  0%   { background-position: 105% -30%, 70% -60%, 120% 10%, 40% -90%; opacity: 0; }
  6%   { opacity: 1; }
  60%  { opacity: 1; }
  70%  { background-position: 10% 120%, -30% 110%, 20% 160%, -60% 100%; opacity: 0; }
  100% { background-position: 10% 120%, -30% 110%, 20% 160%, -60% 100%; opacity: 0; }
}

/* DEEP SPACE (300 Orbs): nebula clouds in violet, blue and rose, and stars that twinkle */
.ptheme-deepspace::before {
  background:
    radial-gradient(55% 45% at 75% 15%, rgba(120, 60, 230, .55), transparent 70%),
    radial-gradient(50% 45% at 10% 55%, rgba(30, 100, 200, .45), transparent 70%),
    radial-gradient(40% 35% at 55% 85%, rgba(220, 70, 160, .30), transparent 70%),
    linear-gradient(#05040f, #090718);
}
.ptheme-deepspace::after {
  background:
    radial-gradient(1.5px 1.5px at 12px 18px, rgba(255,255,255,.95), transparent 60%) 0 0 / 90px 90px,
    radial-gradient(1px 1px at 60px 70px, rgba(200,210,255,.75), transparent 60%) 0 0 / 130px 130px,
    radial-gradient(1.8px 1.8px at 100px 30px, rgba(255,230,250,.85), transparent 60%) 0 0 / 210px 210px;
  animation: pthemeTwinkle 5s ease-in-out infinite alternate;
}
@keyframes pthemeTwinkle { from { opacity: .55; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ptheme-aurora::after, .ptheme-meteors::after, .ptheme-deepspace::after { animation: none; }
  .ptheme-meteors::after { opacity: 0; }
}

/* SWATCHES (store, Settings, the try bar) are small: the same skies at a smaller scale so each one reads */
.ptheme-stardust:not(body)::before { background-size: 64px 64px; }
.ptheme-meteors:not(body)::after { background-size: 46px 46px, 34px 34px, 56px 56px, 30px 30px; }
.ptheme-aurora:not(body)::before, .ptheme-meteors:not(body)::before { background-size: 60px 60px, 60px 60px, 80px 80px, auto, auto; }
/* the Default swatch shows the page's own soft glow, so it isn't an empty box */
.ptheme-default:not(body)::before { background: radial-gradient(120% 90% at 50% -10%, rgba(164, 93, 255, .28), transparent 70%), #0d0b20; }
.ptheme-stardust:not(body)::before { filter: brightness(1.6); }
