html, body { margin: 0; height: 100%; background: #05060f; overflow: hidden; touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body { display: flex; align-items: center; justify-content: center; color: #f4f1e8; }
canvas { display: block; }
#sound { position: fixed; top: max(6px, env(safe-area-inset-top)); right: 6px; font: 700 11px "Cinzel", Georgia, serif; color: #ffd36b; background: rgba(5,6,15,.6); border: 1px solid #ffd36b; padding: 5px 7px; z-index: 8; }

#end { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5,6,15,.98) 75%, rgba(5,6,15,0)); z-index: 4; }
#end[hidden] { display: none; }
#end h2 { font: 700 22px "Cinzel", Georgia, serif; color: #ffd36b; margin: 0; text-align: center; }
#end p { font: italic 18px/1.35 "Lora", Georgia, serif; text-align: center; margin: 0 0 6px; max-width: 360px; }
#end .btn { font: 700 14px/1.5 "Cinzel", Georgia, serif; padding: 14px 10px; width: min(92vw, 380px); box-sizing: border-box; border: 2px solid #ffd36b; background: #1b2a6b; color: #f4f1e8; text-decoration: none; text-align: center; cursor: pointer; display: block; }
#end .wa { background: #1f7a4a; font-size: 15px; padding: 18px 10px; }
#end .ghost { background: transparent; }
#end .src { font: italic 14px "Lora", Georgia, serif; color: #ffd36b; text-decoration: underline; text-underline-offset: 3px; }

#consent { position: fixed; top: max(34px, calc(env(safe-area-inset-top) + 30px)); left: 8px; right: 8px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(14,26,79,.96); border: 1px solid #ffd36b; font: italic 14px/1.35 "Lora", Georgia, serif; z-index: 5; max-width: 420px; margin: 0 auto; }
#consent[hidden] { display: none; }
#consent span { flex: 1; }
#consent button { font: 700 12px "Cinzel", Georgia, serif; padding: 8px; background: #1b2a6b; color: #f4f1e8; border: 1px solid #ffd36b; }
#consent [data-no] { background: transparent; }

/* ---------- abertura (stories + quadro vivo) */
#intro { position: fixed; inset: 0; z-index: 6; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .9s ease; }
#intro[hidden] { display: none; }
#intro.out { opacity: 0; pointer-events: none; }
.i-stage { position: relative; height: 100%; max-height: 100vh; aspect-ratio: 9/16; max-width: 100vw; overflow: hidden; }
.i-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.i-frame.on { opacity: 1; }
.i-frame img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; will-change: transform; }
#i-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.i-tiles { position: absolute; inset: 0; z-index: 1; display: grid; pointer-events: none; }
.i-tiles i { background-size: 1000% 1600%; image-rendering: pixelated; transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity 1.6s; }
.i-flash { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at 50% 45%, #fff3c4, #ffd36b 30%, rgba(255,211,107,0) 70%); opacity: 0; pointer-events: none; transition: opacity .45s; }
.i-bars { position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.i-bars i { flex: 1; height: 3px; background: rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; }
.i-bars i b { display: block; height: 100%; width: 0; background: #ffd36b; }
.i-ch { position: absolute; z-index: 4; top: 24px; left: 0; right: 0; text-align: center; font: 700 13px "Cinzel", Georgia, serif; letter-spacing: .22em; color: #ffd36b; text-shadow: 0 1px 3px #000; opacity: 0; transition: opacity 1s; }
.i-ch.on { opacity: .9; }
.i-cap { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 70px 22px max(34px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5,6,15,.96) 55%, rgba(5,6,15,0)); text-align: center; font: italic 19px/1.38 "Lora", Georgia, serif; color: #f4f1e8; text-shadow: 0 1px 2px #000; }
.i-cap span { opacity: 0; transition: opacity .45s; } .i-cap span.on { opacity: 1; }
.i-zones { position: absolute; inset: 0; z-index: 6; display: flex; } .i-zones div { flex: 1; } .i-zones div:last-child { flex: 2; }
.i-skip { position: absolute; z-index: 7; left: 12px; top: 22px; font: 700 12px "Cinzel", Georgia, serif; color: #ffd36b; background: rgba(5,6,15,.45); border: 1px solid #ffd36b66; padding: 6px 10px; }
.i-pz { position: absolute; z-index: 7; top: 50%; left: 50%; transform: translate(-50%,-50%); font: 700 12px "Cinzel", Georgia, serif; letter-spacing: .2em; color: #ffd36b; background: rgba(5,6,15,.6); padding: 8px 12px; display: none; pointer-events: none; }

.i-cards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.i-card { position: absolute; left: 6%; right: 6%; background: rgba(244,241,232,.97); color: #1b1b1f; border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px #000b; transform: translateY(-140%); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s, filter 1s; }
.i-card small { display: block; font: italic 12px "Lora", Georgia, serif; color: #6b6b75; margin-bottom: 3px; }
.i-card small::before { content: "↪ "; }
.i-card p { margin: 0; font: 700 17px/1.3 "Lora", Georgia, serif; }
.i-card.on { transform: none; opacity: 1; }
.i-card.gone { filter: blur(6px) brightness(.15); opacity: 0; transform: translateX(60%) scale(.8); }
.i-santa { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 38%, #1b2a6b, #05060f 70%); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.i-santa.on { opacity: 1; }
.i-rays { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 33%, rgba(255,211,107,.16) 0 6deg, transparent 6deg 26deg); -webkit-mask: radial-gradient(circle at 50% 33%, #000 10%, transparent 60%); mask: radial-gradient(circle at 50% 33%, #000 10%, transparent 60%); }
.i-fig, .i-dk { position: absolute; left: 18.3%; top: 21.9%; width: 62.9%; height: 64.4%; }
.i-dk { filter: brightness(.28) saturate(.3) hue-rotate(220deg); clip-path: inset(0 0 0 50%); opacity: 0; transition: opacity 3s ease; }
.i-shade { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; background: rgba(10,4,20,.55); opacity: 0; transition: opacity 3s; }
.i-santa.dark .i-dk, .i-santa.dark .i-shade { opacity: 1; }
.i-santa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.i-santa path { fill: none; stroke: #3d1730; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 3.5s ease; }
.i-who { display: block; font: 700 12px "Cinzel", Georgia, serif; font-style: normal; color: #ffd36b; letter-spacing: .12em; margin-bottom: 6px; }
