/* Resgate dos Barquinhos — visual próprio do jogo (o comum está em base.css). Prefixo bq-. */
:root { --tema: #4fb3e0; --tema-escuro: #1f78a8; --mar: #4fb3e0; --mar-2: #7fcdee; --ceu: #bfe9ff; }

/* 1. escolher como brincar (rola em tela baixa) */
.bq-menu {
  flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  overflow-y: auto; touch-action: pan-y; padding-bottom: 8px;
}
.bq-linha { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.bq-titulo { font-size: clamp(16px, 2vw, 21px); font-weight: bold; color: var(--azul); }
.bq-grupo { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bq-opcao {
  min-width: var(--alvo); min-height: var(--alvo); padding: 6px 16px; border: 4px solid transparent; border-radius: var(--raio);
  background: var(--branco); box-shadow: var(--sombra); font-size: clamp(17px, 2.1vw, 22px); font-weight: bold; color: var(--azul);
}
.bq-opcao[aria-pressed="true"] { border-color: var(--azul); background: var(--amarelo); }
.bq-vamos { min-width: 180px; min-height: var(--alvo); flex: 0 0 auto; }

/* 2. posicionar: o mar à esquerda, a bandeja à direita */
.bq-posicionar { gap: 14px; align-items: flex-start; touch-action: none; }
.bq-mar { position: relative; flex: 0 0 auto; }
.bq-rotulo {
  position: absolute; width: var(--celula); height: var(--celula); display: grid; place-items: center;
  font-weight: bold; font-size: calc(var(--celula) * 0.45); color: var(--azul);
}
.bq-agua {
  position: absolute; border-radius: 8px; overflow: visible;
  background-color: var(--mar);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: var(--celula) var(--celula);
  box-shadow: 0 0 0 4px var(--branco), var(--sombra);
}
.bq-barco { position: absolute; cursor: grab; touch-action: none; }
.bq-fila .bq-barco { position: relative; }
.bq-casco { position: absolute; inset: 0; width: 100%; height: 100%; }
.bq-amigo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 96%; width: auto; max-width: 90%; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
}
.bq-barco[data-deitado="false"] .bq-amigo { height: auto; width: 96%; max-height: 70%; }
.bq-segurando { opacity: 0.35; }
.bq-fantasma { position: fixed; z-index: 20; pointer-events: none; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.25)); }

.bq-bandeja { flex: 0 0 auto; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.bq-fila {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px;
  background: rgba(255, 253, 247, 0.7); border-radius: var(--raio); overflow-y: auto; touch-action: pan-y;
}
.bq-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.bq-botoes button { min-height: var(--alvo); min-width: var(--alvo); flex: 1 1 auto; font-size: clamp(15px, 1.8vw, 20px); }

/* 3. a partida: o mar do Saltitão grande, o seu pequeno ao lado */
.bq-partida { gap: 14px; align-items: flex-start; }
.bq-mar-alvo .bq-agua { cursor: crosshair; touch-action: none; }
.bq-partida[data-vez="saltitao"] .bq-mar-alvo { filter: saturate(0.6); }
.bq-partida[data-vez="jogador"] .bq-mar-alvo .bq-agua { box-shadow: 0 0 0 5px var(--amarelo), var(--sombra); }
.bq-lateral { flex: 1 1 auto; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bq-torcida { display: flex; align-items: center; gap: 10px; background: var(--branco); border-radius: var(--raio); padding: 4px 12px; box-shadow: var(--sombra); }
.bq-torcida img { height: 56px; width: auto; }
.bq-placar { font-weight: bold; color: var(--azul); font-size: clamp(13px, 1.6vw, 18px); }
.bq-marca { position: absolute; pointer-events: none; display: block; }
.bq-splash::before {
  content: ""; position: absolute; inset: 28%; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.25);
}
.bq-bolhas::before, .bq-bolhas::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: 2px solid #ffd54f;
}
.bq-bolhas::before { width: 42%; height: 42%; left: 14%; top: 30%; }
.bq-bolhas::after { width: 28%; height: 28%; left: 56%; top: 18%; }
.bq-nova { animation: bq-pinga 0.6s ease-out; }
@keyframes bq-pinga { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bq-resgatado { animation: bq-balanca 2.4s ease-in-out infinite; }
@keyframes bq-balanca { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.bq-confete { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.bq-confete i {
  position: absolute; width: 8px; height: 12px; border-radius: 2px; left: -4px; top: -6px;
  animation: bq-confete 1.2s ease-out forwards; transform: rotate(var(--ang));
}
@keyframes bq-confete {
  from { transform: rotate(var(--ang)) translateY(0); opacity: 1; }
  to { transform: rotate(var(--ang)) translateY(-70px); opacity: 0; }
}

/* 4. o fim */
.bq-fim { align-items: center; gap: 3vw; }
.bq-fim-figuras { flex: 0 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 4px; }
.bq-fim-figuras img { height: min(22vh, 150px); width: auto; max-width: 9vw; object-fit: contain; }
.bq-fim-figuras img:first-child { height: min(38vh, 260px); max-width: 16vw; }
.bq-fim-caixa {
  background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 12px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; max-height: 100%; overflow-y: auto; touch-action: pan-y;
}
.bq-estrelas { font-size: clamp(34px, 6vw, 64px); color: #f5b400; line-height: 1; }
.bq-medalha { font-weight: bold; color: var(--azul); font-size: clamp(16px, 2vw, 21px); }
.bq-valor { margin: 0; font-size: clamp(17px, 2.2vw, 24px); font-weight: bold; color: var(--tema-escuro); text-align: center; }

/* 5. duas crianças: a tela "Passe o aparelho" cobre os mares */
.bq-passe { align-items: center; justify-content: center; gap: 4vw; background: linear-gradient(#4fb3e0, #1f78a8); border-radius: var(--raio); }
.bq-passe-figura img { height: min(55vh, 340px); width: auto; }
.bq-passe-caixa { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bq-passe-icone { margin: 0; font-size: clamp(30px, 5vw, 54px); }
.bq-passe-nome { font-weight: bold; font-size: clamp(20px, 3vw, 34px); padding: 2px 16px; border-radius: 999px; color: var(--branco); white-space: nowrap; }
.bq-cor-0 { background: #1f4e8c; }
.bq-cor-1 { background: #e07a1e; }
.bq-sou-eu { min-height: var(--alvo); min-width: 200px; }
.bq-partida[data-jogador="1"] .bq-mar-alvo .bq-agua { box-shadow: 0 0 0 5px #e07a1e, var(--sombra); }

/* 6. Sujinhos e treino */
.bq-sujinho { position: absolute; pointer-events: none; animation: bq-pulinho 1.6s ease-in-out infinite; }
@keyframes bq-pulinho { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
.bq-opcao-sujinhos { display: grid; place-items: center; padding: 6px; }
.bq-opcao-sujinhos .bq-sujinho { position: static; width: 56px; height: 56px; padding: 0; }
.bq-dica-botao { min-height: var(--alvo); min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: bold; }
.bq-dica-botao img { height: 56px; width: auto; }
.bq-dica {
  position: absolute; pointer-events: none; border-radius: 30%;
  box-shadow: inset 0 0 0 4px #ffd54f, 0 0 14px 4px rgba(255, 213, 79, 0.9);
  animation: bq-brilho 1.4s ease-in-out infinite;
}
@keyframes bq-brilho { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }


/* nome escrito em cada cartão de escolha (qualidade: toda escolha mostra o nome; o adulto lê, a criança ouve) */
.rotulo-escolha { display: block; max-width: 100%; font-weight: 700; font-size: clamp(12px, 1.5vw, 16px); line-height: 1.15;
  color: #1f3b57; text-align: center; pointer-events: none; overflow-wrap: anywhere; }
