/* =========================================================
   MAXTAC — Loader "Porta Tecnológica"
   Paleta: azul MAXTAC + branco sobre aço escuro
   ========================================================= */
:root {
  --brand: #3538c4;
  --brand-hi: #5a5fff;
  --brand-glow: rgba(90, 95, 255, .75);
  --white: #f4f5ff;
  --ink: #04050d;
  --steel-1: #0b0d1f;
  --steel-2: #13162f;
  --steel-3: #1d2147;
  --alert: #ff3b4e;
  --lock: min(62vmin, 440px);
  --hud: "Chakra Petch", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); color: var(--white); font-family: var(--sans); }
body.is-loading { overflow: hidden; }

/* ---------------- HERO placeholder ---------------- */
.hero {
  position: relative; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  background: #05060f;
}
.hero__layer { position: absolute; inset: -5%; pointer-events: none; will-change: transform; }
.hero__layer--mid { will-change: auto; }   /* granulado fica parado: mexer nele obrigava redesenhar a tela toda (mix-blend) */
/* fundo: hangar de treinamento MAX-TAC (aparece quando a porta abre) */
/* fundo (atrás): aparece pelos vãos da frente e se move de leve com o mouse */
.hero__layer--back {
  background: url("assets/hero-bg.webp") 68% 50% / cover no-repeat;
}
/* frente: hangar com os vãos transparentes, FIXO na tela (sem parallax).
   Mesma posição/escala do fundo para os vãos baterem com a cena. */
.hero__layer--front {
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(3,4,12,.55) 100%),   /* vinheta */
    url("assets/hero-front.webp?v=2") 68% 50% / cover no-repeat;   /* puxa p/ direita: mantém a marca na parede visível */
}
.hero__layer--mid {
  opacity: .045;   /* granulado sem mix-blend: o "overlay" na tela toda era um dos maiores pesos */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Personagem: à direita, apoiado na base da tela, à frente do cenário.
   --ch = altura, --cw = largura, --cr = recuo da direita (usados também
   para posicionar o balão de fala junto da cabeça). */
.hero {
  --ch: min(98vh, 1374px, calc(50vw * 1374 / 1145));
  --cw: calc(var(--ch) * 1145 / 1374);
  --cr: 3vw;
}
.hero__char-wrap {
  position: absolute; right: var(--cr); bottom: -5vh; z-index: 2;   /* um pouco mais baixo: o giro não descola a base da tela */
  height: var(--ch); aspect-ratio: 1145 / 1374;
  pointer-events: none; will-change: transform;
}
.hero__char {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  /* endireita a pose (a arte vem inclinada p/ a direita). Usa a propriedade
     "rotate" (não transform) para não brigar com a animação de entrada do GSAP. */
  rotate: var(--char-rot, -5deg); transform-origin: 50% 100%;
  /* sombra/contorno sutil para destacar do cenário + leve luz azul da cena */
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(53,56,196,.25));
}
/* Silhueta HQ: cópia chapada do personagem no azul MAX-TAC, deslocada
   para trás/ao lado. A forma vem do alfa da própria imagem (mask). */
.hero__ghost-wrap {
  position: absolute; right: var(--cr); bottom: -5vh; z-index: 1;
  height: var(--ch); aspect-ratio: 1145 / 1374;
  pointer-events: none; will-change: transform;
}
.hero__ghost {
  width: 100%; height: 100%;
  rotate: var(--char-rot, -5deg); transform-origin: 50% 100%;
  /* afastamento via left/top (o GSAP converte translate/rotate na entrada e um calc() quebraria isso) */
  position: relative; left: var(--ghost-x, 1.6%); top: var(--ghost-y, -1.1%);
  background: linear-gradient(170deg, #5a5fff 0%, #3538c4 45%, #22248f 100%);
  -webkit-mask: url("assets/hero-char.webp") bottom center / contain no-repeat;
          mask: url("assets/hero-char.webp") bottom center / contain no-repeat;
  /* entrada: animada junto com o personagem (door3d.js) */
}
/* 2ª silhueta: azul-esverdeado, atrás da azul e um pouco mais afastada */
.hero__ghost--teal {
  left: var(--ghost2-x, 2.2%); top: calc(var(--ghost2-y, -1.1%) + 10px);   /* um pouco além da azul */
  background: linear-gradient(170deg, #3fe0e8 0%, #14a9c4 45%, #0b6c8c 100%);
}

/* ---------- NÉVOA (mesma técnica do skyrimserverlist.com.br) ----------
   Cada .fog-puff é uma "nuvem" oval: caixa com máscara radial (borda some
   aos poucos). Dentro, .fog-drift tem 2x a largura com a textura repetida
   2 vezes e anda -50% em loop linear bem lento (95–190s), então a fumaça
   flui sem emenda. Puffs vizinhos andam em sentidos opostos.
   - .fog-set (dentro do fundo): 2 nuvens entre o fundo e o hangar da frente
   - .fog-set--base: 4 nuvens na base, por cima do hangar, atrás do personagem
   Texturas: assets/fog-a.webp e fog-b.webp (feitas do vídeo de fumaça). */
.fog-set { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fog-set--front { z-index: 2; }   /* mesma camada do personagem, mas vem depois no HTML: fica por cima */
.fog-puff {
  position: absolute; overflow: hidden;
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 35%, transparent 100%);
          mask-image: radial-gradient(50% 50% at 50% 50%, #000 35%, transparent 100%);
}
.fog-drift {
  position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background-size: 50% 100%; background-repeat: repeat;
  animation: fog-drift 150s linear infinite;
  will-change: transform;
}
.fog-drift--a { background-image: url("assets/fog-a.webp"); }
.fog-drift--b { background-image: url("assets/fog-b.webp"); }
@keyframes fog-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fog-drift { animation: none; } }

/* ---------- FEIXES DAS LUZES DO TETO (lights.js) ----------
   SVG do tamanho da imagem da frente; cada .beam = feixe + brilho borrado
   na base + "tampa" escura que cobre a lâmpada quando ela apaga.
   .is-off = apagada; .is-dim = fraca. */
.hero__beams { position: absolute; pointer-events: none; overflow: visible; will-change: transform; }   /* camada própria: a piscada não redesenha o cenário inteiro */
.beam__light { mix-blend-mode: screen; transition: opacity .04s linear; }
.beam__dark { opacity: 0; transition: opacity .04s linear; }
.beam.is-off .beam__light { opacity: 0; }
.beam.is-off .beam__dark { opacity: .9; }
.beam.is-dim .beam__light { opacity: .4; }
.beam.is-dim .beam__dark { opacity: .45; }

/* ---------- SIRENE VERMELHA atrás do balão ----------
   Feixe largo que varre na horizontal (esq. → dir.) + "banho" que pulsa
   forte → fraco, como a luz de um giroflex passando pela parede.
   mix-blend-mode: screen só clareia o cenário; a máscara apaga as bordas. */
/* as 3 sirenes ficam num só grupo: a máscara e a mistura de luz (screen)
   são feitas UMA vez para o grupo, e não 3 vezes (mais leve) */
.hero__sirens {
  position: absolute; left: 0; top: 0; width: 72%; height: 100%;
  pointer-events: none; overflow: hidden;   /* sem mix-blend (pesado): cor com transparência normal */
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 60%, transparent 100%),
                linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
  mask: linear-gradient(90deg, #000 0%, #000 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero__siren {
  position: absolute; inset: 0; pointer-events: none;
  --siren-speed: 1.05s;              /* tempo de uma volta da sirene */
}
.hero__siren::before, .hero__siren::after { will-change: transform, opacity; }
.hero__siren::before {               /* feixe que gira */
  content: ""; position: absolute; top: -15%; bottom: -15%; width: 80%; left: -80%;
  background: radial-gradient(ellipse 50% 60% at 50% 50%,
              rgba(255, 30, 30, .55) 0%, rgba(220, 0, 20, .28) 40%, transparent 72%);
  animation: sirenSweep var(--siren-speed) linear infinite;
}
.hero__siren::after {                /* banho de luz: forte → fraco */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 95% 80% at 30% 45%, rgba(255, 20, 30, .32), rgba(150, 0, 10, .12) 60%, transparent 88%);
  animation: sirenPulse var(--siren-speed) ease-in-out infinite;
}
/* 3ª sirene: AZUL, na parte de cima da mesma região, com ritmo próprio
   (mais lenta e com duração "quebrada", então nunca sincroniza com as vermelhas) */
.hero__siren--blue { --siren-speed: 1.63s; }
.hero__siren--blue::before {
  top: -35%; bottom: 35%;
  background: radial-gradient(ellipse 50% 60% at 50% 50%,
              rgba(60, 110, 255, .55) 0%, rgba(20, 60, 230, .28) 40%, transparent 72%);
  animation-delay: -.37s;
}
.hero__siren--blue::after {
  background: radial-gradient(ellipse 90% 55% at 40% 18%, rgba(50, 100, 255, .32), rgba(10, 30, 160, .12) 60%, transparent 85%);
  animation-delay: -.37s;
}
/* 2ª sirene: gira no sentido contrário, meia volta defasada, foco mais embaixo */
.hero__siren--b::before {
  top: 10%; bottom: -35%;
  animation-direction: reverse; animation-delay: calc(var(--siren-speed) * -.5);
}
.hero__siren--b::after {
  background: radial-gradient(ellipse 95% 70% at 55% 70%, rgba(255, 20, 30, .28), rgba(150, 0, 10, .1) 60%, transparent 88%);
  animation-delay: calc(var(--siren-speed) * -.5);
}
@keyframes sirenSweep {
  0%   { transform: translateX(0);    opacity: 0; }
  15%  { opacity: .55; }
  45%  { opacity: 1; }
  80%  { opacity: .35; }
  100% { transform: translateX(260%); opacity: 0; }
}
@keyframes sirenPulse {
  0%, 100% { opacity: .15; }
  40%      { opacity: 1; }          /* passou de frente: vermelho forte */
  60%      { opacity: .55; }
  80%      { opacity: .25; }        /* virou de costas: fraco */
}
@media (prefers-reduced-motion: reduce) {
  .hero__siren::before { animation: none; opacity: 0; }
  .hero__siren::after { animation: none; opacity: .5; }
}

/* glitch sutil nas silhuetas: rajadas curtas de ~0,3s, com longas pausas.
   Fica no wrap (filter/clip-path/margin), pois o transform é do parallax (hero.js) */
.hero__ghost-wrap { animation: ghostGlitch 6.5s steps(1, end) infinite; }
.hero__ghost-wrap--teal { animation-delay: .18s; }   /* mesmo ciclo da azul: falha logo em seguida dela */
@keyframes ghostGlitch {
  0%, 90%, 100% { clip-path: none; translate: 0 0; filter: none; opacity: 1; }
  91%   { clip-path: inset(18% 0 62% 0); translate: 6px 0;
          filter: drop-shadow(3px 0 rgba(255,40,120,.55)) drop-shadow(-3px 0 rgba(60,240,255,.55)); }
  92.5% { clip-path: inset(55% 0 20% 0); translate: -5px 0; opacity: .8; }
  94%   { clip-path: none; translate: 2px 0; opacity: .55;
          filter: drop-shadow(2px 0 rgba(255,40,120,.45)) drop-shadow(-2px 0 rgba(60,240,255,.45)); }
  95%   { clip-path: inset(0 0 70% 0); translate: -3px 0; opacity: 1; filter: none; }
  96%   { clip-path: none; translate: 0 0; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) { .hero__ghost-wrap { animation: none; } }

@media (max-width: 900px) {
  .hero { --ch: min(88vh, 1000px); --cr: -12vw; }
}
@media (max-width: 560px) {
  .hero { --ch: 78vh; --cr: -28vw; }
}

/* ---------------- Balão de fala do operador (step form) ----------------
   Mesmo padrão dos cards do site de referência, nas cores MAX-TAC:
   fundo #080e19, filete de 3px no topo, canto superior direito chanfrado,
   texto em Saira Semi Condensed e botão em Rajdhani (chanfro + marquinha "_").
   O rabicho sai da lateral direita, perto do topo, apontando p/ o personagem.
   .talk-anchor = posição + parallax (hero.js); .talk = animação de entrada. */
:root {
  --card-bg: #080e19;
  --card-accent: #5a5fff;          /* filete / botão (azul MAX-TAC claro) */
  --card-accent-dk: #2c2fa6;       /* sombra interna do botão */
  --card-text: #c9d3dc;
  --card-muted: #8b98a5;
  --f-body: "Saira Semi Condensed", system-ui, sans-serif;
  --f-btn: "Rajdhani", system-ui, sans-serif;
}
.talk-anchor {
  position: absolute; z-index: 3; will-change: transform;
  /* borda direita do balão perto do ombro/cabeça; topo na altura do capacete */
  right: calc(var(--cr) + var(--cw) * var(--talk-x, .74) + 30px);
  top: calc(102vh - var(--ch) + var(--ch) * var(--talk-y, .1));
  /* largura: da margem esquerda até perto do personagem (ocupa o centro da seção) */
  left: clamp(24px, 9vw, 220px);
  pointer-events: none; will-change: transform;
}
.talk {
  opacity: 0; transform: translate(14px, 10px) scale(.97); transform-origin: 100% 0;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.9,.25,1.15);
}
.talk.is-in { opacity: 1; transform: none; pointer-events: auto; }

.talk__bubble {
  position: relative; isolation: isolate; cursor: default;
  padding: clamp(28px, 3vw, 52px) clamp(28px, 3.2vw, 56px);
  min-height: clamp(180px, 26vh, 320px);
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.55));
}
.talk__bubble::before {                        /* corpo do card (chanfrado) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--card-bg);
  box-shadow: inset 0 3px 0 var(--card-accent);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.talk__tail {                                  /* rabicho → personagem */
  position: absolute; left: calc(100% - 1px); top: 30px; width: 60px; height: 50px; overflow: visible;
}
.talk__tail .f { fill: var(--card-bg); }
.talk__tail .s { fill: none; stroke: var(--card-accent); stroke-width: 2; stroke-linejoin: miter; }
.talk__text {
  min-height: 3em; margin: 0; white-space: pre-line;
  font: 400 clamp(19px, 1.75vw, 32px)/1.5 var(--f-body);
  color: var(--card-text);
}
.talk.is-typing .talk__text::after,
.talk.is-sending .talk__text::after {
  content: ""; display: inline-block; width: .45em; height: 1em; margin-left: 3px; vertical-align: -.12em;
  background: var(--card-accent); animation: talkBlink .8s steps(2, jump-none) infinite;
}
@keyframes talkBlink { 50% { opacity: .2; } }

/* resposta do usuário: card no mesmo padrão, surge embaixo do balão */
.talk__form {
  position: relative; isolation: isolate;
  margin-top: 16px; padding: clamp(18px, 1.8vw, 30px) clamp(20px, 2.2vw, 40px) clamp(16px, 1.5vw, 26px);
  display: grid; gap: 12px;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s .4s;
}
.talk__form::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--card-bg);
  box-shadow: inset 0 3px 0 var(--card-accent);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.talk__form.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.talk__you {                                   /* rótulo só para leitores de tela */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.talk__row { display: grid; gap: 12px; }
.talk__input, .talk__area {
  width: 100%; min-width: 0; padding: clamp(13px, 1.1vw, 18px) 16px;
  font: 400 clamp(17px, 1.3vw, 22px)/1.4 var(--f-body); color: #eef2f6;
  background: rgba(255,255,255,.04); border: 0; border-bottom: 2px solid rgba(90,95,255,.45);
  outline: none; resize: none;
  transition: border-color .2s, background .2s;
}
.talk__input::placeholder, .talk__area::placeholder { color: var(--card-muted); }
.talk__input:focus, .talk__area:focus { border-bottom-color: var(--card-accent); background: rgba(90,95,255,.08); }
.talk__send {                                  /* igual ao botão do card de referência */
  position: relative; height: clamp(52px, 4vw, 64px); padding: 0 26px 0 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 600 clamp(16px, 1.15vw, 20px)/1 var(--f-btn); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--card-accent); border: 0;
  box-shadow: inset 0 -4px 0 var(--card-accent-dk);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: filter .2s;
}
.talk__send::before {                          /* marquinha "_" */
  content: ""; position: absolute; left: 9px; bottom: 9px; width: 12px; height: 2px; background: rgba(255,255,255,.85);
}
.talk__send span { display: inline-block; transition: transform .2s; }
.talk__send:hover { filter: brightness(1.15); }
.talk__send:hover span { transform: translateX(4px); }
.talk__send:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.talk__send:disabled { cursor: default; }
.talk__err { font: 600 13px/1.2 var(--f-body); color: var(--alert); }
.talk__err:empty { display: none; }
.talk__hint { font: 400 clamp(13px, .9vw, 15px)/1.2 var(--f-body); color: var(--card-muted); }
.talk__hint kbd { font: 600 12px var(--f-body); color: #a9adff; }
.talk__form.is-shake { animation: talkShake .35s; }
/* Turnstile: invisível; só abre espaço quando a Cloudflare pede um clique */
.talk__bot { height: 0; overflow: hidden; }
.talk__bot.is-open { height: auto; overflow: visible; margin-top: 14px; }
@keyframes talkShake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

@media (max-width: 900px) {
  .talk-anchor { left: 4vw; }
}
/* celular: balão embaixo, largura cheia, sem rabicho lateral */
@media (max-width: 560px) {
  .talk-anchor { left: 14px; right: 14px; top: auto; bottom: 110px; }
  .talk__tail { display: none; }
  .talk__bubble { padding: 20px 20px; }
  .talk__bubble { min-height: 0; }
  .talk__text { min-height: 0; font-size: 17px; }
  .talk__form { padding: 14px 14px 12px; }
  .talk__hint { display: none; }
}
/* ---------------- Glitch do balão ----------------
   Sempre: scanlines bem fracas por cima do card.
   Rajadas (classe .is-glitch, disparada pelo form.js em intervalos aleatórios):
   tremida + RGB split no texto + uma fatia do texto deslocada (cópia via
   data-text) + faixa de luz. --g1/--g2/--gx são sorteados a cada rajada. */
.talk__text { position: relative; }
.talk__bubble::after {                         /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.talk__text::before {                          /* cópia fatiada do texto */
  content: attr(data-text); position: absolute; inset: 0; white-space: pre-line;
  color: #b9beff; background: var(--card-bg);
  opacity: 0; pointer-events: none;
}
.talk__bubble.is-glitch { animation: gJitter .32s steps(1) both; }
.talk__bubble.is-glitch::before {
  box-shadow: inset 0 3px 0 var(--card-accent), inset 3px 0 0 rgba(255,40,90,.55), inset -3px 0 0 rgba(0,230,255,.55);
}
.talk__bubble.is-glitch::after {
  background:
    linear-gradient(transparent var(--g2), rgba(90,95,255,.28) var(--g2), rgba(90,95,255,.28) calc(var(--g2) + 5%), transparent calc(var(--g2) + 5%)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px);
  animation: gBand .32s steps(1) both;
}
.talk__bubble.is-glitch .talk__text { animation: gRGB .32s steps(1) both; }
.talk__bubble.is-glitch .talk__text::before { opacity: 1; animation: gSlice .32s steps(1) both; }
.talk__bubble.is-glitch .talk__tail { animation: gJitter .32s steps(1) reverse both; }

@keyframes gJitter {
  0%   { transform: none; }
  15%  { transform: translate(calc(var(--gx) * .5), 1px) skewX(-2deg); }
  30%  { transform: translate(calc(var(--gx) * -.35), -1px); }
  45%  { transform: translate(2px, 0) skewX(1.5deg); }
  62%  { transform: translate(calc(var(--gx) * .2), 1px); }
  80%  { transform: translate(-1px, 0); }
  100% { transform: none; }
}
@keyframes gRGB {
  0%   { text-shadow: 3px 0 rgba(255,40,90,.8), -3px 0 rgba(0,230,255,.8); }
  33%  { text-shadow: -4px 0 rgba(255,40,90,.8), 4px 0 rgba(0,230,255,.8); }
  66%  { text-shadow: 1px 0 rgba(255,40,90,.7), -2px 0 rgba(0,230,255,.7); }
  100% { text-shadow: none; }
}
@keyframes gSlice {
  0%   { clip-path: inset(var(--g1) 0 calc(100% - var(--g1) - 14%) 0); transform: translateX(var(--gx)); }
  30%  { clip-path: inset(var(--g2) 0 calc(100% - var(--g2) - 9%) 0); transform: translateX(calc(var(--gx) * -1)); }
  60%  { clip-path: inset(calc(var(--g1) + 18%) 0 calc(82% - var(--g1) - 6%) 0); transform: translateX(calc(var(--gx) * .6)); }
  85%  { clip-path: inset(0 0 100% 0); transform: none; }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes gBand {
  0%, 100% { opacity: 1; transform: none; }
  40% { opacity: .5; transform: translateY(-6px); }
  70% { opacity: 1; transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .talk, .talk__form { transition: none; }
}

.hero__content { position: relative; text-align: center; }
/* logo/texto provisórios escondidos: o fundo já traz a marca MAX-TAC.
   As "etapas" do hero entram aqui depois. */
.hero__content { display: none; }
.hero__logo { width: min(46vw, 420px); display: block; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.hero__tag {
  margin-top: 28px; font-family: var(--hud); letter-spacing: .3em; font-size: 12px;
  text-transform: uppercase; opacity: .7;
}

/* ---------------- GATE ---------------- */
.gate { position: fixed; inset: 0; z-index: 100; pointer-events: all; overflow: hidden; }
.gate.is-done { pointer-events: none; }
.gate__stage { position: absolute; inset: 0; will-change: transform; }

/* Versão 3D: o canvas WebGL substitui a porta em DOM */
.gate__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gate.is-3d .gate__stage { display: none; }
.gate.is-3d:not(.is-ready) { background: #0b0d20; }   /* até o 1º frame 3D */

/* Portas: cada folha cobre a tela toda e é recortada (clip-path via JS)
   pela junta em zigue-zague que atravessa o círculo. */
/* .door move + projeta sombra; .door__clip recorta a folha.
   (a sombra fica no pai porque clip-path também cortaria o drop-shadow) */
.door { position: absolute; inset: 0; will-change: transform, filter; }
.door__clip { position: absolute; inset: 0; }
.door--left { z-index: 2; } /* leva o círculo inteiro, que fica por cima da junta */
.gate.is-opening .door { filter: drop-shadow(0 0 40px rgba(0,0,0,.85)) drop-shadow(0 0 8px rgba(0,0,0,.9)); }

/* Textura grão para metal (ruído SVG) — reaproveitada em vários elementos */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.1 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-coarse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='4' seed='7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.door__skin {
  position: absolute; inset: 0;
  background:
    /* rebites nas bordas externas */
    radial-gradient(circle at 45% 40%, #6a70b0 0 1.2px, #2b3062 2.4px, #0a0b1a 3.2px, transparent 4px) 6px 0 / 22px 46px repeat-y,
    radial-gradient(circle at 45% 40%, #6a70b0 0 1.2px, #2b3062 2.4px, #0a0b1a 3.2px, transparent 4px) calc(100% - 6px) 0 / 22px 46px repeat-y,
    /* luz central azul */
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(53,56,196,.26), transparent 70%),
    /* metal escovado azulado */
    linear-gradient(180deg, #232850, #161a38 40%, #0e1128 75%, #0a0c1e);
}
/* reflexo diagonal suave (luz de cima, como chapa metálica) */
.door__skin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(165deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 22%, transparent 38%,
      transparent 62%, rgba(255,255,255,.035) 74%, transparent 90%),
    radial-gradient(ellipse 120% 50% at 30% -10%, rgba(190,195,255,.12), transparent 60%);
  mix-blend-mode: screen;
}
/* grão + manchas do metal */
.door__skin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain) 0 0 / 300px 300px, var(--grain-coarse) 0 0 / 900px 500px;
  mix-blend-mode: normal; opacity: .2;
}

/* Arranhões (canvas gerado no JS) — por cima de toda a chapa e detalhes */
.scratches { /* <canvas> desenhado no JS */
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  object-fit: cover; display: block;
  opacity: .85;
}

/* Faixas zebradas superior e inferior (rebaixadas na chapa) */
.band {
  position: absolute; left: 5vw; right: 5vw; height: clamp(18px, 3.4vh, 30px);
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), transparent 35%, transparent 75%, rgba(255,255,255,.12)),
    repeating-linear-gradient(-45deg, var(--brand) 0 14px, #d9dbf5 14px 28px);
  box-shadow:
    inset 0 3px 5px rgba(0,0,0,.6),            /* borda superior afunda */
    0 0 0 3px #070818,                          /* moldura */
    0 1px 0 4px rgba(170,175,255,.22),          /* fio de luz na aresta de baixo */
    0 -1px 0 4px rgba(0,0,0,.55);               /* sombra na aresta de cima */
}
.band::after { /* desgaste */
  content: ""; position: absolute; inset: 0; background: var(--grain) 0 0 / 200px 200px;
  mix-blend-mode: multiply; opacity: .5;
}
.band--top { top: 4.5vh; }
.band--bottom { bottom: 4.5vh; }

/* Grades de ventilação: furos com sombra interna + brilho na borda inferior */
.vent {
  position: absolute; width: 16vw; height: 9vh;
  background:
    radial-gradient(circle at 50% 38%, #000 0 2px, transparent 2.6px) 0 0 / 16px 16px,
    radial-gradient(circle at 50% 50%, rgba(180,185,255,.28) 0 2.6px, transparent 3.2px) 0 1px / 16px 16px;
}
.vent--tl { top: 15vh; left: 9vw; }
.vent--tr { top: 15vh; right: 9vw; }
.vent--bl { bottom: 15vh; left: 9vw; }
.vent--br { bottom: 15vh; right: 9vw; }

/* Placas laterais em relevo (luz de cima, sombra embaixo) */
.plate {
  position: absolute; top: 50%; width: 3.2vw; height: 34vh; transform: translateY(-50%);
  border-radius: 4px;
  background: var(--grain) 0 0 / 200px 200px, linear-gradient(180deg, #2a2f60, #141734 60%, #0d0f24);
  background-blend-mode: overlay, normal;
  box-shadow:
    inset 0 1px 0 rgba(190,195,255,.35), inset 1px 0 0 rgba(190,195,255,.12),
    inset 0 -3px 5px rgba(0,0,0,.55),
    0 8px 14px rgba(0,0,0,.65), 0 2px 3px rgba(0,0,0,.8);
}
.plate--l { left: 3vw; }
.plate--r { right: 3vw; }

/* Painéis chanfrados em relevo (SVG gerado no JS) — luz vindo de cima */
.relief { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rl-groove     { fill: none; stroke: #020310; stroke-width: 3.2; stroke-linejoin: miter; opacity: .95; }
.rl-groove-lit { fill: none; stroke: rgba(170,175,255,.22); stroke-width: 1.2; stroke-linejoin: miter; }
.rl-shadow     { fill: rgba(0,0,0,.62); filter: url(#fRelief); }
.rl-lit        { fill: rgba(205,210,255,.34); }
.rl-face       { fill: url(#gPanel); }
.rl-edge       { fill: none; stroke: rgba(0,0,0,.5); stroke-width: 1; }
.rl-slot       { fill: #03040d; }
.rl-slot-lit   { fill: rgba(170,175,255,.2); }
.rl-bar        { fill: url(#gBar); }
.rl-screw      { fill: url(#gScrew); stroke: rgba(0,0,0,.6); stroke-width: .8; }
.rl-screw-cut  { stroke: rgba(0,0,0,.75); stroke-width: 1.1; }
.rl-text, .rl-text-sh {
  font-family: "Chakra Petch", var(--hud), sans-serif; font-weight: 600; letter-spacing: .14em;
}
.rl-text       { fill: rgba(228,231,255,.72); }
.rl-text--dim  { fill: rgba(200,205,255,.48); font-weight: 500; }
.rl-text-sh    { fill: rgba(0,0,0,.7); }
.rl-hazard     { fill: url(#pHazard); opacity: .8; }

/* Rebaixo circular em volta da trava */
.recess {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--lock) * 1.5); height: calc(var(--lock) * 1.5);
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--grain) 0 0 / 220px 220px, radial-gradient(circle at 50% 40%, #11142e 55%, #070816 100%);
  background-blend-mode: overlay, normal;
  box-shadow:
    inset 0 18px 30px rgba(0,0,0,.9),            /* fundo afundado, luz de cima */
    inset 0 -3px 0 rgba(170,175,255,.18),
    0 0 0 8px #1d2148,                           /* anel de borda */
    0 -1px 0 9px rgba(210,215,255,.35),          /* chanfro iluminado em cima */
    0 2px 0 10px rgba(0,0,0,.6),                 /* chanfro escuro embaixo */
    0 0 0 20px #10132c,
    0 14px 30px 20px rgba(0,0,0,.45);
}

/* Canal horizontal atravessando o centro (sulco com luz) */
.rail {
  position: absolute; top: 50%; left: 2vw; right: 2vw; height: 6px; margin-top: -3px; border-radius: 3px;
  background: #04050d;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 1px 0 rgba(170,175,255,.2), 0 -1px 0 rgba(0,0,0,.6);
}
.rail::after {
  content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(90,95,255,.8) 15%, rgba(90,95,255,.8) 85%, transparent);
  box-shadow: 0 0 8px rgba(90,95,255,.6);
}

/* ---------------- Junta em zigue-zague (SVG via JS) ---------------- */
.seam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.seam__groove { fill: none; stroke: #01020a; stroke-width: 5; stroke-linejoin: miter; }
.seam__edge   { fill: none; stroke: rgba(170,175,255,.22); stroke-width: 1; transform: translate(1.5px, 1.5px); }
.seam__glow {
  fill: none; stroke: var(--alert); stroke-width: 1.6; stroke-linejoin: miter;
  filter: drop-shadow(0 0 4px var(--alert)) drop-shadow(0 0 10px var(--alert));
  opacity: .7; transition: stroke .3s, filter .3s;
}
.gate.is-granted .seam__glow {
  stroke: var(--brand-hi); opacity: 1;
  filter: drop-shadow(0 0 4px var(--brand-hi)) drop-shadow(0 0 14px var(--brand-hi));
}
.seam__burst {
  fill: none; stroke: #fff; stroke-width: 3; opacity: 0; stroke-linejoin: miter;
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 24px var(--brand-hi)) drop-shadow(0 0 60px var(--brand-hi));
}

/* ---------------- TRAVA ---------------- */
.lock {
  position: absolute; top: 50%; left: 50%; width: var(--lock); height: var(--lock);
  transform: translate(-50%, -50%);
}
.lock svg { position: relative; width: 100%; height: 100%; overflow: visible; display: block; } /* acima da sombra ::before */
.lock--recv::before { display: none; }

/* Núcleo: apagado durante o carregamento, acende em neon quando o anel completa */
.core-logo { opacity: .3; transition: opacity .2s; }
.core-lit  { opacity: 0; }
.gate.is-lit .core-lit { animation: core-on 1.1s ease-out forwards; }
.gate.is-lit .core-logo {
  opacity: 1;
  animation: neon-on 1.1s linear forwards;
}
/* liga como uma lâmpada neon: pisca, falha e firma num brilho suave */
@keyframes neon-on {
  0%   { opacity: .3; filter: none; }
  8%   { opacity: 1;   filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #8a8eff); }
  14%  { opacity: .5;  filter: none; }
  22%  { opacity: 1;   filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #8a8eff); }
  28%  { opacity: .6;  filter: drop-shadow(0 0 1px #fff); }
  40%, 100% { opacity: 1; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px rgba(170,175,255,.9)) drop-shadow(0 0 16px rgba(90,95,255,.8)); }
}
@keyframes core-on {
  0% { opacity: 0; } 8% { opacity: .9; } 14% { opacity: .2; } 22% { opacity: 1; } 28% { opacity: .5; } 40%, 100% { opacity: 1; }
}
.lock::before { /* sombra projetada da trava */
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.75) 55%, transparent 70%);
}

.seg { fill: #1b1e3d; transition: fill .12s; }
.seg.on { fill: var(--alert); filter: url(#fGlow); }
.gate.is-granted .seg.on { fill: var(--brand-hi); }
.tick { stroke: #3c4178; stroke-width: 1.5; }
.tick--major { stroke: #7a80d6; stroke-width: 2.5; }
.core-ring { fill: none; stroke: var(--alert); stroke-width: 3; filter: url(#fGlow); opacity: .7; transition: stroke .3s; }
.gate.is-granted .core-ring { stroke: var(--brand-hi); opacity: 1; }

/* Travas diagonais */
.bolt-led { fill: var(--alert); filter: url(#fGlow); transition: fill .3s; }
.gate.is-granted .bolt-led { fill: var(--brand-hi); }

/* Partículas */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; } /* acima da folha esquerda */
.smoke {
  position: fixed; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(215,220,245,.55) 0%, rgba(170,178,230,.22) 40%, transparent 70%);
  filter: blur(6px);
}
.spark {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 2px var(--brand-hi);
}
.steam {
  position: absolute; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; /* left/top via JS (sobre a junta) */
  background: radial-gradient(circle, rgba(220,225,255,.5), rgba(160,170,255,.15) 45%, transparent 70%);
  filter: blur(10px);
}

.flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }

/* ---------------- Botão de som ---------------- */
.mute {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  font: 600 11px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); background: rgba(5,6,15,.55); border: 1px solid rgba(255,255,255,.3);
  padding: 10px 14px; cursor: pointer; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 9px;
}
.mute[aria-pressed="true"] { opacity: .5; }

/* aviso discreto: navegador bloqueou o som (some no 1º clique/toque) */
.sound-hint {
  position: fixed; left: 50%; bottom: 28px; z-index: 210;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  font: 600 11px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); background: rgba(5,6,15,.6);
  border: 1px solid rgba(90,95,255,.7); box-shadow: 0 0 18px rgba(53,56,196,.45);
  padding: 11px 16px; backdrop-filter: blur(6px); white-space: nowrap;
  transition: opacity .35s, transform .35s;
}
.sound-hint.is-visible {
  opacity: 1; transform: translate(-50%, 0);
  animation: hint-pulse 1.6s ease-in-out infinite;
}
@keyframes hint-pulse {
  50% { box-shadow: 0 0 4px rgba(53,56,196,.2); border-color: rgba(90,95,255,.35); }
}

/* ---------------- Botão de replay (dev) ---------------- */
.replay {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  font: 600 12px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); background: rgba(5,6,15,.55); border: 1px solid rgba(255,255,255,.35);
  padding: 12px 16px; cursor: pointer; backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
body:not(.is-loading) .replay { opacity: 1; pointer-events: auto; }
.replay:hover { background: var(--white); color: var(--brand); }

@media (max-width: 700px) {
  :root { --lock: min(74vmin, 330px); }
  .vent, .plate { display: none; }
  .band { left: 4vw; right: 4vw; }
}


/* =========================================================
   FINAL: tiro na tela → TV antiga desligando (ending.js)
   ========================================================= */
.shot-fx { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.shot-muzzle {                                   /* clarão na boca da arma */
  position: absolute; left: var(--mx); top: var(--my);
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  background:
    radial-gradient(circle, #fff 0 5%, #fff4c4 10%, #ffb444 20%, rgba(255,110,30,.55) 33%, transparent 58%),
    conic-gradient(from 12deg, transparent 0 8%, rgba(255,220,150,.75) 9% 10%, transparent 11% 33%,
      rgba(255,220,150,.7) 34% 35%, transparent 36% 58%, rgba(255,220,150,.75) 59% 60%, transparent 61% 83%,
      rgba(255,220,150,.7) 84% 85%, transparent 86%);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 62%); mask: radial-gradient(circle, #000 30%, transparent 62%);
  mix-blend-mode: screen; opacity: 0;
  animation: shotMuzzle .16s steps(4, end) both;
}
@keyframes shotMuzzle {
  0% { opacity: 1; transform: scale(.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(14deg); }
  100% { opacity: 0; transform: scale(1.4) rotate(20deg); }
}
.shot-flash {                                    /* tela estoura de luz */
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), #fff 0, #fff8e0 30%, #ffe2b0 100%);
  opacity: 0; animation: shotFlash .28s ease-out both;
}
@keyframes shotFlash { 0% { opacity: .9; } 25% { opacity: .55; } 100% { opacity: 0; } }

html.is-shot .hero { animation: shotShake .42s cubic-bezier(.3,.7,.4,1) both; }
@keyframes shotShake {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-14px, 9px) rotate(-.6deg); }
  26% { transform: translate(11px, -7px) rotate(.5deg); }
  42% { transform: translate(-7px, 5px); }
  60% { transform: translate(4px, -3px); }
  80% { transform: translate(-2px, 1px); }
  100% { transform: none; }
}

/* TV de tubo: a imagem vira uma linha, depois um ponto que some */
html.is-tv-off { background: #000; }
html.is-tv-off body {
  transform-origin: 50% 50vh;
  animation: tvOff .75s cubic-bezier(.6,0,.4,1) both;
}
@keyframes tvOff {
  0%   { transform: none; filter: none; }
  40%  { transform: scale(1.02, .004); filter: brightness(5) saturate(0); }
  75%  { transform: scale(.004, .004); filter: brightness(10) saturate(0); opacity: 1; }
  100% { transform: scale(0, 0); filter: brightness(10); opacity: 0; }
}
html.is-tv-off::after {                          /* pontinho branco final */
  content: ""; position: fixed; left: 50%; top: 50%; z-index: 10000;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 22px 8px rgba(200,210,255,.8);
  opacity: 0; animation: tvDot 1.2s ease-out both;
}
@keyframes tvDot {
  0%, 52% { opacity: 0; transform: scale(.3); }
  62% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(.2); }
}
html.is-closed body { visibility: hidden; }

/* TV de tubo com defeito (antes de desligar) */
html.is-crt { background: #000; }
html.is-crt body { filter: url(#crtGlitch) brightness(var(--crt-b, 1)) contrast(1.15) saturate(1.2); }
.crt {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden;
  box-shadow: inset 0 0 18vmin rgba(0,0,0,.85);         /* bordas escuras do tubo */
}
.crt canvas {                                            /* estática */
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; mix-blend-mode: screen; opacity: .55;
}
.crt::before {                                           /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.38) 0 2px, transparent 2px 4px);
}
.crt::after {                                            /* faixa clara rolando */
  content: ""; position: absolute; left: 0; right: 0; top: -25vh; height: 22vh; z-index: 2;
  background: linear-gradient(transparent, rgba(255,255,255,.14) 45%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.14) 55%, transparent);
  animation: crtRoll .45s linear infinite;
}
@keyframes crtRoll { to { transform: translateY(135vh); } }

/* =========================================================
   Tela "Clique para entrar" (antes da porta)
   ========================================================= */
.enter {
  position: fixed; inset: 0; z-index: 300; cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(53,56,196,.28), rgba(4,5,13,.92) 62%), rgba(4,5,13,.6);
  transition: opacity .6s ease, visibility .6s;
}
.enter.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.enter__box { text-align: center; user-select: none; }
.enter__logo { width: min(260px, 52vw); filter: drop-shadow(0 0 18px var(--brand-glow)); }
.enter__cta {
  margin: 0; font-family: var(--hud); font-weight: 700;
  font-size: clamp(16px, 2.2vw, 22px); letter-spacing: .32em; color: var(--white);
  padding: 14px 26px 14px calc(26px + .32em); border: 1px solid rgba(90,95,255,.7);   /* compensa o espaçamento após a última letra */
  background: rgba(53,56,196,.18); box-shadow: 0 0 24px rgba(90,95,255,.35), inset 0 0 18px rgba(90,95,255,.2);
  animation: enterPulse 1.6s ease-in-out infinite;
}
.enter:hover .enter__cta { background: rgba(53,56,196,.4); }
.enter__sub { margin-top: 14px; font-family: var(--hud); font-size: 12px; letter-spacing: .22em; color: rgba(244,245,255,.55); text-transform: uppercase; }
@keyframes enterPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .enter__cta { animation: none; } }

/* =========================================================
   Lentes verdes do capacete: foco de luz do tamanho de cada lente,
   pulsando forte/fraco (cada lente com sua fase)
   ========================================================= */
.hero__eyes {
  position: absolute; inset: 0; pointer-events: none;
  rotate: var(--char-rot, -5deg); transform-origin: 50% 100%;   /* mesma inclinação do personagem */
}
.hero__eye {
  position: absolute; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(235,255,245,.95) 0%, rgba(90,255,190,.75) 28%, rgba(40,230,160,.35) 55%, rgba(40,230,160,0) 72%);
  mix-blend-mode: screen;
  animation: eyePulse 2.4s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes eyePulse {
  0%, 100% { opacity: .25; transform: scale(.9); }
  50%      { opacity: 1;   transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .hero__eye { animation: none; opacity: .7; } }

/* ---------- ícones de som (botão Som / aviso) ---------- */
.mute__ico { display: inline-flex; width: 18px; height: 18px; }
.snd { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.snd__spk { fill: rgba(90,95,255,.35); stroke: #8a8eff; }
.mute.is-on .snd__spk { fill: #5a5fff; stroke: #c9cbff; filter: drop-shadow(0 0 4px rgba(90,95,255,.9)); }
.snd__w1, .snd__w2 { stroke: #c9cbff; }
.mute.is-on .snd__w1 { animation: sndWave 1.4s ease-in-out infinite; }
.mute.is-on .snd__w2 { animation: sndWave 1.4s ease-in-out .25s infinite; }
.snd__x { stroke: #ff3b4e; filter: drop-shadow(0 0 3px rgba(255,59,78,.7)); }
.snd--hint { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
@keyframes sndWave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mute.is-on .snd__w1, .mute.is-on .snd__w2 { animation: none; } }

/* ---------- crédito (canto inferior esquerdo, bem sutil) ---------- */
.credit {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  font: 600 11px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); text-decoration: none; opacity: .2; transition: opacity .3s;
}
.credit:hover, .credit:focus-visible { opacity: .5; }
body.is-loading .credit { opacity: 0; pointer-events: none; }
