
.jetton-swiper {
  width: 100%;
}
.jetton-section {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1520px;
  margin: 10px auto;
  padding: 0 16px;
}
.jetton-slider {
  flex: 2;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.jetton-swiper .swiper-slide {
  padding: 32px;
  min-height: 100px;
  border-radius: 20px;
  color: #fff;
}
.jetton-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.jetton-box {
  padding: 24px;
  border-radius: 20px;
  position: relative;
  min-height: 200px;
  overflow: hidden;
  color: #fff;
}
.jetton-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.jetton-badge span {
  background: #1a203000;
  border: 1px solid #1bb586;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
}
.jetton-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}
.jetton-text {
  font-size: 15px;
  opacity: 0.85;
}
.jetton-accent { color: #1cbb87; }
.jetton-green { color: #1abe87; }
.jetton-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #1bb586;
  color: #000;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}
.jetton-btn-play {
  background: #1bb586;
  color: #000000;
  position: absolute;
  bottom: 24px;
  left: 1px;
}
.jetton-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}
.jetton-controls .swiper-button-prev,
.jetton-controls .swiper-button-next {
  position: static;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}
.jetton-controls .swiper-button-prev::after,
.jetton-controls .swiper-button-next::after {
  color: #fff;
  font-size: 18px;
}
@media (max-width: 992px) {
  .jetton-section {
    flex-direction: column;
    margin-top: 60px;
  }
}


.jetton-box.with-dark-bg {
  position: relative;
  overflow: hidden;
  background: #030a1d; /* fallback */
}
.jetton-box.with-dark-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* затемнение */
  z-index: 1;
}

.jetton-box.with-dark-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(21, 25, 37, 0.45),
    rgba(21, 25, 37, 0.60)
  );
  z-index: 1;
}

.jetton-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.02);
  object-position: center 30%; 
  z-index: 0;
  pointer-events: none;
}

.jetton-box.with-dark-bg > *:not(img) {
  position: relative;
  z-index: 2;
}

/* форсируем нужное поведение Swiper-обёртки */
.jetton-swiper .swiper-wrapper{
    display:flex !important;      /* ← ключевое */
    flex-wrap:nowrap !important;  /* подстраховка */
}






.jetton-green {
  animation: neonGreen 1.5s ease-in-out infinite alternate;
}

@keyframes neonGreen {
  from { text-shadow: 0 0 6px #4aff7e; }
  to { text-shadow: 0 0 16px #1b2030, 0 0 10px #1bb586; }
}




.jetton-float-emoji {
  position: absolute;
  top: -10px;
  right: 10px;
  animation: floatY 3s ease-in-out infinite;
  font-size: 24px;
  opacity: 0.5;
  z-index: 2; /* чтобы не сожрало фоном */
  pointer-events: none;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


.jetton-swiper .swiper-slide > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.jetton-swiper .swiper-slide-active > * {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 700px) {

.jetton-side {
    display: none !important;
  }
}







.games__item .front {
  opacity: 1;
  z-index: 1;
  transition: opacity 3s;
}

.games__item .back {
  opacity: 0;
  z-index: 0;
  transition: opacity 3s;
}

.games__item:hover .front {
  opacity: 0;
  transition-delay: 0.1s;
}

.games__item:hover .back {
  opacity: 1;
  transition-delay: 0s;
}

.games__item:not(:hover) .front {
  opacity: 1;
  transition-delay: 0s; 
}

.games__item:not(:hover) .back {
  opacity: 0;
  transition-delay: 0.1s;
}

.games__item:hover::after {
  opacity: 1;
}

.games {
  display: -ms-grid;
  display: grid;
  /* -ms-grid-columns: (1fr)[4]; */
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  position: relative;
}

.games__item {
  position: relative;
  height: 160px;
  border-radius: 25px;
  -webkit-transition: .15s ease-in-out;
  transition: .15s ease-in-out;
  padding: 44px 53px;
  overflow: hidden;
}

.games__item .games__item-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  right: 0;
  transition: scale .3s cubic-bezier(0, -0.05, 0.3, 1),translate .3s cubic-bezier(0, -0.05, 0.3, 1);
}

/* @media only screen and (max-width: 475px) {
  .games__item .games__item-bg {
    right: 20px;
  }
} */



.games__item:before {
  -webkit-filter: blur(10rem);
  filter: blur(10rem);
}

.games__item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: .4s opacity;
}

.games__item--slots{
  background: rgb(21 25 37);
}

.games__item--lives{
  background: rgb(228, 53, 56);
}


.games__item-text {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.games__item-text span {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.14);
}

.games__item-text p {
  position: relative;
  font-size: 13px;
  color: #fff;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 12px 8px 18px;
  align-self: flex-start;
  margin-top: 6px;
}

.games__item-text p::before {
  content: '';
  position: absolute;
  background: rgb(0, 255, 133);
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
}


.games__item.games__item--coin .coinflip__wrapper .coinflip__front {
  -webkit-animation: front-rotation 2s ease infinite;
  animation: front-rotation 2s ease infinite;
}

@-webkit-keyframes front-rotation {
  from {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }
  to {
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

@keyframes front-rotation {
  from {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }
  to {
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

.games__item.games__item--slots {
        height: 160px;
    }

.games .games__item-bg--lives {
  position: absolute;
  right: -0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url(../new/lives_new.png);
  background-size: cover;
  z-index: 2;
}


@media only screen and (max-width: 725px) {
    .games {
    -ms-grid-columns: (1fr)[1] !important;
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .games .games__item{
    height: 100px !important;
    padding: 27px 0 0 30px !important;
    border-radius: 17px;
  }
}

.games__item-bg img {
  animation: floatBanner 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatBanner {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.03) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}

.bonus-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

.casino-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(0,255,136,0.08), transparent 70%);
  pointer-events: none;
  z-index: 2;
  animation: casinoPulse 3s ease-in-out infinite;
}

@keyframes casinoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
}

.casino-lightning {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 50px;
  height: 80px;
  background: url('/new/lightning.svg') no-repeat center center;
  background-size: contain;
  opacity: 0;
  animation: lightningFlash 4s infinite ease-in-out;
  z-index: 3;
  pointer-events: none;
}

@keyframes lightningFlash {
  0%, 100% { opacity: 0; transform: scale(0.95) rotate(-5deg); }
  45%     { opacity: 0; }
  50%     { opacity: 1; transform: scale(1) rotate(0); }
  55%     { opacity: 0; transform: scale(1.1) rotate(5deg); }
}

.games__item-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.games__item-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 25px;
}

.games__item-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* 🔥 оптимально: не растягивает, заполняет */
  object-position: center;     /* центрируем */
  display: block;
  filter: brightness(0.9);     /* затемнение, по желанию */
  pointer-events: none;        /* не мешает кликам по карточке */
}

.game-pill {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
  gap: 10px;
  color: #fff;
  z-index: 2;
  transition: transform 0.25s ease; /* 👈 плавность */
}

.game-pill:hover {
  transform: scale(1.05); /* 👈 увеличение на 5% */
}

.game-pill__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.game-pill__text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.2;
}

.game-pill__title {
  font-weight: 600;
}

.game-pill__provider {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.game-pill__arrow {
  margin-left: 10px;
  font-size: 18px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .games__item-desktop-only {
    display: none;
  }
}

.games__item-bg1 {
  position: relative;
  background-image: url('/banners/banner1.png'); /* путь к твоей картинке */
  background-size: cover;     /* масштабируем по контейнеру */
  background-position: center center; /* центрируем */
  background-repeat: no-repeat;
  border-radius: 25px;        /* если у тебя скруглённые карточки */
  overflow: hidden;
}






.mode-selector-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 13px;
}

@media (max-width: 992px) {
  .mode-selector-section {
    grid-template-columns: 1fr;
    display: none;
  }

}

.mode-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-out;
}

.mode-card-link:hover {
  transform: translateY(-5px);
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #171b29;
  padding: 20px;
}

.mode-card__header,
.mode-card__footer {
  position: relative;
  z-index: 2;
}

.mode-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.mode-card__description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.mode-card__footer {
  margin-top: auto;
}

.mode-card__button {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  background-color: rgb(50 128 133);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.mode-card__button:hover {
  background-color: rgb(54 79 88);
}

.mode-card__arrow {
  margin-left: 0.5rem;
  font-size: 1.2em;
  transition: transform 0.2s ease;
}

.mode-card-link:hover .mode-card__arrow {
  transform: translateX(4px);
}

.mode-card__background-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mode-card__background-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.5s ease;
  transform-origin: center center;
}

.mode-card-link:hover .mode-card__background-icon img {
  transform: scale(1.37);
}



/* === JETTON SWIPER CONTROLS: неон зелёный === */
.jetton-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
}

/* Контейнеры стрелок */
.jetton-controls .swiper-button-prev,
.jetton-controls .swiper-button-next {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* --- Перекрашиваем SVG внутри стрелок --- */
.jetton-controls .swiper-button-prev svg,
.jetton-controls .swiper-button-next svg {
  width: 20px;
  height: 20px;
  stroke: url(#neonGreen);
  stroke-width: 3;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(0, 255, 150, 0.8));
  transition: all 0.3s ease;
}

/* Градиент (неон зелёный) */
.jetton-controls svg defs linearGradient#neonGreen stop:first-child {
  stop-color: #00ff80;
}
.jetton-controls svg defs linearGradient#neonGreen stop:last-child {
  stop-color: #00ffaa;
}

/* Hover эффект */
.jetton-controls .swiper-button-prev:hover,
.jetton-controls .swiper-button-next:hover {
  background: rgba(0, 255, 130, 0.08);
  box-shadow: 0 0 12px rgba(0, 255, 130, 0.35);
  transform: scale(1.05);
}

/* Hover glow */
.jetton-controls .swiper-button-prev:hover svg,
.jetton-controls .swiper-button-next:hover svg {
  filter: drop-shadow(0 0 12px rgba(0, 255, 150, 1));
}

/* Disabled состояние */
.jetton-controls .swiper-button-prev.swiper-button-disabled,
.jetton-controls .swiper-button-next.swiper-button-disabled {
  opacity: 0.2;
  pointer-events: none;
}



/* --- Эффект зума только фона на слайде --- */
.jetton-slide-glow {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

/* ФОН: микро-блюр + мягкий зум */
.jetton-slide-glow::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(3px);          /* 👈 ЛАКШЕРИ BLUR */
  transform: scale(1.03);     /* 👈 чтобы не было краёв */
  animation: jettonZoom 6s ease-in-out infinite;

  will-change: transform;
  z-index: 0;
}

/* Тонкое затемнение (не душит картинку) */
.jetton-slide-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(21, 25, 37, 0.45),
    rgba(21, 25, 37, 0.60)
  );
  z-index: 1;
}

/* Контент всегда кристально чёткий */
.jetton-slide-glow > * {
  position: relative;
  z-index: 2;
}

/* Плавный, неторопливый зум */
@keyframes jettonZoom {
  0%, 100% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1.06);
  }
}
