'use strict';

/**
 * Fundo modular do mapa mundial.
 * Reutiliza a textura HD em quatro setores espelhados, aumentando o mundo sem perder nitidez.
 */
(() => {
  const TILE_WIDTH = 6000;
  const TILE_HEIGHT = 4000;

  function render() {
    return `<div class="world-background-tiles" aria-hidden="true">
      <i class="world-background-tile tile-nw"></i>
      <i class="world-background-tile tile-ne"></i>
      <i class="world-background-tile tile-sw"></i>
      <i class="world-background-tile tile-se"></i>
    </div>`;
  }

  globalThis.ReinosWorldMapBackground = Object.freeze({ TILE_WIDTH, TILE_HEIGHT, render });
})();
