/* 休闲小游戏列表页 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, #16243f 0%, rgba(7, 11, 20, 0) 45%),
    radial-gradient(circle at 85% 10%, #2a1236 0%, rgba(7, 11, 20, 0) 42%),
    #070b14;
  color: #e8eef8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-text-size-adjust: 100%;
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: #e8eef8; text-decoration: none; font-weight: 700; letter-spacing: 1px;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.back {
  color: #9db2cd; text-decoration: none; font-size: 13px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(120, 180, 255, .18);
}
.back:hover { color: #cfe3ff; border-color: rgba(120, 180, 255, .4); }

.wrap { max-width: 960px; margin: 0 auto; padding: 10px 20px 60px; }
.wrap h1 { margin: 18px 0 6px; font-size: 30px; letter-spacing: 2px; }
.sub { margin: 0 0 24px; color: #93a8c4; font-size: 14px; line-height: 1.7; }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.game-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(120, 180, 255, .16);
  background: linear-gradient(180deg, rgba(20, 30, 50, .9), rgba(9, 13, 24, .95));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 180, 255, .42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.game-card:active { transform: translateY(-1px) scale(.995); }

.cover {
  position: relative;
  height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.brawl .cover {
  background:
    radial-gradient(circle at 30% 30%, rgba(95, 208, 255, .35), rgba(0, 0, 0, 0) 60%),
    linear-gradient(135deg, #10233c, #1b1030);
}
.thunder .cover {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 122, 156, .38), rgba(0, 0, 0, 0) 60%),
    linear-gradient(135deg, #2a1030, #0c1730);
}
.emoji { font-size: 56px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }

.badge {
  position: absolute; left: 14px; top: 14px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 1px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #cfe3ff;
  backdrop-filter: blur(6px);
}
.badge.live::before {
  content: '';
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #51e2a0; margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 8px #51e2a0;
}

.body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.body h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: 1px; }
.body p { margin: 0 0 12px; color: #9db2cd; font-size: 13px; line-height: 1.75; }
.meta { margin-top: auto; font-size: 12px; color: #7f97b5; }
.play {
  margin-top: 12px; font-size: 13.5px; font-weight: 700; letter-spacing: 1px;
  color: #7dd3fc;
}
.thunder .play { color: #ff9ec4; }

.tip { margin-top: 26px; font-size: 12px; color: #6f86a4; line-height: 1.8; }

@media (max-width: 480px) {
  .wrap { padding: 6px 14px 48px; }
  .wrap h1 { font-size: 24px; }
  .cover { height: 120px; }
  .emoji { font-size: 44px; }
}
