body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; max-width: 900px; margin: 0 auto; padding: 16px; line-height: 1.5; color: #1f2328; }
a { color: #0969da; }
h1 { margin-bottom: 0; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lang { color: #59636e; white-space: nowrap; }
.lang b { color: #1f2328; }
h2 { border-bottom: 1px solid #d0d7de; padding-bottom: .3em; margin-top: 2em; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #d0d7de; padding: 6px 13px; vertical-align: top; text-align: left; }
th { background: #f6f8fa; white-space: nowrap; }
tr:nth-child(even) { background: #f6f8fa; }
td img { width: 200px; height: auto; display: block; image-rendering: pixelated; }
code { background: #eff1f3; padding: .1em .4em; border-radius: 6px; font-size: 85%; }
figure { margin: 16px 0; }
figure img { width: 100%; height: auto; display: block; border: 1px solid #d0d7de; }
figcaption { color: #59636e; font-size: 14px; margin-top: 4px; }
.lead { color: #59636e; margin-top: 4px; }
.links a { margin-right: 16px; }
footer { margin-top: 3em; color: #59636e; font-size: 14px; }
.projects td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  th, td { padding: 6px 8px; }
  .projects thead { display: none; }
  .projects, .projects tbody { display: block; border: 0; }
  .projects tr { display: grid; grid-template-columns: 96px 1fr; gap: 4px 12px; border: 1px solid #d0d7de; padding: 8px; margin-bottom: 8px; background: #fff; }
  .projects tr:has(td:first-child:empty) { grid-template-columns: 1fr; }
  .projects td { border: 0; padding: 0; }
  .projects td:first-child { grid-row: span 3; }
  .projects td:empty { display: none; }
  .projects td img { width: 96px; }
  .projects td:last-child { color: #59636e; font-size: 14px; }
}
.photo { max-width: 720px; margin: 16px auto; }
.photo img { border: 0; border-radius: 6px; }
.game { max-width: 640px; margin: 16px auto; }
.game iframe { display: block; width: 100%; height: auto; aspect-ratio: 1098 / 1110; border: 0; background: transparent; }
.game figcaption { text-align: center; }
/* сенсорный экран: под телевизором пульт */
@media (pointer: coarse) {
  .game iframe { aspect-ratio: 1098 / 1580; max-height: calc(100vh - 24px); }
}
