.grafika-obal {
     background: #fff url(./assets/games-bg.png);
    background-size: 73%;
    border-radius: 5px;
}

.grafika-obal h3 {
    
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    display: block;
    margin: 0;
    padding: 17px 0 0 20px;
    /* padding: 0; */
    text-align: left;
}
.game-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 625 / 242;
   
    overflow: hidden;
    font-family: Barlow, sans-serif;
}

.games-stage {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 7vw, 48px);
  padding-top: clamp(18px, 4vw, 25px);
}

.game-card {
  width: clamp(92px, 21vw, 132px);
  transform: translateY(0);
  animation: flyIn .55s ease both;
}

.game-card.from-left {
  animation-name: flyInLeft;
}

.game-card.from-top {
  animation-name: flyInTop;
}

.game-card.from-right {
  animation-name: flyInRight;
}

.game-icon {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white; 
  border-radius: 3px;
}

.game-icon img {
  max-width: 46%;
  max-height: 46%;
}

.arrow {    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #fff;
    transform: rotate(45deg);}

.arrow.left {    display: block;
    width: 8px;
    height: 8px;
    margin-left: 1px;
    border-bottom: 2px solid #FFF;
    border-left: 2px solid #fff;
    transform: rotate(45deg);

border-top: 0px solid #FFF;
    border-right: 0px solid #fff;
}

.game-title {
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: clamp(11px, 2.2vw, 13px);
  text-align: center;
  margin-top: clamp(-32px, -5vw, -24px);
  position: relative;
  z-index: 2;
}

.play-btn {
    display: block;
    height: clamp(26px, 5vw, 32px);
    line-height: clamp(26px, 5vw, 32px);
    background: #1f58a6;
    color: white;
    text-align: center;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: clamp(11px, 2.2vw, 13px);
    margin-top: clamp(12px, 2.5vw, 18px);
    animation: buttonReveal .35s ease .35s both;
}

.nav-arrow {
  position: absolute;
  top: 41%;
  z-index: 5;
  width: clamp(22px, 5vw, 24px);
  height: clamp(22px, 5vw, 24px);
  border: 0;
  border-radius: 50%;
  background: #999;
  color: white;
  font-size: clamp(24px, 5vw, 28px);
  line-height: 18px;
  cursor: pointer;
}

.nav-left {
  left: clamp(4px, 2vw, 12px);
}

.nav-right {
  right: clamp(4px, 2vw, 12px);
}

.banner-logo {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 154px;
    border-radius: 23px 0 0 0;
    height: 28px;
    background: #1f58a6;
    color: white;
    text-decoration: none;
    text-align: right;
    padding-right: 10px;
       line-height: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: clamp(11px, 2.2vw, 13px);
}

.banner-logo span {
    
     
    display: block;
    float: right;
    padding-left: 30px;
    background: url(./assets/aktualne-logo.svg) no-repeat 5px 4px;
    background-size: 20px auto;
 
}

.is-leaving .game-card {
  animation: flyOut .28s ease both;
}

.card-inner {
  height: 100%;text-decoration: none;display: block;
}

@keyframes wiggle {
  0% { transform: rotate(0); }
  20% { transform: rotate(-2deg); }
  40% { transform: rotate(2deg); }
  60% { transform: rotate(-1deg); }
  80% { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

.card-inner:hover,
.card-inner.wiggle {
  animation: wiggle .4s ease;
  transform-origin: center bottom;
}

@keyframes flyInLeft {
  from {
    opacity: 0;
    transform: translateX(-90px) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes flyInTop {
  from {
    opacity: 0;
    transform: translateY(-90px) scale(.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flyInRight {
  from {
    opacity: 0;
    transform: translateX(90px) rotate(8deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes flyOut {
  to {
    opacity: 0;
    transform: translateY(45px) scale(.92);
  }
}

@keyframes buttonReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 988px) {
.game-banner {
    
    aspect-ratio: 1025 / 242;
     
}
.banner-logo span {
  
    
    background: url(./assets/aktualne-logo.svg) no-repeat 4px 7px;
    background-size: 21px auto;
}

.banner-logo {
     width: 172px;
        border-radius: 0 0 0 23px;
    right: 0;
    top: 0;
    

    height: 36px;
    
 
    line-height: 36px;
 
    font-size: 16px;
   
}
}

@media (max-width: 450px) {
.game-banner {
     
    aspect-ratio: 625 / 360;
   
}

.games-stage {
 
  gap: clamp(6px, 2vw, 48px);
 
}

.grafika-obal h3 {
 
    font-size: 19px;
    line-height: 1.2;
     
}

.grafika-obal {
     
    background-size: 100%;
   
}

.nav-arrow {display: none;}
}