/* ============================================================
   SORTEADOR: tela cheia do sorteio, Games › Sorteador e aba Brindes
   ============================================================ */
html.sorteio-aberto, html.sorteio-aberto body { overflow: hidden; }
.sorteio-tela, .sorteio-tela * { box-sizing: border-box; }
.sorteio-tela {
  --sorteio-cor: var(--rosa, #E13165);
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--sorteio-cor) 85%, #000) 0, color-mix(in srgb, var(--sorteio-cor) 30%, #000) 60%, #000 100%);
  color: #fff; font-family: var(--font, system-ui, sans-serif);
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: sorteio-entra .25s ease;
}
@keyframes sorteio-entra { from { opacity: 0; } }
.sorteio-topo { display: flex; justify-content: space-between; }
.sorteio-x { width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; }
.sorteio-meio { flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 0; overflow-y: auto; }
.sorteio-logo { max-height: 72px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; }
.sorteio-titulo { margin: 0; font-size: clamp(22px, 6vw, 44px); font-weight: 800; }
.sorteio-sub { margin: 0; opacity: .85; font-size: clamp(14px, 3.6vw, 20px); }
.sorteio-roleta { min-height: 1.3em; margin: 18px 0 6px; font-size: clamp(28px, 9vw, 84px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; max-width: 100%; }
.sorteio-titulo, .sorteio-sub { max-width: 100%; overflow-wrap: anywhere; }
.sorteio-tela.girando .sorteio-roleta { opacity: .8; filter: blur(.4px); }
.sorteio-tela.saiu .sorteio-roleta { color: var(--amarelo, #F0C104); animation: sorteio-pula .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sorteio-pula { 0% { transform: scale(.7); } 100% { transform: none; } }
.sorteio-ganhadores { margin: 0; padding: 0; list-style: none; counter-reset: g; font-size: clamp(16px, 4.5vw, 26px); font-weight: 700; }
.sorteio-ganhadores li { counter-increment: g; padding: 3px 0; }
.sorteio-ganhadores li::before { content: counter(g) "º  "; opacity: .7; }
.sorteio-conta { margin: 10px 0 0; opacity: .7; font-size: 13px; }
.sorteio-acoes { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; }
/* botões com estilo próprio: a tela também abre no programa do Circuito Turn, que não tem os estilos do painel */
.sorteio-acoes button { min-height: 50px; width: 100%; border: 0; border-radius: 999px; padding: 0 18px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; }
.sorteio-acoes .btn-rosa { background: #fff; color: color-mix(in srgb, var(--sorteio-cor) 80%, #000); }
@media (prefers-reduced-motion: reduce) { .sorteio-tela, .sorteio-tela.saiu .sorteio-roleta { animation: none; } }

/* ---------- Games ---------- */
.games-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.game-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 16px; border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 2px 14px rgba(20,22,40,.06); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.game-card:disabled { cursor: default; opacity: .6; }
.game-card .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--rosa); color: #fff; display: grid; place-items: center; font-size: 22px; }
.game-card b { display: block; font-size: 16px; }
.game-card small { color: var(--muted); font-size: 13px; }
.sorteador-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.sorteador-form textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.sorteador-form input[type="number"] { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--card); color: var(--ink); font-size: 16px; }
.gm-seg { display: flex; background: var(--soft); border-radius: 999px; padding: 4px; }
.gm-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.gm-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,.1); }
.contador { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contador > div { display: flex; align-items: center; gap: 8px; }
.contador button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 22px; font-weight: 700; cursor: pointer; }
.contador output { min-width: 32px; text-align: center; font-size: 18px; font-weight: 800; }
.check-linha { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.check-linha input { width: 22px; height: 22px; accent-color: var(--rosa); }
.duas-num { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duas-num label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.historico-sorteios { margin: 0; padding: 0; list-style: none; }
.historico-sorteios li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.historico-sorteios li small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 980px) {
  /* ação principal embaixo, ao alcance do polegar */
  .acao-fixa { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(transparent, var(--bg) 30%); }
}
.acao-fixa .btn-rosa { width: 100%; min-height: 52px; font-size: 16px; }

/* ---------- aba Brindes ---------- */
.br-turnos { display: flex; flex-wrap: wrap; gap: 8px; }
.br-turnos button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.br-turnos button[aria-pressed="true"] { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.br-cats { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.br-cats label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.br-cats input { width: 20px; height: 20px; accent-color: var(--rosa); }
.br-cats small { margin-left: auto; color: var(--muted); }
.br-atualizar { border: 0; background: none; padding: 0; min-height: 44px; color: var(--rosa); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.br-total { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--rosa-claro); font-weight: 700; }
.br-brinde { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.br-brinde:last-child { border-bottom: 0; }
.br-brinde img, .br-brinde .tt-patro-sig { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; }
.br-brinde > span { flex: 1; min-width: 0; }
.br-brinde b { display: block; }
.br-brinde small { color: var(--muted); font-size: 12.5px; }
.br-brinde .btn-rosa { min-height: 44px; flex: none; }
.br-ausente { text-decoration: line-through; opacity: .6; }

/* ===== Amigo secreto e aviso do cadastro breve (Mark 00017) ===== */
.aviso-games { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; text-align: left; cursor: pointer; font: inherit;
  background: color-mix(in srgb, var(--rosa) 14%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--rosa) 45%, var(--line)); color: var(--ink); min-height: 44px; }
.aviso-games b { font-size: 15px; }
.aviso-games span { color: var(--muted); font-size: 13px; }
.as-lista { display: grid; gap: 10px; }
.as-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); border: 0; min-height: 72px; }
.as-item .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--rosa); color: #fff; display: grid; place-items: center; }
.as-item .ic svg { width: 24px; height: 24px; }
.as-item b { display: block; font-size: 16px; }
.as-item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.as-item .as-sit { color: var(--rosa); font-weight: 700; }
.as-item .as-sit.ok { color: #1F9D55; }
.as-form, .as-desejos { max-width: 560px; }
.as-form textarea, .as-desejos textarea { min-height: 80px; }
.as-recado { white-space: pre-line; font-size: 14px; }
.as-tirei, .as-sortear, .as-convite { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 560px; }
.as-tirei { background: linear-gradient(160deg, color-mix(in srgb, var(--rosa) 20%, var(--card)), var(--card)); }
.as-tirei b, .as-convite b { font-size: 17px; }
.as-tirei span, .as-convite span, .as-sortear small { color: var(--muted); font-size: 13.5px; }
.as-tirei .btn-rosa, .as-sortear .btn-rosa { align-self: stretch; min-height: 48px; }
.as-lista-desejos { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14.5px; width: 100%; box-sizing: border-box; }
.as-mudou { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF4D6; color: #7A5200; font-size: 13px; font-weight: 600; }
.as-ok { color: #1F9D55; font-weight: 600; font-size: 14px; }
.as-botoes { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.as-botoes button { min-height: 44px; flex: 1 1 160px; }
.as-pessoas { max-width: 560px; }
.as-pessoas ul { list-style: none; margin: 8px 0 0; padding: 0; }
.as-pessoas li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-top: 1px solid var(--line); font-size: 14.5px; }
.as-pessoas li small { color: var(--muted); }
.as-pessoas .as-lista-ok { color: #1F9D55; }
.as-rodape { display: flex; gap: 18px; margin: 6px 0 24px; }
.link-leve.perigo { color: #C62828; }
.as-convite-entrar { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 440px; margin: 12px auto; padding: 28px 20px; }
.as-convite-entrar .as-presente { font-size: 48px; line-height: 1; }
.as-convite-entrar h2 { margin: 4px 0 0; }
.as-convite-entrar p { margin: 0; font-size: 15px; }
.as-convite-entrar small { color: var(--muted); }
.as-convite-entrar .btn-rosa { align-self: stretch; min-height: 48px; margin-top: 6px; }
.card.as-recado, .card.as-tirei, .card.as-sortear, .card.as-convite, .card.as-desejos, .card.as-pessoas { margin-top: 12px; }
