/* Página da Missão Fotográfica (usa as cores e botões do style.css) */
.missao-tela {
  max-width: 640px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 40px;
}
.missao-tela .hero h1 {
  font-family: 'Rye', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--brown);
  margin: 12px 0 6px;
  text-shadow: 3px 3px 0 #fff, 5px 5px 0 rgba(232, 96, 143, 0.45);
}

.m-caixa,
.m-topo {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(74, 42, 18, 0.12);
}
.m-caixa { display: flex; flex-direction: column; gap: 10px; }
.m-destaque { margin: 0 0 4px; font-size: 1.1rem; text-align: center; }
.m-label { font-family: 'Rye', Georgia, serif; color: var(--brown); font-size: 1.05rem; }
.m-caixa input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e6d6bd;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: 500 1.05rem 'Fredoka', sans-serif;
}
.m-caixa input:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.m-dica { margin: 0; font-size: 0.9rem; opacity: 0.7; }
.m-largo { width: 100%; text-align: center; }
.m-secundario { box-shadow: inset 0 0 0 2px rgba(74, 42, 18, 0.25); }
.m-link {
  border: 0;
  background: none;
  color: var(--pink);
  font: 600 0.95rem 'Fredoka', sans-serif;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

/* topo da lista: saudação + progresso */
.m-topo { position: sticky; top: 8px; z-index: 5; text-align: center; }
.m-topo .hero-kicker { margin-bottom: 6px; }
.m-ola { margin: 4px 0 10px; font-size: 1.05rem; }
.m-progresso p { margin: 6px 0 0; font-weight: 600; }
.m-barra { height: 16px; border-radius: 999px; background: #f1e3cc; overflow: hidden; }
.m-barra-cheia {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), #f2a33a);
  transition: width 0.6s ease;
}
.m-regras-btn { margin-top: 10px; padding: 8px 16px; font-size: 0.95rem; }

/* cards das missões */
.m-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.m-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(74, 42, 18, 0.1);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s;
}
.m-card:active { transform: scale(0.98); }
.m-card.feita { background: #eef9ef; box-shadow: inset 0 0 0 2px #7cc68a; }
.m-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream, #f6e7c8);
  font-size: 1.5rem;
}
.m-card.feita .m-num { background: #c9ecce; }
.m-card.recusada { background: #fff3f3; box-shadow: inset 0 0 0 2px #e57373; }
.m-card.recusada .m-info span { color: #b3261e; opacity: 1; font-weight: 600; }
.m-info { flex: 1; min-width: 0; }
.m-info strong { display: block; font-size: 1.02rem; }
.m-info span { display: block; font-size: 0.88rem; opacity: 0.75; line-height: 1.3; }
.m-status { flex: none; font-size: 1.4rem; }
.m-voltar { text-align: center; margin-top: 24px; }
.m-voltar a { color: var(--brown); font-weight: 600; }

/* títulos sobre a câmera / conferência */
.m-cam-titulo {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 75vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .m-cam-titulo { margin-left: 10px; }

/* janelas (missão, regras, parabéns) */
.m-janela {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 18, 8, 0.55);
}
.m-janela[hidden] { display: none; }
.m-janela-caixa {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 20px 16px;
  border-radius: 22px;
  background: #fffaf2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  animation: sobe 0.25s ease-out;
}
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.m-janela-caixa h2 { margin: 0; font-family: 'Rye', Georgia, serif; font-weight: 400; color: var(--brown); }
.m-janela-caixa p { margin: 0; line-height: 1.4; }
.m-janela-emoji { font-size: 3rem; line-height: 1; }
.m-regras { text-align: left; }
.m-regras h2 { text-align: center; }
.m-regras ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; }
.m-final { font-weight: 600; text-align: center; }
.m-parabens h2 { font-size: 1.8rem; color: var(--pink); }
.m-comprovante {
  padding: 12px 14px;
  border: 2px dashed var(--brown);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.m-comprovante[hidden] { display: none; }
.m-cartao-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(74, 42, 18, 0.25);
}
.m-cartao-img[hidden],
#btn-baixar-cartao[hidden],
#btn-compartilhar-cartao[hidden],
#btn-cartao[hidden] { display: none; }
.m-comprovante-titulo { font-family: 'Rye', Georgia, serif; color: var(--brown); text-align: center; }
.m-comprovante-nome { font-size: 1.3rem; font-weight: 700; text-align: center; margin: 4px 0 8px !important; }
.m-comprovante ul { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 0.92rem; }

/* aviso rápido (toast) */
.m-aviso {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #3f8f4f;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.m-aviso[hidden] { display: none; }
.m-confetes { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }
