/* ============================================================
   J.A.R.V.I.S. — HOLOGRAMA VIVO (visual novo, 10/10/2026)
   Nada de caixa: a informação é luz solta no ar, com profundidade, que flutua, acompanha o
   mouse e se materializa quando a voz chega nela. Vale com <html data-visual="holo2">;
   Ajustes → Aparência → Visual → "Clássico" volta ao que era.
   Tudo o que se mexe anima só transform/opacity (a placa de vídeo do notebook agradece).
   ============================================================ */

@property --revela {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 130%;
}

/* ------------------------------------------------------------ emblema (logo) */
.emblema,
.partida-sub {
  display: none;
}
:root[data-visual='holo2'] .emblema {
  display: block;
  position: relative;
  width: var(--em, 200px);
  height: var(--em, 200px);
  flex: none;
  color: var(--c);
}
.emblema .em-c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  will-change: transform;
}
.emblema .em-c1 {
  stroke-width: 0.8;
  opacity: 0.32;
}
.emblema .em-c2 {
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.5;
  animation: em-gira 40s linear infinite;
}
.emblema .em-c3 {
  stroke-width: 3.4;
  opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(var(--c-rgb), 0.55));
  animation: em-gira 22s linear infinite reverse;
}
.emblema .em-c4 {
  stroke-width: 7;
  opacity: 0.3;
  animation: em-gira 70s linear infinite;
}
.emblema .em-c5 {
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0.75;
  animation: em-gira 95s linear infinite reverse;
}
.emblema .em-nucleo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  height: 26%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, rgba(var(--c-rgb), 0.95) 30%, rgba(var(--c-rgb), 0.28) 56%, transparent 72%);
  box-shadow: 0 0 calc(var(--em, 200px) * 0.2) calc(var(--em, 200px) * 0.04) rgba(var(--c-rgb), 0.32);
  animation: em-pulsa 3.8s ease-in-out infinite;
}
@keyframes em-gira {
  to {
    transform: rotate(360deg);
  }
}
@keyframes em-pulsa {
  50% {
    transform: scale(1.14);
    opacity: 0.82;
  }
}

/* marca no topo: o emblema pequeno no lugar da bolinha */
:root[data-visual='holo2'] .brand-orb {
  width: 34px;
  height: 34px;
  background: none;
  box-shadow: none;
  animation: none;
  display: grid;
  place-items: center;
}
:root[data-visual='holo2'] .emblema--marca {
  --em: 34px;
}
:root[data-visual='holo2'] .brand-name {
  font-weight: 400;
  letter-spacing: 0.42em;
  text-shadow: 0 0 18px rgba(var(--c-rgb), 0.35);
}

/* "Despertando": o emblema no lugar da esfera */
:root[data-visual='holo2'] .boot-orb {
  display: none;
}
:root[data-visual='holo2'] .emblema--boot {
  --em: 148px;
  margin-bottom: 10px;
  animation: em-nasce 1.4s var(--ease) both;
}
@keyframes em-nasce {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-40deg);
    filter: blur(8px);
  }
}

/* ------------------------------------------------------------ partida (tela de início) */
:root[data-visual='holo2'] .partida {
  background:
    radial-gradient(48% 42% at 50% 44%, rgba(var(--c-rgb), 0.075), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(var(--c2-rgb), 0.08), transparent 60%),
    #02040a;
}
:root[data-visual='holo2'] .emblema--partida {
  --em: min(36vmin, 320px);
  position: absolute;
  left: 50%;
  top: 43%;
  translate: -50% -50%;
}
:root[data-visual='holo2'] .app[data-partida='espera'] .emblema--partida {
  animation: em-nasce 2.2s var(--ease) both;
}
:root[data-visual='holo2'] .app[data-partida='espera'] .partida-semente {
  display: none;
}
/* o nome e a frase embaixo do emblema enquanto espera */
:root[data-visual='holo2'] .app[data-partida='espera'] .partida-marca {
  position: absolute;
  top: calc(43% + min(18vmin, 160px) + 4.5vh);
  left: 50%;
  translate: -50% 0;
  opacity: 1;
  font: 300 clamp(20px, 2.8vw, 34px) / 1 var(--font-display);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  white-space: nowrap;
  color: var(--text);
  text-shadow: 0 0 26px rgba(var(--c-rgb), 0.5);
  animation: partida-marca 2.4s var(--ease) 0.5s both;
}
:root[data-visual='holo2'] .app[data-partida='espera'] .partida-sub {
  display: block;
  position: absolute;
  top: calc(43% + min(18vmin, 160px) + 4.5vh + clamp(34px, 4.6vw, 52px));
  left: 50%;
  translate: -50% 0;
  margin: 0;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(var(--c-rgb), 0.5);
  animation: h2-surge 1.6s var(--ease) 1.4s both;
}
:root[data-visual='holo2'] .partida-dica {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(var(--c-rgb), 0.55);
}
/* ligando: o emblema se abre e some enquanto a consciência nasce */
:root[data-visual='holo2'] .app[data-partida='ligando'] .emblema--partida {
  animation: em-abre 1.3s var(--ease) both;
}
@keyframes em-abre {
  to {
    opacity: 0;
    transform: scale(2.8);
    filter: blur(10px);
  }
}
@keyframes h2-surge {
  from {
    opacity: 0;
    filter: blur(6px);
  }
}

/* ------------------------------------------------------------ janelas: holograma solto */
/* a camada acompanha o mouse (--mx, --my de -1 a 1): profundidade de verdade */
:root[data-visual='holo2'] .holo {
  perspective: 1400px;
}
:root[data-visual='holo2'] .holo-item {
  animation: h2-flutua var(--flutua, 8s) ease-in-out var(--fase, 0s) infinite alternate;
}
@keyframes h2-flutua {
  from {
    transform: translate3d(0, -6px, 0) rotate(-0.22deg);
  }
  to {
    transform: translate3d(0, 7px, 0) rotate(0.28deg);
  }
}
:root[data-visual='holo2'] .holo-item[data-lado='direita'] {
  --lado-ry: 9deg;
}
:root[data-visual='holo2'] .holo-item[data-lado='esquerda'] {
  --lado-ry: -9deg;
}
:root[data-visual='holo2'] .holo-item[data-lado='cima'] {
  --lado-rx: 6deg;
}
:root[data-visual='holo2'] .holo-item[data-lado='baixo'] {
  --lado-rx: -5deg;
}

:root[data-visual='holo2'] .holo-vidro {
  /* sem fundo de caixa: só uma névoa escura atrás do texto, sem borda nenhuma */
  background: radial-gradient(115% 95% at 45% 42%, rgba(3, 7, 12, 0.66), rgba(3, 7, 12, 0.3) 62%, transparent 88%) !important;
  -webkit-mask-image: none;
  mask-image: none;
  backdrop-filter: none !important;
  padding: 16px 18px 18px !important;
  transform: perspective(1100px) rotateY(calc(var(--lado-ry, 0deg) + var(--mx, 0) * 6deg)) rotateX(calc(var(--lado-rx, 0deg) + var(--my, 0) * -4deg)) !important;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
:root[data-visual='holo2'] .holo--coluna .holo-vidro,
:root[data-visual='holo2'] .holo-item.em-foco .holo-vidro {
  transform: none !important;
}
/* traço de luz no topo com um brilho que corre de tempos em tempos */
:root[data-visual='holo2'] .holo-vidro::before {
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0 35%, rgba(255, 255, 255, 0.95) 48%, transparent 62% 100%) no-repeat,
    linear-gradient(90deg, rgba(var(--c-rgb), 0.9), rgba(var(--c-rgb), 0.22) 45%, transparent 90%) !important;
  background-size: 260% 100%, 100% 100% !important;
  animation: h2-brilho 7s ease-in-out var(--fase, 0s) infinite;
}
@keyframes h2-brilho {
  0%,
  70% {
    background-position: 140% 0, 0 0;
  }
  100% {
    background-position: -60% 0, 0 0;
  }
}
/* quatro cantos de luz no lugar da moldura */
:root[data-visual='holo2'] .holo-vidro::after {
  --k: 15px;
  --t: 1.5px;
  --cor: rgba(var(--c-rgb), 0.75);
  content: '';
  position: absolute;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  pointer-events: none;
  background:
    linear-gradient(var(--cor), var(--cor)) left top / var(--k) var(--t) no-repeat,
    linear-gradient(var(--cor), var(--cor)) left top / var(--t) var(--k) no-repeat,
    linear-gradient(var(--cor), var(--cor)) right top / var(--k) var(--t) no-repeat,
    linear-gradient(var(--cor), var(--cor)) right top / var(--t) var(--k) no-repeat,
    linear-gradient(var(--cor), var(--cor)) left bottom / var(--k) var(--t) no-repeat,
    linear-gradient(var(--cor), var(--cor)) left bottom / var(--t) var(--k) no-repeat,
    linear-gradient(var(--cor), var(--cor)) right bottom / var(--k) var(--t) no-repeat,
    linear-gradient(var(--cor), var(--cor)) right bottom / var(--t) var(--k) no-repeat;
  filter: drop-shadow(0 0 4px rgba(var(--c-rgb), 0.7));
  animation: h2-cantos 1s var(--ease) both;
}
@keyframes h2-cantos {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
}
:root[data-visual='holo2'] .holo-corpo::after {
  display: none;
}

/* cabeçalho: etiqueta pequena em cima, título grande embaixo */
:root[data-visual='holo2'] .holo-topo {
  flex-wrap: wrap;
  row-gap: 7px;
  margin-bottom: 12px;
  font: 500 0.62em/1 var(--font-mono);
  letter-spacing: 0.3em;
  color: rgba(var(--c-rgb), 0.78);
}
:root[data-visual='holo2'] .holo-topo .holo-idx {
  color: rgba(var(--sinal-rgb), 0.9);
}
:root[data-visual='holo2'] .holo-topo::after {
  order: 2;
}
:root[data-visual='holo2'] .holo-topo .holo-btn {
  order: 3;
}
:root[data-visual='holo2'] .holo-topo b {
  order: 5;
  flex: 1 1 100%;
  font: 300 2.15em/1.12 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  text-shadow: 0 0 22px rgba(var(--c-rgb), 0.38);
}
:root[data-visual='holo2'] .holo-item[data-lado='esquerda'] .holo-topo b {
  text-align: right;
}

/* texto: letra grande, barra de luz ao lado e revelação de cima para baixo */
:root[data-visual='holo2'] .holo-texto {
  font-size: 1.12em;
  line-height: 1.62;
  color: rgba(var(--text-rgb), 0.92);
  text-shadow: 0 0 16px rgba(var(--c-rgb), 0.18);
}
:root[data-visual='holo2'] .holo-item[data-tipo='texto'] .holo-texto,
:root[data-visual='holo2'] .holo-item[data-tipo='alerta'] .holo-texto,
:root[data-visual='holo2'] .holo-item[data-tipo='busca'] .holo-texto {
  border-left: 2px solid rgba(var(--c-rgb), 0.65);
  padding-left: 14px;
  box-shadow: -10px 0 18px -12px rgba(var(--c-rgb), 0.9);
}
:root[data-visual='holo2'] .holo-item.revelando .holo-corpo {
  -webkit-mask-image: linear-gradient(180deg, #000 var(--revela), transparent calc(var(--revela) + 22%));
  mask-image: linear-gradient(180deg, #000 var(--revela), transparent calc(var(--revela) + 22%));
  animation: h2-revela 1.5s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
@keyframes h2-revela {
  from {
    --revela: -22%;
  }
  to {
    --revela: 130%;
  }
}
:root[data-visual='holo2'] .holo-item.tom-alerta .holo-texto {
  border-left-color: rgba(var(--warn-rgb), 0.85);
  box-shadow: -10px 0 18px -12px rgba(var(--warn-rgb), 0.95);
}

/* listas e pesquisa: linhas soltas numeradas, sem grade */
:root[data-visual='holo2'] .holo-linhas {
  counter-reset: h2-linha;
}
:root[data-visual='holo2'] .holo-linhas li {
  counter-increment: h2-linha;
  position: relative;
  border-bottom: 0 !important;
  padding: 8px 6px 8px 0;
  border-radius: 4px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
:root[data-visual='holo2'] .holo-linhas li::before {
  content: counter(h2-linha, decimal-leading-zero);
  flex: none;
  align-self: center;
  min-width: 2.1em;
  font: 500 0.72em/1 var(--font-mono);
  color: rgba(var(--c-rgb), 0.85);
  text-shadow: 0 0 10px rgba(var(--c-rgb), 0.7);
}
:root[data-visual='holo2'] .holo-linhas li::after {
  content: '';
  position: absolute;
  left: 2.1em;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--c-rgb), 0.28), transparent 80%);
}
:root[data-visual='holo2'] .holo-linhas li:hover {
  background: linear-gradient(90deg, rgba(var(--c-rgb), 0.09), transparent);
  transform: translateX(4px);
}
:root[data-visual='holo2'] .holo-linhas b {
  font-weight: 500;
}
:root[data-visual='holo2'] .holo-mini {
  border-radius: 7px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 62%, transparent 100%);
}
:root[data-visual='holo2'] .holo-funil .veia,
:root[data-visual='holo2'] .holo-funil .galho {
  stroke-dasharray: 3 5;
  animation: h2-corre 1.6s linear infinite;
}
@keyframes h2-corre {
  to {
    stroke-dashoffset: -16;
  }
}

/* números: grandes, acesos e contando até o valor */
:root[data-visual='holo2'] .holo-numeros b {
  font: 200 clamp(28px, 10cqi, 60px) / 1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow:
    0 0 20px rgba(var(--c-rgb), 0.6),
    0 0 46px rgba(var(--c-rgb), 0.25);
  font-variant-numeric: tabular-nums;
}
:root[data-visual='holo2'] .holo-numeros > div {
  position: relative;
  padding-left: 12px;
}
:root[data-visual='holo2'] .holo-numeros > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(var(--c-rgb), 0.8), transparent);
}
:root[data-visual='holo2'] .holo-grande {
  text-shadow: none;
  filter: drop-shadow(0 0 26px rgba(var(--c-rgb), 0.5));
}

/* ------------------------------------------------------------ foto: lente holográfica */
:root[data-visual='holo2'] .holo-item.so-imagem .holo-vidro {
  display: flex;
  flex-direction: column;
  background: none !important;
  padding: 10px 6px 4px !important;
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-vidro::after {
  display: none; /* a lente tem anéis próprios */
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-corpo {
  order: 1;
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-topo {
  order: 2;
  justify-content: center;
  text-align: center;
  margin: 14px 0 0;
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-topo::after {
  display: none;
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-topo b {
  text-align: center !important;
  font-size: 2.3em;
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-mira {
  position: relative;
  isolation: isolate;
  margin: 6% 6% 0;
}
:root[data-visual='holo2'] .holo-item.so-imagem .holo-unica,
:root[data-visual='holo2'] .holo-item[data-tipo='pessoa'] .holo-capa {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 40vh;
  object-fit: cover;
  object-position: 50% 24%;
  border: 0 !important;
  -webkit-mask-image: radial-gradient(ellipse 66% 64% at 50% 44%, #000 56%, rgba(0, 0, 0, 0.55) 74%, transparent 96%);
  mask-image: radial-gradient(ellipse 66% 64% at 50% 44%, #000 56%, rgba(0, 0, 0, 0.55) 74%, transparent 96%);
  filter: saturate(0.9) contrast(1.06);
}
/* linhas de varredura e um véu da cor do tema por cima da foto */
:root[data-visual='holo2'] .holo-item.so-imagem .holo-mira::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(var(--c-rgb), 0.075) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(var(--c-rgb), 0.12), transparent 38%, transparent 70%, rgba(var(--c-rgb), 0.1));
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 66% 64% at 50% 44%, #000 56%, transparent 92%);
  mask-image: radial-gradient(ellipse 66% 64% at 50% 44%, #000 56%, transparent 92%);
}
/* anéis em volta do rosto, girando devagar */
:root[data-visual='holo2'] .holo-item.so-imagem .holo-mira::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 108%;
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 8%,
    rgba(var(--c-rgb), 0.7) 8% 19%,
    transparent 19% 36%,
    rgba(var(--c-rgb), 0.35) 36% 41%,
    transparent 41% 62%,
    rgba(var(--sinal-rgb), 0.7) 62% 67%,
    transparent 67% 82%,
    rgba(var(--c-rgb), 0.5) 82% 90%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px) 99%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px) 99%, transparent 100%);
  filter: drop-shadow(0 0 4px rgba(var(--c-rgb), 0.8));
  animation: em-gira 26s linear infinite;
}
:root[data-visual='holo2'] .holo-item.so-imagem .mira-cantos {
  display: none;
}
:root[data-visual='holo2'] .holo-item[data-tipo='pessoa'] .holo-capa {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 72%);
  mask-image: radial-gradient(circle, #000 62%, transparent 72%);
}

/* galeria: fotos soltas com borda suave, que sobem ao passar o mouse */
:root[data-visual='holo2'] .holo-galeria figure {
  border: 0 !important;
  background: none !important;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
:root[data-visual='holo2'] .holo-galeria img {
  border-radius: 10px;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 64%, transparent 100%);
}
:root[data-visual='holo2'] .holo-galeria figure:hover {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 0 14px rgba(var(--c-rgb), 0.45));
}

/* fio até o núcleo: aceso, com um pulso que corre por ele */
:root[data-visual='holo2'] .holo-fio {
  height: 1.5px;
  box-shadow: 0 0 8px rgba(var(--c-rgb), 0.6);
  overflow: visible;
}
:root[data-visual='holo2'] .holo-fio::before {
  content: '';
  position: absolute;
  top: -1px;
  width: 10px;
  height: 3.5px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(var(--c-rgb), 0.9);
  animation: h2-pulso-fio 2.6s ease-in-out var(--fase, 0s) infinite;
}
@keyframes h2-pulso-fio {
  from {
    left: 100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    left: 0%;
    opacity: 0;
  }
}

/* saída: dissolve para cima, como fumaça de luz */
:root[data-visual='holo2'] .holo-item.saindo {
  opacity: 0;
  filter: blur(16px) brightness(1.6);
  transform: translateY(-14px) scale(1.06);
}

/* ------------------------------------------------------------ desenho do Jarvis (vale nos dois visuais) */
.holo-desenho {
  width: 100%;
}
.desenho-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56vh;
  color: var(--c);
  overflow: visible;
  font-family: var(--font-text);
}
.desenho-svg :is(path, line, polyline, polygon, rect, circle, ellipse):not([stroke]) {
  stroke: currentColor;
}
.desenho-svg :is(path, line, polyline, polygon, rect, circle, ellipse):not([fill]) {
  fill: none;
}
.desenho-svg :is(path, line, polyline, polygon, rect, circle, ellipse):not([stroke-width]) {
  stroke-width: 1.5;
}
.desenho-svg text:not([fill]) {
  fill: var(--text);
}
.desenho-svg text {
  font-size: 12px;
  paint-order: stroke;
  stroke: rgba(3, 6, 10, 0.8);
  stroke-width: 3px;
}
.desenho-svg .acento {
  stroke: var(--sinal);
  color: var(--sinal);
}
.desenho-svg .preenchido {
  fill: rgba(var(--c-rgb), 0.12);
}
.desenho-svg .suave {
  opacity: 0.55;
}
.desenho-svg marker :is(path, polygon) {
  fill: currentColor;
}

/* o desenhista ainda trabalha (ou a Ponte procura o modelo 3D): três traços correndo, sem bola genérica */
.desenho-espera {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 150px;
  padding: 18px 0;
  color: var(--c);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.holo-3d.sem-modelo {
  height: auto;
}
.holo-3d.sem-modelo canvas {
  display: none;
}
.holo-3d.sem-modelo .holo-texto {
  padding: 18px 4px;
}
.desenho-espera i {
  display: block;
  width: min(220px, 70%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, currentColor 45%, var(--sinal) 55%, transparent) no-repeat;
  background-size: 40% 100%;
  opacity: 0.8;
  animation: desenho-traco 1.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
.desenho-espera i:nth-child(2) {
  width: min(160px, 52%);
  animation-delay: 0.2s;
}
.desenho-espera i:nth-child(3) {
  width: min(190px, 60%);
  animation-delay: 0.4s;
}
.desenho-espera span {
  margin-top: 4px;
  color: var(--text-dim, var(--text));
}
@keyframes desenho-traco {
  from {
    background-position: -60% 0;
  }
  to {
    background-position: 160% 0;
  }
}
.holo-3d.sem-modelo .holo-inspect,
.holo-3d.sem-modelo .holo-3d-dica {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .desenho-espera i {
    animation: none;
    background-size: 100% 100%;
  }
}
:root[data-visual='holo2'] .desenho-svg {
  filter: drop-shadow(0 0 6px rgba(var(--c-rgb), 0.45));
}

/* ------------------------------------------------------------ print de site (vale nos dois visuais) */
.holo-print {
  margin: 0 0 10px;
}
.holo-print img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(var(--c-rgb), 0.28);
}
.holo-trecho {
  margin: 0 0 8px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--sinal);
  color: var(--text);
  font-size: clamp(12px, 3.6cqi, 17px);
  line-height: 1.5;
  font-style: italic;
}
.holo-fonte-link {
  display: inline-block;
  color: var(--c);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.holo-fonte-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ palco de foco (vale nos dois visuais)
   O que está sendo falado fica grande no centro; o resto encolhe para a estante dos lados. */
.holo:not(.holo--amplo) .holo-item.no-palco .holo-vidro {
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(var(--c-rgb), 0.32),
    0 0 70px rgba(var(--c-rgb), 0.16);
}
/* com algo no centro, a consciência recua para o fundo (a informação é o foco) */
#core-canvas {
  transition: opacity 0.9s var(--ease);
}
body[data-palco='1'] #core-canvas {
  opacity: 0.3; /* só opacidade: desfocar a tela inteira a cada quadro pesaria no notebook */
}
/* a névoa atrás do texto fica mais densa no centro: a consciência não atravessa a leitura */
:root[data-visual='holo2'] .holo:not(.holo--amplo) .holo-item.no-palco .holo-vidro {
  background: radial-gradient(125% 105% at 50% 45%, rgba(3, 7, 12, 0.88), rgba(3, 7, 12, 0.62) 70%, rgba(3, 7, 12, 0) 97%) !important;
}
.holo:not(.holo--amplo) .holo-item.no-palco .holo-corpo {
  max-height: calc(100vh - 230px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.holo:not(.holo--amplo) .holo-item.no-palco .holo-3d {
  height: min(52vh, 480px);
}
.holo:not(.holo--amplo) .holo-item.no-palco .desenho-espera {
  min-height: min(40vh, 340px);
  font-size: 13px;
}
.holo:not(.holo--amplo) .holo-item.na-estante {
  opacity: 0.8;
  cursor: zoom-in;
}
.holo:not(.holo--amplo) .holo-item.na-estante:hover {
  opacity: 1;
}
.holo:not(.holo--amplo) .holo-item.na-estante .holo-corpo {
  max-height: 172px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.holo:not(.holo--amplo) .holo-item.na-estante.so-imagem .holo-corpo {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.holo:not(.holo--amplo) .holo-item.na-estante .holo-3d {
  height: 150px;
}
.holo:not(.holo--amplo) .holo-item.na-estante .holo-puxador,
.holo:not(.holo--amplo) .holo-item.na-estante .holo-maior {
  display: none;
}
/* estante cheia: as mais antigas mostram só o título (um clique traz de volta ao centro) */
.holo:not(.holo--amplo) .holo-item.na-estante.recolhida .holo-corpo {
  display: none;
}
.holo:not(.holo--amplo) .holo-item.na-estante.recolhida {
  opacity: 0.62;
}

/* ------------------------------------------------------------ conversa */
:root[data-visual='holo2'] .msg.assistant .msg-body {
  text-shadow: 0 0 14px rgba(var(--c-rgb), 0.12);
}

/* ------------------------------------------------------------ menos movimento */
@media (prefers-reduced-motion: reduce) {
  :root[data-visual='holo2'] .emblema .em-c,
  :root[data-visual='holo2'] .emblema .em-nucleo,
  :root[data-visual='holo2'] .holo-item,
  :root[data-visual='holo2'] .holo-vidro::before,
  :root[data-visual='holo2'] .holo-fio::before,
  :root[data-visual='holo2'] .holo-item.so-imagem .holo-mira::after,
  :root[data-visual='holo2'] .holo-funil .veia,
  :root[data-visual='holo2'] .holo-funil .galho {
    animation: none !important;
  }
  :root[data-visual='holo2'] .holo-item.revelando .holo-corpo {
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* o senhor no celular: o notebook descansa (sem animação contínua) */
:root[data-movel='1'][data-visual='holo2'] .emblema .em-c,
:root[data-movel='1'][data-visual='holo2'] .holo-item,
:root[data-movel='1'][data-visual='holo2'] .holo-vidro::before,
:root[data-movel='1'][data-visual='holo2'] .holo-fio::before,
:root[data-movel='1'][data-visual='holo2'] .holo-item.so-imagem .holo-mira::after {
  animation-play-state: paused;
}
