.game-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  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);
}

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

.game-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

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

.game-modal-close svg {
  width: 20px;
  height: 20px;
}

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

body.modal-open {
  overflow: hidden;
}

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