/* Game catalogues only — the homepage and game canvases retain their own styles. */
#questHome .newpage.ctc-catalog-page:not(#new-home) {
  max-width: 1480px !important;
  color: #243647;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) > h1 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(28px, 3.1vw, 46px) !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  color: #223748 !important;
  text-shadow: none !important;
  margin-bottom: 10px !important;
}
#questHome .ctc-catalog-page > .eyebrow {
  font: 700 12px/1.5 system-ui, sans-serif !important;
  letter-spacing: .12em;
  color: #9b3538 !important;
}
#questHome .ctc-catalog-page .ctc-catalog-toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  padding: 12px 0;
  border-top: 1px solid #cfc5b4; border-bottom: 1px solid #cfc5b4;
}
#questHome .ctc-catalog-page .ctc-catalog-filters {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
#questHome .ctc-catalog-page .ctc-catalog-filter,
#questHome .ctc-catalog-page .go-chip {
  font: 600 13px/1.25 system-ui, sans-serif;
  letter-spacing: 0; text-transform: none;
  min-height: 44px; padding: 9px 12px;
  border: 1px solid #bbb9b0; border-radius: 3px;
  background: #fffdf8; color: #223748;
  cursor: pointer;
}
#questHome .ctc-catalog-page .ctc-catalog-filter.on,
#questHome .ctc-catalog-page .go-chip.on {
  background: #233c4c; border-color: #233c4c; color: #fff;
}
#questHome .ctc-catalog-page .ctc-catalog-count {
  color: #655f55; font: 600 13px/1.4 system-ui, sans-serif;
}
#questHome .ctc-catalog-page .game-list.go-on {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px !important;
  margin-top: 0 !important;
  align-items: start;
}
#questHome .ctc-catalog-page .go-sec {
  grid-column: 1/-1; display: flex; flex-wrap: wrap;
  gap: 5px 12px; align-items: baseline;
  background: none !important; border: 0 !important;
  border-bottom: 1px solid #b5b7b0 !important;
  border-left: 3px solid #9b3538 !important;
  padding: 8px 10px !important;
  color: #223748 !important;
  margin: 14px 0 0 !important;
}
#questHome .ctc-catalog-page .go-sec b {
  font: 750 16px/1.35 system-ui, sans-serif !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: #223748 !important;
}
#questHome .ctc-catalog-page .go-sec span {
  font: 400 13px/1.4 system-ui, sans-serif !important; color: #666055 !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start !important; align-content: start;
  gap: 12px !important; min-width: 0;
  padding: 15px !important; min-height: 146px !important;
  color: #223748 !important; background: #fffdf8 !important;
  border: 1px solid #d4cdbf !important; border-radius: 3px !important;
  box-shadow: 0 1px 2px #182f4110 !important;
  text-align: left; height: 100%; position: relative;
  transition: border-color .12s, background-color .12s;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card:hover {
  background: #f9f5eb !important; border-color: #9b3538 !important;
}
#questHome .ctc-catalog-page .game-list.go-on .ctc-catalog-card .game-icon {
  width: 52px !important; height: 52px !important;
  flex: none !important; margin: 0 !important; align-self: start;
}
#questHome .ctc-catalog-page .ctc-catalog-photo {
  object-fit: cover; border: 1px solid #ccc2b5; border-radius: 2px;
}
#questHome .ctc-catalog-page .ctc-catalog-photo-contain {
  object-fit: contain; background: #f0eadc;
}
#questHome .ctc-catalog-page .ctc-catalog-card .game-text {
  display: flex !important; flex-direction: column;
  align-items: start; gap: 5px !important; min-width: 0;
  text-align: left; align-self: stretch;
}
#questHome .ctc-catalog-page .ctc-card-skill {
  color: #536874; font: 700 11px/1.35 system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: .055em;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card .game-text strong {
  font: 700 clamp(18px, 1.55vw, 22px)/1.2 Georgia, 'Times New Roman', serif !important;
  color: #223748 !important; letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card .game-text small {
  font: 400 14px/1.42 system-ui, sans-serif !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: #4d504b !important; margin: 1px 0 3px !important;
}
#questHome .ctc-catalog-page .ctc-catalog-badges {
  display: flex; flex-wrap: wrap; gap: 4px;
  max-width: 100%; margin: 3px 0;
}
#questHome .ctc-catalog-page .ctc-catalog-badge {
  display: inline-block; padding: 3px 6px;
  border: 1px solid #d1d1c6; border-radius: 2px;
  color: #4b514b; background: #f7f5ee;
  font: 600 11px/1.3 system-ui,sans-serif;
  text-transform: none; letter-spacing: 0;
}
#questHome .ctc-catalog-page .ctc-catalog-multi { background: #eaf0f4; border-color: #c1cdd6; color: #29475a; }
#questHome .ctc-catalog-page .ctc-catalog-free { background: #eef2e9; border-color: #cbd5c4; color: #365a3e; }
#questHome .ctc-catalog-page .ctc-catalog-print { background: #f7efe5; border-color: #dfcbb5; color: #6e4933; }
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card .game-text b {
  color: #9b3538 !important;
  font: 750 12px/1.35 system-ui, sans-serif !important;
  letter-spacing: .035em; margin-top: auto !important;
  padding-top: 4px;
}
#questHome .ctc-catalog-page .ctc-catalog-card > .fre-tag,
#questHome .ctc-catalog-page .ctc-catalog-tile > .fre-tag { display:none !important; }
#questHome .ctc-catalog-page .ctc-catalog-card.ctc-solved::after {display: none !important}
#questHome .ctc-catalog-page .ctc-catalog-card.ctc-solved .game-text > b::after { content: ' · Solved'; color: #365a3e; }
#questHome .ctc-catalog-page .go-family { min-width: 0; align-self: start; }
#questHome .ctc-catalog-page .go-family-options {
  background: #f2eee4 !important; padding: 6px !important;
  border: 1px solid #d4cdbf !important; border-top: 0 !important;
  display: grid; gap: 5px;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .go-family-options .ctc-catalog-card {
  display: block !important; min-height: 0 !important; height: auto;
  padding: 10px 12px !important;
}
#questHome .ctc-catalog-page .go-family-options .ctc-catalog-card .game-icon,
#questHome .ctc-catalog-page .go-family-options .ctc-catalog-card .ctc-card-skill,
#questHome .ctc-catalog-page .go-family-options .ctc-catalog-card .game-text small { display: none !important; }
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .go-family-options .ctc-catalog-card .game-text strong {
  font-size: 16px !important;
}
#questHome .ctc-catalog-page .go-empty,
#questHome .ctc-catalog-page .ctc-catalog-empty {
  grid-column: 1/-1; padding: 12px; color: #5e605b;
  font: 400 14px/1.5 system-ui, sans-serif;
}
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card[hidden],
#questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .go-family-options .ctc-catalog-card[hidden],
#questHome .ctc-catalog-page .go-family[hidden],
#questHome .ctc-catalog-page .go-family-options[hidden],
#questHome .ctc-catalog-page .go-sec[hidden],
#questHome .ctc-catalog-page .go-empty[hidden],
#questHome .ctc-catalog-page .ctc-catalog-empty[hidden] {display:none !important;}
#questHome #new-games.ctc-catalog-directory .gm-grid {
  grid-template-columns: minmax(0, 1fr); gap: 12px;
}
#questHome #new-games.ctc-catalog-directory .pn-tile {
  min-height: 104px; padding: 14px;
  background: #fffdf8; color: #223748;
  border: 1px solid #d4cdbf; border-radius: 3px;
  box-shadow: 0 1px 2px #182f4110;
}
#questHome #new-games.ctc-catalog-directory .pn-tile:hover {border-color: #9b3538; background: #f9f5eb;}
#questHome #new-games.ctc-catalog-directory .pn-tile strong {
  font: 700 19px/1.25 Georgia, 'Times New Roman', serif !important;
}
#questHome #new-games.ctc-catalog-directory .pn-tile small {
  font: 400 14px/1.4 system-ui, sans-serif !important;
  color: #4d504b; text-transform: none; letter-spacing: 0; margin-top: 3px;
}
#questHome #new-games.ctc-catalog-directory .gm-sub {
  font: 750 14px/1.4 system-ui, sans-serif; color: #223748;
  letter-spacing: .035em; padding: 8px 10px;
  border-left: 3px solid #9b3538; border-bottom: 1px solid #b5b7b0;
}
#questHome .ctc-catalog-page .go-tabs { border: 1px solid #233c4c; border-radius: 3px; overflow: hidden; }
#questHome .ctc-catalog-page .go-tabs button { min-height: 44px; letter-spacing: .035em; }
#questHome .ctc-catalog-page button:focus-visible,
#questHome .ctc-catalog-page summary:focus-visible {
  outline: 3px solid #a23d39 !important; outline-offset: 3px;
}
@media (min-width: 660px) {
  #questHome .ctc-catalog-page .game-list.go-on,
  #questHome #new-games.ctc-catalog-directory .gm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1250px) {
  #questHome .ctc-catalog-page .game-list.go-on,
  #questHome #new-games.ctc-catalog-directory .gm-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 440px) {
  #questHome .newpage.ctc-catalog-page:not(#new-home) .game-list.go-on .ctc-catalog-card {
    grid-template-columns: 40px minmax(0,1fr); padding: 11px !important; gap: 9px !important;
  }
  #questHome .ctc-catalog-page .game-list.go-on .ctc-catalog-card .game-icon { width: 40px !important; height: 40px !important; }
  #questHome .ctc-catalog-page .ctc-catalog-filter { font-size: 12px; padding: 8px 10px; }
}
