/* Responsive layout corrections: footer tracks, homepage and Arena. */
footer .footer-top{grid-template-columns:minmax(200px,.85fr) minmax(0,2fr);gap:clamp(24px,4vw,64px);align-items:start}footer .footer-groups{width:100%;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,48px)}footer .footer-group{min-width:0;gap:12px}footer .footer-group h3{line-height:1.4;margin:0 0 6px}footer .footer-group a{line-height:1.6;overflow-wrap:normal;word-break:normal}body.ph-welcome-active footer .footer-top{grid-template-columns:minmax(0,1fr)}body.ph-welcome-active footer .footer-groups{max-width:none}footer .footer-bottom{gap:16px;flex-wrap:wrap}footer .footer-brand{min-width:0}footer .footer-sub{gap:20px;flex-wrap:wrap}
@media(min-width:1024px){main:has(.pw-home),main:has(.ph-arena-v2),main:has(.ph-command-v2){width:100%;max-width:1320px;margin-inline:auto;padding:30px clamp(24px,3vw,48px)}main:has(.pw-home) .welcome{max-width:none;margin-bottom:24px}.pw-home{max-width:none;gap:32px;margin-top:32px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.pw-intro{grid-column:1/-1;padding:0;max-width:780px}.pw-home .pw-community{grid-column:1;aspect-ratio:1.4;width:100%;height:auto;margin:0}.pw-home .pw-features{grid-column:2}.pw-home .pw-features h2{font-size:26px;margin:0 0 20px}.pw-home .pw-feature{min-height:90px;padding:18px;gap:18px}.pw-home .pw-feature>div{padding-left:18px}.pw-home .pw-feature h3{font-size:19px}.pw-home .pw-feature p{font-size:14px}.pw-home .pw-steps{grid-column:1/-1;padding:12px 0}.pw-home .pw-join{grid-column:1/-1;padding:32px}.pw-home .pw-signature,.pw-home .pw-partner{grid-column:1/-1}.hero.dynamic-game-hero{min-height:360px;max-height:480px}.hero.dynamic-game-hero .hero-content{width:55%;max-width:620px;padding-top:34px;padding-bottom:90px}.hero.dynamic-game-hero h2{font-size:clamp(38px,4vw,62px);line-height:1.05}.hero.dynamic-game-hero .hero-art{object-fit:cover;object-position:75% center}.ph-arena-v2{max-width:none!important;width:100%;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px!important;align-items:start}.ph-arena-v2>.pa-title{grid-column:1/-1}.ph-arena-v2>.pa-profile{grid-column:1;margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:24px}.ph-arena-v2>section[aria-labelledby=pa-shortcuts]{grid-column:2}.ph-arena-v2 .pa-shortcuts{gap:12px}.ph-arena-v2 .pa-shortcut{padding:17px;min-height:90px}.ph-arena-v2 .pa-shortcut>svg{flex-shrink:0}.ph-arena-v2 .pa-shortcut strong{font-size:16px}.ph-arena-v2 .pa-shortcut small{font-size:12px}.ph-arena-v2 .pa-person{gap:16px;min-width:0}.ph-arena-v2 .pa-name{min-width:0}.ph-arena-v2 .pa-name strong{font-size:22px}.ph-arena-v2 .pa-profile-link{white-space:nowrap}.ph-arena-v2 .pa-stats{margin-top:24px}.ph-arena-v2>section[aria-labelledby=pa-games],.ph-arena-v2>.pa-dots,.ph-arena-v2>.pa-announcements,.ph-arena-v2>.pa-bottom{grid-column:1/-1}.ph-arena-v2 .pa-games{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;overflow:visible}.ph-arena-v2 .pa-game{width:100%;min-width:0;aspect-ratio:3/4;height:auto;scroll-snap-align:none}.ph-arena-v2 .pa-game img{width:100%;height:100%;object-fit:cover}.ph-arena-v2>.pa-dots{display:none}.ph-arena-v2>.pa-bottom{max-width:650px;justify-self:center;width:100%;position:static}.ph-arena-v2>.pa-maintenance{align-self:stretch;margin:0;display:flex;align-items:center;justify-content:center}.ph-arena-v2 .pa-heading{margin-bottom:16px}.ph-arena-v2 .pa-title h1{font-size:36px}.ph-arena-v2 .pa-title p{font-size:16px}}
@media(min-width:1024px) and (max-width:1240px){.ph-arena-v2{grid-template-columns:1fr!important}.ph-arena-v2>.pa-profile,.ph-arena-v2>section[aria-labelledby=pa-shortcuts]{grid-column:1/-1}.ph-arena-v2 .pa-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.ph-arena-v2 .pa-shortcut{flex-direction:column;align-items:flex-start}.ph-arena-v2 .pa-games{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:767px){footer .footer-top{grid-template-columns:minmax(0,1fr);gap:24px}footer .footer-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}footer .footer-group{gap:10px}footer .footer-group h3{font-size:14px}footer .footer-group a{font-size:13px}footer .footer-bottom{display:flex;flex-direction:column;align-items:flex-start;line-height:1.6}}
@media(min-width:1024px){.ph-arena-v2 .pa-games{grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-template-rows:auto!important;transform:none!important;scroll-snap-type:none}.ph-arena-v2 .pa-game{max-width:100%;flex:none!important}.ph-arena-v2 .pa-game>strong{font-size:13px}}
@media(min-width:1024px){.hero.dynamic-game-hero .hero-art{width:58%!important;height:100%!important;left:auto!important;right:0!important;object-fit:contain!important;object-position:center right!important}}



@media(max-width:767px){body main>.pp-banner{display:block!important;width:100%;max-width:100%;margin:0 0 20px;padding:18px 48px 18px 16px;box-sizing:border-box}body main>.pp-banner p{font-size:15px;line-height:1.5;margin:8px 0 12px}body main>.pp-banner .pp-primary{min-height:42px;padding:10px 16px;font-size:13px}body main>.pp-banner .pp-dismiss{right:12px;top:12px}}

/* Keep the existing login, registration and recovery forms visible above page navigation. */
html body:has(.app-dialog [aria-label="Fechar acesso"]) > [data-slot="dialog-overlay"][data-state="open"]{position:fixed!important;inset:0!important;z-index:10000!important;opacity:1!important;visibility:visible!important;animation:none!important;background:rgba(0,0,0,.72)!important}
html body .app-dialog[data-slot="dialog-content"][data-state="open"]:has([aria-label="Fechar acesso"]){position:fixed!important;z-index:10001!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;translate:none!important;transform:translate(-50%,-50%)!important;scale:1!important;animation:none!important;transition:none!important;opacity:1!important;visibility:visible!important;display:grid!important;width:min(650px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;min-height:0!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#17181f!important;color:#f5f6f8!important;box-sizing:border-box!important;border:1px solid #3d414b!important;box-shadow:0 24px 100px #000b!important;isolation:isolate}
html body .app-dialog:has([aria-label="Fechar acesso"]) [aria-label="Fechar acesso"]{z-index:2;min-width:40px;min-height:40px;display:grid;place-items:center;top:8px;right:8px;cursor:pointer}
@media(max-width:640px){html body .app-dialog[data-state="open"]:has([aria-label="Fechar acesso"]){padding:24px 18px!important;border-radius:16px!important;gap:16px!important}html body .app-dialog:has([aria-label="Fechar acesso"]) form{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}html body .app-dialog:has([aria-label="Fechar acesso"]) input:not([type="checkbox"]){min-width:0!important;width:100%!important;font-size:16px!important;min-height:46px}html body .app-dialog:has([aria-label="Fechar acesso"]) h2{padding-inline:24px;line-height:1.25}html body .app-dialog:has([aria-label="Fechar acesso"]) button{min-height:44px}}

/* Guest access actions stay visible on every page, including mobile Arena and Início. */
html body .topbar .guest-auth-actions>.primary.small,html body .topbar .guest-auth-actions>.auth-entry{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto}
@media(max-width:640px){html body .topbar:has(.guest-auth-actions){padding-inline:12px!important;gap:6px!important;flex-wrap:wrap;min-height:64px;height:auto!important}html body .topbar .guest-auth-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:5px!important;flex:0 0 auto;min-width:0}html body .topbar .guest-auth-actions>.primary.small,html body .topbar .guest-auth-actions>.auth-entry{font-size:12px!important;padding:9px 10px!important;min-height:42px!important;line-height:1.2}html body .topbar .guest-auth-actions>.icon-btn{width:28px!important;min-width:28px!important;padding:4px!important}html body .topbar:has(.guest-auth-actions) .breadcrumb{font-size:18px!important;gap:5px!important;letter-spacing:-.04em}html body .topbar:has(.guest-auth-actions) .breadcrumb:before{width:24px!important;flex-basis:24px!important;height:30px!important}}
@media(max-width:360px){html body .topbar:has(.guest-auth-actions) .breadcrumb{font-size:16px!important}html body .topbar .guest-auth-actions>.primary.small,html body .topbar .guest-auth-actions>.auth-entry{padding-inline:8px!important;font-size:11px!important}}

html body:has(.ph-start) main>.hero.dynamic-game-hero,html body:has(.ph-start) main>.welcome{display:none!important}

html body .ph-arena-v2 .pa-bottom{display:none!important}html body .ph-arena-v2{padding-bottom:24px!important}


/* Desktop-only wide canvas; mobile rules remain unchanged. */
@media(min-width:1024px){
html body.ph-start-active main,html body.ph-arena-v2-active main:has(.ph-arena-v2){width:100%!important;max-width:1760px!important;margin-inline:auto!important;padding:28px clamp(24px,2.5vw,48px)!important;box-sizing:border-box!important;min-width:0}
html body.ph-start-active main .ph-start{width:100%!important;max-width:none!important;margin:0!important}
html body.ph-start-active main .ph-start .ps-hero{aspect-ratio:auto!important;height:clamp(450px,34vw,600px)!important}
html body.ph-start-active main .ph-start .ps-hero:has(img[src*="home-art-"]):after{left:auto!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;aspect-ratio:1.14!important}
html body.ph-start-active main .ph-start .ps-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body.ph-start-active main .ph-start .ps-shortcuts>a{padding:20px 16px!important;gap:12px!important}
html body.ph-start-active main .ph-start .ps-shortcuts h2{font-size:20px!important;white-space:normal}
html body.ph-start-active main .ph-start .ps-shortcuts p{font-size:14px}
html body.ph-start-active main .ph-start .ps-shortcuts svg{width:32px;height:32px}
html body.ph-start-active main .ph-start .ps-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html body.ph-start-active main .ph-start .ps-game-grid>a{max-height:340px!important}
html body.ph-arena-v2-active .ph-arena-v2{width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;gap:26px!important}
html body.ph-arena-v2-active .ph-arena-v2>.pa-profile{grid-column:1!important}
html body.ph-arena-v2-active .ph-arena-v2>section[aria-labelledby=pa-shortcuts]{grid-column:2!important}
html body.ph-arena-v2-active .ph-arena-v2 .pa-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.ph-arena-v2-active .ph-arena-v2 .pa-shortcut{flex-direction:row!important;align-items:center!important;gap:12px;padding:18px;min-height:88px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-avatar{width:72px;height:72px;border-radius:18px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-name{padding-left:14px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-name strong{font-size:20px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-name span{font-size:15px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-profile-link{font-size:14px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-games{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;grid-auto-flow:row!important;gap:20px}
html body.ph-arena-v2-active .ph-arena-v2 .pa-game{max-height:320px;aspect-ratio:.91}
}
.gamer-search-form{display:flex;align-items:stretch;gap:12px;width:100%}
.gamer-search-form input{min-width:0;flex:1;width:100%}
.gamer-search-form button{flex-shrink:0;min-height:44px}
.gamer-search-result{overflow-wrap:anywhere}
@media(max-width:480px){.gamer-search-form{gap:8px}.gamer-search-form button{padding-inline:12px}}


/* Balanced desktop layout, keeping all mobile dimensions intact. */
@media(min-width:1024px){
html body.ph-start-active main{max-width:1480px!important;padding:28px 32px!important}
html body.ph-start-active main .ph-start{gap:24px!important}
html body.ph-start-active main .ph-start .ps-hero{height:clamp(430px,35vw,510px)!important}
html body.ph-start-active main .ph-start .ps-hero:has(img[src*="home-art-"]):after{left:40%!important;right:0!important;width:auto!important;aspect-ratio:auto!important;mask-image:linear-gradient(90deg,transparent,#000 20%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 20%)}
html body.ph-start-active main .ph-start .ps-hero:not(.ps-reference-hero) h2{font-size:clamp(38px,3.5vw,48px)!important}
html body.ph-start-active main .ph-start .ps-hero:not(.ps-reference-hero) .ps-hero-actions{width:34%!important;max-width:360px!important}
html body.ph-start-active main .ph-start .ps-game-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;justify-content:stretch!important}
html body.ph-start-active main .ph-start .ps-game-grid>a.ps-reference-card{width:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:1.3!important;margin:0!important;justify-self:stretch!important}
html body.ph-start-active main .ph-start .ps-how li{min-height:0!important;padding:20px!important;gap:12px!important}
html body.ph-start-active main .ph-start .ps-discover{min-height:270px!important;background:#10191c}
html body.ph-start-active main .ph-start .ps-discover:before{left:36%;background-position:center}
html body.ph-start-active main .ph-start .ps-values{padding:24px!important}
html body .ph-founder-shell{max-width:1480px!important;width:100%!important}
html body .ph-founder-shell .ph-founder-layout{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;align-items:start!important;gap:24px!important}
html body .ph-founder-shell .ph-founder-menu{position:sticky;top:96px;max-width:100%;overflow:visible!important}
html body .ph-founder-shell .ph-founder-mobile-menu{display:none!important}
html body .ph-founder-shell .ph-founder-menu>.ph-founder-nav{display:block!important;max-height:calc(100dvh - 150px)!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
}
html body .ph-founder-shell .ph-founder-nav{min-width:0!important;grid-auto-flow:row!important}
html body .ph-founder-shell .ph-founder-nav .fd-group{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
html body .ph-founder-shell .ph-founder-nav .fd-group>:is(button,a){width:100%!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;min-width:0!important;margin:4px 0!important}
html body .ph-founder-shell .ph-founder-nav [hidden]{display:none!important}
body.ph-area-maintenance main>:not(#ph-area-maintenance){display:none!important}body #ph-area-maintenance{display:grid!important;gap:18px;max-width:820px;margin:48px auto;padding:clamp(24px,4vw,48px);border:1px solid #657c29;border-radius:20px;background:radial-gradient(ellipse at right bottom,#c4ff0018,transparent 65%),#141b20;color:#f5f7f9}body #ph-area-maintenance .eyebrow{color:#c4ff00;font-size:12px;letter-spacing:.12em}body #ph-area-maintenance h1{font-size:clamp(28px,4vw,40px);line-height:1.15;margin:0}body #ph-area-maintenance p{color:#bbc5cf;line-height:1.6;margin:0}body #ph-area-maintenance a{justify-self:start;margin-top:8px}
@media(min-width:1024px){
html body.ph-start-active main .ph-start .ps-hero:has(img[src*="home-art-"]):after{left:auto!important;right:0!important;top:50%!important;bottom:auto!important;width:58%!important;height:auto!important;aspect-ratio:1!important;transform:translateY(-50%)!important}
html body.ph-start-active main .ph-start .ps-game-grid>a.ps-reference-card{aspect-ratio:1!important}
}
@media(min-width:1024px){
html body.ph-start-active main .ph-start .ps-hero{overflow:clip!important}
html body.ph-start-active main .ph-start .ps-hero:has(img[src*="home-art-"]):after{left:auto!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;height:100%!important;aspect-ratio:1!important;transform:none!important}
}