:root {
  --bg: #eef4ea;
  --card: #fbfaf4;
  --ink: #2b3a32;
  --muted: #5d6e63;
  --line: #d5e3d4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(800px 400px at 10% 0%, #e3eee0, transparent 55%), var(--bg);
  color: var(--ink);
}

body {
  display: flex;
  justify-content: center;
  padding: 28px 16px 48px;
}

.app { width: min(880px, 100%); }

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 22px 32px;
}

h1 { margin: 0; font-size: 36px; }

.subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 2px solid #b7d3c4;
  border-radius: 22px;
  padding: 22px 18px;
  min-height: 150px;
}

.emoji { font-size: 36px; }
.name { display: block; margin-top: 8px; font-size: 22px; font-weight: 800; }
.desc { display: block; margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.45; }
.game-card.wait {
  opacity: 0.55;
  pointer-events: none;
  border-color: var(--line);
}

.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.empty {
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.tip { margin: 22px 0 0; font-size: 16px; color: var(--muted); }
