.home-images-feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 1.5rem;
  align-content: start;
}

@media (min-width: 640px) {
  .home-images-feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (min-width: 1024px) {
  .home-images-feed-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-image-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0.55rem 1.25rem rgba(0, 0, 0, 0.28);
}

.home-image-card__visual-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #121014;
}

.home-image-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1820;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.home-image-card__img.is-loaded {
  opacity: 1;
}

.home-image-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.92);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: 0 0.2rem 0.55rem rgba(0, 0, 0, 0.28);
}

.home-image-card__favorite {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.16s ease, transform 0.16s ease;
}

.home-image-card__favorite:active {
  transform: scale(0.94);
}

.home-image-card__favorite .material-symbols-outlined {
  font-size: 1.05rem;
  line-height: 1;
}

.home-image-card__favorite.is-favorited {
  background: rgba(255, 143, 168, 0.28);
  color: #ffc0d0;
}

.home-image-card__heat-slot {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  pointer-events: auto;
}

.home-image-card .home-feed-single-panel {
  position: relative;
  inset: auto;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.45rem 0.55rem 0.55rem;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.home-image-card .home-feed-single-panel .home-feed-upload-button {
  margin-top: 0;
  width: 100%;
  min-height: 2.7rem;
  color: #1c1028;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #fffffff2, #ffc0d0f5);
  box-shadow:
    0 0.62rem 1.18rem rgba(0, 0, 0, 0.42),
    0 0 1rem rgba(255, 176, 196, 0.33),
    inset 0 1px rgba(255, 255, 255, 0.34);
}

.home-image-card .home-feed-upload-button--generate {
  display: inline-flex;
  width: 100%;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.home-image-card .home-feed-upload-button--generate .material-symbols-outlined {
  font-size: 1.14rem !important;
}

.home-image-card .home-feed-upload-button--generate:active {
  transform: scale(0.98);
}

.home-image-card__heat.feed-heat-button {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1.35rem;
  padding: 0.12rem 0.42rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.home-image-card__heat .home-feed-meta-flame__value {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.home-image-card__heat .feed-flame-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-image-card__heat .flame-icon {
  font-size: 0.78rem;
  line-height: 1;
}

.home-image-card__heat-slot .feed-card-coin-badge {
  min-height: 1.35rem;
  padding: 0 0.42rem;
  font-size: 0.68rem;
}

.home-images-empty {
  display: flex;
  min-height: calc(100dvh - var(--home-feed-offset) - 5rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.home-images-empty__icon {
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.28);
  font-size: 2.4rem;
  line-height: 1;
}

.home-images-empty__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-images-empty__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.home-view-root--images {
  --home-feed-offset: calc(env(safe-area-inset-top, 0px) + 7.35rem);
}
