/* Bolhas da Aurora (24/11/2026) — todas as regras presas a .jogo-bolhas-da-aurora */
.jogo-bolhas-da-aurora {
  --ba-azul: #262c78; --ba-azul-2: #3a42a6; --ba-ouro: #d8b465; --ba-ouro-2: #b08a3c; --ba-noite: #0b0f33;
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  border-radius: 18px; background: var(--ba-noite); color: #fff;
  font-family: "Inter", system-ui, sans-serif; box-shadow: 0 12px 34px rgba(23, 26, 44, .22);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}

/* barra: pontos, fase, recorde, botões */
.jogo-bolhas-da-aurora .ba-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(38, 44, 120, .95), rgba(18, 24, 74, .95));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.jogo-bolhas-da-aurora .ba-placar { display: flex; gap: 18px; align-items: flex-end; min-width: 0; }
.jogo-bolhas-da-aurora .ba-num { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.jogo-bolhas-da-aurora .ba-num span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .62); font-weight: 600; }
.jogo-bolhas-da-aurora .ba-num strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jogo-bolhas-da-aurora .ba-num-principal strong { font-size: 24px; color: #fff4c2; text-shadow: 0 0 14px rgba(255, 215, 106, .35); }
.jogo-bolhas-da-aurora .ba-batendo strong { color: #ffd76a; }
.jogo-bolhas-da-aurora .ba-acoes { display: flex; gap: 6px; flex-shrink: 0; }
.jogo-bolhas-da-aurora .ba-bt {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); color: #fff; font-size: 19px;
  cursor: pointer; transition: background .15s;
}
.jogo-bolhas-da-aurora .ba-bt:hover { background: rgba(255, 255, 255, .14); }
.jogo-bolhas-da-aurora .ba-bt:focus-visible, .jogo-bolhas-da-aurora .ba-botao:focus-visible { outline: 3px solid #ffd76a; outline-offset: 2px; }
.jogo-bolhas-da-aurora .ba-aria { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* palco: o canvas ocupa tudo; as telas ficam por cima */
.jogo-bolhas-da-aurora .ba-palco { position: relative; width: 100%; height: clamp(440px, calc(100dvh - 210px), 860px); }
.jogo-bolhas-da-aurora .ba-canvas { position: absolute; inset: 0; display: block; touch-action: none; cursor: crosshair; }

.jogo-bolhas-da-aurora .ba-tela {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(120% 90% at 50% 40%, rgba(11, 15, 51, .55), rgba(11, 15, 51, .86));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.jogo-bolhas-da-aurora .ba-tela[hidden] { display: none; }
.jogo-bolhas-da-aurora .ba-caixa {
  width: min(380px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 26px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(58, 66, 166, .42), rgba(20, 26, 80, .78));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: ba-surge .28s ease-out;
}
@keyframes ba-surge { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.jogo-bolhas-da-aurora .ba-titulo { display: flex; flex-direction: column; line-height: .95; margin-bottom: 4px; }
.jogo-bolhas-da-aurora .ba-titulo-1 {
  font-size: 46px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #8fe3ff, #ff9ec4 45%, #ffd76a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 158, 196, .35));
}
.jogo-bolhas-da-aurora .ba-titulo-2 { font-size: 18px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ba-ouro); margin-top: 6px; }
.jogo-bolhas-da-aurora .ba-ola { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.jogo-bolhas-da-aurora .ba-sub { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .78); }
.jogo-bolhas-da-aurora .ba-rec { margin: 2px 0 0; font-size: 14px; color: #ffd76a; font-weight: 600; }
.jogo-bolhas-da-aurora .ba-nota { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.jogo-bolhas-da-aurora .ba-como { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; text-align: left; width: 100%; }
.jogo-bolhas-da-aurora .ba-como li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: rgba(255, 255, 255, .9); line-height: 1.3; }
.jogo-bolhas-da-aurora .ba-como i {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .09); color: #ffd76a; font-size: 16px;
}

.jogo-bolhas-da-aurora .ba-botao {
  width: 100%; min-height: 48px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.jogo-bolhas-da-aurora .ba-principal {
  border: 0; color: #2a1e05; background: linear-gradient(180deg, #ffe08a, #d8b465 60%, #b08a3c);
  box-shadow: 0 8px 22px rgba(216, 180, 101, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.jogo-bolhas-da-aurora .ba-principal:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(216, 180, 101, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.jogo-bolhas-da-aurora .ba-principal:active { transform: translateY(1px); }
.jogo-bolhas-da-aurora .ba-sec { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; font-size: 15px; }
.jogo-bolhas-da-aurora .ba-sec:hover { background: rgba(255, 255, 255, .12); }

.jogo-bolhas-da-aurora .ba-pausa-tit, .jogo-bolhas-da-aurora .ba-fim-tit { font-size: 30px; font-weight: 800; }
.jogo-bolhas-da-aurora .ba-fim-pts {
  font-size: 50px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff4c2;
  text-shadow: 0 0 24px rgba(255, 215, 106, .45);
}
.jogo-bolhas-da-aurora .ba-msg { margin: 0; min-height: 20px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.jogo-bolhas-da-aurora .ba-novo { color: #ffd76a; font-weight: 700; }
.jogo-bolhas-da-aurora .ba-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; margin: 4px 0 6px; }
.jogo-bolhas-da-aurora .ba-stats div { padding: 9px 6px; border-radius: 12px; background: rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 2px; }
.jogo-bolhas-da-aurora .ba-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .05em; }
.jogo-bolhas-da-aurora .ba-stats strong { font-size: 19px; font-weight: 800; }

/* celular: o jogo vai de ponta a ponta e ocupa a altura toda */
@media (max-width: 575.98px) {
  .jogo-bolhas-da-aurora { border-radius: 14px; }
  .jogo-bolhas-da-aurora .ba-palco { height: calc(100dvh - 190px); min-height: 400px; }
  .jogo-bolhas-da-aurora .ba-placar { gap: 12px; }
  .jogo-bolhas-da-aurora .ba-num-principal strong { font-size: 21px; }
  .jogo-bolhas-da-aurora .ba-num strong { font-size: 15px; }
  .jogo-bolhas-da-aurora .ba-bt { width: 42px; height: 42px; }
}
@media (max-width: 360px) { .jogo-bolhas-da-aurora .ba-num:nth-child(3) { display: none; } }

/* tela cheia do site (jogos.js) */
.jogo-raiz.jogo-bolhas-da-aurora.is-cheia {
  max-width: none; border-radius: 0; background: var(--ba-noite); overflow: hidden;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.jogo-raiz.jogo-bolhas-da-aurora.is-cheia .ba-palco { flex: 1; height: auto; min-height: 0; }

@media (prefers-reduced-motion: reduce) { .jogo-bolhas-da-aurora .ba-caixa { animation: none; } }
