/* Pay-form gameplay carousel — all tiles 2:1 */

.game-pay-form-gallery-wrap {
  min-width: 0;
}

.plinko-form > .game-pay-form-gallery-wrap,
.hw-form > .game-pay-form-gallery-wrap,
.dice-form > .game-pay-form-gallery-wrap,
.fireworks-form > .game-pay-form-gallery-wrap,
.cf-form > .game-pay-form-gallery-wrap,
.lb-form > .game-pay-form-gallery-wrap,
.ms-form > .game-pay-form-gallery-wrap,
.hl-form > .game-pay-form-gallery-wrap {
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-pay-form-gallery {
  width: 100%;
  margin: 0;
  padding: 0;
}

.game-pay-form-gallery__carousel {
  display: grid;
  gap: 0.45rem;
}

.game-pay-form-gallery__preview,
.game-pay-form-gallery__thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(32, 38, 58, 0.95), rgba(14, 17, 26, 0.98));
  cursor: pointer;
  position: relative;
  aspect-ratio: 2 / 1;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-pay-form-gallery__preview-media {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.game-pay-form-gallery__preview:hover,
.game-pay-form-gallery__preview:focus-visible {
  border-color: rgba(76, 110, 245, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.game-pay-form-gallery__thumbs {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-pay-form-gallery__thumb-cell {
  flex: 1 1 0;
  min-width: 0;
}

.game-pay-form-gallery__thumb-btn {
  opacity: 0.72;
}

.game-pay-form-gallery__thumb-btn:hover,
.game-pay-form-gallery__thumb-btn:focus-visible {
  opacity: 0.92;
  border-color: rgba(76, 110, 245, 0.35);
  outline: none;
}

.game-pay-form-gallery__thumb-btn.is-active {
  opacity: 1;
  border: 2px solid #4f6fff;
  box-shadow: 0 0 12px rgba(79, 111, 255, 0.35);
}

.game-pay-form-gallery__thumb,
video.game-pay-form-gallery__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.game-pay-form-gallery__video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 50%);
}

.game-pay-form-gallery__video-badge i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 0.9rem;
  padding-left: 0.12rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.game-pay-form-gallery__video-badge--sm i {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.55rem;
  padding-left: 0.08rem;
  border-width: 1.5px;
}

/* Lightbox */

.game-pay-form-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.game-pay-form-gallery-lightbox[hidden] {
  display: none !important;
}

.game-pay-form-gallery-lightbox__dialog {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.game-pay-form-gallery-lightbox__stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-pay-form-gallery-lightbox__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.game-pay-form-gallery-lightbox__close:hover,
.game-pay-form-gallery-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.game-pay-form-gallery-lightbox__step {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.game-pay-form-gallery-lightbox__step:hover:not(:disabled),
.game-pay-form-gallery-lightbox__step:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.game-pay-form-gallery-lightbox__step:disabled {
  opacity: 0.3;
  cursor: default;
}

.game-pay-form-gallery-lightbox__step[hidden] {
  display: none !important;
}

.game-pay-form-gallery-lightbox__media-wrap {
  flex: 1;
  min-width: 0;
  max-height: calc(92vh - 3rem);
  border-radius: 10px;
  overflow: hidden;
  background: #0e111a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-pay-form-gallery-lightbox__img,
.game-pay-form-gallery-lightbox__video {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.game-pay-form-gallery-lightbox__video {
  width: 100%;
  background: #000;
}

.game-pay-form-gallery-lightbox__caption {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.35;
  max-width: 36rem;
}

.game-pay-form-gallery-lightbox__counter {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.game-pay-form-gallery-lightbox__counter[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .game-pay-form-gallery-lightbox__step {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .game-pay-form-gallery-lightbox__stage {
    gap: 0.35rem;
  }
}
