/*
 * Texturas oficiais JHON (rebranding 2026). Fonte única: o site usa estas classes e o gerador de
 * arquivos (scripts/build-assets.mjs) lê este mesmo arquivo para exportar fundos e texturas em PNG.
 * Regra: textura é ambiente, nunca protagonista. Verde no máximo 10% da composição.
 */
.tx { position: relative; isolation: isolate; background-color: #080808; }
/* Camadas de luz e grão usam pseudo-elementos: o elemento precisa ser posicionado (relative/absolute) */
:is(.atmosphere-green, .atmosphere-soft, .cinematic-glow, .loader-arc)::before,
:is(.noise-overlay, .scanline)::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; }

/* 01 Grade tática: a malha de 64 px do sistema */
.grid-tactical { background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; }

/* 02 Grade fina: 16 px dentro de 64 px, para capas editoriais */
.grid-fine { background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / .018) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .018) 1px, transparent 1px); background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px; background-position: -1px -1px; }

/* 03 Atmosfera verde: luz que sobe da base */
.atmosphere-green::before { background: radial-gradient(70% 55% at 50% 108%, rgb(182 255 0 / .2), rgb(182 255 0 / .06) 45%, transparent 75%); }

/* 04 Atmosfera suave: menta e verde nos cantos, quase invisível */
.atmosphere-soft::before { background: radial-gradient(55% 60% at 8% -5%, rgb(125 255 179 / .1), transparent 70%), radial-gradient(50% 55% at 100% 105%, rgb(182 255 0 / .08), transparent 70%); }

/* 05 Brilho cinematográfico: a luz que fica atrás das telas no site */
.cinematic-glow::before { background: radial-gradient(42% 46% at 64% 44%, rgb(182 255 0 / .17), rgb(182 255 0 / .06) 50%, transparent 78%), radial-gradient(28% 30% at 30% 72%, rgb(120 255 190 / .08), transparent 70%); filter: blur(24px); }

/* 06 Ruído: grão de filme por cima de tudo */
.noise-overlay::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .09; mix-blend-mode: overlay; z-index: 1; }

/* 07 Vidro: camada translúcida para painéis sobre luz */
.glass-layer { background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 60px -30px rgb(0 0 0 / .8); }

/* 08 Linhas de varredura: textura de tela, para capas de documento */
.scanline::after { background: repeating-linear-gradient(180deg, rgb(255 255 255 / .028) 0 1px, transparent 1px 3px); z-index: 1; }

/* 09 Anel (novo, assinatura do rebranding): o arco de carregamento do símbolo vira luz de fundo */
.loader-arc::before { background:
  radial-gradient(circle at 78% 50%, transparent 0 calc(var(--arc-r, 34vmax) - 2px), rgb(182 255 0 / .5) calc(var(--arc-r, 34vmax) - 1px) calc(var(--arc-r, 34vmax) + 1px), transparent calc(var(--arc-r, 34vmax) + 2px)),
  radial-gradient(circle at 78% 50%, transparent 0 calc(var(--arc-r, 34vmax) - 40px), rgb(182 255 0 / .1) var(--arc-r, 34vmax), transparent calc(var(--arc-r, 34vmax) + 40px));
  -webkit-mask: conic-gradient(from 105deg at 78% 50%, transparent 0 8%, #000 58%, transparent 92%); mask: conic-gradient(from 105deg at 78% 50%, transparent 0 8%, #000 58%, transparent 92%); }
