/* Layout in normal document flow: sponsor, brand, actions, events. */
body{padding-top:0!important}
.gb-topbar{position:relative!important;max-width:1320px;padding:22px 28px!important;align-items:center!important;gap:18px}
.gb-sponsor{display:flex;flex-direction:column;gap:8px;align-items:center;text-decoration:none;flex-shrink:0}
.gb-sponsor span{color:#cbd5e1;font:600 10px/1.4 system-ui;letter-spacing:.12em;text-transform:uppercase}
.gb-sponsor img{display:block;width:246px;height:90px;object-fit:contain;background:#fff;border-radius:10px;padding:8px 14px;box-sizing:border-box}
.gb-stage{min-height:0!important}
.gb-hero{max-width:860px!important;padding:0 24px!important;margin:0 auto!important}
.gb-hero-logo{position:relative!important;inset:auto!important;display:block!important;transform:none!important;opacity:1!important;visibility:visible!important;width:min(660px,100%)!important;max-height:none!important;height:auto!important;margin:0 auto 12px!important;pointer-events:none}
.gb-side{top:160px!important;width:170px!important}
.gb-side img{height:104px!important}
.gb-actions{flex-wrap:wrap;gap:12px!important;margin-top:24px!important}
.gb-action{min-width:0!important;padding:12px 20px!important;font-size:14px;text-decoration:none}
.gb-action.secondary{background:rgba(7,20,32,.85);border:1px solid rgba(216,154,40,.45);color:#f1d19b}
.gb-calendar-wrap{margin-top:40px!important}
.gb-page-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1200px;margin:auto;padding:24px;flex-wrap:wrap;z-index:20}
.gb-back{display:inline-flex;color:#ffce65;font:700 14px/1.4 system-ui;text-decoration:none;border:1px solid #766036;border-radius:999px;padding:11px 18px;background:#071522}
.gb-back:hover{background:#122b3a}
a:focus-visible,button:focus-visible{outline:3px solid #ffcf70;outline-offset:4px}
[data-gbt-page="ranking"] #ranking,[data-gbt-page="info"] #registro{padding-top:24px!important}
@media(max-width:1200px){.gb-side{display:none!important}}
@media(max-width:700px){
 .gb-topbar{padding:16px!important;gap:10px}
 .gb-sponsor img{width:201px;height:82px;max-width:100%}
 .gb-sponsor span{font-size:8px;letter-spacing:.05em}
 .gb-lang{gap:2px!important}
 .gb-lang button{padding:8px!important;min-width:30px!important;font-size:11px!important}
 .gb-hero{padding:0 16px!important}
 .gb-hero-logo{margin:0 auto 8px!important;width:100%!important}
 .gb-product{padding:10px 16px;gap:12px;max-width:100%}
 .gb-product strong{font-size:25px}.gb-product small{font-size:10px;letter-spacing:.08em}
 .gb-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px!important;margin-top:20px!important}
 .gb-action{font-size:12px;display:flex;align-items:center;justify-content:center;padding:12px 10px!important}
 .gb-calendar-wrap{padding:0 16px 24px!important;margin-top:32px!important}
 .gb-page-header{padding:16px}
}
@media(prefers-reduced-motion:reduce){.animate-scroll{animation:none!important}}

/* Restore the scroll-driven brand layer and constrain the mobile page width. */
html{width:100%;overflow-x:clip}
body{margin:0;width:100%;min-width:0}
[data-gbt-page="home"] .gb-stage,
[data-gbt-page="home"] .gb-hero,
[data-gbt-page="home"] .gb-calendar-wrap{width:100%;box-sizing:border-box;min-width:0}
[data-gbt-page="home"] .gb-hero::before{content:"";display:block;height:clamp(220px,44vw,400px)}
[data-gbt-page="home"] .gb-hero-logo{
 position:fixed!important;left:50%!important;right:auto!important;
 top:var(--gb-logo-center,260px)!important;bottom:auto!important;
 width:min(780px,calc(100vw - 32px))!important;
 height:clamp(220px,44vw,400px)!important;max-height:none!important;
 margin:0!important;object-fit:contain;
 transform:translate(-50%,-50%) scale(var(--gb-hero-scale,1))!important;
 opacity:var(--gb-hero-opacity,1)!important;
 visibility:var(--gb-hero-visibility,visible)!important;
 will-change:opacity,transform;transition:opacity .08s linear;
}
[data-gbt-page="home"] .gb-actions{max-width:720px;margin-left:auto;margin-right:auto}
[data-gbt-page="home"] .gb-action{box-sizing:border-box;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center}
[data-gbt-page="home"] .gb-calendar-strip{width:100%;box-sizing:border-box;min-width:0}
[data-gbt-page="home"] .gb-event-card{width:100%;min-width:0!important;max-width:100%!important}
@media(max-width:700px){
 [data-gbt-page="home"] .gb-topbar{display:flex;flex-direction:column;align-items:center!important;justify-content:center;gap:12px;margin:0 auto;width:100%;box-sizing:border-box}
 [data-gbt-page="home"] .gb-lang{justify-content:center;max-width:100%;margin:0 auto}
 [data-gbt-page="home"] .gb-hero{padding-left:16px!important;padding-right:16px!important;text-align:center}
 [data-gbt-page="home"] .gb-product{display:inline-flex;justify-content:center;box-sizing:border-box;max-width:100%;margin:0 auto}
 [data-gbt-page="home"] .gb-actions{grid-template-columns:minmax(0,1fr);width:100%;max-width:440px;justify-items:stretch}
 [data-gbt-page="home"] .gb-actions > .gb-action{width:100%!important;max-width:100%!important;min-width:0!important;height:auto;min-height:48px;box-sizing:border-box;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45;padding:13px 16px!important}
 [data-gbt-page="home"] #proxima-prova{text-align:center;min-width:0}
 [data-gbt-page="home"] .featured-copy{min-width:0;max-width:100%}
 [data-gbt-page="home"] .gb-countdown{margin-left:auto;margin-right:auto;box-sizing:border-box}
 [data-gbt-page="home"] .meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 [data-gbt-page="home"] .meta{min-width:0;overflow-wrap:anywhere}
 [data-gbt-page="home"] .actions{justify-content:center}
 [data-gbt-page="home"] .featured-art img{display:block;margin:auto;max-width:100%}
}
@media(max-width:380px){[data-gbt-page="home"] .gb-actions{grid-template-columns:minmax(0,1fr)}}
/* Restore the large original brand scale; avoid the previous 400px image box. */
[data-gbt-page="home"] .gb-hero-logo{
 width:min(980px,72vw)!important;
 height:auto!important;
 max-height:58vh!important;
}
@media(max-width:700px){
 [data-gbt-page="home"] .gb-hero-logo{
  width:94vw!important;
  height:auto!important;
  max-height:44vh!important;
 }
}
