/* Jogo da Paixão · peças novas de 03/11/2026: céu de lembranças, buquê,
   quiz no diálogo e a gravação de áudio no chat. Usa as variáveis do estilo.css. */

/* ───── céu de lembranças ───── */
.ceu-caixa, .buque-caixa { width: min(360px, 100%); background: #1b1640; color: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: entra .25s ease-out; }
.ceu-titulo, .buque-titulo { margin: 0; text-align: center; color: #fff7c2; font-size: 14px; letter-spacing: .04em; }
.ceu-quadro { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 3px solid #0e0b24; }
.ceu-quadro canvas, .buque-caixa canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.ceu-quadro.completo { box-shadow: 0 0 0 3px #fff7c2, 0 0 30px rgba(255, 240, 150, .5); transition: box-shadow .6s; }
.ceu-foto { position: absolute; width: 30%; background: #fff; padding: 4px 4px 10px; rotate: -5deg; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); animation: ceu-foto .7s .5s ease-out both; }
.ceu-foto canvas { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; display: block; }
@keyframes ceu-foto { from { opacity: 0; transform: translateY(10px) scale(.8); } to { opacity: 1; transform: none; } }
.ceu-legenda { margin: 0; text-align: center; font-family: var(--mao); font-size: 24px; line-height: 1.15; color: #fff; min-height: 1.15em; }

/* ───── buquê ───── */
.buque-caixa { background: #cdeeff; color: var(--texto); }
.buque-titulo { color: var(--acento); }
.buque-caixa canvas { width: 62%; height: auto; aspect-ratio: 1; margin: 0 auto; }
.buque-texto { margin: 0; text-align: center; font-family: var(--mao); font-size: 23px; line-height: 1.2; opacity: 0; transition: opacity .6s; }
.buque-caixa.pronto .buque-texto { opacity: 1; }

/* ───── quiz no diálogo (as opções são as ações do diálogo) ───── */
.dialogo.quiz .dialogo-acoes { flex-direction: column; align-items: stretch; }
.dialogo.quiz .dialogo-acoes .btn { justify-content: flex-start; text-align: start; white-space: normal; min-height: 40px; line-height: 1.25; padding: 8px 12px; }
.dialogo .btn.quiz-errada { background: #fde3e3; border-color: #b42318; color: #8f2347; animation: treme .3s; }
@keyframes treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ───── carta: compartilhar ───── */
.carta-acoes .btn-compartilhar { order: -1; flex-basis: 100%; }

/* ───── estúdio: contar por áudio ───── */
.btn-voz { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--nevoa); color: var(--acento); font-size: 22px; display: grid; place-items: center; cursor: pointer; }
.btn-voz:hover { background: #f6d9e3; }
.btn-voz:disabled { opacity: .5; cursor: default; }
.chip.chip-voz { background: var(--acento); color: #fff; border-color: var(--acento); }
.voz-painel { position: absolute; inset: 0; z-index: 5; background: rgba(250, 246, 242, .97); display: grid; place-items: center; padding: 20px; text-align: center; border-radius: inherit; }
.voz-caixa { display: grid; gap: 14px; justify-items: center; max-width: 340px; }
.voz-caixa h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.voz-caixa p { margin: 0; color: var(--tinta-2); font-size: 15px; }
.voz-mic { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--acento); color: #fff; font-size: 38px; cursor: pointer; position: relative; display: grid; place-items: center; }
.voz-mic::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--acento); opacity: 0; }
.voz-painel.gravando .voz-mic { background: var(--acento-escuro); }
.voz-painel.gravando .voz-mic::after { animation: voz-pulso 1.5s infinite; }
@keyframes voz-pulso { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.3); opacity: 0; } }
.voz-onda { display: flex; gap: 3px; align-items: center; height: 40px; }
.voz-onda i { display: block; width: 4px; height: 6px; border-radius: 2px; background: var(--acento); transition: height .08s; }
.voz-tempo { font-family: var(--pixel); font-size: 14px; color: var(--texto); }
.voz-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.voz-status { display: grid; gap: 10px; justify-items: center; }
.voz-status .digitando { transform: scale(1.4); }
.chat { position: relative; }
.cap-quiz { font-size: 14px; color: var(--tinta-2); }
.cap-quiz b { color: var(--texto); }
