.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}

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

.game-modal {
  background-color: #10182a;
  border-radius: 16px;
  overflow: hidden;
  width: 90vw;
  max-width: 1440px;
  height: 80vh;
  position: relative;
}

.game-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #0b0c12;
}

.game-modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
}

.game-modal-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.game-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.game-modal iframe {
  width: 100%;
  height: calc(100% - 60px);
  border: none;
}

@media (max-width: 768px) {
  .game-modal {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }

  .game-modal-header {
    padding: 12px 16px;
  }

  .game-modal-title {
    font-size: 16px;
  }

  .game-modal iframe {
    height: calc(100% - 52px);
  }
}
