.auto-page .activity-item img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  aspect-ratio: 1;
  flex: 0 0 56px;
  object-fit: cover;
}
.auto-page .market-live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border: 0;
  background: #22c55e;
}
.auto-page .market-live-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid #22c55e;
  border-radius: 50%;
  animation: home-live-pulse 1.8s ease-out infinite;
}
@keyframes home-live-pulse {
  from {
    transform: scale(0.5);
    opacity: 0.85;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.auto-page .category-visual {
  isolation: isolate;
  overflow: hidden;
}
.auto-page .category-visual:hover {
  transform: none;
}
.auto-page .category-visual::before {
  display: block;
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 196px;
  height: 196px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 50%;
  background: transparent;
  outline: 1px dashed color-mix(in srgb, var(--text) 8%, transparent);
  outline-offset: -14px;
  box-shadow: none;
  opacity: 1;
  z-index: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  pointer-events: none;
}
.auto-page .category-visual:is(:hover, :focus-visible)::before {
  transform: translate(-12px, 12px) scale(1.08);
  background-color: transparent;
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
  box-shadow: none;
}
.auto-page .category-visual > .category-visual__category-icon {
  width: auto;
  height: auto;
  top: 28px;
  right: 28px;
  bottom: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  opacity: 0.24;
  font-size: 46px;
  transform: none;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.auto-page .category-visual:is(:hover, :focus-visible) > .category-visual__category-icon {
  background: transparent;
  border: 0;
  color: var(--text);
  transform: translate(-4px, 4px) rotate(-6deg);
  opacity: 0.55;
}
.auto-page .category-visual__content {
  position: relative;
  z-index: 1;
}
.auto-page .home-smart-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.home-smart-search__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 20px;
  min-height: 62px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.home-smart-search__field > i {
  color: var(--text3);
  flex: none;
}
.home-smart-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.auto-page .home-smart-search input[type='search'] {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  box-shadow: none;
  transition: none;
}
.home-smart-search input::placeholder {
  color: var(--text3);
  opacity: 0.8;
}
.auto-page .home-smart-search .quick-search__submit {
  margin: 0;
  min-height: 62px;
}
.home-smart-search__help {
  grid-column: 1/-1;
  margin: 0;
  color: var(--text3);
  font-size: 12px;
  line-height: 1.6;
}
.auto-page .sell-story {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: clamp(40px, 6vw, 80px) 24px;
  text-align: center;
  background: var(--card);
}
.auto-page .sell-story::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../images/createlisting.png') center 58% / cover no-repeat;
  opacity: 0.6;
}
.auto-page .sell-story::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      var(--card),
      transparent 35%,
      transparent 80%,
      color-mix(in srgb, var(--card) 55%, transparent)
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--card) 25%, transparent),
      color-mix(in srgb, var(--card) 88%, transparent) 30%,
      color-mix(in srgb, var(--card) 88%, transparent) 65%,
      color-mix(in srgb, var(--card) 25%, transparent)
    );
}
.auto-page .sell-story__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}
.auto-page .sell-story__copy h2,
.auto-page .sell-story__copy > p {
  max-width: 100%;
  margin-inline: auto;
}
.auto-page .sell-story__actions {
  justify-content: center;
}
@media (max-width: 640px) {
  .auto-page .home-smart-search {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-smart-search__field {
    padding-inline: 14px;
  }
  .auto-page .home-smart-search .quick-search__submit {
    width: 100%;
    min-height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auto-page .market-live-dot::after {
    animation: none;
  }
  .auto-page .category-visual::before,
  .auto-page .category-visual > .category-visual__category-icon {
    transition: none;
  }
}

.auto-page .market-hero__rotating {
  display: inline-flex;
  align-items: center;
  height: calc(clamp(35px, 6.8vw, 74px) * 1.1);
  font-size: clamp(35px, 6.8vw, 74px);
  line-height: 1.1;
  white-space: nowrap;
  vertical-align: top;
}
.auto-page .brand-badge {
  border-radius: 24px;
}
@media (min-width: 769px) {
  .auto-page .activity-item:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 768px) {
  .auto-page .market-hero__rotating {
    display: flex;
    width: max-content;
    max-width: 90vw;
    margin: 12px auto 0;
  }
  .auto-page .activity-item:nth-child(n) {
    display: flex;
  }
  .auto-page .market-activity__feed {
    scroll-snap-type: x mandatory;
  }
  .auto-page .activity-item {
    scroll-snap-align: start;
  }
  .auto-page .category-visual {
    border-radius: 0;
  }
  .auto-page
    :is(
      .brand-section__heading,
      .section-heading,
      .safety-section__heading,
      .quick-search__heading
    ) {
    text-align: center;
    align-items: center;
  }
  .auto-page :is(.section-heading, .safety-section__heading) > p {
    margin-inline: auto;
    text-align: center;
  }
  .auto-page :is(.market-categories, #featured-listings) {
    display: flex;
    flex-direction: column;
  }
  .auto-page :is(.market-categories, #featured-listings) .section-heading {
    display: contents;
  }
  .auto-page :is(.market-categories, #featured-listings) .section-heading > div {
    order: 0;
    text-align: center;
    margin-bottom: 30px;
  }
  .auto-page .market-categories .category-visual-grid {
    order: 1;
  }
  .auto-page #featured-listings .listing-grid {
    order: 1;
  }
  .auto-page :is(.market-categories, #featured-listings) .market-text-link {
    order: 2;
    align-self: center;
    margin-top: 24px;
  }
  .auto-page .market-main h2 {
    overflow-wrap: break-word;
  }
  .auto-page .listing-card__title > div {
    width: 100%;
  }
  .auto-page .listing-card__title h3 {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
  }
  .auto-page .quick-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .auto-page .quick-search__intro {
    display: contents;
  }
  .auto-page .quick-search__heading {
    order: 0;
  }
  .auto-page .home-smart-search {
    order: 1;
    margin-top: 0;
  }
  .auto-page .quick-search__meta {
    order: 2;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    text-align: center;
  }
  .auto-page .home-smart-search__help {
    text-align: center;
  }
  .auto-page .ai-card {
    position: relative;
    display: block;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  .auto-page .ai-card > div {
    position: relative;
    z-index: 1;
  }
  .auto-page .ai-card__icon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    margin: 0;
    font-size: 110px;
    opacity: 0.08;
    pointer-events: none;
  }
  .auto-page .safety-steps {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-block: 4px 10px;
  }
  .auto-page .safety-steps article {
    flex: 0 0 min(78vw, 270px);
    min-height: 220px;
    padding: 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
  .auto-page .safety-steps article > i {
    margin-top: 24px;
  }
  .auto-page :is(.level-card, .achievements-card) {
    display: flex;
    flex-direction: column;
  }
  .auto-page .level-card__heading {
    display: contents;
  }
  .auto-page .level-card__heading > div {
    order: 0;
    text-align: center;
  }
  .auto-page .level-card__heading h3 {
    margin: 0;
    font-size: 24px;
  }
  .auto-page .level-card__heading > a {
    order: 2;
    align-self: center;
    margin-top: 24px;
  }
  .auto-page :is(.level-track, .achievement-grid) {
    order: 1;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin-top: 28px;
  }
  .auto-page .level-track {
    grid-auto-columns: 130px;
  }
  .auto-page .level-step {
    scroll-snap-align: start;
  }
  .auto-page .achievement-grid {
    grid-auto-columns: min(72vw, 230px);
  }
  .auto-page .achievement {
    scroll-snap-align: start;
  }
  .auto-page :is(.safety-steps, .level-track, .achievement-grid)::-webkit-scrollbar {
    display: none;
  }
  .auto-page .newsletter {
    text-align: center;
    justify-items: center;
    align-items: center;
  }
  .auto-page .newsletter__actions {
    align-items: center;
    justify-content: center;
  }
  .auto-page .newsletter__actions .market-button {
    justify-content: center;
  }
  .auto-page [data-home-scroll-fade] {
    --home-fade-left: 0px;
    --home-fade-right: 0px;
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 var(--home-fade-left),
      #000 calc(100% - var(--home-fade-right)),
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 var(--home-fade-left),
      #000 calc(100% - var(--home-fade-right)),
      transparent
    );
  }
}
