:root{--paper:#F4EBDD;--ink:#31251E;--wine:#862F36;--pine:#263E32;--gold:#B58A4A}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.65 Arial,sans-serif;background:#261b15}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button,a{color:inherit}button{cursor:pointer}a{text-underline-offset:4px}button{border:0;background:transparent}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:3px solid var(--wine);outline-offset:5px}[hidden]{display:none!important}.scene{position:fixed;inset:0;z-index:-2;background:#352218}.scene video{width:100%;height:100%;object-fit:cover}.scene:after{content:'';position:absolute;inset:0;background:linear-gradient(#0004,#0005),radial-gradient(ellipse at center,transparent 40%,#0005)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 4%;color:#fff;font-size:13px;background:#140e0b40}.topbar img{display:block;max-width:100%;background:#f4ebdde6;padding:7px 10px;border-radius:2px}.topbar nav{display:flex;gap:20px;align-items:center}.topbar button{color:#fff;padding:5px 0}.volume{display:flex;gap:7px;align-items:center}.volume input{width:60px}main{padding:65px 20px 25px}.paper{position:relative;width:640px;max-width:100%;margin:0 auto 72px;padding:30px 48px;background:radial-gradient(ellipse at 5% 0%,#fff7,transparent 60%),repeating-linear-gradient(5deg,#68523103 0 1px,transparent 1px 4px),repeating-linear-gradient(95deg,#68523104 0 1px,transparent 1px 5px),var(--paper);box-shadow:0 2px 3px #0003,0 12px 24px #0005,0 28px 55px #0005}.paper:before{content:'';position:absolute;inset:14px;border:1px solid var(--gold);outline:1px solid #b58a4a55;outline-offset:-5px;pointer-events:none}.envelope{position:relative;max-width:640px;margin:auto}.envelope:before,.envelope:after{content:'';position:absolute;inset:12px -7px -5px;background:linear-gradient(29deg,transparent 49.7%,#a58b6420 50%,transparent 50.3%),linear-gradient(-29deg,transparent 49.7%,#a58b6420 50%,transparent 50.3%),#e7dac5;transform:rotate(1.8deg);box-shadow:0 5px 12px #0004}.envelope:after{inset:7px -3px 1px;transform:rotate(-2.1deg);background:#eee1cc}.postcard{transform:rotate(-1deg);z-index:1;text-align:center;min-height:495px;margin-bottom:100px}.contest-logo{width:240px;height:auto;max-width:76%;display:block;margin:9px auto 24px}.edition{display:flex;justify-content:center;align-items:center;gap:12px;font-size:10px;letter-spacing:2.5px;color:#765734;margin:19px 0}.edition:before,.edition:after{content:'';width:30px;height:1px;background:#b58a4a88}h1,h2,.subtitle{font-family:Georgia,serif;font-weight:400}h1{font-size:48px;line-height:1.04;letter-spacing:-1.5px;margin:20px 0;text-shadow:.3px .4px #73523933}h2{font-size:29px;line-height:1.18;margin:18px 0}p{margin:15px 0}.subtitle{font-size:17px;line-height:1.55}.actions{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin-top:25px}.actions a:not(.primary){font-size:14px}.primary{display:inline-block;background:linear-gradient(#943a41,#7a2930);color:#fff;border-radius:3px;box-shadow:0 2px 0 #4e1b20,0 3px 6px #472a2525;text-decoration:none;padding:11px 18px;font-size:14px}.turn{font-size:12px;margin-top:24px}.branch{position:absolute;width:105px;height:100px;pointer-events:none}.branch.top{top:24px;left:22px}.branch.bottom{bottom:24px;right:22px;transform:rotate(180deg)}.paper-star{position:absolute;bottom:1px;left:calc(50% - 14px);width:28px;color:var(--gold);background:var(--paper)}.faces{display:grid;grid-template-columns:1fr 1fr;text-align:left;margin:15px -18px 0}.faces>div{padding:8px 22px}.faces>div+div{border-left:1px solid #977b4a40;box-shadow:-5px 0 12px -11px #31251e}.faces p,.faces li{font-size:16px;line-height:1.6}.faces ol{padding-left:20px}.faces .edition{justify-content:start;font-size:9px;letter-spacing:1px}.faces .edition:before,.faces .edition:after{display:none}.wax{background:var(--wine);border-radius:48%;width:37px;height:37px;color:var(--gold);display:block;text-align:center;box-shadow:inset 0 0 0 4px #70252c,1px 2px 3px #0003;line-height:37px;font-size:24px}.stamp{border:3px dotted #b58a4a;padding:10px;font:10px/1.5 Georgia;position:absolute;right:38px;top:30px;transform:rotate(4deg)}.postmark{border:2px solid #31251e66;border-radius:50%;width:90px;height:90px;position:absolute;right:116px;top:38px;transform:rotate(-20deg);font-size:10px;line-height:30px;padding-top:9px;color:#31251e88}.reverse{padding-top:114px}.address{display:flex;flex-direction:column;justify-content:end;gap:34px;padding-bottom:50px!important}.address i{border-bottom:1px solid #b58a4a80;width:100%}.reverse button{display:block;margin:15px 0}.conditions h2,.form-paper h2{text-align:center}.notice{border-left:3px solid var(--wine);padding:10px 16px;background:#862f3608}dt{font-weight:600}dd{margin:0 0 15px}.form-paper{padding-top:33px}.form-paper>.contest-logo{width:190px}.form-paper>.contest-logo+p{font-size:14px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:block;font-size:16px}input:not([type=checkbox],[type=radio],[type=range]),textarea{display:block;width:100%;min-width:0;border:1px solid #b5a48c;background:#fff9;border-radius:3px;padding:10px;color:var(--ink);margin:5px 0 10px}input[type=file]{font-size:14px}textarea{min-height:100px;resize:vertical}fieldset{border:0;padding:0;margin:20px 0;min-width:0}legend{font-family:Georgia;font-size:23px;margin-bottom:15px}.check{display:flex;align-items:start;gap:10px;margin:14px 0}.check input{flex:0 0 auto;margin-top:7px}.file-picker{border:1px dashed #b5a48c;padding:15px;margin:15px 0}.file-picker.drag{background:#b58a4a22}.file-picker small{display:block;font-size:12px}.file-picker output{display:block;font-size:13px;overflow-wrap:anywhere}#review{overflow-wrap:anywhere}.steps{font-size:12px;color:#765734}.trap{position:absolute;left:-9999px}progress{width:100%;accent-color:var(--wine)}#form-feedback{color:var(--wine)}footer{text-align:center;color:#eee;font-size:12px}#receipt{overflow-wrap:anywhere}.turning{animation:turn .42s ease}@keyframes turn{50%{transform:perspective(1000px) rotateY(12deg) rotate(-1deg);opacity:.6}}
@media(max-width:680px){.topbar{gap:12px;flex-wrap:wrap;padding:14px 20px}.topbar>span{max-width:145px;line-height:1.4}.topbar nav{width:100%;justify-content:center;gap:24px}.topbar img{width:90px}main{padding:44px 20px 15px}.paper{padding:30px 31px;margin-bottom:45px}.postcard{margin-bottom:70px;min-height:490px}.envelope:before{inset:10px -3px -2px}.envelope:after{inset:5px -1px 0}.branch{width:68px;height:65px}.branch.top{left:18px;top:24px}.branch.bottom{right:18px;bottom:24px}.contest-logo{width:240px;max-width:88%;margin-top:28px}h1{font-size:36px;letter-spacing:-1px}.subtitle br{display:none}.actions{gap:20px}.actions a:not(.primary){font-size:16px}.turn{font-size:14px}.faces{grid-template-columns:1fr;margin:0}.faces>div{padding:15px 0}.faces>div+div{border-left:0;border-top:1px solid #977b4a40;box-shadow:none}.fields{grid-template-columns:1fr}.edition{font-size:10px;letter-spacing:1px}.edition:before,.edition:after{width:15px}.reverse{padding-top:120px}.reverse .address{display:none}.postmark{right:105px}.stamp{right:30px}.file-picker{padding:10px}.primary{font-size:16px}.paper:before{inset:10px}}
@media(prefers-reduced-motion:reduce){.turning{animation:none}.postcard{transform:none}}
@media(max-width:680px){.postcard{transform:none}.view,.faces>div{min-width:0}.faces h2{overflow-wrap:break-word}}
.postcard.opening{animation:unfold .5s ease;transform-origin:left center}@keyframes unfold{0%{transform:perspective(1000px) rotateY(-14deg) rotate(-1deg);opacity:.6}100%{transform:rotate(-1deg);opacity:1}}
@media(max-width:680px){.envelope:before{transform:rotate(.65deg)}.envelope:after{transform:rotate(-.65deg)}.postcard.opening{transform-origin:center;animation:mobile-unfold .5s ease}@keyframes mobile-unfold{0%{opacity:.5;transform:translateY(5px)}100%{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.postcard.opening{animation:none}}
main{overflow-anchor:none}.branch.bottom{width:98px;height:94px;transform:rotate(172deg)}
@media(max-width:680px){.branch.bottom{width:64px;height:61px}}
/* Um único conjunto na mão: apenas a face atual ocupa o papel. */
main{overflow-x:clip}.postcard{margin-bottom:36px}.postcard .conditions,.postcard .form-paper{text-align:left;padding:0}.postcard .form-paper{padding-top:0}.postcard .view{position:relative;z-index:1}.deck-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:32px;padding-top:16px;border-top:1px solid #b58a4a55;font-size:13px;position:relative;z-index:1}.deck-nav button{padding:6px 0}.deck-nav span{color:#765734;font-size:11px;letter-spacing:2px}.postcard[data-face=form] .branch,.postcard[data-face=conditions] .branch{opacity:.3}.postcard.passing{animation:pass-card .42s ease;transform-origin:50% 85%}@keyframes pass-card{0%,100%{opacity:1}45%{transform:translateX(28px) rotate(3deg);opacity:.35}46%{transform:translateX(-20px) rotate(-3deg);opacity:.35}}
@media(max-width:680px){.postcard{margin-bottom:30px}.deck-nav{font-size:14px;gap:6px}@keyframes pass-card{0%,100%{transform:none;opacity:1}45%{transform:translateX(12px) rotate(1deg);opacity:.35}46%{transform:translateX(-12px) rotate(-1deg);opacity:.35}}}
@media(prefers-reduced-motion:reduce){.postcard.passing{animation:none}}
.deck-nav button,.deck-nav span{position:relative;background:var(--paper);padding:6px 8px;border-radius:2px}
.conditions h3{font-family:Georgia,serif;font-size:21px;font-weight:400;line-height:1.3;margin:25px 0 10px}.conditions details{border-top:1px solid #b58a4a55;padding:13px 0}.conditions summary{cursor:pointer;font-size:16px;font-weight:600}.conditions details p{font-size:16px}.field-help{font-size:14px;line-height:1.6}.check a{flex-shrink:0;font-size:14px}.postcard[data-face=conditions] .branch{display:none}
@media(max-width:680px){.check:has(a){flex-wrap:wrap}.check a{margin-left:26px}.field-help{font-size:16px}}
.required-mark{color:var(--wine)}.kit{text-align:center}.logo-preview{padding:25px 10px;margin:24px 0;background:#fff9;border:1px solid #b58a4a55}.logo-preview img{display:block;max-width:100%;width:360px;height:auto;margin:auto}.kit .contest-logo{margin-bottom:15px}#privacy-info{margin:20px 0;text-align:left}
.branch.top{width:92px;height:88px;top:21px;left:20px}.branch.bottom{width:84px;height:80px;right:20px;bottom:23px;transform:rotate(180deg)}
@media(max-width:680px){.branch.top{width:60px;height:57px;top:20px;left:17px}.branch.bottom{width:55px;height:53px;right:17px;bottom:23px}}
.view:focus{outline:none}
.music-credit{display:block;font-size:10px;margin:8px auto 0;max-width:640px;opacity:.85}.music-credit a{text-underline-offset:2px}.topbar nav{flex-wrap:wrap;justify-content:center}

/* Controlos discretos no rodape, sem sobrepor o convite. */
body{min-height:100svh;display:flex;flex-direction:column}main{flex:1;display:grid;place-items:center;padding:clamp(36px,7vh,65px) 20px 24px}.site-footer{flex-shrink:0;padding:0 20px 18px;color:#ffffffb3;font-size:12px}.footer-controls{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;max-width:680px;margin:0 auto}.footer-logo{display:block;opacity:.8}.footer-logo img{display:block;width:90px;height:auto}.footer-controls nav{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}.footer-controls a{text-decoration:none}.footer-controls button{padding:8px 0;font-size:12px}.footer-controls a:hover,.footer-controls button:hover,.footer-logo:hover{color:#fff;opacity:1}.footer-controls :focus-visible{outline-color:#f4ebdd}.footer-controls .volume{font-size:11px;gap:6px}.footer-controls input[type=range]{width:54px;accent-color:#d7cbb8}.site-footer .music-credit{font-size:9px;opacity:.65;margin-top:8px}
@media(max-width:680px){main{padding:36px 20px 20px}.site-footer{padding:0 16px 16px}.footer-controls{gap:8px 18px}.footer-logo img{width:76px}.footer-controls nav{gap:8px 16px}.footer-controls button,.footer-controls nav>a{min-height:36px;display:inline-flex;align-items:center}.site-footer .music-credit{max-width:340px}}

main>.envelope{width:100%;min-width:0}

/* Faixa de correio natalicio e pequenos enfeites impressos. */
.postcard:after{content:'';position:absolute;inset:0;padding:6px;background:repeating-linear-gradient(135deg,#b83f3d 0 13px,#f4ebdd 13px 26px,#467552 26px 39px,#f4ebdd 39px 52px);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none}.holiday-vignette{display:block;width:150px;height:auto;margin:-11px auto -7px;pointer-events:none}#cover h1{color:#862f36}.postcard .stamp{border-color:#467552;background:#e4ebdc;color:#862f36;box-shadow:2px 3px 0 #b58a4a25}.postcard .postmark{color:#36513b99;border-color:#36513b88}
@media(max-width:680px){.postcard:after{padding:5px;background-size:auto}.holiday-vignette{width:130px;margin:-9px auto -5px}}
