@font-face{font-family:'Lidl Font Pro';src:url(assets/fonts/LidlFontPro-Regular.ttf) format('truetype');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:'Lidl Font Pro';src:url(assets/fonts/LidlFontPro-Italic.ttf) format('truetype');font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:'Lidl Font Pro';src:url(assets/fonts/LidlFontPro-Semibold.ttf) format('truetype');font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:'Lidl Font Pro';src:url(assets/fonts/LidlFontPro-Bold.ttf) format('truetype');font-weight:700 900;font-style:normal;font-display:swap}:root{color-scheme:dark;--blue:#002466;--yellow:#fff000;--orange:#ee6e2d;--white:#fff;--font:'Lidl Font Pro',Arial,Helvetica,sans-serif;font-family:var(--font);background:var(--blue);color:var(--white);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--blue);font-family:var(--font)}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:5px}h1,h2,p{margin:0}img{display:block}#app{max-width:480px;margin:0 auto;min-height:100svh}.screen{position:relative;isolation:isolate;min-height:100svh;padding:max(27px,env(safe-area-inset-top)) 27px max(68px,env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}.topbar{display:flex;align-items:flex-start;justify-content:space-between;position:relative;z-index:4;flex:none;min-height:33px}.logo{width:56px;height:56px}.count{border:1px solid var(--orange);border-radius:9px;width:60px;min-height:33px;display:grid;place-items:center;color:var(--orange);font-size:14px;font-weight:700;line-height:1;letter-spacing:.02em;background:#00246616}.back{border:1px solid var(--orange);border-radius:9px;width:40px;height:33px;background:transparent;color:var(--orange);font-size:23px;line-height:1;display:grid;place-items:center}.primary{display:flex;align-items:center;justify-content:center;min-height:55px;width:100%;border:2px solid var(--orange);border-radius:11px;background:transparent;color:var(--orange);font-size:18px;font-weight:700;line-height:1.25;text-align:center;padding:12px 8px}.footer{position:relative;z-index:4;margin-top:auto;padding-top:32px}.backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}.home{min-height:max(780px,100svh)}.home-copy{margin-top:auto;padding-top:390px}.home h1{font-size:clamp(40px,12.3vw,52px);font-weight:900;letter-spacing:-.035em;line-height:.98;white-space:pre-line}.home-intro{font-size:20px;line-height:1.2;white-space:pre-line;margin-top:16px}.home .footer{margin-top:0;padding-top:48px}.heading{color:var(--orange);font-weight:900;text-align:right;white-space:pre-line;font-size:clamp(58px,18.65vw,75px);line-height:1.06;letter-spacing:-.045em;margin-top:52px}.heading.riddle-heading{font-size:clamp(66px,21.65vw,87px);line-height:.92}.divider{flex:none;width:100%;height:2px;margin-top:14px;object-fit:fill}.permission-cards{display:grid;gap:8px;margin-top:53px}.permission-card{border:1px solid white;border-radius:9px;padding:12px 19px 10px}.permission-card h2{font-size:20px;line-height:1.1;font-weight:700;white-space:pre-line}.permission-card p{font-size:12px;line-height:1.3;white-space:pre-line;margin-top:5px}.note{font-style:italic;font-size:12px;line-height:1.5;color:#ffffffb3;white-space:pre-line}.permissions .note{margin-top:27px}.riddle-copy{font-size:19px;font-weight:700;line-height:30px;white-space:pre-line;margin-top:87px}.riddle .note{margin-top:17px}.status{font-size:13px;line-height:1.5;margin-top:16px;color:#ffffffb3}.status:empty{display:none}.error{color:white;border-left:3px solid var(--orange);padding-left:12px;line-height:1.5;font-size:14px;margin-top:16px}.error:empty{display:none}.scanner{height:100svh;min-height:480px;padding-bottom:max(22px,env(safe-area-inset-bottom));background:transparent}.camera,.ar-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera{z-index:-2}.ar-canvas{z-index:1;touch-action:none}.scan-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(#0004,transparent 25%,transparent 65%,#0006);pointer-events:none}.scanner .count,.scanner .back{background:#00246636}.viewfinder{position:absolute;inset:87px 27px max(22px,env(safe-area-inset-bottom));border:2px solid var(--yellow);border-radius:9px;pointer-events:none;z-index:2}.scan-label{position:absolute;top:116px;left:50%;transform:translateX(-50%);background:var(--orange);color:var(--blue);border-radius:5px;text-align:center;padding:7px 12px;font-size:12px;font-weight:700;width:max-content;max-width:calc(100% - 86px);z-index:3}.crosshair{position:absolute;top:54%;left:50%;width:67px;height:67px;transform:translate(-50%,-50%);z-index:2;pointer-events:none}.crosshair:before,.crosshair:after{content:"";position:absolute;background:var(--yellow)}.crosshair:before{top:33px;left:0;width:67px;height:2px}.crosshair:after{top:0;left:33px;width:2px;height:67px}.scan-riddle{position:relative;z-index:3;margin:auto 24px 12px;padding-top:24px;font-size:15px;font-weight:700;line-height:25px;white-space:pre-line;text-shadow:0 2px 8px #000,0 1px 3px #000;pointer-events:none}.apparition-info{position:relative;z-index:3;margin:auto 0 10px;border-radius:9px;background:#002466df;padding:18px;line-height:1.5}.apparition-info h2{font-size:20px;color:var(--orange)}.apparition-info p{font-size:14px}.timer{height:3px;background:#ffffff30;margin-top:14px;overflow:hidden}.timer span{display:block;height:100%;background:var(--orange);transform-origin:left}.captured{min-height:max(740px,100svh)}.captured .backdrop{object-fit:cover;opacity:.95}.captured:after{content:"";position:absolute;inset:0;background:linear-gradient(#00246615,transparent 50%,#00246680);z-index:-1;pointer-events:none}.captured-content{margin-top:auto;padding-top:195px}.ghost-name{font-size:clamp(36px,12.5vw,51px);font-weight:900;letter-spacing:-.04em;line-height:1.05;color:var(--white);overflow-wrap:anywhere;text-shadow:0 1px 10px #00246666}.progress-dots{display:flex;flex-direction:column;gap:8px;flex:none}.progress-dots img{width:46px;height:46px}.captured .progress-dots{margin-top:22px}.captured-count{font-size:51px;font-weight:900;letter-spacing:-.04em;line-height:1.05;margin-top:20px}.captured .footer{margin-top:0;padding-top:32px}.final .heading{font-size:clamp(44px,14.9vw,60px);line-height:1;margin-top:39px;letter-spacing:-.03em}.final .divider{margin-top:14px}.collection-body{display:grid;grid-template-columns:92px 1fr;gap:26px;margin-top:17px;align-items:start}.final .progress-dots{gap:10px;margin-top:16px}.final .progress-dots img{width:62px;height:62px}.collection-intro{font-size:13px;line-height:16px;white-space:pre-line;margin-bottom:14px}.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ghost-card{border:2px solid var(--orange);border-radius:12px;overflow:hidden;background:#001b4d;aspect-ratio:108/119}.ghost-card img{height:100%;width:100%;object-fit:contain;object-position:center 10%}.final .captured-count{margin-top:22px}.registration{font-size:10px;line-height:1.5;margin-top:15px;overflow-wrap:anywhere}.final .footer{margin-top:0;padding-top:12px}.pause{position:absolute;inset:0;background:#002466f5;z-index:8;display:flex;flex-direction:column;justify-content:center;gap:20px;padding:30px;text-align:center}.pause h2{font-size:28px;color:var(--orange)}#notice{position:fixed;top:calc(16px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:370px;padding:16px;background:var(--blue);border:1px solid var(--orange);border-radius:9px;z-index:30;font-size:14px;line-height:1.5}[hidden]{display:none!important}@media(min-width:481px){body{background:#001635}#app{box-shadow:0 0 60px #0003;background:var(--blue)}.home h1{font-size:52px}}@media(max-width:360px){.screen{padding-left:20px;padding-right:20px}.heading{font-size:64px}.heading.riddle-heading{font-size:72px}.home h1{font-size:42px}.collection-body{grid-template-columns:62px 1fr;gap:18px}.final .progress-dots img{width:48px;height:48px}.collection-intro{font-size:12px}.ghost-name{font-size:40px}}@media(max-height:740px){.home-copy{padding-top:260px}.heading{margin-top:36px}.permission-cards{margin-top:32px}.riddle-copy{margin-top:52px}.captured-content{padding-top:110px}.scanner .scan-riddle{font-size:14px;line-height:21px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Fit the available mobile viewport, including Safari's expanded toolbars. */
:root{--bottom-gap:calc(22px + env(safe-area-inset-bottom,0px));--side:27px}
#app{min-height:100dvh}
.screen,.home,.captured{min-height:100dvh;padding:20px var(--side) calc(95px + env(safe-area-inset-bottom,0px))}
.screen:not(.scanner){height:100dvh;overflow-y:auto}
.screen>.footer{position:fixed;bottom:var(--bottom-gap);left:50%;transform:translateX(-50%);width:calc(100% - 2 * var(--side));max-width:426px;margin:0;padding:0;z-index:10}
.primary{min-height:54px;background:transparent}
.home .primary,.captured .primary{background:transparent}
.back{appearance:none;-webkit-appearance:none;padding:0;width:40px;height:33px;min-height:33px;border-width:1px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center}
.back svg{display:block;width:22px;height:22px;flex:none}
.home-copy{padding-top:0;margin-top:auto}
.home h1{font-size:clamp(34px,min(12.3vw,6dvh),52px)}
.home-intro{font-size:clamp(16px,2.4dvh,20px);margin-top:14px}
.heading{margin-top:clamp(16px,4dvh,40px);font-size:clamp(42px,min(18vw,8.5dvh),75px)}
.heading.riddle-heading{font-size:clamp(48px,min(21vw,10dvh),87px)}
.permission-cards{margin-top:clamp(16px,3dvh,30px);gap:8px}
.permission-card{padding:10px 14px}
.permission-card h2{font-size:clamp(16px,2.4dvh,20px)}
.permissions .note{margin-top:14px}
.riddle-copy{margin-top:clamp(24px,7dvh,65px)}
.captured-content{padding-top:0;margin-top:auto}
.ghost-name{font-size:clamp(32px,5.8dvh,51px)}
.captured .progress-dots{margin-top:16px;gap:clamp(5px,1dvh,8px)}
.captured .progress-dots img{width:clamp(24px,4.6dvh,46px);height:clamp(24px,4.6dvh,46px)}
.captured-count{font-size:clamp(32px,5.8dvh,51px);margin-top:16px}
.final .heading{margin-top:clamp(16px,3dvh,32px);font-size:clamp(36px,min(14vw,6.8dvh),60px)}
.collection-body{grid-template-columns:clamp(48px,7dvh,62px) 1fr;gap:24px;margin-top:14px;min-height:0}
.final .progress-dots{gap:8px;margin-top:12px}
.final .progress-dots img{width:clamp(28px,5.6dvh,62px);height:clamp(28px,5.6dvh,62px)}
.collection-grid{grid-template-rows:repeat(3,minmax(0,1fr));height:clamp(180px,36dvh,357px);gap:8px}
.ghost-card{aspect-ratio:auto;min-height:0}
.final .captured-count{margin-top:14px}
.registration{margin-top:8px}
.scanner{height:100dvh;min-height:0;padding-bottom:var(--bottom-gap)}
@media(max-width:360px){:root{--side:20px}.screen>.footer{max-width:calc(100% - 40px)}.collection-body{gap:18px}}
@media(max-height:640px){.screen{padding-top:14px}.logo{width:44px;height:44px}.heading{margin-top:16px}.permission-cards{margin-top:14px;gap:6px}.permission-card{padding:7px 12px}.permission-card p{font-size:11px}.permissions .note{font-size:11px;line-height:1.3;margin-top:10px}.riddle-copy{font-size:17px;line-height:26px;margin-top:24px}.collection-intro{font-size:11px;line-height:14px;margin-bottom:8px}.final .heading{margin-top:14px}.final .divider{margin-top:10px}.collection-body{margin-top:10px}.final .captured-count{margin-top:10px}}

.scanner.has-apparition:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,var(--overlay-opacity,.72));z-index:0;pointer-events:none}.product-effect-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}

html,body,#app{overflow-x:hidden}

.world-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;touch-action:none}

.logos{display:flex;align-items:center;gap:8px}.topbar .halloween-logo{height:clamp(34px,11vw,44px);width:auto;max-width:none;flex:none}.final .heading{color:var(--white)}.ghost-card img{object-fit:cover;object-position:center}/* Cards keep the downloaded image's 108:124 ratio; their size follows the free height. */.final .collection-body{align-items:stretch}.final .collection-body>div{display:flex;flex-direction:column;min-height:0}.final .collection-grid{flex:1 1 0;height:auto;min-height:clamp(150px,calc(100dvh - 400px),400px);grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,auto);justify-content:start}.final .ghost-card{height:100%;width:auto;aspect-ratio:108/124;min-height:0}.world-stage{position:absolute;inset:0}

/* "Olhe à sua volta" while the floor is found (world tracking): message near the bottom, arrows at both sides */
.scanner.haunted .scan-label{display:none}
.haunt{position:absolute;inset:0;z-index:4;pointer-events:none;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:0 20px max(56px,calc(env(safe-area-inset-bottom) + 40px));opacity:0;transition:opacity .6s ease-out;background:linear-gradient(to top,rgba(0,0,0,.55),transparent 38%)}
.haunt.on{opacity:1}
.haunt-text{flex:1;margin:0;text-align:center;font:700 clamp(20px,5.8vw,26px)/1.15 var(--font);color:#fff;text-shadow:0 0 18px rgba(255,122,0,.85),0 0 42px rgba(255,122,0,.45);text-wrap:balance;animation:haunt-flicker 3.2s infinite}
.haunt-word{display:inline-block;white-space:nowrap}
.haunt-word>span{display:inline-block;opacity:0;filter:blur(8px);transform:translateY(8px);animation:haunt-wisp .9s ease-out forwards}
.haunt-arrow{flex:none;width:clamp(34px,9.5vw,44px);height:auto;aspect-ratio:96/56;color:var(--orange,#ff7a00);filter:drop-shadow(0 0 12px rgba(255,122,0,.8));transition:opacity .4s ease-out;margin-bottom:2px}
.haunt-right{animation:haunt-nudge-right 1.1s ease-in-out infinite}.haunt-left{animation:haunt-nudge-left 1.1s ease-in-out infinite}
.haunt.turned .haunt-arrow{opacity:0}
@keyframes haunt-wisp{to{opacity:1;filter:blur(0);transform:none}}
@keyframes haunt-flicker{0%,100%{opacity:1}42%{opacity:.82}44%{opacity:1}71%{opacity:.9}73%{opacity:1}}
@keyframes haunt-nudge-right{50%{transform:translateX(6px)}}@keyframes haunt-nudge-left{50%{transform:translateX(-6px)}}
@media (prefers-reduced-motion:reduce){.haunt-text,.haunt-word>span,.haunt-arrow{animation:none;opacity:1;filter:none;transform:none}}
/* Captured screen: the ghost's story beside the progress dots (Figma). */
.captured-story{display:flex;align-items:flex-start;gap:clamp(14px,4vw,22px)}.captured .captured-story .progress-dots{margin-top:16px}.ghost-story{margin:16px 0 0;font-size:clamp(11px,3.1vw,13px);line-height:1.4;max-width:30ch;text-shadow:0 1px 6px #000c}
/* While the ghost is shown, only the capture timer bar (no text box). */
.apparition-info.bare{background:none;padding:0 0 4px}
/* Data-collection notice before the hunt starts */
.consent{position:fixed;inset:0;z-index:40;display:grid;place-items:end center;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:rgba(0,10,40,.72)}
.consent-panel{width:min(100%,420px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--blue);border:1px solid var(--orange);border-radius:14px;padding:22px 20px 18px;box-shadow:0 10px 40px #0008}
.consent h2{margin:0 0 12px;color:var(--orange);font-size:22px;line-height:1.2}
.consent-body{margin:0;font-size:14px;line-height:1.55;white-space:pre-line}
.consent-link{margin:12px 0 0;font-size:14px}.consent-link a{color:var(--white)}
.consent-actions{display:grid;gap:8px;margin-top:18px}
.consent-decline{min-height:44px;background:transparent;border:0;color:var(--white);font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
/* Terms (left) and privacy policy (right) under the start button */
.legal-links{display:flex;justify-content:space-between;gap:12px;margin-top:12px}
.legal-links a{color:var(--white);opacity:.85;font-size:12px;line-height:1.3;text-decoration:underline;text-underline-offset:3px;min-height:24px;display:inline-flex;align-items:center}
.legal-links a:hover{opacity:1}
/* Legal pages: privacy policy and terms */
.legal-page{background:var(--blue);color:var(--white);min-height:100dvh}
.legal-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;padding:max(14px,env(safe-area-inset-top)) var(--side,20px) 12px;background:#002466f2;border-bottom:1px solid #ffffff1f}
.legal-back{display:grid;place-items:center;width:40px;height:33px;border:1px solid var(--orange);border-radius:9px;color:var(--orange);text-decoration:none;font-size:20px;font-weight:700}
.legal-body{max-width:680px;margin:0 auto;padding:20px var(--side,20px) calc(40px + env(safe-area-inset-bottom));font-size:15px;line-height:1.6}
.legal-body h1{color:var(--orange);font-size:clamp(28px,8vw,38px);line-height:1.1;margin:8px 0 4px}
.legal-body h2{color:var(--orange);font-size:18px;margin:26px 0 8px}
.legal-body ul{padding-left:20px}.legal-body li{margin:6px 0}
.legal-body a{color:var(--white)}
.legal-body mark{background:#fff00033;color:var(--yellow);padding:0 3px;border-radius:3px}
.legal-meta{color:#c9d3ea;font-size:13px;margin:0 0 18px}
.legal-foot{margin-top:32px;font-size:14px}
.consent-manager{border:1px solid var(--orange);border-radius:12px;padding:16px;margin:18px 0 8px;background:#062a6e}
.consent-manager h2{margin-top:0}
.consent-buttons{display:grid;gap:10px;margin-top:12px}
.consent-buttons .primary{min-height:48px;font-size:16px}
.consent-result{margin:10px 0 0;min-height:1.4em;color:var(--orange)}
.device-id code{font-size:12px;word-break:break-all;color:#c9d3ea}
/* Room for the legal links under the fixed start button */
.screen.home{padding-bottom:calc(130px + env(safe-area-inset-bottom,0px))}
.legal-clauses{padding-left:22px}.legal-clauses li{margin:8px 0}.legal-date{margin-top:28px;color:#c9d3ea}
.legal-links a{max-width:55%}.legal-links a:last-child{text-align:right;justify-content:flex-end}
/* Legal pages: one text per version (store by default, consumer with ?consumidor) */
html:not([data-mode="consumidor"]) .only-consumidor,html[data-mode="consumidor"] .only-loja{display:none}
