/* ===== Interatividade: desafio do dia, reações, modo festa, cartão ===== */
.int-grade { display: grid; gap: 18px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.int-card { border-radius: 20px; padding: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(120,220,255,.18); display: flex; flex-direction: column; gap: 12px; }
.int-card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.int-card p { color: #A9B2D6; }
.int-tag { font: 800 11px/1 var(--f-texto); letter-spacing: .12em; text-transform: uppercase; color: #2EE6FF; }

/* desafio */
.des-pergunta { font-weight: 700; font-size: 1.1rem; color: #fff !important; }
.des-opcoes { display: grid; gap: 8px; }
.des-opcoes button { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-weight: 600; transition: transform .15s, background .2s; }
.des-opcoes button:hover:not(:disabled) { background: rgba(46,230,255,.15); }
.des-opcoes button.certa { background: #1f9d6b; border-color: #1f9d6b; animation: pula .5s; }
.des-opcoes button.errada { background: #b5384a; border-color: #b5384a; animation: treme .4s; }
@keyframes pula { 50% { transform: scale(1.04); } }
@keyframes treme { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.des-sequencia { display: flex; gap: 14px; align-items: center; font-weight: 700; color: #FFC145; }
.des-sequencia b { font-size: 1.6rem; }
.des-res { font-weight: 600; color: #fff !important; }
.des-res[hidden] { display: none; }

/* confete */
.confete { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 90; pointer-events: none; border-radius: 2px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(105vh) rotate(720deg); opacity: .7; } }

/* reações flutuantes */
.reacoes { position: fixed; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.reacoes button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(120,220,255,.35); background: rgba(13,18,48,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 22px; line-height: 1; transition: transform .15s, box-shadow .2s; }
/* sem mudar de tamanho no hover: o botão não pode sair de baixo do mouse */
.reacoes button:hover { box-shadow: 0 0 18px rgba(46,230,255,.5); }
.reacoes button:active { filter: brightness(1.4); }
.reacoes-rotulo { font: 700 10px/1.2 var(--f-texto); color: #A9B2D6; text-align: center; max-width: 46px; }
.reacao-voa { position: fixed; z-index: 41; pointer-events: none; font-size: 30px; animation: sobe 3.2s ease-out forwards; }
@keyframes sobe { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 10% { opacity: 1; transform: translate(0,-30px) scale(1.2); } 100% { transform: translate(var(--dx), -55vh) scale(1); opacity: 0; } }
@media (max-width: 600px) { .reacoes { right: 8px; gap: 6px; } .reacoes button { width: 40px; height: 40px; font-size: 19px; } }

/* modo festa */
.festa { position: fixed; inset: 0; z-index: 200; background: #04050d; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; overflow: hidden; }
.festa[hidden] { display: none; }
.festa canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.festa-txt { position: relative; text-align: center; padding: 20px; pointer-events: none; }
.festa-logo { font: 800 clamp(64px, 16vw, 200px)/1 var(--f-titulo); background: linear-gradient(90deg,#2EE6FF,#FF4FD8,#FFC145,#2EE6FF); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: faixa 4s linear infinite; filter: drop-shadow(0 0 30px rgba(255,79,216,.5)); }
.festa-musica { margin-top: 14px; font-size: clamp(16px, 2.6vw, 28px); font-weight: 700; text-shadow: 0 0 20px rgba(46,230,255,.8); }
.festa-sair { position: absolute; top: 16px; right: 16px; z-index: 2; border-radius: 999px; padding: 10px 18px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); font-weight: 700; }

/* atalhos para os rankings (palpites e jogo de ritmo) */
.rk-atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.rk-atalhos .chip { text-decoration: none; display: inline-flex; align-items: center; }
