/* ══════════════════════════════════════════════════════════════
   Nowly — the Games page (4 Nov 2026). Loads after site.css and style.css and keeps the same
   direction «المسرح»: Royal Black, ivory ink, violet only as a dot, a marker or the focus ring.
   The colour on this page comes from the five approved game tiles themselves.
   ══════════════════════════════════════════════════════════════ */

.games { max-width: 820px; }
.games .callout { margin-bottom: 28px; }

/* the five cards that lead to each game */
.legal .gcards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; margin: 0 0 8px; }
.legal .gcards li { margin: 0; padding: 0; }
.legal .gcards li:first-child { grid-column: 1 / -1; }
.legal a.gcard { display: flex; align-items: center; gap: 18px; padding: 14px; height: 100%; background: var(--surface); border-radius: 16px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.gcard img { flex: none; width: 72px; height: 96px; border-radius: 12px; }
.gtxt { display: grid; gap: 4px; min-width: 0; }
.gtxt strong { font-size: 19px; font-weight: 600; line-height: 1.3; }
.gtxt > span { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.games .gtxt > span span { display: inline; }

/* one game */
.game { margin-top: 96px; scroll-margin-top: 72px; } /* with the page scroll-padding: clear of the header and the sticky jump bar */
.ghead { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
.ghead img { flex: none; width: 108px; height: 144px; border-radius: 12px; }
.ghead > div { min-width: 0; }
.games h2 { scroll-margin-top: 60px; }
.games .game h2 { margin: 0 0 8px; padding: 0; border-top: 0; }
.games .idea { margin: 0; color: var(--ink); font-size: 17px; text-wrap: pretty; }
.games h3 { text-wrap: balance; }

.gfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 8px; }
.gfacts > div { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.gfacts dt { font-size: 13.5px; color: var(--mute); margin-bottom: 4px; }
.gfacts dd { font-size: 15.5px; color: var(--ink); line-height: 1.55; text-wrap: pretty; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.roles > div { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.roles dt { font-size: 16.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.roles dd { font-size: 15px; color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
body[dir="rtl"] .roles dd { line-height: 1.85; }

/* numbered steps; the numbers are always Latin digits */
.legal ol.steps { list-style: none; padding: 0; counter-reset: step; }
.legal ol.steps li { counter-increment: step; position: relative; padding-inline-start: 44px; margin-bottom: 14px; }
.legal ol.steps li::before { content: counter(step, decimal); position: absolute; inset-inline-start: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet-soft); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 28px; text-align: center; font-variant-numeric: tabular-nums; }

.tips { margin-top: 28px; }
.tips h3 { margin: 0 0 10px; font-size: 17px; }
.tips ul { margin: 0; }
.tips li:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .gfacts, .roles { grid-template-columns: 1fr; }
  .ghead { gap: 16px; align-items: flex-start; }
  .ghead img { width: 84px; height: 112px; border-radius: 12px; }
}
@media (max-width: 560px) {
  .legal .gcards { grid-template-columns: 1fr; }
  .game { margin-top: 56px; }
}
@media (max-width: 400px) {
  .ghead { flex-direction: column; }
}

/* quick jump bar: five pills under the intro, sticky below the header, scrolls inside its own box
   when the names do not fit (the last pill peeks past the edge as the cue). 44px targets. */
.legal .jump { position: sticky; top: var(--head); z-index: 5; display: flex; gap: 8px; margin: 0 0 20px; padding: 10px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: var(--bg); }
.jump::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { .legal .jump { flex-wrap: wrap; overflow: visible; } } /* a mouse cannot swipe a row: show every pill */
@media (min-width: 1280px) { .legal .jump { display: none; } } /* the chapter list beside the text holds the same links */
.legal .jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .15s ease-out; -webkit-tap-highlight-color: transparent; }
.legal .jump a:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .legal .jump a:hover { background: var(--surface-hover); }
  .legal a.gcard:hover { background: var(--surface-2); }
}
@media (prefers-reduced-motion: no-preference) {
  .legal .jump a:active { transform: scale(.96); }
  .legal a.gcard:active { transform: scale(.98); } /* a large card: .96 reads as a jump at this size */
}
.legal a.gcard { transition: background-color .15s, transform .15s ease-out; -webkit-tap-highlight-color: transparent; }

.games .note { font-size: 14px; color: var(--mute); margin: 12px 0 0; }
