/* Reading pages about the cards of MAIMOAWASE: the guide, the sheet to print, and the tables on plain pages. */
.print-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 18px 0; }
.print-actions .btn svg { width: 20px; height: 20px; }
.jp-note { font-size: 13px; color: var(--muted); }
/* With Japanese chosen, the Japanese paragraph is the only one, and reads as the others do. */
html[data-lang="ja"] .jp-note { font-size: inherit; color: inherit; }
h1 .jp, h2 .jp { font-family: var(--sans); font-weight: 600; }
.example-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 12px; justify-content: center; }
.example-cards > div { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: var(--edge); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.example-cards img { width: 86px; height: 86px; object-fit: contain; }
.example-cards span { font: 700 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.example-cards b { font: 400 13px/1.3 var(--dot); letter-spacing: .06em; }
.example-cards .unknown { background: var(--ink); color: var(--paper); }
.example-cards .unknown b { font-size: 44px; color: var(--lit); }
.move-example { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 18px 0; padding: 20px; border: var(--edge); background: var(--card); font-size: 13px; text-align: center; }
.move-example b { color: var(--accent); }
.article table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 14px; background: var(--card); border: var(--edge); }
.article caption { text-align: left; padding-bottom: 8px; font-weight: 700; }
.article th, .article td { padding: 10px 12px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.article th { background: var(--lit); font: 700 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.article td:first-child { width: 120px; font: 700 12px/1.6 var(--mono); letter-spacing: .08em; }
.article dl.facts { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; margin: 14px 0; padding: 18px; border: var(--edge); background: var(--card); font-size: 14px; }
.article dl.facts dt { font-weight: 700; }
/* The eight cards in a row of small sheets, on the game's page. */
.card-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.card-gallery figure { display: flex; flex-direction: column; align-items: center; padding: 8px 4px 10px; background: var(--card); border: var(--edge); box-shadow: 3px 3px 0 var(--ink); }
.card-gallery img { width: 100%; max-width: 110px; height: auto; aspect-ratio: 1; object-fit: contain; }
.card-gallery figcaption { margin: 4px 0 0; text-align: center; }
.card-gallery b { display: block; font: 400 13px/1.3 var(--dot); letter-spacing: .05em; }
.card-gallery span { display: block; font-size: 10px; color: var(--muted); }
/* The sheet to print. */
.print-sheet { margin: 24px 0; padding: 16px; background: #fff; border: var(--edge); box-shadow: var(--drop); }
.print-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.print-card { aspect-ratio: .9; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; border: 1px dashed #8d8a84; text-align: center; }
.print-card img { width: 80%; height: auto; aspect-ratio: 1; object-fit: contain; }
.print-card b { font: 400 13px/1.2 var(--dot); letter-spacing: .06em; }
.print-card small { font-size: 9px; color: #555; }
.print-card.back { gap: 6px; background-image: linear-gradient(#1e1b1c1f 1px, transparent 1px), linear-gradient(90deg, #1e1b1c1f 1px, transparent 1px); background-size: 12.5% 11.111%; }
.print-card.back i { width: 34%; aspect-ratio: 1; background: var(--pic, none) center / contain no-repeat; image-rendering: pixelated; }
.print-card.back b { font: 700 11px/1 var(--mono); letter-spacing: .1em; color: #555; }
.print-caption { font: 400 10px/1.6 var(--mono) !important; text-align: center; margin-top: 8px; color: #555; }
.print-only { display: none; }
@media (max-width: 600px) { .print-sheet { padding: 6px; } .print-card { padding: 2px; } .print-card b { font-size: 10px; } .print-card small { font-size: 8px; } .move-example { gap: 12px; font-size: 12px; } .card-gallery { gap: 6px; } .card-gallery b { font-size: 11px; } }
@page { size: A4 portrait; margin: 12mm; }
@media print {
  .top, .foot, .skip, .no-print, .toast { display: none !important; }
  body { background: #fff; color: #111; }
  body::before, body::after { display: none !important; }
  .article { width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  .print-only { display: block; font: 400 9pt/1.4 monospace; margin: 0 0 3mm; }
  .print-sheet { margin: 0; padding: 0; border: 0; box-shadow: none; break-inside: avoid; }
  .print-sheet.backs { break-before: page; }
  .print-grid { grid-template-columns: repeat(4, 1fr); width: 184mm; }
  .print-card { height: 56mm; aspect-ratio: auto; break-inside: avoid; }
  .print-card img { width: 38mm; height: 38mm; }
  .print-card b { font-size: 11pt; }
  .print-card small { font-size: 7pt; }
  .print-caption { font-size: 7pt !important; color: #333; }
}
