/* Tarta como pegatina y flores sobre cartulina oscura con cinta */
.acto-tarta { padding-top: 64px; }
.escena-wrap { position: relative; margin: 0 -4px; }
.escenario-tarta svg { width: 100%; height: auto; display: block; overflow: visible; filter: var(--pegatina); }
.deco-estrella { right: -12px; top: -62px; width: 134px; transform: rotate(12deg); }
.num21 { position: absolute; right: 22px; top: -28px; width: 84px; text-align: center; font: 400 46px/1 var(--f-marcador); color: var(--cobalto); transform: rotate(-9deg); pointer-events: none; }
.estado-velas { min-height: 1.6em; margin: 10px 0 16px; font: 500 15px/1.6 var(--f-texto); color: var(--tenue); }
.estado-velas b { color: var(--tinta); font-weight: 600; }
.acciones { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.acciones .boton { width: 100%; }
.nota-mic { max-width: 46ch; }
.continuar { margin-top: 28px; animation: late 2.2s ease-in-out infinite; }

/* Velas */
.vela { cursor: pointer; outline: none; }
.vela:focus-visible .zona { stroke: var(--cobalto); stroke-width: 1.2; stroke-dasharray: 2 2; }
.zona { fill: transparent; stroke: none; }
.llama { transform-box: fill-box; transform-origin: 50% 100%; animation: parpadeo 1.5s ease-in-out infinite; transition: opacity .25s, transform .25s; }
.llama.n2 { animation-delay: -.45s; } .llama.n3 { animation-delay: -.9s; } .llama.n4 { animation-delay: -.2s; } .llama.n5 { animation-delay: -1.1s; }
@keyframes parpadeo { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 35% { transform: scale(.92, 1.08) skewX(2.5deg); } 70% { transform: scale(1.04, .95) skewX(-2.5deg); } }
.brillo-vela { transform-box: fill-box; transform-origin: center; animation: respira 2.4s ease-in-out infinite; transition: opacity .35s; }
@keyframes respira { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.vela.apagada .llama { opacity: 0; transform: scale(.15); animation: none; }
.vela.apagada .brillo-vela { opacity: 0; animation: none; }
.humo { opacity: 0; transform-box: fill-box; }
.vela.apagada .humo { animation: humo 2.6s ease-out forwards; }
@keyframes humo { 0% { opacity: .6; transform: translate(0, 0) scaleX(1); } 60% { opacity: .35; } 100% { opacity: 0; transform: translate(6px, -40px) scaleX(1.6); } }
.soplando .llama { animation-duration: .35s; transform: scale(calc(1 - var(--soplo, 0) * .25), calc(1 + var(--soplo, 0) * .1)) skewX(calc(var(--soplo, 0) * 22deg)); }
.luz-ambiente { transition: opacity .6s ease; }
.todas-apagadas .luz-ambiente { opacity: .15; }

/* Flores: cartulina negra rasgada, pegada con cinta */
.acto-flores { padding-top: 40px; }
.papel-oscuro { position: relative; margin: 8px calc(var(--gutter) * -0.3) 0; transform: rotate(-1.2deg); filter: drop-shadow(0 12px 14px rgba(40, 30, 20, .3)); }
.marco-flores { background: #17151a; padding: 18px 8px 12px; clip-path: var(--rasgado); }
.papel-oscuro::before, .papel-oscuro::after { content: ""; position: absolute; z-index: 2; top: -10px; width: 86px; height: 28px; background: rgba(232, 184, 46, .78); box-shadow: 0 2px 3px rgba(0, 0, 0, .18);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 2%, 96% 30%, 100% 55%, 96% 80%, 100% 100%, 6% 98%, 0 80%, 4% 55%, 0 30%); }
.papel-oscuro::before { left: 14px; transform: rotate(-9deg); }
.papel-oscuro::after { right: 14px; transform: rotate(7deg); background: rgba(213, 185, 138, .85); }
#canvas-flores { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .llama, .brillo-vela, .continuar { animation: none; }
}
