/* 홈 게임 선택 카드 */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1em 0 1.5em; }
.game-grid p { margin: 0; }
.md-typeset .game-grid a.game-card {
  display: block; height: 100%; box-sizing: border-box; padding: 14px 16px;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
  color: #111; text-decoration: none; transition: all .15s ease;
}
.md-typeset .game-grid a.game-card:hover { border-color: #16a34a; box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.game-card strong { display: block; font-size: 1.05em; margin-bottom: 6px; }
.game-card .tag { display: inline-block; font-size: .72em; padding: 2px 8px; border-radius: 999px; margin: 0 4px 2px 0; }
.tag--ds { background: #fee2e2; color: #b91c1c; }
.tag--tpm { background: #ede9fe; color: #6d28d9; }
.tag--opt { background: #fef3c7; color: #92400e; }
.tag--easy { background: #dcfce7; color: #166534; }

/* 게임 페이지 단계 목록 */
.route-steps { display: flex; flex-direction: column; gap: 10px; margin: 1em 0 1.5em; }
.route-steps p { margin: 0; }
.md-typeset a.route-step {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
  color: #111; text-decoration: none; transition: all .15s ease;
}
.md-typeset a.route-step:hover { border-color: #16a34a; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.route-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.route-body { flex: 1; display: flex; flex-direction: column; }
.route-body small { color: #6b7280; }
.route-arrow { color: #9ca3af; font-size: 1.2em; }

/* 가이드 페이지 상단 진행 배너 */
.route-banner { border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 10px; padding: 12px 14px; margin: 0 0 1.5em; font-size: .78rem; }
.route-banner__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.md-typeset a.route-banner__game { font-weight: 700; color: #166534; }
.route-banner__count { background: #16a34a; color: #fff; border-radius: 999px; padding: 1px 10px; font-weight: 600; }
.md-typeset a.route-banner__change { margin-left: auto; color: #6b7280; font-size: .9em; }
.md-typeset ol.route-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.md-typeset ol.route-chips li { margin: 0; }
.md-typeset ol.route-chips a {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #d1d5db; background: #fff; color: #6b7280; text-decoration: none;
}
.route-chips a span { font-weight: 700; }
.md-typeset ol.route-chips li.done a { color: #166534; border-color: #86efac; background: #dcfce7; }
.md-typeset ol.route-chips li.current a { color: #fff; background: #16a34a; border-color: #16a34a; font-weight: 700; }

/* 가이드 페이지 하단 이전/다음 */
.route-next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid #e5e7eb; }
.md-typeset .route-next a { padding: .7em 1.2em; border-radius: 8px; font-weight: 600; text-decoration: none; }
.md-typeset a.route-next__prev { color: #374151; border: 1px solid #d1d5db; }
.md-typeset a.route-next__next { margin-left: auto; background: #16a34a; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.md-typeset a.route-next__next:hover { background: #15803d; color: #fff; }
.route-next__done { margin-left: auto; font-weight: 700; color: #166534; align-self: center; }
