/* The page «Игры»: a catalogue by the number of players. One tile per (game, seat count). Colours only through tokens. */
.gsec { margin: 0 0 34px; }
.gsec > h2 { display: flex; align-items: center; gap: 18px; margin: 1.1em 0 14px; color: var(--c-on-page-accent); }
.gsec > h2::after { content: ""; flex: 1 1 auto; height: 2px; background: linear-gradient(90deg, var(--c-gold-soft), transparent); }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.gt { display: flex; flex-direction: column; min-width: 0; background: var(--c-parchment); color: var(--c-ink); border: 1px solid var(--c-gold-soft); border-radius: var(--radius-m, 10px); padding: 12px; box-shadow: 0 2px 8px var(--c-shadow); }
.gt-art { display: block; flex: 0 0 auto; height: 150px; overflow: hidden; border-radius: 6px; border: 2px solid var(--c-gold-soft); background: var(--c-wood-2); }
.gt-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.gt-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding-top: 10px; }
.gt-art + .gt-body { padding-top: 10px; }
.gt:not(:has(.gt-art)) .gt-body { padding-top: 2px; }
.gt-name { margin: 0; font-size: 1.35rem; text-transform: none; line-height: 1.15; }
.gt-name a { color: var(--c-ink); text-decoration: none; }
.gt-name a:hover { text-decoration: underline; }
.gt-sub { margin: 2px 0 0; color: var(--c-ink-soft); font-style: italic; font-size: .95rem; }
.gt-tag { margin: 6px 0 0; color: var(--c-ink); font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gt-tag.soft { color: var(--c-ink-soft); }
.gt-info { margin: 8px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; }
.gt-note { margin: 0 0 4px; color: var(--c-ink-soft); font-size: .92rem; }
.gt-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.gt .btn.gt-btn { flex: 1 1 auto; padding: 4px 12px; font-size: 1rem; white-space: nowrap; color: var(--c-ink); border: 2px solid var(--c-ink); background: transparent; }
.gt .btn.gt-btn:hover:not(:disabled) { background: var(--c-wood-a12); }
.gt .btn.gt-btn.is-main { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold); font-weight: 700; }
.gt[data-status="waits"] .gt-art, .gt[data-status="later"] .gt-art { filter: saturate(.55); }
/* the row of numbers: a press jumps to the section of that number (the look of «Сколько вас?» of the start page) */
.gjump { margin: 14px 0 6px; }
.gjump[hidden] { display: none; }
.gjump-q { margin: 0 0 8px; font-weight: 700; font-size: 1.2rem; }
.gjump-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gjump .chip { display: inline-flex; text-decoration: none; }
.gjump .chip span { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--c-alt-edge); color: var(--c-alt-text); background: var(--c-alt-bg); font-size: 1.25rem; font-weight: 700; }
.gjump .chip:hover span { background: var(--c-gold-a15); }
.gjump .chip:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 50%; }
.gjump .chip:active span { background: var(--c-sel-bg); color: var(--c-sel-text); }
.gsec { scroll-margin-top: 70px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* the foot of a tile: the badge, the note, the buttons (a plain stack on a wide screen) */
.gt-foot { display: contents; }
/* a narrow screen: a compact tile, a small card at the left, the name and two lines, then the badge and the buttons in one row */
@media (max-width: 560px) {
	.gsec { margin-bottom: 14px; }
	.gsec > h2 { margin: .5em 0 8px; font-size: 1.4rem; }
	.gt-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.gt { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 10px; padding: 8px 10px; }
	.gt-body { display: contents; }
	.gt-art { position: relative; grid-column: 1; grid-row: 1 / span 2; width: 56px; height: auto; min-height: 64px; }
	.gt-art img { position: absolute; inset: 0; }
	.gt-name { grid-column: 2; grid-row: 1; font-size: 1.15rem; align-self: end; }
	.gt-tag { grid-column: 2; grid-row: 2; margin: 0; font-size: .9rem; line-height: 1.3; -webkit-line-clamp: 2; align-self: start; }
	.gt:not(:has(.gt-art)) .gt-name, .gt:not(:has(.gt-art)) .gt-tag { grid-column: 1 / -1; }
	.gt-sub, .gt-n { display: none; }
	.gt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
	.gt-info { margin: 0; flex: 0 0 auto; }
	.gt-note { order: -1; flex: 1 1 100%; margin: 0; font-size: .85rem; }
	.gt-go { display: flex; flex: 1 1 0; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; min-width: 0; }
	.gt .btn.gt-btn { flex: 1 1 auto; min-height: 40px; padding: 2px 8px; font-size: .88rem; line-height: 1.15; white-space: normal; text-align: center; }
	.gt .btn.gt-btn.is-main { flex: 0 0 auto; }
}
main.wrap > h1 { margin-top: 22px; }
.gsec ~ .start-msg, #catalog-empty { margin-top: 8px; }
main.wrap > .start-msg:empty { min-height: 0; margin: 0; }
main.wrap > .lead { max-width: 52ch; }
@media (max-width: 560px) {
	.gjump-chips { gap: 8px; }
	.gjump .chip span { width: 42px; height: 42px; font-size: 1.15rem; }
}
