/* Ekran logowania/rejestracji na tle gry. Animacje tylko transform/opacity. */
html.ab-on #auth{background:#070418;display:block;overflow:hidden;padding:0}
#abStage{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;contain:strict}
#abStage .abBg,#abStage .abBg2{position:absolute;inset:-3%;background:url(img/bg-neon.jpg) 50% 40%/cover}
#abStage .abBg2{background-image:url(img/bg-city.jpg)}
#abStage .abShade{position:absolute;inset:0;background:radial-gradient(60% 50% at 50% 45%,#0000,#07041899 100%),linear-gradient(180deg,#07041855,#0000 30%,#0000 62%,#070418e6)}
#abStage .abHeroes{position:absolute;inset:0;filter:drop-shadow(0 14px 22px #000b)}
#abStage .abH{position:absolute;bottom:0;width:auto;user-select:none}
#abStage .abBg2,#abStage .abBan,#abStage .abBanH{display:none}
#abStage .abGlow b{position:absolute;border-radius:50%;opacity:.5;will-change:opacity,transform}
#abStage .abGlow .g1{width:46vmax;height:46vmax;left:-12vmax;top:-14vmax;background:radial-gradient(#ff3fb455,#0000 65%);animation:abPulse 7s ease-in-out infinite alternate}
#abStage .abGlow .g2{width:40vmax;height:40vmax;right:-12vmax;top:4vmax;background:radial-gradient(#1fd1d144,#0000 65%);animation:abPulse 9s ease-in-out -3s infinite alternate}
#abStage .abGlow .g3{width:60vmax;height:30vmax;left:50%;bottom:-14vmax;margin-left:-30vmax;background:radial-gradient(#f5c54240,#0000 65%);animation:abPulse 6s ease-in-out -1s infinite alternate}
@keyframes abPulse{from{opacity:.25;transform:scale(.94)}to{opacity:.7;transform:scale(1.04)}}
#abStage .abSparks i{position:absolute;bottom:-12px;width:var(--s);height:var(--s);border-radius:50%;background:radial-gradient(circle,#fffbe6 0,#f5c542 45%,#f5c54200 72%);opacity:0;will-change:transform,opacity;animation:abRise var(--d) linear var(--dl) infinite}
#abStage .abSparks i:nth-child(3n){background:radial-gradient(circle,#ffe6fb 0,#ff3fb4 45%,#ff3fb400 72%)}
#abStage .abSparks i:nth-child(4n){background:radial-gradient(circle,#e6ffff 0,#1fd1d1 45%,#1fd1d100 72%)}
@keyframes abRise{0%{transform:translate3d(0,0,0);opacity:0}12%{opacity:.95}80%{opacity:.7}100%{transform:translate3d(var(--dx),-72vh,0);opacity:0}}

/* okno formularza: szkło + złoty obrys, ta sama szerokość przy logowaniu i rejestracji */
html.ab-on #auth .mbox,html.ab-on #auth .mbox.reg{position:relative;z-index:1;box-sizing:border-box;width:min(440px,92vw);margin:var(--abTop) auto 0;padding:20px 22px 16px;max-height:calc(100dvh - var(--abTop) - 14px);overflow-y:auto;overscroll-behavior:contain;
  background:linear-gradient(180deg,#2a1260a8,#0d0830c4);border:2px solid #e9b949;border-radius:20px;box-shadow:inset 0 0 0 1px #fff3d622,inset 0 1px 0 #fff6,0 0 26px #f5c54255,0 0 60px #9b5cff44,0 24px 60px #000c;scrollbar-width:thin;scrollbar-color:#e9b94966 transparent}
@media (hover:hover) and (pointer:fine){html.ab-on:not(.ab-low) #auth .mbox{backdrop-filter:blur(7px) saturate(1.15);-webkit-backdrop-filter:blur(7px) saturate(1.15);background:linear-gradient(180deg,#2a12608a,#0d0830b0)}}
html.ab-on #fAuth input:not([type=checkbox]):not(.hp),html.ab-on #fAuth select{background:#0a0b2ecc;border-color:#ffffff30}
html.ab-on #auth .tabs b{min-height:44px;display:grid;place-items:center;font-size:16px}
html.ab-on #auth .logo{display:flex;flex-direction:column;align-items:center}
html.ab-on #auth .logo .lcrown{display:none}
html.ab-on #auth .abGift{width:104px;height:auto;aspect-ratio:245/131;filter:drop-shadow(0 0 12px #f5c54288) drop-shadow(0 3px 0 #4a2a00);margin-bottom:4px}
html.ab-on #auth .lname{font-size:30px}
html.ab-on #auth .lsub{font:900 18px/1.15 Barlow,sans-serif;letter-spacing:.2em;margin-top:6px;color:#ffc6ec;-webkit-text-stroke:.3px #ff8fd8;text-shadow:0 2px 0 #2a0020,0 0 3px #000,0 0 10px #ff3fb4cc,0 0 20px #ff3fb466}
html.ab-on #auth .btn.gold{min-height:52px;font-size:19px}

/* komputer: formularz po środku, bohaterowie po bokach */
html.ab-on{--abTop:max(40px,calc(50vh - 330px))}
#abStage .hL0{left:11%;height:50vh;z-index:4}#abStage .hL1{left:1%;height:46vh;z-index:3}#abStage .hL2{left:24%;height:40vh;z-index:2;filter:brightness(.78)}#abStage .hL3{left:-3%;height:36vh;z-index:1;filter:brightness(.6)}
#abStage .hR0{right:2%;height:48vh;z-index:4}#abStage .hR1{right:15%;height:47vh;z-index:3}#abStage .hR2{right:26%;height:40vh;z-index:2;filter:brightness(.78)}#abStage .hR3{right:-3%;height:36vh;z-index:1;filter:brightness(.6)}

/* telefon */
@media (max-width:600px){
  html.ab-on{--banH:240px;--abTop:var(--banH)}html.ab-on.ab-reg{--abTop:28px}
  #abStage .abBg2,#abStage .abBan,#abStage .abBanH{display:block}
  #abStage .abBg2,#abStage .abBan,#abStage .abBanH,#abStage .abSide{transition:opacity .42s ease}
  #abStage .abBg2{opacity:.55}
  #abStage .abBan{position:absolute;left:0;right:0;top:0;height:var(--banH);overflow:hidden}
  #abStage .abBanBg{position:absolute;inset:0;background:linear-gradient(180deg,#0000 70%,#07041866 100%),url(img/bg-neon.jpg) 50% 45%/cover}
  #abStage .abBanLine{position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#0000,#f5c542,#fff3c4,#f5c542,#0000);box-shadow:0 0 14px #f5c542}
  #abStage .abBanH{bottom:auto;height:var(--banH);overflow:hidden}
  #abStage .abBanH .abH{left:50%;bottom:4px;height:170px}
  #abStage .bC{height:200px!important;margin-left:-100px;z-index:9}#abStage .bL{height:185px!important;margin-left:-190px;z-index:8}#abStage .bR{height:185px!important;margin-left:40px;z-index:8}
  #abStage .b1{margin-left:-250px;z-index:6}#abStage .b2{margin-left:110px;z-index:6}
  html.ab-on:not(.ab-reg) #auth .mbox{border-top-left-radius:0;border-top-right-radius:0}
  #abStage .abSide{opacity:0}
  #abStage .abSide .abH{height:300px}#abStage .hL0{left:-60px}#abStage .hR1{right:-46px}
  #abStage .hL1,#abStage .hL2,#abStage .hL3,#abStage .hR0,#abStage .hR2,#abStage .hR3{display:none}
  html.ab-reg #abStage .abBg2,html.ab-reg #abStage .abBan,html.ab-reg #abStage .abBanH{opacity:0}
  html.ab-reg #abStage .abSide{opacity:1}}

/* „Mniej efektów” / prefers-reduced-motion: wszystko stoi, przełączanie bez animacji */
html.ab-low #abStage *{animation:none!important;transition:none!important}html.ab-low #abStage .abSparks{display:none}
@media (prefers-reduced-motion:reduce){#abStage *{animation:none!important;transition:none!important}#abStage .abSparks{display:none}}
/* login-lag: gra pod ekranem logowania niewidoczna i zatrzymana (było: ~20 animacji i rysowanie całej strony Arena przy każdej klatce) */
html.ab-cover #app{visibility:hidden}html.ab-cover #app,html.ab-cover #app *,html.ab-cover #app *::before,html.ab-cover #app *::after{animation-play-state:paused!important}
/* login-pc: „Zapamiętaj mnie” w tym samym wierszu co „Nie pamiętasz hasła?” – wiersz ma dokładnie tę samą wysokość (17,5 px), więc nic pod spodem się nie przesuwa */
#fAuth .rmRow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;height:17.55px;font-size:13px;line-height:17.55px}
#auth .mbox.reg .rmRow{display:none}
#fAuth .rmRow .forgotL{display:inline;margin:0;white-space:nowrap}
#fAuth .rmChk{display:inline-flex;align-items:center;gap:7px;height:17.55px;color:#dfe6ff;cursor:pointer;white-space:nowrap;user-select:none;-webkit-tap-highlight-color:transparent}
#fAuth .rmChk input{appearance:auto;-webkit-appearance:checkbox;flex:0 0 18px;width:18px!important;height:18px!important;min-height:0!important;margin:0!important;padding:0!important;border:0;background:none;accent-color:var(--gold,#f5c542);cursor:pointer}
