/* Game catalog: tier shelves, category palettes, readable equipment details. */
#modal:has(.catalog-game),
#modal:has(.community-shop-game) {
  background: #20251f;
  color: #eee9d8;
  border: 1px solid #777966;
  width: min(1440px, 96vw);
  max-width: 1440px;
  padding: 28px;
  max-height: 92dvh;
  border-radius: 12px;
}
#modal:has(.catalog-game) > .close,
#modal:has(.community-shop-game) > .close {
  color: #e8e7d5;
  background: #343b30;
  border: 1px solid #737b60;
  border-radius: 6px;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  line-height: 1;
}
.game-shop-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 42px 20px 0;
  flex-wrap: wrap;
}
.game-shop-heading > span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #c9c3a4;
  width: 100%;
  font-weight: 600;
}
.game-shop-heading h2 {
  font-size: 30px;
  letter-spacing: 1px;
  margin: 0;
  color: #f4eedc;
}
.game-shop-heading > small {
  font-size: 11px;
  color: #b2b6a1;
  margin-left: auto;
}
.game-shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid #697058;
  font-size: 14px;
}
.game-shop-tabs button {
  padding: 13px;
  border: 0;
  border-radius: 5px 5px 0 0;
  background: #353b31;
  color: #b7c0aa;
  font-weight: 700;
  cursor: pointer;
}
.game-shop-tabs button[data-game-tab="weapon"],
.game-shop-tabs button[data-catalog-tab="weapon"] {
  color: #d6a459;
}
.game-shop-tabs button[data-game-tab="vitality"],
.game-shop-tabs button[data-catalog-tab="vitality"] {
  color: #99ba73;
}
.game-shop-tabs button[data-game-tab="spirit"],
.game-shop-tabs button[data-catalog-tab="spirit"] {
  color: #b89ed0;
}
.game-shop-tabs button.selected {
  background: #ded8c0;
  color: #252b22;
  box-shadow: inset 0 -3px var(--shop-accent, #bcc79b);
}
.catalog-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 0 0 20px;
}
.catalog-controls label {
  font-size: 10px;
  color: #b4bea6;
  display: grid;
  gap: 7px;
  min-width: 140px;
  margin: 0;
}
.catalog-controls label:first-child {
  width: 280px;
}
.catalog-controls .catalog-search {
  flex: 1;
}
.catalog-controls select,
.catalog-controls input,
.community-shop-game .community-build-controls select,
.community-shop-game .community-build-controls input {
  width: 100%;
  min-height: 38px;
  background: #30392c;
  border: 1px solid #647455;
  border-radius: 5px;
  color: #ecebd8;
  font-size: 12px;
  padding: 8px 10px;
}
.catalog-game .hero-search-trigger,
.community-shop-game .hero-search-trigger {
  background: #30392c;
  border-color: #647455;
  color: #ecebd8;
  min-height: 40px;
  padding: 5px 10px;
  font-size: 12px;
}
.catalog-game .hero-search-popup,
.community-shop-game .hero-search-popup {
  background: #283324;
  border-color: #647455;
  z-index: 12;
}
.catalog-game .hero-search-options button,
.community-shop-game .hero-search-options button {
  color: #eee9d8;
}
.catalog-game .hero-search-options button:hover,
.community-shop-game .hero-search-options button:hover {
  background: #46563c;
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}
.catalog-shelves {
  min-width: 0;
}
.catalog-tier {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #57604c;
}
.catalog-tier-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  color: var(--shop-accent);
}
.catalog-tier-price strong {
  font-size: 17px;
  white-space: nowrap;
}
.catalog-tier-price small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8f9b80;
}
.catalog-tier-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.catalog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 7px;
  min-width: 0;
  padding: 9px 5px 7px;
  border: 1px solid #8a7857;
  border-radius: 3px;
  background: #e6dac0;
  color: #3b3426;
  cursor: pointer;
  box-shadow: inset 0 1px #ffffff66;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.catalog-game[data-shop-type="vitality"] .catalog-item {
  background: #d2dfbc;
  border-color: #7f9660;
  color: #28351e;
}
.catalog-game[data-shop-type="spirit"] .catalog-item {
  background: #ddd0e5;
  border-color: #92809f;
  color: #3f304a;
}
.catalog-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.catalog-item strong {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.catalog-item:hover,
.catalog-item.selected {
  outline: 2px solid var(--shop-accent);
  outline-offset: 0;
  box-shadow: 0 3px 14px #0005;
  transform: translateY(-2px);
}
.catalog-inspector {
  position: sticky;
  top: 0;
  padding: 20px;
  background: #30382c;
  border: 1px solid #647255;
  border-top: 3px solid var(--shop-accent);
  border-radius: 5px;
  min-width: 0;
}
.catalog-detail-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.catalog-detail-top > img {
  width: 106px;
  height: 106px;
  object-fit: contain;
  align-self: center;
  border-radius: 6px;
  background: #ded6bf;
  padding: 4px;
}
.catalog-detail-top small {
  color: var(--shop-accent);
  font-size: 9px;
  letter-spacing: 2px;
}
.catalog-detail-top h3 {
  font-size: 23px;
  color: #f1eddd;
  margin: 7px 0;
}
.catalog-detail-top span {
  display: block;
  color: #aeb9a0;
  font-size: 11px;
  line-height: 1.6;
}
.catalog-detail-top b {
  display: block;
  color: var(--shop-accent);
  font-size: 22px;
  margin-top: 14px;
}
.catalog-stats {
  margin: 18px -5px;
  padding: 12px;
  background: #1f2b1d;
  border-radius: 5px;
}
.catalog-stats p {
  margin: 5px 0;
  font-size: 12px !important;
  color: #e0e7cf !important;
  line-height: 1.7;
}
.catalog-effect {
  border-top: 1px solid #5a684d;
  padding-top: 16px;
}
.catalog-effect h4 {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--shop-accent);
}
.catalog-effect p {
  font-size: 12px !important;
  line-height: 1.9;
  color: #d3ddc6 !important;
  white-space: pre-line;
}
.catalog-footnote {
  display: block;
  font-size: 10px;
  color: #93a387;
  line-height: 1.7;
  margin-top: 20px;
}
.catalog-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #4d5942;
  margin-top: 20px;
  padding-top: 12px;
  font-size: 9px;
  color: #94a087;
}
.catalog-empty {
  color: #aeba9e;
  padding: 30px;
}
/* Community titles open a dedicated full-build dialog. */
.community-shop-game .community-build-controls {
  gap: 12px;
  margin: 15px 0;
  align-items: end;
}
.community-shop-game .community-build-controls label {
  color: #b5c4a5;
  font-size: 10px;
}
.community-shop-game .community-build-controls button {
  background: #3d4c31;
  border: 1px solid #6a7d53;
  border-radius: 5px;
  color: #e0e8d2;
  padding: 10px 13px;
  min-height: 38px;
  font-size: 12px;
}
.community-shop-game .source-note,
.community-shop-game #community-status {
  color: #9faa93;
  font-size: 11px;
  line-height: 1.7;
}
.community-shop-game .community-build-layout {
  display: block;
}
.community-shop-game #community-build-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 0;
}
.community-shop-game .community-build-row {
  background: #303b2c;
  border: 1px solid #536749;
  border-radius: 7px;
  color: #ececda;
  padding: 16px;
  margin: 0;
  min-height: 128px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.community-shop-game .community-build-row strong {
  font-size: 14px;
  line-height: 1.6;
  color: #eee9d8;
}
.community-shop-game .community-build-row small,
.community-shop-game .community-build-row span {
  font-size: 10px;
  color: #a8b79a;
  line-height: 1.6;
}
.community-shop-game .community-build-row span {
  margin-top: auto;
}
.community-shop-game .community-build-row:hover,
.community-shop-game .community-build-row.selected {
  background: #435538;
  border-color: #b5c78f;
}
.community-shop-game #community-more {
  background: #37462e;
  color: #dce6c9;
  border: 1px solid #647c4d;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 16px auto;
  display: block;
}
.build-plan-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #9eae8b;
  background: #e1e7d3;
  color: #35462a;
  border-radius: 6px;
  font-size: 23px;
  cursor: pointer;
}
.build-info-item img {
  width: 100px;
  height: 100px;
}
@media (max-width: 1000px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .catalog-tier {
    grid-template-columns: 65px minmax(0, 1fr);
  }
  .catalog-tier-price strong {
    font-size: 14px;
  }
  .catalog-tier-items {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }
  .catalog-item img {
    width: 54px;
    height: 54px;
  }
  .community-shop-game #community-build-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  #modal:has(.catalog-game),
  #modal:has(.community-shop-game) {
    padding: 17px;
    width: 97vw;
  }
  .game-shop-heading h2 {
    font-size: 24px;
  }
  .game-shop-heading > small {
    margin-left: 0;
  }
  .game-shop-tabs button {
    padding: 11px 5px;
    font-size: 12px;
  }
  .catalog-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .catalog-controls label:first-child {
    width: 100%;
  }
  .catalog-controls .catalog-search {
    min-width: 120px;
  }
  .catalog-controls label {
    min-width: 100px;
  }
  .catalog-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
  }
  .catalog-inspector {
    position: static;
    width: 100%;
    padding: 14px;
  }
  .catalog-detail-top {
    flex-direction: row;
    align-items: center;
  }
  .catalog-detail-top > img {
    width: 90px;
    height: 90px;
  }
  .catalog-detail-top h3 {
    font-size: 19px;
  }
  .catalog-detail-top b {
    font-size: 17px;
    margin-top: 6px;
  }
  .catalog-stats {
    margin: 12px 0;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .catalog-stats p {
    font-size: 11px !important;
  }
  .catalog-effect p {
    font-size: 11px !important;
  }
  .catalog-footnote {
    display: none;
  }
  .catalog-shelves {
    width: 100%;
  }
  .catalog-tier {
    grid-template-columns: 1fr;
    padding: 12px 0;
    gap: 10px;
  }
  .catalog-tier-price {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 12px;
  }
  .catalog-tier-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .catalog-item {
    padding: 8px 3px;
  }
  .catalog-item img {
    width: 50px;
    height: 50px;
  }
  .catalog-item strong {
    font-size: 10px;
  }
  .catalog-footer {
    flex-direction: column;
    gap: 5px;
  }
  .community-shop-game #community-build-list {
    grid-template-columns: 1fr;
  }
  .community-shop-game .community-build-row {
    min-height: 110px;
  }
  .performance-mvp {
    margin-left: 0;
    margin-top: 5px;
  }
}
.community-shop-game .community-build-layout {
  height: auto;
  min-height: 0;
  border-color: #556348;
}
.community-shop-game .community-build-layout > aside {
  height: auto;
  max-height: none;
  overflow: visible;
  background: transparent;
  padding: 0;
  border: 0;
  position: static;
}
.community-shop-game .community-build-layout > #community-build-detail[hidden] {
  display: none;
}
/* Match the in-game Curiosity Catalog: paper folio, side tabs, four tier panels. */
#modal:has(.catalog-game),
#modal:has(.community-shop-game) {
  background:
    linear-gradient(100deg, #07100deb, #111711d9),
    url("assets/hero.jpg") center/cover;
  border-color: #626353;
  border-radius: 5px;
  padding: 26px 30px;
  box-shadow: 0 30px 100px #000b;
}
.catalog-game {
  --shop-paper: #d6c6b7;
  --shop-ink: #3e3029;
  --shop-accent: #d6a459;
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  column-gap: 45px;
}
.catalog-game[data-shop-type="spirit"] {
  --shop-paper: #b8a9b9;
  --shop-ink: #403247;
  --shop-accent: #b18dc4;
}
.catalog-game[data-shop-type="vitality"] {
  --shop-paper: #bec7a5;
  --shop-ink: #34402c;
  --shop-accent: #a5bb76;
}
.catalog-game > .game-shop-heading {
  grid-column: 2;
  background: var(--shop-paper);
  color: var(--shop-ink);
  margin: 0;
  padding: 24px 24px 10px;
  min-height: 100px;
  border-radius: 5px 9px 0 0;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 1px 0 #fff3;
}
.catalog-game > .game-shop-heading > span {
  color: var(--shop-ink);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  transform: rotate(-3deg);
}
.catalog-game > .game-shop-heading h2 {
  font-size: 16px;
  color: var(--shop-ink);
  margin: 6px 0 0;
}
.catalog-game > .game-shop-heading > small {
  font-size: 9px;
  color: var(--shop-ink);
  margin: 6px 0 0 12px;
}
.catalog-game > .game-shop-tabs {
  position: absolute;
  left: 231px;
  top: 76px;
  width: 44px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
}
.catalog-game > .game-shop-tabs button {
  height: 66px;
  padding: 5px 2px;
  border: 1px solid #8b806d;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #bdb49c;
  color: #34352a !important;
  font-size: 10px;
  box-shadow: inset 0 1px #fff7;
}
.catalog-game > .game-shop-tabs button:before {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.catalog-game button[data-game-tab="builds"]:before {
  content: "▤";
}
.catalog-game button[data-game-tab="weapon"]:before {
  content: "⌖";
}
.catalog-game button[data-game-tab="vitality"]:before {
  content: "✚";
}
.catalog-game button[data-game-tab="spirit"]:before {
  content: "♧";
}
.catalog-game > .game-shop-tabs button[data-game-tab="weapon"] {
  background: #d6bc6e;
}
.catalog-game > .game-shop-tabs button[data-game-tab="vitality"] {
  background: #bfd47e;
}
.catalog-game > .game-shop-tabs button[data-game-tab="spirit"] {
  background: #ba96ce;
}
.catalog-game > .game-shop-tabs button.selected {
  width: 50px;
  margin-left: -6px;
  box-shadow: inset 3px 0 #f0e7c2;
}
.catalog-game > .catalog-controls {
  grid-column: 2;
  margin: 0;
  gap: 10px;
  padding: 10px 20px 18px;
  background: var(--shop-paper);
  border-bottom: 1px solid #51463366;
}
.catalog-game .catalog-controls label {
  color: var(--shop-ink);
  font-size: 9px;
  min-width: 100px;
}
.catalog-game .catalog-controls label:first-child {
  width: 230px;
}
.catalog-game .catalog-controls input,
.catalog-game .catalog-controls select,
.catalog-game .hero-search-trigger {
  background: #f1eadc99;
  color: var(--shop-ink);
  border-color: #61564366;
  min-height: 33px;
  height: 33px;
  font-size: 11px;
  border-radius: 3px;
}
.catalog-game .hero-search-popup {
  background: #e9e4d5;
  border-color: #80795f;
}
.catalog-game .hero-search-options button {
  color: #34352a;
}
.catalog-game .hero-search-options button:hover {
  background: #c8d3b1;
}
.catalog-game .hero-search-trigger img {
  width: 26px;
  height: 30px;
}
.catalog-layout {
  display: contents;
}
.catalog-shelves {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  background: var(--shop-paper);
  background-image: repeating-linear-gradient(
    35deg,
    #ffffff04 0 2px,
    #30202204 2px 4px
  );
  padding: 16px 16px 22px;
  box-shadow:
    inset 1px 0 #fff3,
    inset -5px -3px #342d2540;
}
.catalog-tier {
  display: block;
  position: relative;
  border: 3px double #594d4980;
  padding: 23px 10px 12px;
  margin: 0;
  min-height: 185px;
  background: #ffffff0e;
  border-radius: 0;
}
.catalog-tier-price {
  position: absolute;
  top: -15px;
  left: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: var(--shop-paper);
}
.catalog-tier-price strong {
  background: #23322c;
  color: #acd5b1;
  font-family: Georgia, serif;
  font-size: 20px;
  padding: 2px 8px;
  border: 1px solid #aca68b;
  transform: rotate(-4deg);
  box-shadow: 1px 2px #29262b66;
}
.catalog-tier-price small {
  font-size: 9px;
  color: var(--shop-ink);
  font-weight: 700;
  letter-spacing: 0.6px;
}
.catalog-tier-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
.catalog-item,
.catalog-game[data-shop-type="vitality"] .catalog-item,
.catalog-game[data-shop-type="spirit"] .catalog-item {
  background: #e9ddc9;
  color: #3b3229;
  border: 1px solid #8c785e77;
  border-radius: 2px;
  padding: 5px 3px 4px;
  gap: 3px;
  min-height: 90px;
  box-shadow: 0 2px 3px #25202033;
}
.catalog-game[data-shop-type="vitality"] .catalog-item {
  background: #d4dfbd;
  color: #303b27;
}
.catalog-game[data-shop-type="spirit"] .catalog-item {
  background: #d2c2df;
  color: #3d3049;
}
.catalog-item img {
  width: 100%;
  max-width: 60px;
  height: 54px;
  mix-blend-mode: multiply;
  object-fit: contain;
}
.catalog-item strong {
  font-size: 9px;
  line-height: 1.3;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-tier-premium {
  background: #281f2a99;
  border-color: #4b374d;
}
.catalog-tier-premium .catalog-item {
  background: #99817f;
  color: #fff2dc;
}
.catalog-game[data-shop-type="spirit"] .catalog-tier-premium .catalog-item {
  background: #685679;
  color: #f1e5fd;
}
.catalog-game[data-shop-type="vitality"] .catalog-tier-premium .catalog-item {
  background: #5c6e46;
  color: #edf4d6;
}
.catalog-tier-premium .catalog-tier-price small {
  color: #f0debd;
}
.catalog-inspector {
  grid-column: 1;
  grid-row: 1/5;
  align-self: center;
  position: sticky;
  top: 10px;
  padding: 20px 16px;
  background: #373a31b8;
  border: 1px solid #8d8e6e66;
  border-top: 0;
  border-radius: 2px;
  max-height: 75dvh;
  overflow: auto;
}
.catalog-detail-top > img {
  width: 130px;
  height: 130px;
  border: 1px solid #b8b69b66;
  border-radius: 3px;
}
.catalog-detail-top h3 {
  font-size: 21px;
}
.catalog-detail-top b {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #b8d0a5;
}
.catalog-stats {
  background: #202b2077;
}
.catalog-effect {
  border-color: #8a8e6e55;
}
.catalog-game > .catalog-footer {
  grid-column: 2;
  background: var(--shop-paper);
  color: var(--shop-ink);
  border: 0;
  margin: 0;
  padding: 8px 18px 12px;
  border-radius: 0 0 4px 4px;
}
.community-shop-game {
  background: #c9c3ae;
  border-radius: 5px;
  padding: 22px;
  color: #393c2c;
  box-shadow:
    inset 0 0 0 4px #b0aa93,
    inset 0 0 0 7px #79796266;
}
.community-shop-game .game-shop-heading h2,
.community-shop-game .game-shop-heading > span,
.community-shop-game .game-shop-heading > small {
  color: #3b3d2e;
}
.community-shop-game .game-shop-heading > span {
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 1px;
}
.community-shop-game .game-shop-tabs {
  border-color: #76785b;
}
.community-shop-game .game-shop-tabs button {
  background: #a3a68c;
  color: #30392b;
}
.community-shop-game .game-shop-tabs button.selected {
  background: #e5debd;
  color: #323d2a;
}
.community-shop-game .community-build-controls label {
  color: #4e583f;
}
.community-shop-game .community-build-controls input,
.community-shop-game .community-build-controls select,
.community-shop-game .hero-search-trigger {
  background: #e6e3cf;
  border-color: #8d9878;
  color: #37442e;
}
.community-shop-game .community-build-controls button {
  background: #e4dfc3;
  border-color: #9ca17d;
  color: #36432c;
}
.community-shop-game .source-note,
.community-shop-game #community-status {
  color: #677051;
}
.community-shop-game .community-build-layout {
  border-color: #8e9674;
}
.community-shop-game .community-build-row {
  border: 1px solid #9b9f7d;
  background: #e1dcc2;
  color: #343d2e;
  box-shadow: 0 2px 3px #403c2420;
}
.community-shop-game .community-build-row strong {
  color: #32392a;
}
.community-shop-game .community-build-row small,
.community-shop-game .community-build-row span {
  color: #68724f;
}
.community-shop-game .community-build-row:hover,
.community-shop-game .community-build-row.selected {
  background: #ccd7ab;
  border-color: #6f8054;
}
@media (max-width: 1100px) {
  .catalog-game {
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 40px;
  }
  .catalog-game > .game-shop-tabs {
    left: 190px;
    width: 40px;
  }
  .catalog-tier-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .catalog-game .catalog-controls label:first-child {
    width: 200px;
  }
  .catalog-item img {
    height: 49px;
  }
  .catalog-item {
    min-height: 82px;
  }
}
@media (max-width: 750px) {
  #modal:has(.catalog-game) {
    padding: 17px 12px;
  }
  .catalog-game {
    display: block;
    padding-left: 36px;
  }
  .catalog-game > .game-shop-tabs {
    left: 0;
    top: 100px;
    width: 36px;
  }
  .catalog-game > .game-shop-heading {
    padding: 18px 10px 10px;
    min-height: 90px;
  }
  .catalog-game > .game-shop-heading > span {
    font-size: 19px;
  }
  .catalog-game > .catalog-controls {
    flex-wrap: wrap;
    padding: 10px;
  }
  .catalog-game .catalog-controls label:first-child {
    width: 100%;
  }
  .catalog-game .catalog-controls label {
    min-width: 80px;
  }
  .catalog-shelves {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 10px 14px;
  }
  .catalog-tier-items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .catalog-item,
  .catalog-game[data-shop-type="vitality"] .catalog-item,
  .catalog-game[data-shop-type="spirit"] .catalog-item {
    min-height: 80px;
    padding: 4px 2px;
  }
  .catalog-item img {
    height: 46px;
  }
  .catalog-item strong {
    font-size: 8px;
  }
  .catalog-inspector {
    position: static;
    margin: 12px -36px 12px 0;
    max-height: none;
    display: block;
  }
  .catalog-detail-top {
    flex-direction: row;
    gap: 15px;
  }
  .catalog-detail-top > img {
    width: 110px;
    height: 110px;
  }
  .catalog-detail-top h3 {
    font-size: 22px;
  }
  .catalog-inspector .catalog-stats {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-game > .catalog-footer {
    margin: 0;
    padding: 10px;
  }
  .community-shop-game {
    padding: 14px;
  }
}
/* Keep the folio controls within their columns and fit all four tiers on desktop. */
#modal:has(.catalog-game) > .close {
  z-index: 30;
  top: 9px;
  right: 9px;
}
.catalog-game .catalog-controls {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(120px, 1fr) 112px;
  align-items: end;
  gap: 12px;
}
.catalog-game .catalog-controls label,
.catalog-game .catalog-controls label:first-child {
  width: auto;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.catalog-game .hero-search-picker {
  width: 100%;
  min-width: 0;
}
.catalog-game .catalog-controls input,
.catalog-game .catalog-controls select {
  width: 100%;
  min-width: 0;
}
.catalog-game .hero-search-trigger {
  width: 100%;
  min-width: 0;
  gap: 7px;
}
.catalog-game .hero-search-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-game > .game-shop-heading {
  min-height: 78px;
  padding-top: 16px;
}
.catalog-game > .game-shop-heading > span {
  font-size: 20px;
}
.catalog-game > .catalog-controls {
  padding-bottom: 13px;
}
.catalog-game .catalog-tier-items {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.catalog-game .catalog-item {
  min-height: 76px;
}
.catalog-game .catalog-item img {
  height: 46px;
}
.catalog-game .catalog-item strong {
  font-size: 9px;
  min-height: 23px;
}
.catalog-game .catalog-tier {
  min-height: 160px;
}
.catalog-game .catalog-inspector {
  align-self: start;
  margin-top: 130px;
}
.community-shop-game .hero-search-picker {
  width: 100%;
}
.community-shop-game .hero-search-popup {
  background: #ece7d2;
}
.community-shop-game .hero-search-options button {
  color: #37442e;
}
.community-shop-game .community-build-controls label {
  min-width: 0;
}
@media (max-width: 1100px) {
  .catalog-game .catalog-tier-items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .catalog-game .catalog-controls {
    grid-template-columns: minmax(140px, 190px) minmax(100px, 1fr) 100px;
    gap: 8px;
  }
}
@media (max-width: 750px) {
  .catalog-game .catalog-controls {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .catalog-game .catalog-controls label:first-child {
    grid-column: 1/-1;
  }
  .catalog-game .catalog-tier-items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .catalog-game .catalog-inspector {
    margin-top: 12px;
  }
  .catalog-game .catalog-item img {
    height: 44px;
  }
}
