body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: auto;
}

h1 {
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

/* список */
.game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* картинка */
.game-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover ефект */
.game-img:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}


/* інфо */
.game-info {
  flex: 1;
  margin-left: 15px;
}

.game-title {
  font-weight: bold;
}

.game-desc {
  font-size: 13px;
  color: #666;
  margin: 5px 0;
}

.game-link {
  font-size: 13px;
  color: #2ecc71;
  text-decoration: none;
}

/* QR — десктоп */
.qr {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;           /* щоб не стискалося при justify-content: space-between */
}

/* canvas всередині QR (для всіх екранів) */
.qr canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

/* ==================== МОБІЛЬНА ВЕРСІЯ ==================== */
@media (max-width: 600px) {

  .game-item {
    flex-direction: column;
    align-items: stretch;
  }

  .qr {
    width: 100%;              /* повна ширина на мобілці */
    height: auto;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
  }

  /* canvas на мобілці теж буде більшим і красивим */
  .qr canvas {
    max-width: 180px;         /* можна зробити трохи більше, ніж 80px */
    max-height: 180px;
  }
}