/* lancador.css -- tela de launcher antes do jogo (25/10/2026, Nathan: "tipo um launcher" no app/celular).
   O jogo carrega por baixo como sempre (#carregando); esta tela fica por cima mostrando banners, novidades, status do
   servidor e o progresso real do download. "Jogar" so libera quando o jogo terminou de abrir.
   Identidade Atlanta Network: roxo profundo, degrade laranja -> rosa, Fraunces + Manrope. */
#lanc {
  --l-bg: #0a0612; --l-surface: rgba(26, 13, 34, .72); --l-border: rgba(255, 255, 255, .09);
  --l-text: #fef3ed; --l-muted: #c2a9b5; --l-faded: #9a8290; --l-orange: #ff7a1a; --l-pink: #ff1493; --l-nirvana: #7dd3e8;
  --l-grad: linear-gradient(90deg, var(--l-orange), var(--l-pink));
  --l-gut: max(18px, env(safe-area-inset-left)); --l-gut-r: max(18px, env(safe-area-inset-right));
  position: fixed; inset: 0; z-index: 50; overflow: hidden; color: var(--l-text); background: var(--l-bg);
  font: 14px/1.45 Manrope, system-ui, sans-serif; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transition: opacity .55s ease, transform .55s ease;
}
#lanc.saindo { opacity: 0; transform: scale(1.04); pointer-events: none; }
#lanc *, #lanc *::before, #lanc *::after { box-sizing: border-box; }
#lanc a { color: inherit; text-decoration: none; }

/* fundo: banners em tela cheia trocando com fade lento + leve aproximacao; degrade escuro para o texto ler */
.l-fundo { position: absolute; inset: 0; }
.l-fundo .l-img { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 9s linear; }
/* arte do PC (1600x900) tem logo + titulo desenhados a esquerda (x 85..615, y 90..560): ancora na esquerda para o corte do
   cover cair so na direita (tablet 4:3/16:10) ou em cima/embaixo (celular deitado 19:9) -- o titulo nunca sai da tela.
   16/11: com 18% o tablet deitado cortava "EXPLORE ATLANTA" pela esquerda. */
.l-fundo .l-img { background-position: 0% 30%; transform-origin: 0% 35%; }
/* 20/11: tela baixa e larga (iPhone deitado com a barra do Safari, ~2,5:1) -- com 30% o corte de cima comia o logo; ancorada
   no topo, logo + titulo (y 90..560 de 900) cabem inteiros ate ~2,8:1 */
@media (min-aspect-ratio: 2/1) { .l-fundo .l-img { background-position: 0% 0%; transform-origin: 0% 0%; } }
.l-fundo .l-img.on { opacity: 1; transform: scale(1); }
.l-fundo .l-img.raposa { background: radial-gradient(55% 60% at 70% 45%, rgba(255, 20, 147, .22), transparent 70%),
  radial-gradient(40% 45% at 25% 80%, rgba(255, 122, 26, .14), transparent 70%), linear-gradient(180deg, #120919, #0a0612); }
.l-fundo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 6, 18, .94) 0%, rgba(10, 6, 18, .72) 34%, rgba(10, 6, 18, .1) 62%, rgba(10, 6, 18, .35) 100%),
    linear-gradient(0deg, rgba(10, 6, 18, .96) 0%, rgba(10, 6, 18, .2) 38%, transparent 60%, rgba(10, 6, 18, .55) 100%); }
/* banner do launcher do PC (titulo desenhado na propria arte, a esquerda): degrade so embaixo, o texto da arte aparece */
#lanc.so-arte .l-fundo::after { background: linear-gradient(0deg, rgba(10, 6, 18, .92) 0%, rgba(10, 6, 18, .25) 30%, transparent 50%, rgba(10, 6, 18, .45) 100%); }
#lanc .l-fundo::after { transition: background .8s; }
#lanc .l-marca { transition: opacity .6s; } #lanc.so-arte .l-marca { opacity: 0; }   /* a arte ja traz o logo no mesmo canto */
/* granulado sutil: tira o ar de "foto chapada" */
.l-fundo::before { content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.l-raposa { position: absolute; right: 9%; top: 50%; width: min(300px, 34vw, 52vh); transform: translateY(-58%); z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(255, 20, 147, .35)); animation: l-flutua 3.6s ease-in-out infinite; pointer-events: none; }
#lanc.com-banner .l-raposa { display: none; }
@keyframes l-flutua { 0%, 100% { translate: 0 0 } 50% { translate: 0 -12px } }

/* camadas */
.l-topo, .l-esq, .l-dir, .l-rodape { position: absolute; z-index: 2; }
.l-topo { top: max(14px, env(safe-area-inset-top)); left: var(--l-gut); right: var(--l-gut-r); display: flex; align-items: center; gap: 14px; }
.l-marca { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.l-marca img { width: 38px; height: 38px; }
.l-marca b { display: block; font: 600 24px/1 Fraunces, Georgia, serif; background: var(--l-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-marca small { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--l-nirvana); }

.l-status { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 99px; background: var(--l-surface);
  border: 1px solid var(--l-border); font-size: 12px; font-weight: 700; color: var(--l-muted); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.l-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--l-faded); }
.l-status.ok i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); animation: l-pulsa 2s ease-in-out infinite; }
.l-status.off i { background: #f87171; }
.l-status b { color: var(--l-text); font-weight: 800; }
@keyframes l-pulsa { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0) } }

.l-atalhos { display: flex; gap: 8px; }
.l-atalho { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--l-surface); border: 1px solid var(--l-border);
  color: var(--l-muted); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .15s, border-color .15s, transform .1s; }
.l-atalho:active { transform: scale(.92); }
.l-atalho:hover { color: var(--l-text); border-color: rgba(255, 122, 26, .5); }
.l-atalho svg { width: 18px; height: 18px; }

/* esquerda: banner atual (titulo grande) + novidades */
.l-esq { left: var(--l-gut); bottom: max(46px, calc(env(safe-area-inset-bottom) + 40px)); width: min(46vw, 520px); display: flex; flex-direction: column; gap: 16px; }
.l-destaque { min-height: 1px; }
.l-destaque .l-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 6px; font-size: 10px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; background: var(--l-grad); color: #fff; }
.l-destaque h2 { margin: 10px 0 6px; font: 600 clamp(24px, 4.2vw, 44px)/1.04 Fraunces, Georgia, serif; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.l-destaque p { margin: 0; color: var(--l-muted); font-size: 14px; max-width: 44ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-destaque.troca h2, .l-destaque.troca p, .l-destaque.troca .l-tag { animation: l-sobe .6s cubic-bezier(.2, .8, .2, 1) both; }
.l-destaque.troca p { animation-delay: .06s; }
@keyframes l-sobe { from { opacity: 0; transform: translateY(12px) } }
.l-pontos { display: flex; gap: 6px; margin-top: 12px; }
.l-pontos button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .22); cursor: pointer; transition: width .3s, background .3s; }
.l-pontos button.on { width: 40px; background: var(--l-grad); }

.l-noticias { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--l-surface); border: 1px solid var(--l-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.l-noticias[hidden] { display: none; }
.l-noticias h3 { margin: 0; padding: 10px 14px 6px; font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--l-faded); }
.l-noticia { display: flex; align-items: baseline; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--l-border); transition: background .15s; }
.l-noticia:active, .l-noticia:hover { background: rgba(255, 255, 255, .04); }
.l-noticia time { flex: none; width: 44px; font-size: 11px; font-weight: 800; color: var(--l-orange); font-variant-numeric: tabular-nums; }
.l-noticia span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* direita: progresso + Jogar */
.l-dir { right: var(--l-gut-r); bottom: max(46px, calc(env(safe-area-inset-bottom) + 40px)); width: min(34vw, 340px); display: flex; flex-direction: column; gap: 12px; }
.l-prog-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--l-muted); }
.l-prog-t b { color: var(--l-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.l-prog-t span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-barra { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.l-barra::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--l-grad);
  box-shadow: 0 0 14px rgba(255, 20, 147, .7); transition: width .35s ease; }
.l-barra.ind::after { width: 34%; animation: l-vai 1.3s ease-in-out infinite; }
.l-barra.cheia::after { width: 100%; }
@keyframes l-vai { from { transform: translateX(-100%) } to { transform: translateX(300%) } }

.l-jogar { position: relative; height: 62px; border: 0; border-radius: 16px; cursor: pointer; overflow: hidden; color: #fff; background: var(--l-grad);
  font: 600 25px/1 Fraunces, Georgia, serif; letter-spacing: .04em; box-shadow: 0 12px 34px rgba(255, 20, 147, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, filter .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.l-jogar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); }
.l-jogar.pronto::before { animation: l-brilho 2.8s ease-in-out 0.4s infinite; }
@keyframes l-brilho { 0%, 55% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }
.l-jogar:active { transform: scale(.97); }
.l-jogar:disabled { cursor: default; filter: saturate(.25) brightness(.62); box-shadow: none; }
.l-jogar small { display: block; margin-top: 4px; font: 700 10px/1 Manrope, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

.l-aviso { display: none; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.35; background: rgba(125, 211, 232, .12);
  border: 1px solid rgba(125, 211, 232, .35); color: #d6f3fa; }
.l-aviso.on { display: block; }
.l-aviso a { font-weight: 800; color: #fff; text-decoration: underline; }

/* contagem do evento (Season 1): cartao acima da barra */
.l-evento { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 122, 26, .16), rgba(255, 20, 147, .14)); border: 1px solid rgba(255, 122, 26, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.l-evento[hidden] { display: none; }
.l-evento > span:first-child { min-width: 0; font-size: 11px; color: var(--l-muted); line-height: 1.3; }
.l-evento > span:first-child b { display: block; font: 600 17px/1.1 Fraunces, Georgia, serif; color: var(--l-text); }
.l-cont { display: flex; gap: 6px; flex: none; }
.l-cont i { font-style: normal; min-width: 40px; padding: 4px 6px; border-radius: 9px; text-align: center; background: rgba(10, 6, 18, .55);
  font: 800 17px/1 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.l-cont small { display: block; margin-top: 3px; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--l-faded); }
/* enquanto o launcher esta na frente, o aviso de "vire o aparelho" do jogo nao cobre ele */
body.lanc-on .pwt-vire { display: none !important; }

.l-rodape { left: var(--l-gut); right: var(--l-gut-r); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between;
  align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--l-faded); }
/* logo da Atlanta Network no lugar do texto (o texto cortava em "lanta network" em tela estreita) */
.l-rede { display: block; width: 28px; height: 28px; opacity: .85; }

/* entrada: tudo sobe em sequencia */
#lanc .l-topo, #lanc .l-esq, #lanc .l-dir, #lanc .l-rodape { animation: l-entra .8s cubic-bezier(.2, .8, .2, 1) both; }
#lanc .l-esq { animation-delay: .12s; } #lanc .l-dir { animation-delay: .22s; } #lanc .l-rodape { animation-delay: .32s; }
@keyframes l-entra { from { opacity: 0; transform: translateY(16px) } }

/* celular deitado / app (altura pequena) */
@media (max-height: 520px) {
  #lanc { font-size: 12px; }
  .l-topo { top: max(8px, env(safe-area-inset-top)); gap: 8px; }
  .l-marca img { width: 28px; height: 28px; } .l-marca b { font-size: 18px; } .l-marca small { font-size: 8px; }
  .l-status { height: 26px; padding: 0 10px; font-size: 11px; }
  .l-atalho { width: 30px; height: 30px; border-radius: 9px; } .l-atalho svg { width: 15px; height: 15px; }
  .l-esq, .l-dir { bottom: max(28px, calc(env(safe-area-inset-bottom) + 24px)); }
  .l-esq { gap: 10px; }
  .l-destaque h2 { margin: 6px 0 4px; font-size: clamp(20px, 3.6vw, 30px); }
  .l-destaque p { font-size: 12px; -webkit-line-clamp: 1; }
  .l-pontos { margin-top: 8px; }
  .l-noticias h3 { padding: 7px 12px 4px; }
  .l-noticia { padding: 5px 12px; } .l-noticia:nth-of-type(n+3) { display: none; }
  .l-evento { padding: 7px 10px; } .l-evento > span:first-child b { font-size: 14px; } .l-cont i { min-width: 32px; font-size: 14px; padding: 3px 5px; }
  .l-jogar { height: 50px; font-size: 21px; border-radius: 13px; }
  .l-rodape { bottom: max(6px, env(safe-area-inset-bottom)); font-size: 9px; }
  .l-rede { width: 20px; height: 20px; }
}
@media (max-height: 380px) { .l-noticias { display: none; } }
/* em pe (celular e tablet) ou quase quadrado (tela dividida): coluna unica -- o jogo pede para virar, mas o launcher
   continua usavel. A arte nao pode ser "cover" aqui (cortaria o titulo): ela fica no alto, na altura em que logo + titulo
   cabem na largura (escala = min(largura/680, 62% da altura)/900), ancorada a esquerda, desmanchando embaixo; atras dela a
   mesma arte desfocada preenche a tela. */
@media (max-aspect-ratio: 6/5) {
  #lanc { --l-arte: min(132.35vw, 62vh); --l-arte-y: env(safe-area-inset-top, 0px); }
  .l-fundo .l-img { background-size: auto var(--l-arte); background-position: left 0 top var(--l-arte-y); transform-origin: 0 0; }
  .l-fundo .l-img.v2 { background-image: none !important; }
  .l-fundo .l-img.v2::before, .l-fundo .l-img.v2::after { content: ""; position: absolute; pointer-events: none; }
  .l-fundo .l-img.v2::before { inset: -60px; background: var(--src) center / cover no-repeat; filter: blur(34px) saturate(1.25) brightness(.42); }
  .l-fundo .l-img.v2::after { inset: 0; background: var(--src) left 0 top var(--l-arte-y) / auto var(--l-arte) no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent var(--l-arte-y), #000 calc(var(--l-arte-y) + 56px), #000 calc(var(--l-arte-y) + var(--l-arte) * .72), transparent calc(var(--l-arte-y) + var(--l-arte)));
    mask-image: linear-gradient(180deg, transparent var(--l-arte-y), #000 calc(var(--l-arte-y) + 56px), #000 calc(var(--l-arte-y) + var(--l-arte) * .72), transparent calc(var(--l-arte-y) + var(--l-arte))); }
  #lanc.so-arte .l-fundo::after { background: linear-gradient(0deg, rgba(10, 6, 18, .9) 0%, rgba(10, 6, 18, .35) 34%, transparent 55%); }
  .l-esq, .l-dir { left: max(var(--l-gut), calc(50% - 260px)); right: max(var(--l-gut-r), calc(50% - 260px)); width: auto; }
  .l-dir { bottom: max(44px, calc(env(safe-area-inset-bottom) + 38px)); }
  .l-esq { bottom: 236px; }
  .l-pontos { justify-content: center; }
  .l-raposa { right: 50%; top: 30%; transform: translate(50%, -50%); width: min(200px, 46vw); }
}
@media (orientation: portrait) and (max-width: 700px) { .l-status span { display: none; } }
/* celular em pe: a linha de cima (status + atalhos) ocupa a direita do topo; desce a arte para o logo dela nao encostar */
@media (max-aspect-ratio: 6/5) and (max-width: 700px) { #lanc { --l-arte-y: calc(env(safe-area-inset-top, 0px) + 40px); } }
/* 29/11 (Frente O4): launcher leve no iPhone/iPad (lancador.js LEVE, ?bootleve=0 desliga) -- nada animado nem filtrado em tela
   cheia durante o boot: o compositor do WebKit iOS segura a memoria de cada camada promovida enquanto o wasm compila */
#lanc.leve .l-fundo .l-img { transform: none !important; transition: opacity .3s ease; }
#lanc.leve .l-fundo .l-img.v2::before { filter: none; opacity: .38; }
#lanc.leve .l-raposa { animation: none; filter: none; }
#lanc.leve .l-status.ok i, #lanc.leve .l-jogar.pronto::before { animation: none; }
#carregando.leve .raposa img, #carregando.leve .raposa::after { animation: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  #lanc *, #lanc *::before, #lanc *::after { animation: none !important; transition: none !important; }
}
