/* AJUSTES SO DO CELULAR (07/nov) — tudo dentro de max-width: 900px, entao o desktop nao muda nada.
   Carrega por ultimo em todas as paginas (tools/ui_build.py). Conferido com tools/css_check/compare_mobile.cjs (desktop: 0 diferencas). */
@media (max-width: 900px) {
  /* nada pode vazar para o lado (no celular isso faz a pagina inteira encolher/zoom) */
  html, body { overflow-x: clip; }

  /* ---------- menu (hamburguer): tela cheia, fundo solido, rolavel ---------- */
  .top nav { position: fixed; top: 64px; left: 0; right: 0; bottom: auto; height: calc(100vh - 64px); height: calc(100dvh - 64px); gap: 4px; padding: 18px 20px 40px; overflow-y: auto; background: #07091a; }   /* altura explicita: o blur do cabecalho prende o fixed dentro dele (so mostrava HOME) */
  .top nav > a:not(.btn), .top nav .chars > a { display: block; width: 100%; padding: 14px 0; text-align: center; }
  header.hdr .drop { justify-content: center; flex-wrap: nowrap; gap: 8px; }
  header.hdr .drop a, header.hdr .drop a span { width: calc((100vw - 64px) / 4); max-width: 96px; }
  header.hdr .drop a span { height: auto; aspect-ratio: 3 / 4; }
  .top nav .btn.cta-main { margin-top: 14px; align-self: center; }

  /* ---------- home: topo com as 4 garotas inteiras na largura ---------- */
  .hero2 .squad { height: 55vh !important; padding: 0 !important; }
  .hero2 .gl { margin: 0 -13vw !important; }
  .hero2 .gl:first-child { margin-left: 0 !important; }
  .hero2 .gl:last-child { margin-right: 0 !important; }
  .hero2::after { top: calc(70px + 55vh - 14vh); }
  .hero2 .txt { padding: 18px 5vw 26px !important; }
  .hero2 .ctas { gap: 12px; }

  /* espacos entre secoes: o celular nao precisa dos respiros do desktop */
  section { padding: 54px 0; }
  .hero2 + section { padding-top: 34px; }
  .comando { padding: 34px 0 30px; }
  .cmd-txt { margin-top: 34px; }
  .cmd-casal { height: 82vw; margin-top: 8px; }
  .custom { padding: 40px 0 30px; }
  .cz-grid { gap: 26px; }
  #trailer { padding: 40px 0; }
  .band { padding: 56px 0 64px; }

  /* "Customize": chamadas dentro da tela (as da esquerda saiam cortadas) */
  .modelo { height: 118vw; }
  .cz .ico { width: 52px; height: 52px; }
  .cz .ico svg { width: 30px; height: 30px; }
  .cz .ct { font-size: 12px; max-width: 86px; }
  .cz.c1 { left: 0; }
  .cz.c3 { left: 0; }
  .cz.c2, .cz.c4 { right: 0; }
  .cz .ln { width: 34px !important; }

  /* ---------- features: video e texto colados, menos vazio entre as linhas ---------- */
  .frow { gap: 18px; margin-bottom: 58px; }
  .frow .ln { margin: 10px 0 12px; }

  /* ---------- galeria: as 4 garotas do painel final cabem na largura ---------- */
  .final { overflow-x: clip; }
  .painel .quatro { width: 108%; bottom: calc(100% - 40px); }
  .painel { padding-top: 64px; }

  /* ---------- paginas de personagem ---------- */
  .modos { gap: 8px; }
  .modos button { min-width: 0; padding: 7px 10px 7px 7px; gap: 8px; }
  .modos button img { width: 50px; height: 40px; }
  .modos button b { font-size: 11px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .modos button > span:not(.thumb) { min-width: 0; font-size: 11px; }
  .modos button .estado .tx { font-size: 7.5px; letter-spacing: .08em; white-space: nowrap; }
  .joinbar { gap: 10px; padding: 0 10px 0 14px; justify-content: space-between; font-size: 12px; line-height: 1.25; }
  .joinbar b { font-size: 11px; letter-spacing: .1em; }
  .joinbar .btn { flex: none; }

  /* ---------- paginas legais: menu lateral vira grade de 2 colunas ---------- */
  .lg { padding: 96px 0 60px; }
  .lg-head { margin-bottom: 26px; }
  .lg-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px; }
  .lg-menu small { grid-column: 1 / -1; margin-bottom: 6px; }
  .lg-menu a { padding: 9px 8px; font-size: 9.5px; }
  .lg-doc { font-size: 15px; line-height: 1.7; }
  .lg-doc h2 { font-size: 15px; margin: 32px 0 12px; padding-top: 18px; }

  /* ---------- rodape mais curto: NAVIGATE e LEGAL lado a lado ---------- */
  footer.ft { padding: 40px 0 28px; }
  .ft .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .ft .ft-brand, .ft .ft-get { grid-column: 1 / -1; }
  .ft .ft-col { gap: 10px; }
  .ft .ft-col a { font-size: 10px; letter-spacing: .06em; }
  .ft .ft-mid { margin: 24px 0 18px; padding: 18px 0; }
  .ft .selos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .ft .selo { padding: 9px 10px; gap: 8px; font-size: 8.5px; letter-spacing: .08em; }
  .ft .selo .ico-ui { width: 16px; height: 16px; flex: none; }
  .ft .ft-co { text-align: left; }
}
@media (max-width: 900px) {
  .hero2 .gl figcaption { font-size: 30px; }
}

/* ---------- TABLET DEITADO / TELA BAIXA (mais largo que 900 px, mas ate 1280 px ou ate 820 px de altura) ----------
   Ex.: tablet Android 8" deitado (~1020x645). O layout de desktop (1920x~950) NAO entra aqui. */
@media (min-width: 901px) and (max-width: 1280px), (min-width: 901px) and (max-height: 820px) {
  /* cabecalho: JOIN NOW nao quebra em 2 linhas */
  header.hdr nav { gap: 22px; }
  header.hdr nav > a:not(.btn), header.hdr .chars > a { letter-spacing: .14em; }
  header.hdr .btn { white-space: nowrap; }
  header.hdr .girlsel { gap: 7px; }
  header.hdr .girlsel a { width: 38px; height: 38px; }
  /* pagina de personagem: painel cabe entre o cabecalho e a barra de baixo; botoes de cena vao para a direita */
  .cs .hud { top: 84px; translate: none; width: min(400px, 37vw); padding: 18px 22px 20px; }
  .cs .hud .nome { font-size: clamp(48px, 9.5vh, 90px); }
  .cs .hud .forma { margin-bottom: 8px; }
  .cs .hud .fala { font-size: 17px; margin-bottom: 6px; }
  .cs .hud .bio { font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
  .cs .stats { gap: 6px; margin-bottom: 12px; }
  .cs .stats .seg i { height: 8px; }
  .cs .fav div { margin: 6px 0 12px; }
  .cs .fav i { width: 34px; height: 34px; }
  .cs .fav i img { width: 20px; }
  .cs .modos { left: auto; right: 2.4vw; bottom: 72px; translate: none; gap: 12px; }
  .cs .modos button { padding: 8px 18px 8px 8px; gap: 12px; }
  .cs .modos button img { width: 92px; height: 52px; }
  .cs .modos button b { font-size: 14px; letter-spacing: .1em; }
}

/* ---------- celular, pagina de personagem: cena INTEIRA (16:9) no topo, botoes de cena logo abaixo, painel depois ---------- */
@media (max-width: 900px) {
  .cs .stage { position: relative; inset: auto; margin-top: 64px; width: 100%; aspect-ratio: 16 / 9; }
  .cs .stage .modo { animation: none; }
  .cs .stage .modo, .cs .stage .modo video { background-position: 50% 50%; object-position: 50% 50%; }
  .cs .stage .vinheta { background: linear-gradient(0deg, rgba(5, 3, 10, .55) 0%, transparent 22%); }
  .cs .tela { min-height: 0; padding: 0 4vw 84px; justify-content: flex-start; gap: 18px; }
  .cs .modos { order: -1; margin-top: 34px; }
  .cs .hud { margin-top: 4px; }
}

/* ---------- tela MUITO baixa (tablet deitado com barras do navegador, ~935x556): painel ainda mais enxuto ---------- */
@media (min-width: 901px) and (max-height: 680px) {
  .cs .hud { top: 76px; padding: 14px 20px 16px; }
  .cs .hud .kicker { font-size: 10px; }
  .cs .hud .nome { font-size: clamp(40px, 8.6vh, 64px); margin: 2px 0; }
  .cs .hud .forma { font-size: 11px; padding: 4px 10px; margin-bottom: 6px; }
  .cs .hud .fala { font-size: 15px; margin-bottom: 4px; }
  .cs .hud .bio { font-size: 13px; line-height: 1.35; margin-bottom: 10px; }
  .cs .stats { gap: 4px; margin-bottom: 12px; }
  .cs .stats .st { font-size: 9px; }
  .cs .stats .seg i { height: 7px; }
  .cs .fav { display: none; }
  .cs .hud .play { padding-top: 11px; padding-bottom: 11px; }
}
@media (min-width: 901px) and (max-height: 520px) {
  .cs .stats { display: none; }
}

/* ---------- controle remoto na pagina de personagem: tablet deitado / tela baixa e celular ---------- */
@media (min-width: 901px) and (max-width: 1280px), (min-width: 901px) and (max-height: 820px) {
  .cs .cmd-gui.rc-char { top: 86px; translate: none; scale: .78; transform-origin: top right; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .cs .cmd-gui.rc-char { top: 82px; scale: .62; }
  .cs .cmd-gui.rc-char .dpad, .cs .cmd-gui.rc-char .cams { display: none; }
}
@media (max-width: 900px) {
  .cs .cmd-gui.rc-char { display: grid; position: relative; right: auto; top: auto; translate: none; margin: 4px auto 0; }
}
