/* ===== Extras: clima/horário, tocou hoje, termômetro, medalhas, ritmo, voz, segredos ===== */

/* 2) cores conforme a hora do dia */
body[data-periodo="amanhecer"] { --neon-ciano: #7FD8FF; --neon-rosa: #FF9AC9; }
body[data-periodo="dia"] { --neon-ciano: #36E3FF; --neon-rosa: #7C8CFF; }
body[data-periodo="por-do-sol"] { --neon-ciano: #FFB347; --neon-rosa: #FF5E8A; }
body[data-periodo="noite"] { --neon-ciano: #2EE6FF; --neon-rosa: #FF4FD8; }
body[data-periodo="madrugada"] { --neon-ciano: #8A7CFF; --neon-rosa: #4FC3FF; }
body[data-periodo="amanhecer"]::before { background: radial-gradient(60vw 40vh at 20% 5%, rgba(255,170,120,.18), transparent 60%), radial-gradient(50vw 45vh at 85% 30%, rgba(127,216,255,.14), transparent 60%), var(--fundo-0); }
body[data-periodo="dia"]::before { background: radial-gradient(60vw 40vh at 75% 0%, rgba(255,230,140,.16), transparent 60%), radial-gradient(60vw 45vh at 15% 30%, rgba(54,227,255,.16), transparent 60%), #0a1030; }
body[data-periodo="por-do-sol"]::before { background: radial-gradient(70vw 45vh at 50% 0%, rgba(255,120,60,.25), transparent 60%), radial-gradient(50vw 45vh at 85% 35%, rgba(255,94,138,.18), transparent 60%), #150a24; }
body[data-periodo="madrugada"]::before { background: radial-gradient(60vw 40vh at 30% 10%, rgba(138,124,255,.14), transparent 60%), radial-gradient(50vw 45vh at 80% 40%, rgba(79,195,255,.08), transparent 60%), #04050f; }
.ceu-chip { position: fixed; left: 12px; top: calc(var(--topo-h) + 10px); z-index: 25; display: flex; gap: 8px; align-items: center;
  padding: 7px 12px; border-radius: 999px; background: rgba(7,10,24,.6); border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 700 13px/1 var(--f-texto); color: #E8ECFF; }
#ceuFx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* 3) tocou hoje */
.tocou-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.tocou-lista li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.tocou-lista time { font: 700 12px/1 var(--f-texto); color: var(--neon-ciano); min-width: 40px; }
.tocou-lista span { flex: 1; min-width: 0; color: #E8ECFF; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tocou-lista a { flex: none; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; text-decoration: none; border: 1px solid var(--vidro-borda); color: #E8ECFF; }
.tocou-lista a:hover { background: rgba(46,230,255,.15); }
.tocou-vazio { color: #A9B2D6; }

/* 5) termômetro */
.vibe-botoes { display: flex; gap: 8px; }
.vibe-botoes button { flex: 1; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--vidro-borda); background: rgba(255,255,255,.05); color: #fff; font-size: 26px; line-height: 1; transition: transform .15s; }
.vibe-botoes button small { display: block; font: 700 12px/1.2 var(--f-texto); margin-top: 6px; color: #A9B2D6; }
.vibe-botoes button:hover { border-color: var(--neon-ciano); }
.vibe-botoes button[aria-pressed="true"] { border-color: var(--neon-ciano); box-shadow: 0 0 18px rgba(46,230,255,.4); }
.vibe-barra { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); }
.vibe-barra i { display: block; height: 100%; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.vibe-barra .v-calmo { background: #6a8bff; } .vibe-barra .v-curtindo { background: #2EE6FF; } .vibe-barra .v-festa { background: #FF4FD8; }
.vibe-txt { font-weight: 700; color: #fff !important; }

/* 6) medalhas */
.medalhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.medalha { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); filter: grayscale(1); opacity: .45; }
.medalha b { display: block; font-size: 28px; line-height: 1.1; }
.medalha span { display: block; font: 700 11px/1.2 var(--f-texto); color: #E8ECFF; margin-top: 4px; }
.medalha.ganha { filter: none; opacity: 1; border-color: rgba(255,193,69,.6); box-shadow: 0 0 16px rgba(255,193,69,.25); }
.toast-medalha { position: fixed; left: 50%; top: calc(var(--topo-h) + 16px); z-index: 150; transform: translateX(-50%); display: flex; gap: 12px; align-items: center;
  padding: 12px 18px; border-radius: 18px; background: linear-gradient(120deg, #1b1450, #3a0d3f); border: 1px solid rgba(255,193,69,.7); color: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 30px rgba(255,193,69,.35); animation: toastEntra .5s cubic-bezier(.2,1.4,.4,1), toastSai .4s ease 4s forwards; }
.toast-medalha b { font-size: 34px; }
.toast-medalha small { display: block; color: #FFC145; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes toastEntra { from { transform: translate(-50%, -40px) scale(.7); opacity: 0; } }
@keyframes toastSai { to { transform: translate(-50%, -30px); opacity: 0; } }

/* 7) jogo de ritmo */
.ritmo { position: fixed; inset: 0; z-index: 210; background: #04050d; display: flex; flex-direction: column; color: #fff; touch-action: none; }
.ritmo[hidden] { display: none; }
.ritmo canvas { flex: 1; width: 100%; display: block; }
.ritmo-topo { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 2; font-weight: 800; }
.ritmo-topo button { border-radius: 999px; padding: 9px 16px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); font-weight: 700; }
.ritmo-placar { font: 800 22px/1 var(--f-titulo); text-shadow: 0 0 14px rgba(46,230,255,.8); }
.ritmo-dica { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #A9B2D6; font-size: 14px; z-index: 2; pointer-events: none; }

/* 8) voz */
.voz-btn { position: fixed; left: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(120,220,255,.35); background: rgba(13,18,48,.75); color: #fff; font-size: 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.voz-btn.ouvindo { background: #b5384a; box-shadow: 0 0 0 0 rgba(255,79,120,.7); animation: microPulsa 1.2s infinite; }
@keyframes microPulsa { to { box-shadow: 0 0 0 18px rgba(255,79,120,0); } }
.voz-balao { position: fixed; left: 72px; bottom: calc(102px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: min(320px, 70vw); padding: 10px 14px; border-radius: 14px;
  background: rgba(13,18,48,.92); border: 1px solid var(--vidro-borda); color: #E8ECFF; font-size: 14px; }
.voz-balao[hidden] { display: none; }
@media (max-width: 600px) { .voz-btn { width: 42px; height: 42px; font-size: 19px; left: 8px; } .voz-balao { left: 58px; } }

/* 9) segredo: hiperespaço */
.hiper { position: fixed; inset: 0; z-index: 220; pointer-events: none; }
.hiper-txt { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 221; pointer-events: none; text-align: center;
  font: 800 clamp(28px, 6vw, 64px)/1.1 var(--f-titulo); color: #fff; text-shadow: 0 0 30px #FF4FD8, 0 0 60px #2EE6FF; animation: toastEntra .6s; }

/* Anuncie: janela discreta, só abre quando a pessoa clica em "Anuncie" */
.anuncie-modal[hidden] { display: none !important; }
.anuncie-modal { position: fixed; inset: 0; z-index: 180; padding: 20px 12px; overflow-y: auto; background: rgba(3, 5, 14, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; }
.anuncie-modal > .secao-in { position: relative; margin: 4vh auto; width: 100%; max-width: 620px; animation: toastEntra .35s ease; }
.anuncie-fechar { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--vidro-borda);
  background: rgba(255,255,255,.08); color: #fff; font-size: 16px; }
.anuncie-fechar:hover { background: rgba(255,255,255,.18); }
.link-anuncie { display: inline-block; margin-top: 10px; font-size: .9rem; color: var(--texto-suave) !important; text-decoration: underline; background: none; border: 0; padding: 0; }

/* Tamanho: em telas de notebook/PC comuns o site ficava grande demais; reduz tudo por igual */
@media (min-width: 1000px) and (max-width: 1600px) { html { zoom: .8; } }
@media (min-width: 1601px) and (max-width: 2100px) { html { zoom: .9; } }

/* Jogo de ritmo: escolha de dificuldade */
.ritmo-niveis { display: flex; gap: 8px; flex-wrap: wrap; }
.ritmo-niveis button { flex: 1; min-width: 80px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--vidro-borda); background: rgba(255,255,255,.05); color: #fff; font-weight: 700; }
.ritmo-niveis button small { display: block; font-weight: 600; font-size: 11px; color: #A9B2D6; margin-top: 3px; }
.ritmo-niveis button[aria-pressed="true"] { border-color: var(--neon-ciano); box-shadow: 0 0 16px rgba(46,230,255,.35); }

/* Seletor de região */
.regiao-sel { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: .95rem; flex-wrap: wrap; }
.regiao-sel select { padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; min-width: 210px; }
.regiao-sel select option { background: #0D1230; color: #E8ECFF; }

/* Fofocas */
.fofocas { display: grid; gap: 10px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fofoca { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--vidro-borda); color: #E8ECFF; transition: transform .15s, box-shadow .2s; }
.fofoca:hover { box-shadow: 0 0 22px rgba(255,79,216,.25); border-color: rgba(255,79,216,.45); }
.fofoca .tit { font-weight: 700; line-height: 1.35; }
.fofoca .meta { font-size: .82rem; color: #A9B2D6; }
.fofoca-top { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(255,79,216,.18), rgba(46,230,255,.10)); }
.fofoca-top .tit { font-size: 1.25rem; }

/* Cliques firmes: nada se mexe no hover, no foco ou ao apertar (antes os cartões e botões andavam e o clique errava o alvo) */
:focus-visible { transform: none !important; }
button:active, .btn-prim:active, .btn-sec:active { transform: none !important; }
.sol-btn-modern:hover, .dst-ouvir:hover { transform: none !important; }
html { scroll-behavior: auto !important; }
/* Respostas do quiz voltam a mostrar certo e errado */
.quiz-opcoes button.certa { background: #1f9d6b !important; border-color: #1f9d6b !important; color: #fff !important; }
.quiz-opcoes button.errada { background: #b5384a !important; border-color: #b5384a !important; color: #fff !important; }

/* jogo de ritmo: vidas, fim de jogo e ranking */
.ritmo-vidas { font-size: 16px; letter-spacing: 1px; }
.ritmo-fim { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; gap: 6px; padding: 20px; background: rgba(4,5,13,.86); }
.ritmo-fim[hidden] { display: none; }
.ritmo-fim h3 { margin: 0; font-size: 2rem; }
.ritmo-fim-pts { margin: 0; font-size: 2.6rem; font-weight: 800; color: #FFC145; text-shadow: 0 0 18px rgba(255,193,69,.6); }
.ritmo-fim-msg { margin: 0 0 12px; color: #A9B2D6; min-height: 1.3em; }
.ritmo-fim-bot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ritmo-ranking { margin-top: 10px; }
.ritmo-rk-tit { margin: 0 0 4px; font-weight: 800; font-size: .9rem; }
.ritmo-ranking .esp-ranking-lista { margin-top: 4px; }
.ritmo-ranking .esp-ranking-lista li { grid-template-columns: 34px 1fr auto; padding: 6px 10px; font-size: .86rem; }
.ritmo-ranking .esp-ranking-lista .ac { display: none; }
.ritmo-rk-voce { margin: 6px 0 0; font-size: .82rem; color: #A9B2D6; }
.voz-btn[hidden] { display: none !important; }
