/* Tela vertical 1080×1920 do TelaBairro. Visual: direção A "Luminoso" (guia do P3, videos_IA/out/midia-indoor-design).
   O letreiro aceso da fachada à noite: azul-petróleo com luz de lâmpada; o preço aceso é a única peça que grita.
   ÁREA SEGURA (title safe de TV, 5% de cada lado): todo texto, preço, relógio, logo e fita ficam em x 54–1026, y 96–1824,
   para qualquer TV mostrar inteiro, sem calibrar. Fundos e degradês sangram até a borda.
   Regiões (guia 2.1 do P3, direção A): cabeçalho 0–200 (0–96 só fundo) · anúncio 200–1420 (1080×1220, a foto de fundo
   sangra até a borda; conteúdo a 64 px das laterais) · faixa 1420–1660 · barra 1660–1920 (fita 110, rodapé 54, 96 só fundo).
   Margem do conteúdo: 64 px (área segura 54 + 10 de folga).
   Fontes servidas localmente (a TV pode ficar sem internet), licença SIL OFL 1.1. */
@font-face { font-family: "Big Shoulders Display"; src: url("fontes/big-shoulders-display.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Instrument Sans"; src: url("fontes/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: block; }

:root {
  --petroleo: #0B2730; --petroleo-fundo: #061A21; --petroleo-claro: #12384A;
  --lampada: #FFC65C; --lampada-clara: #FFE3A3; --carne: #E0443A;
  --texto: #F3EFE6; --suave: #9FB6B8; --apagado: #6A8689; --linha: rgba(159, 182, 184, .18);
  --aceso: 0 0 2px #FFF4D6, 0 0 18px rgba(255, 190, 80, .55), 0 0 46px rgba(255, 150, 40, .3);
  --luz-do-teto: radial-gradient(900px 620px at 50% -12%, rgba(255, 198, 92, .2), transparent 70%);
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --f-letreiro: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-texto: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; cursor: none; -webkit-user-select: none; user-select: none; }
body { font-family: var(--f-texto); color: var(--texto); -webkit-font-smoothing: antialiased; }
.aceso { color: var(--lampada-clara); text-shadow: var(--aceso); }

#palco { position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; background: var(--petroleo-fundo); overflow: hidden; transform-origin: 50% 50%; }

/* ---------- cabeçalho 1080×120 ---------- */
#cab { position: absolute; left: 0; top: 0; width: 1080px; height: 200px; z-index: 5; display: flex; align-items: center; gap: 22px; padding: 96px 64px 0;
  background: var(--petroleo-fundo); box-shadow: 0 1px 0 var(--linha); }
#logo { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center;
  font: 900 38px/1 var(--f-letreiro); color: var(--petroleo-fundo); background: var(--lampada); }
#logo img { width: 100%; height: 100%; object-fit: cover; }
#nome { min-width: 0; }
#nome b { display: block; font: 700 34px/1.05 var(--f-texto); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nome small { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 22px; color: var(--suave); font-weight: 500; }
#nome small i { width: 10px; height: 10px; border-radius: 50%; background: #5EE0A0; }
#hora { margin-left: auto; text-align: right; flex-shrink: 0; }
#hora b { display: block; font: 800 72px/.9 var(--f-letreiro); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
#hora small { display: block; margin-top: 4px; font-size: 21px; color: var(--suave); font-weight: 500; }

/* ---------- anúncio 1080×1350 (4:5) ---------- */
#palco { background: var(--luz-do-teto), linear-gradient(180deg, var(--petroleo), var(--petroleo-fundo)); }
#anuncio { position: absolute; left: 0; top: 200px; width: 1080px; height: 1220px; overflow: hidden;
  background: var(--luz-do-teto), linear-gradient(180deg, var(--petroleo), var(--petroleo-fundo)); }
#anuncio::after { content: ""; position: absolute; inset: 0; background: var(--grao); opacity: .06; mix-blend-mode: overlay; pointer-events: none; z-index: 3; }
body.sem-grao #anuncio::after { display: none; }
.camada { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.camada.on { opacity: 1; }
.camada > img, .camada > video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
/* anúncio do anunciante (4:5) preenche 1080×1220 com corte no centro; o texto da arte deve ficar longe das bordas */
#pontos { position: absolute; left: 54px; top: 1382px; width: 972px; display: flex; justify-content: center; gap: 10px; z-index: 4; }
#pontos i { width: 12px; height: 12px; border-radius: 6px; background: rgba(243, 239, 230, .3); transition: width .4s; }
#pontos i.on { width: 44px; background: var(--lampada); box-shadow: 0 0 14px rgba(255, 190, 80, .7); }

/* ---------- preço aceso (a peça que grita) ---------- */
.preco { flex: 0 0 auto; display: flex; align-items: flex-start; font-family: var(--f-letreiro); line-height: .8; color: var(--lampada-clara); text-shadow: var(--aceso); white-space: nowrap; }
.preco .rs { font-size: 34px; font-weight: 800; margin: 8px 6px 0 0; }
.preco .int { font-size: 168px; font-weight: 900; letter-spacing: -.01em; }
.preco .fim { display: grid; gap: 10px; margin-left: 4px; }
.preco .cent { font-size: 72px; font-weight: 900; }
.preco .un { font: 600 24px/1 var(--f-texto); color: var(--suave); text-shadow: none; }
.tag { width: fit-content; padding: 7px 14px 8px; border-radius: 8px; background: var(--carne); color: #FFF4EE; font: 700 22px/1 var(--f-texto); }

/* ---------- faixa da oferta 1080×250 ---------- */
#faixa { position: absolute; left: 0; top: 1420px; width: 1080px; height: 240px; z-index: 4; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 0 64px;
  background: radial-gradient(520px 280px at 85% 50%, rgba(255, 170, 60, .18), transparent 70%), linear-gradient(100deg, #0E3240 0%, #0A2530 60%, #071C24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, .22); }
#faixa:not(.com-foto) { padding-left: 64px; }

#faixa .foto { flex: 0 0 auto; width: 280px; height: 196px; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .85); }
#faixa .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; filter: saturate(1.08) contrast(1.05); }
#faixa .txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 10px; }
#faixa .nome { font: 800 62px/.92 var(--f-letreiro); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#faixa .sub { font-size: 24px; font-weight: 500; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#faixa.neutra { background: linear-gradient(100deg, #0E3240 0%, #0A2530 60%, #071C24 100%); }

/* ---------- barra 1080×200 ---------- */
#barra { position: absolute; left: 0; top: 1660px; width: 1080px; height: 260px; z-index: 5; display: flex; flex-direction: column; padding-bottom: 96px; background: var(--petroleo-fundo); box-shadow: inset 0 1px 0 var(--linha); }
#fita { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center;
  margin: 0 54px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 92%, transparent); }
#fita .rolo { display: flex; align-items: center; gap: 46px; white-space: nowrap; padding-left: 10px; animation: rola 40s linear infinite; will-change: transform; }
#fita .rolo.parado { animation: none; }
@keyframes rola { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.item { display: inline-flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 600; }
.item .rot { font: 800 40px/1 var(--f-letreiro); margin-right: 4px; color: var(--lampada); }
.item .dim { color: var(--suave); font-weight: 500; }
.mega { color: #6BE3A4 !important; } .loto { color: #C9A2FF !important; } .quina { color: #7EC3FF !important; } .mania { color: #FFB27A !important; } .federal { color: #9FD3FF !important; }
.bola { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--petroleo-fundo); font: 800 30px/1 var(--f-letreiro); font-style: normal;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #F1EEE6 40%, #CFD6D2 80%, #A9B5B3 100%); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6); }
#rodape { flex: 0 0 54px; height: 54px; display: flex; align-items: center; gap: 20px; padding: 0 64px; font-size: 21px; font-weight: 500; color: var(--apagado); background: rgba(0, 0, 0, .28); }
#rodape b { color: var(--suave); font-weight: 600; }
#rodape .st { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#rodape .st i { width: 10px; height: 10px; border-radius: 50%; background: var(--carne); box-shadow: 0 0 10px var(--carne); }
.sol { position: relative; width: 44px; height: 44px; flex: 0 0 auto; display: inline-block; }
.sol::before { content: ""; position: absolute; left: 4px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF0C2, #FFC65C 60%, #FF9A3D); box-shadow: 0 0 18px rgba(255, 190, 80, .8); }
.sol::after { content: ""; position: absolute; left: 12px; top: 20px; width: 32px; height: 18px; border-radius: 12px; background: linear-gradient(180deg, #FFFFFF, #D7E0E0); box-shadow: -8px 2px 0 -2px #EEF3F2; }

/* tela cheia 9:16: o anúncio ocupa tudo e a barra fica por cima, semitransparente */
body.cheia #anuncio { top: 0; height: 1920px; z-index: 1; }   /* vídeo 9:16 de borda a borda; a barra fica por cima */
body.cheia #cab, body.cheia #faixa, body.cheia #pontos { opacity: 0; transition: opacity .4s; }
body.cheia #barra { background: rgba(6, 26, 33, .74); }

/* ---------- quadros gerados pelo player ---------- */
.q { position: absolute; inset: 0; }

/* casa: loterias e clima */
.casa .tit { padding: 46px 64px 20px; }
.casa h2 { font: 900 100px/.85 var(--f-letreiro); }
.casa .tit p { margin-top: 14px; font-size: 24px; color: var(--suave); font-weight: 500; }
.casa .jogo { padding: 18px 64px 22px; border-top: 1px solid var(--linha); }
.casa .nm { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.casa .nm b { font: 800 56px/1 var(--f-letreiro); color: var(--lampada); }
.casa .nm span { font-size: 24px; color: var(--apagado); font-weight: 500; }
.casa .bolas { display: flex; flex-wrap: wrap; gap: 12px; }
.casa .bolas .bola { width: 88px; height: 88px; font-size: 48px; }
.casa .clima { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 0 64px 34px; }
.casa .clima.so { height: 100%; padding-bottom: 120px; }
.casa .clima img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: 0; }
.casa .clima::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--petroleo-fundo) 0%, rgba(6, 26, 33, .55) 35%, rgba(6, 26, 33, .25) 100%), linear-gradient(90deg, rgba(6, 26, 33, .7), transparent 70%); }
.casa .clima > *:not(img) { position: relative; z-index: 2; }
.casa .clima .sol { transform: scale(2.6); margin: 0 34px 0 34px; }
.casa .clima b { font: 900 190px/.8 var(--f-letreiro); text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.casa .clima .desc { font: 700 38px/1.1 var(--f-texto); text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.casa .clima .desc small { display: block; font-size: 26px; font-weight: 500; margin-top: 8px; color: #E4EEF0; }

/* anuncie aqui (quadro 3 da direção A) */
.anuncie .fundo { position: absolute; left: 0; top: 0; width: 100%; height: 760px; object-fit: cover; object-position: 38% 28%; }
.anuncie .veu { position: absolute; left: 0; right: 0; top: 0; height: 780px; background: linear-gradient(180deg, rgba(6, 26, 33, .3) 0%, rgba(6, 26, 33, 0) 25%, rgba(11, 39, 48, .7) 62%, var(--petroleo) 100%); }
.anuncie .disp { position: absolute; right: 56px; top: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: rgba(6, 26, 33, .72); font-size: 24px; font-weight: 600; }
.anuncie .disp i { width: 12px; height: 12px; border-radius: 50%; background: var(--lampada); box-shadow: 0 0 12px var(--lampada); }
.an-txt { position: absolute; left: 64px; right: 64px; bottom: 76px; display: grid; gap: 30px; }
.an-txt h1 { font: 900 138px/.9 var(--f-letreiro); max-width: 952px; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* título do painel: até 3 linhas */
.an-txt > p { font-size: 36px; line-height: 1.3; font-weight: 500; color: #D5E1E1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.passos { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 4px; }
.passos::before { content: ""; position: absolute; left: 30px; right: 30%; top: 38px; height: 2px; background: linear-gradient(90deg, var(--lampada), rgba(255, 198, 92, .15)); }
.passos div { position: relative; }
.passos b { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--petroleo); border: 2px solid var(--lampada); font: 900 44px/1 var(--f-letreiro); color: var(--lampada-clara); margin-bottom: 14px; }
.passos span { display: block; font-size: 30px; font-weight: 700; line-height: 1.15; }
.passos small { display: block; font-size: 24px; color: var(--suave); font-weight: 500; margin-top: 4px; }
.contato { padding-top: 26px; border-top: 1px solid var(--linha); }
.contato p { font-size: 30px; font-weight: 600; color: var(--suave); }
.contato b { display: block; margin-top: 6px; font: 900 132px/.82 var(--f-letreiro); white-space: nowrap; }

/* oferta do dia em tela cheia (espaço do dono sem mídia) */
.oferta { display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 56px 64px 90px; }
.oferta .foto { width: 952px; height: 540px; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); }
.oferta .foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.08) contrast(1.05); }
.oferta .txt { display: grid; gap: 16px; }
.oferta h1 { font: 900 150px/.86 var(--f-letreiro); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oferta.com-foto h1 { font-size: 112px; }
.oferta .txt p { font-size: 32px; color: var(--suave); font-weight: 500; }
.preco.grande .rs { font-size: 54px; margin-top: 16px; }
.preco.grande .int { font-size: 300px; }
.preco.grande .cent { font-size: 124px; }
.preco.grande .un { font-size: 34px; }
.oferta.com-foto .preco.grande .int { font-size: 220px; }
.oferta.com-foto .preco.grande .cent { font-size: 96px; }
.oferta .lj { font-size: 28px; color: var(--apagado); font-weight: 600; }

/* boas-vindas e primeira vez */
.boas { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 36px; padding: 80px; background: var(--luz-do-teto); }
.boas .lg { width: 200px; height: 200px; border-radius: 44px; background: var(--lampada); color: var(--petroleo-fundo); display: grid; place-items: center; font: 900 96px/1 var(--f-letreiro); overflow: hidden; box-shadow: 0 0 60px rgba(255, 190, 80, .35); }
.boas .lg img { width: 100%; height: 100%; object-fit: cover; }
.boas h1 { font: 900 120px/.9 var(--f-letreiro); }
.boas p, .boas .st { font-size: 36px; color: var(--suave); font-weight: 500; line-height: 1.3; }

/* ---------- tela inteira: pareamento e primeira vez ---------- */
#inteira { position: absolute; inset: 0; display: none; z-index: 10; background: var(--luz-do-teto), linear-gradient(180deg, var(--petroleo), var(--petroleo-fundo)); }
body.inteira #inteira { display: block; }
.par { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 40px; padding: 80px; }
.par .tt { font: 900 120px/.9 var(--f-letreiro); }
.par .st { font-size: 34px; color: var(--suave); font-weight: 500; line-height: 1.3; max-width: 860px; }
.par .digitos { display: flex; gap: 18px; }
.par .digitos span { width: 112px; height: 144px; border-radius: 18px; background: rgba(6, 26, 33, .6); border: 2px solid var(--linha); display: grid; place-items: center;
  font: 900 96px/1 var(--f-letreiro); color: var(--lampada-clara); text-shadow: var(--aceso); }
.par .teclado { display: grid; grid-template-columns: repeat(3, 180px); gap: 18px; }
.par .teclado button { height: 128px; border-radius: 20px; border: 2px solid var(--linha); background: rgba(6, 26, 33, .6); color: var(--texto); font: 800 62px/1 var(--f-letreiro); }
.par .teclado button:focus, .par .teclado button.foco { outline: none; border-color: var(--lampada); color: var(--lampada-clara); box-shadow: 0 0 24px rgba(255, 190, 80, .35); }
.par .msg { font-size: 32px; font-weight: 600; color: var(--lampada); min-height: 44px; }

/* fora do horário, sem o app (plano C) */
body.apagada #palco { visibility: hidden; }
