.game-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.game-modal.active {
  display: flex;
}

.game-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.game-modal-content {
  position: relative;
  z-index: 10000;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  background-color: var(--color-bg-primary);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}

.game-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.game-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.game-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .game-modal-content {
    width: 95%;
    height: 70vh;
  }

  .game-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}
