/* Pesquisa anônima (pesquisa.mitsidi.com) e QR para projetar. Mesma identidade da arena. */
.tela-pesquisa { min-height: 100%; background: radial-gradient(120% 70% at 50% -10%, rgba(0,180,208,.22), transparent 60%), var(--bg-0); }
.psq { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 16px; }
.psq-topo { display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 2px 10px; }
.psq-logo { height: 26px; width: auto; }
.psq-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); background: rgba(101,197,180,.12); border: 1px solid rgba(101,197,180,.35); padding: 5px 10px 5px 8px; border-radius: 99px; }
.psq-selo svg { width: 15px; height: 15px; }
.psq-main { flex: 1; padding-bottom: 150px; }
.psq-centro { display: flex; align-items: center; justify-content: center; padding-bottom: 40px; }

.psq-cabec { padding: 6px 2px 14px; }
.psq-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: var(--amarelo); letter-spacing: .08em; text-transform: uppercase; }
.psq-cabec h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.12; margin: 6px 0 10px; font-weight: 900; }
.psq-cabec p { margin: 0 0 10px; color: var(--texto-2); font-size: 16px; line-height: 1.45; }
.psq-cabec p b { color: var(--texto); }
.psq-escala { display: flex; justify-content: space-between; gap: 10px; font-size: 14px !important; background: rgba(255,255,255,.04);
  border: 1px solid var(--linha); border-radius: 12px; padding: 9px 12px; }
.psq-escala b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-right: 6px; color: var(--opc-texto); background: var(--texto-2); font-size: 13px; }
.psq-escala span:last-child b { background: var(--turq); }

.psq-form { display: flex; flex-direction: column; gap: 12px; }
.psq-item { margin: 0; border: 1px solid var(--linha); border-radius: var(--raio); background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 14px 14px 12px; transition: border-color .2s, box-shadow .2s; scroll-margin: 90px 0 170px; }
.psq-item.feito { border-color: rgba(0,180,208,.45); }
.psq-item.pendente { border-color: var(--amarelo); box-shadow: 0 0 0 2px rgba(255,196,0,.35); }
.psq-item legend { display: flex; gap: 10px; align-items: flex-start; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
.psq-item legend + * { clear: both; }
.psq-num { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 17px;
  color: var(--opc-texto); background: var(--turq); }
.psq-num small { font-size: 11px; font-weight: 800; opacity: .7; }
.psq-item.feito .psq-num { background: var(--ok); }
.psq-texto { font-size: 17.5px; line-height: 1.38; font-weight: 600; }
.psq-texto small { color: var(--texto-3); font-weight: 600; }

.psq-notas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.psq-nota { position: relative; }
.psq-nota input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.psq-nota span { display: grid; place-items: center; height: 54px; border-radius: 14px; font-size: 22px; font-weight: 900;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14); color: var(--texto); transition: transform .12s var(--ease-mola), background .15s, border-color .15s; }
.psq-nota input:focus-visible + span { outline: 3px solid var(--turq-claro); outline-offset: 2px; }
.psq-nota input:active + span { transform: scale(.92); }
.psq-nota input:checked + span { color: var(--opc-texto); border-color: transparent; transform: scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.psq-nota.n1 input:checked + span { background: #FF8A65; }
.psq-nota.n2 input:checked + span { background: #FFB74D; }
.psq-nota.n3 input:checked + span { background: #FFE082; }
.psq-nota.n4 input:checked + span { background: #80DEEA; }
.psq-nota.n5 input:checked + span { background: var(--turq); }
.psq-extremos { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--texto-3); font-weight: 600; }

.psq-coment label { display: block; margin-bottom: 6px; }
.psq-aviso { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 9px 11px; border-radius: 10px; font-size: 14px; line-height: 1.35;
  background: rgba(255,196,0,.1); border: 1px solid rgba(255,196,0,.35); color: #FFE29A; font-weight: 600; }
.psq-aviso svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--amarelo); }
.psq-coment textarea { width: 100%; resize: vertical; min-height: 104px; border-radius: 12px; border: 1px solid var(--linha-forte); background: rgba(0,0,0,.25);
  padding: 11px 12px; font-size: 16px; line-height: 1.4; }
.psq-cont { display: block; text-align: right; font-size: 12px; color: var(--texto-3); margin-top: 4px; }

.psq-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6,18,25,.82), rgba(6,18,25,.97) 40%); backdrop-filter: blur(8px); border-top: 1px solid var(--linha); }
.psq-barra > * { max-width: 528px; margin-left: auto; margin-right: auto; }
.psq-progresso { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 9px; }
.psq-progresso i { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--teal)); border-radius: inherit; transition: width .35s var(--ease-out); }
.psq-barra-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psq-faltam { font-size: 15px; font-weight: 700; color: var(--texto-2); }
.psq-faltam.ok { color: var(--ok); }
.psq-enviar { font-size: 19px !important; padding: 14px 30px !important; }
.psq-enviar.inativo { opacity: .55; }
.psq-erro { color: #FFB4B4; font-weight: 700; font-size: 15px; }
.psq-erro:empty { display: none; }
.psq-erro-barra { margin-top: 6px; }
.psq-form > .psq-erro { padding: 10px 12px; border-radius: 12px; background: rgba(255,93,93,.12); border: 1px solid rgba(255,93,93,.4); }

.psq-fim { text-align: center; max-width: 420px; padding: 20px 6px; }
.psq-fim h1 { font-size: 32px; margin: 16px 0 10px; font-weight: 900; }
.psq-fim p { font-size: 17px; line-height: 1.45; color: var(--texto); margin: 0 0 10px; }
.psq-sub { color: var(--texto-2) !important; font-size: 15px !important; }
.psq-check, .psq-relogio { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.psq-check { background: var(--ok); color: var(--opc-texto); box-shadow: 0 0 0 10px rgba(61,220,151,.15), 0 0 50px rgba(61,220,151,.35); animation: psq-pop .55s var(--ease-mola) both; }
.psq-relogio { background: rgba(0,180,208,.14); color: var(--turq-claro); border: 2px solid rgba(0,180,208,.4); }
.psq-check svg, .psq-relogio svg { width: 52px; height: 52px; }
.psq-fim.entra { animation: psq-sobe .45s var(--ease-out) both; }
@keyframes psq-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes psq-sobe { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .psq-check, .psq-fim.entra { animation: none; } .psq-nota span { transition: none; } }
@media (max-width: 360px) { .psq-nota span { height: 48px; font-size: 20px; } .psq-texto { font-size: 16.5px; } }

/* ------------------------------------------------------------ projeção (telão da sala) */
.tela-projetar { min-height: 100%; overflow: hidden; background: radial-gradient(90% 80% at 75% 40%, rgba(0,180,208,.2), transparent 60%), var(--bg-0); }
.proj { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 5vw; padding: 5vh 6vw; }
.proj-logo { display: block; height: 5vh; min-height: 30px; margin-bottom: 4vh; }
.proj .psq-eyebrow { font-size: clamp(16px, 1.6vw, 26px); }
.proj h1 { font-size: clamp(34px, 4.4vw, 76px); line-height: 1.05; margin: 1.2vh 0 4vh; font-weight: 900; }
.proj-passos { margin: 0 0 4vh; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 1.8vh; }
.proj-passos li { counter-increment: p; display: flex; align-items: center; gap: 18px; font-size: clamp(18px, 2vw, 34px); font-weight: 700; }
.proj-passos li::before { content: counter(p); flex: none; width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center;
  background: var(--amarelo); color: var(--opc-texto); font-weight: 900; }
.proj-anon { display: flex; align-items: center; gap: 12px; color: var(--teal); font-size: clamp(15px, 1.5vw, 26px); font-weight: 700; margin: 0; }
.proj-anon svg { width: 1.3em; height: 1.3em; flex: none; }
.proj-qr-caixa { justify-self: center; text-align: center; }
.proj-qr { width: min(68vh, 40vw); aspect-ratio: 1; background: #fff; border-radius: 28px; padding: 3%; box-shadow: 0 0 0 8px rgba(0,180,208,.35), 0 30px 80px rgba(0,0,0,.5); }
.proj-qr svg { width: 100%; height: 100%; display: block; }
.proj-url { margin-top: 3.5vh; font-size: clamp(24px, 3.2vw, 56px); font-weight: 900; letter-spacing: .01em; color: var(--turq-claro); }
.proj-estado { margin-top: 2vh; display: inline-block; padding: .4em 1em; border-radius: 99px; background: rgba(255,196,0,.15); color: var(--amarelo);
  font-weight: 800; font-size: clamp(16px, 1.6vw, 26px); border: 1px solid rgba(255,196,0,.4); }
.proj-voltar { position: fixed; left: 14px; bottom: 12px; font-size: 13px; color: var(--texto-3); text-decoration: none; opacity: .5; }
.proj-voltar:hover { opacity: 1; }
@media (max-aspect-ratio: 1/1) { .proj { grid-template-columns: 1fr; text-align: center; } .proj-passos li, .proj-anon { justify-content: center; } .proj-qr { width: min(70vw, 52vh); } }

/* 1.5.0: aviso do ensaio */
.psq-teste { margin: 2px 0 12px; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; font-weight: 600;
  background: repeating-linear-gradient(-45deg, rgba(255,196,0,.12) 0 10px, rgba(255,196,0,.06) 10px 20px); border: 1px dashed rgba(255,196,0,.6); color: #FFE29A; }
.psq-teste b { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; background: var(--amarelo); color: var(--opc-texto); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
