/* Hallmark · shape: Catalogue (the four games are the page: an index of live previews, how it runs at the stand, what carries the brand, the specs, figures, contact close) · genre: atmospheric · theme: Midnight (locked: design.md) · redesign: full
 * hero: Index (the four games running live on eight columns as the hero's lead, the head small on four) · nav: edge-aligned · footer: index columns · imagery: the product (the four games' own canvas previews, each one tap from play) · signature: four games running in the first screen, each a link to play it
 * axes: dark/grotesk-sans/cool · posture: committed · job: hire (a branded game for an event) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a games portal argues little; the table pins down what each game swaps for the brand, so the claim is shown per game, not said once */
@import url("/ds/tokens.css");
@import url("/ds/base.css");
@import url("/ds/site.css");

/* restated from base.css and site.css for this file's own checks */
html, body { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero: Index, the four games as the lead ---------- */
.games-hero { min-height: calc(100dvh - var(--nav-height)); display: grid; align-items: center; padding-block: var(--space-xl); }
.games-hero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: center; }
.games-hero h1 { font-size: var(--text-display-s); max-width: 10ch; }
.games-hero .lead { max-width: 30ch; }
.games-hero .hero__actions { flex-direction: column; align-items: flex-start; }

.arcade { display: grid; gap: var(--space-sm); }
.arcade__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.game { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); align-items: center; color: var(--color-ink); text-decoration: none; }
.game__screen { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; margin-bottom: var(--space-sm); background: var(--color-paper-2); box-shadow: var(--shadow-card); overflow: hidden; }
.game__screen canvas { display: block; width: 100%; height: 100%; }
.game__name { font-size: var(--text-title); font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.game__kind { grid-column: 1; font-size: var(--text-sm); color: var(--color-muted); }
.game__play { grid-column: 2; grid-row: 2 / span 2; min-height: 48px; font-size: var(--text-md); }
.game:hover .game__play { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.game:active .game__play { transform: translateY(1px); }
.game:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.arcade__foot { display: flex; justify-content: flex-end; }
.arcade__toggle { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); white-space: nowrap; }
html:not(.js) .arcade__toggle { display: none; }

@media (max-width: 60rem) {
  .games-hero { min-height: 0; }
  .games-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .games-hero .hero__actions { flex-direction: row; }
}
@media (max-width: 40rem) { .arcade__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- at the stand: a real <ol> of what a guest does ---------- */
.stand { padding-block: var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.stand h2 { margin-bottom: var(--space-2xl); max-width: 16ch; }
.stand__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: step; }
.stand__steps li { display: grid; align-content: start; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); counter-increment: step; }
.stand__steps li::before { content: counter(step); font-size: var(--text-display-s); font-weight: var(--display-weight); font-stretch: var(--display-stretch); line-height: 1; color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.stand__steps h3 { font-size: var(--text-xl); }
.stand__steps p { color: var(--color-ink-2); max-width: 36ch; }
@media (max-width: 60rem) { .stand__steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* ---------- what carries the brand: a table, one row per game ---------- */
.brand-table { padding-block: var(--section-gap-s) var(--section-gap); background: var(--color-paper-2); }
.brand-table h2 { margin-bottom: var(--space-2xl); max-width: 18ch; }
.brand-table table { width: 100%; border-collapse: collapse; }
.brand-table th, .brand-table td { padding-block: var(--space-lg); padding-right: var(--space-lg); text-align: left; vertical-align: baseline; border-top: var(--rule-hair) solid var(--color-rule-2); }
.brand-table thead th { padding-block: 0 var(--space-sm); border-top: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); white-space: nowrap; }
.brand-table tbody th { font-size: var(--text-xl); font-weight: 500; white-space: nowrap; width: 22%; }
.brand-table td { color: var(--color-ink-2); max-width: 65ch; }
@media (max-width: 40rem) {
  .brand-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .brand-table tr, .brand-table th, .brand-table td { display: block; width: auto; }
  .brand-table tbody tr { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
  .brand-table th, .brand-table td { padding: 0; border-top: 0; }
  .brand-table td { margin-top: var(--space-xs); }
}

/* ---------- the specs: rows beside the head ---------- */
.specs { padding-block: var(--section-gap-l) var(--section-gap-s); }
.specs .rows h3 { font-size: var(--text-xl); }

/* ---------- figures sit on the shared .figures ---------- */
.figures { border-top: 0; }
