/* Chrome da simulação. Nada aqui altera o desenho das telas. */
html, body { margin: 0; background: #FFF; }
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: Montserrat, system-ui, sans-serif;
  opacity: 0;
  transition: opacity .16s ease;
}
body.fa-pronto { opacity: 1; }
body.fa-saindo { opacity: 0; transition: opacity .1s ease; }

.fa-caixa { position: relative; }
.fa-palco { transform-origin: 0 0; }

/* celular: fundo neutro e moldura, para ler como aparelho */
body:has(.fa-fone) { background: #4A4E51; align-items: center; padding: 20px 0; }
.fa-palco.fa-fone {
  border-radius: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 0 0 12px #1C1E20, 0 16px 48px rgba(0, 0, 0, .45);
  scrollbar-width: none;
}
.fa-palco.fa-fone::-webkit-scrollbar { display: none; }

/* atalhos: convidativos no hover, evidentes quando pedidos */
.fa-hot { cursor: pointer; position: relative; }
.fa-hot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 10px;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color .18s, background .18s;
}
.fa-hot:hover::after { border-color: #00A19C; background: rgba(0, 161, 156, .10); }
.fa-ver-hot .fa-hot::after { border-color: #FF4C00; background: rgba(255, 76, 0, .13); }

/* controle: uma bolha discreta que abre um painelzinho */
.fa-ui { position: fixed; right: 16px; bottom: 16px; z-index: 99999; font-size: 12px; }
.fa-bolha {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(28, 30, 32, .82);
  color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  transition: background .15s, transform .15s;
}
.fa-bolha:hover { background: #1C1E20; transform: translateY(-1px); }
.fa-painel {
  position: absolute; right: 0; bottom: 48px; width: 268px;
  background: rgba(24, 26, 28, .97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px; padding: 13px;
  color: #E9E9E9;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .42);
}
.fa-cen {
  margin: 0 0 11px; font-size: 11.5px; line-height: 1.55; color: #9FE0DD;
  border-left: 2px solid rgba(0, 161, 156, .55); padding-left: 9px;
}
.fa-linha { display: flex; gap: 7px; margin-bottom: 7px; }
.fa-linha button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #E9E9E9; font: inherit; font-size: 11.5px;
  padding: 7px 8px; border-radius: 7px; cursor: pointer; line-height: 1.25;
}
.fa-linha button:hover { background: rgba(255, 255, 255, .14); }
.fa-ajuda {
  margin: 10px 0 0; font-size: 10.5px; line-height: 1.7; color: #9A9A9A;
  border-top: 1px solid rgba(255, 255, 255, .10); padding-top: 9px;
}
.fa-ajuda b { color: #CFCFCF; font-weight: 600; }

/* controles do layout sem tela de destino: respondem com uma explicação */
.fa-inerte { cursor: help; }
.fa-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 8px);
  max-width: 460px;
  padding: 10px 15px;
  border-radius: 9px;
  background: rgba(24, 26, 28, .95);
  color: #EDEDED;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.fa-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── embutida numa miniatura da galeria: sem chrome, sem fundo ── */
html.fa-embed, html.fa-embed body { background: #fff; }
html.fa-embed body { display: block; padding: 0; min-height: 0; opacity: 1; }

/* ── volta para a galeria ── */
.fa-voltar {
  position: absolute; right: 48px; bottom: 0;
  white-space: nowrap;
  padding: 9px 13px; border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(28, 30, 32, .82);
  color: #fff; font-size: 12px; text-decoration: none; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.fa-voltar:hover { background: #1C1E20; }
.fa-btn-link {
  flex: 1; text-align: center; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #E9E9E9; font-size: 11.5px; padding: 7px 8px; border-radius: 7px; line-height: 1.25;
}
.fa-btn-link:hover { background: rgba(255, 255, 255, .14); }

/* ── galeria ── */
.g-body { display: block; background: #3C4043; opacity: 1; }
.g-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 24px 70px; color: #EDEDED; }
.g-head h1 { margin: 0 0 8px; font-size: 25px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.g-head h1 span { font-weight: 400; color: #A7A7A7; }
.g-head p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #B6B6B6; max-width: 640px; }
.g-head p b { color: #E4E4E4; font-weight: 600; }

.g-bloco { margin-top: 38px; }
.g-cab {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.g-cab h2 {
  margin: 0; font-size: 12px; text-transform: uppercase;
  letter-spacing: .13em; color: #8FD9D6; font-weight: 700;
}
.g-play {
  margin-left: auto; text-decoration: none;
  background: #00A19C; color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 9px 17px; border-radius: 24px; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.g-play:hover { background: #00867F; transform: translateY(-1px); }

.g-bloco h3 {
  margin: 24px 0 11px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: #C6C6C6; text-transform: uppercase;
}
.g-grade { display: flex; flex-wrap: wrap; gap: 15px; }
.g-card {
  display: block; width: 232px; text-decoration: none; color: inherit;
  background: #34383B; border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 11px; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.g-card:hover {
  transform: translateY(-3px); border-color: #00A19C;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.g-mini { display: block; height: 152px; overflow: hidden; background: #fff; position: relative; }
.g-mini iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.g-rot { display: block; padding: 10px 12px 12px; }
.g-rot b { display: block; font-size: 12.5px; font-weight: 600; color: #fff; }
.g-cen { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.5; color: #9E9E9E; }
.g-flag {
  display: inline-block; margin-top: 8px; font-size: 9.5px; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
  background: rgba(0, 161, 156, .2); color: #7FE3E0;
}
.g-flag.e-var { background: rgba(239, 170, 35, .17); color: #EFC777; }
.g-pe {
  margin-top: 44px; padding-top: 16px; font-size: 11.5px; line-height: 1.8; color: #9A9A9A;
  border-top: 1px solid rgba(255, 255, 255, .11); max-width: 700px;
}
.g-pe i { color: #C6C6C6; font-style: normal; }
