/* Thế giới game (game.html, scripts/trang/game.py): băng game nổi bật + kệ "Chơi thêm".
   Nền pastel chuyển màu (data/game.json "mau"), chữ luôn đậm màu vì nền luôn nhạt, cả khi trang ở chế độ tối */
.gm { display: flex; flex-direction: column; gap: 34px; padding-top: 32px; }
.gm-noi { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 12px 24px; padding: 30px 32px 0; border-radius: 26px; color: #0F172A; overflow: hidden; }
.gm-noi-chu { padding-bottom: 32px; align-self: center; }
.gm-nhan { margin: 0 0 10px; font: 600 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #1D4ED8; }
.gm-noi h2 { margin: 0 0 10px; font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--f-display); }
.gm-noi p { margin: 0 0 22px; max-width: 46ch; font-size: 17px; line-height: 1.5; color: #334155; }
.gm-choi { background: #2563EB; color: #fff; font-size: 17px; padding: 14px 26px; }
.gm-choi:hover { filter: brightness(1.06); }
.gm-noi-hinh { justify-self: center; display: block; }
.gm-noi-hinh img { display: block; width: min(340px, 100%); height: auto; filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .18)); }
.gm-ke-khoi h2 { margin: 0 0 14px; font: 800 22px/1.25 var(--f-display); }
.gm-ke { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gm-the { height: 100%; display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); border: 2px solid var(--edge); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.gm-the:hover { border-color: var(--blue); transform: translateY(-2px); }
.gm-bia { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 14px; height: 170px; }
.gm-bia img { width: auto; height: 156px; filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .18)); }
.gm-chip { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #0F172A; font: 700 12px/1.3 var(--f-body); }
.gm-than { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.gm-than b { font: 800 18px/1.3 var(--f-display); }
.gm-moi { font-size: 14px; line-height: 1.45; color: var(--muted); }
.gm-than small { font: 600 12px var(--f-mono); color: var(--muted); }
.gm-nut { margin-top: auto; align-self: flex-start; padding: 8px 18px; border-radius: 999px; background: var(--yellow); color: #0F172A; font-weight: 700; }
.gm-sang { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 2px dashed var(--edge); color: var(--ink); text-decoration: none; }
.gm-sang b { font: 800 17px/1.3 var(--f-display); }
.gm-sang span { font-size: 14px; color: var(--muted); }
.gm-sang:hover { border-color: var(--blue); }
.gm-ghi { margin: 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .gm-the { transition: none; } .gm-the:hover { transform: none; } }
@media (max-width: 760px) {
  .gm-noi { grid-template-columns: 1fr; padding: 24px 20px 0; text-align: left; }
  .gm-noi-chu { padding-bottom: 0; }
  .gm-noi-hinh img { width: 190px; }
  /* Kệ vuốt ngang trên điện thoại, thẻ sau ló ra một phần để biết còn nữa */
  .gm-ke { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .gm-ke > li { scroll-snap-align: start; }
}
