/* ZENO — abertura com vídeo controlado pela rolagem (ver abertura.js). */
html.ab-ativa, html.ab-ativa body { overflow: hidden; overscroll-behavior: none; touch-action: none; }

.abertura { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: auto; transition: opacity .6s cubic-bezier(.22,.61,.36,1); }
.abertura.ab-saindo { opacity: 0; pointer-events: none; }
.abertura.ab-revelando { pointer-events: none; }
.abertura.ab-revelando .ab-pular { pointer-events: auto; }

/* Fundo preto enquanto o vídeo não chega no cheddar; depois some e o menu aparece pelos buracos. */
.ab-preto { position: absolute; inset: 0; background: #000; }
.ab-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; transition: opacity .3s; pointer-events: none; }
.ab-tela { position: absolute; inset: 0; display: block; }
.ab-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Sem WebGL: o próprio vídeo, com o preto "apagado" por mistura de tela. */
.ab-sem-gl .ab-tela { display: none; }
.ab-sem-gl .ab-video { opacity: 1; mix-blend-mode: screen; object-fit: fill; }

/* Banner da loja no meio do cheddar */
.ab-banner { position: absolute; left: 50%; top: 50%; width: min(78vw, 980px); opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.9); pointer-events: none; will-change: transform, opacity; }
.ab-banner-in { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(70, 30, 0, .45), 0 0 0 3px rgba(255, 214, 120, .55); background: #1a1206; }
.ab-banner-in img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; }
.ab-banner:not(.ab-tem-foto) .ab-banner-in { background: none; box-shadow: none; }
.ab-banner-txt { text-align: center; font: 900 clamp(48px, 12vw, 150px)/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; color: #4a2300; text-shadow: 0 2px 0 rgba(255, 236, 170, .6), 0 10px 30px rgba(120, 50, 0, .35); }
@media (max-aspect-ratio: 1/1) { .ab-banner { width: 88vw; } .ab-banner-in img { max-height: 60vh; } }

/* Bloco de queijo "ACESSAR MENU" do vídeo: área clicável invisível por cima dele */
.ab-queijo { position: absolute; display: none; background: none; border: 0; border-radius: 18px; cursor: pointer; padding: 0; }
.ab-queijo:focus-visible { outline: 3px solid #ffc94d; outline-offset: 4px; }

.ab-pular { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .45); color: #e9e3d8; font: 600 13px system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ab-pular:hover { border-color: rgba(255, 201, 77, .7); color: #fff; }
.ab-trilho { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.ab-trilho i { display: block; height: 100%; background: linear-gradient(90deg, #ff9d1c, #ffd54a); transform: scaleX(0); transform-origin: 0 50%; }

@media (prefers-reduced-motion: reduce) { .abertura { transition: none; } }
