/* DEADLINE RP | Motion layer.
   Tło i animacje z CSS. Żadnych obrazków AI, filmów, zdalnych fontów czy CDN.
   Na słabszych urządzeniach animujemy wyłącznie transform/opacity. */

html { background: #070a10; scroll-behavior: smooth; }
body { background: transparent !important; isolation: isolate; }
.dl-atmosphere {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  z-index: -1; contain: strict; background: #080b12;
}
.dl-atmosphere__grid {
  position: absolute; inset: -25%; opacity: .48;
  background-image: linear-gradient(rgba(63,106,182,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(63,106,182,.045) 1px,transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(180deg,transparent,black 16%,black 79%,transparent);
  animation: dlGrid 32s linear infinite;
}
.dl-atmosphere__glow {
  position: absolute; border-radius: 50%; filter: blur(28px);
  width: min(850px, 85vw); height: min(850px,85vw);
  background: radial-gradient(circle,rgba(40,103,235,.18),rgba(35,89,178,.045) 43%,transparent 73%);
  will-change:transform; animation:dlGlow 24s ease-in-out infinite alternate;
}
.dl-atmosphere__glow--one{top:-360px;left:-220px;}
.dl-atmosphere__glow--two{right:-300px;bottom:-300px;opacity:.48;animation-duration:33s;animation-direction:alternate-reverse;}
.dl-atmosphere__beam{
  position:absolute;top:-60%;left:15%;height:220%;width:1px;
  background:linear-gradient(180deg,transparent 18%,rgba(99,149,245,.13) 40%,transparent 57%);
  transform:rotate(18deg);opacity:.65;animation:dlBeam 19s ease-in-out infinite alternate;
}
.dl-atmosphere__beam--alt{left:75%;opacity:.25;animation-delay:-9s;animation-duration:24s;}
@keyframes dlGrid{from{transform:translate3d(0,0,0)}to{transform:translate3d(62px,62px,0)}}
@keyframes dlGlow{0%{transform:translate3d(-8%,3%,0) scale(.96)}100%{transform:translate3d(19%,17%,0) scale(1.14)}}
@keyframes dlBeam{from{transform:translateX(-150px) rotate(18deg);opacity:.08}to{transform:translateX(170px) rotate(18deg);opacity:.65}}

/* Hero: własna animacja refleksów, bez podkładów zdjęciowych. */
#home-hero{position:relative;isolation:isolate;}
#home-hero::before{
  content:"";position:absolute;z-index:-1;inset:-8% -9% 8%;pointer-events:none;
  border-radius:50%;background:radial-gradient(ellipse at 45% 25%,rgba(40,113,251,.145),rgba(21,49,104,.07) 35%,transparent 73%);
  animation:dlHeroAura 15s ease-in-out infinite alternate;
}
#home-hero::after{
  content:"";position:absolute;left:14%;right:14%;bottom:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(78,136,249,.56),transparent);
  opacity:.55;animation:dlLine 6s ease-in-out infinite alternate;
}
@keyframes dlHeroAura{from{transform:translate3d(-3%,0,0);opacity:.62}to{transform:translate3d(5%,4%,0);opacity:1}}
@keyframes dlLine{from{opacity:.2;transform:scaleX(.65)}to{opacity:.85;transform:scaleX(1)}}

/* Akcent ruchu podczas przewijania. Brak ukrywania treści, jeśli JS jest wyłączony. */
.dl-progress{position:fixed;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#2b6ff5,#83aeff);z-index:100;pointer-events:none;transform:scaleX(0);transform-origin:left center;opacity:.9;box-shadow:0 0 9px rgba(79,139,252,.4);}
@supports (animation-timeline: scroll()){
 .dl-progress{animation:dlScrollProgress linear both;animation-timeline:scroll(root block);}
 @keyframes dlScrollProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}
.dl-motion-ready .dl-reveal:not(.is-visible){opacity:0;transform:translate3d(0,19px,0)}
.dl-motion-ready .dl-reveal{transition:opacity .72s ease,transform .72s cubic-bezier(.2,.7,.25,1);}
.dl-motion-ready .dl-reveal.is-visible{opacity:1;transform:translate3d(0,0,0);}

/* Żywsze, ale oszczędne mikrointerakcje. */
.store-product, .store-vip__tier, #news .grid > div, #factions .grid > div {
 transition: transform .25s ease,border-color .25s ease,background-color .25s ease,box-shadow .25s ease;
}
@media(hover:hover) and (pointer:fine){
 .store-product:hover{transform:translateY(-4px);box-shadow:0 15px 33px rgba(0,0,0,.24)}
 .store-vip__tier:hover{transform:translateY(-3px);box-shadow:0 12px 29px rgba(0,0,0,.22)}
 #news .grid > div:hover,#factions .grid > div:hover{transform:translateY(-3px)}
 .store-product__bottom button:hover,.store-vip__tier button:hover{transform:translateY(-1px)}
}
.store-product__bottom button,.store-vip__tier button {transition:background-color .2s ease, transform .2s ease;}
#home-hero h1{animation:dlHeadingAppear .9s both cubic-bezier(.2,.7,.25,1)}
#home-hero>p{animation:dlHeadingAppear .9s .13s both cubic-bezier(.2,.7,.25,1)}
#home-hero .hero-shortcuts{animation:dlHeadingAppear .8s .2s both cubic-bezier(.2,.7,.25,1)}
@keyframes dlHeadingAppear{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* Ikony mają zawsze konkretny rozmiar, a nie rozmiar kontenera. */
svg.dl-icon{width:1em!important;height:1em!important;max-width:1.25em;max-height:1.25em;flex-shrink:0;display:inline-block;vertical-align:-.14em;}
.penalty-legend svg.dl-icon{font-size:22px;}
#rules .rule-card svg.dl-icon{max-height:1.25em;max-width:1.25em;}

@media(max-width:720px){
 .dl-atmosphere__grid{background-size:45px 45px;opacity:.24;}
 .dl-atmosphere__glow{filter:blur(18px);opacity:.6;}
 #home-hero::before{inset:-20% -2% 2%;}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto;}
 .dl-atmosphere__grid,.dl-atmosphere__glow,.dl-atmosphere__beam,
 #home-hero::before,#home-hero::after,#home-hero h1,#home-hero>p,#home-hero .hero-shortcuts,
 .dl-progress{animation:none!important;}
 .dl-atmosphere__grid{transform:none!important;}
 .dl-motion-ready .dl-reveal:not(.is-visible),.dl-motion-ready .dl-reveal{
  opacity:1!important;transform:none!important;transition:none!important;
 }
 .store-product,.store-vip__tier,#news .grid > div,#factions .grid > div{transition:none!important;}
}
