/* Site-wide Premium theme layer. Applied only after server-verified membership. */
html[data-piv-theme]{--piv-accent:#fc2f9c;--piv-bg:#0a0910;--piv-panel:#1e1624;--piv-border:#663d5e;--piv-soft:#ffb0dc;--piv-halo:#ff36944d;--piv-ink:#f7f4f9}
html[data-piv-theme='blue']{--piv-accent:#319fff;--piv-bg:#061628;--piv-panel:#102640;--piv-border:#39669b;--piv-soft:#a4e1ff;--piv-halo:#24a5ff44}
html[data-piv-theme='red']{--piv-accent:#ff5269;--piv-bg:#16080e;--piv-panel:#2c1119;--piv-border:#8e3046;--piv-soft:#ffb0bb;--piv-halo:#ff32564a}
html[data-piv-theme='emerald']{--piv-accent:#33e7ab;--piv-bg:#051913;--piv-panel:#0d2921;--piv-border:#297d68;--piv-soft:#b0ffe1;--piv-halo:#1adca14a}
html[data-piv-theme='silver']{--piv-accent:#cad8ec;--piv-bg:#0a111a;--piv-panel:#1e2a39;--piv-border:#536578;--piv-soft:#e5edfc;--piv-halo:#bdc8da50}
html[data-piv-theme='gold']{--piv-accent:#f1cb65;--piv-bg:#161108;--piv-panel:#2a2010;--piv-border:#8e723a;--piv-soft:#ffe3a3;--piv-halo:#efc14a4f}
html[data-piv-theme='galaxy']{--piv-accent:#b48bff;--piv-bg:#0a0821;--piv-panel:#201635;--piv-border:#7558b0;--piv-soft:#e0c6ff;--piv-halo:#9c60ff55}
html[data-piv-theme='storm']{--piv-accent:#d7e2ff;--piv-bg:#080b10;--piv-panel:#202431;--piv-border:#7383a1;--piv-soft:#fff;--piv-halo:#a4aacf46}
html[data-piv-theme='cyber']{--piv-accent:#f264fe;--piv-bg:#0c0626;--piv-panel:#230f42;--piv-border:#883ab2;--piv-soft:#f4c6ff;--piv-halo:#ac39ff4d}
html[data-piv-theme='rain']{--piv-accent:#8ad7b7;--piv-bg:#061612;--piv-panel:#152921;--piv-border:#548c74;--piv-soft:#d1ffe5;--piv-halo:#6fc5b341}
html[data-piv-theme='veil']{--piv-accent:#ff3a53;--piv-bg:#130409;--piv-panel:#280b16;--piv-border:#a12847;--piv-soft:#ffb1ba;--piv-halo:#f52a5a50}
html[data-piv-theme] body{background:var(--piv-bg)!important;color:var(--piv-ink)!important}
html[data-piv-theme] body:before{background-color:transparent!important}
html[data-piv-theme] :is(.pc-section,.pc-tile,.pp-card,.pp-coins,.pr-surface,.tile,.division,.feature,.creator-card,.piv-v12 .inner,.pv-panel,.pv-theme,.pv-art-card){border-color:var(--piv-border)!important;box-shadow:0 0 40px var(--piv-halo)!important}
html[data-piv-theme] :is(.pc-section,.pc-tile,.pp-card,.tile,.division,.pv-panel){background:var(--piv-panel)!important}
html[data-piv-theme] :is(.pc-price,.pp-coins strong,.pp-kicker,.pc-highlight,.eyebrow,.pr-kicker,.pr-highlight,.pv-eyebrow,.pv-hero h1 em){color:var(--piv-soft)!important}
html[data-piv-theme] :is(.pc-button,.pp-card button,.pc-nav,.btn:not(.outline),.pv-btn-primary,.pv-demo-button){background:var(--piv-accent)!important;color:#0a0910!important;border-color:var(--piv-accent)!important}
html[data-piv-theme] :is(.pc-highlight,.pp-premium,.pc-section,.pv-hero){border-color:var(--piv-accent)!important}
html[data-piv-theme] :is(.pp-back,.pp-lang,.pv-links a:hover){color:var(--piv-soft)!important}
html[data-piv-theme] .pv-demo-shell{border-color:var(--piv-accent)}
.piv-premium-motion{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none;opacity:.42;filter:saturate(1.08);background:#060609}
.piv-premium-motion-shade{position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(130deg,rgba(0,0,0,.42),rgba(0,0,0,.22)),linear-gradient(0deg,rgba(0,0,0,.58),transparent 70%)}
html[data-piv-theme][data-piv-video='on'] body{background:transparent!important}
html[data-piv-theme][data-piv-video='on'] body > :not(.piv-premium-motion):not(.piv-premium-motion-shade){z-index:1}
html[data-piv-theme][data-piv-video='on'] body > :not(.piv-premium-motion):not(.piv-premium-motion-shade):not(.nav):not(.snow-layer){position:relative}
html[data-piv-theme][data-piv-video='on'] body > .nav{position:sticky;top:0;z-index:50}
html[data-piv-theme][data-piv-video='on'] body > .snow-layer{position:fixed;z-index:20}
html[data-piv-theme][data-piv-video='on'] body > :is(.piv-premium-motion,.piv-premium-motion-shade){z-index:0}
html[data-piv-theme][data-piv-video='on'] :is(.pc-section,.pc-tile,.pp-card,.pv-hero,.pv-panel,.pv-perk,.pv-theme,.pr-surface){background:color-mix(in srgb,var(--piv-panel) 88%,transparent)!important;backdrop-filter:blur(9px)}
@media(prefers-reduced-motion:reduce){.piv-premium-motion{display:none!important}.piv-premium-motion-shade{display:none!important}}

/* V2.1 VISUAL FIX: full-bleed motion must never reveal the browser's white HTML canvas. */
html[data-piv-theme][data-piv-video='on']{background:var(--piv-bg,#09070d)!important;color-scheme:dark}
html[data-piv-theme][data-piv-video='on'] body{isolation:isolate}
/* Video is atmosphere, not a light grey page background. */
html[data-piv-theme][data-piv-video='on'] .piv-premium-motion{opacity:.35;filter:brightness(.70) contrast(1.25) saturate(1.3)}
html[data-piv-theme][data-piv-video='on'] .piv-premium-motion-shade{
  background:linear-gradient(90deg,rgba(4,3,10,.69),rgba(4,3,10,.44) 45%,rgba(4,3,10,.57)),linear-gradient(180deg,rgba(4,3,10,.22),rgba(4,3,10,.70))
}
/* The Gravity variant is silver-white by design; restrain it to cinematic highlights. */
html[data-piv-theme='galaxy'][data-piv-video='on'] .piv-premium-motion{opacity:.26;filter:brightness(.59) contrast(1.35) saturate(1.33)}
/* Premium UI surfaces stay inky even when there is video behind them. */
html[data-piv-theme][data-piv-video='on'] .pv-hero{
 background:radial-gradient(ellipse at 90% 8%,color-mix(in srgb,var(--piv-accent) 13%,transparent),transparent 55%),linear-gradient(115deg,rgba(14,10,22,.97),rgba(15,9,23,.94))!important;
 border-color:color-mix(in srgb,var(--piv-accent) 42%,#282035)!important;
 box-shadow:0 23px 90px #0009, inset 0 1px 0 #ffffff14!important;
 backdrop-filter:blur(20px)
}
html[data-piv-theme][data-piv-video='on'] :is(.pv-panel,.pv-perk,.pv-theme,.pv-art-card){
 background:linear-gradient(150deg,rgba(22,15,30,.96),rgba(10,9,16,.96))!important;
 box-shadow:0 12px 36px #0007,inset 0 1px 0 #ffffff09!important;
 backdrop-filter:blur(16px)
}
html[data-piv-theme] .pv-hero h1 em{color:var(--piv-accent)!important;text-shadow:0 0 52px var(--piv-halo)}
html[data-piv-theme] .pv-eyebrow{color:var(--piv-accent)!important}
html[data-piv-theme] .pv-theme[aria-current='true']{border-color:var(--piv-accent)!important;box-shadow:0 0 0 1px var(--piv-accent),0 14px 38px #0008!important}
@media(prefers-reduced-motion:reduce){html[data-piv-theme][data-piv-video='on'] body{background:var(--piv-bg)!important}}
