/* ══════════════════════════════════════
   ARARA — cabideiro virtual (home)
   Peças de perfil na barra; hover vira de frente; clique abre o destaque.
   Cada peça recebe --ar (largura/altura do recorte) e a altura vem do tipo.
══════════════════════════════════════ */
.arara-section {
  position: relative;
  padding: var(--section-py) 0 calc(var(--section-py) * 0.8);
  background:
    /* canhão de luz da vitrine: cai de cima sobre a barra */
    radial-gradient(ellipse 46% 62% at 50% 46%, rgba(255,222,150,0.10), transparent 72%),
    radial-gradient(ellipse 70% 45% at 50% 30%, rgba(200,168,75,0.08), transparent 70%),
    linear-gradient(to bottom, var(--bg), var(--bg-subtle) 60%, var(--bg));
  overflow: hidden;
}
.arara-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}

.arara {
  --slot: clamp(46px, 5vw, 64px);
  --hook: 26px;
  --h-kimono: clamp(320px, 31vw, 440px);
  --h-rash: clamp(206px, 19.6vw, 280px);
  --h-tee: clamp(192px, 18.4vw, 262px);
  --side: 76deg;
  --chao: calc(10px + var(--hook) + var(--h-kimono) + 34px);
  position: relative;
  margin: 48px auto 0;
  max-width: 1180px;
}

/* Chão da vitrine: poça de luz e linha de piso embaixo das peças */
.arara::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  top: var(--chao);
  height: 90px;
  transform: translateY(-50%);
  background:
    radial-gradient(ellipse 50% 22% at 50% 50%, rgba(232,201,106,0.16), transparent 70%),
    linear-gradient(to right, transparent, rgba(200,168,75,0.28) 30%, rgba(200,168,75,0.28) 70%, transparent) center / 100% 1px no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Spot que segue a peça aberta (js/arara.js injeta e move por transform) */
.arara-spot {
  position: absolute;
  top: -40px; left: 0;
  width: 520px;
  height: calc(var(--chao) + 80px);
  margin-left: -260px;
  background:
    radial-gradient(ellipse 34% 52% at 50% 44%, rgba(255,230,170,0.20), transparent 72%),
    radial-gradient(ellipse 44% 7% at 50% 93%, rgba(232,201,106,0.30), transparent 75%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}
.arara-spot.on { opacity: 1; }

/* Barra + suportes de parede */
.arara-barra {
  position: relative;
  height: 10px;
  margin: 0 4%;
  border-radius: 6px;
  background:
    linear-gradient(100deg, transparent 40%, rgba(255,248,220,0.95) 50%, transparent 60%) -60% 0 / 40% 100% no-repeat,
    linear-gradient(to bottom, #f3dc8f 0%, var(--gold) 35%, var(--gold-dark) 80%, #4d3a0b 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 28px rgba(232,201,106,0.28), 0 0 2px rgba(255,236,180,0.6);
  z-index: 3;
}
.arara--brilha .arara-barra { animation: arara-barra-brilho 1.6s cubic-bezier(.4,0,.2,1); }
@keyframes arara-barra-brilho {
  from { background-position: -60% 0, 0 0; }
  to   { background-position: 170% 0, 0 0; }
}
.arara-barra::before,
.arara-barra::after {
  content: '';
  position: absolute; top: -28px;
  width: 6px; height: 34px;
  background: linear-gradient(to right, #2a2a2a, #4a4a4a, #222);
  border-radius: 2px;
}
.arara-barra::before { left: 10px; }
.arara-barra::after  { right: 10px; }

.arara-trilho {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  margin: -4px 0 0;          /* ganchos encostam na barra */
  min-height: calc(var(--h-kimono) + var(--hook) + 62px);   /* + etiqueta */
  position: relative;
  z-index: 2;
}

.arara-item {
  --h: var(--h-rash);
  --w: calc(var(--h) * var(--ar));
  position: relative;
  flex: 0 0 var(--slot);
  min-width: 0;            /* senão o item estica até a largura da foto */
  display: flex;
  justify-content: center;
  transition: flex-basis 0.55s cubic-bezier(.2,.8,.2,1);
}
.arara-item[data-tipo="kimono"] { --h: var(--h-kimono); }
.arara-item[data-tipo="tee"]    { --h: var(--h-tee); }

.arara-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--w);
  flex: 0 0 auto;
  perspective: 1100px;
  outline: none;
  cursor: pointer;
  transform-origin: 50% 0;
}

/* A foto é mais larga que o espaço na barra: a área de clique/hover
   é só a faixa do espaço (e cresce quando a peça abre), senão uma peça
   rouba o mouse da vizinha. */
.arara-link { pointer-events: none; }
.arara-link::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  height: calc(var(--hook) + var(--h));
  width: var(--slot);
  transform: translateX(-50%);
  pointer-events: auto;
}
.arara-item.ativa .arara-link::before { width: calc(var(--w) + 18px); }

/* Gancho: fica fixo, não gira com a peça */
.arara-gancho {
  width: 16px; height: var(--hook);
  flex: 0 0 auto;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 26'%3E%3Cpath d='M8 26V13c0-3 5-3 5-7.5S10.5 1 8 1 3 2.5 3 5' fill='none' stroke='%23b59a52' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  position: relative; z-index: 2;
}

.arara-peca {
  position: relative;
  display: block;
  width: var(--w);
  height: var(--h);
  transform: rotateY(var(--side));
  transform-origin: 50% 0;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.6s var(--ease);
  /* De perfil a peça fica só um pouco na sombra — antes era 0.62 e os
     pretos sumiam no fundo. */
  filter: brightness(0.86) contrast(1.06) saturate(1.02);
  will-change: transform;
  --img: linear-gradient(transparent, transparent);   /* máscara vazia até o JS pôr a foto */
}
/* Ombreira do cabide */
.arara-peca::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 64%; height: 9px;
  transform: translateX(-50%);
  border-radius: 50% 50% 3px 3px / 90% 90% 3px 3px;
  background: linear-gradient(to bottom, #3b2a17, #1b130b);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 2;
}
.arara-peca img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: top center;
  /* luz de contorno quente (descola peça preta do fundo preto) + sombra */
  filter: drop-shadow(0 0 1px rgba(255,236,190,0.45)) drop-shadow(0 18px 22px rgba(0,0,0,0.55));
  user-select: none; -webkit-user-drag: none;
  pointer-events: none;
}

/* Reflexo que corre pelo tecido: faixa de luz recortada no formato da
   peça (a máscara é a própria foto; js/arara.js põe --img quando a arara
   chega perto da tela, pra não furar o lazy-load). */
.arara-peca::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,246,214,0.55) 48%, rgba(255,255,255,0.12) 52%, transparent 62%) 0 0 / 300% 100% no-repeat;
  background-position: 110% 0;
  -webkit-mask: var(--img) top center / contain no-repeat;
          mask: var(--img) top center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}
.arara--brilha .arara-peca::after {
  animation: arara-reflexo 1.3s cubic-bezier(.4,0,.2,1) calc(var(--i, 0) * 70ms + 120ms) both;
}
@keyframes arara-reflexo {
  0%   { background-position: 110% 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { background-position: -10% 0; opacity: 0; }
}
.arara--3d .arara-peca::after { display: none; }   /* no 3D o reflexo é luz de verdade */

/* Etiqueta "ver de perto" pendurada embaixo da peça aberta */
.arara-etiqueta {
  position: absolute;
  top: calc(var(--hook) + var(--h) + 20px);
  left: 50%;
  transform: translate(-50%, -6px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  color: #120d02;
  background: linear-gradient(to bottom, #f3dc8f, var(--gold) 55%, #b08f35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.55), 0 0 22px rgba(232,201,106,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s cubic-bezier(.2,.8,.2,1);
  z-index: 4;
}
.arara-etiqueta b { font-weight: 800; letter-spacing: 0.06em; }
.arara-etiqueta::after { content: '→'; font-size: 13px; letter-spacing: 0; transition: transform 0.25s var(--ease); }
.arara-etiqueta:hover::after { transform: translateX(3px); }

/* Hover / foco: abre espaço, vira de frente e acende */
@media (hover: hover) {
  .arara-item.ativa { flex-basis: calc(var(--w) + 18px); z-index: 5; }
  .arara-item.ativa .arara-peca { transform: rotateY(0deg); filter: brightness(1) contrast(1.04) saturate(1.04); }
  .arara-item.ativa .arara-etiqueta { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
}
.arara-link:focus-visible .arara-peca { transform: rotateY(0deg); filter: brightness(1) contrast(1.04) saturate(1.04); }
.arara-link:focus-visible .arara-etiqueta { opacity: 1; transform: translate(-50%, 0); }
.arara-item:has(.arara-link:focus-visible) { flex-basis: calc(var(--w) + 18px); z-index: 5; }
.arara-link:focus-visible::after {
  content: ''; position: absolute; inset: var(--hook) -6px -6px;
  border: 1px solid var(--gold-border-h); border-radius: 8px;
}

/* Vizinhas balançam quando a peça do lado abre */
.arara-item.balanca .arara-link { animation: arara-balanco 0.9s cubic-bezier(.3,.6,.3,1); }
@keyframes arara-balanco {
  0% { transform: rotate(0); } 25% { transform: rotate(var(--bal, 2.4deg)); }
  55% { transform: rotate(calc(var(--bal, 2.4deg) * -0.5)); } 100% { transform: rotate(0); }
}

/* Física do hover (js/arara.js liga no desktop): o JS manda em
   --dx (desliza na barra), --sw (balanço), --ry (giro) e --luz.
   A largura na barra fica fixa — quem abre espaço é o translate. */
.arara--fisica .arara-item,
.arara--fisica .arara-item.ativa,
.arara--fisica .arara-item:has(.arara-link:focus-visible) {
  flex-basis: var(--slot);
  transition: none;
}
.arara--fisica .arara-item .arara-link {
  transform: translateX(var(--dx, 0px)) rotate(var(--sw, 0deg));
  will-change: transform;
}
.arara--fisica .arara-item .arara-peca {
  transform: rotateY(var(--ry, var(--side)));
  filter: brightness(var(--luz, 0.86)) contrast(1.06) saturate(calc(1 + (var(--luz, 0.86) - 0.86) * 0.5));
  transition: none;
}

/* 3D (js/arara3d.js): a foto some e quem desenha é o WebGL, atrás dos
   ganchos/ombreiras. O DOM continua lá pro mouse, clique e teclado. */
.arara-3d {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.55));
}
.arara--3d .arara-trilho { position: relative; z-index: 2; }
.arara--3d .arara-peca img { opacity: 0; }

.arara-legenda {
  margin-top: 26px;
  min-height: 48px;
  text-align: center;
}
.arara-legenda-nome {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--text);
  transition: opacity 0.25s;
}
.arara-legenda-preco {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
/* Dica de interação: chip dourado com um ponto que pulsa (some quando
   o nome da peça toma o lugar dela) */
.arara-dica {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gold-border-h);
  border-radius: 999px;
  background: rgba(200,168,75,0.07);
  box-shadow: 0 0 24px rgba(200,168,75,0.12);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.arara-dica::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--gold-light);
  box-shadow: 0 0 0 0 rgba(232,201,106,0.6);
  animation: arara-pulso 1.8s ease-out infinite;
}
@keyframes arara-pulso {
  0%   { box-shadow: 0 0 0 0 rgba(232,201,106,0.6); }
  100% { box-shadow: 0 0 0 10px rgba(232,201,106,0); }
}
.arara-dica--toque { display: none; }

/* ══ Destaque (overlay) ══ */
.arara-foco {
  position: fixed; inset: 0;
  z-index: calc(var(--z-nav) + 10);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.arara-foco[hidden] { display: none; }
.arara-foco.aberto { opacity: 1; }

.arara-foco-topo {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--container-px);
}
.arara-foco-contador {
  font-family: var(--font-accent);
  font-size: 18px; letter-spacing: 0.15em; color: var(--text-muted);
}
.arara-fechar {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--text); padding: 10px 4px;
}
.arara-fechar:hover { color: var(--gold); }

.arara-palco {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 6vw, 90px);
  min-height: 0;
  touch-action: pan-y;
}
.arara-palco-barra {
  position: absolute; top: 6%; left: 8%; right: 8%;
  height: 6px; border-radius: 4px;
  background: linear-gradient(to bottom, #f3dc8f, var(--gold) 40%, var(--gold-dark));
  opacity: 0.35;
}
.arara-fantasma {
  height: 46%;
  opacity: 0.13;
  filter: grayscale(0.4) blur(1px);
  transition: opacity 0.3s;
  object-fit: contain;
  align-self: flex-start;
  margin-top: calc(6% + 18px);
  max-width: 18vw;
}
.arara-atual-wrap {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 6%;
  perspective: 1400px;
}
/* Luz de estúdio atrás da peça: halo quente que descola até o kimono preto */
.arara-atual-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 2%;
  width: min(760px, 120vw); height: 104%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 36% 46% at 50% 42%, rgba(255,226,160,0.20), rgba(200,168,75,0.06) 55%, transparent 72%),
    radial-gradient(ellipse 30% 5% at 50% 96%, rgba(232,201,106,0.30), transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.arara-cabide {
  width: clamp(120px, 14vw, 190px); height: 52px;
  margin: -34px 0 -18px;
  position: relative; z-index: 2;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 52'%3E%3Cpath d='M100 24V16c0-4 7-4 7-9.5S103.5 1 100 1s-6 2-6 5' fill='none' stroke='%23c8a84b' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M100 24L8 46q-6 3 0 4h184q6-1 0-4z' fill='none' stroke='%23c8a84b' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.6));
}
.arara-atual {
  height: min(50vh, 500px);
  max-width: 46vw;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 0 1.5px rgba(255,236,190,0.5)) drop-shadow(0 30px 40px rgba(0,0,0,0.7)) contrast(1.05);
  transform-origin: 50% 0;
  /* reflexo no chão do palco (Chrome/Safari; os outros só ignoram) */
  -webkit-box-reflect: below 4px linear-gradient(transparent 80%, rgba(255,255,255,0.16));
}

.arara-seta {
  position: absolute; top: 45%;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  background: rgba(10,10,10,0.6);
  transition: border-color var(--t), background var(--t);
  z-index: 2;
}
.arara-seta:hover { border-color: var(--gold-border-h); background: var(--gold-glow-sm); }
.arara-seta--ant { left: clamp(12px, 4vw, 60px); }
.arara-seta--prox { right: clamp(12px, 4vw, 60px); }

.arara-foco-info {
  position: relative; z-index: 1;
  text-align: center;
  padding: 8px var(--container-px) 28px;
  max-width: 620px; margin: 0 auto;
}
.arara-foco-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.25em; color: var(--gold);
}
.arara-foco-nome {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; margin-top: 6px; color: var(--text);
}
.arara-foco-preco {
  margin-top: 6px; font-size: 15px; letter-spacing: 0.08em; color: var(--gold-light);
}
.arara-foco-desc {
  margin-top: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.arara-foco-cta {
  margin-top: 18px; display: inline-flex;
  position: relative; overflow: hidden;
  padding-inline: 34px;
  box-shadow: 0 0 0 1px rgba(255,236,180,0.35), 0 10px 30px rgba(200,168,75,0.28);
}
/* brilho que atravessa o botão quando a peça entra */
.arara-foco-cta::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.arara-foco.aberto .arara-foco-cta::after { animation: arara-cta-brilho 1.1s 0.5s cubic-bezier(.4,0,.2,1) both; }
.arara-foco-info.troca .arara-foco-cta::after { animation: arara-cta-brilho 1.1s 0.2s cubic-bezier(.4,0,.2,1) both; }
@keyframes arara-cta-brilho { from { left: -60%; } to { left: 120%; } }

/* Troca de peça: gira no cabide */
.arara-atual.sai-esq  { animation: arara-sai 0.28s ease-in forwards; --dir: -1; }
.arara-atual.sai-dir  { animation: arara-sai 0.28s ease-in forwards; --dir: 1; }
.arara-atual.entra    { animation: arara-entra 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes arara-sai   { to { transform: rotateY(calc(var(--dir) * 80deg)); opacity: 0; } }
@keyframes arara-entra { from { transform: rotateY(calc(var(--dir, 1) * -80deg)); opacity: 0; } to { transform: none; opacity: 1; } }

/* ══ Mobile ══ */
@media (max-width: 900px) and (min-width: 721px) {
  .arara { --slot: 40px; --h-rash: 190px; --h-tee: 176px; }
}
@media (max-width: 720px) {
  .arara {
    --slot: 25px;
    --hook: 20px;
    --h-kimono: 250px;
    --h-rash: 164px;
    --h-tee: 152px;
    margin-top: 36px;
  }
  .arara-trilho { min-height: calc(var(--h-kimono) + var(--hook) + 20px); }
  .arara::after { left: 2%; right: 2%; }
  .arara-dica { padding: 10px 16px; letter-spacing: 0.16em; }
  .arara-barra { margin: 0 2%; height: 8px; }
  .arara-dica--mouse { display: none; }
  .arara-dica--toque { display: inline-flex; }
  .arara-fantasma { display: none; }
  .arara-atual { height: min(48vh, 420px); max-width: 78vw; }
  .arara-seta { top: auto; bottom: 8px; width: 42px; height: 42px; }
  .arara-palco { padding-bottom: 56px; }
}
@media (hover: none) {
  .arara-dica--mouse { display: none; }
  .arara-dica--toque { display: inline-flex; }
}

/* Toque: sem hover, a peça não "acende" — então já fica com luz cheia. */
@media (hover: none) {
  .arara-peca { filter: brightness(1) contrast(1.04) saturate(1.04); }
  .arara-etiqueta { display: none; }
}

/* ══ Carrossel (celular e tablet de toque) ══
   Mesma query do js/arara.js. Uma peça de frente no meio (snap), as
   vizinhas aparecendo nas bordas, giradas pro centro e um pouco menores.
   O JS escreve --off (distância do centro, em larguras de cartão, com sinal)
   e --offa (o mesmo, absoluto e limitado a 1) a cada quadro de scroll. */
.arara-nav, .arara-dica--carrossel { display: none; }
@media (max-width: 720px), (hover: none) and (max-width: 900px) {
  .arara {
    --card: min(64vw, 330px);
    --hook: 22px;
    --h-kimono: clamp(280px, 46vh, 400px);
    --h-rash: 290px;
    --h-tee: 270px;
    --chao: calc(10px + var(--hook) + var(--h-kimono) + 72px);   /* abaixo da etiqueta */
    margin-top: 32px;
  }
  .arara-barra { margin: 0 1%; }
  .arara-trilho {
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* o primeiro e o último também param no meio */
    padding: 0 calc((100% - var(--card)) / 2) 10px;
  }
  .arara-trilho::-webkit-scrollbar { display: none; }

  .arara-item,
  .arara-item.ativa,
  .arara-item:has(.arara-link:focus-visible) {
    --w: min(calc(var(--card) - 16px), calc(var(--h) * var(--ar)));
    flex: 0 0 var(--card);
    scroll-snap-align: center;
    transition: none;
    z-index: auto;
  }
  .arara-link {
    width: 100%;
    pointer-events: auto;
    perspective: 900px;
    -webkit-tap-highlight-color: transparent;
  }
  .arara-link::before { display: none; }
  .arara-link:focus-visible::after { inset: calc(var(--hook) - 4px) 4px -4px; }

  .arara-peca,
  .arara-item.ativa .arara-peca,
  .arara-link:focus-visible .arara-peca {
    width: var(--w);
    height: calc(var(--w) / var(--ar));
    /* vizinhas: giradas pro centro, menores e puxadas pra dentro (aparecem na borda) */
    transform: translateX(calc(var(--off, 0) * -16%)) rotateY(calc(var(--off, 0) * -32deg)) scale(calc(1 - var(--offa, 0) * 0.14));
    opacity: calc(1 - var(--offa, 0) * 0.35);
    filter: brightness(1) contrast(1.04) saturate(1.04);
    transition: none;
  }

  /* etiqueta do cartão do meio: o CTA do celular */
  .arara-etiqueta {
    display: inline-flex;
    position: relative;
    top: auto; left: auto;
    margin-top: 16px;
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
  }
  .arara-item.centro .arara-etiqueta { opacity: 1; transform: none; }

  /* luz fixa no meio, onde a peça em destaque para */
  .arara-spot {
    left: 50%;
    width: 380px; margin-left: -190px;
    transform: none !important;
    opacity: 1;
  }
  .arara::after { left: 0; right: 0; }

  /* WebGL não entra aqui (se a janela encolheu com o 3D aberto, volta a foto) */
  .arara-3d { display: none; }
  .arara--3d .arara-peca img { opacity: 1; }

  .arara-nav {
    display: grid; place-items: center;
    position: absolute;
    top: calc(var(--chao) - 50px);   /* na linha da etiqueta, sem tapar a peça */
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold-border-h);
    background: rgba(10,10,10,0.72);
    color: var(--gold-light);
    font-size: 22px; line-height: 1;
    z-index: 4;
    transition: opacity var(--t);
  }
  .arara-nav--ant { left: 2px; }
  .arara-nav--prox { right: 2px; }
  .arara-nav:disabled { opacity: 0.25; }

  .arara-dica--mouse, .arara-dica--toque { display: none; }
  .arara-dica--carrossel { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .arara-item, .arara-peca, .arara-foco, .arara-spot, .arara-etiqueta { transition: none; }
  .arara-item.balanca .arara-link,
  .arara-atual.sai-esq, .arara-atual.sai-dir, .arara-atual.entra,
  .arara--brilha .arara-barra, .arara--brilha .arara-peca::after,
  .arara-dica::before, .arara-foco-cta::after { animation: none !important; }
}
