/* One game per row; each card pairs a local SVG with concise, searchable text. */
.game-atlas { container-type: inline-size; --game-green: #187458; --game-blue: #3d50a1; --game-accent: #187458; --game-tint: #f1f8f5; }
.game-atlas .game-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.game-atlas .game-jump a { padding: 6px 12px; border: 1px solid #dce5ed; border-radius: 6px; font-size: 13px; text-decoration: none; }
.game-atlas .game-jump a:hover { background: #f0f5fa; }
.game-atlas .game-category-jump { margin: 22px 0 30px; }
.game-atlas .game-category-jump a { border-color: currentColor; font-weight: 600; }
.game-atlas .game-category-combinatorial { color: #187458; background: #f1f8f5; }
.game-atlas .game-category-strategic { color: #3d50a1; background: #f3f5fc; }
.game-atlas .game-category-probability { color: #86378d; background: #faf2fb; }
.game-atlas .game-category-puzzles { color: #ad581c; background: #fff6ed; }
.game-atlas .game-jump-local { margin: 0 0 20px; gap: 7px; }
.game-atlas .game-jump-local a { padding: 4px 9px; font-size: 12px; }
.game-atlas a:focus-visible, .game-explanation summary:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
.game-families { display: grid; gap: 26px; }
.game-family { min-width: 0; --game-accent: var(--game-green); --game-tint: #f1f8f5; }
.game-family-strategic { --game-accent: var(--game-blue); --game-tint: #f3f5fc; }
.game-family-probability { --game-accent: #86378d; --game-tint: #faf2fb; }
.game-family-puzzles { --game-accent: #ad581c; --game-tint: #fff6ed; }
.game-atlas .game-family > h2 { margin: 0 0 10px; color: var(--game-accent); font-size: 22px; }
.game-atlas .game-family-intro { font-size: 14px; margin: 0 0 22px; }
.game-card { min-width: 0; margin-bottom: 20px; padding: 20px; border: 1px solid #dce5ed; border-top: 4px solid var(--game-accent); border-radius: 10px; background: #fff; break-inside: avoid; }
.game-family > .game-card:last-child { margin-bottom: 0; }
.game-atlas .game-card > h3 { margin: 0; color: var(--game-accent); font-size: 21px; line-height: 1.45; }
.game-atlas .game-subtitle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; font-size: 12px; color: #728095; margin: 7px 0 18px; }
.game-subtitle span { color: var(--game-accent); background: var(--game-tint); border-radius: 4px; padding: 2px 7px; font-weight: 600; }
.game-card-body { display: grid; gap: 20px; align-items: start; }
.game-visual, .game-copy { min-width: 0; }
.game-atlas .game-visual > p { margin: 0; }
.game-atlas .game-visual img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 6px; background: #fafcfe; }
.game-atlas .game-copy > p { margin: 12px 0; }
.game-atlas .game-copy > p > strong:first-child { color: var(--game-accent); }
.game-formula { display: flex; align-items: center; min-height: 60px; padding: 10px 8px; border-radius: 6px; background: var(--game-tint); color: #263f61; font-size: clamp(17px, 2.6cqi, 21px); text-align: center; overflow-x: auto; }
.game-formula .katex-display { flex-shrink: 0; margin: 0 auto; }
.game-formula .katex { font-size: 1em; }
.game-formula:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
.game-atlas .game-note { padding: 10px 12px; margin: 14px 0; background: #fff6f4; border-radius: 5px; color: #923a32; font-size: 13px; line-height: 1.8; }
.game-atlas .game-card .table-scroll { margin: 14px 0; }
.game-atlas .game-card table { min-width: 0; font-size: 13px; }
.game-atlas .game-card th, .game-atlas .game-card td { padding: 8px 7px; text-align: center; }
.game-atlas .game-card th { background: var(--game-tint); }
.game-explanation { margin-top: 14px; border-top: 1px solid #e0e7ef; padding-top: 10px; }
.game-explanation summary { width: fit-content; cursor: pointer; color: var(--game-accent); font-size: 13px; font-weight: 600; }
.game-explanation summary::marker { color: var(--game-accent); }
.game-atlas .game-explanation p { margin: 10px 0; font-size: 14px; line-height: 1.9; }
.game-explanation .game-formula { font-size: 17px; }
@container (min-width: 640px) {
  .game-card-body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; }
}
@container (max-width: 360px) {
  .game-card { padding: 16px 13px; }
  .game-atlas .game-card > h3 { font-size: 19px; }
  .game-formula { font-size: 16px; padding-inline: 4px; }
}
@media print {
  .article-content .table-scroll { overflow: visible; }
  .game-atlas { container-type: normal; }
  .game-jump { display: none !important; }
  .game-families { display: block; }
  .game-family { margin-bottom: 24pt; }
  .game-card { padding: 12pt; border-color: #aaa; margin-bottom: 12pt; }
  .game-card-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16pt; }
  .game-atlas .game-card > h3 { break-after: avoid; }
  .game-formula { overflow: visible; font-size: 12pt; }
  .game-atlas .game-visual img { max-height: 140pt; object-fit: contain; }
  .game-atlas a { color: #263f61; }
}
