/* Estilo compartilhado. Pensado para ser fácil de ler: letras grandes,
   botões grandes e bom contraste. */
:root {
  --bg: #fdf6ec;
  --card: #ffffff;
  --text: #222222;
  --muted: #555555;
  --primary: #b3261e;
  --primary-dark: #8c1d17;
  --green: #1e7d32;
  --green-dark: #155d25;
  --blue: #1f5fae;
  --whats: #1f8a3b;
  --border: #d9cbb8;
}
* { box-sizing: border-box; }
html { font-size: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 2rem; text-align: center; margin: 8px 0 4px; }
h2 { font-size: 1.4rem; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.step {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 1.6em; height: 1.6em;
  text-align: center; line-height: 1.6em;
  margin-right: 8px;
  font-weight: bold;
}
label { display: block; font-weight: bold; margin-bottom: 6px; }
input[type=text], input[type=password] {
  width: 100%;
  font-size: 1.1rem;
  padding: 14px;
  border: 2px solid #999;
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: inherit;
}
input:focus { outline: 3px solid var(--primary); border-color: var(--primary); }
button {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  min-height: 56px;
}
button:disabled { opacity: .6; cursor: wait; }
.btn-main { background: var(--primary); color: #fff; width: 100%; font-size: 1.3rem; min-height: 70px; }
.btn-main:hover { background: var(--primary-dark); }
.btn-add { background: var(--green); color: #fff; width: 100%; }
.btn-add:hover { background: var(--green-dark); }
.btn-light { background: #eee; color: var(--text); border: 2px solid #999; }
.btn-whats { background: var(--whats); color: #fff; }
.btn-copy { background: var(--blue); color: #fff; }
.btn-link { background: none; color: var(--blue); text-decoration: underline; min-height: 44px; padding: 8px; }
.full { width: 100%; }
.mt { margin-top: 12px; }
.people { list-style: none; padding: 0; margin: 16px 0 0; }
.people li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 1.15rem;
}
.people li:last-child { border-bottom: none; }
.people .remove { background: #fff; color: var(--primary); border: 2px solid var(--primary); padding: 6px 14px; min-height: 44px; font-size: 1rem; }
.count { color: var(--muted); margin-top: 8px; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 12px 0 0; font-weight: bold; }
.msg.error { background: #fde2e0; color: #8c1d17; }
.msg.ok { background: #dff3e2; color: #155d25; }
.msg.warn { background: #fff4d6; color: #5c4a00; border: 2px solid #e0b400; }
.result {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fffdf9;
}
.result .name { font-size: 1.35rem; font-weight: bold; }
.result .status { color: var(--muted); margin-bottom: 10px; }
.result .status.seen { color: var(--green-dark); font-weight: bold; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result .actions button { flex: 1 1 200px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sorteio-item {
  display: block; width: 100%; text-align: left;
  background: var(--card); color: var(--text);
  border: 2px solid var(--border); border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
}
.sorteio-item:hover { border-color: var(--primary); }
.sorteio-item .titulo { font-size: 1.3rem; display: block; }
.sorteio-item .detalhe { font-weight: normal; color: var(--muted); font-size: 1rem; display: block; }
.hidden { display: none !important; }
.optional { color: var(--muted); font-weight: normal; }

/* Tela de quem recebe o link */
.reveal { text-align: center; padding-top: 24px; }
.reveal .hello { font-size: 2rem; font-weight: bold; margin-bottom: 8px; }
.reveal .gift { font-size: 5rem; line-height: 1; margin: 16px 0; }
.reveal .big { font-size: 1.3rem; }
.secret {
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--primary);
  background: #fff;
  border: 4px dashed var(--primary);
  border-radius: 20px;
  padding: 24px 12px;
  margin: 16px 0;
  word-break: break-word;
}
.info { text-align: left; font-size: 1.15rem; }
.info div { margin-bottom: 6px; }
.segredo { background: #fff4d6; border: 2px solid #e0b400; border-radius: 12px; padding: 14px; font-weight: bold; margin-top: 16px; }

/* Lista de presentes */
textarea {
  width: 100%;
  font-size: 1.1rem;
  padding: 14px;
  border: 2px solid #999;
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
}
textarea:focus { outline: 3px solid var(--primary); border-color: var(--primary); }
.lista-presentes { white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
.esquerda { text-align: left; }
.mt-grande { margin-top: 28px; }
.btn-bloco {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 20px; border-radius: 12px;
  font-weight: bold; font-size: 1.1rem; text-decoration: none;
}
.link-grupo { word-break: break-all; color: var(--muted); font-size: .95rem; }
.acoes-grupo { display: flex; flex-wrap: wrap; gap: 10px; }
.acoes-grupo button { flex: 1 1 200px; }
