<table><tbody><tr><td>C. ulietensis</td><td>P. pavo</td><td>C. crenilabis</td><td>C. ulietensis</td><td>P. pavo</td></tr><tr><td>M. flavolineatus</td><td>S. schlegeli</td><td>P. multifasciatus</td><td>P. multifasciatus</td><td>C. ulietensis</td></tr><tr><td>P. multifasciatus</td><td>G. aurolineatus</td><td>C. auriga</td><td>C. auriga</td><td>S. schlegeli</td></tr><tr><td>C. auriga</td><td>C. ulietensis</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. flavolineatus</td></tr><tr><td>M. scopas</td><td>M. flavolineatus</td><td>M. scopas</td><td>M. scopas</td><td>C. auriga</td></tr><tr><td>H. hortulanus</td><td>L. fulvus</td><td>H. hortulanus</td><td>H. hortulanus</td><td>P. multifasciatus</td></tr><tr><td>S. bandanensis</td><td>C. auriga</td><td></td><td></td><td>P. tile</td></tr><tr><td></td><td>M. vanicolensis</td><td></td><td></td><td>M. vanicolensis</td></tr><tr><td></td><td>C. flavissima</td><td></td><td></td><td>C. flavissima</td></tr><tr><td></td><td></td><td></td><td></td><td>C. iomelas</td></tr><tr><td></td><td></td><td></td><td></td><td>S. bandanensis</td></tr><tr><td><strong>Barrier Vegetation</strong></td><td><strong>Barrier Wall</strong></td><td><strong>Beach Fringing</strong></td><td><strong>Beach Grass</strong></td><td><strong>Beach Mangrove</strong></td></tr><tr><td>A. triostegus</td><td>A. triostegus</td><td>C. viridis</td><td>S. nigricans</td><td>S. nigricans</td></tr><tr><td>S. nigricans</td><td>S. nigricans</td><td>C. striatus</td><td>C. crenilabis</td><td>C. crenilabis</td></tr><tr><td>C. striatus</td><td>C. striatus</td><td>S. nigricans</td><td>C. striatus</td><td>C. striatus</td></tr><tr><td>C. sordidus</td><td>C. sordidus</td><td>C. sordidus</td><td>E. vaigiensis</td><td>E. vaigiensis</td></tr><tr><td>T. hardwicke</td><td>T. hardwicke</td><td>M. scopas</td><td>D. aruanus</td><td>D. aruanus</td></tr><tr><td>C. viridis</td><td>C. viridis</td><td>C. trifasciatus</td><td>A. triostegus</td><td>A. triostegus</td></tr><tr><td>S. psittacus</td><td>S. psittacus</td><td>D. aruanus</td><td>M. flavolineatus</td><td>M. flavolineatus</td></tr><tr><td>C. crenilabis</td><td>M. flavolineatus</td><td>T. hardwicke</td><td>T. hardwicke</td><td></td></tr><tr><td>S. schlegeli</td><td>S. schlegeli</td><td>P. pavo</td><td></td><td></td></tr><tr><td>C. flavissima</td><td>C. flavissima</td><td>G. aurolineatus</td><td></td><td></td></tr><tr><td>C. ulietensis</td><td>C. ulietensis</td><td>L. fulvus</td><td></td><td></td></tr><tr><td>P. multifasciatus</td><td>P. multifasciatus</td><td></td><td></td><td></td></tr><tr><td>C. auriga</td><td>C. auriga</td><td></td><td></td><td></td></tr><tr><td>M. flavolineatus</td><td>C. crenilabis</td><td></td><td></td><td></td></tr><tr><td>M. scopas</td><td>M. scopas</td><td></td><td></td><td></td></tr><tr><td>H. hortulanus</td><td>H. hortulanus</td><td></td><td></td><td></td></tr><tr><td></td><td>S. bandanensis</td><td></td><td></td><td></td></tr><tr><td><strong>Beach Pinnacle</strong></td><td><strong>Beach Vegetation</strong></td><td><strong>Beach Wall</strong></td><td><strong>Fringing Grass</strong></td><td><strong>Fringing Mangrove</strong></td></tr><tr><td>C. striatus</td><td>S. nigricans</td><td>S. nigricans</td><td>C. viridis</td><td>C. viridis</td></tr><tr><td>M. scopas</td><td>C. crenilabis</td><td>C. striatus</td><td>C. striatus</td><td>C. striatus</td></tr><tr><td>T. hardwicke</td><td>C. striatus</td><td>C. crenilabis</td><td>C. sordidus</td><td>C. crenilabis</td></tr><tr><td>C. sordidus</td><td>E. vaigiensis</td><td>E. vaigiensis</td><td>M. scopas</td><td>C. sordidus</td></tr><tr><td>S. nigricans</td><td>D. aruanus</td><td>M. flavolineatus</td><td>C. trifasciatus</td><td>M. scopas</td></tr><tr><td>D. flavicauda</td><td>A. triostegus</td><td>D. aruanus</td><td>T. hardwicke</td><td>C. trifasciatus</td></tr><tr><td>A. sexfasciatus</td><td>M. flavolineatus</td><td>A. triostegus</td><td>D. aruanus</td><td>T. hardwicke</td></tr><tr><td>P. pavo</td><td>T. hardwicke</td><td>H. trimaculatus</td><td>C. crenilabis</td><td>D. aruanus</td></tr><tr><td>S. schlegeli</td><td></td><td>C. sordidus</td><td>S. nigricans</td><td>S. nigricans</td></tr><tr><td>S. psittacus</td><td></td><td>T. hardwicke</td><td>P. pavo</td><td>P. pavo</td></tr><tr><td>D. aruanus</td><td></td><td></td><td>G. aurolineatus</td><td></td></tr><tr><td>P. tile</td><td></td><td></td><td></td><td></td></tr><tr><td>C. iomelas</td><td></td><td></td><td></td><td></td></tr></tbody></table>
<table><thead><tr><th>Fringing Pinnacle</th><th>Fringing Vegetation</th><th>Fringing Wall</th><th>Grass Mangrove</th><th>Grass Pinnacle</th></tr></thead><tbody><tr><td>C. viridis</td><td>C. viridis</td><td>C. viridis</td><td>C. crenilabis</td><td>C. striatus</td></tr><tr><td>C. striatus</td><td>C. striatus</td><td>C. striatus</td><td>E. vaigiensis</td><td>M. scopas</td></tr><tr><td>D. flavicauda</td><td>C. sordidus</td><td>C. sordidus</td><td></td><td>T. hardwicke</td></tr><tr><td>A. sexfasciatus</td><td>M. scopas</td><td>M. scopas</td><td></td><td>C. sordidus</td></tr><tr><td>C. sordidus</td><td>C. trifasciatus</td><td>C. trifasciatus</td><td></td><td>S. nigricans</td></tr><tr><td>M. scopas</td><td>C. crenilabis</td><td>T. hardwicke</td><td></td><td>D. flavicauda</td></tr><tr><td>T. hardwicke</td><td>T. hardwicke</td><td>D. aruanus</td><td></td><td>A. sexfasciatus</td></tr><tr><td>S. nigricans</td><td>D. aruanus</td><td>S. nigricans</td><td></td><td>P. pavo</td></tr><tr><td>P. pavo</td><td>S. nigricans</td><td>C. crenilabis</td><td></td><td>S. schlegeli</td></tr><tr><td>C. trifasciatus</td><td>P. pavo</td><td>P. pavo</td><td></td><td>C. crenilabis</td></tr><tr><td>D. aruanus</td><td>G. aurolineatus</td><td>G. aurolineatus</td><td></td><td>S. psittacus</td></tr><tr><td>S. schlegeli</td><td></td><td>L. fulvus</td><td></td><td></td></tr><tr><td>P. tile</td><td></td><td>M. flavolineatus</td><td></td><td></td></tr><tr><td>S. psittacus</td><td></td><td></td><td></td><td></td></tr><tr><th>Grass Vegetation</th><th>Grass Wall</th><th>Mangrove Pinnacle</th><th>Mangrove Vegetation</th><th>Mangrove Wall</th></tr><tr><td>C. crenilabis</td><td>C. crenilabis</td><td>C. striatus</td><td>C. crenilabis</td><td>C. crenilabis</td></tr><tr><td>E. vaigiensis</td><td>E. vaigiensis</td><td>M. scopas</td><td>E. vaigiensis</td><td>E. vaigiensis</td></tr><tr><td>C. glauca</td><td>A. triostegus</td><td>T. hardwicke</td><td></td><td>A. triostegus</td></tr><tr><td></td><td>M. flavolineatus</td><td>C. sordidus</td><td></td><td>M. flavolineatus</td></tr><tr><td></td><td>H. trimaculatus</td><td>S. nigricans</td><td></td><td>H. trimaculatus</td></tr><tr><td></td><td>C. striatus</td><td>C. crenilabis</td><td></td><td>C. striatus</td></tr><tr><td></td><td>C. glauca</td><td>D. flavicauda</td><td></td><td>C. glauca</td></tr><tr><td></td><td>A. septemfasciatus</td><td>A. sexfasciatus</td><td></td><td></td></tr><tr><td></td><td></td><td>P. pavo</td><td></td><td></td></tr><tr><td></td><td></td><td>S. schlegeli</td><td></td><td></td></tr><tr><td></td><td></td><td>S. psittacus</td><td></td><td></td></tr><tr><th>Pinnacle Vegetation</th><th>Pinnacle Wall</th><th>Vegetation Wall</th><td></td><td></td></tr><tr><td>C. striatus</td><td>C. striatus</td><td>C. crenilabis</td><td></td><td></td></tr><tr><td>M. scopas</td><td>M. scopas</td><td>E. vaigiensis</td><td></td><td></td></tr><tr><td>T. hardwicke</td><td>T. hardwicke</td><td>H. trimaculatus</td><td></td><td></td></tr><tr><td>C. sordidus</td><td>C. sordidus</td><td>A. triostegus</td><td></td><td></td></tr><tr><td>S. nigricans</td><td>S. nigricans</td><td>M. flavolineatus</td><td></td><td></td></tr><tr><td>D. flavicauda</td><td>D. flavicauda</td><td>C. glauca</td><td></td><td></td></tr><tr><td>A. sexfasciatus</td><td>A. sexfasciatus</td><td>C. striatus</td><td></td><td></td></tr><tr><td>C. crenilabis</td><td>P. pavo</td><td>H. margaritaceus</td><td></td><td></td></tr><tr><td>P. pavo</td><td>S. schlegeli</td><td></td><td></td><td></td></tr><tr><td>S. schlegeli</td><td>S. psittacus</td><td></td><td></td><td></td></tr><tr><td>S. psittacus</td><td>C. crenilabis</td><td></td><td></td><td></td></tr><tr><td>P. tile</td><td>P. tile</td><td></td><td></td><td></td></tr><tr><td></td><td>C. iomelas</td><td></td><td></td><td></td></tr></tbody></table>
<table><thead><tr><th>Fringing Pinnacle</th><th>Fringing Vegetation</th><th>Fringing Wall</th><th>Grass Mangrove</th><th>Grass Pinnacle</th></tr></thead><tbody><tr><td>C. viridis</td><td>C. viridis</td><td>C. viridis</td><td>C. crenilabis</td><td>C. striatus</td></tr><tr><td>C. striatus</td><td>C. striatus</td><td>C. striatus</td><td>E. vaigiensis</td><td>M. scopas</td></tr><tr><td>D. flavicauda</td><td>C. sordidus</td><td>C. sordidus</td><td></td><td>T. hardwicke</td></tr><tr><td>A. sexfasciatus</td><td>M. scopas</td><td>M. scopas</td><td></td><td>C. sordidus</td></tr><tr><td>C. sordidus</td><td>C. trifasciatus</td><td>C. trifasciatus</td><td></td><td>S. nigricans</td></tr><tr><td>M. scopas</td><td>C. crenilabis</td><td>T. hardwicke</td><td></td><td>D. flavicauda</td></tr><tr><td>T. hardwicke</td><td>T. hardwicke</td><td>D. aruanus</td><td></td><td>A. sexfasciatus</td></tr><tr><td>S. nigricans</td><td>D. aruanus</td><td>S. nigricans</td><td></td><td>P. pavo</td></tr><tr><td>P. pavo</td><td>S. nigricans</td><td>C. crenilabis</td><td></td><td>S. schlegeli</td></tr><tr><td>C. trifasciatus</td><td>P. pavo</td><td>P. pavo</td><td></td><td>C. crenilabis</td></tr><tr><td>D. aruanus</td><td>G. aurolineatus</td><td>G. aurolineatus</td><td></td><td>S. psittacus</td></tr><tr><td>S. schlegeli</td><td></td><td>L. fulvus</td><td></td><td></td></tr><tr><td>P. tile</td><td></td><td>M. flavolineatus</td><td></td><td></td></tr><tr><td>S. psittacus</td><td></td><td></td><td></td><td></td></tr><tr><th>Grass Vegetation</th><th>Grass Wall</th><th>Mangrove Pinnacle</th><th>Mangrove Vegetation</th><th>Mangrove Wall</th></tr><tr><td>C. crenilabis</td><td>C. crenilabis</td><td>C. striatus</td><td>C. crenilabis</td><td>C. crenilabis</td></tr><tr><td>E. vaigiensis</td><td>E. vaigiensis</td><td>M. scopas</td><td>E. vaigiensis</td><td>E. vaigiensis</td></tr><tr><td>C. glauca</td><td>A. triostegus</td><td>T. hardwicke</td><td></td><td>A. triostegus</td></tr><tr><td></td><td>M. flavolineatus</td><td>C. sordidus</td><td></td><td>M. flavolineatus</td></tr><tr><td></td><td>H. trimaculatus</td><td>S. nigricans</td><td></td><td>H. trimaculatus</td></tr><tr><td></td><td>C. striatus</td><td>C. crenilabis</td><td></td><td>C. striatus</td></tr><tr><td></td><td>C. glauca</td><td>D. flavicauda</td><td></td><td>C. glauca</td></tr><tr><td></td><td>A. septemfasciatus</td><td>A. sexfasciatus</td><td></td><td></td></tr><tr><td></td><td></td><td>P. pavo</td><td></td><td></td></tr><tr><td></td><td></td><td>S. schlegeli</td><td></td><td></td></tr><tr><td></td><td></td><td>S. psittacus</td><td></td><td></td></tr><tr><th>Pinnacle Vegetation</th><th>Pinnacle Wall</th><th>Vegetation Wall</th><td></td><td></td></tr><tr><td>C. striatus</td><td>C. striatus</td><td>C. crenilabis</td><td></td><td></td></tr><tr><td>M. scopas</td><td>M. scopas</td><td>E. vaigiensis</td><td></td><td></td></tr><tr><td>T. hardwicke</td><td>T. hardwicke</td><td>H. trimaculatus</td><td></td><td></td></tr><tr><td>C. sordidus</td><td>C. sordidus</td><td>A. triostegus</td><td></td><td></td></tr><tr><td>S. nigricans</td><td>S. nigricans</td><td>M. flavolineatus</td><td></td><td></td></tr><tr><td>D. flavicauda</td><td>D. flavicauda</td><td>C. glauca</td><td></td><td></td></tr><tr><td>A. sexfasciatus</td><td>A. sexfasciatus</td><td>C. striatus</td><td></td><td></td></tr><tr><td>C. crenilabis</td><td>P. pavo</td><td>H. margaritaceus</td><td></td><td></td></tr><tr><td>P. pavo</td><td>S. schlegeli</td><td></td><td></td><td></td></tr><tr><td>S. schlegeli</td><td>S. psittacus</td><td></td><td></td><td></td></tr><tr><td>S. psittacus</td><td>C. crenilabis</td><td></td><td></td><td></td></tr><tr><td>P. tile</td><td>P. tile</td><td></td><td></td><td></td></tr><tr><td></td><td>C. iomelas</td><td></td><td></td><td></td></tr></tbody></table>
<caption>TABLE S12</caption>

List of species contributing to 80% of the differences in the composition of fish communities for nighttime observation of juvenile communities. Based on pairwise comparisons between each surveyed category of habitats, using SIMPER.

<table><caption>TABLE S13</caption><thead><tr><th>Beach Grass</th><th>Beach Mangrove</th><th>Beach Vegetation</th><th>Beach Wall</th><th>Grass Mangrove</th></tr></thead><tbody><tr><td>E. vaigiensis</td><td>C. crenilabis</td><td>M. berndti</td><td>E. vaigiensis</td><td>C. crenilabis</td></tr><tr><td>C. crenilabis</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. berndti</td><td>E. vaigiensis</td></tr><tr><td>M. flavolineatus</td><td>S. spinus</td><td>E. vaigiensis</td><td>S. punctatissimus</td><td>M. flavolineatus</td></tr><tr><td>M. berndti</td><td>M. berndti</td><td>C. crenilabis</td><td>M. flavolineatus</td><td>S. spinus</td></tr><tr><td>S. punctatissimus</td><td>L. fulvus</td><td>S. punctatissimus</td><td>N. opercularis</td><td>L. fulvus</td></tr><tr><td>C. sexfasciatus</td><td>C. sexfasciatus</td><td>C. sexfasciatus</td><td>M. pralina</td><td></td></tr><tr><td>N. sammara</td><td>S. punctatissimus</td><td>S. diadema</td><td>N. sammara</td><td></td></tr><tr><td>M. pralina</td><td></td><td>M. pralina</td><td>N. savayensis</td><td></td></tr><tr><td></td><td></td><td>N. sammara</td><td>S. diadema</td><td></td></tr><tr><td></td><td></td><td>A. exostigma</td><td>C. sexfasciatus</td><td></td></tr><tr><th>Grass Vegetation</th><th>Grass Wall</th><th>Mangrove Vegetation</th><th>Mangrove Wall</th><th>Vegetation Wall</th></tr><tr><td>C. crenilabis</td><td>C. crenilabis</td><td>C. crenilabis</td><td>C. crenilabis</td><td>M. flavolineatus</td></tr><tr><td>E. vaigiensis</td><td>E. vaigiensis</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>E. vaigiensis</td></tr><tr><td>M. flavolineatus</td><td>M. flavolineatus</td><td>S. spinus</td><td>S. spinus</td><td>C. crenilabis</td></tr><tr><td>C. sexfasciatus</td><td>N. opercularis</td><td>E. vaigiensis</td><td>E. vaigiensis</td><td>N. opercularis</td></tr><tr><td>S. diadema</td><td>C. sexfasciatus</td><td>L. fulvus</td><td>L. fulvus</td><td>S. diadema</td></tr><tr><td>L. fulvus</td><td></td><td></td><td></td><td>C. sexfasciatus</td></tr><tr><td></td><td></td><td></td><td></td><td>N. sammara</td></tr><tr><td></td><td></td><td></td><td></td><td>S. spinus</td></tr></tbody></table>

List of species contributing to 80% of the differences in the composition of fish communities for nighttime observation of adult communities. Based on pairwise comparisons between each surveyed category of habitats, using SIMPER.

<table><thead><tr><th>Beach Grass</th><th>Beach Mangrove</th><th>Beach Vegetation</th><th>Beach Wall</th><th>Grass Mangrove</th></tr></thead><tbody><tr><td>M. berndti</td><td>M. berndti</td><td>M. berndti</td><td>M. berndti</td><td>C. crenilabis</td></tr><tr><td>M. pralina</td><td>M. pralina</td><td>M. pralina</td><td>M. pralina</td><td>M. flavolineatus</td></tr><tr><td>N. savayensis</td><td>N. savayensis</td><td>N. savayensis</td><td>N. savayensis</td><td>E. vaigiensis</td></tr><tr><td>M. violacea</td><td>M. violacea</td><td>M. violacea</td><td>M. violacea</td><td>N. sammara</td></tr><tr><td>A. calopterus</td><td>A. calopterus</td><td>A. calopterus</td><td>A. calopterus</td><td></td></tr><tr><td>S. punctatissimus</td><td>S. punctatissimus</td><td>S. punctatissimus</td><td>S. punctatissimus</td><td></td></tr><tr><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td></td></tr><tr><td>C. crenilabis</td><td></td><td></td><td>C. crenilabis</td><td></td></tr><tr><td></td><td></td><td></td><td>E. vaigiensis</td><td></td></tr></tbody></table>
<caption>TABLE S12</caption>

List of species contributing to 80% of the differences in the composition of fish communities for nighttime observation of juvenile communities. Based on pairwise comparisons between each surveyed category of habitats, using SIMPER.

<table><caption>TABLE S13</caption><thead><tr><th>Beach Grass</th><th>Beach Mangrove</th><th>Beach Vegetation</th><th>Beach Wall</th><th>Grass Mangrove</th></tr></thead><tbody><tr><td>E. vaigiensis</td><td>C. crenilabis</td><td>M. berndti</td><td>E. vaigiensis</td><td>C. crenilabis</td></tr><tr><td>C. crenilabis</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. berndti</td><td>E. vaigiensis</td></tr><tr><td>M. flavolineatus</td><td>S. spinus</td><td>E. vaigiensis</td><td>S. punctatissimus</td><td>M. flavolineatus</td></tr><tr><td>M. berndti</td><td>M. berndti</td><td>C. crenilabis</td><td>M. flavolineatus</td><td>S. spinus</td></tr><tr><td>S. punctatissimus</td><td>L. fulvus</td><td>S. punctatissimus</td><td>N. opercularis</td><td>L. fulvus</td></tr><tr><td>C. sexfasciatus</td><td>C. sexfasciatus</td><td>C. sexfasciatus</td><td>M. pralina</td><td></td></tr><tr><td>N. sammara</td><td>S. punctatissimus</td><td>S. diadema</td><td>N. sammara</td><td></td></tr><tr><td>M. pralina</td><td></td><td>M. pralina</td><td>N. savayensis</td><td></td></tr><tr><td></td><td></td><td>N. sammara</td><td>S. diadema</td><td></td></tr><tr><td></td><td></td><td>A. exostigma</td><td>C. sexfasciatus</td><td></td></tr><tr><th>Grass Vegetation</th><th>Grass Wall</th><th>Mangrove Vegetation</th><th>Mangrove Wall</th><th>Vegetation Wall</th></tr><tr><td>C. crenilabis</td><td>C. crenilabis</td><td>C. crenilabis</td><td>C. crenilabis</td><td>M. flavolineatus</td></tr><tr><td>E. vaigiensis</td><td>E. vaigiensis</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>E. vaigiensis</td></tr><tr><td>M. flavolineatus</td><td>M. flavolineatus</td><td>S. spinus</td><td>S. spinus</td><td>C. crenilabis</td></tr><tr><td>C. sexfasciatus</td><td>N. opercularis</td><td>E. vaigiensis</td><td>E. vaigiensis</td><td>N. opercularis</td></tr><tr><td>S. diadema</td><td>C. sexfasciatus</td><td>L. fulvus</td><td>L. fulvus</td><td>S. diadema</td></tr><tr><td>L. fulvus</td><td></td><td></td><td></td><td>C. sexfasciatus</td></tr><tr><td></td><td></td><td></td><td></td><td>N. sammara</td></tr><tr><td></td><td></td><td></td><td></td><td>S. spinus</td></tr></tbody></table>

List of species contributing to 80% of the differences in the composition of fish communities for nighttime observation of adult communities. Based on pairwise comparisons between each surveyed category of habitats, using SIMPER.

<table><thead><tr><th>Beach Grass</th><th>Beach Mangrove</th><th>Beach Vegetation</th><th>Beach Wall</th><th>Grass Mangrove</th></tr></thead><tbody><tr><td>M. berndti</td><td>M. berndti</td><td>M. berndti</td><td>M. berndti</td><td>C. crenilabis</td></tr><tr><td>M. pralina</td><td>M. pralina</td><td>M. pralina</td><td>M. pralina</td><td>M. flavolineatus</td></tr><tr><td>N. savayensis</td><td>N. savayensis</td><td>N. savayensis</td><td>N. savayensis</td><td>E. vaigiensis</td></tr><tr><td>M. violacea</td><td>M. violacea</td><td>M. violacea</td><td>M. violacea</td><td>N. sammara</td></tr><tr><td>A. calopterus</td><td>A. calopterus</td><td>A. calopterus</td><td>A. calopterus</td><td></td></tr><tr><td>S. punctatissimus</td><td>S. punctatissimus</td><td>S. punctatissimus</td><td>S. punctatissimus</td><td></td></tr><tr><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td>M. flavolineatus</td><td></td></tr><tr><td>C. crenilabis</td><td></td><td></td><td>C. crenilabis</td><td></td></tr><tr><td></td><td></td><td></td><td>E. vaigiensis</td><td></td></tr></tbody></table>
<table><thead><tr><th>Grass Vegetation</th><th>Grass Wall</th><th>Mangrove Vegetation</th><th>Mangrove Wall</th><th>Vegetation Wall</th></tr></thead><tbody><tr><td>C. crenilabis</td><td>C. crenilabis</td><td>M. flavolineatus</td><td>C. crenilabis</td><td>C. crenilabis</td></tr><tr><td>M. flavolineatus</td><td>E. vaigiensis</td><td>C. crenilabis</td><td>E. vaigiensis</td><td>E. vaigiensis</td></tr><tr><td>E. vaigiensis</td><td>A. calopterus</td><td>N. savayensis</td><td>M. flavolineatus</td><td>M. flavolineatus</td></tr><tr><td>N. sammara</td><td>M. flavolineatus</td><td>E. vaigiensis</td><td>A. calopterus</td><td>A. calopterus</td></tr><tr><td>S. diadema</td><td>S. diadema</td><td>A. calopterus</td><td>S. diadema</td><td>S. diadema</td></tr><tr><td>N. savayensis</td><td>N. fusca</td><td></td><td>N. sammara</td><td>N. sammara</td></tr><tr><td></td><td>N. savayensis</td><td></td><td>N. fusca</td><td>N. savayensis</td></tr><tr><td></td><td>N. sammara</td><td></td><td></td><td></td></tr></tbody></table>

<figure><img src="image_9.png" /><figcaption>Figure S1 – Average substrate composition of the different study sites in Bora-Bora over the three transects (2 m, 12 m, 32 m away from the shoreline), calculated as percentage cover of live coral, sand/silt/debris, rock, and algae.</figcaption></figure>
<table><thead><tr><th>Grass Vegetation</th><th>Grass Wall</th><th>Mangrove Vegetation</th><th>Mangrove Wall</th><th>Vegetation Wall</th></tr></thead><tbody><tr><td>C. crenilabis</td><td>C. crenilabis</td><td>M. flavolineatus</td><td>C. crenilabis</td><td>C. crenilabis</td></tr><tr><td>M. flavolineatus</td><td>E. vaigiensis</td><td>C. crenilabis</td><td>E. vaigiensis</td><td>E. vaigiensis</td></tr><tr><td>E. vaigiensis</td><td>A. calopterus</td><td>N. savayensis</td><td>M. flavolineatus</td><td>M. flavolineatus</td></tr><tr><td>N. sammara</td><td>M. flavolineatus</td><td>E. vaigiensis</td><td>A. calopterus</td><td>A. calopterus</td></tr><tr><td>S. diadema</td><td>S. diadema</td><td>A. calopterus</td><td>S. diadema</td><td>S. diadema</td></tr><tr><td>N. savayensis</td><td>N. fusca</td><td></td><td>N. sammara</td><td>N. sammara</td></tr><tr><td></td><td>N. savayensis</td><td></td><td>N. fusca</td><td>N. savayensis</td></tr><tr><td></td><td>N. sammara</td><td></td><td></td><td></td></tr></tbody></table>

<figure><img src="image_9.png" /><figcaption>Figure S1 – Average substrate composition of the different study sites in Bora-Bora over the three transects (2 m, 12 m, 32 m away from the shoreline), calculated as percentage cover of live coral, sand/silt/debris, rock, and algae.</figcaption></figure>
<figure><img src="image_10.png" /><figcaption>Figure S2 – Shannon index of the diversity of habitats used by juveniles and adults of the most common 47 fish species in Bora-Bora.</figcaption></figure>
<figure><img src="image_10.png" /><figcaption>Figure S2 – Shannon index of the diversity of habitats used by juveniles and adults of the most common 47 fish species in Bora-Bora.</figcaption></figure>