/* Rota do Futuro: identidade do Igam (manual 2026) e do Painel SEIRH, 30/11/2026.
   Carregado por último em todas as páginas: troca cores, letras e acabamento, sem mexer na lógica do jogo. */
@font-face { font-family: "Montserrat"; src: url("/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --b: #0F67B0;      /* azul Igam: ações principais */
  --b2: #10A5DD;     /* ciano */
  --a: #87D0EF;      /* azul claro */
  --sky: #EAF4FB;
  --ink: #263C4C;    /* grafite */
  --mut: #4F6577;
  --line: #DCE5EC;
  --g: #28785B;      /* verde Igam */
  --y: #E8B64C;
  --r: #C65F42;      /* terracota */
  --pur: #5B4FB0;
  --igam-noite: #0b3a5e;
}
html, body { font-family: "Inter", "Segoe UI", Arial, sans-serif; }
h1, h2, h3, .gameTitle, .wood, .header h2, .top h1, .btn, .nav, .kpi b, .placeName, .swimText {
  font-family: "Montserrat", "Inter", Arial, sans-serif;
}
/* faixa "VPS · servidor próprio": informação técnica, não aparece para as pessoas */
body > div[style*="#fff3cd"] { display: none !important; }
:focus-visible { outline: 3px solid #10A5DD !important; outline-offset: 2px; }
.btn { border-radius: 10px; font-weight: 700; letter-spacing: .01em; min-height: 40px; transition: filter .15s, transform .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.primary { background: var(--b); }
.secondary { background: #EAF1F7; color: var(--ink); }
.warning { background: #F3C559; color: #3d2c00; }
.success { background: var(--g); }
.danger { background: var(--r); }
.top { background: linear-gradient(120deg, var(--igam-noite), var(--b)) !important; }

/* ---------------- telão ---------------- */
body.rf-tela {
  background: radial-gradient(1200px 700px at 70% 110%, rgba(16,165,221,.35), transparent 60%),
              linear-gradient(180deg, #072a45 0%, var(--igam-noite) 45%, #0d5c95 100%) !important;
}
body.rf-tela .wood {
  background: rgba(255,255,255,.12) !important; border: 1.5px solid rgba(135,208,239,.6) !important;
  color: #fff !important; box-shadow: none !important; border-radius: 999px !important;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700 !important; text-shadow: none !important;
  backdrop-filter: blur(4px);
}
body.rf-tela .wood::before, body.rf-tela .wood::after { display: none !important; }
body.rf-tela .gameTitle { font-weight: 800 !important; letter-spacing: .02em; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
body.rf-tela .screen h1 { color: #fff !important; font-family: "Montserrat", Arial, sans-serif; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
/* peixes de fundo: o desenho original, agora nadando (igam-tela.js move cada um) */
body.rf-tela .fixedFish { will-change: transform; transition: none !important; }
body.rf-tela .fixedFishLayer { pointer-events: none; }
/* bolhas subindo */
.rf-bolhas { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.rf-bolha { position: absolute; bottom: -20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(255,255,255,.05) 60%);
  animation: rf-sobe linear forwards; }
@keyframes rf-sobe { to { transform: translate(var(--deriva, 0), calc(-100vh - 40px)); opacity: 0; } }
/* luz na água */
.rf-luz { position: fixed; inset: -20% -10% auto; height: 70%; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(100deg, rgba(135,208,239,.07) 0 40px, transparent 40px 120px);
  filter: blur(6px); animation: rf-luz 14s ease-in-out infinite alternate; }
@keyframes rf-luz { from { transform: translateX(-3%) skewX(-4deg); } to { transform: translateX(3%) skewX(4deg); } }
/* peixes das equipes na espera: balançam como se estivessem na água */
body.rf-tela .fishrow .fish img, body.rf-tela .fishrow img { animation: rf-boia 3.2s ease-in-out infinite; }
body.rf-tela .fishrow > *:nth-child(2n) img { animation-delay: -1.1s; }
body.rf-tela .fishrow > *:nth-child(3n) img { animation-delay: -2.2s; }
@keyframes rf-boia { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
body.rf-tela .fishrow .fish div, body.rf-tela .fishrow b, body.rf-tela .fishrow span { color: #EAF4FB !important; font-weight: 600; }
/* logotipo do Igam (arquivo oficial, sem alteração) */
.rf-logo { position: fixed; left: 28px; top: 22px; height: 46px; width: auto; z-index: 5; opacity: .95; pointer-events: none; }
/* botão de fechar o telão: aparece só quando o mouse mexe */
.rf-fechar { position: fixed; right: 18px; top: 18px; z-index: 100000; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(7,42,69,.85); color: #fff; border-radius: 999px;
  padding: 10px 16px; font: 600 14px "Inter", Arial, sans-serif; cursor: pointer; opacity: 0; transition: opacity .25s; }
.rf-fechar.visivel { opacity: 1; }
.rf-fechar svg { flex: none; }
.rf-aviso-fechar { position: fixed; right: 18px; top: 66px; z-index: 100000; max-width: 300px; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 12px 14px; font: 14px/1.4 "Inter", Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------------- celular das equipes ---------------- */
body.rf-equipe { background: linear-gradient(180deg, var(--igam-noite), #0d5c95) !important; }
body.rf-equipe .answer { min-height: 58px !important; font-size: 17px !important; font-weight: 600; border-radius: 14px !important;
  text-align: left; padding: 12px 16px !important; line-height: 1.3; }
body.rf-equipe .answer:active { transform: scale(.98); }
body.rf-equipe textarea#txt { font-size: 17px !important; min-height: 110px; border-radius: 12px; }
body.rf-equipe #sendText { min-height: 52px; font-size: 17px; width: 100%; }
body.rf-equipe .teamResult { font-size: 17px; line-height: 1.5; border-radius: 14px; }
body.rf-equipe .note { font-size: 16px; }
body.rf-equipe .answerHint { font-size: 15px; }

/* ---------------- administrador ---------------- */
.rf-chip-telao { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 12px; font: 600 13px "Inter", Arial, sans-serif; }
.rf-chip-telao i { width: 8px; height: 8px; border-radius: 50%; background: #7CE0A8; display: inline-block; }
.rf-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100001; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font: 600 15px "Inter", Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  max-width: calc(100vw - 32px); }
.nav { border-radius: 10px !important; font-weight: 600 !important; }
.nav.active { background: #E4EFF9 !important; color: var(--b) !important; box-shadow: inset 3px 0 0 var(--b); }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr !important; }
  .sidebar { display: flex; gap: 6px; overflow-x: auto; border-right: 0 !important; border-bottom: 1px solid var(--line);
    padding: 8px 10px !important; position: sticky; top: 0; z-index: 20; -webkit-overflow-scrolling: touch; }
  .sidebar .navTitle { display: none; }
  .sidebar .nav { flex: none; width: auto !important; white-space: nowrap; margin: 0 !important; min-height: 44px; }
  .main { padding: 14px !important; }
  .grid2, .grid3, .kpis { grid-template-columns: 1fr !important; }
  .header h2 { font-size: 22px !important; }
  .actions .btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-bolhas, .rf-luz { display: none !important; }
  body.rf-tela .fishrow img { animation: none !important; }
}

/* ajustes da prévia (30/11/2026): peixes atrás do conteúdo, texto claro sobre o azul, menu do celular numa linha só */
body.rf-tela .fixedFishLayer { z-index: 0 !important; }
body.rf-tela .rf-luz, body.rf-tela .rf-bolhas { z-index: 0; }
body.rf-tela .screen { position: relative; z-index: 2; }
body.rf-tela .screen > .center > p, body.rf-tela .waitText, body.rf-tela .screen .small { color: #EAF4FB !important; }
@media (max-width: 760px) {
  .sidebar { flex-wrap: nowrap !important; display: flex !important; flex-direction: row !important; }
  .top { flex-wrap: wrap; }
}
body.rf-tela .screen div[style*="font-size:21px"] { color: #EAF4FB !important; }

/* =====================  visual novo, mais visível (30/11/2026, 2ª rodada)  ===================== */
/* ícones desenhados no lugar dos emojis (igam.js troca o texto pelo desenho) */
.rf-ico { display: inline-flex; vertical-align: -0.16em; width: 1.05em; height: 1.05em; margin-right: .1em; }
.rf-ico svg { width: 100%; height: 100%; }
.rf-ico.rf-ponto { width: .7em; height: .7em; vertical-align: 0; margin-right: .3em; }

/* ---------- administrador no padrão do Painel SEIRH: fundo claro, cabeçalho branco com o logotipo ---------- */
html:has(body.rf-admin), body.rf-admin { background: #F3F7FA !important; }
body.rf-admin .top { background: #fff !important; color: var(--ink) !important; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15,103,176,.06); padding: 12px 22px !important; }
body.rf-admin .top h1 { color: var(--ink) !important; font-size: 19px !important; font-weight: 700; }
body.rf-admin .top .small { color: var(--mut) !important; }
body.rf-admin .top #serverInfo { color: var(--mut); font-size: 13px; }
body.rf-admin .top #serverInfo b { color: var(--b); }
.rf-logo-topo { height: 34px; width: auto; margin-right: 14px; border-right: 1px solid var(--line); padding-right: 14px; }
body.rf-admin .top > div:first-child { display: flex; flex-direction: column; }
body.rf-admin .rf-marca { display: flex; align-items: center; }
body.rf-admin .rf-chip-telao { background: #EAF4FB; color: var(--b); border-color: #C9E2F3; }
body.rf-admin .sidebar { background: #fff !important; }
body.rf-admin .nav { color: var(--ink) !important; font-size: 15px; display: flex; align-items: center; gap: 8px; }
body.rf-admin .nav .rf-ico { color: var(--b); width: 18px; height: 18px; }
body.rf-admin .main { background: #F3F7FA !important; }
body.rf-admin .card, body.rf-admin .kpi { border: 1px solid var(--line) !important; border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(38,60,76,.05) !important; background: #fff !important; }
body.rf-admin .kpi { border-left: 4px solid var(--b) !important; }
body.rf-admin .kpi b { color: var(--ink); font-size: 28px !important; }
body.rf-admin .hero { background: #fff !important; border: 1px solid var(--line) !important; border-top: 4px solid var(--b) !important; }
body.rf-admin .header h2 { color: var(--ink) !important; font-weight: 800; }
body.rf-admin .header p { color: var(--mut) !important; }
body.rf-admin .btn { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: none !important; }
body.rf-admin .btn.big { font-size: 15px !important; }
body.rf-admin .purple { background: #5B4FB0 !important; }
body.rf-admin .pink { background: #C65F42 !important; }
body.rf-admin .note { border-radius: 10px !important; }

/* ---------- telão: alternativas nas cores do Igam, com a letra em destaque ---------- */
body.rf-tela .opts .opt { background: none; border: 0 !important; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(0,0,0,.22) !important;
  font-family: "Montserrat", Arial, sans-serif !important; font-weight: 700 !important; display: flex; align-items: center; }
body.rf-tela .opts .opt:nth-child(1) { background: linear-gradient(135deg, #0F67B0, #1479C8) !important; }
body.rf-tela .opts .opt:nth-child(2) { background: linear-gradient(135deg, #B47B2B, #C88F3A) !important; }
body.rf-tela .opts .opt:nth-child(3) { background: linear-gradient(135deg, #28785B, #33906D) !important; }
body.rf-tela .opts .opt:nth-child(4) { background: linear-gradient(135deg, #C65F42, #D47457) !important; }
body.rf-tela .opts .opt:nth-child(5) { background: linear-gradient(135deg, #5B4FB0, #6E62C4) !important; }
body.rf-tela .rf-letra { flex: none; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; margin-right: .6em; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #0b3a5e; font-weight: 800; }
body.rf-tela .opt.correct { outline: 6px solid #fff !important; box-shadow: 0 0 0 12px rgba(124,224,168,.55), 0 10px 30px rgba(0,0,0,.25) !important; }
body.rf-tela .qbox, body.rf-tela .question, body.rf-tela .qtext { border-radius: 20px !important; }
body.rf-tela .scorelist > div, body.rf-tela .correctList > div { border-radius: 14px !important; }

/* ---------- celular: alternativas com as mesmas cores e letras do telão ---------- */
body.rf-equipe .answer { color: #fff !important; border: 0 !important; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: flex !important; align-items: center; gap: 10px; }
body.rf-equipe .answer:nth-of-type(1) { background: #0F67B0 !important; }
body.rf-equipe .answer:nth-of-type(2) { background: #B47B2B !important; }
body.rf-equipe .answer:nth-of-type(3) { background: #28785B !important; }
body.rf-equipe .answer:nth-of-type(4) { background: #C65F42 !important; }
body.rf-equipe .answer:nth-of-type(5) { background: #5B4FB0 !important; }
body.rf-equipe .answer:disabled { opacity: .55; }
body.rf-equipe .rf-letra { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #0b3a5e; font-weight: 800; font-family: "Montserrat", Arial, sans-serif; }
body.rf-equipe .top { background: linear-gradient(120deg, #0b3a5e, #0F67B0) !important; }
.rf-logo-equipe { height: 28px; width: auto; display: block; margin-bottom: 6px; }

/* capa "Iniciar apresentação": transparente, com os peixes nadando atrás (antes cobria tudo) */
body.rf-tela .screenStartOverlay { background: rgba(7,42,69,.35) !important; backdrop-filter: none !important; z-index: 50 !important; }
body.rf-tela .screenStartBox { background: rgba(255,255,255,.96) !important; border-radius: 20px !important; padding: 28px 34px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.35) !important; border-top: 5px solid #0F67B0; text-align: center; }
body.rf-tela .screenStartBox h2 { font-family: "Montserrat", Arial, sans-serif; font-weight: 800; color: #0b3a5e; font-size: 30px !important; }
body.rf-tela .screenStartBox .rf-logo-capa { height: 44px; width: auto; display: block; margin: 0 auto 10px; }
/* administrador: títulos das seções escuros sobre o fundo claro; logotipo ao lado do título */
body.rf-admin .main > .page > .header h2, body.rf-admin #access .header h2 { color: var(--ink) !important; }
body.rf-admin .main > .page > .header p, body.rf-admin #access .header p { color: var(--mut) !important; }
body.rf-admin .top > .rf-marca { display: flex !important; flex-direction: row !important; align-items: center; }
body.rf-admin .top > .rf-marca > div { display: flex; flex-direction: column; }

/* =====================  cara de jogo (30/11/2026, 3ª rodada)  ===================== */
/* a área do jogo fica transparente: os peixes, bolhas e luz aparecem atrás de tudo */
body.rf-tela .screen { background: transparent !important; }
body.rf-tela {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(16,165,221,.30), transparent 60%),
    radial-gradient(1000px 700px at 85% 110%, rgba(40,120,91,.30), transparent 60%),
    linear-gradient(180deg, #04213a 0%, #0b3a5e 45%, #0d5c95 100%) !important;
  background-attachment: fixed !important;
}
/* faixa da rodada: placa brilhante */
body.rf-tela .wood { position: relative; overflow: hidden; padding: 10px 26px !important; font-size: 18px !important;
  background: linear-gradient(90deg, rgba(16,165,221,.35), rgba(15,103,176,.35)) !important; }
body.rf-tela .wood::after { content: ""; display: block !important; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: rf-brilho 3.6s ease-in-out infinite; }
@keyframes rf-brilho { 60%, 100% { transform: translateX(120%); } }
/* título do jogo */
body.rf-tela .gameTitle { font-size: clamp(56px, 7vw, 110px) !important; background: linear-gradient(180deg, #fff 30%, #87D0EF);
  -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 6px 24px rgba(16,165,221,.45)); }
/* cartão da pergunta: vidro, letra grande, entra com movimento */
body.rf-tela .qbox { background: rgba(255,255,255,.97) !important; border: 0 !important; border-radius: 26px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 6px rgba(135,208,239,.25) !important; max-width: 1280px; animation: rf-entra .5s cubic-bezier(.2,1.4,.4,1) both; }
body.rf-tela .screenQ { font-family: "Montserrat", Arial, sans-serif !important; font-weight: 800 !important; font-size: clamp(28px, 2.6vw, 46px) !important; color: #0b3a5e !important; line-height: 1.2; }
@keyframes rf-entra { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
/* alternativas: entram uma a uma, maiores, com brilho */
body.rf-tela .opts { max-width: 1280px; margin: 0 auto; gap: 18px !important; }
body.rf-tela .opts .opt { min-height: 110px !important; font-size: clamp(24px, 2vw, 34px) !important; padding: 20px 26px !important; position: relative; overflow: hidden;
  animation: rf-pula .45s cubic-bezier(.2,1.5,.4,1) both; }
body.rf-tela .opts .opt:nth-child(2) { animation-delay: .08s; } body.rf-tela .opts .opt:nth-child(3) { animation-delay: .16s; } body.rf-tela .opts .opt:nth-child(4) { animation-delay: .24s; }
body.rf-tela .opts .opt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 45%); pointer-events: none; }
@keyframes rf-pula { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
body.rf-tela .rf-letra { width: 2.1em; height: 2.1em; font-size: .9em; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
/* na revelação: a certa pulsa, as outras apagam */
body.rf-tela .opts:has(.opt.correct) .opt:not(.correct) { opacity: .38; filter: saturate(.4); transform: scale(.97); transition: all .4s; }
body.rf-tela .opt.correct { animation: rf-certa 1.2s ease-in-out infinite !important; z-index: 2; }
@keyframes rf-certa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
/* cronômetro: anel grande que brilha; nos últimos segundos fica vermelho e pulsa (igam.js marca .rf-pouco) */
body.rf-tela .timer { width: 130px !important; height: 130px !important; border-radius: 50% !important; display: grid !important; place-items: center;
  margin: 22px auto 8px !important; padding: 0 !important; font-family: "Montserrat", Arial, sans-serif; font-size: 42px !important; font-weight: 800 !important;
  color: #0b3a5e !important; background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(#10A5DD var(--rf-resta, 100%), rgba(255,255,255,.25) 0) !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 0 40px rgba(16,165,221,.55) !important; border: 0 !important; }
body.rf-tela .timer.rf-pouco { color: #C65F42 !important; animation: rf-tique 1s ease-in-out infinite;
  background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(#C65F42 var(--rf-resta, 100%), rgba(255,255,255,.25) 0) !important; box-shadow: 0 0 40px rgba(198,95,66,.7) !important; }
@keyframes rf-tique { 50% { transform: scale(1.08); } }
/* barra "x de 12 responderam" (igam.js cria) */
.rf-barra-resp { max-width: 560px; margin: 6px auto 0; height: 14px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.rf-barra-resp i { display: block; height: 100%; width: var(--rf-resp, 0%); background: linear-gradient(90deg, #87D0EF, #10A5DD); border-radius: 999px; transition: width .5s cubic-bezier(.2,1.2,.4,1); }
body.rf-tela .responseTicker, body.rf-tela .responseStage { color: #EAF4FB; }
body.rf-tela .responsePill { animation: rf-pula .4s cubic-bezier(.2,1.5,.4,1) both; border-radius: 999px !important; }
/* ranking em raias: cada peixe avança na sua raia conforme a pontuação (igam.js calcula --rf-avanco) */
body.rf-tela .correctList { max-width: 1280px; background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.15) !important; border-radius: 22px !important; padding: 14px !important; }
body.rf-tela .correctList .score { position: relative; display: grid !important; grid-template-columns: 70px 1fr 120px; align-items: center; min-height: 58px;
  background: rgba(255,255,255,.95) !important; border-radius: 14px !important; margin-bottom: 8px !important; overflow: hidden; animation: rf-entra .45s both; }
body.rf-tela .correctList .score:nth-child(n) { animation-delay: calc(var(--rf-i, 0) * 60ms); }
body.rf-tela .correctList .score::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--rf-avanco, 0%);
  background: linear-gradient(90deg, rgba(135,208,239,.35), rgba(16,165,221,.45)); transition: width 1.2s cubic-bezier(.2,1,.3,1); z-index: 0; }
body.rf-tela .correctList .score > * { position: relative; z-index: 1; }
body.rf-tela .correctList .score.top { box-shadow: 0 0 0 3px #E8B64C, 0 8px 24px rgba(232,182,76,.35) !important; }
body.rf-tela .correctList .rank { font-family: "Montserrat", Arial, sans-serif; font-size: 24px; color: #0b3a5e; }
body.rf-tela .correctList .rank .rf-ico { width: 40px; height: 40px; }
body.rf-tela .correctList .teamline { gap: 14px !important; font-size: 22px; color: #0b3a5e; }
body.rf-tela .correctList .teamline img { width: 46px !important; height: 46px !important; transition: transform 1.2s cubic-bezier(.2,1,.3,1); }
body.rf-tela .correctList .pts { font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-size: 24px; color: #0F67B0; text-align: right; padding-right: 10px; }
/* pódio */
body.rf-tela .podium .place img { animation: rf-boia 2.6s ease-in-out infinite; }
body.rf-tela .winner { filter: drop-shadow(0 0 30px rgba(232,182,76,.6)); }

/* ---------- celular: cara de jogo ---------- */
body.rf-equipe { background: radial-gradient(600px 400px at 50% -10%, rgba(16,165,221,.35), transparent 60%), linear-gradient(180deg, #04213a, #0b3a5e 50%, #0d5c95) !important; background-attachment: fixed !important; min-height: 100vh; }
body.rf-equipe .card { border-radius: 22px !important; box-shadow: 0 20px 50px rgba(0,0,0,.3) !important; border: 0 !important; }
body.rf-equipe .answer { min-height: 66px !important; font-size: 18px !important; border-radius: 16px !important; animation: rf-pula .35s cubic-bezier(.2,1.5,.4,1) both; transition: transform .1s; }
body.rf-equipe .answer:nth-of-type(2) { animation-delay: .05s; } body.rf-equipe .answer:nth-of-type(3) { animation-delay: .1s; } body.rf-equipe .answer:nth-of-type(4) { animation-delay: .15s; }
body.rf-equipe .answer:active { transform: scale(.96) !important; }
body.rf-equipe .teamResult.correct { background: linear-gradient(135deg, #28785B, #33906D) !important; color: #fff !important; animation: rf-pula .45s both; }
body.rf-equipe .teamResult.incorrect { background: linear-gradient(135deg, #C65F42, #D47457) !important; color: #fff !important; animation: rf-pula .45s both; }
body.rf-equipe .teamResult b { font-family: "Montserrat", Arial, sans-serif; font-size: 22px; }
body.rf-equipe .card img:first-child { animation: rf-boia 3s ease-in-out infinite; }
body.rf-equipe .note { border-radius: 14px !important; font-weight: 600; text-align: center; padding: 18px !important; }

/* ---------- administrador: toques de jogo sem perder a sobriedade ---------- */
body.rf-admin .hero { background: linear-gradient(135deg, #0b3a5e, #0F67B0) !important; color: #fff !important; border: 0 !important; }
body.rf-admin .hero h2, body.rf-admin .hero h3, body.rf-admin .hero p, body.rf-admin .hero .small, body.rf-admin .hero div { color: #fff; }
body.rf-admin .hero .step { background: #87D0EF !important; color: #0b3a5e !important; }
body.rf-admin .kpi:nth-child(2) { border-left-color: #10A5DD !important; } body.rf-admin .kpi:nth-child(3) { border-left-color: #28785B !important; } body.rf-admin .kpi:nth-child(4) { border-left-color: #B47B2B !important; }
body.rf-admin .btn.success, body.rf-admin .btn.primary { box-shadow: 0 4px 12px rgba(15,103,176,.25) !important; }

@media (prefers-reduced-motion: reduce) {
  body.rf-tela .wood::after, body.rf-tela .opt.correct, body.rf-tela .timer.rf-pouco, body.rf-equipe .card img:first-child { animation: none !important; }
}

/* peixes visíveis de verdade: a camada de fundo original ("riverDecor") era opaca e ficava por cima deles */
body.rf-tela .riverDecor { background: none !important; z-index: 0 !important; }
body.rf-tela .fixedFishLayer { z-index: 1 !important; }
body.rf-tela .rf-luz, body.rf-tela .rf-bolhas { z-index: 1 !important; }
body.rf-tela .screen { z-index: 3 !important; }

/* =====================  pódio em degraus (30/11/2026)  ===================== */
body.rf-tela .podium { position: relative; display: flex !important; align-items: flex-end !important; justify-content: center !important;
  gap: 26px !important; min-height: 560px !important; padding-top: 150px !important; margin-top: 10px !important; flex-wrap: nowrap !important; }
/* holofote atrás do 1º lugar */
body.rf-tela .podium::before { content: ""; position: absolute; left: 50%; top: -40px; width: 620px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,236,170,.45), rgba(255,236,170,.08) 45%, transparent 70%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); pointer-events: none; z-index: 0; }
body.rf-tela .podium .place { position: relative; z-index: 1; width: 300px !important; min-height: 0 !important; padding: 104px 16px 22px !important;
  display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start;
  border-radius: 26px 26px 12px 12px !important; background: linear-gradient(180deg, rgba(255,255,255,.98), #EAF4FB) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.35) !important; border-top: 10px solid var(--rf-medalha, #87D0EF) !important; overflow: visible !important; }
body.rf-tela .podium .p1 { --rf-medalha: #E8B64C; height: 400px; }
body.rf-tela .podium .p2 { --rf-medalha: #C9D3DB; height: 320px; }
body.rf-tela .podium .p3 { --rf-medalha: #C9875A; height: 270px; }
body.rf-tela .podium .place img { position: absolute; left: 50%; top: -92px; transform: translateX(-50%); margin: 0 !important;
  width: 150px !important; height: 150px !important; border: 7px solid var(--rf-medalha) !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 0 44px var(--rf-medalha), 0 12px 30px rgba(0,0,0,.35) !important; animation: none !important; }
body.rf-tela .podium .p1 img { width: 180px !important; height: 180px !important; top: -112px; }
/* coroa desenhada sobre o 1º lugar */
body.rf-tela .podium .p1::after { content: ""; position: absolute; left: 50%; top: -168px; width: 86px; height: 60px; transform: translateX(-50%) rotate(-6deg);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 60'><path d='M6 52 L2 14 L24 32 L43 4 L62 32 L84 14 L80 52 Z' fill='%23E8B64C' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/><circle cx='43' cy='4' r='4' fill='%23fff'/><circle cx='2' cy='14' r='3.5' fill='%23fff'/><circle cx='84' cy='14' r='3.5' fill='%23fff'/><rect x='6' y='46' width='74' height='8' rx='3' fill='%23C99632'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); animation: rf-coroa 2.4s ease-in-out infinite; }
@keyframes rf-coroa { 50% { transform: translateX(-50%) rotate(6deg) translateY(-6px); } }
body.rf-tela .podium .placeNo { font-family: "Montserrat", Arial, sans-serif !important; font-size: 72px !important; font-weight: 800 !important;
  line-height: 1; color: var(--rf-medalha) !important; -webkit-text-stroke: 2px rgba(11,58,94,.25); margin: 0 0 6px !important; }
body.rf-tela .podium .p2 .placeNo { color: #8D9BA6 !important; }
body.rf-tela .podium .placeName { font-family: "Montserrat", Arial, sans-serif !important; }
/* entrada: cada degrau sobe quando é revelado */
body.rf-tela .podium .place.show { animation: rf-degrau .8s cubic-bezier(.2,1.3,.35,1) both; }
@keyframes rf-degrau { from { transform: translateY(120px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
body.rf-tela .podium .place:not(.show) { opacity: .12 !important; transform: translateY(40px) !important; }
body.rf-tela .podium .place:not(.show) img { filter: grayscale(1) blur(2px); }

/* silhuetas: mais claras e somem quando passam atrás do conteúdo (igam.js ajusta a transparência) */
body.rf-tela .fixedFish { filter: brightness(1.35) saturate(.6); transition: opacity .35s ease !important; }

/* =====================================================================================================
   LAYOUT NOVO "descida do rio" (30/11/2026, prévia)
   ===================================================================================================== */
/* cores e formas iguais no telão e no celular: A azul círculo, B âmbar triângulo, C verde quadrado, D coral losango */
body.rf-novo .rf-op1 { background: linear-gradient(135deg, #0F67B0, #1785DA) !important; }
body.rf-novo .rf-op2 { background: linear-gradient(135deg, #A66A12, #C98A22) !important; }
body.rf-novo .rf-op3 { background: linear-gradient(135deg, #1F7353, #2C9670) !important; }
body.rf-novo .rf-op4 { background: linear-gradient(135deg, #B8492B, #D8694A) !important; }
body.rf-novo .rf-op5 { background: linear-gradient(135deg, #5B4FB0, #7468CC) !important; }
.rf-forma { flex: none; display: inline-grid; place-items: center; color: #fff; }
.rf-forma svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
body.rf-tela.rf-novo .opts .opt { display: flex !important; align-items: center; gap: 16px; text-align: left; }
body.rf-tela.rf-novo .opts .opt .rf-forma svg { width: clamp(40px, 3.2vw, 60px); height: clamp(40px, 3.2vw, 60px); }
body.rf-equipe.rf-novo .answer { min-height: 76px !important; padding: 12px 16px !important; text-align: left; line-height: 1.25; }
body.rf-equipe.rf-novo .answer .rf-forma svg { width: 38px; height: 38px; }

/* ------------------------------- telão: trilha do rio no alto ------------------------------- */
.rf-hud { position: fixed; z-index: 6; top: 16px; left: 50%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
  font-family: "Montserrat", Arial, sans-serif; color: #fff; }
body.rf-em-jogo .rf-hud { display: flex; }
.rf-trilha { display: flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: rgba(4,33,58,.55); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.rf-no { display: flex; align-items: center; gap: 8px; opacity: .5; transition: opacity .4s; }
.rf-no-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); transition: all .4s; }
.rf-no-ico svg { width: 21px; height: 21px; }
.rf-no-nome { display: none; font-weight: 700; font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.rf-no.feito { opacity: .95; } .rf-no.feito .rf-no-ico { background: #2C9670; border-color: #7CE0A8; }
.rf-no.agora { opacity: 1; } .rf-no.agora .rf-no-nome { display: inline; }
.rf-no.agora .rf-no-ico { background: #fff; color: #0F67B0; border-color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.22), 0 0 22px rgba(120,210,255,.8); animation: rf-pulsa-no 2s ease-in-out infinite; }
.rf-elo { width: clamp(18px, 2.4vw, 46px); height: 4px; margin: 0 8px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background .4s; }
.rf-elo.feito { background: #7CE0A8; }
.rf-onde { display: flex; gap: 14px; align-items: baseline; font-size: 16px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.rf-onde b { font-weight: 800; } .rf-onde span { opacity: .9; font-weight: 600; }
.rf-onde:empty, .rf-onde b:empty + span:empty { display: none; }
@keyframes rf-pulsa-no { 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.1), 0 0 30px rgba(120,210,255,.95); } }
/* a faixa "Rodada 2 • 2 pt" original continua, só desce para dar lugar à trilha */
body.rf-tela.rf-novo.rf-em-jogo .screen { padding-top: 112px !important; }
body.rf-tela.rf-novo .screen { padding-bottom: 168px !important; }
body.rf-tela.rf-novo.rf-no-podio .screen { padding-bottom: 30px !important; }
/* cronômetro fixo no alto, à direita */
body.rf-tela.rf-novo .timer { position: fixed !important; top: 18px; right: 30px; margin: 0 !important; z-index: 7; }

/* ------------------------------- telão: faixa do rio com os peixes das equipes ------------------------------- */
.rf-rio { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; transition: transform .6s ease, opacity .6s; }
body.rf-no-podio .rf-rio { transform: translateY(100%); opacity: 0; }
.rf-rio-agua { position: absolute; inset: auto 0 0 0; width: 100%; height: 108px; }
.rf-rio-agua .a1 { fill: rgba(24,133,218,.55); animation: rf-mare 7s ease-in-out infinite alternate; }
.rf-rio-agua .a2 { fill: rgba(6,48,84,.88); animation: rf-mare 5s ease-in-out infinite alternate-reverse; }
@keyframes rf-mare { from { transform: translateX(-2.5%) scaleX(1.06); } to { transform: translateX(2.5%) scaleX(1.06); } }
.rf-rio-chegada { position: absolute; right: 10px; bottom: 62px; width: 34px; height: 34px; color: #FFE08A; opacity: .95; }
.rf-rio-chegada svg { width: 100%; height: 100%; }
.rf-rio-peixes { position: absolute; left: 30px; right: 70px; top: 0; bottom: 0; }
.rf-rp { position: absolute; bottom: 14px; width: 0; display: flex; flex-direction: column; align-items: center; transition: left 1.4s cubic-bezier(.3,1.3,.5,1); }
.rf-rp img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.35);
  animation: rf-nada 3s ease-in-out infinite; animation-delay: var(--rf-d, 0s); }
.rf-rp-nome { margin-top: 4px; font: 700 14px/1.15 "Inter", Arial, sans-serif; color: #fff; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.rf-rp-pos { min-height: 20px; margin-bottom: 2px; font: 800 14px/1 "Montserrat", Arial, sans-serif; color: #04213a; background: #fff; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.rf-rp-pos:empty { visibility: hidden; }
.rf-rp.lider img { border-color: #FFD25E; box-shadow: 0 0 0 4px rgba(255,210,94,.35), 0 6px 14px rgba(0,0,0,.35); }
.rf-rp.lider .rf-rp-pos { background: #FFD25E; }
.rf-rp.salto img { animation: rf-salto .9s cubic-bezier(.3,.6,.4,1) 1; }
@keyframes rf-nada { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes rf-salto { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-58px) rotate(-18deg) scale(1.12); } 70% { transform: translateY(6px) rotate(8deg); } 100% { transform: translateY(0) rotate(0); } }

/* ------------------------------- telão: onda entre perguntas e contagem 3-2-1 ------------------------------- */
.rf-onda { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 160vw; transform: translateX(-165vw); pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(23,133,218,.0) 4%, #1785DA 22%, #0b3a5e 50%, #1785DA 78%, transparent 100%); }
.rf-onda.vai { animation: rf-onda 1.05s cubic-bezier(.5,0,.4,1) 1; }
@keyframes rf-onda { from { transform: translateX(-165vw); } to { transform: translateX(105vw); } }
.rf-contagem { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #0d5c95, #04213a 70%); transition: opacity .3s; }
.rf-contagem.some { opacity: 0; }
.rf-contagem span { font: 900 min(46vh, 30vw)/1 "Montserrat", Arial, sans-serif; color: #fff; text-shadow: 0 0 60px rgba(120,210,255,.8); animation: rf-conta .75s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes rf-conta { from { transform: scale(.3); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
/* pódio: os peixes chegam saltando da água */
body.rf-tela.rf-novo .podium .place.show img { animation: rf-chega 1s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes rf-chega { from { transform: translateY(160px) rotate(-25deg) scale(.6); opacity: 0; } 60% { transform: translateY(-26px) rotate(8deg) scale(1.08); opacity: 1; } to { transform: none; opacity: 1; } }
/* miniatura dentro do painel: sem botão de fechar, sem logotipo duplicado */
body.rf-mini .rf-fechar, body.rf-mini .rf-aviso-fechar { display: none !important; }

/* ------------------------------- celular: posição da equipe na espera ------------------------------- */
.rf-posicao { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #0b3a5e, #0F67B0); box-shadow: 0 8px 20px rgba(4,33,58,.25); }
.rf-posicao-peixe { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; flex: none; animation: rf-nada 3s ease-in-out infinite; }
.rf-posicao small { display: block; font-size: 14px; opacity: .9; }
.rf-posicao b { display: block; font: 800 28px/1.1 "Montserrat", Arial, sans-serif; }
.rf-posicao span { display: block; font-size: 14px; opacity: .9; margin-top: 2px; }

/* ------------------------------- administrador: mesa de controle ------------------------------- */
.rf-passos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; padding: 0; }
.rf-passos li { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #5A6B78; background: #EEF3F7; }
.rf-passos li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #5A6B78; font-weight: 800; font-size: 13px; }
.rf-passos li.feito { color: #1F7353; background: #E3F3EC; } .rf-passos li.feito span { background: #1F7353; color: #fff; }
.rf-passos li.agora { color: #fff; background: #0F67B0; } .rf-passos li.agora span { color: #0F67B0; }
.rf-proximo { font: 700 12px/1 "Montserrat", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5A6B78; margin: 10px 0 6px; }
.rf-passos[hidden], .rf-proximo[hidden] { display: none !important; }
body.rf-admin.rf-novo #mainActions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
body.rf-admin.rf-novo #mainActions .rf-principal { flex: 1 1 100%; min-height: 76px; font-size: 20px !important; border-radius: 16px !important; box-shadow: 0 10px 24px rgba(15,103,176,.28) !important; }
body.rf-admin.rf-novo #mainActions button:not(.rf-principal) { min-height: 40px; font-size: 14px !important; opacity: .92; }
.rf-mini-telao { margin-bottom: 16px; }
.rf-mini-titulo { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; } .rf-mini-titulo b { font: 700 16px "Montserrat", Arial, sans-serif; } .rf-mini-titulo span { font-size: 12px; color: #5A6B78; }
.rf-mini-quadro { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #04213a; border: 1px solid #D5DEE5; }
.rf-mini-quadro iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .rf-rp img, .rf-posicao-peixe, .rf-no.agora .rf-no-ico, .rf-rio-agua .a1, .rf-rio-agua .a2, .rf-contagem span, body.rf-tela.rf-novo .podium .place.show img { animation: none !important; }
  .rf-rp { transition: none; }
}

/* o anel decorativo da versão original sobrava no canto de cada alternativa: vira só o brilho por cima */
body.rf-tela .opts .opt::after { width: auto !important; height: auto !important; flex: none !important; border: 0 !important; border-radius: inherit !important; box-shadow: none !important; margin: 0 !important; }
body.rf-tela .opts .opt { justify-content: flex-start !important; }
/* resultado de pergunta com alternativas: a certa já fica em destaque, então a caixa "Resposta correta" não se repete */
body.rf-tela.rf-novo .opts:has(.opt.correct) + .qbox { display: none !important; }
/* telas mais baixas (notebook no projetor): tudo um pouco mais compacto para caber acima do rio */
@media (max-height: 900px) {
  body.rf-tela.rf-novo .opts .opt { min-height: 78px !important; padding: 12px 20px !important; font-size: clamp(20px, 1.7vw, 26px) !important; }
  body.rf-tela.rf-novo .opts { gap: 12px !important; }
  body.rf-tela.rf-novo.rf-em-jogo .screen { padding-top: 104px !important; }
  body.rf-tela.rf-novo .screen { padding-bottom: 128px !important; }
  .rf-rio { height: 118px; } .rf-rio-agua { height: 86px; }
  .rf-rp img { width: 50px; height: 50px; } .rf-rp { bottom: 8px; } .rf-rp-nome { font-size: 13px; } .rf-rp-pos { font-size: 13px; min-height: 18px; padding: 2px 7px; }
  body.rf-tela.rf-novo .timer { width: 104px !important; height: 104px !important; }
}

/* "Mais rápido entre os corretos": o rótulo estava branco sobre fundo claro */
body.rf-tela .screen .winner .small { color: #6B4E00 !important; }
/* no ranking a faixa do rio sai (a própria lista já mostra a classificação) */
body.rf-no-ranking .rf-rio { transform: translateY(100%); opacity: 0; }
body.rf-tela.rf-novo.rf-no-ranking .screen { padding-bottom: 30px !important; }
/* resultado: "quem acertou" vira uma fileira de etiquetas, para caber acima do rio */
body.rf-tela.rf-novo .correctList:has(.correctLine) { display: flex !important; flex-wrap: wrap; gap: 8px 10px; justify-content: center; align-items: center;
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-top: 12px !important; max-width: 1280px; }
body.rf-tela.rf-novo .correctList:has(.correctLine) > b:first-child { flex: none; color: #fff !important; font: 700 18px "Montserrat", Arial, sans-serif; margin-right: 4px; }
body.rf-tela.rf-novo .correctList .correctLine { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; margin: 0 !important; padding: 6px 14px 6px 10px !important;
  border-radius: 999px !important; border: 0 !important; background: rgba(255,255,255,.95) !important; color: #123f59 !important; font-size: 17px !important; }
body.rf-tela.rf-novo .correctList .correctLine img { width: 34px !important; height: 34px !important; }
body.rf-tela.rf-novo .winner { margin-top: 12px !important; }
@media (max-height: 900px) {
  body.rf-tela.rf-novo .winner { padding: 8px 18px !important; }
  body.rf-tela.rf-novo .correctList .correctLine { font-size: 15px !important; padding: 4px 12px 4px 8px !important; }
  body.rf-tela.rf-novo .correctList .correctLine img { width: 28px !important; height: 28px !important; }
}
/* administrador: os quatro passos numa linha só */
.rf-passos li { padding: 5px 10px 5px 5px; font-size: 12px; white-space: nowrap; }
/* ranking: as 12 equipes em duas colunas (1º a 6º, 7º a 12º), para caber inteiro no telão */
body.rf-tela.rf-novo .correctList:has(.score) { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 10px 18px; max-width: 1500px !important; width: min(1500px, 94vw); }
body.rf-tela.rf-novo .center:has(.correctList .score) { max-width: 1500px !important; }
body.rf-tela.rf-novo .correctList .score { margin: 0 !important; }
@media (max-height: 900px) { body.rf-tela.rf-novo .correctList .score { min-height: 0 !important; padding-top: 8px !important; padding-bottom: 8px !important; } body.rf-tela.rf-novo .screen h1 { margin: 8px 0 !important; } }
/* tela de espera: nomes das equipes maiores e limpos (antes pequenos, com sombra escura) */
body.rf-tela.rf-novo .fishrow { gap: clamp(10px, 1.2vw, 22px) !important; flex-wrap: wrap; justify-content: center; }
body.rf-tela.rf-novo .fishrow .fish img { width: clamp(64px, 5.2vw, 96px) !important; height: clamp(64px, 5.2vw, 96px) !important; }
body.rf-tela.rf-novo .fishrow .fish span { display: block; margin-top: 8px; font: 700 clamp(14px, 1.05vw, 20px)/1.2 "Inter", Arial, sans-serif !important; color: #fff !important; text-shadow: none !important; background: rgba(4,33,58,.55); padding: 4px 10px; border-radius: 999px; }

body.rf-tela.rf-novo .fishrow .fish { width: auto !important; min-width: 96px; }

body.rf-tela.rf-novo .center:has(.fishrow) { max-width: 1560px !important; }
body.rf-tela.rf-novo .fishrow .fish { min-width: 0; }

/* telão visto em tela estreita (celular): o logotipo vai para o centro, acima do título, sem ficar por cima dele */
@media (max-width: 760px) {
  .rf-logo { height: 30px !important; top: 12px !important; left: 50% !important; transform: translateX(-50%); }
  body.rf-tela .screen { padding-top: 58px !important; }
  body.rf-tela .gameTitle { font-size: clamp(30px, 10vw, 54px) !important; line-height: 1.05 !important; }
}
/* layout novo em tela estreita: trilha abaixo do logotipo, cronômetro menor, peixes do rio sem nome */
@media (max-width: 760px) {
  .rf-hud { top: 50px; width: 96vw; } .rf-trilha { padding: 5px 10px; } .rf-no-ico { width: 28px; height: 28px; } .rf-no-ico svg { width: 16px; height: 16px; }
  .rf-elo { width: 10px; margin: 0 4px; } .rf-no-nome { font-size: 13px; } .rf-onde { font-size: 13px; gap: 8px; }
  body.rf-tela.rf-novo.rf-em-jogo .screen { padding-top: 132px !important; }
  body.rf-tela.rf-novo .screen { padding-bottom: 84px !important; padding-left: 12px !important; padding-right: 12px !important; }
  body.rf-tela.rf-novo .timer { width: 64px !important; height: 64px !important; font-size: 20px !important; top: 6px; right: 8px; }
  .rf-rio { height: 74px; } .rf-rio-agua { height: 56px; } .rf-rio-peixes { left: 14px; right: 30px; } .rf-rio-chegada { width: 20px; height: 20px; right: 4px; bottom: 30px; }
  .rf-rp { bottom: 8px; } .rf-rp img { width: 26px; height: 26px; border-width: 2px; } .rf-rp-nome { display: none; } .rf-rp-pos { font-size: 12px; padding: 1px 4px; min-height: 0; }
  body.rf-tela.rf-novo .opts { grid-template-columns: 1fr !important; }
  body.rf-tela.rf-novo .correctList:has(.score) { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  body.rf-tela.rf-novo .fishrow .fish img { width: 58px !important; height: 58px !important; } body.rf-tela.rf-novo .fishrow .fish span { font-size: 13px !important; padding: 2px 8px; }
}

@media (max-width: 760px) { .rf-fechar { top: auto !important; bottom: 12px !important; right: 12px !important; } }
@media (max-width: 760px) { body.rf-tela.rf-novo .screen { padding-bottom: 120px !important; } .rf-fechar { bottom: 84px !important; } }

/* celular: o logotipo acompanha a rolagem (preso no alto, ficava por cima do título ao rolar) */
@media (max-width: 760px) { .rf-logo { position: absolute !important; } }
/* celular, layout novo: nada preso por cima do conteúdo. A trilha rola junto com a página e o rio fica no fim dela. */
@media (max-width: 760px) {
  .rf-hud { position: absolute; }
  .rf-rio { position: relative; z-index: 4; margin-top: -74px; }
  body.rf-no-podio .rf-rio, body.rf-no-ranking .rf-rio { display: none; }
  body.rf-tela.rf-novo .screen { padding-bottom: 96px !important; }
  .rf-fechar { bottom: 12px !important; }
  body.rf-tela.rf-novo .fishrow { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px 6px !important; max-width: 420px; margin-left: auto !important; margin-right: auto !important; }
  body.rf-tela.rf-novo .fishrow .fish { width: auto !important; display: flex; flex-direction: column; align-items: center; }
  body.rf-tela.rf-novo .fishrow .fish img { width: 64px !important; height: 64px !important; }
  body.rf-tela.rf-novo .fishrow .fish span { margin-top: 6px; font-size: 13px !important; }
  body.rf-tela.rf-novo .screen div[style*="font-size:21px"] { font-size: 18px !important; margin-top: 18px !important; }
}

/* administrador, seção Pódio: sem a placa marrom/dourada e sem título escuro sobre o azul */
body.rf-admin #podium .screen { border-radius: 18px; background: radial-gradient(900px 500px at 50% 0, rgba(16,165,221,.35), transparent 60%), linear-gradient(180deg, #04213a, #0b3a5e 55%, #0d5c95) !important; min-height: 520px !important; }
body.rf-admin #podium .screen .wood { background: linear-gradient(120deg, #0b3a5e, #0F67B0) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.25) !important; padding: 9px 24px !important; font: 700 15px/1.2 "Montserrat", Arial, sans-serif !important; letter-spacing: .12em; text-shadow: none !important; }
body.rf-admin #podium .screen .wood::before, body.rf-admin #podium .screen .wood::after { display: none !important; }
body.rf-admin #podium .screen h2 { color: #fff !important; font-family: "Montserrat", Arial, sans-serif; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
/* lugares ainda não revelados: contorno claro e texto branco (antes, cinza apagado) */
body.rf-admin #podium .place:not(.show) { opacity: 1 !important; background: rgba(255,255,255,.10) !important; border: 2px dashed rgba(255,255,255,.45) !important; box-shadow: none !important; }
body.rf-admin #podium .place:not(.show) * { color: #fff !important; text-shadow: none !important; }
body.rf-admin #podium .place:not(.show) img { opacity: .55; filter: grayscale(.4); }

body.rf-admin #podium .screen { min-height: 0 !important; height: auto !important; overflow: hidden; padding-bottom: 32px !important; }
body.rf-admin #podium .place:not(.show) * { -webkit-text-fill-color: #fff !important; }

body.rf-admin #podium .place:not(.show) { transform: none !important; }
body.rf-admin #podium .podium { min-height: 0 !important; padding-top: 34px !important; }

/* pódio, lugares ainda NÃO revelados: só a silhueta de um peixe e "Peixe 1/2/3", sem mostrar a equipe nem os pontos
   (vale para o painel do administrador e para o telão) */
.podium .place:not(.show) img { content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'><circle cx='48' cy='48' r='48' fill='%230b3a5e'/><g fill='%23ffffff' fill-opacity='.92'><ellipse cx='42' cy='48' rx='24' ry='13'/><path d='M62 48 82 33v30Z'/></g><circle cx='31' cy='44' r='2.6' fill='%230b3a5e'/></svg>") !important;
  filter: none !important; opacity: 1 !important; background: #0b3a5e !important; }
.podium .place:not(.show) .placeName { visibility: hidden !important; position: relative; }
.podium .place:not(.show) .placeName::after { visibility: visible; position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; color: #fff; -webkit-text-fill-color: #fff; }
.podium .place.p1:not(.show) .placeName::after { content: "Peixe 1"; }
.podium .place.p2:not(.show) .placeName::after { content: "Peixe 2"; }
.podium .place.p3:not(.show) .placeName::after { content: "Peixe 3"; }
.podium .place:not(.show) .placeName ~ div { visibility: hidden !important; }
body.rf-tela .podium .place:not(.show) { opacity: .5 !important; }
body.rf-tela .podium .place:not(.show) .placeName::after { color: #123f59; -webkit-text-fill-color: #123f59; }

/* botão de som do telão (canto de cima, abaixo do logotipo): discreto, fica forte ao passar o mouse ou quando está sem som */
.rf-som { position: fixed; z-index: 8; left: 26px; top: 84px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(4,33,58,.55); color: #fff; font: 600 14px/1 "Inter", Arial, sans-serif; opacity: .55; transition: opacity .2s, background .2s; }
.rf-som svg { width: 22px; height: 22px; flex: none; }
.rf-som:hover, .rf-som:focus-visible { opacity: 1; }
.rf-som.mudo { opacity: 1; background: #B8492B; border-color: #fff; }
.rf-som:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) { .rf-som { position: absolute; left: 10px; top: 8px; padding: 6px 8px; } .rf-som span { display: none; } }
