/* The All Games page (call out 473, approved by Jason 8 Nov 2026): the Games page's own look (review.css) with a filter and sort
   bar over one grid of the Games page's cards: Category, Players, Tags (any of the picked ones), Sort by. */

/* Inside the site the Games page frame keeps a scrollbar's width at the right; the same room here keeps the cards at
   exactly the Games page's width */
html.shell-embedded { scrollbar-gutter: stable; }

/* No side menu: the library takes the full width and the cards are the focus (Jason, call out 473) */
.crossroads-library .library-layout.all-layout { grid-template-columns: minmax(0, 1fr); }

/* Filter and sort bar over the cards, in the search bar's look (same label style, same field colours) */
.all-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; margin: 0 0 14px; padding: 14px 16px 16px; border: 1px solid rgba(123, 145, 171, .28); border-radius: 4px; background: rgba(3, 8, 18, .42); }
.all-field { display: grid; gap: 7px; min-width: 0; }
.all-field-category { flex: 1 1 200px; max-width: 260px; }
.all-field-tags { flex: 1 1 190px; max-width: 260px; }
.all-field-players { flex: 1 1 190px; max-width: 250px; }
.all-field-sort { flex: 0 1 170px; margin-left: auto; }
.all-field > label, .all-field .all-field-label { color: #c9b3dd; font: 800 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.all-field select, .all-tags-open { width: 100%; min-height: 42px; padding: 0 36px 0 12px; border: 1px solid rgba(174, 144, 199, .64); border-radius: 3px; background: rgba(3, 8, 18, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d6b8e9' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; color: #edf2f7; font: 650 .9rem var(--sans); appearance: none; cursor: pointer; text-align: left; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.all-field select option { background: #0d1626; color: #edf2f7; }
.all-field select:focus-visible, .all-tags-open:focus-visible, .all-chip:focus-visible { outline: none; border-color: #d4b7e8; box-shadow: 0 0 0 3px rgba(161, 104, 193, .2); }

/* Players and Tags: a box under its button with a tick for each choice and how many games it gives */
.all-players-panel { width: min(260px, calc(100vw - 32px)); }
.all-tags-list.all-players-list { grid-template-columns: 1fr; }
.all-tags { position: relative; }
.all-tags-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(420px, calc(100vw - 32px)); padding: 12px; border: 1px solid rgba(174, 144, 199, .64); border-radius: 4px; background: #0d1626; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.all-tags-panel[hidden] { display: none; }
.all-tags-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 320px; overflow-y: auto; }
.all-tag-pick { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 6px; border-radius: 3px; color: #e1d5e9; font: 650 .85rem/1.2 var(--sans); cursor: pointer; }
.all-tag-pick:hover { background: rgba(138, 58, 168, .18); color: #fff; }
.all-tag-pick input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #8a3aa8; }
.all-tag-pick span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.all-tag-pick small { flex: 0 0 auto; color: #8fa1b4; font: 700 .72rem var(--sans); }
.all-tag-pick.is-none { opacity: .45; }

/* Result line: how many games, the chosen filters as chips (each removable), and Clear all */
.all-resultbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 34px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 2px solid rgba(123, 145, 171, .38); }
.all-count { margin: 0; color: #f0f4f8; font: 750 1.15rem/1.2 var(--sans); letter-spacing: -.01em; }
.all-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.all-chips[hidden], .all-reset[hidden] { display: none; }
.all-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 8px 0 11px; border: 1px solid #5d4475; border-radius: 4px; background: #2a1f3a; color: #f1e9f7; font: 700 .78rem var(--sans); cursor: pointer; }
.all-chip span { color: #c9b3dd; font-size: 1rem; line-height: 1; }
.all-chip:hover { border-color: #8a3aa8; background: #3d2b52; }
.all-chip:hover span { color: #fff; }
.all-reset { min-height: 32px; margin-left: auto; padding: 0 13px; border: 1px solid #76538d; border-radius: 2px; background: #111c2c; color: #ece4f2; font: 740 .8rem var(--sans); cursor: pointer; }
.all-reset:hover, .all-reset:focus-visible { border-color: #d4b7e8; color: #fff; outline: none; }

/* Cards stay exactly the Games page card size: the Games page shelf is the library width less its Jump to column
   (190 px + 42 px gap; 160 + 28 from 861 to 1100 px; none at 860 px and under), so the heading, the bar and the cards
   use that same width, centred in the full width library */
.crossroads-library .all-catalog > *, .crossroads-library .restored-catalog.all-catalog > .section-heading { box-sizing: border-box; max-width: calc(100% - 232px); margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) and (min-width: 861px) { .crossroads-library .all-catalog > *, .crossroads-library .restored-catalog.all-catalog > .section-heading { max-width: calc(100% - 188px); } }
@media (max-width: 860px) { .crossroads-library .all-catalog > *, .crossroads-library .restored-catalog.all-catalog > .section-heading { max-width: none; } }

/* One grid of the Games page cards, same columns and gap as its shelves (4 across over 1500 px, 3 across 1101 to
   1500 px, 2 across 701 to 1100 px) */
.all-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; padding: 0 2px; }
.all-grid .game-card[hidden] { display: none !important; }
@media (max-width: 1500px) and (min-width: 1101px) { .all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 701px) { .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .all-grid { grid-template-columns: minmax(0, 1fr); } .all-tags-list { grid-template-columns: 1fr; } }

/* Every card the same height: the Games page standard card (call out 476) */
.crossroads-library .all-grid .game-card { min-height: 387.625px; }

/* Card label: the card's own label, then how the game plays after it (as in the approved mockup) */
.crossroads-library .all-grid .game-card .card-type { max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crossroads-library .all-grid .game-card .card-type small { color: #9aabbd; font: 700 .64rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.crossroads-library .all-grid .game-card .card-type small::before { content: "\2009\00b7\2009"; color: #7f91a5; }

.all-catalog .empty-result[hidden] { display: none; }
