/* Locadora por assinatura: estante 2.5D em CSS puro (leve), luz de golden hour dos anos 2000.
   Sem canvas pesado: tudo é CSS/SVG, e o que fica fora da tela ou atrás da sala é pausado. */

:root {
  --verde: #93EDE1;
  --ouro: #ffb84a;
  --creme: #fff1d0;
  --noite: #14090d;
  --fonte: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bw: clamp(130px, min(44vw, 31vh), 250px);   /* largura da caixa na estante */
  --piso: 26%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--noite); color: var(--creme); font-family: var(--fonte); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }

/* economia: aba escondida ou sala aberta = tudo da loja para de animar e de pintar */
html.pausado *, html.pausado *::before, html.pausado *::after { animation-play-state: paused !important; }
body.aberto .loja, body.aberto .atendente { visibility: hidden; transition: visibility 0s .5s; }

/* ---------- Loja ---------- */
.loja { position: relative; height: 100svh; min-height: 480px; overflow: hidden; }

.parede {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 54px),
    linear-gradient(#4a2c18, #2a180d 70%, #1a0e07);
}
.fundo-prateleiras { position: absolute; left: 0; right: 0; top: 17%; height: 50%; opacity: .5; }
.fundo-prateleiras i {
  display: block; height: 33.3%; border-bottom: 10px solid #6a4224;
  background: repeating-linear-gradient(90deg, #8a2430 0 12px, #14367a 12px 22px, #d6ab1f 22px 31px, #1e6b50 31px 44px, #6a3090 44px 52px, #cf5220 52px 66px, #1f8294 66px 74px);
  filter: saturate(.8) brightness(.55);
  -webkit-mask-image: linear-gradient(transparent 4%, #000 30%); mask-image: linear-gradient(transparent 4%, #000 30%);
}
.fundo-prateleiras i:nth-child(2) { filter: saturate(.8) brightness(.55) hue-rotate(70deg); background-position: 30px 0; }
.fundo-prateleiras i:nth-child(3) { filter: saturate(.8) brightness(.55) hue-rotate(200deg); background-position: 70px 0; }

/* golden hour: janela, feixes de sol e brilho quente (sem blend, que pesa) */
.janela { position: absolute; left: 3%; top: 12%; width: clamp(70px, 9vw, 130px); aspect-ratio: 44 / 56; display: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
@media (min-width: 1000px) and (min-aspect-ratio: 6/5) { .janela { display: block; } }
.raios { position: absolute; inset: 0; pointer-events: none; z-index: 12; overflow: hidden; }
.raios i {
  position: absolute; top: -10%; left: -10%; width: 16%; height: 160%; transform-origin: 0 0; transform: rotate(-38deg);
  background: linear-gradient(90deg, transparent, rgba(255, 190, 90, .2) 40%, rgba(255, 205, 120, .25) 60%, transparent);
}
.raios i:nth-child(2) { left: 8%; width: 9%; }
.raios i:nth-child(3) { left: 22%; width: 13%; opacity: .7; }
.loja::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 13; background: linear-gradient(145deg, rgba(255, 160, 40, .2), rgba(255, 100, 40, .05) 55%, rgba(60, 10, 70, .28)); }
.poeira { position: absolute; inset: 0; pointer-events: none; z-index: 14; overflow: hidden; }
.poeira i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe6b0; opacity: 0; animation: poeira 9s ease-in-out infinite; }
@keyframes poeira { 0% { transform: translate(0, 0); opacity: 0; } 25% { opacity: .8; } 80% { opacity: .5; } 100% { transform: translate(60px, -80px); opacity: 0; } }

.chao {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--piso); z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, #d4534f 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, #3f9ac2 0 3px, transparent 4px),
    radial-gradient(circle at 45% 80%, #e6b02a 0 2.5px, transparent 3.5px),
    linear-gradient(#3a2330, #1f1220);
  background-size: 46px 46px, 58px 58px, 38px 38px, 100% 100%;
}
.chao::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.65), transparent 70%); }
.tabua {
  position: absolute; left: -6%; right: -6%; bottom: var(--piso); height: 24px; z-index: 3;
  background: linear-gradient(#d49a52, #8a5428 42%, #4a2810);
  box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,235,190,.3);
}

/* ---------- Letreiro neon ---------- */
.letreiro { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; z-index: 6; pointer-events: none; padding: 0 16px; }
.neon { margin: 0; font-weight: 800; font-style: italic; letter-spacing: .04em; font-size: clamp(26px, 5.2vw, 56px); line-height: 1; color: #fff3df; text-shadow: 0 0 5px #fff, 0 0 14px #ff7a2e, 0 0 34px #ff5a1e, 0 0 70px #ff5a1e; animation: neon 7s infinite; }
.neon-azul { margin: 10px 0 0; font-weight: 700; font-size: clamp(9px, 1.4vw, 14px); letter-spacing: .3em; color: #ffe9bd; text-shadow: 0 0 4px #fff, 0 0 12px #ffb45a; }
@keyframes neon { 0%, 61%, 66%, 100% { opacity: 1; } 62%, 65% { opacity: .55; } }

/* ---------- Estante: carrossel 2.5D ---------- */
.palco {
  position: absolute; left: 0; right: 0; z-index: 4; bottom: calc(var(--piso) + 22px); height: calc(var(--bw) * 1.5 + 20px);
  perspective: 1100px; perspective-origin: 50% 35%; touch-action: pan-y; outline-offset: -4px;
}
.trilho { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.item {
  --d: 0; --ad: 0; --sg: 0;
  position: absolute; left: 50%; bottom: 0; width: var(--bw); height: calc(var(--bw) * 1.42); margin-left: calc(var(--bw) / -2);
  transform-origin: 50% 100%; transform-style: preserve-3d; cursor: pointer;
  transform: translate3d(calc(var(--d) * var(--bw) * .5 + var(--sg) * var(--bw) * .52), 0, calc(var(--ad) * -90px)) rotateY(calc(var(--sg) * -36deg)) scale(calc(1 - var(--ad) * .035));
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .4s, filter .4s, visibility 0s;
  filter: brightness(.62) saturate(.9);
}
.item.atual { filter: none; z-index: 60; }
.item.longe { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .4s, visibility 0s .65s; }
.item .sombra { position: absolute; left: 6%; right: 6%; bottom: -10px; height: 16px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.7), transparent 70%); transform: translateZ(-1px); }
.item.atual:hover .caixa { transform: translateY(-8px); }
.item .caixa { transition: transform .3s; }

/* Caixa de DVD */
.caixa { --bt: calc(var(--bw) * .075); position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.frente {
  position: absolute; inset: 0; container-type: inline-size; overflow: hidden; border-radius: 2px 5px 5px 2px;
  background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), inset 0 0 40px rgba(0,0,0,.25);
}
.caixa .frente { transform: translateZ(calc(var(--bt) / 2)); }
.frente::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4%; background: rgba(0,0,0,.25); z-index: 3; }
.lombada, .borda { position: absolute; top: 0; bottom: 0; width: var(--bt); background: linear-gradient(90deg, var(--c2), var(--c1)); display: grid; place-items: center; overflow: hidden; }
.lombada { left: 0; transform-origin: left center; transform: translateZ(calc(var(--bt) / -2)) rotateY(-90deg); }
.borda { left: calc(100% - var(--bt)); transform-origin: right center; transform: translateZ(calc(var(--bt) / -2)) rotateY(90deg); background: linear-gradient(90deg, #d9dce4, #aeb3c0); }
.lombada span { writing-mode: vertical-rl; font-size: calc(var(--bt) * .52); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }

.faixa-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; gap: 2cqw; padding: 3.4cqw 6cqw 3.4cqw 8cqw; font-size: 3.1cqw; font-weight: 800; letter-spacing: .12em; background: rgba(0,0,0,.5); color: #fff; }
.kicker { position: absolute; left: 8cqw; right: 8cqw; top: 13.5cqw; font-size: 3.6cqw; font-weight: 800; letter-spacing: .16em; color: var(--acento); text-shadow: 0 .5cqw 0 rgba(0,0,0,.45); text-transform: uppercase; }
.arte { position: absolute; left: 10cqw; right: 10cqw; top: 22cqw; height: 52cqw; color: #fff; filter: drop-shadow(0 1cqw 0 rgba(0,0,0,.35)); }
.arte svg { width: 100%; height: 100%; display: block; }
.titulo { position: absolute; left: 8cqw; right: 8cqw; top: 80cqw; font-weight: 800; font-size: 11cqw; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 .8cqw 0 rgba(0,0,0,.5); }
.faixa-base { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.6cqw 6cqw 2.6cqw 8cqw; font-size: 2.9cqw; font-weight: 800; letter-spacing: .1em; text-align: center; background: var(--acento); color: #111; }
.brilho-capa { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.3) 0, rgba(255,255,255,.07) 26%, transparent 40%, transparent 72%, rgba(255,255,255,.12) 100%); }

.selo {
  position: absolute; top: 14cqw; right: 3cqw; z-index: 5; width: 32cqw; aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 1cqw;
  font-weight: 800; font-size: 2.7cqw; line-height: 1.1; color: #3a1d00; background: radial-gradient(circle at 35% 30%, #fff6b0, #ffc928 55%, #e08a00);
  clip-path: var(--clip-selo); transform: rotate(10deg); overflow: hidden;
}
.selo b { display: block; font-size: 3.5cqw; }
.selo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; animation: brilha 2.6s ease-in-out infinite; }
.selo.soon { background: radial-gradient(circle at 35% 30%, #f6f8ff, #aeb4c8 55%, #6f7690); color: #10131f; }
@keyframes brilha { 0%, 50% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.fagulha { position: absolute; z-index: 6; width: 6cqw; aspect-ratio: 1; background: #fff; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: pisca 1.9s ease-in-out infinite; }
.fagulha:nth-of-type(1) { top: 11cqw; right: 29cqw; animation-delay: .2s; }
.fagulha:nth-of-type(2) { top: 30cqw; right: 2cqw; animation-delay: 1s; width: 4.5cqw; }
.fagulha:nth-of-type(3) { top: 12cqw; right: 3cqw; animation-delay: 1.5s; width: 3.5cqw; }
@keyframes pisca { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
/* só as caixas perto do centro animam o brilho */
.item:not(.perto) .selo::before, .item:not(.perto) .fagulha { animation-play-state: paused; }

/* ---------- Setas, etiqueta, pontos ---------- */
.seta { position: absolute; z-index: 8; top: 46%; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: rgba(20,8,6,.55); font-size: 16px; line-height: 1; display: grid; place-items: center; box-shadow: 0 0 12px #ffa24a, inset 0 0 8px rgba(255,162,74,.5); text-shadow: 0 0 8px #ffa24a; transition: opacity .3s, transform .2s; }
.seta:hover { transform: scale(1.08); }
.seta[disabled] { opacity: .2; pointer-events: none; }
.seta.esq { left: max(10px, 2vw); }
.seta.dir { right: max(10px, 2vw); }

.etiqueta { position: absolute; left: 0; right: 0; bottom: 2.5%; z-index: 8; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.papel { display: inline-flex; flex-direction: column; background: #fff1c2; color: #2b1a0a; padding: 7px 18px 8px; border-radius: 3px; transform: rotate(-1deg); box-shadow: 0 4px 0 rgba(0,0,0,.35); max-width: min(92vw, 520px); }
.papel b { font-size: clamp(15px, 2.2vw, 22px); font-weight: 800; }
.papel small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta, .clube { border-radius: 999px; padding: 11px 24px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s; }
.cta { border: 0; background: var(--verde); color: #04201c; box-shadow: 0 0 22px rgba(147,237,225,.5); }
.clube { border: 2px solid var(--ouro); background: rgba(20,8,6,.6); color: var(--ouro); }
.cta:hover, .clube:hover { transform: translateY(-2px); }
.pontos { display: flex; gap: 7px; }
.pontos i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); transition: all .3s; }
.pontos i.on { background: var(--verde); box-shadow: 0 0 8px var(--verde); width: 22px; border-radius: 4px; }

/* ---------- Atendente (SVG: sem redesenhar a cada quadro) ---------- */
.atendente { position: fixed; right: max(8px, 1.5vw); bottom: 0; z-index: 16; --ah: clamp(150px, 31vh, 270px); --au: calc(var(--ah) / 72); display: flex; flex-direction: column; align-items: center; }
.at-figura { position: relative; z-index: 1; width: calc(48 * var(--au)); height: calc(72 * var(--au)); margin-bottom: calc(-17 * var(--au)); cursor: pointer; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.at-svg { width: 100%; height: 100%; overflow: visible; --lx: 0; --ly: 0; --a1: 0deg; --a2: 0deg; }
.at-svg * { transform-box: view-box; }
.at-corpo { animation: respira 3.6s ease-in-out infinite; }
@keyframes respira { 50% { transform: translateY(.5px); } }
.at-braco { transform-origin: 11px 41px; transform: rotate(var(--a1)); transition: transform .4s cubic-bezier(.3, .9, .3, 1.2); }
.at-ante { transform-origin: 11px 54px; transform: rotate(var(--a2)); transition: transform .4s cubic-bezier(.3, .9, .3, 1.2); }
.aceno .at-ante { animation: acenar .42s ease-in-out infinite alternate; }
@keyframes acenar { from { transform: rotate(-20deg); } to { transform: rotate(40deg); } }
.at-cabeca { transform-origin: 24px 35px; transform: translate(calc(var(--lx) * 1.6px), calc(var(--ly) * .9px)) rotate(calc(var(--lx) * 3.4deg)); transition: transform .18s ease-out; }
.at-iris { transform: translate(calc(var(--lx) * 1.2px), calc(var(--ly) * 1px)); transition: transform .12s ease-out; }
.at-olho { transform-box: fill-box; transform-origin: center; animation: piscar 4.4s infinite; }
.at-olho:nth-of-type(2) { animation-delay: 0s; }
@keyframes piscar { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.at-sobr { transition: transform .2s; }
.h-surpreso .at-sobr, .h-feliz .at-sobr { transform: translateY(-1px); }
.h-surpreso .at-sobr { transform: translateY(-1.6px); }
.m-fala, .m-oh, .m-feliz, .at-bochecha { display: none; }
.at-bochecha { opacity: .35; }
.h-feliz .at-bochecha { display: block; }
.h-feliz .m-sorriso { display: none; } .h-feliz .m-feliz { display: block; }
.h-surpreso .m-sorriso, .h-surpreso .m-feliz { display: none; } .h-surpreso .m-oh { display: block; }
.falando .m-sorriso, .falando .m-feliz, .falando .m-oh { display: none; }
.falando .m-fala { display: block; transform-box: fill-box; transform-origin: center; animation: boca .22s ease-in-out infinite alternate; }
@keyframes boca { from { transform: scaleY(.45); } to { transform: scaleY(1.5); } }
.h-surpreso .at-olho { animation: none; transform: scaleY(1.2); }

.balcao { position: relative; z-index: 2; width: calc(64 * var(--au)); filter: drop-shadow(0 -2px 6px rgba(0,0,0,.3)); }
.balcao svg { display: block; width: 100%; height: auto; }
.sino { position: absolute; left: calc(40 * var(--au)); top: calc(-6 * var(--au)); width: calc(16 * var(--au)); height: calc(11 * var(--au)); border: 0; background: transparent; border-radius: 50%; }
.sino:hover { background: rgba(255,230,150,.25); }
.fala {
  position: absolute; z-index: 3; right: 0; bottom: calc(100% - 12 * var(--au)); width: max-content; max-width: min(64vw, calc(190 * var(--au)));
  padding: calc(var(--au) * 3) calc(var(--au) * 4); background: #fffaf0; color: #2b1a0a; border-radius: calc(var(--au) * 4);
  font-weight: 700; font-size: clamp(12px, calc(var(--au) * 4), 18px); line-height: 1.3; box-shadow: 0 4px 10px rgba(0,0,0,.45); animation: balao .25s cubic-bezier(.2,.9,.3,1.25);
}
.fala::after { content: ''; position: absolute; right: calc(var(--au) * 14); bottom: calc(var(--au) * -3); width: calc(var(--au) * 5); height: calc(var(--au) * 5); background: #fffaf0; transform: rotate(45deg); }
@keyframes balao { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Sala: estojo, leitor e TV ---------- */
.sala {
  --tvw: min(56vw, 780px, calc(100svh - 150px)); --ew: min(17vw, 30vh); --dd: calc(var(--tvw) * .15);
  position: fixed; inset: 0; z-index: 40; visibility: hidden; opacity: 0; overflow: hidden; transition: opacity .45s, visibility 0s .45s;
}
body.aberto .sala { visibility: visible; opacity: 1; transition-delay: 0s; }
.sala-parede { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px 54px), radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--c1, #664) 14%, #6a4020), #2a160c 78%); }
.btn { position: absolute; z-index: 60; border: 1px solid rgba(255,255,255,.45); background: rgba(20,8,6,.7); border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 13px; }
.btn:hover { border-color: var(--verde); color: var(--verde); }
.fechar { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.pular { left: 50%; bottom: 14px; transform: translateX(-50%); opacity: .8; }
.sala.f-menu .pular { display: none; }

.cena { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3.5vw; padding: 20px 16px 30px; }
.mesa { width: calc(var(--ew) * 2); display: flex; justify-content: flex-end; flex: none; align-self: center; }

/* estojo de DVD que abre de verdade (3D) */
.estojo { position: relative; width: var(--ew); height: calc(var(--ew) * 1.42); flex: none; perspective: 1300px; opacity: 0; transform: translateY(80px); }
.sala.f-in .estojo { opacity: 1; transform: none; transition: transform .7s cubic-bezier(.2, .9, .25, 1.1), opacity .3s; }
.e-corpo { position: absolute; inset: 0; transform-style: preserve-3d; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.e-interior { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; background: radial-gradient(circle at 50% 50%, #12141d 0 3%, #d7dbea 3.2% 9%, #343a52 9.4% 11%, transparent 11.4%), radial-gradient(circle at 50% 50%, transparent 0 27%, #4d5470 27.4% 28%, transparent 28.4%), linear-gradient(135deg, #272a3b, #0e1018); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.e-capa { position: absolute; inset: 0; z-index: 4; transform-origin: left center; transform-style: preserve-3d; transform: translateZ(4px); transition: transform 1.1s cubic-bezier(.3, .8, .2, 1); }
.estojo.abre .e-capa { transform: translateZ(4px) rotateY(-168deg); }
.e-capa .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.e-capa .frente { transform: none; }
.e-capa .verso { transform: rotateY(180deg); border-radius: 6px 3px 3px 6px; background: linear-gradient(135deg, #f4f6fd, #c4cadf); box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); padding: 9% 9% 7%; display: flex; flex-direction: column; gap: 6%; }
.verso .v-topo { height: 16%; border-radius: 3px; background: linear-gradient(var(--c1), color-mix(in srgb, var(--c1) 60%, #000)); color: var(--acento); font-weight: 800; font-style: italic; font-size: calc(var(--ew) * .12); display: grid; align-items: center; padding-left: 8%; }
.verso .v-miolo { flex: 1; background: #fff; border-radius: 3px; padding: 8%; display: grid; gap: 7%; align-content: start; }
.verso .v-miolo i { height: 5%; min-height: 3px; border-radius: 2px; background: #a9b0cc; }
.verso .v-miolo i:nth-child(1) { width: 55%; } .verso .v-miolo i:nth-child(2) { width: 85%; } .verso .v-miolo i:nth-child(3) { width: 40%; } .verso .v-miolo i:nth-child(4) { width: 70%; } .verso .v-miolo i:nth-child(5) { width: 60%; }

.disco { position: absolute; z-index: 1; left: 22.7%; top: 30%; width: 54.5%; aspect-ratio: 1; border-radius: 50%; transform: translateZ(1px); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.disco.sobe { transform: translateZ(1px) translateY(-14%) scale(1.06); }
.disco-face {
  position: absolute; inset: 0; border-radius: 50%; animation: girar 2.4s linear infinite; animation-play-state: paused;
  background:
    radial-gradient(circle, #0b0c12 0 7%, #d9dcea 7.4% 17%, transparent 17.4%),
    radial-gradient(circle, transparent 0 21%, rgba(0,0,0,.35) 21.4% 22.4%, transparent 22.8%),
    conic-gradient(from 20deg, rgba(255,255,255,.6), rgba(255,255,255,0) 14%, rgba(150,255,230,.4) 28%, rgba(255,255,255,0) 40%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 64%, rgba(255,190,255,.4) 78%, rgba(255,255,255,0) 90%, rgba(255,255,255,.6)),
    linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 4px 8px rgba(0,0,0,.4);
}
.disco.sobe .disco-face, .disco.voando .disco-face { animation-play-state: running; }
@keyframes girar { to { transform: rotate(360deg); } }
.cena > .disco { position: absolute; z-index: 50; transition: none; aspect-ratio: 1; }

.aparelho { display: flex; flex-direction: column; align-items: center; width: var(--tvw); flex: none; opacity: 0; transform: translateY(30px); }
.sala.f-in .aparelho { opacity: 1; transform: none; transition: transform .6s .2s cubic-bezier(.2, .8, .2, 1), opacity .5s .2s; }

.tv {
  --p: calc(var(--tvw) / 192);
  width: 100%; aspect-ratio: 1 / .8; padding: 3.6%; display: grid; grid-template-columns: 1fr 10%; gap: 2.5%; position: relative;
  background: linear-gradient(145deg, #5a564c, #2c2a25 60%, #1a1916); border-radius: 2.2% / 2.8%;
  box-shadow: 0 30px 70px rgba(0,0,0,.65), 0 0 0 2px #0b0b0d, inset 0 2px 0 rgba(255,235,190,.2), 0 0 140px -20px var(--c1, #333);
}
.tela { position: relative; border-radius: 5% / 6.5%; overflow: hidden; background: #000; container-type: size; box-shadow: inset 0 0 60px rgba(0,0,0,.9); }
.tela-in { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; opacity: 0; transform: scaleY(.02); }
.sala.f-menu .tela-in, .sala.f-liga .tela-in { opacity: 1; }
.sala.f-liga:not(.f-carrega) .tela-in { animation: liga .5s ease-out forwards; }
.sala.f-carrega .tela-in { transform: none; }
@keyframes liga { from { transform: scaleY(.02); filter: brightness(3); } to { transform: none; filter: none; } }
.estatica { position: absolute; inset: -20%; opacity: 0; z-index: 3; pointer-events: none; background-color: #2a2a2a; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.5 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: chuvisco .3s steps(5) infinite; animation-play-state: paused; }
.sala.f-liga:not(.f-carrega) .estatica { opacity: 1; animation-play-state: running; }
@keyframes chuvisco { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -7%); } 75% { transform: translate(-4%, -3%); } 100% { transform: translate(7%, 6%); } }
.splash { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--p) * 3); background: radial-gradient(#1a1a22, #000); color: #fff; }
.sala.f-carrega .splash { display: flex; }
.sala.f-menu .splash { display: none; }
.splash-logo { font-weight: 800; font-style: italic; font-size: calc(var(--p) * 9); text-shadow: 0 0 calc(var(--p) * 3) var(--c1, #fff); }
.splash small { font-size: calc(var(--p) * 2.4); letter-spacing: .2em; opacity: .8; text-transform: uppercase; font-weight: 700; }
.splash-barra { width: 60%; height: calc(var(--p) * 2.4); border-radius: 999px; border: calc(var(--p) * .4) solid #fff; padding: calc(var(--p) * .4); }
.splash-barra i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(var(--verde), #4cc9b8); animation: carrega .95s ease-in-out forwards; animation-play-state: paused; }
.sala.f-carrega .splash-barra i { animation-play-state: running; }
@keyframes carrega { to { width: 100%; } }
.scan { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: repeating-linear-gradient(rgba(0,0,0,.16) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.5)); }
.vidro { display: none; }

.lateral { display: flex; flex-direction: column; align-items: center; gap: 9%; padding-top: 8%; }
.botao { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8d2c4, #7e786b 55%, #2e2c27); box-shadow: 0 2px 4px #000; }
.grade { width: 70%; flex: 1; max-height: 34%; background: repeating-linear-gradient(#050507 0 2px, #1b1a18 2px 5px); border-radius: 3px; }
.led { width: 22%; aspect-ratio: 1; border-radius: 50%; background: #4a1010; margin-top: auto; margin-bottom: 8%; transition: all .3s; }
.sala.f-liga .led { background: #ff3030; box-shadow: 0 0 10px #ff3030; }
.marca-tv { position: absolute; left: 4.4%; bottom: 2.2%; font-weight: 800; font-style: italic; font-size: calc(var(--p) * 7); color: #d8d0bc; text-shadow: 0 1px 2px #000; }

/* leitor de DVD */
.leitor-wrap { position: relative; width: 80%; margin: 1.5% 0 calc(var(--tvw) * .15); }
.leitor { position: relative; z-index: 2; height: calc(var(--tvw) * .092); display: flex; align-items: center; gap: 3%; padding: 0 3%; background: linear-gradient(#ece8de, #bdb8ac 50%, #8a857a); border-radius: 3px; box-shadow: 0 12px 26px rgba(0,0,0,.55), inset 0 1px 0 #fff; }
.marca-leitor { font-size: calc(var(--tvw) * .013); font-weight: 800; letter-spacing: .16em; color: #3a372f; white-space: nowrap; }
.fenda { flex: 1; height: 14%; background: #14151a; border-radius: 2px; box-shadow: inset 0 1px 3px #000; }
.visor { background: #06100f; color: var(--verde); border-radius: 2px; text-align: center; min-width: 17%; font-weight: 800; font-size: calc(var(--tvw) * .017); padding: 1.4% 2%; text-shadow: 0 0 6px var(--verde); letter-spacing: .1em; }
.gaveta {
  position: absolute; z-index: 1; left: 50%; top: calc(100% - 3px); width: 56%; height: calc(var(--tvw) * .16); transform: translateX(-50%);
  background: linear-gradient(#f2eee4, #cdc8bb 70%, #8f8a7e); border-radius: 0 0 6px 6px; box-shadow: 0 10px 20px rgba(0,0,0,.5);
  clip-path: inset(0 0 100% 0); transition: clip-path .85s cubic-bezier(.3, .7, .2, 1);
}
.sala.f-gaveta .gaveta { clip-path: inset(0 -10px -30px -10px); }
.sala.f-fecha .gaveta { clip-path: inset(0 0 100% 0); }
.gaveta .disco { left: 50%; top: 50%; width: var(--dd); margin: calc(var(--dd) / -2) 0 0 calc(var(--dd) / -2); transform: perspective(300px) rotateX(58deg); z-index: 1; }

/* ---- Menu de DVD dentro da TV (rola com mouse, dedo ou setas) ---- */
.menu-scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y proximity; overscroll-behavior: contain; outline: none;
  scrollbar-width: thin; scrollbar-color: var(--ac, #ffd23f) #05060a; font-size: clamp(12px, calc(var(--p) * 3.3), 20px); line-height: 1.4; color: #fff; font-weight: 500;
}
.menu-scroll::-webkit-scrollbar { width: calc(var(--p) * 2); }
.menu-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,.6); }
.menu-scroll::-webkit-scrollbar-thumb { background: var(--ac, #ffd23f); border-radius: 999px; border: calc(var(--p) * .4) solid #000; }
.m-nav { position: sticky; top: 0; z-index: 10; display: flex; gap: calc(var(--p) * .6); overflow-x: auto; scrollbar-width: none; background: linear-gradient(rgba(0,0,0,.95), rgba(0,0,0,.8)); border-bottom: calc(var(--p) * .5) solid var(--ac, #ffd23f); padding: calc(var(--p) * .8); font-size: clamp(9px, calc(var(--p) * 2.1), 13px); }
.m-nav::-webkit-scrollbar { display: none; }
.m-nav button { flex: none; border: 0; background: none; color: #c8c2b8; padding: calc(var(--p) * 1) calc(var(--p) * 2.2); border-radius: 999px; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; transition: all .2s; }
.m-nav button.on { color: #000; background: var(--ac, #ffd23f); }
.s { min-height: 100cqh; padding: calc(var(--p) * 5) calc(var(--p) * 6) calc(var(--p) * 6); scroll-snap-align: start; scroll-margin-top: calc(var(--p) * 6); position: relative; background: radial-gradient(120% 80% at 85% 0%, color-mix(in srgb, var(--c1, #444) 70%, transparent), transparent 60%), linear-gradient(170deg, var(--c2, #111), #05060a); border-bottom: calc(var(--p) * .4) solid rgba(255,255,255,.14); }
.s:nth-child(odd) { background: radial-gradient(120% 80% at 10% 100%, color-mix(in srgb, var(--c1, #444) 55%, transparent), transparent 60%), linear-gradient(190deg, #05060a, var(--c2, #111)); }
.s h2 { font-weight: 800; font-size: clamp(14px, calc(var(--p) * 4.2), 28px); font-style: italic; letter-spacing: -.01em; line-height: 1.1; color: var(--ac, #ffd23f); text-shadow: 0 calc(var(--p) * .5) 0 #000; margin: 0 0 calc(var(--p) * 3); text-transform: uppercase; }
.s p { margin: 0 0 calc(var(--p) * 2); text-shadow: 0 calc(var(--p) * .3) 0 rgba(0,0,0,.6); }
.logo { font-weight: 800; font-style: italic; font-size: clamp(18px, calc(var(--p) * 6.2), 40px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.02em; color: #fff; text-shadow: 0 calc(var(--p) * .7) 0 #000, 0 0 calc(var(--p) * 4) var(--ac, #ffd23f); margin: calc(var(--p) * 2) 0; }
.m-lista { list-style: none; margin: calc(var(--p) * 3) 0 0; padding: 0; display: grid; gap: calc(var(--p) * 1); }
.m-lista button { width: 100%; text-align: left; border: 0; background: none; color: #fff; padding: calc(var(--p) * 1) calc(var(--p) * 2.5); border-radius: calc(var(--p) * 1.2); text-transform: uppercase; font-weight: 800; font-size: clamp(11px, calc(var(--p) * 3), 19px); letter-spacing: .04em; text-shadow: 0 calc(var(--p) * .4) 0 #000; transition: background .15s, transform .15s; }
.m-lista button::before { content: ''; display: inline-block; width: calc(var(--p) * 2.5); }
.m-lista button:hover, .m-lista button:focus-visible, .m-lista button.foco { color: #000; background: linear-gradient(var(--ac, #ffd23f), color-mix(in srgb, var(--ac, #ffd23f) 70%, #000)); text-shadow: none; outline: none; transform: translateX(calc(var(--p) * 1)); }
.m-lista button:hover::before, .m-lista button:focus-visible::before, .m-lista button.foco::before { content: '\25B6'; width: auto; margin-right: calc(var(--p) * .8); font-size: .8em; }
.m-aviso { margin-top: calc(var(--p) * 4); font-size: .8em; opacity: .75; }
.video { aspect-ratio: 4 / 3; max-height: 70cqh; width: 100%; border: calc(var(--p) * .5) solid #fff; border-radius: calc(var(--p) * 1.5); overflow: hidden; background: #000; display: flex; flex-direction: column; }
.video video { width: 100%; height: 100%; object-fit: contain; }
.barras { flex: 1; background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 0 28.57%, #00c0c0 0 42.85%, #00c000 0 57.14%, #c000c0 0 71.4%, #c00000 0 85.7%, #0000c0 0); }
.video .aviso { padding: calc(var(--p) * 2); font-weight: 800; font-size: clamp(10px, calc(var(--p) * 2.6), 15px); background: #000; text-align: center; letter-spacing: .1em; }
.cenas { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--p) * 3); }
@container (max-width: 330px) { .cenas { grid-template-columns: 1fr; } }
.cena-card { border: calc(var(--p) * .4) solid color-mix(in srgb, var(--ac, #ffd23f) 70%, transparent); border-radius: calc(var(--p) * 2); background: rgba(0,0,0,.45); padding: calc(var(--p) * 2); display: grid; grid-template-columns: auto 1fr; gap: calc(var(--p) * 2); align-items: start; }
.cena-card .thumb { width: calc(var(--p) * 12); aspect-ratio: 32 / 26; border-radius: calc(var(--p) * 1); background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 85%, #fff), var(--c2)); display: grid; place-items: center; color: #fff; padding: 12%; }
.cena-card .thumb svg { width: 100%; height: 100%; }
.cena-card small { display: block; font-weight: 800; font-size: .75em; letter-spacing: .12em; color: var(--ac, #ffd23f); }
.cena-card b { font-weight: 800; display: block; text-transform: uppercase; }
.cena-card span.d { opacity: .85; font-size: .88em; display: block; }
.vazio { border: calc(var(--p) * .4) dashed rgba(255,255,255,.5); border-radius: calc(var(--p) * 2); padding: calc(var(--p) * 4); text-align: center; font-weight: 800; letter-spacing: .06em; line-height: 1.5; }
.extras, .pos { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--p) * 2); }
.extras li, .pos li { display: flex; justify-content: space-between; gap: calc(var(--p) * 3); padding: calc(var(--p) * 1.6) calc(var(--p) * 2.5); background: rgba(0,0,0,.42); border-left: calc(var(--p) * 1.2) solid var(--ac, #ffd23f); border-radius: calc(var(--p) * 1.2); text-transform: uppercase; font-weight: 700; }
.extras li em, .pos li em { font-style: normal; opacity: .75; font-size: .8em; text-align: right; }
.creditos { text-align: center; display: grid; gap: calc(var(--p) * 3); }
.creditos div small { display: block; font-weight: 800; font-size: .72em; color: var(--ac, #ffd23f); letter-spacing: .2em; margin-bottom: calc(var(--p)); text-transform: uppercase; }
.creditos div b { font-weight: 800; text-transform: uppercase; font-size: 1.1em; }

/* Assinar: plano do DVD e Plano Clube */
.planos { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--p) * 3); }
@container (max-width: 330px) { .planos { grid-template-columns: 1fr; } }
.plano { border: calc(var(--p) * .5) solid rgba(255,255,255,.5); border-radius: calc(var(--p) * 2.5); padding: calc(var(--p) * 3); background: rgba(0,0,0,.5); display: grid; gap: calc(var(--p) * 1.5); align-content: start; }
.plano.clube { border-color: var(--ac, #ffd23f); background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.6)), linear-gradient(135deg, color-mix(in srgb, var(--ac, #ffd23f) 25%, transparent), transparent); }
.plano small { font-weight: 800; font-size: .72em; letter-spacing: .18em; text-transform: uppercase; color: var(--ac, #ffd23f); }
.plano b { font-weight: 800; font-size: clamp(14px, calc(var(--p) * 4.6), 26px); line-height: 1.1; }
.plano p { margin: 0; font-size: .86em; opacity: .85; }
.m-btn { display: inline-block; justify-self: start; border: calc(var(--p) * .4) solid #fff; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: clamp(10px, calc(var(--p) * 2.6), 15px); padding: calc(var(--p) * 1.8) calc(var(--p) * 3.5); border-radius: 999px; line-height: 1.2; }
.m-btn.forte { background: linear-gradient(var(--verde), #4cc9b8); border-color: var(--verde); color: #04201c; box-shadow: 0 0 calc(var(--p) * 3) rgba(147,237,225,.5); }
.m-btn:hover:not([disabled]) { background: #fff; color: #000; }
.m-btn[disabled] { opacity: .5; cursor: default; box-shadow: none; }
.m-voltar { margin-top: calc(var(--p) * 4); }
.role { position: absolute; left: 0; right: 0; bottom: calc(var(--p) * 1.5); text-align: center; z-index: 5; pointer-events: none; font-weight: 800; font-size: clamp(9px, calc(var(--p) * 2), 12px); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 calc(var(--p) * .5) 0 #000; animation: role 1.2s ease-in-out infinite; }
.role::after { content: ' \25BC'; }
.role.some { display: none; }
@keyframes role { 50% { opacity: .2; } }


/* Enquadramento do menu: conteúdo fica dentro da tela arredondada da TV, em qualquer tamanho. */
.tela-in { overflow: hidden; }
.s { box-sizing: border-box; padding: calc(var(--p) * 5) max(calc(var(--p) * 6), 4.5%) max(calc(var(--p) * 9), 11%); }
.logo { overflow-wrap: anywhere; font-size: clamp(13px, calc(var(--p) * 5.6), 36px); }
.m-nav { box-sizing: border-box; padding: calc(var(--p) * .8) max(calc(var(--p) * 2.4), 3.8%); }
.role { left: 8%; right: 8%; bottom: max(calc(var(--p) * 2.2), 3.8%); }
@container (max-width: 480px) {
  .menu-scroll { font-size: clamp(10px, 3cqi, 15px); }
  .m-nav { flex-wrap: wrap; justify-content: center; overflow-x: hidden; overflow-y: hidden; row-gap: 0.4cqi; gap: 0.4cqi 0.8cqi; padding: 1.6% 4.2% 1.2%; font-size: clamp(8px, 2.1cqi, 11px); }
  .m-nav button { padding: 0.5cqi 1.1cqi; letter-spacing: .04em; }
  .logo { font-size: clamp(12px, 5.6cqi, 24px); margin: 0.3cqi 0 0.6cqi; }
  .s { min-height: calc(100cqh - 18%); padding: 2% 5.5% 18%; scroll-margin-top: 22%; }
  .s p { margin-bottom: 1cqi; }
  #s-principal { scroll-snap-align: none; padding-top: 1.5%; padding-bottom: 18%; }
  .s h2 { font-size: clamp(12px, 4.4cqi, 22px); }
  .m-lista { margin-top: 1.2cqi; gap: 0.25cqi; }
  .m-lista button { font-size: clamp(10px, 2.8cqi, 15px); padding: 0.3cqi 1.4cqi; }
  .m-aviso { margin-top: 1.2cqi; }
  .role { bottom: 7%; left: 12%; right: 12%; z-index: 8; }
}

/* Modo de teste (?estatico=1): sem animação, no estado final. Serve para capturas de tela. */
html.estatico *, html.estatico *::before, html.estatico *::after { transition: none !important; animation: none !important; }
html.estatico .sala.f-liga .tela-in { opacity: 1; transform: none; }
html.estatico .estojo.abre .e-capa { transform: translateZ(4px) rotateY(-168deg); }

/* ---------- Celular em pé ---------- */
@media (max-aspect-ratio: 6/5) {
  .sala { --tvw: min(94vw, calc(100svh - 290px)); --ew: min(24vw, 18vh); }
  .cena { flex-direction: column; justify-content: flex-start; gap: 8px; padding-top: 56px; }
  .mesa { order: 2; }
  .aparelho { order: 1; }
  .seta { top: 40%; width: 42px; height: 42px; }
  .atendente { --ah: clamp(110px, 20vh, 170px); }
  .etiqueta { align-items: flex-start; padding-right: 34vw; text-align: left; }
  .acoes { justify-content: flex-start; }
  .papel { transform: none; }
  .cta, .clube { padding: 9px 16px; font-size: 12px; }
}
@media (max-height: 520px) { .neon-azul, .papel small { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .tela-in { opacity: 1; transform: none; }
}


/* Link discreto de volta à landing da Di Efe. */
.voltar-diefe {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 20;
  font-family: var(--fonte);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffe9bd;
  background: rgba(20, 8, 6, .55);
  border: 1px solid rgba(255, 233, 189, .35);
  border-radius: 999px;
  padding: 8px 14px;
  text-shadow: 0 0 8px #ffb45a;
}
.voltar-diefe:hover, .voltar-diefe:focus-visible { color: #fff; border-color: var(--verde); }
body.aberto .voltar-diefe { visibility: hidden; }

.whats-diefe {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 20;
  font-family: var(--fonte);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffe9bd;
  background: rgba(20, 8, 6, .55);
  border: 1px solid rgba(255, 233, 189, .35);
  border-radius: 999px;
  padding: 8px 14px;
  text-shadow: 0 0 8px #ffb45a;
}
.whats-diefe:hover, .whats-diefe:focus-visible { color: #fff; border-color: var(--verde); }
body.aberto .whats-diefe { visibility: hidden; }
@media (max-width: 700px) {
  .letreiro { padding-left: 118px; padding-right: 118px; }
}
