.qp-games-grid{
  padding: 80px 0;
  background: linear-gradient(180deg, #0f1420 0%, #373787 100%);
 /* border-top: 1px solid #6d6d6d5e;
  border-bottom: 1px solid #6d6d6d5e;*/
}

.qp-games-grid__title{
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3f3f3;
  margin-bottom: 20px;
}

.qp-games-grid__description{
  margin: 0 auto 50px;
  text-align: center;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;  
}

.qp-games-grid__title::after{
  content: "";
  display: block;
  width: 170px;
  height: 2px;
  background: rgb(57 186 201);
  margin: 18px auto 0;
}
.qp-games-grid__title::before{
  content: "";
  display: block;
  width: 170px;
  height: 2px;
  background: rgb(57 186 201);
  margin: 0 auto 18px;
}

.qp-games-grid__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 767px){
  .qp-games-grid__grid {
    grid-template-columns: 1fr;
  }
  .qp-game-card__media{
    height: 330px;
  }
}

.qp-game-card{
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
 /* border: 1px solid rgba(255,255,255,0.08);*/
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.qp-game-card:hover,
.qp-game-card:focus-within{
 /* border-color: rgb(100 70 22 / 65%) !important;*/
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

.qp-game-card__media{
  width: 100%;
  height: 330px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #151a22;
}

.qp-game-card__content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px 22px 30px;
  text-align: center;
  background: linear-gradient(180deg, #202651 0%, #191d3a 100%);
}

.qp-game-card__title{
  margin: 0; 
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-shadow: 0px 2px 1px #232221;
}

.qp-game-card__desc{
  margin: -4px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.55;
  max-width: 34ch;
}

.qp-game-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 17px 22px;
  border-radius: 30px 30px 30px 30px;
  color: var(--e-global-color-19a9565, #ffffff);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  background-color: transparent;
  background-image: radial-gradient(at left top, rgb(57, 223, 216) 0%, rgb(58, 32, 139) 95%);
  text-transform: uppercase;
  min-width: 150px;
}

.qp-game-card__btn:focus,
.qp-game-card__btn:hover{
  outline: none;
  box-shadow: none;
}

.qp-game-card__btn:focus-visible{
  outline: none;
  outline-offset: none;
}

.qp-game-card__btn:hover{
  filter: brightness(1.06);
}

.qp-games-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qp-games-modal[hidden]{
  display: none;
}

.qp-games-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.qp-games-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  border-radius: 18px;
  padding: 24px;
  background: #0f1420;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

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

.qp-games-modal__title{
  margin: 0 36px 18px 0;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
}

.qp-games-modal__body{
  aspect-ratio: 16 / 9;
  min-height: 380px;
  width: 100%;
  max-height: 70vh;
}

.qp-games-modal__body iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 12px;
  background: #000;
}

body.qp-games-modal-open{
  overflow: hidden;
}

@media (max-width: 767px){
  .qp-games-modal{
    padding: 16px;
  }

  .qp-games-modal__dialog{
    padding: 18px;
  }

  .qp-games-modal__title{
    font-size: 20px;
  }

  .qp-games-modal__body{
    aspect-ratio: auto;
    height: 70vh;
    max-height: 70vh;
    min-height: 320px;
  }

  /* On touch devices: keep CTA visible (no hover). */
  .qp-game-card__overlay{
    opacity: 1;
  }

  .qp-game-card__content{
    opacity: 1;
    transform: translateY(0);
  }
}

