/* Game catalogs share the AKIBA sample cards, with filters and pagination. */
#tcg-game-catalog {
  padding-top:32px;
  scroll-margin-top:24px;
}

.tcg-game-intro {
  max-width:none;
  padding-bottom:30px;
  border-bottom:1px solid var(--line);
}
.tcg-game-intro h1 { max-width:1000px; }
.tcg-game-intro>p:not(.eyebrow) { max-width:760px; }

#tcg-filter-form.card-filters {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:18px 16px;
  padding:0 0 24px;
  border-bottom:1px solid var(--line);
}
#tcg-filter-form>label {
  display:flex;
  flex:0 1 190px;
  flex-direction:column;
  min-width:0;
  gap:9px;
}
#tcg-filter-form>label:first-of-type { flex:1 1 260px; }
#tcg-filter-form>label>span {
  font-size:10px;
  font-weight:600;
  line-height:1.5;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:#626b59;
}
#tcg-search,#tcg-format,#tcg-sort {
  width:100%;
  min-width:0;
  min-height:46px;
  margin:0;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:0;
  background:#ffffff70;
  color:var(--ink);
  font:inherit;
  font-size:13px;
  line-height:1.5;
}
#tcg-search {
  -webkit-appearance:none;
  appearance:none;
}
#tcg-search::placeholder { color:#73786b; opacity:1; }
#tcg-format,#tcg-sort { padding-right:30px; cursor:pointer; }
#tcg-reset {
  min-height:46px;
  padding:12px 16px;
  border:1px solid var(--line);
  color:var(--ink);
  font-size:12px;
  font-weight:600;
  line-height:1.5;
}
#tcg-reset:hover { border-color:var(--ink); background:#e8e9e0; }
#tcg-result-count {
  min-height:20px;
  margin:20px 0 24px;
  color:#626b59;
  font-size:12px;
  line-height:1.7;
}

#tcg-game-products.tcg-game-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:36px 22px;
}
#tcg-game-products .tcg-sample {
  display:flex;
  flex-direction:column;
  min-width:0;
}
#tcg-game-products .tcg-sample-art {
  flex:none;
  height:280px;
}
#tcg-game-products .tcg-sample-art img {
  width:82%;
  height:76%;
  object-fit:contain;
}
#tcg-game-products .tcg-sample-copy {
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  padding-top:17px;
}
#tcg-game-products .tcg-sample-format {
  margin:0;
  color:#626b59;
  font-size:10px;
  line-height:1.6;
  letter-spacing:.8px;
  text-transform:uppercase;
}
#tcg-game-products .tcg-sample h4 {
  min-height:3.45em;
  margin:8px 0 16px;
  font-size:26px;
  line-height:1.15;
  overflow-wrap:anywhere;
}
#tcg-game-products .tcg-sample details { margin-top:auto; }
#tcg-game-products .tcg-sample summary {
  min-height:24px;
  line-height:1.5;
}
#tcg-game-products .tcg-sample details p {
  margin:10px 0 0;
  color:#626b59;
  font-size:12px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
#tcg-game-products .tcg-sample-status { line-height:1.6; }

#tcg-empty {
  padding:48px 24px;
  border:1px solid var(--line);
  background:#eeeee6;
  text-align:center;
  color:#626b59;
  font-size:14px;
  line-height:1.8;
}
#tcg-empty h3 { color:var(--ink); margin:0 0 12px; }
#tcg-empty p { margin:0 auto; max-width:55ch; }
#tcg-empty button,#tcg-empty a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:16px;
  color:#aa3514;
  text-decoration:underline;
  text-underline-offset:4px;
}
#tcg-pagination {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:16px;
  width:100%;
  max-width:520px;
  margin:40px auto 0;
  padding-top:24px;
  border-top:1px solid var(--line);
}
#tcg-pagination button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border:1px solid var(--ink);
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
  line-height:1.5;
}
#tcg-pagination button:hover:not(:disabled) {
  background:var(--ink);
  color:var(--paper);
}
#tcg-pagination button:disabled {
  border-color:var(--line);
  color:#85897d;
  cursor:default;
  opacity:.65;
}
#tcg-pagination>span {
  min-width:90px;
  text-align:center;
  color:#626b59;
  font-size:12px;
  line-height:1.6;
}
#tcg-game-catalog :is(button,input,select,summary,a):focus-visible {
  outline:3px solid var(--orange);
  outline-offset:4px;
}
#tcg-game-catalog [hidden],
#tcg-game-catalog[hidden],
#tcg-pagination[hidden] { display:none!important; }

@media(max-width:1000px) {
  #tcg-game-products.tcg-game-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:32px 18px;
  }
  #tcg-filter-form>label { flex-basis:165px; }
  #tcg-filter-form>label:first-of-type { flex-basis:230px; }
}

@media(max-width:700px) {
  #tcg-game-catalog { padding-top:26px; }
  .tcg-game-intro { padding-bottom:24px; }
  #tcg-filter-form.card-filters { gap:16px 12px; padding-bottom:20px; }
  #tcg-filter-form>label { flex:1 1 calc(50% - 6px); }
  #tcg-filter-form>label:first-of-type { flex-basis:100%; }
  #tcg-filter-form>label>span { font-size:9px; letter-spacing:.5px; }
  #tcg-search,#tcg-format,#tcg-sort { font-size:16px; padding:11px 10px; }
  #tcg-format,#tcg-sort { padding-right:22px; }
  #tcg-reset { flex:1 1 100%; }
  #tcg-result-count { margin:18px 0 20px; font-size:11px; }
  #tcg-game-products.tcg-game-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 14px;
  }
  #tcg-game-products .tcg-sample-art { height:210px; }
  #tcg-game-products .tcg-sample-copy { padding-top:14px; }
  #tcg-game-products .tcg-sample-format { font-size:9px; letter-spacing:.4px; }
  #tcg-game-products .tcg-sample h4 { font-size:24px; min-height:4.6em; }
  #tcg-game-products .tcg-sample details p { font-size:11px; }
  #tcg-game-products .tcg-demo-label { max-width:calc(100% - 18px); line-height:1.5; }
  #tcg-empty { padding:32px 18px; font-size:13px; }
  #tcg-pagination { gap:10px; margin-top:30px; padding-top:20px; }
  #tcg-pagination button { padding:11px 12px; font-size:11px; }
  #tcg-pagination>span { min-width:76px; font-size:11px; }
}

@media(max-width:380px) {
  #tcg-game-products.tcg-game-grid { column-gap:12px; }
  #tcg-game-products .tcg-sample h4 { font-size:22px; }
}
