/* ============================================================
   Skunk Club — estilos
   ============================================================ */

:root {
  /* fundos */
  --breu: #0b0908;
  --carvao: #161311;
  --fuligem: #231f1b;
  --ferro: #3b342d;
  /* cobre e creme */
  --cobre: #bea473;
  --cobre-claro: #e8d39a;
  --cobre-escuro: #6c5b40;
  --pergaminho: #e9dbb3;
  --papel: #cfb682;
  --areia: #b9a98a;
  --tinta: #2d261b;
  --tinta-suave: #5c4d3a;
  /* vermelho */
  --sangue: #bc4442;
  --vinho: #5b1119;
  --borgonha: #581b1f;
  /* tela CRT (só dentro da tela) */
  --fosforo: #b7e67a;
  --fosforo-medio: #8ebb5b;
  --musgo: #6e984c;
  --vidro: #0d1f13;

  --topo-h: 84px;
  --rodape-h: 52px;
  /* altura do console = viewport menos topo, rodapé e os respiros */
  --console-h: min(calc(100svh - var(--topo-h) - var(--rodape-h) - 56px), 920px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--breu);
  color: var(--pergaminho);
  font: 400 17px/1.6 var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--cobre); text-decoration-color: rgba(190, 164, 115, .4); text-underline-offset: 3px; }
a:hover { color: var(--cobre-claro); }
:focus-visible { outline: 2px solid var(--cobre-claro); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Topo ---------- */
.topo {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 5vw; min-height: var(--topo-h);
  background: transparent;
}
.topo__logo { display: block; }
.topo__logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.topo__nav { display: flex; gap: 4px; }
.topo__nav button {
  background: transparent; border: 0; padding: 10px 12px; cursor: pointer;
  font: 500 15px/1 var(--font-interface); letter-spacing: .16em; text-transform: uppercase;
  color: var(--areia); border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.topo__nav button:hover, .topo__nav button[aria-current="true"] { color: var(--cobre-claro); border-bottom-color: var(--cobre); }
.topo__hamb { display: none; }

/* Menu em árvore: nível 1 no topo, nível 2 em painel, nível 3 dentro dele.
   Todo item com filhos recolhe e abre por clique (.aberto). */
.topo__item { position: relative; display: flex; flex-direction: column; }
.topo__item--pai > button::after { content: " \25be"; display: inline-block; opacity: .7; transition: transform .18s ease; }
.topo__item--pai.aberto > button::after { transform: rotate(180deg); }
.topo__sub { display: none; flex-direction: column; }
.topo__item--pai.aberto > .topo__sub { display: flex; }
.topo__sub button {
  width: 100%; text-align: left; padding: 12px 16px; font-size: 14px;
  border-bottom: 1px solid rgba(59, 52, 45, .5); border-left: 3px solid transparent;
}
.topo__sub button:hover, .topo__sub button[aria-current="true"] {
  border-bottom-color: rgba(59, 52, 45, .5); border-left-color: var(--cobre); background: rgba(190, 164, 115, .08);
}
/* Nível 3: recuado e mais discreto que o pai. */
.topo__sub .topo__sub button { padding-left: 34px; font-size: 13px; color: var(--cobre-escuro); }

/* Só onde existe mouse de verdade o nível 2 vira painel suspenso e abre
   ao passar por cima. No toque isso deixaria o painel grudado aberto. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .topo__nav > .topo__item > .topo__sub {
    position: absolute; top: 100%; left: 0; z-index: 40; min-width: max(100%, 210px);
    max-height: 72vh; overflow-y: auto; background: var(--carvao);
    border: 1px solid var(--ferro); box-shadow: 0 18px 36px rgba(0, 0, 0, .6);
  }
  .topo__nav > .topo__item--pai:hover > .topo__sub,
  .topo__nav > .topo__item--pai:focus-within > .topo__sub { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--topo-h) - var(--rodape-h)); display: grid; overflow: hidden; isolation: isolate; }
.hero__grid {
  position: relative; z-index: 2; width: 100%; max-width: 1640px; margin: 0 auto;
  display: grid; grid-template-columns: auto auto; justify-content: center;
  align-items: center; align-content: center; gap: 24px clamp(40px, 6vw, 110px);
  padding: 16px 5vw 20px;
}
.hero__grid .stage { grid-column: 1; grid-row: 1; }
.hero__grid .legenda { grid-column: 2; grid-row: 1; }
.so-mobile { display: none; }

/* Dica de uso: aparece piscando no centro ao abrir e some no primeiro
   toque ou depois de 3s. Fora do fluxo, para não roubar altura do console. */
.dica {
  /* Abaixo do meio de propósito: centralizada, a caixa cobria a tela do
     console e escondia o "PRESS START". Aqui ela cai sobre os botões. */
  position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%);
  z-index: 15; margin: 0; padding: 12px 20px; max-width: min(86vw, 40ch);
  text-align: center; pointer-events: none;
  background: rgba(11, 9, 8, .82); border: 1px solid var(--ferro); border-radius: 4px;
  backdrop-filter: blur(2px);
  font: 500 13px/1.6 var(--font-interface); letter-spacing: .18em; text-transform: uppercase; color: var(--cobre);
  animation: dicaPisca 1s steps(2) infinite;
}
/* Pisca começando aceso e sem apagar de vez: em 3s o visitante precisa
   conseguir ler, então o estado "apagado" ainda é legível. */
@keyframes dicaPisca { 50% { opacity: .22; } }
.dica.sumiu { opacity: 0; animation: none; backdrop-filter: none; transition: opacity .45s ease; }

.legenda { justify-self: start; margin: 0; max-width: 230px; font-family: var(--font-interface); color: var(--areia); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.legenda__titulo { color: var(--cobre); font-weight: 600; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ferro); }
.legenda div { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.legenda kbd {
  display: inline-block; min-width: 30px; padding: 5px 7px; border: 1px solid var(--ferro); border-radius: 4px;
  background: rgba(0, 0, 0, .45); color: var(--pergaminho); font: 600 12px/1 var(--font-interface); text-align: center; letter-spacing: 0;
}
.legenda kbd.vermelho { border-color: var(--vinho); background: var(--borgonha); }

/* ---------- Fundo (grão, luz de cobre, poeira, vinheta) ----------
   Fixo e atrás da página inteira: topo, hero e rodapé dividem o mesmo
   grão e a mesma vinheta, então não existe emenda entre eles. */
.fundo { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--breu); pointer-events: none; }
.fundo > div { position: absolute; inset: 0; pointer-events: none; }
.fundo__grao { background: url("../assets/textures/grain.webp") repeat; background-size: 640px; opacity: .6; mix-blend-mode: screen; }
.fundo__luz {
  background: radial-gradient(42% 58% at 50% 50%, rgba(190, 164, 115, .16) 0%, rgba(190, 164, 115, .05) 50%, transparent 72%);
  transition: background .9s ease;
}
body[data-category="barber"] .fundo__luz { background: radial-gradient(46% 62% at 50% 50%, rgba(232, 211, 154, .2) 0%, rgba(232, 211, 154, .06) 50%, transparent 72%); }
body[data-category="tattoo"] .fundo__luz { background: radial-gradient(46% 62% at 50% 50%, rgba(188, 68, 66, .2) 0%, rgba(188, 68, 66, .06) 50%, transparent 72%); }
.fundo__poeira {
  background: url("../assets/textures/dust-particles-overlay.webp") repeat; background-size: 900px;
  opacity: .22; mix-blend-mode: screen; animation: poeira 60s linear infinite;
}
@keyframes poeira { to { background-position: 900px 700px; } }
.fundo__vinheta { background: radial-gradient(70% 80% at 50% 50%, transparent 40%, rgba(11, 9, 8, .75) 100%); }

/* ---------- Console ---------- */
/* pinch-zoom, e não none: o console ocupa quase a tela toda no celular,
   então "none" bloqueava o zoom da página com os dedos em cima dele.
   Assim o navegador cuida do zoom e o arrasto de um dedo continua nosso. */
.stage { perspective: 900px; position: relative; width: calc(var(--console-h) * 840 / 1410); max-width: 100%; justify-self: center; touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; cursor: grab; }
.stage:active { cursor: grabbing; }
/* will-change só enquanto o console realmente se move. Ligado o tempo
   todo, ele mantinha seis camadas promovidas na GPU; ao dar zoom, o
   Safari precisa rasterizar tudo de novo na escala nova e a aba morria. */
.stage.movendo .obj,
.stage.movendo .brilho img,
.stage.movendo #l-sombreado i { will-change: transform; }
.stage.movendo .reflexo,
.stage.movendo .especular { will-change: transform, opacity; }
.stage .hit, .stage .tela { cursor: pointer; }
.luz { position: absolute; inset: 0; perspective: 900px; pointer-events: none; }
.obj { position: relative; width: 100%; aspect-ratio: 840 / 1410; transform-style: preserve-3d; }
.lyr { position: absolute; inset: 0; pointer-events: none; }
.lyr img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; transition: filter .06s linear; }
/* Peças recortadas: o wrapper .lyr continua do tamanho do console, então
   toda a matemática de profundidade e inclinação segue igual; só a
   textura encolhe. Menu e Start eram 480x806 com 0,3% de pixel útil,
   1,48 MB de bitmap cada um para desenhar um botão de 51x24. */
.lyr img.peca { position: absolute; }
#l-sombra { inset: -8.511% -14.286%; }
.brilho, .borda {
  position: absolute; inset: 0;
  -webkit-mask-image: url("../assets/console/mask.webp"); mask-image: url("../assets/console/mask.webp");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}

#l-sombreado { overflow: hidden; }
#l-sombreado i { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; display: block; background: linear-gradient(0deg, transparent 40%, #000 90%); }
#l-brilho img { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 52%); mask-image: linear-gradient(to bottom, #000 30%, transparent 52%); }
#l-brilho-bot img { -webkit-mask-image: linear-gradient(to bottom, transparent 38%, #000 60%); mask-image: linear-gradient(to bottom, transparent 38%, #000 60%); }
.borda { pointer-events: none; background: linear-gradient(180deg, #221b15 0%, #15110d 30%, #0c0908 100%); }
.borda.b0 { background: linear-gradient(180deg, #3a2f24 0%, #221b15 40%, #120e0b 100%); }

.tela {
  position: absolute; left: 16.43%; top: 15.04%; width: 67.26%; height: 36.31%;
  background: radial-gradient(ellipse at 50% 44%, rgba(44, 78, 32, .42) 0%, rgba(24, 44, 18, .18) 45%, transparent 78%), linear-gradient(180deg, #102318, #08140d);
  border-radius: 8px; overflow: hidden; pointer-events: auto;
  /* text-align explícito: no celular o .hero__grid centraliza tudo, e esse
     centro vazava para dentro da tela, deixando o console diferente do
     desktop. A tela de abertura pede o centro por conta própria. */
  font-family: var(--font-crt); color: var(--fosforo); text-align: left;
  container-type: inline-size;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .7), inset 0 2px 6px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .055), inset -2px -2px 3px rgba(255, 255, 255, .045);
}
.tela .vidro {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 282 256%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M-22.6 8.1Q141.0 -10.4 304.6 8.1M-22.6 10.4Q141.0 -7.7 304.6 10.4M-22.6 12.7Q141.0 -5.0 304.6 12.7M-22.6 15.0Q141.0 -2.2 304.6 15.0M-22.6 17.4Q141.0 0.6 304.6 17.4M-22.6 19.7Q141.0 3.3 304.6 19.7M-22.6 22.1Q141.0 6.1 304.6 22.1M-22.6 24.6Q141.0 9.0 304.6 24.6M-22.6 27.0Q141.0 11.8 304.6 27.0M-22.6 29.5Q141.0 14.7 304.6 29.5M-22.6 31.9Q141.0 17.5 304.6 31.9M-22.6 34.4Q141.0 20.4 304.6 34.4M-22.6 36.9Q141.0 23.3 304.6 36.9M-22.6 39.5Q141.0 26.3 304.6 39.5M-22.6 42.0Q141.0 29.2 304.6 42.0M-22.6 44.6Q141.0 32.2 304.6 44.6M-22.6 47.1Q141.0 35.2 304.6 47.1M-22.6 49.7Q141.0 38.2 304.6 49.7M-22.6 52.3Q141.0 41.2 304.6 52.3M-22.6 54.9Q141.0 44.2 304.6 54.9M-22.6 57.6Q141.0 47.2 304.6 57.6M-22.6 60.2Q141.0 50.3 304.6 60.2M-22.6 62.9Q141.0 53.3 304.6 62.9M-22.6 65.5Q141.0 56.4 304.6 65.5M-22.6 68.2Q141.0 59.5 304.6 68.2M-22.6 70.9Q141.0 62.6 304.6 70.9M-22.6 73.6Q141.0 65.7 304.6 73.6M-22.6 76.3Q141.0 68.8 304.6 76.3M-22.6 79.0Q141.0 71.9 304.6 79.0M-22.6 81.7Q141.0 75.0 304.6 81.7M-22.6 84.5Q141.0 78.2 304.6 84.5M-22.6 87.2Q141.0 81.3 304.6 87.2M-22.6 90.0Q141.0 84.5 304.6 90.0M-22.6 92.7Q141.0 87.6 304.6 92.7M-22.6 95.5Q141.0 90.8 304.6 95.5M-22.6 98.3Q141.0 93.9 304.6 98.3M-22.6 101.0Q141.0 97.1 304.6 101.0M-22.6 103.8Q141.0 100.3 304.6 103.8M-22.6 106.6Q141.0 103.5 304.6 106.6M-22.6 109.4Q141.0 106.7 304.6 109.4M-22.6 112.2Q141.0 109.9 304.6 112.2M-22.6 115.0Q141.0 113.1 304.6 115.0M-22.6 117.7Q141.0 116.3 304.6 117.7M-22.6 120.5Q141.0 119.5 304.6 120.5M-22.6 123.3Q141.0 122.7 304.6 123.3M-22.6 126.1Q141.0 125.9 304.6 126.1M-22.6 128.9Q141.0 129.1 304.6 128.9M-22.6 131.7Q141.0 132.3 304.6 131.7M-22.6 134.5Q141.0 135.5 304.6 134.5M-22.6 137.3Q141.0 138.7 304.6 137.3M-22.6 140.1Q141.0 141.9 304.6 140.1M-22.6 142.9Q141.0 145.1 304.6 142.9M-22.6 145.7Q141.0 148.3 304.6 145.7M-22.6 148.5Q141.0 151.4 304.6 148.5M-22.6 151.3Q141.0 154.6 304.6 151.3M-22.6 154.0Q141.0 157.8 304.6 154.0M-22.6 156.8Q141.0 161.0 304.6 156.8M-22.6 159.6Q141.0 164.2 304.6 159.6M-22.6 162.4Q141.0 167.3 304.6 162.4M-22.6 165.1Q141.0 170.5 304.6 165.1M-22.6 167.9Q141.0 173.7 304.6 167.9M-22.6 170.6Q141.0 176.8 304.6 170.6M-22.6 173.3Q141.0 179.9 304.6 173.3M-22.6 176.1Q141.0 183.1 304.6 176.1M-22.6 178.8Q141.0 186.2 304.6 178.8M-22.6 181.5Q141.0 189.3 304.6 181.5M-22.6 184.2Q141.0 192.4 304.6 184.2M-22.6 186.9Q141.0 195.5 304.6 186.9M-22.6 189.6Q141.0 198.6 304.6 189.6M-22.6 192.2Q141.0 201.7 304.6 192.2M-22.6 194.9Q141.0 204.7 304.6 194.9M-22.6 197.5Q141.0 207.8 304.6 197.5M-22.6 200.2Q141.0 210.8 304.6 200.2M-22.6 202.8Q141.0 213.8 304.6 202.8M-22.6 205.4Q141.0 216.8 304.6 205.4M-22.6 208.0Q141.0 219.8 304.6 208.0M-22.6 210.6Q141.0 222.8 304.6 210.6M-22.6 213.1Q141.0 225.8 304.6 213.1M-22.6 215.7Q141.0 228.7 304.6 215.7M-22.6 218.2Q141.0 231.7 304.6 218.2M-22.6 220.7Q141.0 234.6 304.6 220.7M-22.6 223.2Q141.0 237.5 304.6 223.2M-22.6 225.7Q141.0 240.4 304.6 225.7M-22.6 228.2Q141.0 243.2 304.6 228.2M-22.6 230.6Q141.0 246.1 304.6 230.6M-22.6 233.0Q141.0 248.9 304.6 233.0M-22.6 235.5Q141.0 251.7 304.6 235.5M-22.6 237.8Q141.0 254.5 304.6 237.8M-22.6 240.2Q141.0 257.3 304.6 240.2M-22.6 242.5Q141.0 260.0 304.6 242.5M-22.6 244.9Q141.0 262.8 304.6 244.9M-22.6 247.2Q141.0 265.5 304.6 247.2%22 fill=%22none%22 stroke=%22rgba%280,0,0,0.24%29%22 stroke-width=%221%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.tela .fosforo { position: absolute; inset: 0; z-index: 1; }
.tela .reflexo {
  position: absolute; left: -20%; top: -20%; width: 150%; height: 150%; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 62% 48% at 38% 34%, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .04) 45%, transparent 72%);
}
.tela .especular {
  position: absolute; left: -20%; top: -20%; width: 150%; height: 150%; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse 17% 3.2% at 40% 19.5%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .10) 50%, transparent 100%);
}

/* ligar a tela: risco que abre na horizontal e cresce, como TV de tubo */
.tela .ligar {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  transform-origin: 50% 50%;
  background: linear-gradient(180deg, #e7ffc4, #b7e67a 40%, #7fc24a);
  box-shadow: 0 0 18px rgba(199, 245, 141, .75);
}
.tela.ligando .ligar { animation: crtAbrir .96s cubic-bezier(.3, .7, .2, 1) both; }
.tela.ligando .fosforo { animation: crtConteudo .96s linear both; }
@keyframes crtAbrir {
  0%   { opacity: 1; transform: scale(0, .006); }
  16%  { opacity: 1; transform: scale(.5, .006); }
  32%  { opacity: 1; transform: scale(1, .006); }
  44%  { opacity: .92; transform: scale(1, .014); }
  56%  { opacity: .42; transform: scale(1, 1.05); }
  68%  { opacity: .12; transform: scale(1, 1); }
  100% { opacity: 0; transform: scale(1, 1); }
}
@keyframes crtConteudo {
  0%, 48% { opacity: 0; filter: brightness(2.4); }
  58%     { opacity: .4; filter: brightness(2.4); }
  68%     { opacity: 1; filter: brightness(1.7); }
  76%     { opacity: .45; filter: brightness(1.4); }
  86%     { opacity: 1; filter: brightness(1.1); }
  100%    { opacity: 1; filter: none; }
}

.hit {
  position: absolute; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: transparent; border: 0; padding: 0; transform: translateZ(26px) scale(0.97111);
}
.hit:focus-visible { outline: 2px solid var(--fosforo); outline-offset: 2px; border-radius: 50%; }
/* Foco visível dentro da tela: o quadro do personagem e a lista do menu
   são alcançáveis por Tab; setas, Enter e Espaço agem sobre eles. */
.cena:focus-visible, .crt__list:focus-visible { outline: 2px solid var(--fosforo); outline-offset: 2px; }
#h-up, #h-down, #h-left, #h-right { border-radius: 4px; }
#h-a, #h-b { border-radius: 50%; }
#h-start, #h-menu { border-radius: 99px; }

/* ---------- Conteúdo da tela ---------- */
.crt { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5cqw 6cqw 4cqw; letter-spacing: .06em; }
.crt__kicker { font-size: 3.6cqw; letter-spacing: .3em; opacity: .7; }
.crt__title {
  font-size: 7.2cqw; font-weight: 700; line-height: 1.16; letter-spacing: .12em; margin: 1.2cqw 0 2.4cqw; padding-bottom: 2cqw;
  border-bottom: 1px solid rgba(142, 187, 91, .45); text-shadow: 0 0 8px rgba(183, 230, 122, .5);
}
.crt__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.crt__list li {
  display: flex; align-items: center; gap: 2.4cqw; padding: 0 2cqw; border: 1px solid transparent; border-radius: 2px;
  font-size: 5.4cqw; line-height: 1.8; letter-spacing: .1em; color: var(--fosforo-medio); cursor: pointer;
}
.crt__list li .crt__cursor { width: 4cqw; opacity: 0; }
.crt__list li:hover { color: var(--fosforo); }
.crt__list li[aria-selected="true"] {
  color: var(--fosforo); border-color: rgba(168, 217, 106, .55);
  background: linear-gradient(90deg, rgba(168, 217, 106, .22), rgba(168, 217, 106, .06) 70%, transparent);
  text-shadow: 0 0 7px rgba(143, 224, 83, .6);
}
.crt__list li[aria-selected="true"] .crt__cursor { opacity: 1; }
.crt__num { margin-left: auto; font-size: 3.6cqw; opacity: .6; letter-spacing: .1em; }
.crt__hints {
  display: flex; justify-content: space-between; gap: 2cqw; padding-top: 2cqw;
  font-size: 3.3cqw; letter-spacing: .14em; opacity: .75; border-top: 1px solid rgba(142, 187, 91, .3);
}

.crt--boot { align-items: center; justify-content: center; text-align: center; gap: 2cqw; cursor: pointer; }
.crt__logo { font-size: 12cqw; font-weight: 700; letter-spacing: .14em; text-shadow: 0 0 14px rgba(183, 230, 122, .6); }
.crt__sub { font-size: 3.6cqw; letter-spacing: .32em; opacity: .65; }
.crt__press { margin-top: 7cqw; font-size: 4.6cqw; letter-spacing: .26em; animation: piscar 1s steps(2) infinite; }
@keyframes piscar { 50% { opacity: 0; } }

/* seleção: cena (fundo + personagem, escala 1:1, altura total) à esquerda, painel à direita */
.crt--select { flex-direction: row; gap: 3.2cqw; padding: 4cqw 4cqw 3.4cqw; }
.cena { position: relative; flex: none; height: 100%; aspect-ratio: 340 / 516; font-size: 4cqw; border: 1px solid rgba(142, 187, 91, .5); border-radius: 3.2cqw; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 0 12px rgba(0, 0, 0, .6); }
.cena__fundo { display: block; height: 100%; width: auto; image-rendering: pixelated; }
.sprite { position: absolute; inset: 0; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; }
.painel { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.painel__kicker { display: flex; justify-content: space-between; gap: 1cqw; font-size: 3.2cqw; letter-spacing: .22em; opacity: .75; padding-bottom: 1.6cqw; border-bottom: 1px solid rgba(142, 187, 91, .35); }
.painel__nome { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.4cqw; padding: 2cqw 0; }
.painel__nome strong { font-size: 6.2cqw; font-weight: 700; line-height: 1.08; letter-spacing: .06em; overflow-wrap: anywhere; text-shadow: 0 0 7px rgba(143, 224, 83, .5); }
.painel__nome > span { font-size: 3.3cqw; letter-spacing: .22em; opacity: .8; }
/* Especialidades separadas do nome por um filete, com rótulo. */
.painel__skills { margin-top: 1.6cqw; padding-top: 1.6cqw; border-top: 1px solid rgba(142, 187, 91, .38); }
.painel__rotulo { display: block; font-size: max(2.9cqw, 8px); letter-spacing: .3em; opacity: .6; margin-bottom: .8cqw; }
.painel__tags {
  display: flex; flex-wrap: wrap; gap: .3cqw 1.6cqw;
  font-size: max(3.1cqw, 8px); line-height: 1.35; letter-spacing: .03em; text-transform: none;
  color: var(--fosforo-medio); overflow-wrap: anywhere;
}
.painel__tags span { opacity: .9; }
.painel__nome.flash { animation: flash .16s steps(2) 3; }
@keyframes flash { 50% { opacity: .25; } }
.painel__setas { display: flex; gap: 1.6cqw; padding-top: 1.8cqw; border-top: 1px solid rgba(142, 187, 91, .35); }
.seta {
  flex: 1; min-width: 0; background: transparent; border: 1px solid rgba(168, 217, 106, .5); color: var(--fosforo); cursor: pointer;
  font: 700 max(4cqw, 10px)/1 var(--font-crt); padding: 1.6cqw 0; text-align: center; text-shadow: 0 0 6px rgba(183, 230, 122, .6); transition: background .12s;
}
.seta:hover { background: rgba(168, 217, 106, .16); }
.seta:active { background: rgba(168, 217, 106, .3); }
.painel__hints { display: flex; flex-direction: column; gap: .8cqw; font-size: max(3cqw, 8px); letter-spacing: .12em; opacity: .7; padding-top: 1.8cqw; white-space: nowrap; }

/* ---------- Ficha (pop-up de papel) ---------- */
.ficha {
  border: 0; padding: 0; background: transparent; color: var(--tinta);
  width: min(960px, 94vw); max-width: none; max-height: 92vh; overflow: visible;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .75));
}
.ficha::backdrop { background: rgba(6, 4, 3, .8); backdrop-filter: blur(3px); }
.ficha__papel {
  position: relative; max-height: 92vh; overflow: auto; padding: clamp(28px, 4vw, 48px);
  background: var(--papel) url("../assets/textures/aged-paper-tile.webp") center / 560px repeat;
  border: 2px solid var(--cobre-escuro); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 0 80px rgba(92, 61, 30, .22);
}
.ficha__canto { position: absolute; width: 22px; height: 22px; background: url("../assets/brand/star.svg") center / contain no-repeat; opacity: .9; }
.ficha__canto:nth-child(1) { left: 10px; top: 10px; }
.ficha__canto:nth-child(2) { right: 10px; top: 10px; }
.ficha__canto:nth-child(3) { left: 10px; bottom: 10px; }
.ficha__canto:nth-child(4) { right: 10px; bottom: 10px; }
/* Fica preso à moldura da ficha: não some ao rolar um texto longo. */
.ficha__fechar {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--tinta); background: var(--papel); color: var(--tinta); cursor: pointer; font-size: 18px; line-height: 1;
  box-shadow: 0 2px 10px rgba(45, 38, 27, .35);
  transition: background .15s, color .15s;
}
.ficha__fechar:hover { background: var(--tinta); color: var(--pergaminho); }
/* padding-right reserva o canto do botão de fechar: é a única linha que
   fica na mesma altura dele, e textos longos passavam por baixo. */
.ficha__kicker { margin: 0; padding-right: 52px; font: 600 13px/1.35 var(--font-interface); letter-spacing: .28em; text-transform: uppercase; color: var(--sangue); }
.ficha__titulo { margin: 8px 0 0; font: 700 clamp(34px, 4.6vw, 52px)/1.05 var(--font-display); color: var(--tinta); letter-spacing: .01em; }
.ficha__sub { margin: 6px 0 0; font: 500 15px/1.4 var(--font-interface); letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-suave); }
.ficha__linha { height: 2px; margin: 20px 0 24px; background: linear-gradient(90deg, var(--tinta) 0%, rgba(45, 38, 27, .35) 60%, transparent); }
.ficha p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--tinta); }
.ficha p.suave { color: var(--tinta-suave); font-style: italic; }
.ficha__grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.ficha__grid--mapa { grid-template-columns: 1fr 1fr; }
.retrato {
  position: relative; aspect-ratio: 340 / 516; width: 100%; overflow: hidden;
  border: 3px solid var(--tinta); box-shadow: 6px 6px 0 rgba(45, 38, 27, .18); transform: rotate(-1.2deg); background: #000;
}
.retrato img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.retrato { font-size: 14px; }

/* Espaço reservado: categoria sem fundo (.semfundo) e/ou profissional sem sprite (.vazio).
   Tamanhos em em, para servir tanto na tela do console quanto na ficha. */
.semfundo {
  background:
    linear-gradient(rgba(127, 166, 83, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 166, 83, .09) 1px, transparent 1px),
    linear-gradient(180deg, #172b1c 0%, #0b1a10 62%, #061009 100%);
  background-size: 1.6em 1.6em, 1.6em 1.6em, 100% 100%;
}
.vazio {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6em; background: rgba(6, 16, 9, .55); color: var(--fosforo); text-align: center; font-family: var(--font-crt);
}
.vazio__q { font-size: 5.5em; font-weight: 700; line-height: 1; opacity: .9; text-shadow: 0 0 .15em rgba(183, 230, 122, .6); }
.vazio__txt { font-size: .8em; font-weight: 600; line-height: 1.4; letter-spacing: .22em; color: var(--fosforo-medio); }
.retrato__num {
  position: absolute; right: 8px; top: 8px; padding: 4px 8px; border: 1.5px solid var(--pergaminho);
  font: 600 11px/1 var(--font-crt); letter-spacing: .14em; color: var(--pergaminho); background: rgba(0, 0, 0, .55);
}
.ficha__rotulo { margin: 0 0 8px; font: 600 12px/1 var(--font-interface); letter-spacing: .26em; text-transform: uppercase; color: var(--tinta-suave); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--tinta-suave); font: 500 13px/1 var(--font-interface); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 1.5px solid var(--tinta);
  background: var(--tinta); color: var(--pergaminho); text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--font-interface); letter-spacing: .18em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--vinho); border-color: var(--vinho); color: var(--pergaminho); }
.btn--outline { background: transparent; color: var(--tinta); }
.btn--outline:hover { background: var(--tinta); border-color: var(--tinta); color: var(--pergaminho); }
.btn svg { width: 18px; height: 18px; flex: none; }
.ficha__nota { margin: 16px 0 0; font: 500 12px/1.5 var(--font-interface); letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-suave); }

.icones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 24px; }
.icones div { text-align: center; }
.icones img { height: 96px; width: auto; margin: 0 auto 10px; }
.icones span { font: 600 13px/1 var(--font-interface); letter-spacing: .24em; text-transform: uppercase; color: var(--tinta); }

.horarios { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.horarios td { padding: 8px 0; border-bottom: 1px dashed rgba(45, 38, 27, .35); font-size: 16px; }
.horarios td:last-child { text-align: right; font-weight: 600; }
.mapa { margin: 22px 0 0; border: 3px solid var(--tinta); box-shadow: 6px 6px 0 rgba(45, 38, 27, .18); overflow: hidden; }
.mapa iframe { display: block; width: 100%; height: 280px; border: 0; filter: grayscale(.55) sepia(.45) contrast(.95); }

.lista-bruxos { list-style: none; margin: 0; padding: 0; }
.lista-bruxos li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(45, 38, 27, .35); }
.lista-bruxos strong { font: 700 22px/1.1 var(--font-display); }
.lista-bruxos small { display: block; font: 500 12px/1.4 var(--font-interface); letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-suave); }
.lista-bruxos .btn { padding: 10px 14px; font-size: 13px; }

/* ---------- Modo ampliado ----------
   Com zoom, o navegador precisa rasterizar tudo de novo na escala nova.
   As camadas caras aqui são as duas texturas de tela cheia em
   mix-blend-mode e o vidro da CRT, um SVG de ~100 curvas esticado. Em
   zoom elas viram borrão e ninguém as lê como textura, então saem de
   cena e a memória de vídeo para de estourar. Em 100% nada muda. */
body.ampliado .fundo__grao,
body.ampliado .fundo__poeira,
body.ampliado .tela .vidro { display: none; }

/* Zoom forte (acima de 2,5x): o console vira uma pilha simples de
   imagens. Saem as 12 bordas e os 2 brilhos, que carregam mask-image e
   por isso pedem um buffer cada um, mais a sombra projetada. E o 3D é
   achatado: sem inclinação, translateZ e a escala que o compensa se
   anulam, então as camadas continuam alinhadas, só perdem a espessura. */
body.ampliado--forte .borda,
body.ampliado--forte .luz,
body.ampliado--forte #l-sombra { display: none; }
body.ampliado--forte .obj { transform-style: flat; }
body.ampliado--forte .obj,
body.ampliado--forte .lyr,
body.ampliado--forte .hit { transform: none !important; }

/* ---------- Camada semântica ----------
   Invisível por padrão (mesma técnica do .sr-only). Ao receber foco pelo
   teclado, entra no fluxo entre o hero e o rodapé, para que quem navega
   por Tab veja onde está. */
.indice { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.indice:focus-within {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  padding: 32px 5vw 40px; background: var(--carvao); border-top: 1px solid var(--ferro);
  color: var(--areia); font-size: 15px; line-height: 1.6;
}
.indice h2, .indice h3, .indice h4 { margin: 0; font: 600 13px/1.4 var(--font-interface); letter-spacing: .2em; text-transform: uppercase; color: var(--cobre); }
.indice h2 { font-size: 15px; }
.indice h3 { margin-top: 24px; }
.indice h4 { margin: 14px 0 2px; color: var(--pergaminho); letter-spacing: .12em; }
.indice p { margin: 4px 0; }
.indice address { font-style: normal; }
.indice article { margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--ferro); }
.indice dl { margin: 6px 0 0; }
.indice dl div { display: flex; gap: 12px; }
.indice dt { min-width: 14ch; color: var(--pergaminho); }
.indice dd { margin: 0; }
.indice button {
  background: transparent; border: 1px solid var(--ferro); color: var(--cobre); padding: 4px 10px; cursor: pointer;
  font: 500 12px/1.2 var(--font-interface); letter-spacing: .14em; text-transform: uppercase;
}
.indice button:hover { border-color: var(--cobre); color: var(--cobre-claro); }

/* ---------- Rodapé ---------- */
.rodape {
  position: relative; z-index: 1; min-height: var(--rodape-h); padding: 14px 5vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  background: transparent;
  font: 500 12px/1.5 var(--font-interface); letter-spacing: .16em; text-transform: uppercase; color: var(--cobre-escuro);
}
/* Filete que nasce e morre no transparente, em vez da linha dura de
   ponta a ponta que cortava a página em faixas. */
.rodape::before {
  content: ""; position: absolute; left: 5vw; right: 5vw; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 52, 45, .7) 18%, rgba(59, 52, 45, .7) 82%, transparent);
}
.rodape a { color: var(--cobre); }
.rodape a:hover { color: var(--cobre-claro); }

/* ---------- Responsivo ---------- */
@media (max-width: 1023px) {
  /* svh, e não vh: no celular o vh ignora as barras do navegador e o
     conteúdo acaba escondido atrás delas. Reservado: 60 (topo) +
     12 e 20 (respiros) + 12 de folga = 104. */
  :root { --topo-h: 60px; --console-h: calc(100svh - 104px); }
  /* O rodapé sai da primeira tela e fica logo abaixo, ao rolar. */
  .hero { min-height: calc(100svh - var(--topo-h)); }
  .topo__logo img { height: 32px; }

  /* menu sanduíche: mesmos atalhos do topo do desktop */
  .topo__hamb {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 9px; flex: none;
    background: transparent; border: 1px solid var(--ferro); border-radius: 4px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .topo__hamb span { display: block; height: 2px; background: var(--cobre); transition: transform .2s ease, opacity .15s ease; }
  .topo__hamb[aria-expanded="true"] { border-color: var(--cobre-escuro); }
  .topo__hamb[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topo__hamb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .topo__hamb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .topo__nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    background: var(--carvao); border-top: 1px solid var(--ferro); border-bottom: 1px solid var(--ferro);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .7);
  }
  .topo.aberto .topo__nav { display: flex; }
  .topo__nav button {
    width: 100%; min-height: 52px; padding: 14px 5vw; text-align: left;
    border-bottom: 1px solid rgba(59, 52, 45, .55); border-left: 3px solid transparent;
  }
  /* No celular tudo abre por toque, em fluxo, com recuo por nível. */
  .topo__item { position: static; }
  .topo__nav { max-height: calc(100svh - var(--topo-h)); overflow-y: auto; }
  .topo__sub button {
    min-height: 46px; padding: 10px 5vw 10px calc(5vw + 20px); font-size: 13px; color: var(--cobre-escuro);
  }
  .topo__sub .topo__sub button { padding-left: calc(5vw + 40px); font-size: 12px; }
  .topo__nav button:hover, .topo__nav button[aria-current="true"] {
    border-bottom-color: rgba(59, 52, 45, .55); border-left-color: var(--cobre); background: rgba(190, 164, 115, .07);
  }
  .hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding-top: 12px; padding-bottom: 20px; }
  .hero__grid .stage { grid-column: auto; grid-row: auto; }
  .dica { font-size: 11px; line-height: 1.5; padding: 10px 16px; }
  .rodape { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 16px 5vw 20px; font-size: 11px; }
  .so-desktop { display: none; }
  .so-mobile { display: inline; }
  .legenda { display: none; }
  .stage { width: min(96vw, calc(var(--console-h) * 840 / 1410)); }
  .ficha__grid { grid-template-columns: 1fr; }
  .retrato { max-width: 240px; margin: 0 auto 8px; }
  .icones img { height: 72px; }
}
@media (max-width: 560px) {
  .ficha__papel { padding: 24px 20px; }
  .lista-bruxos li { flex-direction: column; align-items: flex-start; }
}
/* modo de captura da imagem de compartilhamento (?og) */
body.og .topo, body.og .legenda, body.og .dica, body.og .rodape { display: none; }
body.og .hero { min-height: 100vh; }
body.og .fundo__vinheta { background: radial-gradient(70% 80% at 50% 50%, transparent 40%, rgba(11, 9, 8, .6) 100%); }
body.og .hero__grid { padding-top: 24px; padding-bottom: 24px; grid-template-columns: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crt__press, .fundo__poeira, .painel__nome.flash, .dica { animation: none; }
  .tela.ligando .ligar, .tela.ligando .fosforo { animation: none; }
  .tela .ligar { display: none; }
  .fundo__luz { transition: none; }
}
