.market-page--home .market-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.market-page--home .market-float {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  background: var(--market-panel);
  box-shadow: 0 24px 48px rgba(2, 8, 23, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: market-home-float 7s ease-in-out infinite;
}

.market-page--home .market-float img {
  width: 25px;
  height: 25px;
}

.market-page--home .market-float--1 { left: 8%; top: 20%; animation-delay: -1s; }
.market-page--home .market-float--2 { right: 11%; top: 19%; animation-delay: -3s; }
.market-page--home .market-float--3 { left: 15%; bottom: 20%; animation-delay: -2s; }
.market-page--home .market-float--4 { right: 16%; bottom: 19%; animation-delay: -5s; }
.market-page--home .market-float--5 { left: 4%; top: 50%; animation-delay: -4s; }
.market-page--home .market-float--6 { right: 5%; top: 53%; animation-delay: -6s; }

.market-page--home .market-home {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(850px, 100%);
  min-height: min(620px, calc(100vh - 210px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 112px) 0 clamp(34px, 6vw, 70px);
  text-align: center;
}

.market-page--home .market-home h1 {
  max-width: 760px;
  margin: 0;
  color: var(--market-ink);
  font-size: clamp(42px, 8vw, 86px);
  font-weight: 900;
  line-height: 0.94;
}

.market-page--home .market-lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--market-muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.market-page--home .market-search {
  border-color: color-mix(in srgb, var(--market-cyan) 24%, var(--market-line));
}

.market-page--home .market-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.market-page--home .market-quick a,
.market-page--home .market-category-pill {
  border: 1px solid var(--market-line);
  background: var(--market-panel);
  color: var(--market-soft);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.market-page--home .market-quick a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.market-page--home .market-store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.market-page--home .market-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  min-height: 52px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: #05070d;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.25);
}

.market-page--home[data-market-theme="light"] .market-store {
  border-color: rgba(13, 29, 53, 0.12);
  box-shadow: 0 14px 28px rgba(55, 92, 140, 0.16);
}

.market-page--home .market-store img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.market-page--home .market-store small,
.market-page--home .market-store strong {
  display: block;
  line-height: 1.05;
}

.market-page--home .market-store small {
  font-size: 10px;
  opacity: 0.76;
}

.market-page--home .market-store strong {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 850;
}

.market-page--home .market-category-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.market-page--home .market-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.market-page--home .market-category-pill img {
  width: 17px;
  height: 17px;
}

.market-page--home .market-quick a:hover,
.market-page--home .market-category-pill:hover {
  border-color: rgba(103, 232, 249, 0.48);
  color: var(--market-ink);
  transform: translateY(-1px);
}

.market-page--home .market-store:hover {
  transform: translateY(-1px);
}

.market-page--home .market-quick a,
.market-page--home .market-category-pill,
.market-page--home .market-store {
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

@keyframes market-home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (prefers-reduced-motion: reduce) {
  .market-page--home .market-float {
    animation: none;
  }
}

@media (max-width: 860px) {
  .market-page--home .market-float {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .market-page--home .market-float img {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 560px) {
  .market-page--home .market-home {
    min-height: auto;
    padding: 30px 0 22px;
  }

  .market-page--home .market-home h1 {
    font-size: 38px;
    line-height: 1.02;
    max-width: 12ch;
  }

  .market-page--home .market-lede {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .market-page--home .market-search {
    margin-top: 20px;
  }

  .market-page--home .market-quick {
    justify-content: start;
    width: 100%;
    margin-top: 12px;
    padding: 0 2px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .market-page--home .market-quick::-webkit-scrollbar {
    display: none;
  }

  .market-page--home .market-quick a {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .market-page--home .market-store-row {
    display: none;
  }

  .market-page--home .market-category-strip {
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 0 2px 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .market-page--home .market-category-strip::-webkit-scrollbar {
    display: none;
  }

  .market-page--home .market-category-pill {
    flex: 0 0 auto;
    min-height: 42px;
    scroll-snap-align: start;
  }

  .market-page--home .market-store {
    width: min(220px, 100%);
  }

  .market-page--home .market-float {
    opacity: 0.42;
  }

  .market-page--home .market-float--1,
  .market-page--home .market-float--2,
  .market-page--home .market-float--3,
  .market-page--home .market-float--4,
  .market-page--home .market-float--5,
  .market-page--home .market-float--6 {
    display: none;
  }
}
