/* WYDAJNOŚĆ (telefon): animacje liczone na GPU (transform/opacity) zamiast tła/filtra przeliczanych w każdej klatce na głównym wątku.
   CZĘŚĆ 1 – domyślnie: wygląd identyczny (ten sam gradient w tym samym ruchu, te same tory lotu), zmienia się tylko sposób liczenia.
   CZĘŚĆ 2 – tylko w trybie „Mniej efektów” (html.acLowFx): uproszczenia, które minimalnie zmieniają wygląd. */
/* połysk skrzyń (było: background-position) – ten sam pas światła 250%, od +90% do −90% szerokości warstwy */
.t-srebrna .cshine,.t-zlota .cshine,.t-legendarna .cshine{background:none;overflow:hidden}
.t-srebrna .cshine,.t-zlota .cshine{animation:none}.t-legendarna .cshine{animation:cBob 3s ease-in-out infinite}
.cshine::before{content:"";position:absolute;top:0;bottom:0;left:0;width:250%;background:linear-gradient(110deg,transparent 35%,#ffffffcc 50%,transparent 65%);transform:translateX(90%)}
.t-srebrna .cshine::before{animation:cSh2 3.2s ease-in-out infinite}.t-zlota .cshine::before{animation:cSh2 2.6s ease-in-out infinite}.t-legendarna .cshine::before{animation:cSh2 2.2s ease-in-out infinite}
@keyframes cSh2{0%,40%{transform:translateX(90%)}80%,100%{transform:translateX(-90%)}}
/* złota fala na przycisku VIP (było: background-position) */
body.isVip .vipchip.on{position:relative;overflow:hidden;isolation:isolate;animation:none;background:#f5c542}
body.isVip .vipchip.on::before{content:"";position:absolute;top:0;bottom:0;left:0;width:400%;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#f5c542 0,#fff1b0 15%,#f5c542 30%,#f5c542 50%,#fff1b0 65%,#f5c542 80%,#f5c542 100%);transform:translateX(-50%);animation:vipSh2 4s linear infinite}
@keyframes vipSh2{to{transform:translateX(0)}}
/* plakietka legendarnej rzadkości (było: background-position 0→200%) – ten sam gradient przesuwany w lewo */
@keyframes ltiSh2{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.lti.r-legendarna{animation:none;position:relative;overflow:hidden;isolation:isolate}
.lti.r-legendarna::before{content:"";position:absolute;top:0;bottom:0;left:0;width:400%;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#ff9a1f,#ffe680,#ff9a1f,#ffe680,#ff9a1f);animation:ltiSh2 2.6s linear infinite}
/* Kuźnia: latające skrzynie pozycjonowane translate/scale (shop2.js) – ten sam tor i rozmiar */
.fgFly{left:0;top:0;width:100px;height:100px;will-change:translate,scale,opacity}
/* pokaz zakupu legendarnego: wstrząs przez translate zamiast margin-left (ten sam ruch ±6 px) */
@keyframes rvShake2{25%{translate:-6px 0}75%{translate:6px 0}}
.acRev.t-legendarna .rvItem{animation:rvPop .7s cubic-bezier(.2,1.6,.4,1),rvShake2 .4s .6s}
/* perf.js: nieskończone animacje POZA EKRANEM wstrzymane (niewidoczne; wznawiają się, gdy element wjedzie w widok) */
.acOffv,.acOffv::before,.acOffv::after{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){body.isVip .vipchip.on::before,.cshine::before,.lti.r-legendarna::before{animation:none}}

/* poświata legendarnej skrzyni bez animowanego filtra (perf.js): stała poświata „od” + kopia z poświatą „do” pulsująca przezroczystością */
.t-legendarna>img.acAuraA{animation:cBob 3s ease-in-out infinite;filter:drop-shadow(0 0 12px #b05cff) drop-shadow(0 0 26px #ff3fb488)}
.t-legendarna>img.acAuraB{position:absolute;margin:0;max-width:none;pointer-events:none;opacity:0;filter:drop-shadow(0 0 20px #f5c542) drop-shadow(0 0 44px #b05cffcc) brightness(1.1);animation:cBob 3s ease-in-out infinite,acAuraO 2s ease-in-out infinite alternate}
@keyframes acAuraO{to{opacity:1}}
.acLowFx .t-legendarna>img.acAuraB{display:none}
@media (prefers-reduced-motion:reduce){.t-legendarna>img.acAuraB{animation:none}}
/* Ustawienia → Grafika: 4 przyciski w jednym rzędzie bez zawijania (bez przesunięć układu) */
.sGfx button{white-space:nowrap;font-size:13px;padding:7px 4px;min-width:0}.sGfxN{display:block;margin:4px 0 8px}

/* ===== CZĘŚĆ 2: tylko „Mniej efektów” ===== */
/* aura skrzyni legendarnej: stała poświata + pulsująca warstwa blasku zamiast animowanego filtra */
.acLowFx .t-legendarna>img{animation:cBob 3s ease-in-out infinite;filter:drop-shadow(0 0 12px #b05cff) drop-shadow(0 0 26px #ff3fb488)}
.acLowFx .t-legendarna::after{content:"";position:absolute;inset:-14%;z-index:1;border-radius:50%;pointer-events:none;background:radial-gradient(circle,#f5c54288 0,#b05cff55 42%,transparent 68%);opacity:0;animation:cAura2 2s ease-in-out infinite alternate}
@keyframes cAura2{to{opacity:1}}
/* mecz: gotowy super – skala na GPU + warstwa blasku zamiast filtra brightness / box-shadow */
@keyframes supPulse2{50%{transform:scale(1.09)}}@keyframes supGl2{50%{opacity:1}}@keyframes sbGlow2{50%{transform:scale(1.07)}}
.acLowFx .abil .ab.full{animation:supPulse2 1.1s ease-in-out infinite}
.acLowFx .abil .ab.full::before{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;background:#ffffff3d;opacity:0;animation:supGl2 1.1s ease-in-out infinite}
.acLowFx .abil .ab.sb2.full,.acLowFx .abil #aSup.sb2.full,.acLowFx .abil #aSup2.sb2.full{animation:sbGlow2 1s ease-in-out infinite!important}
.acLowFx .abil .ab.sb2.full::before{background:none;box-shadow:0 0 34px 10px var(--rc);animation:supGl2 1s ease-in-out infinite}
/* przycisk „Odbierz” w sklepie: pulsujący cień przez przezroczystość warstwy */
@keyframes s2p2{50%{opacity:1}}
.acLowFx .s2claim{animation:none;position:relative}
.acLowFx .s2claim::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:0 0 0 6px #f5c54233,0 0 22px #f5c54288;opacity:0;animation:s2p2 1.6s ease-in-out infinite}
/* poświaty po konturze bez pulsowania, nick VIP bez przesuwania gradientu, połowa iskier godła, czat bez rozmytego cienia tekstu */
@keyframes lkfP2{50%{transform:scale(1.12)}}
.acLowFx .lkfDemo{animation-name:lkfP2}
.acLowFx .ab.sup .abI,.acLowFx .rkBanEmb,.acLowFx .trCup,.acLowFx .trPi.t-legendarna img,.acLowFx .mSum .hot,.acLowFx .mHeroArt img,.acLowFx .pfRank,.acLowFx .gmCup{filter:drop-shadow(0 0 16px var(--g,#f5c542aa))}
.acLowFx .ab.sup .abI,.acLowFx .trPi.t-legendarna img,.acLowFx .mSum .hot,.acLowFx .mHeroArt img,.acLowFx .pfRank,.acLowFx .gmCup{animation:none}
.acLowFx .rkBanEmb{animation:pgFloat 5s ease-in-out infinite}.acLowFx .trCup{animation:pgFloat 4s ease-in-out infinite}
.acLowFx .lbadge.t-elita{animation:none;filter:drop-shadow(0 0 6px #ff5fc8)}
.acLowFx .chVip .chN{animation:none;background-position:30% 0}
.acLowFx .eSpk:nth-child(2n){display:none}
.acLowFx #gcLog .chM{text-shadow:0 1px 0 #000}
/* przelot do Ekwipunku: poświata jako gradient zamiast filtra na lecącym elemencie */
.acLowFx .flyItem{filter:none;will-change:transform,opacity}
.acLowFx .flyItem::before{content:"";position:absolute;inset:-14px;border-radius:50%;background:radial-gradient(circle,#ff3fb466 0,#ff3fb400 68%);z-index:-1}
.acLowFx .flySpark{box-shadow:none;background:radial-gradient(circle,#fff 0 35%,#ff3fb4aa 55%,#1fd1d100 72%);width:14px;height:14px;margin:-7px}
@media (prefers-reduced-motion:reduce){.acLowFx .abil .ab.full,.acLowFx .abil .ab.full::before,.acLowFx .s2claim::after,.acLowFx .t-legendarna::after{animation:none!important}}

/* next31 ZERO LAG: Sklep / Ekwipunek – karty poza ekranem bez layout/paint (wygląd widocznych bez zmian) */
[data-page=sklep] #shop > .si,
[data-page=skrzynki] #invGrid > .si {
  content-visibility: auto;
  contain-intrinsic-size: auto 160px;
}

/* fullscan31: phone idle — chest/VIP sheen looked like lobby flicker (frame-diff sklep maxPct~2.9) */
body.touch .cshine::before,
body.touch .t-srebrna .cshine::before,
body.touch .t-zlota .cshine::before,
body.touch .t-legendarna .cshine::before,
body.touch .t-legendarna .cshine,
body.touch .t-legendarna>img.acAuraA,
body.touch .t-legendarna>img.acAuraB,
body.touch .t-legendarna::after { animation: none !important; }
body.touch .t-legendarna>img.acAuraB { display: none; }
body.touch #vipChip.vcVip::after,
body.touch #topupB.vcTop::after { animation: none !important; opacity: 0; }
body.touch .lti.r-legendarna::before { animation: none !important; }

/* fullscan31: home A54 idle ~43fps → ~60 — compositor-only / fewer layers, look unchanged at a glance */
body.touch .eRays {
  /* 40s rotate was continuous paint of huge conic+mask; freeze = same look as any frame of the loop */
  animation: none !important;
  opacity: .55;
  transform: translateZ(0);
  will-change: auto;
}
body.touch .eCrown,
body.touch .emblem .eCrown {
  animation: none !important; /* 3s bob ±4px — idle cost; crown stays at rest pose */
}
body.touch .eSpk { /* sparks already fewer in emb.js; pause half remaining via nth */
}
body.touch .eSpk:nth-child(2n) { animation: none !important; opacity: 0; }
/* reserve emblem box so first paint ≈ final (CLS) */
html.emb3 .emblem {
  min-height: 280px;
  contain: layout style;
}
@media (max-width: 600px) {
  html.emb3 .emblem { min-height: 240px; }
}


/* ui60: scroll 60fps — pause continuous sheens/filters while finger/wheel moves (look resumes after) */
html.acScrolling #shopFeat .s2sh::before,
html.acScrolling .cshine::before,
html.acScrolling .t-legendarna .cshine::before,
html.acScrolling .lti.r-legendarna::before,
html.acScrolling #vipChip.vcVip::after,
html.acScrolling #topupB.vcTop::after,
html.acScrolling .vcSh::before,
html.acScrolling .vcSp i,
html.acScrolling .vcV.on .vcGl,
html.acScrolling body.isVip .vipchip.on::before,
html.acScrolling .eRays,
html.acScrolling .eSpk,
html.acScrolling .hxRays,
html.acScrolling .rkBanEmb,
html.acScrolling .trCup {
  animation-play-state: paused !important;
}
/* ui60: wheel bulb chase on phone — opacity-only (filter/box-shadow in acWchase forced main-thread paint each frame) */
body.touch .acWheel.spinning .acWbulbs i {
  animation-name: acWchaseLite !important;
  filter: none !important;
  box-shadow: 0 0 8px #ffe08a88 !important;
}
@keyframes acWchaseLite {
  0%,100%{opacity:.18}
  8%{opacity:1}
  22%{opacity:.55}
}


/* ui60: shop content-visibility removed — SoftShader reveal storms; rely on loot/cprev hide */
/* ui60 lsSh: infinite sheen on every loot tile — pause on phone + while scrolling */
body.touch #lootShow .lsI::after,
html.acScrolling #lootShow .lsI::after {
  animation: none !important;
}

/* ui60 shopFeat touch: continuous sheen paints every frame on A54 — freeze (same look as mid-sheen still) */
body.touch #shopFeat .s2sh::before { animation: none !important; opacity: 0; }
body.touch #cshop .cshine::before,
body.touch #cprev .cshine::before { animation: none !important; }


/* fullscan31: party bar CLS reserve — solo invite height reserved from first paint */
#acPartyBar{
  min-height: 54px;
  contain: layout style;
  box-sizing: border-box;
}
@media (max-width: 700px){
  #acPartyBar{ min-height: 50px; }
}



/* ui60-sklep61 SoftShader raster cut — bake glows, solid fills, CV rows, few layers.
   Look ≈ prior (solid fills match gradient endpoints; glow PNGs replace live blur). */

/* opaque page chrome — compositor tiles stay cheap */
[data-page=sklep].on,
[data-page=profil].on {
  background-color: #0a0620;
  background-image: none;
}
[data-page=sklep] .glass,
[data-page=profil] .glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #0b1333 !important;
}

/* —— featured strip: kill multi-stop gradients + inset blur (SoftShader killers) —— */
[data-page=sklep] #shopFeat .s2t {
  background: #160b34 !important;
  box-shadow: none !important;
  isolation: auto !important;
  /* ui62 hover: 45a2e617 contain:none (was sklep61 contain:paint — clipped top) */
  contain: none;
}
[data-page=sklep] #shopFeat .s2deal,
[data-page=sklep] #shopFeat .s2vip,
[data-page=sklep] #shopFeat .s2star,
[data-page=sklep] #shopFeat .s2pack,
[data-page=sklep] #shopFeat .s2limc,
[data-page=sklep] #shopFeat .s2sea {
  background: #160b34 !important;
}
/* accent kept via border only (already set by --ac) */
[data-page=sklep] #shopFeat .s2art,
[data-page=sklep] #shopFeat .s2pkA,
[data-page=sklep] #shopFeat .s2pk img,
[data-page=sklep] #shopFeat .s2key,
[data-page=sklep] #shopFeat .s2art img,
[data-page=sklep] #shopFeat .cart > img,
[data-page=sklep] #shopFeat .s2kSv {
  filter: none !important;
  box-shadow: none !important;
}
/* baked soft landing shadow under art (PNG, no CSS blur) */
[data-page=sklep] #shopFeat .s2art {
  background: url(/img/ui60-glow-shadow.png) center 78% / 70% 40% no-repeat;
}
[data-page=sklep] #shopFeat .s2g {
  box-shadow: none !important;
  background: #0b0620 !important;
}
[data-page=sklep] #shopFeat .s2own {
  box-shadow: none !important;
}
[data-page=sklep] #shopFeat .s2nm,
[data-page=sklep] #shopFeat .s2k {
  text-shadow: none !important;
}
/* freeze all sheens on sklep — SoftShader paints every frame otherwise */
[data-page=sklep] .s2sh::before,
[data-page=sklep] .cshine::before,
[data-page=sklep] .s2gone::after {
  animation: none !important;
  opacity: 0 !important;
  content: none !important;
}

/* —— chest strip —— */
[data-page=sklep] #cshop .csc,
[data-page=sklep] #cshop .csc .sa,
[data-page=sklep] #cshop .csc .cart,
[data-page=sklep] #cshop .csc img,
[data-page=sklep] #cshop .csc .acAuraA,
[data-page=sklep] #cshop .csc .acAuraB {
  filter: none !important;
  box-shadow: none !important;
}
[data-page=sklep] #cshop .csc {
  /* ui62 hover: 45a2e617 contain:content (was sklep61 contain:paint — clipped hover/.s2gone) */
  contain: content;
  background-color: #120a2a;
}
/* baked violet glow under chest art */
[data-page=sklep] #cshop .csc .sa,
[data-page=sklep] #cshop .csc .cart {
  background: url(/img/ui60-glow-violet.png) center / 90% 90% no-repeat;
}

/* —— catalog cards —— */
[data-page=sklep] #shop > .si.sc {
  background: #1b1450 !important;
  box-shadow: none !important;
  transition: none !important;
  /* ui62: no contain:paint / CV — hover lift + no pop-in */
}
[data-page=sklep] #shop > .si.sc .sa img {
  max-width: 96px;
  max-height: 96px;
  /* decode at display size — avoid SoftShader upscale from large assets */
  image-rendering: auto;
}
[data-page=sklep] #shop > .si.sc .sa canvas.alPv {
  width: 96px !important;
  height: 64px !important;
}

#shopPad, #shopTopPad {
  grid-column: 1 / -1;
  pointer-events: none;
  visibility: hidden;
}

/* CV on featured/chest when offscreen */
/* ui62: no CV/contain:paint on #shopFeat/#cshop — never blank while scrolling */

/* will-change ONLY on the few animated bits we still keep (none on scroll list) */
[data-page=sklep] #shop > .si,
[data-page=sklep] #shopFeat .s2t {
  will-change: auto !important;
}

/* —— profil SoftShader —— */
[data-page=profil] .card.neon,
[data-page=profil] .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  contain: paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
  background-color: #120a2e;
}
[data-page=profil] #hist,
[data-page=profil] .hist {
  contain: paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
[data-page=profil] .pgrid > * {
  contain: paint;
}
[data-page=profil] img {
  max-width: 96px;
  height: auto;
}


/* ui62: sklep61b scroll-hide REMOVED — feat/chest stay painted while scrolling */
/* kill remaining drop-shadow/filter paint on sklep (shop2.css leftovers) */
[data-page=sklep] img,
[data-page=sklep] .s2key,
[data-page=sklep] .s2pk img,
[data-page=sklep] .s2pkA,
[data-page=sklep] .cart img,
[data-page=sklep] .s2art,
[data-page=sklep] .sa img,
[data-page=sklep] .csc img {
  filter: none !important;
}
[data-page=sklep] .s2key,
[data-page=sklep] .s2sea::after {
  animation: none !important;
}
/* fixed opaque document bg — SoftShader tiles stay solid */
html, body {
  background-color: #07051a !important;
  background-image: none !important;
}
#app, main, .wrap, .page {
  background-image: none;
}
/* cards: no alpha, no shadow, tiny art */
[data-page=sklep] #shop > .si.sc {
  background: #1b1450 !important;
  background-image: none !important;
  border-color: #3a2a6a !important;
  outline: none !important;
}
[data-page=sklep] #shop > .si.sc .sa img {
  max-width: 72px !important;
  max-height: 72px !important;
}
[data-page=sklep] #shop > .si.sc .sa canvas.alPv {
  width: 72px !important;
  height: 48px !important;
}
/* ui62: profil hist scroll-hide REMOVED */
/* kill neon glow pseudos / gradients that SoftShader rasters every frame */
[data-page=profil] .card.neon::before,
[data-page=profil] .card.neon::after,
[data-page=profil] .card::before,
[data-page=profil] .card::after {
  display: none !important;
  content: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
  background: none !important;
}
[data-page=profil] .mis li,
[data-page=profil] #hist tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 48px;
  contain: paint;
}
[data-page=profil] table { background: #120a2e; }
[data-page=profil] .pgrid {
  background: #0a0620;
}
/* chrome above profil also solid during scroll */
html.acScrolling .topb,
html.acScrolling .snav,
html.acScrolling .bnav,
html.acScrolling header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
[data-page=profil] .card.neon,
[data-page=profil] .card,
[data-page=profil] .glass {
  background: #120a2e !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  filter: none !important;
}
[data-page=profil] img { filter: none !important; }


/* —— ui60-sklep61c-profil: 14kpx collection + misje — CV rows, solid, no filter —— */
[data-page=profil] .lcI,
[data-page=profil] .lcA,
[data-page=profil] .mcard,
[data-page=profil] .pfRefStep,
[data-page=profil] .pfRefTier,
[data-page=profil] .pfMisBlk {
  content-visibility: auto;
  contain: paint;
  contain-intrinsic-size: auto 140px;
}
[data-page=profil] .lcG {
  content-visibility: auto;
  contain: paint;
  contain-intrinsic-size: auto 900px;
}
[data-page=profil] .lcColl,
[data-page=profil] .pfMisSec,
[data-page=profil] .pfRef {
  contain: paint;
  background: #120a2e !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}
[data-page=profil] .pfBan,
[data-page=profil] .pgHero,
[data-page=profil] .pfBg {
  filter: none !important;
  box-shadow: none !important;
}
[data-page=profil] .pfBan {
  background: #0e0a28 !important;
  background-image: none !important;
}
[data-page=profil] .pfBg {
  /* keep hero art but stop SoftShader blur/glow composites */
  opacity: 0.55;
  mix-blend-mode: normal !important;
  filter: none !important;
}
[data-page=profil] img,
[data-page=profil] .pfRefRw > img,
[data-page=profil] .lbadge {
  filter: none !important;
  max-width: 96px;
}
[data-page=profil] .lbadge { max-width: 84px; }
/* ui62: profil mega scroll-hide REMOVED */
/* freeze remaining chrome anims on profil scroll */
html.acScrolling .vbRays,
html.acScrolling .vbShine,
html.acScrolling .vbIc,
html.acScrolling .eSpk,
html.acScrolling .eRays {
  animation: none !important;
  opacity: 0 !important;
}

/* ui62: pfBan scroll-hide REMOVED */


/* ui62-safety: shop cards always painted (no CV pop-in mid-scroll) */
[data-page=sklep] #shop > .si {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}
