.ct-market-heading, .ct-market-index__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.1rem;
}
.ct-market-heading h2, .ct-market-index__heading h2,
.ct-market-game h3, .ct-market-game h4 { margin: 0 }
.ct-market-picker { min-width: 0; margin-block: .65rem 1.25rem }
.ct-market-picker__controls { display: flex; gap: .45rem; justify-content: flex-end }
.ct-market-picker__controls[hidden] { display: none }
.ct-market-picker__controls button {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #9dba9b;
  border-radius: .75rem;
  background: #18332d;
  color: #ecfae7;
  font: 750 1.55rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.ct-market-picker__controls button:disabled { opacity: .4; cursor: default }
.ct-market-picker__controls button:focus-visible { outline: 3px solid #f9d887; outline-offset: 3px }
.ct-market-picker__track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(9rem, 39vw, 12.5rem);
  gap: .65rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .4rem;
  scrollbar-color: #6a937d #132620;
  margin: .2rem 0 0;
  padding: .4rem .4rem .65rem;
  list-style: none;
}
.ct-market-picker__track li { display: grid; min-width: 0; scroll-snap-align: start }
.ct-tree .ct-market-tile {
  display: grid;
  grid-template-rows: 4.4rem 1fr auto;
  gap: .35rem;
  min-height: 10rem;
  padding: .6rem .7rem;
  border: 1px solid #476b5f;
  border-radius: .85rem;
  background: #132b29;
  color: #f2faf3;
  line-height: 1.2;
  text-decoration: none;
}
.ct-tree .ct-market-tile strong {
  align-self: end;
  color: #f2faf3;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.ct-tree .ct-market-tile--main strong { color: #ffebc1 }
.ct-market-tile > span:last-child { color: #c4dfcd; font-size: .84rem }
.ct-market-tile img {
  width: 100%;
  height: 100%;
  border-radius: .5rem;
  background: #0f2222;
  object-fit: contain;
}
.ct-tree .ct-market-tile:hover { border-color: #bcdda9; background: #203c33 }
.ct-tree .ct-market-tile[aria-current] {
  border-color: #d2ebb4;
  background: #28463b;
  box-shadow: inset 0 0 0 1px #d2ebb4;
}
.ct-tree .ct-market-tile--main { border-color: #ae8950; background: #392f24 }
.ct-market-tile--main > span:last-child { color: #f3dfad }
.ct-market-tile__building {
  position: relative;
  display: grid;
  place-items: end center;
  justify-self: center;
  align-self: end;
  width: 3.4rem;
  height: 2.25rem;
  margin-block-end: .25rem;
  border: 2px solid #f7d593;
  border-radius: .3rem;
  background: #6a4730;
}
.ct-market-tile__building::before {
  position: absolute;
  inset: -.9rem -.4rem auto;
  height: .95rem;
  border-radius: .35rem .35rem .15rem .15rem;
  background: repeating-linear-gradient(90deg, #c9814a 0 .52rem, #f2c67e .52rem 1.04rem);
  content: "";
}
.ct-market-tile__building span {
  width: 1rem;
  height: 1.35rem;
  border-radius: .45rem .45rem 0 0;
  background: #f9db96;
}
.ct-market-game__lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: .85rem;
  margin-block-start: .65rem;
}
.ct-market-game__lane { min-width: 0; padding: 1rem; border: 1px solid #426456; border-radius: .9rem; background: #112521 }
.ct-market-game__lane > p { margin: .55rem 0 }
.ct-market-game__lane .ct-guild-shop__item h5 { margin: 0; font-size: 1.12rem }
.ct-market-index {
  margin-block: .8rem 1.5rem;
  padding: .8rem 1rem;
  border: 1px solid #465364;
  border-radius: .85rem;
  background: #17222a;
  color: #f3fbf5;
}
.ct-market-index__heading a { color: #d4edb8 }
.ct-market-index__collections {
  display: flex;
  align-items: center;
  gap: .45rem;
  overflow-x: auto;
  margin-block-start: .45rem;
  padding: .3rem .2rem .45rem;
}
.ct-market-index__collections a {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: .45rem .7rem;
  border: 1px solid #829b92;
  border-radius: .7rem;
  color: #effaf0;
  text-decoration: none;
}
.ct-market-index__collections a:hover { text-decoration: underline }
.ct-market-index__collections a[aria-current] { background: #d2ebb4; border-color: #d2ebb4; color: #17332a; font-weight: 700 }
.ct-market-index a:focus-visible { outline: 2px solid #ffd788; outline-offset: 2px }

.ct-market-index__empty { display: grid; justify-items: center; gap: .45rem; padding: 1.2rem .8rem; text-align: center }
.ct-market-index__empty p { margin: 0 }
.ct-market-index__empty a { text-underline-offset: .18em }
