/* 游戏中心 · 科技风玻璃卡片 */

.games-page .page-head {
  text-align: center;
  margin-bottom: 28px;
}
.games-page .page-sub {
  color: var(--ink-3);
  margin: 6px 0 22px;
}

.games-search {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.games-search input[type="search"] {
  flex: 1 1 320px;
  max-width: 460px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(127, 240, 214, 0.25));
  background: rgba(var(--tech-cyan, 14, 133, 113), 0.06);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.games-search input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--tech-cyan, 14, 133, 113), 0.18);
}
.games-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 14px;
}
.games-sort select {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(127, 240, 214, 0.25));
  background: rgba(var(--tech-cyan, 14, 133, 113), 0.06);
  color: var(--ink);
}

/* 卡片网格 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--slab-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line, rgba(127, 240, 214, 0.25));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(var(--tech-cyan, 14, 133, 113), 0.05) inset;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 26px rgba(var(--tech-cyan, 14, 133, 113), 0.22);
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(var(--tech-cyan, 14, 133, 113), 0.25), rgba(6, 32, 42, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-cover .game-emoji {
  font-size: 52px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(6, 32, 42, 0.7);
  color: var(--accent-ink, #7fffe6);
  border: 1px solid rgba(var(--tech-cyan, 14, 133, 113), 0.4);
  backdrop-filter: blur(4px);
}

.game-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.game-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.game-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-play {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: rgba(var(--tech-cyan, 14, 133, 113), 0.14);
  color: var(--accent-ink, #7fffe6);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.game-play:hover {
  background: rgba(var(--tech-cyan, 14, 133, 113), 0.26);
  transform: translateY(-1px);
}
.game-play svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .game-cover .game-emoji { font-size: 40px; }
  .game-title { font-size: 15px; }
}
