/* How it plays (three beats, the score sum, the facts) and the screenshot gallery. */
.beats { display: grid; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: beat; }
.beats li { position: relative; padding-top: 22px; border-top: 6px solid var(--c); }
.beats li:nth-child(1) { --c: var(--red); }
.beats li:nth-child(2) { --c: var(--green); }
.beats li:nth-child(3) { --c: var(--yellow); }
.beats h3 { font-size: 1.3125rem; }
.beats h3::before { counter-increment: beat; content: counter(beat) " "; color: var(--c); font: 400 1.0625em/1 var(--display); }
[dir="rtl"] .beats h3::before { content: counter(beat, persian) " "; font-family: var(--body); font-weight: 800; }
.beats p { margin: 0; color: var(--muted); }

/* the score sum, set like a scoreboard, beside the real moment it describes */
.sum { display: grid; gap: 24px; margin: 48px 0 0; padding: 18px; border: 2px solid var(--edge); border-radius: 20px; background: var(--panel); }
.sum img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 2px var(--edge); }
.sum figcaption { display: grid; gap: 12px; align-content: center; }
.math { margin: 0; font: 400 clamp(1.375rem, 6.2vw, 2.25rem)/1.25 var(--display); direction: ltr; text-align: start; }
[dir="rtl"] .math { text-align: right; font: 800 clamp(1.5rem, 6.6vw, 2.375rem)/1.3 var(--body); }
.math b { font-weight: 400; background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .math b { font-weight: 800; }
.sum p:last-child { margin: 0; color: var(--muted); }

.facts { display: grid; gap: 18px 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-inline-start: 46px; color: var(--muted); }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 32px; height: 10px; border-radius: 3px; background: var(--c, var(--blue)); }
.facts li:nth-child(1) { --c: var(--silver); }
.facts li:nth-child(2) { --c: var(--orange); }
.facts li:nth-child(3) { --c: var(--red); }
.facts li:nth-child(4) { --c: var(--green); }
.facts strong { color: var(--ink); }

/* gallery: the screenshots, each in a thin bezel with a caption under it */
.shots { display: grid; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots a { display: block; padding: 6px; border-radius: 12px; background: #1a2350; box-shadow: 0 0 0 2px #2f3a74; }
.shots a:hover { box-shadow: 0 0 0 2px var(--yellow); }
.shots img { width: 100%; border-radius: 7px; }
.shots figcaption { margin-top: 12px; color: var(--muted); }

@media (min-width: 640px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots li:first-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .sum { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; padding: 24px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots li:first-child { grid-column: auto; }
}
