.brazil-art .br-language{display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0}
.brazil-art .br-language button{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:3px;border:1px solid transparent;border-radius:50%;background:transparent;cursor:pointer;transition:background .15s,border-color .15s}
.brazil-art .br-language button img{display:block;width:28px;height:28px;object-fit:cover;border-radius:50%;box-shadow:0 1px 4px #0006}
.brazil-art .br-language button[aria-pressed=true]{border-color:#edcc81;background:#edcc8126}
.brazil-art .br-language button:hover{background:#ffffff20}.brazil-art .br-language button:focus-visible{outline:2px solid #ffe7aa;outline-offset:3px}
.brazil-landing .br-language{margin-top:18px;padding-top:16px;border-top:1px solid #d8bb7033}
.brazil-home .header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:12px;height:auto;min-height:92px;padding-top:12px;padding-bottom:12px}
.brazil-home .header>.brazil-bi{justify-self:start}.brazil-home .header>.br-language{grid-column:2;justify-self:center}
.brazil-home .header>.br-account-area{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:6px;justify-self:end;width:max-content}
.brazil-home .header .br-account-area .member-service-tools{display:flex;gap:6px;flex-wrap:nowrap;width:auto;order:0}
.brazil-home .header .br-account-area .member-service-tools[hidden]{display:none}
.brazil-home .header .br-account-area .member-action{min-height:42px;padding:0 8px;gap:5px;font-size:11px;flex:0 0 auto;max-width:none}
.brazil-home .header .br-account-area .member-action svg{width:16px;height:16px;flex-shrink:0}
.brazil-home .header .br-account-area .account{margin-left:0;order:0;gap:5px;padding:6px}
.brazil-home .header .br-account-area .account-profile{width:142px;flex-basis:142px}
@media(max-width:1059px){
 .brazil-home .header{grid-template-rows:auto auto;row-gap:10px;min-height:0}
 .brazil-home .header>.br-account-area{grid-row:2;grid-column:1/-1}
}
@media(max-width:540px){
 .brazil-home .header{column-gap:4px;row-gap:12px}
 .brazil-home .header>.brazil-bi{gap:4px}.brazil-home .header>.brazil-bi img{width:26px;height:26px}.brazil-home .header>.brazil-bi>span{font-size:12px;letter-spacing:.5px}.brazil-home .header>.brazil-bi small{font-size:6px;letter-spacing:3px;margin-top:5px}
 .brazil-home .header>.br-account-area{width:100%;justify-self:stretch;justify-content:flex-end}
 .brazil-home .header .br-account-area .member-service-tools{flex-direction:column;align-items:stretch;width:108px;flex:0 0 108px;gap:5px}
 .brazil-home .header .br-account-area .member-action{min-height:36px;justify-content:center}
 .brazil-home .header .br-account-area .account{flex:0 1 224px;min-width:0}
 .brazil-home .header .br-account-area .account-profile{width:auto;flex:1 1 120px;min-width:0}
 .brazil-home .header .br-account-area .account .account-action{width:36px;flex-basis:36px}
}
@media(max-width:360px){
 .brazil-home .header>.brazil-bi{gap:3px}.brazil-home .header>.brazil-bi img{width:20px;height:20px}.brazil-home .header>.brazil-bi>span{font-size:9px;letter-spacing:.3px}.brazil-home .header>.brazil-bi small{font-size:5px;letter-spacing:2px;margin-top:4px}
}

/* Footer is outside the scrolling content; safe-area space also protects the last card. */
.brazil-home{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}.brazil-home .header{grid-template-columns:minmax(0,1fr) auto}.brazil-home .header>.br-account-area{grid-column:2}.br-footer{position:fixed;inset:auto 0 0;z-index:2147483000;box-sizing:border-box;min-height:56px;padding:6px max(16px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:#0c3632;border-top:1px solid #ddc67c66;box-shadow:0 -3px 14px #0004}.br-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1600px;margin:auto;min-height:43px}.br-footer-brand{color:#dfc886;font-size:11px;letter-spacing:2px;white-space:nowrap}.brazil-art .br-footer .br-language{margin:0;padding:0;border:0;justify-content:flex-end;margin-left:auto}.brazil-art .br-footer .br-language button{width:40px;height:40px;min-width:40px}@media(max-width:1059px){.brazil-home .header>.br-account-area{grid-column:1/-1}}@media(max-width:390px){.br-footer-brand{font-size:9px;letter-spacing:1px}.br-footer-inner{gap:8px}.brazil-art .br-footer .br-language{gap:3px}}

.brazil-home .home-origin-badge{display:none!important}

/* Brazil demo toolbar: a single row, existing emblem, no history entry. */
.brazil-home .header{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;min-height:84px;gap:12px;padding-top:6px;padding-bottom:6px}
.brazil-home .header>.brazil-bi{flex:0 0 auto;gap:0}
.brazil-home .header>.brazil-bi img{width:110px!important;height:73px!important;object-fit:contain}
.brazil-home .header>.brazil-bi>span{display:none}
.brazil-home .header>.br-account-area{width:auto!important;flex:0 1 auto;min-width:0;display:flex;flex-wrap:nowrap;align-items:center;gap:7px}
.brazil-home .header .br-account-area .member-service-tools{width:auto!important;flex:0 0 auto!important;flex-direction:row!important;gap:0}
.brazil-home [data-game-history]{display:none!important}
.brazil-home .header .br-account-area .account{background:#193236!important;gap:6px;padding:6px;min-width:0;flex:0 1 auto}
.brazil-home .header .br-account-area .account-profile{background:transparent!important;border:0!important;box-shadow:none!important;min-width:0;width:142px;flex:0 1 142px}
.brazil-home .header .br-account-area .account-action{background:linear-gradient(160deg,#bc333b,#791b26)!important;border:1px solid #e16e63!important;color:#ffdc66!important;box-shadow:inset 0 1px 0 #ffb1a14d,0 2px 5px #0005}
.brazil-home .header .br-account-area .account-action:hover{background:linear-gradient(160deg,#d94348,#992330)!important}
.brazil-home .header .br-account-area .free-charge{position:relative;isolation:isolate;overflow:hidden;min-height:46px;gap:7px;padding:0 13px;color:#ffe791;background:linear-gradient(145deg,#4d3d16,#29240e 60%,#584217);border:1px solid #eac65b;border-radius:13px;box-shadow:inset 0 1px 0 #fff2b7b3,inset 0 -1px 0 #9b651c,0 0 12px #eabf473d;animation:br-charge-glow 3.6s ease-in-out infinite}
.brazil-home .header .br-account-area .free-charge:after{content:'';position:absolute;inset:-70% auto -70% -70%;width:32%;transform:rotate(24deg);background:linear-gradient(90deg,transparent,#fff6d18c,transparent);pointer-events:none;animation:br-charge-shine 5s ease-in-out infinite}
.brazil-home .header .br-account-area .free-charge svg{width:25px;height:25px;flex:0 0 25px;filter:drop-shadow(0 1px 2px #0008)}
@keyframes br-charge-glow{0%,100%{box-shadow:inset 0 1px 0 #fff2b7b3,0 0 8px #eabf4726}50%{box-shadow:inset 0 1px 0 #fff2b7e6,0 0 17px #eabf4766}}
@keyframes br-charge-shine{0%,65%{left:-70%}90%,100%{left:140%}}
@media(max-width:520px){.brazil-home .header{gap:5px;min-height:70px;padding-left:8px;padding-right:8px}.brazil-home .header>.brazil-bi img{width:76px!important;height:51px!important}.brazil-home .header>.br-account-area{gap:5px}.brazil-home .header .br-account-area .free-charge{font-size:10px;padding:0 7px;gap:4px;min-height:42px}.brazil-home .header .br-account-area .free-charge svg{width:21px;height:21px;flex-basis:21px}.brazil-home .header .br-account-area .account-profile{width:92px;flex-basis:92px}.brazil-home .header .br-account-area .account{padding:4px;gap:4px}.brazil-home .header .br-account-area .account-action{width:34px;flex-basis:34px}.brazil-home .account-points{font-size:15px}}
@media(prefers-reduced-motion:reduce){.brazil-home .header .br-account-area .free-charge,.brazil-home .header .br-account-area .free-charge:after{animation:none}}

.brazil-home .header>.brazil-bi{width:110px;height:73px;overflow:hidden}.brazil-home .header>.brazil-bi img{transform:scale(1.45)}@media(max-width:520px){.brazil-home .header>.brazil-bi{width:76px;height:51px}}

/* Brazil: remove the three delivery-card DEMO labels. */
.brazil-home [data-game-href^="/games/3-super-hungry-pandas/"] .home-demo-badge,
.brazil-home [data-game-href^="/games/royal-express/"] .home-demo-badge,
.brazil-home [data-game-href^="/games/super-flying-pig/"] .home-demo-badge{display:none!important}
