/* The ad occupies the existing third column without changing the hero grid. */
.bq-game-hub__layout > .bq-game-detail-ad {
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  box-sizing: border-box;
}

.bq-game-detail-ad__label {
  color: #95b4ce;
  font: 500 10px/14px var(--bq-mono);
  letter-spacing: .06em;
}

.bq-game-detail-ad__placement {
  display: flex;
  width: min(300px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bq-game-detail-ad__header {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.bq-game-detail-ad__header .bq-catalog-ad__close {
  margin-bottom: 0;
  border-bottom: 1px solid #55718c;
  border-radius: 6px;
}

.bq-game-detail-ad__header .bq-catalog-ad__close::after {
  content: none;
}

.bq-game-detail-ad__invite {
  width: min(340px, 100%);
  box-sizing: border-box;
}

.bq-game-detail-ad__placement[hidden],
.bq-game-detail-ad__invite[hidden] {
  display: none;
}

/* One standard square fits every supported viewport, even after rotation.
   Keep its size stable after Google has selected an iframe. */
.bq-game-detail-ad__unit {
  display: block;
  flex: none;
  width: 250px;
  height: 250px;
}

@media (max-width: 1180px) {
  .bq-game-hub__layout > .bq-game-detail-ad {
    grid-column: 1 / -1;
    border-top: 1px solid #1b507b;
  }
}

@media (min-width: 360px) and (max-width: 599px) {
  .bq-game-detail-ad__unit {
    width: 300px;
  }
}
