/* BOUTON JEU */
#services-game-btn {
  position: fixed;
  top: 90px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
#services-game-btn:hover {
  transform: scale(1.1) rotate(8deg);
}
#services-game-btn img {
  width: 75%;
}

/* FENÃŠTRE JEU */
#services-game-window {
  position: fixed;
  top: 160px;
  right: 25px;
  width: 320px;
  background: #0b0f14;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  z-index: 1000;
  display: none;
  animation: slideIn .4s ease forwards;
  text-align: center;
  color: #fff;
}

#services-game-window.show {
  display: block;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* LOGO */
.popup-service-logo {
  width: 90px;
  margin-bottom: 15px;
  transition: .3s;
}

/* TITRES */
#game-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
#game-desc {
  font-size: .9rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

/* BOUTONS */
.btn-spin {
  background: linear-gradient(135deg,#ff7f50,#ffa07a);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}
.btn-spin:hover { transform: scale(1.05); }

.btn-go {
  display: inline-block;
  border: 1px solid #ff7f50;
  color: #ff7f50;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 15px;
}
.btn-go:hover {
  background: rgba(255,127,80,.15);
}

.btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: .85rem;
  cursor: pointer;
}

/* ANIMATION */
.shake {
  animation: shake .4s infinite;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ================= RESPONSIVE GLOBAL ================= */
@media (max-width: 1024px) {

  /* BOUTON JEU */
  #services-game-btn {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    width: 64px;
    height: 64px;
  }

  #services-game-btn:hover {
    transform: translateX(50%) scale(1.08);
  }

  /* FENÃŠTRE JEU */
  #services-game-window {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 90%;
    max-width: 360px;
    padding: 22px;
    border-radius: 20px;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translate(50%, -45%); }
    to   { opacity: 1; transform: translate(50%, -50%); }
  }
}

/* ================= MOBILE FIRST ================= */
@media (max-width: 600px) {

  #services-game-window {
    padding: 20px;
  }

  .popup-service-logo {
    width: 80px;
  }

  #game-title {
    font-size: 1.1rem;
  }

  #game-desc {
    font-size: .85rem;
  }

  .btn-spin,
  .btn-go {
    width: 100%;
    padding: 12px;
  }

  .btn-go {
    margin-bottom: 18px;
  }
}
