/* Magic wall EUA 2026 (setup.news): fontes e palco. O CSS dos componentes sai em app.css
   (importado pelos .tsx e empacotado pelo esbuild). */
/* Hanken Grotesk (SIL OFL 1.1, a fonte da setup.news), servida pelo próprio site: copiada de @fontsource no build. */
@font-face { font-family: "SN Titulo"; src: url("fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "SN Forte";  src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "SN Texto";  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "SN Numero"; src: url("fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "SN Titulo Italico"; src: url("fonts/hanken-grotesk-latin-800-italic.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "SN Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-display: block; }


html, body {
  margin: 0;
  background: #fff;
  /* toque no ar: sem realce azul do toque, sem menu de toque longo, sem arrastar imagem */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
button { -webkit-tap-highlight-color: transparent; outline: none; }
button:focus, button:focus-visible { outline: none; }

/* Layouts (mesmas condições de src/screens/layout.ts):
   - DESKTOP (≥ 1200 px em paisagem): grade fluida que ocupa a janela (src/screens/tela-fluida.css).
   - PALCO (?palco ou ?tv na URL → <html class="palco">, só em DESKTOP): o palco fixo 1920×1080 escalado
     para caber (letterbox 16:9), com as regras de quiosque da TV/touch do estúdio.
   - TABLET (≥ 760 × 600 px fora do DESKTOP, ou tela grande em pé): "cockpit" numa tela só (tela-tablet.css).
   - CELULAR (o resto): página em uma coluna com rolagem (tela-mobile.css). */
@media (min-width: 1200px) and (orientation: landscape) {
  .palco, .palco body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
  }
  .palco .stage {
    position: relative;
    width: 1920px;
    height: 1080px;
    margin: 0 auto;
    overflow: hidden;
    transform-origin: top left;
    background: #fff;
  }
  /* desktop fluido: a tela inteira, sem escala; rolagem só se a janela for baixa demais */
  html:not(.palco), html:not(.palco) body { overflow-x: hidden; }
  html:not(.palco) body { background: #F5F5F7; }
  html:not(.palco) .stage { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 600px; }
}
@media (min-width: 1200px) and (orientation: landscape) and (min-aspect-ratio: 16/9) {
  .palco .stage { transform: translateX(calc(50vw - 960px * (100vh / 1080px))) scale(calc(100vh / 1080px)); }
}
@media (min-width: 1200px) and (orientation: landscape) and (max-aspect-ratio: 16/9) {
  .palco .stage { transform: translateY(calc(50vh - 540px * (100vw / 1920px))) scale(calc(100vw / 1920px)); }
}

/* ── celular / tablet: sem palco (layout em src/screens/tela-mobile.css e tela-tablet.css) ── */
@media not all and (min-width: 1200px) and (orientation: landscape) {
  html, body { overflow-x: hidden; touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { background: #F5F5F7; }
  .stage { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; }
}
/* tablet: cockpit numa tela só, sem rolagem da página (cada zona rola por dentro) */
@media (min-width: 760px) and (max-width: 1199px) and (min-height: 600px), (min-width: 1200px) and (orientation: portrait) {
  html, body { overflow: hidden; overscroll-behavior: none; }
  .stage { height: 100vh; height: 100dvh; min-height: 0; }
}

/* conteúdo estático para buscadores e para quem está sem JS (o React substitui no carregamento) */
.seo-estatico { max-width: 720px; margin: 0 auto; padding: 48px 20px; font: 500 17px/1.5 system-ui, sans-serif; color: #111; }
.seo-estatico h1 { font-size: 32px; line-height: 1.15; margin: 0 0 16px; }
.seo-estatico h2 { font-size: 20px; margin: 28px 0 8px; }

/* com JS o app substitui o texto: não deixa o texto de buscadores aparecer atrás durante o carregamento */
.js .seo-estatico { display: none; }
