/* ACAISAN PLAN — Modelos decorados da página de links: Ano Novo (ny-) e Audiovisual (cn-). Montados por links-scenes.js. */

/* ───────── Ano Novo ───────── */
[data-scene="anonovo"] .tc { padding-top: calc(98px + env(safe-area-inset-top)); }
[data-scene="anonovo"] .tc-photo, [data-scene="anonovo"] .lk-initials { box-shadow: 0 0 0 2px #f5c451, 0 0 44px rgba(245, 196, 81, .42); }
.ny-fire, .ny-paper, .cn-dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ny-fire { z-index: 0; }
.ny-paper, .cn-dust { z-index: 5; }
.ny-line { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 52px; display: flex; overflow: hidden; pointer-events: none; }
.ny-line svg { flex: none; width: 130px; height: 52px; stroke: none; overflow: visible; }
.ny-wire { fill: none; stroke: #8a6a2c; stroke-width: 1.4; }
.ny-tw { animation: ny-tw 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.47s); }
@keyframes ny-tw { 0%, 45%, 100% { opacity: 1; } 70% { opacity: .35; } }
.ny-hang { position: absolute; z-index: 0; left: 50%; top: 0; width: min(100vw, 900px); transform: translateX(-50%); pointer-events: none; }
.ny-hang span { position: absolute; top: 0; left: var(--x); width: 1px; height: var(--len); background: linear-gradient(rgba(245, 196, 81, .15), rgba(245, 196, 81, .7)); transform-origin: top; animation: ny-swing 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.4s); }
.ny-hang i { position: absolute; left: calc(var(--s) / -2); top: 100%; width: var(--s); height: var(--s); filter: drop-shadow(0 0 14px rgba(245, 196, 81, .45)); }
.ny-hang svg { width: 100%; height: 100%; stroke: none; }
@keyframes ny-swing { from { transform: rotate(3.5deg); } to { transform: rotate(-3.5deg); } }
.ny-hat { position: absolute; z-index: 2; left: 49px; top: -58px; width: 66px; height: 79px; transform: rotate(17deg); transform-origin: 50% 90%; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .45)); animation: ny-hat 5s ease-in-out infinite; }
.ny-hat svg { width: 100%; height: 100%; stroke: none; }
@keyframes ny-hat { 0%, 72%, 100% { transform: rotate(17deg); } 80% { transform: rotate(10deg); } 88% { transform: rotate(21deg); } }
.ny-count { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 15px; border-radius: 999px; color: #ffe9ae; background: rgba(26, 19, 6, .9); border: 1px solid rgba(245, 196, 81, .55); font-size: 13px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ny-count svg { flex: none; width: 19px; height: 19px; }
[data-scene="anonovo"] .tv-item.is-on .tv-frame { background-image: linear-gradient(120deg, #f5c451, #fffaf0, #d99a2b, #fff3cf, #f5c451); box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .85), 0 0 34px rgba(245, 196, 81, .25); }
/* brinde no canto da capa */
[data-scene="anonovo"] .tv-card::after { content: ""; position: absolute; z-index: 3; right: 4px; top: -32px; width: 70px; height: 62px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 70'%3E%3Cg id='t' transform='rotate(14 26 40)'%3E%3Cpath d='M17 14h17l-2 22c-1 8-12 8-13 0z' fill='%23fffaf0' fill-opacity='.4'/%3E%3Cpath d='M17.700 21h15.600L32 36c-1 8-12 8-13 0z' fill='%23f5c451'/%3E%3Cpath d='M17 14h17l-2 22c-1 8-12 8-13 0zM25.500 42v18M18 62h15' fill='none' stroke='%23fff6dc' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='23' cy='33' r='1.300'/%3E%3Ccircle cx='28' cy='28' r='1.500'/%3E%3Ccircle cx='25' cy='24' r='1'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(-14 54 40)'%3E%3Cpath d='M46 14h17l-2 22c-1 8-12 8-13 0z' fill='%23fffaf0' fill-opacity='.4'/%3E%3Cpath d='M46.700 21h15.600L61 36c-1 8-12 8-13 0z' fill='%23f5c451'/%3E%3Cpath d='M46 14h17l-2 22c-1 8-12 8-13 0zM54.500 42v18M47 62h15' fill='none' stroke='%23fff6dc' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='52' cy='33' r='1.300'/%3E%3Ccircle cx='57' cy='28' r='1.500'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M40 10V2M32 11l-4-6M48 11l4-6' stroke='%23f5c451' stroke-width='2.400' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-scene="anonovo"] .tv-item.is-on .tv-card::after { animation: ny-toast 3.8s ease-in-out infinite; }
@keyframes ny-toast { 0%, 70%, 100% { transform: none; } 77% { transform: scale(1.13) rotate(-5deg); } 85% { transform: scale(.97) rotate(3deg); } }

/* ───────── Audiovisual ───────── */
[data-scene="cinema"] .tc { padding-top: calc(88px + env(safe-area-inset-top)); }
.cn-film { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 38px; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38'%3E%3Cpath d='M0 0h60v38H0z' fill='%23050506'/%3E%3Cg fill='%23d4d4d8'%3E%3Crect x='4' y='3' width='7' height='5' rx='1.500'/%3E%3Crect x='19' y='3' width='7' height='5' rx='1.500'/%3E%3Crect x='34' y='3' width='7' height='5' rx='1.500'/%3E%3Crect x='49' y='3' width='7' height='5' rx='1.500'/%3E%3Crect x='4' y='30' width='7' height='5' rx='1.500'/%3E%3Crect x='19' y='30' width='7' height='5' rx='1.500'/%3E%3Crect x='34' y='30' width='7' height='5' rx='1.500'/%3E%3Crect x='49' y='30' width='7' height='5' rx='1.500'/%3E%3C/g%3E%3Crect x='2' y='11' width='56' height='16' rx='2' fill='%2327272a'/%3E%3Cpath d='M2 24l14-8 10 6 12-9 20 11v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z' fill='%233f3f46'/%3E%3C/svg%3E") 0 0 / 60px 38px repeat-x; animation: cn-film 4s linear infinite; }
@keyframes cn-film { to { background-position: -60px 0; } }
.cn-lamps { position: absolute; z-index: 0; left: 50%; top: 30px; width: min(100vw, 900px); height: 900px; transform: translateX(-50%); pointer-events: none; }
.cn-lamp { position: absolute; left: 30px; top: 0; width: 0; height: 0; transform-origin: 0 14px; animation: cn-pan 9s ease-in-out infinite alternate; }
.cn-lamp--r { left: calc(100% - 30px); animation-name: cn-pan-r; animation-delay: -3s; }
.cn-lamp i { position: absolute; left: -29px; top: 0; width: 58px; height: 70px; }
.cn-lamp svg { width: 100%; height: 100%; stroke: none; }
.cn-lamp b { position: absolute; left: -190px; top: 52px; width: 380px; height: 640px; clip-path: polygon(46.500% 0, 53.500% 0, 100% 100%, 0 100%); background: linear-gradient(rgba(255, 226, 170, .46), rgba(255, 226, 170, .1) 55%, transparent); filter: blur(5px); }
@keyframes cn-pan { from { transform: rotate(-31deg); } to { transform: rotate(-15deg); } }
@keyframes cn-pan-r { from { transform: rotate(31deg); } to { transform: rotate(15deg); } }
.cn-view { position: fixed; z-index: 4; inset: 46px 8px 8px; pointer-events: none; }
.cn-view i { position: absolute; width: 20px; height: 20px; border: solid rgba(255, 255, 255, .5); border-width: 2px 0 0 2px; }
.cn-view i:nth-child(1) { left: 0; top: 0; } .cn-view i:nth-child(2) { right: 0; top: 0; transform: rotate(90deg); } .cn-view i:nth-child(3) { right: 0; bottom: 0; transform: rotate(180deg); } .cn-view i:nth-child(4) { left: 0; bottom: 0; transform: rotate(270deg); }
[data-scene="cinema"] .tc-face { margin-bottom: 46px; }
[data-scene="cinema"] .tc h1 { position: relative; z-index: 1; } /* acima da sombra da objetiva */
[data-scene="cinema"] .tc-photo, [data-scene="cinema"] .lk-initials { box-shadow: none; }
.cn-lens { position: absolute; inset: -32px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); }
.cn-lens::after { content: ""; position: absolute; inset: 32px; border-radius: 50%; background: linear-gradient(140deg, rgba(255, 255, 255, .3), transparent 34%), radial-gradient(circle at 74% 78%, rgba(125, 211, 252, .28), transparent 26%); box-shadow: inset 0 0 0 2px var(--lime), inset 0 0 18px rgba(0, 0, 0, .55); }
.cn-lens svg { width: 100%; height: 100%; stroke: none; fill: none; }
.cn-lens text { font-family: var(--body); }
.cn-turn { transform-origin: 90px 90px; animation: cn-turn 60s linear infinite; }
.cn-turn--back { animation-duration: 90s; animation-direction: reverse; }
@keyframes cn-turn { to { transform: rotate(360deg); } }
.cn-rec { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 14px; border-radius: 8px; color: #f4f4f5; background: rgba(5, 5, 6, .85); border: 1px solid rgba(255, 255, 255, .2); font: 600 13px/1.3 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; }
.cn-rec i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: cn-rec 1.6s steps(2, jump-none) infinite; }
@keyframes cn-rec { from { opacity: 1; } to { opacity: .2; } }
/* cada capa é uma claquete: bate quando o vídeo vem para a frente */
[data-scene="cinema"] .tv.is-3d .tv-stage { height: calc(var(--w) * .5625 + 84px); }
[data-scene="cinema"] .tv.is-3d .tv-item { top: 58px; }
[data-scene="cinema"] .tv-track { padding-top: 48px; }
[data-scene="cinema"] .tv-card::before, [data-scene="cinema"] .tv-card::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 15px; pointer-events: none; border: 1px solid #52525b; background: repeating-linear-gradient(115deg, #f4f4f5 0 22px, #111113 22px 44px); }
[data-scene="cinema"] .tv-card::after { top: -13px; border-radius: 0; background: repeating-linear-gradient(65deg, #f4f4f5 0 22px, #111113 22px 44px); }
[data-scene="cinema"] .tv-card::before { top: -28px; border-radius: 5px 5px 0 0; transform-origin: 6px 100%; }
[data-scene="cinema"] .tv-frame { border-radius: 0 0 18px 18px; }
[data-scene="cinema"] .tv-frame img { border-radius: 0 0 16px 16px; }
[data-scene="cinema"] .tv-item.is-on .tv-card::before { animation: cn-clap .95s cubic-bezier(.3, 0, .9, .4) both; }
@keyframes cn-clap { 0% { transform: rotate(0); } 45%, 62% { transform: rotate(-9deg); } 78% { transform: rotate(0); } 86% { transform: rotate(-1.6deg); } 100% { transform: rotate(0); } }

/* Tema claro */
[data-theme="papel"] .cn-lamp b { background: linear-gradient(rgba(255, 190, 80, .5), rgba(255, 200, 110, .16) 55%, transparent); }
[data-theme="papel"] .cn-view i { border-color: rgba(40, 32, 18, .5); }
@media print { .ny-fire, .ny-paper, .cn-dust, .ny-line, .ny-hang, .cn-film, .cn-lamps, .cn-view { display: none !important; } }
