body.manga-mosaic-enabled {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 24rem),
    radial-gradient(circle at top right, rgba(255, 248, 241, 0.28), transparent 20rem),
    linear-gradient(
      180deg,
      #fecd9b 0%,
      var(--secondary, #febc78) 100%
    );
}

.manga-mosaic-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.manga-mosaic-centered-shell {
  display: grid;
  justify-items: center;
}

.manga-mosaic-root {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.manga-mosaic-tiles-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.1;
}

.manga-mosaic-grid {
  display: grid;
  min-height: 100%;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  grid-auto-rows: 10rem;
}

.manga-mosaic-tile {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.manga-mosaic-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(254, 188, 120, 0.08), rgba(254, 188, 120, 0.02));
}

.manga-mosaic-glow {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 34rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 58%);
}

@media (min-width: 640px) {
  .manga-mosaic-grid {
    grid-auto-rows: 12rem;
  }
}

@media (min-width: 1024px) {
  .manga-mosaic-grid {
    grid-auto-rows: 14rem;
  }
}
