html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #08111d;
}

.grafika-obal {
  width: 100%;
  height: 100vh;
}

.embed-scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family:  sans-serif;
  background:   linear-gradient(to bottom, #4078c8 0%,#6796d4 41%,#bdd2ed 100%);
}


.embed-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);

  background-size:
    40px 40px,
    40px 40px,
    200px 200px,
    200px 200px;
}



.weapon-map__hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.weapon-map__title {
  position: absolute;
  left: 30px;
  top: 30px;
 width: 90%;
 
 
  
}

.weapon-map__title h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.weapon-map__title p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
 
}

.center-zone {
    display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100% - 40px));
  height: 140px;
  border-top: 1px dashed rgba(255,255,255,.22);
  border-bottom: 1px dashed rgba(255,255,255,.22);
}
.world {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  bottom: auto;
  width:  100%  ;
  height: 220vh;
  transform: translateX(-50%) translateY(0);
  will-change: transform;
}


.pozadi {
     width: 100%;
    height: 21%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
 
    background-color: #fddea8;
}


.pozadi:after {
 width: 100%;
    height: 0;
    padding: 26% 0 0 0;
    position: absolute;
    display: block;
    content: "";
    top: -40px;
    left: 0;
    z-index: 1;
    background-image: url(./assets/pozadi.png);
    background-position: 1px 0;
    background-size: contain;
    background-repeat: no-repeat;
}

.clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
 
   
  opacity: .25;
 
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
   
}

.cloud--1 {
 width: 258px;
    height: 100px;
  top: 12%;
  left: 8%;
  background-image: url("./assets/cloud-1.png");
}

.cloud--2 {
    width: 360px;
    height: 86px;
  top: 28%;
  right: 10%;
    background-image: url("./assets/cloud-2.png");
}

.cloud--3 {
  width: 229px;
    height: 108px;
  top: 58%;
  left: 18%;
    background-image: url("./assets/cloud-3.png");
}

.cloud--4 {
  width:   251px;
  height: 95px;
  top: 78%;
  right: 18%;
    background-image: url("./assets/cloud-4.png");
}
 


.weapon {
  position: absolute;
  left: 50%;
  top: var(--y);
  bottom: auto;
  width: 100%;
  z-index: 2;
  transform: translateX(-50%);
}
  

.weapon__item {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: .28;
  transition: opacity .35s ease;
  max-width: 520px;
}

.weapon[data-side="left"] .weapon__item {
  right: calc(50% + 28px);
  transform: translateY(-50%);
  flex-direction: row-reverse;
}

.weapon[data-side="right"] .weapon__item {
  left: calc(50% + 28px);
  transform: translateY(-50%);
}

.weapon.active .weapon__item {
  opacity: 1;
}

.weapon__bubble {
  transition: opacity .35s ease;
}

.weapon:not(.active) .weapon__bubble {
  opacity: .55;
}

.weapon.active .weapon__bubble {
  opacity: 1;
}

.weapon.active {
    z-index: 5;
}


.weapon[data-side="left"].active .weapon__item .weapon__bubble ,
.weapon[data-side="right"].active .weapon__item .weapon__bubble {
    opacity: 1;
}





.weapon__img {
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 5;
    overflow: visible;
    flex: 0 0 150px;
}

.weapon__img img {
  width: 100%;
  height: auto;
   position: absolute;
top: 0;
transition: all 0.3s ease;

}


.weapon[data-side="left"] .weapon__img img {
   right: 0;

}
.weapon[data-side="right"] .weapon__img img {
   left: 0;

}

.weapon.active .weapon__img img {
  width: 120%;
  max-width: 120%;
  height: auto;
   

}

.weapon[data-side="left"].active .weapon__img img {
   right: 25px;

}
.weapon[data-side="right"].active .weapon__img img {
   left: 25px;

}

.weapon__bubble {
 
  padding: 12px ;
  border-radius: 4px;
  opacity: 0.1 ;   
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  color: #000;
}

.weapon[data-side="left"] .weapon__bubble {
    padding: 12px 32px 12px 12px;
     
}


.weapon[data-side="right"] .weapon__bubble {
    padding: 12px 12px 12px 32px;
     
}


.weapon__meta {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.08);
}

 

.weapon__alt {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.58);
}






.weapon__popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.weapon.is-open .weapon__popup {
  display: block;
}

.weapon__popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.weapon__popup-inner h3 {
    
    margin-left: 0  ;
   
}

.weapon__popup-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(580px, calc(100% - 32px));
    max-height: min(80vh, 900px);
    overflow: auto;
    background: #ffffff;
    color: #000000;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.weapon__popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.weapon__popup-inner h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.weapon__popup-inner p {
  line-height: 1.55;
}

.weapon__popup-inner a {
  color: #93c5fd;
}

.weapon__popup-inner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 12px;
}



 
  .weapon-map__title {
   left: 30px;
    top: 30px;
    width: 90%;
  }

  .weapon-map__title h1 {
    font-size: 20px;
  }

  .weapon-map__title p {
    font-size: 13px;
  }

  .center-zone {
    width: calc(100% - 16px);
    height: 110px;
  }

 

  .world {
  left: 0;
  top: 0;
   
 
  
  transform: translateX(0) translateY(0);
}
 
  .weapon {
    left: 0;
    width: 100%;
    transform: none;
  }

  
.weapon[data-side="left"] .weapon__item,
.weapon[data-side="right"] .weapon__item {
  left: 24px;
  right: auto;
  transform: translateY(-50%);
  max-width: calc(100% - 48px);
}

.weapon.active .weapon__item {
  opacity: 1;
}
 
.weapon[data-side="left"] .weapon__item {
  flex-direction: row-reverse;
}

.weapon[data-side="right"] .weapon__item {
  flex-direction: row;
}
 

  

  .weapon__bubble h3 {
    font-size: 18px;margin: 0 0px 7px 0px;
  }

  .weapon__bubble p {
    font-size: 15px;
    line-height: 1.4;margin: 0 0px 7px 0px;
  }


  @media (max-width: 550px) {

    .weapon-map__title h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

    .weapon__img {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 5;
    overflow: visible;
    flex: 0 0 100px;
}

    .weapon__bubble h3 {
        font-size: 15px;
    }

 .weapon__bubble p {
    font-size: 13px;
    line-height: 1.4;
  }

  .weapon[data-side="left"] .weapon__bubble {
    padding: 7px 20px 7px 7px;
     
}


.weapon[data-side="right"] .weapon__bubble {
    padding: 7px 7px 7px 20px;
     
}


.weapon[data-side="left"] .weapon__item, .weapon[data-side="right"] .weapon__item {
        left: 7px;
        max-width: calc(100% - 14px);
    }
}