.portfolio-case{--app-orange:var(--case-accent)}
.portfolio-case .skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;padding:0}
.case-intro{display:grid;grid-template-columns:1fr 1fr;gap:5%;align-items:center;padding-top:75px;padding-bottom:75px;min-height:740px;overflow:hidden}
.case-intro h1{font-style:normal;text-transform:none;font-size:clamp(56px,6.1vw,96px);font-weight:620;line-height:1;letter-spacing:-.06em}
.case-intro h1 i{color:var(--case-accent)}
.case-intro .text-link{margin-top:28px;align-items:center}
.intro-visual{min-width:0;display:flex;justify-content:center;position:relative}
.intro-visual.phone{padding:20px 0}.intro-visual.phone .app-device{width:258px;flex-basis:258px;transform:rotate(5deg)}
.intro-visual.desktop{margin-right:calc(var(--gutter)*-1);padding-right:25px}.browser-device{width:100%;min-width:0;background:#25232d;padding:28px 6px 6px;border:1px solid #6c6676;border-radius:12px;position:relative;box-shadow:0 25px 50px #0003}
.browser-device:before{content:'';position:absolute;left:14px;top:11px;width:5px;height:5px;border-radius:50%;background:#a7a1ae;box-shadow:11px 0 #a7a1ae,22px 0 #a7a1ae}
.browser-screen{background:white;overflow:hidden;aspect-ratio:1440/1020;border-radius:3px}.browser-screen img{width:100%;height:auto}
.intro-visual.desktop .browser-device{transform:perspective(1200px) rotateY(-7deg);width:115%;flex-shrink:0;margin-right:-15%}
.sorteio-intro .app-device{transform:rotate(7deg) translateX(45px)!important}.intro-dice{position:absolute;max-width:none;width:720px;left:50%;top:35%;transform:translate(-70%,-10%);pointer-events:none;filter:drop-shadow(0 20px 25px #0004)}
.case-experience{background:var(--app-surface);color:var(--ink);padding-block:80px}
.case-modules{display:flex;gap:0;border-block:1px solid #16141d30;overflow:auto;margin-bottom:45px}
.case-modules button{padding:20px 25px;color:var(--ink);font-size:16px;display:flex;gap:32px;justify-content:space-between;flex:1;white-space:nowrap;border-right:1px solid #16141d30}
.case-modules button:last-child{border:0}.case-modules button span{font:11px PlexMono,monospace}.case-modules button[aria-pressed=true]{background:var(--ink);color:var(--bone)}
.case-explorer{display:grid;grid-template-columns:1fr 1.2fr;gap:8%;max-width:1200px;margin:auto;align-items:start}
.case-explorer.desktop{grid-template-columns:320px minmax(0,1fr);gap:5%;max-width:none}
.gallery-copy h3{font-size:clamp(28px,3vw,42px);font-weight:550;line-height:1.1;letter-spacing:-.04em}.gallery-copy>p{font-size:17px;line-height:1.65;margin-top:20px}
.gallery-list{margin-top:28px;display:grid}.gallery-list button{display:flex;align-items:center;gap:20px;border-bottom:1px solid #16141d30;text-align:left;color:var(--ink);padding:13px 8px;font-size:14px}
.gallery-list button span{font:11px PlexMono,monospace;color:#5c5664}.gallery-list button[aria-current=true]{border-left:3px solid var(--ink);padding-left:5px;background:#fff9}.gallery-list button:hover{background:#fff6}
.gallery-copy .gallery-note{font-size:12px;line-height:1.6;color:#524d5a;margin-top:24px;max-width:390px}
.gallery-stage{display:flex;align-items:center;flex-direction:column;min-width:0;position:sticky;top:30px;outline-offset:8px}
.gallery-viewport{overflow:auto;scrollbar-width:thin;scrollbar-color:#8c8496 #fff}.phone .gallery-viewport{aspect-ratio:375/812}.gallery-surface{position:relative;width:100%;line-height:0;flex:none}.gallery-surface>img{width:100%;height:auto;display:block;min-height:0}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;max-width:380px;margin-top:25px}.gallery-controls button{border:1px solid #16141d60;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:0 0 44px;color:var(--ink)}
.gallery-controls button:disabled{opacity:.3}.gallery-controls button:hover:not(:disabled){background:var(--ink);color:white}.gallery-controls svg{width:22px;height:22px}.gallery-controls #previous-screen svg{transform:rotate(180deg)}
#screen-status{text-align:center;font:11px PlexMono,monospace;min-height:49px;padding-top:5px}#screen-status span{display:block;font:13px Plex,sans-serif;margin-top:8px;line-height:1.4}
.zoom-screen{font-size:13px;margin-top:16px;border-bottom:1px solid #16141d50;padding:8px 0;color:var(--ink);display:flex;gap:25px;align-items:center}
.hotspot-layer{position:absolute;inset:0;pointer-events:none}.hotspot-layer button{pointer-events:auto;position:absolute;border-radius:4px;outline-offset:0}.hotspot-layer button:hover,.hotspot-layer button:focus-visible{background:#ffffff26;outline:2px solid #ff5cac;outline-offset:-2px}
.journey-actions{margin-top:25px;display:flex;flex-wrap:wrap;gap:12px}.journey-actions button{padding:13px 18px;border:1px solid var(--ink);color:var(--ink);font-size:13px;min-height:44px}.journey-actions .journey-play{background:var(--ink);color:white}.journey-actions p{width:100%;font-size:12px;line-height:1.5;color:#524d5a}
[hidden]{display:none!important}
.result-scene{width:100%;aspect-ratio:375/812;position:relative;overflow:hidden;background:#141624;line-height:normal;isolation:isolate}
.result-scene img{max-width:none;position:absolute}.result-rays{position:absolute;inset:0;pointer-events:none}.result-scene .ray-one{left:-75.47%;top:-3.69%;width:251.2%;height:77.34%}.result-scene .ray-two{left:-46.42%;top:4.46%;width:189.92%;height:67.71%}.result-scene .ray-three{left:-67.95%;top:-3.69%;width:236.91%;height:76.49%}
.result-scene .result-confetti{width:273.067%;left:-35.5%;top:-26.8%;transform:rotate(-38deg);mix-blend-mode:screen;pointer-events:none}
.result-status{position:absolute;top:1.35%;left:6.4%;right:3.65%;display:flex;justify-content:space-between;color:white;font:9px Plex,sans-serif;z-index:2}.result-status>div{display:flex;gap:3px;align-items:center}.result-status img{position:static;width:auto;height:7px}
.result-scene .result-label{left:10.667%;top:48.153%;width:78.667%}.result-again,.result-share{position:absolute;left:10.667%;width:78.667%;height:6.158%;padding:0;z-index:4}.result-again{top:64.409%}.result-share{top:85.222%}.result-again img,.result-share img{inset:0;width:100%;height:100%}.result-again:hover,.result-share:hover{filter:brightness(1.15)}
.result-scene .result-celebration{left:-137.6%;top:1.232%;width:375.2%;height:97.537%;pointer-events:none}.result-scene .result-dice{left:-29.6%;top:12.438%;width:165.333%;height:42.857%;pointer-events:none}
.result-home{position:absolute;left:6.133%;top:6.897%;width:6.933%;height:3.2%;padding:0;z-index:4}.result-home img{inset:0;width:100%;height:100%}
.suspense-overlay{position:absolute;inset:0;overflow:hidden;background:#141624;display:flex;align-items:center;justify-content:center;line-height:1.5;z-index:5;pointer-events:none;background-image:linear-gradient(#141624dd,#141624dd),url('../assets/cases/sorteio-facil/suspense.webp');background-size:cover}
.suspense-reel{display:flex;flex-direction:column;align-items:center;gap:24px;font:600 24px Archivo,sans-serif;color:white;transform:translateY(0)}.suspense-reel span{white-space:nowrap}.suspense-overlay:after{content:'';position:absolute;inset:0;background:linear-gradient(#141624 20%,transparent 44%,transparent 55%,#141624 80%)}
.case-journey{padding-block:85px;background:var(--deep)}.case-journey ol{display:grid;grid-template-columns:repeat(var(--steps,5),1fr);list-style:none;padding:0;margin:50px 0 0;border-top:1px solid var(--line)}.case-journey li{padding:28px 25px 15px 0;position:relative}.case-journey li>span{font:12px PlexMono,monospace;color:var(--case-accent)}.case-journey h3{font-size:25px;font-weight:500;letter-spacing:-.03em;margin:25px 0 12px}.case-journey li p{font-size:15px;line-height:1.6;color:#d0ccd5}.case-journey li>svg{position:absolute;right:25px;top:25px;width:25px;height:25px}
.portfolio-case .case-next{padding:35px var(--gutter);margin:0}.portfolio-case .case-next a{display:flex;gap:18px;align-items:center}
.screen-dialog{width:94vw;max-width:1600px;height:94svh;max-height:none;border:1px solid #655e70;padding:0;background:var(--deep);color:var(--bone);overflow:hidden}.screen-dialog::backdrop{background:#060509dd}.dialog-toolbar{height:70px;display:flex;align-items:center;gap:24px;padding:12px 24px;border-bottom:1px solid var(--line)}.dialog-toolbar p{font-size:15px;margin-right:auto}.dialog-toolbar button{font-size:13px;border:1px solid #ffffff60;padding:10px 14px;white-space:nowrap}.dialog-scroll{height:calc(100% - 70px);overflow:auto;padding:24px;scrollbar-color:#9c93aa #18151e}.dialog-scroll img{width:auto;max-width:100%;height:auto;margin:auto}.dialog-scroll.native-size img{max-width:none}.screen-dialog[data-kind=phone] .dialog-scroll img{width:min(100%,420px)}.screen-dialog[data-kind=phone] .dialog-scroll.native-size img{width:auto}
.js .gallery-fallback{display:none}.js .gallery-fallback.is-visible{display:block}.gallery-error{padding:25px 0}.gallery-fallback .fallback-gallery img{max-width:100%}
html:not(.js) .case-modules,html:not(.js) .gallery-list,html:not(.js) .gallery-controls,html:not(.js) .zoom-screen,html:not(.js) .journey-actions{display:none}
@media(max-width:1100px){.case-intro{min-height:660px;gap:3%}.case-intro h1{font-size:6.5vw}.case-explorer.desktop{grid-template-columns:250px minmax(0,1fr);gap:4%}.intro-visual.phone .app-device{width:235px;flex-basis:235px}.intro-dice{width:600px}.case-journey ol{grid-template-columns:repeat(3,1fr);row-gap:20px}}
@media(max-width:760px){.case-intro{grid-template-columns:1fr;gap:40px;padding-block:45px}.case-intro h1{font-size:clamp(49px,12vw,78px)}.case-intro .hero-description{max-width:500px}.intro-visual.phone{padding:10px 0;margin-block:15px}.intro-visual.phone .app-device{width:230px;flex-basis:230px}.intro-visual.desktop{margin:0;padding:0}.intro-visual.desktop .browser-device{width:100%;margin:0;transform:none}.sorteio-intro .app-device{transform:rotate(5deg) translateX(22px)!important}.intro-dice{width:520px;top:38%;transform:translate(-71%,0)}.case-experience{padding-block:50px}.case-modules{margin-right:calc(var(--gutter)*-1);padding-right:var(--gutter);margin-bottom:28px}.case-modules button{flex:0 0 auto;padding:17px 20px;font-size:14px;gap:20px}.case-explorer,.case-explorer.desktop{display:flex;flex-direction:column;gap:25px}.gallery-copy{display:contents}.gallery-copy h3{order:0;font-size:29px}.gallery-copy>p{order:1;margin-top:-8px;font-size:16px}.journey-actions{order:2;margin-top:0}.gallery-stage{order:3;position:relative;top:0;width:100%}.gallery-list{order:4;margin-top:5px;width:100%}.gallery-copy .gallery-note{order:5;margin-top:0}.gallery-stage .explorer-device{width:254px}.gallery-controls{max-width:330px}.case-explorer.desktop .browser-device{padding-top:24px}.case-explorer.desktop .gallery-viewport{aspect-ratio:1;}.case-journey{padding-block:50px}.case-journey ol{display:block;margin-top:30px;border-top:0;border-left:1px solid #ffffff40;margin-left:6px}.case-journey li{padding:0 0 35px 30px}.case-journey li:before{content:'';position:absolute;width:9px;height:9px;background:var(--case-accent);left:-5px;top:3px;border-radius:50%}.case-journey h3{margin-top:12px}.case-journey li>svg{display:none}.case-journey li:last-child{padding-bottom:0}.portfolio-case .case-next{font-size:13px;gap:15px}.dialog-toolbar{height:110px;flex-wrap:wrap;padding:12px 16px;gap:10px}.dialog-toolbar p{flex:0 0 100%;font-size:13px}.dialog-toolbar button{font-size:12px;padding:9px 12px}.dialog-scroll{height:calc(100% - 110px);padding:12px}.screen-dialog{width:96vw;height:94svh}.result-status{font-size:8px}}
@media(prefers-reduced-motion:reduce){.portfolio-case{scroll-behavior:auto}}

.result-scene img{min-height:0;object-fit:fill;object-position:initial}.case-modules:has(button:only-child){display:none}
.case-explorer.desktop .gallery-stage{position:relative;top:0}
@media(max-width:760px){.intro-dice{width:min(520px,133vw)}}
