/* Sprunki 游戏列表：主栏宽度与游戏单页 .GAME-main 一致（1000px + 与 game.css 相同左右 padding） */
.GAMES-main {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
@media (max-width: 1020px) {
  .GAMES-main { padding: 0 12px; }
}

/* 图标栅格：桌面一行 6 个；窄屏与 game 页 .GAME-newgames-grid 断点风格接近 */
.GAMES-icon-grid {
  display: grid;
  width: 100%;
  gap: 0.75rem;
  align-items: start;
  justify-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 520px) {
  .GAMES-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .GAMES-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }
}
@media (min-width: 1024px) {
  .GAMES-icon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
}

/* 单格卡片链 */
.GAMES-tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--game-tile-border, #2e4469);
  background: #12121c;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.GAMES-tile:hover {
  transform: translateY(-2px);
  border-color: var(--game-tile-border-hover, #3a5280);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.GAMES-tile__thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(24, 24, 27, 0.88);
  overflow: hidden;
}
.GAMES-tile__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* 游戏名：H2，字略大，与 H1 形成层级；装饰图用 alt="" 由标题朗读 */
.GAMES-tile__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.5rem 0.5rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.2;
  max-height: 2.7em;
  overflow: hidden;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.68) 45%, rgba(0, 0, 0, 0) 100%);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
}
@media (min-width: 640px) {
  .GAMES-tile__title { font-size: 0.875rem; padding: 0.55rem 0.55rem 0.55rem; }
}
@media (min-width: 1024px) {
  .GAMES-tile__title { font-size: 0.9375rem; line-height: 1.18; }
}
.GAMES-tile__badge {
  pointer-events: none;
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 150, 105, 0.95);
  padding: 0.2rem 0.45rem;
  border-radius: 0.2rem;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 列表页中间广告占位条（与图标区无关，同属 games 页样式） */
.GAMES-page-adslot {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.GAMES-section { padding: 28px 0 48px; }

.GAMES-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .GAMES-heading { font-size: 2rem; margin-bottom: 16px; }
}

.GAMES-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: center;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}
.GAMES-intro p { margin: 0 0 0.75em; }
.GAMES-intro p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .GAMES-intro { padding: 14px 18px; margin-bottom: 28px; font-size: 0.9375rem; }
}

.GAMES-empty { text-align: center; color: var(--text-secondary); font-size: 16px; margin: 0; }
