/* Real Live Digital / Seções de imagem substituível — 02.11.2026
   Inspirado no acabamento integrado do Painel Impulso: a cor ocupa toda a seção,
   e a imagem é uma camada que se funde ao mesmo fundo, sem molduras/adesivos.
   Para mudar a imagem: altere apenas --rld-hero-image no PHP ou substitua o JPG
   de assets/img (cada página possui agora um arquivo de imagem próprio).
*/
.hero.hero-photo-clean {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(ellipse 70% 105% at 84% 34%,rgba(236,190,255,.36),transparent 64%),
    linear-gradient(90deg,#fff 0%,#fff 27%,#f8f4ff 41%,#dcc6fb 61%,#b583eb 80%,#7243c7 100%);
}
.hero.hero-photo-clean .hero-photo-slot {
  position:relative;
  min-width:0;
  min-height:470px;
  height:100%;
  pointer-events:none;
  background:transparent;
  border:0;
  outline:0;
  box-shadow:none;
  overflow:visible;
}
.hero.hero-photo-clean .hero-photo-slot .photo {
  position:absolute;
  inset:0 -20px 0 -15%;
  background-image:var(--rld-hero-image,none);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:var(--rld-photo-position,center top) !important;
  border:0;
  border-radius:0;
  box-shadow:none;
  opacity:1;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.12) 15%,rgba(0,0,0,.73) 37%,#000 56%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.12) 15%,rgba(0,0,0,.73) 37%,#000 56%);
}
/* A imagem alcança a borda direita em monitores amplos. */
@media(min-width:821px){
  .hero.hero-photo-clean .hero-photo-slot .photo {
    right:calc(-1 * max(20px,(100vw - var(--container)) / 2 + 20px)) !important;
  }
}
/* No celular, a foto passa gradualmente para a área de texto branca. */
@media(max-width:820px){
  .hero.hero-photo-clean {background:#fff;}
  .hero.hero-photo-clean .hero-photo-slot {
    margin:0 -20px;
    min-height:0;
    height:clamp(230px,56vw,390px);
    background:linear-gradient(180deg,#7d50c9 0%,#c5a8ef 48%,#f3e9ff 76%,#fff 100%);
  }
  .hero.hero-photo-clean .hero-photo-slot .photo {
    inset:0 !important;
    background-position:var(--rld-photo-position-mobile,center 25%) !important;
    -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 46%,rgba(0,0,0,.89) 60%,rgba(0,0,0,.35) 81%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0%,#000 46%,rgba(0,0,0,.89) 60%,rgba(0,0,0,.35) 81%,transparent 100%);
  }
  .hero.hero-photo-clean .hero-copy {
    position:relative;
    margin:0 -20px;
    padding:22px 20px 28px;
    border:0;
    border-radius:0;
    background:#fff;
    box-shadow:none;
  }
}
@media(max-width:360px){
  .hero.hero-photo-clean .hero-photo-slot {margin:0 -12px !important;}
  .hero.hero-photo-clean .hero-copy {margin:0 -12px !important;padding-left:14px !important;padding-right:14px !important;}
}
/* Compatível com fundos transparentes PNG/WEBP; substituir imagem não exige novo recorte. */

/* Imagens originais inteiras no celular: sem crop, moldura ou linha de divisao. */
@media(max-width:820px){
  .hero.hero-photo-clean{overflow:visible;background:#fff!important}
  .hero.hero-photo-clean>.container{overflow:visible}
  .hero.hero-photo-clean .hero-photo-slot{
    width:100%;min-width:0;min-height:0!important;height:auto!important;
    aspect-ratio:1495 / 1600;margin:0 -20px!important;
    background:linear-gradient(180deg,#e1d9f8 0%,#e7dff9 64%,#fff 100%)!important;
    overflow:hidden!important;box-shadow:none!important;border:0!important;border-radius:0!important;
  }
  .hero.hero-photo-clean .hero-photo-slot .photo{
    inset:0!important;background-size:contain!important;background-position:center top!important;
    background-repeat:no-repeat!important;transform:none!important;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 87%,transparent 100%)!important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 87%,transparent 100%)!important;
  }
  .hero.hero-photo-clean .hero-copy{margin-top:-1px!important;box-shadow:none!important;border:0!important}
  .hero.hero-photo-clean .hero-art .photo::after{display:none!important}
  .banner .bimg{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
  .dh-art img{object-fit:contain!important;aspect-ratio:auto!important;height:auto!important;border-radius:0!important}
}
@media(max-width:820px){
  .hero.hero-photo-clean:has(.photo[style*="hero-moedas-tiktok"]) .hero-photo-slot{aspect-ratio:875 / 1600}
}
@media(max-width:360px){
  .hero.hero-photo-clean .hero-photo-slot{margin-left:-12px!important;margin-right:-12px!important}
}
@media(max-width:820px){
  .hero.hero-photo-clean .hero-photo-slot {width:calc(100% + 40px)!important;margin-left:-20px!important;margin-right:-20px!important}
  .hero.hero-photo-clean .hero-photo-slot .photo{background-position:center top!important}
}
@media(max-width:360px){
  .hero.hero-photo-clean .hero-photo-slot {width:calc(100% + 24px)!important;margin-left:-12px!important;margin-right:-12px!important}
}

/* Telas muito estreitas: o full-bleed deve terminar exatamente no viewport (sem 2px extras). */
@media(max-width:360px){
  .hero.hero-photo-clean .hero-photo-slot{
    width:calc(100% + 20px)!important;
    margin-left:-10px!important;margin-right:-10px!important;
  }
  .hero.hero-photo-clean .hero-copy{
    margin-left:-10px!important;margin-right:-10px!important;
  }
}
/* Outras artes editoriais em mobile: mostrar imagem inteira sem cortar o assunto. */
@media(max-width:820px){
  .media-card .bgimg,.service.media .simg,.welcome .wimg,.campaign .cimg{
    background-size:contain!important;background-repeat:no-repeat!important;
    background-position:center center!important;border:0!important;box-shadow:none!important;
  }
}

/* ===== R56 — Imagens responsivas (fora da área Streamers) =====
   Regra: a imagem preenche o espaço sem faixas, borda ou fundo desfocado, sem zoom e sem ficar grande demais.
   Cada caixa usa a proporção real do arquivo. */
.hero-photo-slot{--hw:1.0701}
.hero-photo-slot:has(.photo[style*="hero-moedas-tiktok"]){--hw:1.8265}
.hero-photo-slot:has(.photo[style*="hero-contrato-kwai-live"]){--hw:1.3302}

@media(min-width:821px){
  .hero.hero-photo-clean .hero-photo-slot .photo{
    left:auto!important;width:auto!important;
    aspect-ratio:1 / var(--hw);
    background-size:100% 100%!important;background-position:center!important;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 26%);
    mask-image:linear-gradient(90deg,transparent 0%,#000 26%);
  }
  .hero.hero-photo-clean .hero-photo-slot{min-height:520px}
  .hero.hero-photo-clean:has(.photo[style*="hero-moedas-tiktok"]) .hero-photo-slot{min-height:640px}
}

/* Celular: a foto ocupa toda a largura, sem faixas nem fundo desfocado. */
@media(max-width:560px){
  .hero.hero-photo-clean .hero-photo-slot,
  .hero.hero-photo-clean:has(.photo[style*="hero-moedas-tiktok"]) .hero-photo-slot{
    aspect-ratio:auto!important;height:calc(100vw * var(--hw))!important;overflow:hidden!important;background:#fff!important;
  }
  .hero.hero-photo-clean:has(.photo[style*="hero-moedas-tiktok"]) .hero-photo-slot{height:calc(100vw * 1.08)!important}
  .hero.hero-photo-clean .hero-art.hero-photo-slot .photo{background-size:100% 100%!important;background-position:center top!important}
  .hero.hero-photo-clean .hero-art.hero-photo-slot .photo[style*="hero-moedas-tiktok"]{background-size:cover!important;background-position:center 13%!important}
}
/* Tablet: texto e foto lado a lado, como no computador. */
@media(min-width:561px) and (max-width:820px){
  .hero.hero-photo-clean{background:linear-gradient(90deg,#fff 0%,#fff 34%,#f3ecff 50%,#cdb2f6 70%,#9a6ee0 88%,#7243c7 100%)!important;overflow:hidden!important}
  .hero.hero-photo-clean>.container{display:grid!important;grid-template-columns:minmax(0,55fr) minmax(0,45fr)!important;align-items:center;gap:0}
  .hero.hero-photo-clean .hero-copy{order:1;margin:0!important;padding:26px 14px 26px 0!important;background:transparent!important;text-align:left!important}
  .hero.hero-photo-clean .hero-art.hero-photo-slot{
    order:2;position:relative;width:calc(100% + 20px)!important;margin:0 -20px 0 0!important;height:auto!important;min-height:0!important;
    aspect-ratio:1 / var(--hw)!important;background:transparent!important;overflow:hidden!important;
  }
  .hero.hero-photo-clean:has(.photo[style*="hero-moedas-tiktok"]) .hero-art.hero-photo-slot{width:min(calc(100% + 20px),300px)!important;justify-self:end}
  .hero.hero-photo-clean .hero-art.hero-photo-slot .photo{
    inset:0!important;background-size:100% 100%!important;background-position:center!important;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 20%),linear-gradient(180deg,transparent 0%,#000 7%,#000 93%,transparent 100%)!important;
    mask-image:linear-gradient(90deg,transparent 0%,#000 20%),linear-gradient(180deg,transparent 0%,#000 7%,#000 93%,transparent 100%)!important;
    -webkit-mask-composite:source-in;mask-composite:intersect;
  }
}

/* Banners com arte: proporção real em cada imagem */
.banner:has(.bimg[style*="coins-art"]){--bar:2.417;--bmin:210px}
.banner:has(.bimg[style*="diamonds-art"]){--bar:1.599;--bmin:250px}
.banner:has(.bimg[style*="background-image:url"][style*="hero-streamer"]){--bar:.934;--bmin:300px}
.banner.duo-b:has(.bimg[style*="prizes"]){--bar:1.777;--bmin:240px}
.banner.duo-b:has(.bimg[style*="train-1"]){--bar:1.621;--bmin:240px}
@media(min-width:761px){
  .banner:is(:has(.bimg[style*="coins-art"]),:has(.bimg[style*="diamonds-art"]),:has(.bimg[style*="background-image:url"][style*="hero-streamer"])){
    min-height:var(--bmin);flex-direction:column;align-items:flex-start;justify-content:center;
  }
  .banner:is(:has(.bimg[style*="coins-art"]),:has(.bimg[style*="diamonds-art"]),:has(.bimg[style*="background-image:url"][style*="hero-streamer"])) .bactions{margin-left:0}
  .banner:is(:has(.bimg[style*="coins-art"]),:has(.bimg[style*="diamonds-art"]),:has(.bimg[style*="background-image:url"][style*="hero-streamer"]))>div{max-width:50%}
  .banner :is(.bimg[style*="coins-art"],.bimg[style*="diamonds-art"],.bimg[style*="background-image:url"][style*="hero-streamer"]){
    left:auto!important;width:auto!important;height:auto;opacity:1!important;aspect-ratio:var(--bar);
    background-size:100% 100%!important;background-position:center!important;
  }
  /* Cartões lado a lado: foto inteira em cima e texto embaixo, sem texto sobre a imagem */
  .banner.duo-b:is(:has(.bimg[style*="prizes"]),:has(.bimg[style*="train-1"])){flex-direction:column;align-items:stretch;padding:0 0 22px;gap:14px;min-height:0}
  .banner.duo-b :is(.bimg[style*="prizes"],.bimg[style*="train-1"]){
    position:relative!important;inset:auto!important;width:100%!important;height:auto!important;order:-1;opacity:1!important;z-index:0;
    aspect-ratio:var(--bar);background-size:100% 100%!important;background-position:center!important;
    -webkit-mask-image:linear-gradient(180deg,#000 80%,transparent);mask-image:linear-gradient(180deg,#000 80%,transparent);
  }
  .banner.duo-b:is(:has(.bimg[style*="prizes"]),:has(.bimg[style*="train-1"]))>*:not(.bimg){padding-left:24px;padding-right:24px}
}
@media(min-width:761px) and (max-width:1100px){
  .banner:has(.bimg[style*="coins-art"]){--bmin:170px}
  .banner:has(.bimg[style*="coins-art"])>div{max-width:42%}
}
@media(max-width:760px){
  .banner :is(.bimg[style*="coins-art"],.bimg[style*="diamonds-art"],.bimg[style*="prizes"],.bimg[style*="train-1"]){
    width:100%!important;height:auto!important;aspect-ratio:var(--bar)!important;
    background-size:100% 100%!important;background-position:center!important;
  }
  .banner .bimg[style*="background-image:url"][style*="hero-streamer"]{
    width:100%!important;height:auto!important;aspect-ratio:1 / 1!important;
    background-size:cover!important;background-position:center top!important;
  }
}

/* Cartão de vídeos Kwai: foto preenche o espaço, sem faixas nem desfoque */
.vk-media{overflow:hidden}
.vk-media::after{display:none}
.vk-media img{object-fit:cover!important;object-position:center!important}
@media(min-width:1101px){
  .vk-card{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important;align-items:center}
  .vk-media{aspect-ratio:1671/941;min-height:0;margin:14px 0 14px 14px;border-radius:16px}
}
@media(max-width:1100px){
  .vk-card{grid-template-columns:1fr!important}
  .vk-media{aspect-ratio:1671/941!important;min-height:0}
}
.dh-art img{aspect-ratio:1586/992!important;width:100%;height:auto!important;object-fit:cover!important;border-radius:18px!important}

/* Moedas TikTok na página inicial: arte inteira no canto, sem desbotar nem cortar */
.recharge.tiktok{min-width:0}
.recharge.tiktok .art{
  top:0!important;right:0!important;bottom:0!important;height:100%!important;width:auto!important;max-width:60%;aspect-ratio:1/1;object-fit:cover;object-position:center;
  opacity:1!important;mix-blend-mode:normal!important;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 48%);mask-image:linear-gradient(90deg,transparent 0%,#000 48%);
}
.recharge.tiktok>div:not(.actions){padding-right:clamp(60px,22%,170px)}
.recharge.tiktok .actions .btn{max-width:min(100%,420px)}
/* Celular: moedas no canto superior, dissolvendo no cartão, sem ficar por trás do botão */
@media(max-width:640px){
  .recharge.tiktok .art{
    height:clamp(92px,31vw,124px)!important;bottom:auto!important;max-width:none;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 40%),linear-gradient(180deg,#000 60%,transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0%,#000 40%),linear-gradient(180deg,#000 60%,transparent 100%);
    -webkit-mask-composite:source-in;mask-composite:intersect;
  }
  .recharge.tiktok>div:not(.actions){padding-right:clamp(40px,20vw,84px)}
  .recharge.tiktok .actions .btn{max-width:100%}
}
/* Telas muito estreitas (menos de 340px): cartão em uma coluna, sem espremer o texto */
@media(max-width:340px){
  .recharge.tiktok{grid-template-columns:minmax(0,1fr)!important;padding:12px!important}
  .recharge.tiktok>div:not(.actions){padding-right:0}
  .recharge.tiktok .ptile{width:44px;height:44px}
  .recharge.tiktok h3{font-size:1rem}
  .recharge.tiktok p{max-width:none}
  .recharge.tiktok .actions .btn{width:100%;font-size:.8rem;padding-left:8px;padding-right:8px}
}

/* Carrossel de vídeos (Momentos): o tamanho acompanha a largura do celular */
@media(max-width:820px){
  .moments{gap:8px}
  .moment{flex-basis:clamp(84px,29vw,170px)!important;border-radius:12px}
  .moment-play{width:clamp(30px,10vw,54px);height:clamp(30px,10vw,54px)}
  .moment-play .ico{width:clamp(14px,5vw,26px);height:clamp(14px,5vw,26px)}
}

/* Tela de login: foto inteira, rosto livre e botão Entrar à vista */
@media(min-width:641px){
  .auth{grid-template-columns:1fr 1fr!important;padding-inline:0!important}
  .auth-art{background-size:100% auto!important;background-position:center top!important;background-repeat:no-repeat!important;background-color:#1b1464!important}
  .auth-art::before{background:linear-gradient(180deg,rgba(27,20,100,0) 30%,#1b1464 62%)!important}
}
@media(max-width:640px){
  .auth-art{
    justify-content:flex-end;padding:0 14px 12px!important;min-height:calc(100vw / 1.474)!important;
    background-size:100% auto!important;background-position:center top!important;background-repeat:no-repeat!important;background-color:#1b1464!important;
  }
  .auth-art::before{background:linear-gradient(180deg,rgba(27,20,100,0) 42%,#1b1464 74%)!important}
  .auth-art .badge-top{align-self:flex-start;width:auto!important;max-width:100%;margin-bottom:6px;padding:4px 10px;font-size:.7rem}
  .auth-art h2{font-size:clamp(.98rem,4.5vw,1.3rem)!important;line-height:1.15}
  .auth-art p{font-size:.76rem!important;margin-top:4px!important}
  .auth-box{padding-block:12px!important}
  .auth-card{padding:14px!important}
  .auth-card h1{font-size:1.25rem}
  .auth-card h1+p{margin:2px 0 10px!important;font-size:.82rem!important}
  .auth-card .seg{margin-bottom:8px}
  .auth-card .seg a{padding-block:7px;gap:3px;font-size:.78rem}
  .auth-card .seg .ptile{width:26px;height:26px}
  .auth-card label{margin-top:6px;margin-bottom:3px}
  .auth-card .input{min-height:40px;padding-block:8px}
}
@media(max-width:640px){.auth{padding-inline:0!important}.auth-box{padding-inline:10px!important}}
@media(max-width:360px){.auth-art p{display:none}.auth-box{padding-block:8px!important}}

/* ===== R61 — Site público em celulares muito pequenos ===== */
@media(max-width:310px){html{font-size:clamp(11.5px,5.2vw,16px)}}
@media(max-width:480px){
  .wa-float{right:clamp(6px,2.4vw,14px);bottom:clamp(6px,2.4vw,14px)}
  .wa-btn{width:clamp(38px,12.5vw,54px)!important;height:clamp(38px,12.5vw,54px)!important;font-size:clamp(1.05rem,5.4vw,1.5rem)}
  .pgm-metas,.pp-metas{min-width:0}
  .pgm-metas>div,.pp-metas>div{min-width:0}
  .pgm-metas>div,.pp-metas>div{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center;gap:4px 8px}
  .pgm-metas b,.pp-metas b{grid-column:1/-1;text-align:left!important;overflow-wrap:break-word;min-width:0;max-width:100%}
}
@media(max-width:300px){
  .pgm-metas,.pp-metas{grid-template-columns:minmax(0,1fr)!important}
  .btn{padding-inline:10px}
  .seg a{min-width:0;font-size:.72rem}
}

/* R62: simulador, aviso, faixa e passo a passo em telas estreitas */
@media (max-width:480px){
  .chip{white-space:normal;max-width:100%;height:auto;line-height:1.25}
  .alert{grid-template-columns:minmax(0,1fr);justify-items:start;gap:10px;padding:14px}
  .alert .shield{width:44px;height:44px;border-radius:12px}
  .alert .shield .ico{width:24px;height:24px}
  .alert h3,.alert p{overflow-wrap:normal;word-break:normal;min-width:0}
  .banner{padding:16px;gap:10px;min-height:0}
  .banner h3{font-size:1rem;line-height:1.25}
  .banner p{font-size:.8rem;line-height:1.4}
  .banner .bactions .btn{min-height:40px;padding:9px 12px;font-size:.8rem;width:100%}
}
@media (max-width:420px){
  .steps{grid-template-columns:minmax(0,1fr);gap:10px}
  .step{padding:12px 12px 12px 44px;text-align:left}
  .step .num{left:10px;top:12px}
  .step>i,.step>.ico{display:none!important}
  .step h3,.step p{overflow-wrap:normal;word-break:normal}
}
