/* The trading hub extends the existing Growtopia panels; theme-v2.css owns their palette. */
.home-view {
  width: 100%;
  margin: 0;
  padding: 0;
}
#item-search {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 42px 16px;
  isolation: isolate;
  overflow: visible;
  background: #74bfa8 url("/_releases/1e489f319220dad4594ca6b1af69975c4c3d92cd/static/pcshop1-emerald.jpg?v=1") center 43% / cover no-repeat;
  border-bottom: 4px solid #0b321b;
  box-shadow:
    inset 0 -2px #b6d476,
    0 4px 0 #0003;
}
#item-search::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #062b2059, #062b2008 50%, #062b2059),
    linear-gradient(0deg, #092a225c, transparent 35%);
}
.landing-layout {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.weather-glints {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.weather-glints i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #eaffb6;
  box-shadow: 0 0 9px 2px #d4f79f70;
  opacity: 0.45;
}
.weather-glints i:nth-child(1) {
  left: 7%;
  top: 72%;
}
.weather-glints i:nth-child(2) {
  left: 22%;
  top: 21%;
  animation-delay: -3s;
}
.weather-glints i:nth-child(3) {
  left: 42%;
  top: 86%;
  animation-delay: -7s;
}
.weather-glints i:nth-child(4) {
  left: 66%;
  top: 14%;
  animation-delay: -5s;
}
.weather-glints i:nth-child(5) {
  left: 83%;
  top: 76%;
  animation-delay: -1s;
}
.weather-glints i:nth-child(6) {
  left: 96%;
  top: 38%;
  animation-delay: -8s;
}
@keyframes emerald-glint {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.15;
  }
  50% {
    transform: translate3d(14px, -24px, 0);
    opacity: 0.8;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .weather-glints i {
    animation-name: emerald-glint;
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  .landing-links :is(a, button) {
    transition:
      transform 0.12s,
      border-color 0.12s;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .landing-inner {
    transition: transform 0.18s ease-out;
  }
  .landing-inner:not(:focus-within) {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
}
.landing-inner {
  position: relative;
  z-index: 2;
  padding: 24px;
  border: 3px solid #092b16;
  border-radius: 7px;
  background: linear-gradient(130deg, #287b43, #114627);
  box-shadow:
    inset 0 2px #c4dc7c,
    inset 0 -2px #092b16,
    0 5px 0 #071e18a6,
    0 12px 32px #00190a66;
}
#search-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #f1ffd9;
  font: 900 27px/1.2 var(--font);
  text-shadow: 0 2px #092d16;
}
#search-title svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #c6f28e;
  stroke-width: 2;
  stroke-linejoin: round;
}
#item-search .search-wrap {
  width: 100%;
  margin: 0;
}
#item-search .search-bar {
  height: 58px;
  border: 2px solid #082e19;
  border-radius: 5px;
  background: #f8fff1;
  box-shadow: 0 2px 0 #ffffff24;
}
#item-search .search-bar:focus-within {
  border-color: #baff91;
  box-shadow: 0 0 0 3px #baff9140;
}
#item-search .search-icon {
  width: 21px;
  height: 21px;
  margin: 0 12px 0 15px;
  stroke: #436b45;
}
#item-search input {
  font-size: 16px;
  color: #173a25;
  background: transparent;
}
#item-search input::placeholder {
  color: #5c765d;
}
#item-search .kbd-hint {
  color: #587053;
  border-color: #bbceb4;
}
#item-search .search-go {
  height: 100%;
  padding: 0 18px;
  border: 0;
  border-left: 2px solid #153e1f;
  border-radius: 0;
  background: linear-gradient(#7bd143, #42a22b);
  color: #08290e;
  font: 900 13px var(--font);
  box-shadow: inset 0 2px #cfff8e;
  text-shadow: 0 1px #c2ef8c;
}
#item-search .search-go:hover:not(:disabled) {
  background: linear-gradient(#9aeb5c, #55b935);
}
#item-search .search-go:disabled {
  opacity: 1;
  background: linear-gradient(#97b883, #769561);
  color: #294524;
  box-shadow: inset 0 2px #d0e2bc;
  text-shadow: none;
}
#item-search .autocomplete {
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 20;
  max-height: min(420px, 48dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0e3920;
  border: 2px solid #061f0c;
  border-radius: 5px;
  padding: 5px;
  box-shadow:
    0 4px 0 #0005,
    0 15px 30px #00160966;
}
#item-search .autocomplete-item {
  min-height: 62px;
  border-bottom: 1px solid #123c23;
  background: linear-gradient(120deg, #35804c, #28673d);
  color: #fff;
  padding: 10px;
}
#item-search .autocomplete-item:hover,
#item-search .autocomplete-item.active {
  background: #41965b;
}
#item-search .ac-meta,
#item-search .ac-price small {
  color: #d1e8c8;
}
#item-search .autocomplete-empty {
  color: #d1e8c8;
}
.landing-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.landing-links :is(a, button) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 68px;
  padding: 10px 4px;
  border: 1px solid #082c15;
  border-radius: 5px;
  background: linear-gradient(#194f2b, #103f21);
  color: #efffe1;
  box-shadow:
    inset 0 1px #8cb16e70,
    0 2px 0 #092412;
  font: 800 11px var(--font);
}
.landing-links :is(a, button):hover {
  background: linear-gradient(#2d713d, #1f5b2e);
  color: #fff;
  border-color: #9fce7b;
}
.landing-links :is(a, button):active {
  transform: translateY(1px);
  box-shadow: inset 0 1px #8cb16e70;
}
.landing-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #baff91;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.home-view :is(a, button):focus-visible {
  outline: 2px solid #baff91;
  outline-offset: 3px;
}

/* Daily Quest remains a distinct blue game panel and is visible before scrolling. */
#daily-quest {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 3px solid #102d47;
  border-radius: 7px;
  background: #2c6090;
  box-shadow:
    inset 0 2px #b9def6,
    0 5px 0 #071e18a6,
    0 12px 32px #00190a55;
  scroll-margin-top: 74px;
}
#daily-quest .daily-quest-header {
  min-height: 62px;
  padding: 15px 16px;
  border: 0;
  border-bottom: 2px solid #133751;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#205c82, #123e5b);
  box-shadow: inset 0 2px #b9def68c;
  flex-wrap: wrap;
  gap: 6px 12px;
}
#daily-quest .daily-quest-header h2 {
  font-size: 19px;
}
#daily-quest .daily-quest-reset {
  font-size: 10px;
  color: #d3e7f2;
}
#daily-quest .daily-quest-reset strong {
  color: #d2ff9b;
  font-size: 12px;
}
#daily-quest .daily-quest-card {
  margin: 0;
  flex: 1;
  display: flex;
}
#daily-quest .daily-quest-panel {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
  background: linear-gradient(135deg, #387bac, #285984);
}
#daily-quest .daily-quest-items {
  height: 100%;
  grid-template-columns: 1fr;
  gap: 9px;
}
#daily-quest .daily-quest-item {
  min-height: 78px;
  padding: 10px 12px;
  gap: 10px;
  background: linear-gradient(#285d86, #204e76);
  border-color: #123c5c;
  box-shadow:
    inset 0 1px #77b7dc4d,
    0 2px #11395680;
}
#daily-quest .daily-quest-item:hover {
  background: linear-gradient(#3477a4, #285f8b);
  border-color: #91c8e6;
}
#daily-quest .tick {
  width: 44px;
  height: 44px;
  background: #123c5b;
  border-color: #88b6d6;
}
#daily-quest .daily-quest-item-copy strong {
  font-size: 15px;
}
#daily-quest .daily-quest-quantity strong {
  font-size: 25px;
  line-height: 1;
}
#daily-quest .daily-quest-quantity small {
  font-size: 10px;
  margin-top: 4px;
}
#daily-quest .daily-quest-message {
  flex: 1;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#daily-quest .skeleton-card {
  width: 100%;
  min-height: 180px;
  background: #285984;
}

.market-content {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  scroll-margin-top: 70px;
}
.home-view .market-content {
  width: min(960px, calc(100% - 32px));
}
.home-view .market-overview {
  margin-top: 0;
}
.home-view .market-overview div {
  padding: 14px 18px;
}
.home-view .market-overview strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

/* Category entry points share the raised emerald panels used across the site. */
.category-section .section-bar {
  gap: 12px;
}
.category-section .section-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px;
  border: 2px solid #103c24;
  border-radius: 8px;
  background: linear-gradient(145deg, #39814a, #205c35);
  color: #f0ffd9;
  text-decoration: none;
  box-shadow: inset 0 2px #9ce47680, inset 0 -3px #154528, 0 4px #092d1b;
}
.category-card:hover {
  background: linear-gradient(145deg, #469b54, #29723e);
  border-color: #c0f58a;
}
.category-card:focus-visible {
  outline: 3px solid #d4ff9c;
  outline-offset: 4px;
}
.category-card strong {
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.category-icon.tick {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 2px solid #88bd65;
  background: #153f27;
  box-shadow: inset 0 2px 5px #092d1b;
}
.category-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}
.category-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #c1f18c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-arrow {
  display: none;
}
#market-view .market-filter-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .category-card {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    padding: 16px 8px;
    text-align: center;
  }
  .category-card strong { font-size: 16px; }
  .category-arrow { display: none; }
  #market-view .market-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #market-view .market-filter-row label:last-child { grid-column: auto; }
  /* Keep the ranking's listing count visible alongside the item on phones. */
  .category-market .q-item { grid-row: 1; }
  .category-market .q-shouts {
    display: block;
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    padding-left: 52px;
  }
  .category-market .q-shouts::after { content: " listings"; }
}
.home-view .market-overview span {
  font-size: 9px;
}
.home-view .market-group,
.home-view .recent-section {
  margin-top: 24px;
}
.home-view .section-bar {
  min-height: 48px;
  padding: 11px 14px;
}
.home-view .quote-head {
  margin-bottom: 6px;
  height: 34px;
  font-size: 10px;
  border-radius: 4px;
}
.home-view .quote-row {
  min-height: 70px;
}
.home-view .q-price {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.home-view .q-price small {
  margin-left: 4px;
}
.home-view .activity-time {
  font-size: 11px;
}
.home-view .card-grid {
  gap: 8px;
}
.home-view .item-card {
  padding: 12px;
}
.home-view .item-price {
  margin-top: 10px;
}

@media (max-width: 800px) {
  #item-search {
    min-height: 0;
    padding: 28px 16px;
  }
  .landing-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-width: 600px;
  }
  #daily-quest .daily-quest-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #daily-quest .daily-quest-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }
  #daily-quest .daily-quest-arrow {
    display: none;
  }
  #daily-quest .daily-quest-item-copy strong {
    white-space: normal;
  }
}
@media (max-width: 520px) {
  #item-search {
    padding: 20px 14px;
    background-position: 48% 40%;
    background-size: auto 720px;
  }
  .landing-inner {
    padding: 18px 14px;
  }
  #search-title {
    font-size: 23px;
    margin-bottom: 18px;
  }
  #item-search .search-bar {
    height: 52px;
  }
  #item-search .search-icon {
    width: 18px;
    height: 18px;
    margin: 0 9px;
  }
  #item-search .search-go {
    padding: 0 12px;
    font-size: 12px;
  }
  #item-search .kbd-hint {
    display: none;
  }
  #item-search .autocomplete {
    max-height: min(340px, 43dvh);
  }
  #item-search .autocomplete-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
  }
  #item-search .ac-name {
    font-size: 15px;
    white-space: normal;
    line-height: 1.35;
  }
  #item-search .ac-meta {
    font-size: 12px;
  }
  .landing-links {
    gap: 8px;
    margin-top: 16px;
  }
  .landing-links :is(a, button) {
    font-size: 12px;
    min-height: 66px;
  }
  #daily-quest .daily-quest-header {
    min-height: 48px;
    padding: 12px;
  }
  #daily-quest .daily-quest-items {
    grid-template-columns: 1fr;
  }
  #daily-quest .daily-quest-item {
    min-height: 62px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
  #daily-quest .daily-quest-arrow {
    display: block;
  }
  #daily-quest .daily-quest-quantity strong {
    font-size: 23px;
  }
  .home-view .market-content {
    width: calc(100% - 28px);
    padding-bottom: 32px;
  }
  .home-view .market-overview div {
    padding: 12px 6px;
  }
  .home-view .market-overview strong {
    font-size: 16px;
  }
  .home-view .market-overview span {
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
  }
  .home-view .q-name {
    font-size: 15px;
  }
  .home-view .q-price {
    font-size: 15px;
  }
  .home-view .activity-time {
    font-size: 12px;
  }
  .home-view .quote-head {
    font-size: 11px;
  }
  .home-view .section-bar h2 {
    font-size: 18px;
  }
  #daily-quest .daily-quest-reset {
    font-size: 12px;
  }
  #daily-quest .daily-quest-item-copy strong {
    font-size: 16px;
  }
  #daily-quest .daily-quest-quantity small {
    font-size: 12px;
  }
}
@media (max-width: 700px), (max-height: 520px) {
  #item-search:has(#hero-input:focus) .search-wrap {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: 960px;
    margin-inline: auto;
    z-index: 35;
  }
  #item-search:has(#hero-input:focus) .autocomplete {
    max-height: max(100px, calc(var(--visible-height, 100dvh) - 154px));
  }
}
