:root {
  color: #26314d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eef8ff;
}

* { box-sizing: border-box; }

body {
  min-height: 100dvh;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 213, 90, 0.55) 0 8%, transparent 9%),
    radial-gradient(circle at 90% 18%, rgba(123, 220, 181, 0.45) 0 9%, transparent 10%),
    linear-gradient(135deg, #eaf7ff, #fff7dc 52%, #ffeaf0);
}

main {
  width: min(1040px, 100%);
  margin: 0 auto;
}

header {
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 254, 248, 0.88);
  box-shadow: 0 20px 55px rgba(43, 58, 97, 0.14);
}

header p,
header span { margin: 0; color: #60708e; font-weight: 800; }

header p { color: #3975d8; font-size: 13px; }

h1 {
  margin: 4px 0 8px;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 500;
  line-height: 1;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  min-height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(43, 58, 97, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(43, 58, 97, 0.2);
}

.game-card.gomoku { background: linear-gradient(145deg, #fff7dc, #ffe8bb); }
.game-card.checkers { background: linear-gradient(145deg, #eaf7ff, #dff8ec); }
.game-card.jungle { background: linear-gradient(145deg, #edf8dc, #ffe9b8); }
.game-card.dots { background: linear-gradient(145deg, #e9f8ff, #ffe7f0); }
.game-card.junqi { background: linear-gradient(145deg, #fff1c7, #dff1df); }
.game-card.xiangqi { background: linear-gradient(145deg, #ffe9df, #fff5cc); }
.game-card.parking-rescue { background: linear-gradient(145deg, #fff0cf, #e3eeca); }
.game-card.parking-rescue strong { font-family: "PingFang SC", system-ui, sans-serif; font-size: clamp(28px, 4vw, 37px); font-weight: 850; }
.game-card.pvp { background-blend-mode: multiply; }

.mode {
  border-radius: 999px;
  padding: 6px 10px;
  color: #315171;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.game-card strong {
  margin-top: 18px;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.game-card small {
  margin-top: 10px;
  color: #60708e;
  font-size: 14px;
  line-height: 1.6;
}

.game-card b { margin-top: auto; padding-top: 18px; color: #3975d8; }

@media (max-width: 650px) {
  body { padding-inline: 10px; }
  header { border-radius: 24px; }
  .game-grid { grid-template-columns: 1fr; gap: 10px; }
  .game-card { min-height: 170px; border-radius: 22px; padding: 20px; }
}

.game-card.guandan { background: linear-gradient(145deg, #e1efe5, #f4e7bd); }
