:root {
  --ink: #f3f6fb;
  --slate: #aab4c6;
  --slate-dim: #7d879b;
  --blue: #4d7bff;
  --green: #1fe3ac;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --void: #05070d;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --header-h: 64px;
  --bottomnav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Fundo: foto + véu escuro + linhas neon ---------- */

.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: var(--void);
  background-image: url("bg-galaxy.jpg");
  background-image: image-set(
    url("bg-galaxy.webp") type("image/webp") 1x,
    url("bg-galaxy.jpg") type("image/jpeg") 1x
  );
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.82) 0%, rgba(4, 6, 12, 0.30) 26%, rgba(4, 6, 12, 0.40) 68%, rgba(4, 6, 12, 0.90) 100%);
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}

.bg-decor svg {
  width: 100%;
  height: 100%;
}

.curve { opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .curve-a, .curve-b, .curve-c {
    animation: drift 22s ease-in-out infinite alternate;
  }
  .curve-b { animation-duration: 26s; }
  .curve-c { animation-duration: 30s; }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(14px); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 8, 16, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.9;
}

.logo span {
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo.small { font-size: 0.92rem; }

/* ---------- Barra inferior (Vídeos / Fotos / Games / Chat), estilo TikTok ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50; /* acima do feed de vídeos em tela cheia, abaixo do lightbox */
  display: flex;
  height: var(--bottomnav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(6, 8, 16, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border-soft);
}

.bottom-nav-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--slate);
}

.bottom-nav-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bottom-nav-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.bottom-nav-label--hidden {
  visibility: hidden;
}

.bottom-nav-btn.active { color: var(--ink); }

.bottom-nav-btn.active .bottom-nav-icon {
  opacity: 1;
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 6px rgba(31, 227, 172, 0.45));
}

.bottom-nav-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* ---------- Espaços publicitários ---------- */

.ad-slot {
  margin: 24px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  min-height: 90px;
}

.ad-slot:empty { min-height: 0; margin: 0; }

.ad-slot ins { max-width: 100%; }

/* Anúncio inserido dentro do feed (ocupa a linha inteira da grade) */
.ad-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  margin: 4px 0;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

/* ---------- Conteúdo ---------- */

.content-area {
  display: grid;
  min-height: 46vh;
}

.content-panel {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.content-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .content-panel { transition: none; }
}

.empty-state {
  height: 100%;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  opacity: 0.85;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.empty-state p {
  color: var(--slate);
  font-size: 0.98rem;
  max-width: 34ch;
  margin: 0;
}

/* ---------- Grade de mídia (fotos e vídeos publicados) ---------- */
/* A maioria das fotos é vertical: o enquadramento do card também é
   vertical, e no celular sempre ficam duas colunas lado a lado. */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 0 40px;
}

@media (min-width: 620px) {
  .media-grid { gap: 16px; }
}

@media (min-width: 760px) {
  .media-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 1040px) {
  .media-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.media-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}

.media-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-card:hover .media-thumb {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  border-color: var(--border);
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* o clique é tratado pelo card, não pelos controles nativos */
}

.media-thumb.is-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Ícone de play sobre a miniatura de vídeo (a miniatura mostra uma
   fotinha do próprio vídeo por baixo, nunca fica preta) */
.media-thumb.is-video::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(6, 9, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%, center;
  background-size: 20px 20px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.media-card:hover .media-thumb.is-video::after {
  transform: scale(1.08);
}

/* Enquanto a miniatura do vídeo ainda não carregou o quadro, mostra um
   leve brilho pulsante em vez de tela preta */
.media-thumb.is-video.is-loading {
  animation: thumb-pulse 1.6s ease-in-out infinite;
}

@keyframes thumb-pulse {
  0%, 100% { background-color: var(--panel-strong); }
  50% { background-color: rgba(255, 255, 255, 0.14); }
}

/* Elemento invisível que dispara o carregamento do próximo lote do feed infinito */
.feed-sentinela {
  grid-column: 1 / -1;
  height: 1px;
}

/* ---------- Feed de vídeos em tela cheia (rolagem vertical, um por vez) ---------- */
/* A aba de vídeos sai do grid empilhado de cima (que é pensado pra grade de
   fotos) e vira sua própria camada de tela cheia, ocupando tudo que sobra
   abaixo do header. Assim o vídeo pode ficar bem grande sem empurrar a
   altura da página quando a aba de fotos está sendo exibida. */

#videos.content-panel {
  grid-area: auto;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
}

/* Lista de vídeos: um por fileira, capinha com a duração no canto inferior
   direito e, embaixo, curtidas (corações) e comentários. */
.video-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 0 32px;
}

.video-card {
  display: block;
  margin-bottom: 22px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.video-card:hover .video-card-thumb,
.video-card:focus-visible .video-card-thumb {
  transform: translateY(-2px);
  border-color: var(--border);
}

.video-card:focus-visible .video-card-thumb { outline: 2px solid var(--blue); outline-offset: 2px; }

.video-card-thumb.is-loading { animation: thumb-pulse 1.6s ease-in-out infinite; }

/* Capinha: o mesmo quadro duas vezes. Atrás, esticado e desfocado; na
   frente, inteiro (vídeo vertical não fica cortado). */
.video-card-thumb .thumb-bg {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(18px) brightness(0.55);
}

.video-card-thumb .thumb-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-card-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 4px 0;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
}

.video-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-card-stat svg { width: 18px; height: 18px; flex: none; }
.video-card-likes svg { color: #ff3b5c; }

/* ---------- Tela do vídeo (Native em cima, vídeo no centro, Native embaixo) ---------- */

.player-screen {
  position: fixed;
  inset: 0;
  z-index: 500; /* acima da barra inferior e do header, abaixo do visualizador de fotos */
  display: flex;
  flex-direction: column;
  background: rgba(5, 7, 13, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.player-screen.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player-bar {
  flex: none;
  display: flex;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
}

.player-back {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.player-back svg { width: 22px; height: 22px; }
.player-back:hover { background: rgba(255, 255, 255, 0.18); }

.player-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.player-inner {
  max-width: 720px;
  margin: 0 auto;
}

.player-ad { margin: 12px 0; }

.player-stage {
  position: relative;
  width: 100%;
  height: clamp(240px, 52vh, 620px);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bolinha girando enquanto o anúncio ainda está sendo buscado */
.player-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--green);
  animation: player-giro 0.8s linear infinite;
}

@keyframes player-giro { to { transform: rotate(360deg); } }

.player-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Enquanto o anúncio não termina, o vídeo existe mas não aparece */
.player-video.is-bloqueado { visibility: hidden; }

.player-screen.is-open ~ .scroll-hint { display: none; }

/* ---------- Pré-roll de vídeo in-stream (VAST) ---------- */

.video-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 3; /* fica por cima do vídeo de conteúdo enquanto o anúncio toca */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-ad-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-ad-selo {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(6, 9, 16, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Botão "Pular anúncio" (aparece na parte de baixo do anúncio de vídeo) */
.video-ad-pular {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(6, 9, 16, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.video-ad-pular:disabled {
  cursor: default;
  opacity: 0.75;
}

.feed-sentinela-video { height: 1px; }

/* A aba Chat também vira sua própria camada de tela cheia (como a de
   vídeos), centralizando o aviso "em breve" na tela sem precisar rolar
   pra ler. */
#chat.content-panel {
  grid-area: auto;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
  padding: 0 20px;
}

#chat .chat-soon {
  min-height: 0;
  padding: 24px 8px;
}

/* ---------- Visualizador em tela cheia (lightbox) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 8, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
}

.lightbox-content iframe {
  width: min(96vw, 1100px);
  height: min(80vh, 620px);
  border: 0;
  border-radius: 6px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white, #fff);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  backdrop-filter: blur(6px);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Aviso de uso ("Close the ads and scroll the screen") ---------- */
/* Pequeno, na parte de baixo, e com pointer-events: none pra nunca
   bloquear o clique nos anúncios nem cobrir o vídeo. */

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom, 0px));
  z-index: 900; /* acima do feed de vídeos e da barra inferior, abaixo do visualizador em tela cheia */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  padding: 16px 26px;
  border-radius: 999px;
  background: rgba(6, 9, 16, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, 0);
  opacity: 1;
  animation: hint-entrar 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.5, 0, 0.75, 0);
}

/* Some subindo (como se fosse "voando" pra cima), não afundando pra baixo */
.scroll-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, -46px);
}

@keyframes hint-entrar {
  from { opacity: 0; transform: translate(-50%, 28px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.scroll-hint-icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--green);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-hint-icon { animation: hint-bob 1.4s ease-in-out infinite; }
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-5px); }
}

/* Não aparece junto do visualizador em tela cheia */
.lightbox.is-open ~ .scroll-hint { display: none; }

/* ---------- Aba Games: escolha de idioma + joguinho de chat ---------- */

/* A aba Games também vira uma camada fixa (como Vídeos e Chat): fica sempre
   colada no topo, logo abaixo do header, e rola só por dentro. Assim nunca
   aparece "vazia" por causa da rolagem que a página tinha em outra aba. */
#games.content-panel {
  grid-area: auto;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0 20px;
}

.game-wrap {
  padding: 24px 0 40px;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-games { width: 100%; max-width: 460px; }

/* Espaço do vídeo in-stream solto na página (Games e Chat): escondido até o
   anúncio de fato começar, e some de novo quando termina. */
.ad-video-slot {
  display: none;
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 16 / 9;
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.ad-video-slot.is-ativo { display: block; }

/* Tela cheia de escolha do idioma (aparece ao entrar no site) */
.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 2000; /* acima de tudo, inclusive do visualizador e do aviso */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 9, 16, 0.97);
}
.lang-gate.is-hidden { display: none; }
.lang-gate-box { width: 100%; max-width: 420px; text-align: center; }
.lang-gate-box .logo { display: inline-block; margin-bottom: 28px; font-size: 1.7rem; }

.game-lang-pick {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 40px 16px;
}

.game-lang-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 24px;
  color: var(--ink);
}

.game-lang-options {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.game-lang-btn:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  background: var(--panel-strong);
}

.game-lang-flag { font-size: 2.2rem; line-height: 1; }

.game-chat {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
  min-height: 420px;
}

.game-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--panel-strong);
}

.game-chat-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.game-restart {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--slate);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.game-chat-log {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 340px;
}

.game-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.game-bubble-bia {
  align-self: flex-start;
  background: var(--panel-strong);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
}

.game-bubble-bia.is-digitando { color: var(--slate); font-style: italic; }

.game-bubble-user {
  align-self: flex-end;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #061019;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.game-chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-soft);
}

.game-option-btn {
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.game-option-btn:hover {
  background: var(--panel-strong);
  border-color: var(--blue);
}

.game-ending {
  text-align: center;
  padding: 6px 4px 4px;
}

.game-ending h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.game-ending.is-win h3 { color: var(--green); }
.game-ending.is-lose h3 { color: var(--blue); }

.game-ending p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.game-restart-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #061019;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Aba Bate-papo: aviso "em breve" ---------- */

.chat-soon-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 16px;
  object-fit: contain;
  opacity: 0.9;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0 40px;
  margin-top: 24px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer p {
  color: var(--slate-dim);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 560px) {
  .header-inner { justify-content: center; text-align: center; }
  .site-footer .container { justify-content: center; text-align: center; }
}

/* TESTE: caixa de escolha do idioma desativada. Pra voltar, apague este bloco. */
#langGate { display: none !important; }
