.page-packs {
  --out: #1D1233;
  --f-pixel: 'Press Start 2P', ui-monospace, monospace;
  --f-vt: 'VT323', ui-monospace, monospace;
  background: #140C24; color: #F6F0FF;
}
html:has(.page-packs) { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav-height, 64px); }
.page-packs .sala { scroll-snap-stop: always; }
.page-packs .home-nav { --nav-bg: #1D1233; --nav-border: #1D1233; position: sticky; top: 0; z-index: 50; }

.sala {
  --vh: calc(100svh - var(--nav-height, 64px));
  --sw: max(100vw, calc(var(--vh) * 16 / 9));
  --sh: max(var(--vh), calc(100vw * 9 / 16));
  --L: calc((100vw - var(--sw)) / 2);
  --T: calc(var(--vh) - var(--sh));
  position: relative; height: var(--vh); overflow: hidden;
  scroll-snap-align: start; background: #07050B;
}
.sala__fundo { position: absolute; inset: 0; z-index: 0; }
.sala__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; }
.sala__img--b { opacity: 0; animation: pisca 1.3s steps(1) infinite; }
@keyframes pisca { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.parede {
  position: absolute; z-index: 1;
  left: max(16px, calc(var(--L) + var(--sw) * var(--x0, 140) / 960));
  right: max(16px, calc(100vw - var(--L) - var(--sw) * var(--x1, 820) / 960));
  top: max(10px, calc(var(--T) + var(--sh) * 56 / 540));
  bottom: calc(var(--vh) - var(--T) - var(--sh) * 384 / 540);
  display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6svh, 16px);
}
.placa-sala { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 18px 8px; text-align: center; }
.placa-sala__pack { font: 16px/1 var(--f-vt); letter-spacing: .06em; opacity: .8; }
.placa-sala__nome { margin: 0; font: 400 clamp(11px, 1vw, 14px)/1.3 var(--f-pixel); letter-spacing: .04em; }
.obras {
  --gap: clamp(10px, 1.4vw, 22px);
  flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--gap);
  margin: 0; padding: 0; list-style: none;
}
.obra { width: var(--cw, 220px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.obra__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.obra__moldura { position: relative; display: block; box-sizing: content-box; width: auto; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; transition: transform .12s steps(2); }
.obras--h { --ar: 16 / 9; } .obras--w { --ar: 16 / 10; } .obras--q, .obras--e { --ar: 1 / 1; }
.obra__midia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.obras--h .obra--video .obra__midia { object-fit: cover; }
.obra--alpha .obra__moldura, .obras--e .obra__moldura, .obras--q .obra__moldura, .obras--w .obra--img .obra__moldura {
  background-image: repeating-conic-gradient(rgba(255,255,255,.07) 0 25%, transparent 0 50%); background-size: 16px 16px;
}
.obras--e .obra__midia { inset: 14%; width: 72%; height: 72%; }
.obra__btn:hover .obra__moldura, .obra__btn:focus-visible .obra__moldura { transform: translateY(-3px); }
.obra__btn:focus-visible { outline: 3px solid #FCD34D; outline-offset: 4px; }
.obra__placa { max-width: 100%; padding: 4px 8px 3px; font: 16px/1.05 var(--f-vt); text-align: center; overflow-wrap: anywhere; }
.obras--e .obra__placa { font-size: 14px; padding: 3px 5px 2px; }

.sala__nav { position: absolute; z-index: 2; right: 16px; bottom: 14px; display: flex; gap: 8px; }
.sala__nav a { font: 18px/1 var(--f-vt); color: #fff; text-decoration: none; padding: 7px 10px 6px; background: rgba(14, 8, 20, .72); border: 2px solid rgba(255, 255, 255, .25); }
.sala__nav a:hover, .sala__nav a:focus-visible { border-color: #FCD34D; color: #FCD34D; }
.sala--jh .obra__moldura { border: 7px solid #2E1F48; background-color: #0C0716; box-shadow: 0 0 0 2px #0C0716, inset 0 0 0 2px #0C0716, 0 0 22px rgba(140, 244, 58, .22), 6px 8px 0 rgba(0, 0, 0, .45); }
.sala--jh .obra__moldura::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(140, 244, 58, .35); pointer-events: none; }
.sala--jh .obra__placa, .sala--jh .placa-sala { color: #2A1640; background: linear-gradient(#F2EAD2, #DCCFAE); border: 2px solid #0C0716; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.sala--jh .placa-sala__nome { color: #3A1A5A; }
.sala--jh img, .sala--jh video.obra__midia { image-rendering: pixelated; }
.sala--fe .obra__moldura { border: 5px solid #141414; background-color: #EEEBE4; box-shadow: 5px 6px 0 rgba(0, 0, 0, .28); }
.sala--fe .obra__btn { position: relative; }
.sala--fe .obra__btn::before, .sala--fe .obra__btn::after { content: ''; position: absolute; z-index: 1; width: 16px; height: 16px; border: 3px solid #E13A2E; pointer-events: none; }
.sala--fe .obra__btn::before { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
.sala--fe .obra__btn::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.sala--fe .obras--e .obra__moldura, .sala--fe .obra--alpha .obra__moldura { background-color: #DCD7CE; background-image: repeating-conic-gradient(rgba(0,0,0,.06) 0 25%, transparent 0 50%); }
.sala--fe .obra__placa, .sala--fe .placa-sala { color: #141414; background: #FCFBF8; border-left: 4px solid #E13A2E; box-shadow: 2px 2px 0 rgba(0, 0, 0, .25); }
.sala--fe .placa-sala__nome { font-family: 'Bungee', var(--f-pixel); font-size: clamp(14px, 1.3vw, 18px); }
.sala--hb .obra__moldura { border: 3px solid #2B1A4A; border-top-width: 17px; border-top-color: #2B1A4A; background-color: #FBF6EE; box-shadow: 6px 6px 0 #6A54A0; }
.sala--hb .obra__moldura::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: -15px; height: 13px; background: linear-gradient(#D2FF7A, #8AC41E); }
.sala--hb .obra__moldura::after { content: ''; position: absolute; z-index: 2; right: 3px; top: -13px; width: 30px; height: 9px; background: linear-gradient(90deg, #FF6B9D 0 8px, transparent 8px 11px, #7C3AED 11px 19px, transparent 19px 22px, #FBF6EE 22px); }
.sala--hb .obra__moldura { overflow: visible; }
.sala--hb .obra__midia { clip-path: inset(0); }
.sala--hb .obra__placa, .sala--hb .placa-sala { color: #2B1A4A; background: #FBF6EE; border: 2px solid #2B1A4A; box-shadow: 3px 3px 0 #7C3AED; }
.sala--hb .obras--e .obra__moldura, .sala--hb .obra--alpha .obra__moldura, .sala--hb .obras--q .obra__moldura { background-color: #E6DAF6; background-image: repeating-conic-gradient(rgba(124,58,237,.10) 0 25%, transparent 0 50%); }
.sala--rc .obra__moldura { border: 12px solid transparent; border-image: var(--quadro) 12 / 12px stretch; background-color: #2A0A18; background-clip: padding-box; image-rendering: pixelated; filter: drop-shadow(5px 7px 0 rgba(10, 2, 6, .55)); }
.sala--rc .obra__placa, .sala--rc .placa-sala { color: #3A0E22; background: linear-gradient(#FFF6DC, #EED9A8); border: 2px solid #A26E26; box-shadow: 0 0 0 2px #3A2408, 3px 3px 0 rgba(0, 0, 0, .5); }
.sala--rc .obra__placa { font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; line-height: 1.2; }
.sala--rc .placa-sala__nome { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .02em; }
.sala--rc .placa-sala__pack { font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; }
.museu__voltar { position: absolute; z-index: 3; left: 16px; top: 12px; font: 20px/1 var(--f-vt); color: #E4D8FC; text-decoration: none; padding: 6px 10px 5px; background: rgba(14, 8, 20, .6); }
.museu__voltar:hover, .museu__voltar:focus-visible { color: #FCD34D; }
.museu__titulo { margin: 0;
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: max(48px, calc(var(--T) + var(--sh) * 104 / 540));
  margin: 0; padding: 14px 26px 12px; white-space: nowrap;
  font: 400 clamp(16px, 2.2vw, 30px)/1.2 var(--f-pixel); color: #3A0E22;
  background: linear-gradient(#FFF0B8, #E8C062 55%, #A26E26); border: 4px solid #3A2408; box-shadow: 0 0 0 3px #F6DA88, 6px 8px 0 rgba(0, 0, 0, .5);
}
.porta {
  position: absolute; z-index: 2; text-decoration: none;
  left: calc(var(--L) + var(--sw) * (var(--px) - 98) / 960); width: calc(var(--sw) * 196 / 960);
  top: calc(var(--T) + var(--sh) * 160 / 540); height: calc(var(--sh) * 284 / 540);
}
.porta__vao { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.porta:focus-visible { outline: none; }
.porta__placa {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 10px 4px; font: clamp(15px, 1.4vw, 20px)/1 var(--f-vt); color: #3A0E22;
  background: linear-gradient(#FFF6DC, #EED9A8); border: 2px solid #3A2408; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}
.porta:hover .porta__placa, .porta:focus-visible .porta__placa { background: #FCD34D; }
.visor { position: fixed; inset: 0; margin: auto; width: min(1180px, calc(100vw - 40px)); height: fit-content; max-height: calc(100svh - 40px); padding: 0; border: 0; background: transparent; overflow: visible; }
.visor::backdrop { background: rgba(8, 4, 12, .86); }
.visor__box { position: relative; display: flex; flex-direction: column; gap: 12px; }
.visor__palco {
  display: flex; align-items: center; justify-content: center; max-height: calc(100svh - 120px);
  background: #0A0610 repeating-conic-gradient(rgba(255,255,255,.06) 0 25%, transparent 0 50%) 0 0 / 20px 20px; border: 4px solid #000;
}
.visor__midia { display: block; max-width: 100%; max-height: calc(100svh - 128px); width: auto; height: auto; }
.visor__midia--video, .visor__midia--alpha { min-width: min(100%, 640px); }
.visor__pe { display: flex; align-items: center; justify-content: center; gap: 16px; }
.visor__t { margin: 0; font: 26px/1 var(--f-vt); color: #fff; text-align: center; min-width: 0; }
.visor__seta, .visor__x { width: 44px; height: 44px; font: 28px/1 var(--f-vt); color: #1D1233; background: #FCD34D; border: 3px solid #1D1233; cursor: pointer; }
.visor__seta[disabled] { opacity: .35; cursor: default; }
.visor__x { position: absolute; z-index: 2; right: -18px; top: -18px; background: #FF6B9D; }

@media (max-width: 767px) {
  html:has(.page-packs) { scroll-snap-type: none; }
  .sala { height: auto; min-height: 0; padding: 18px 14px 56px; }
  .sala__fundo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10, 6, 16, .25), rgba(10, 6, 16, .55)); }
  .sala__img { object-position: 50% 50%; }
  .parede { position: relative; inset: auto; gap: 14px; }
  .obras { --gap: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .obras--h { grid-template-columns: 1fr; }
  .obras--e { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .obra { width: auto; min-width: 0; }
  .sala__nav { right: 14px; bottom: 12px; }
  .sala--saguao { padding: 14px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .sala--saguao .sala__fundo { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 16 / 9; }
  .sala--saguao .sala__fundo::after { display: none; }
  .museu__voltar { position: static; order: 0; align-self: flex-start; }
  .museu__titulo { position: static; order: 1; transform: none; font-size: 15px; padding: 10px 14px 9px; white-space: normal; text-align: center; }
  .portas { order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: calc(100% - 28px); }
  .porta { position: static; width: auto; height: auto; }
  .porta__vao { display: none; }
  .porta__placa { position: static; transform: none; display: block; text-align: center; white-space: normal; padding: 10px 8px 9px; font-size: 20px; }
  .visor { width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; margin: 0; inset: 0; }
  .visor__box { height: 100%; justify-content: center; padding: 56px 10px 20px; box-sizing: border-box; }
  .visor__x { right: 10px; top: 10px; }
  .visor__seta { display: none; }
  .visor__palco { max-height: 70svh; }
  .visor__midia { max-height: 68svh; }
}
@media (prefers-reduced-motion: reduce) { .sala__img--b { animation: none; } .obra__moldura { transition: none; } }
.sala--saguao { --T: max(calc(var(--vh) - var(--sh)), min(0px, calc(var(--vh) - var(--sh) * 456 / 540))); }
.sala--saguao .sala__img { object-position: 50% 50%; }
.sala--saguao .museu__titulo { top: max(44px, calc(var(--T) + var(--sh) * 58 / 540)); }

.sala--hb { --x0: 190; --x1: 800; }
.sala--rc { --x0: 150; --x1: 810; }
@media (max-width: 767px) {
  .sala:not(.sala--saguao) .sala__fundo { position: relative; inset: auto; aspect-ratio: 16 / 9; margin: -18px -14px 14px; }
  .sala:not(.sala--saguao) .sala__fundo::after { display: none; }
  .sala:not(.sala--saguao) .sala__img { object-position: 50% 100%; }
  .sala--jh { background: #140C22; } .sala--fe { background: #DCD7CE; } .sala--hb { background: #B8A2D6; } .sala--rc { background: #2C0A18; }
  .sala--fe .sala__nav a, .sala--hb .sala__nav a { background: rgba(20, 20, 20, .8); }
}
.page-packs footer { scroll-snap-align: end; }
@media (min-width: 768px) { .sala--saguao .museu__titulo { font-size: clamp(12px, min(2.2vw, 2.3svh), 30px); padding: .55em 1.1em .45em; } }
.page-packs .home-nav {
  background: #1E1236 url(../images/servicos/packs/site/nav-sanca.png) left bottom / 180px 81px repeat-x;
  image-rendering: pixelated; border-bottom: 0; box-shadow: 0 4px 0 rgba(8, 4, 14, .45);
}
.page-packs .home-nav__links { gap: 14px; }
.page-packs .home-nav__link, .page-packs .home-nav__cta {
  display: inline-block; padding: 1px 6px 0; margin-bottom: 10px;
  font: 400 10px/1.4 var(--f-pixel); letter-spacing: .04em; text-transform: lowercase;
  border: 12px solid transparent; border-radius: 0; background: none; box-shadow: none;
  image-rendering: pixelated; transform: none; transition: transform .1s steps(2);
  filter: drop-shadow(3px 3px 0 rgba(8, 4, 14, .55));
}
.page-packs .home-nav__link { color: #2A1640; background: #F2EAD2; background-clip: padding-box; border-image: url(../images/servicos/packs/site/placa.png) 6 / 12px stretch; }
.page-packs .home-nav__cta { color: #FFF3CF; background: #A8223A; background-clip: padding-box; border-image: url(../images/servicos/packs/site/placa-veludo.png) 6 / 12px stretch; }
.page-packs .home-nav__cta::before { display: none; }
.page-packs .home-nav__link:hover, .page-packs .home-nav__link:focus-visible,
.page-packs .home-nav__cta:hover, .page-packs .home-nav__cta:focus-visible { transform: translateY(-2px); box-shadow: none; }
.page-packs .home-nav__link:hover, .page-packs .home-nav__link:focus-visible { color: #B42640; }
.page-packs .home-nav__cta:active, .page-packs .home-nav__link:active { transform: translateY(1px); box-shadow: none; }

.page-packs .home-footer {
  position: relative; padding-top: calc(66px + 56px); border-top: 0;
  background: #170E2A url(../images/servicos/packs/site/parede-escura.png) 0 0 / 60px 96px repeat; image-rendering: pixelated;
}
.page-packs .home-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 66px; pointer-events: none;
  background: url(../images/servicos/packs/site/rodape-piso.png) 0 0 / 180px 66px repeat-x; image-rendering: pixelated;
}
.page-packs .home-footer__col {
  border: 18px solid transparent; border-image: url(../images/servicos/packs/site/placa.png) 6 / 18px stretch; background: #F2EAD2; background-clip: padding-box;
  padding: 4px 8px 6px; image-rendering: pixelated; filter: drop-shadow(5px 6px 0 rgba(8, 4, 14, .55));
}
.page-packs .home-footer__heading { font: 400 11px/1.4 var(--f-pixel); letter-spacing: .04em; text-transform: lowercase; color: #3A1A5A; margin-bottom: 12px; }
.page-packs .home-footer__list { gap: 2px; }
.page-packs .home-footer__link { font: 21px/1.15 var(--f-vt); color: #2A1640; overflow-wrap: anywhere; }
.page-packs .home-footer__link:hover, .page-packs .home-footer__link:focus-visible { color: #B42640; }
.page-packs .home-footer__bottom { border-top: 2px dotted rgba(224, 176, 74, .45); font: 20px/1 var(--f-vt); letter-spacing: .04em; color: #E0B04A; }
@media (min-width: 1024px) { .page-packs .home-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .page-packs .home-nav__cta { font-size: 9px; }
  .page-packs .home-footer { padding-top: calc(66px + 32px); }
}
.sala--entrada { --T: max(calc(var(--vh) - var(--sh)), min(0px, calc(var(--vh) / 2 - var(--sh) * 229 / 540))); background: #2A1D3E; }
.entrada__painel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2svh, 22px); text-align: center; color: #F2EAD2; }
.entrada__titulo { margin: 0; font: 400 clamp(14px, 1.6vw, 26px)/1.3 var(--f-pixel); color: #E0B04A; text-shadow: 3px 3px 0 #120A18; }
.sala--entrada .entrada__txt { color: #F2EAD2; margin: 0; font: clamp(17px, 1.42vw, 25px)/1.18 var(--f-vt); letter-spacing: .02em; }
.entrada__txt--mob { display: none; }
@media (min-width: 768px) {
  .sala--entrada .sala__img { inset: auto; left: var(--L); top: var(--T); width: var(--sw); height: var(--sh); object-fit: fill; }
  .entrada__painel { position: absolute; z-index: 1; left: calc(var(--L) + var(--sw) * 298 / 960); width: calc(var(--sw) * 364 / 960); top: calc(var(--T) + var(--sh) * 94 / 540); height: calc(var(--sh) * 270 / 540); }
}
@media (max-width: 767px) {
  .sala--entrada { padding: 14px 14px 56px; display: flex; flex-direction: column; gap: 14px; }
  .sala--entrada .sala__fundo { position: relative; inset: auto; order: 1; aspect-ratio: 16 / 9; margin: 0 -14px; }
  .sala--entrada .sala__fundo::after { display: none; }
  .sala--entrada .museu__voltar { order: 0; }
  .entrada__painel { order: 2; padding: 18px 16px; background: #2C1C48; border: 6px solid #E0B04A; box-shadow: 0 0 0 2px #120A18, 4px 5px 0 2px rgba(0, 0, 0, .5); }
  .entrada__titulo { font-size: 15px; }
  .entrada__txt--desk { display: none; } .entrada__txt--mob { display: block; font-size: 20px; }
}
.parede__corpo { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.8vw, 28px); }
.parede__corpo .obras { flex: 1 1 0; width: auto; min-width: 0; height: 100%; }
.ficha { flex: 0 0 clamp(200px, 19vw, 300px); max-height: 100%; overflow: auto; box-sizing: border-box; padding: 12px 14px 13px; font: clamp(13px, min(1.12vw, 2.45svh), 19px)/1.12 var(--f-vt); letter-spacing: .02em; }
.ficha p { margin: 0; color: inherit; font: inherit; }
.sala--jh .ficha { color: #2A1640; background: linear-gradient(#F2EAD2, #DCCFAE); border: 2px solid #0C0716; box-shadow: 0 0 0 4px #2E1F48, 0 0 0 6px #0C0716, 0 0 22px rgba(140, 244, 58, .22), 6px 8px 0 4px rgba(0, 0, 0, .45); }
.sala--fe .ficha { color: #141414; background: #FCFBF8; border-left: 5px solid #E13A2E; box-shadow: 5px 6px 0 rgba(0, 0, 0, .28); }
.sala--hb .ficha { color: #2B1A4A; background: #FBF6EE; border: 3px solid #2B1A4A; border-top-width: 17px; box-shadow: 6px 6px 0 #6A54A0; }
.sala--rc .ficha { color: #3A0E22; background: linear-gradient(#FFF6DC, #EED9A8); border: 2px solid #A26E26; box-shadow: 0 0 0 3px #3A2408, 5px 7px 0 rgba(10, 2, 6, .55); font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(12px, min(.98vw, 2.1svh), 16px); line-height: 1.3; }
@media (max-width: 767px) {
  .parede__corpo { flex: none; flex-direction: column; align-items: stretch; gap: 14px; }
  .parede__corpo .obras { flex: none; height: auto; }
  .ficha { flex: none; max-height: none; font-size: 19px; }
  .sala--rc .ficha { font-size: 15px; }
}
@media (max-width: 767px) {
  .sala--cont { padding-top: 0; }
  .sala--cont .sala__fundo, .sala--cont .placa-sala { display: none; }
}
@media (max-width: 767px) {
  .sala:has(+ .sala--cont) { padding-bottom: 14px; }
  .sala:has(+ .sala--cont) .sala__nav { display: none; }
}
