/* Sorteador · identidade visual oficial da Alpha Green (mesma do site da Alpha: marca.css / alpha.css).
   Preto profundo + verde neon #00F985 (#00E76B, #0E351B) + detalhe metálico (Silver White #C9EFE0).
   Fontes: Orbitron (marca/títulos principais) · Exo 2 (números e destaques) · Montserrat (rótulos/botões/menu) · Inter (texto).
   As fontes ficam em /fonts (subconjunto latino das fontes do Google Fonts, licença SIL Open Font License 1.1). */

@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("/fonts/orbitron.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("/fonts/exo2.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/montserrat.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --fundo: #000000;
  --superficie: #070b08;
  --superficie-2: #040604;
  --superficie-3: #0b120d;
  --texto: #effff7;
  --texto-suave: #9fb8ac;
  --texto-fraco: #5e7268;
  --borda: #13211a;
  --borda-2: #1b2e24;
  --destaque: #00f985;
  --destaque-2: #00e76b;
  --destaque-escuro: #0e351b;
  --destaque-suave: rgba(0, 231, 107, .1);
  --sobre-destaque: #00140a;
  --gradiente: linear-gradient(135deg, #00f985, #00e76b 50%, #0e8f45);
  --metal: #c9efe0;
  --prata: linear-gradient(135deg, #f2f6f4, #b9c4bf 55%, #7f8a85);
  --ok: #00e76b;
  --ok-suave: rgba(0, 231, 107, .1);
  --alerta: #f5c542;
  --alerta-suave: rgba(245, 197, 66, .1);
  --perigo: #ff5c5c;
  --perigo-suave: rgba(255, 92, 92, .1);
  --raio: 14px;
  --raio-p: 9px;
  --sombra: 0 18px 50px -24px rgba(0, 0, 0, .9);
  --marca: "Orbitron", "Exo 2", system-ui, sans-serif;
  --titulo: "Exo 2", "Arial Narrow", system-ui, sans-serif;
  --rotulo: "Montserrat", "Inter", system-ui, sans-serif;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fundo); }
body { margin: 0; min-height: 100vh; color: var(--texto); font: 16px/1.5 var(--fonte); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 520px at 50% -260px, rgba(0, 249, 133, .12), transparent 62%), var(--fundo); }
a { color: var(--destaque); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--marca); font-weight: 800; letter-spacing: .03em; font-size: clamp(1.35rem, 3.2vw, 2.1rem); overflow-wrap: anywhere; }
h2 { font-family: var(--marca); font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; text-transform: uppercase; margin-top: 1.5em; }
h3 { font-family: var(--rotulo); font-size: 1rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }
::selection { background: rgba(0, 249, 133, .3); }
.muted { color: var(--texto-suave); }
.pequeno { font-size: .85rem; }

/* Topo: logo horizontal da Alpha + selo "Sorteador" */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 20px; position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--borda);
  box-shadow: 0 1px 0 rgba(0, 249, 133, .06); }
.marca { display: inline-flex; align-items: center; gap: 12px; color: var(--texto); text-decoration: none; min-width: 0; }
.marca img { display: block; height: 36px; width: auto; filter: drop-shadow(0 0 14px rgba(0, 249, 133, .28)); transition: filter .2s; }
.marca:hover img { filter: drop-shadow(0 0 20px rgba(0, 249, 133, .5)); }
.selo-app { font-family: var(--rotulo); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--destaque);
  border: 1px solid rgba(0, 249, 133, .35); background: rgba(0, 249, 133, .06); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.menu a, .menu button { padding: 7px 12px; border-radius: var(--raio-p); color: var(--texto-suave); text-decoration: none; font-family: var(--rotulo); font-weight: 600; font-size: .86rem;
  background: none; border: 1px solid transparent; cursor: pointer; }
.menu a:hover, .menu button:hover { color: var(--texto); border-color: var(--borda-2); }
.menu a[aria-current="page"] { color: var(--destaque); border-color: rgba(0, 249, 133, .35); background: var(--destaque-suave); }
.menu .email { color: var(--texto-fraco); font-size: .82rem; padding: 0 6px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .topo { padding: 10px 16px; }
  .marca { gap: 8px; }
  .marca img { height: 26px; }
  .selo-app { font-size: .6rem; padding: 3px 8px; letter-spacing: .12em; }
  .menu .email { display: none; }
  .menu a, .menu button { padding: 6px 9px; font-size: .82rem; }
}

/* Layout */
.conteudo { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.estreito { max-width: 720px; }
.grade { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grade-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .grade-sorteio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .grade-sorteio .fixo { position: sticky; top: 84px; }
}
.cartao { background: linear-gradient(180deg, rgba(11, 18, 13, .92), rgba(7, 11, 8, .92)); border: 1px solid var(--borda-2); border-radius: var(--raio);
  padding: 22px; box-shadow: var(--sombra); min-width: 0; }
.cartao > h2:first-child, .cartao > h3:first-child { margin-top: 0; }
.cabecalho-pagina { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cabecalho-pagina h1 { margin: 0; }

/* Formulários */
label { display: block; font-family: var(--rotulo); font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--texto); }
.campo { margin-bottom: 14px; }
.ajuda { display: block; font-family: var(--fonte); font-weight: 400; color: var(--texto-suave); font-size: .8rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; font: 500 1rem/1.3 var(--fonte); color: var(--texto); background: var(--superficie-2); border: 1px solid var(--borda-2);
  border-radius: var(--raio-p); padding: 10px 12px; min-height: 46px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--texto-fraco); }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-suave) 50%), linear-gradient(135deg, var(--texto-suave) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: #0b120d; color: var(--texto); }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--destaque-2); box-shadow: 0 0 0 3px rgba(0, 231, 107, .18); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
.linha { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.linha > * { flex: 1 1 160px; }
.linha > .fixa { flex: 0 0 auto; }

/* Botões: principal com o gradiente oficial e texto escuro */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px;
  border: 1px solid transparent; background: var(--gradiente); color: var(--sobre-destaque); font: 700 .95rem/1.2 var(--rotulo); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 0 0 1px rgba(201, 239, 224, .18) inset, 0 8px 26px -10px rgba(0, 249, 133, .75); transition: filter .15s, border-color .15s, color .15s; }
.botao:hover { filter: brightness(1.07); }
.botao:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.botao.secundario { background: var(--superficie-3); color: var(--texto); border-color: var(--borda-2); box-shadow: none; }
.botao.secundario:hover { border-color: var(--destaque-2); color: var(--destaque); filter: none; }
.botao.perigo { background: var(--superficie-3); color: var(--texto-suave); border-color: var(--borda-2); box-shadow: none; }
.botao.perigo:hover { border-color: var(--perigo); color: var(--perigo); filter: none; }
.botao.grande { min-height: 56px; font-size: 1.05rem; width: 100%; text-transform: uppercase; letter-spacing: .08em; }
.botao.pequeno { min-height: 34px; padding: 5px 12px; font-size: .8rem; border-radius: 8px; }

/* Caixas de seleção no estilo .ag-toggle da Alpha */
.checagem { display: flex; gap: 12px; align-items: flex-start; font-family: var(--fonte); font-weight: 500; font-size: .93rem; cursor: pointer; margin-bottom: 14px; }
.checagem input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 24px; margin: 0; border-radius: 99px;
  background: var(--borda-2); cursor: pointer; transition: background .2s; }
.checagem input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.checagem input[type=checkbox]:checked { background: var(--destaque-2); box-shadow: 0 0 16px -4px rgba(0, 249, 133, .7); }
.checagem input[type=checkbox]:checked::after { transform: translateX(20px); }
.checagem input[type=checkbox]:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }
.checagem > span { padding-top: 1px; }
.checagem small { display: block; color: var(--texto-suave); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.checagem.desativada { opacity: .5; cursor: not-allowed; }
.checagem.desativada input { cursor: not-allowed; }

/* Interruptor (Fontes) */
.interruptor { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { width: 44px; height: 24px; border-radius: 99px; background: var(--borda-2); position: relative; transition: background .2s; flex: none; }
.interruptor .trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interruptor input:checked + .trilho { background: var(--destaque-2); box-shadow: 0 0 16px -4px rgba(0, 249, 133, .7); }
.interruptor input:checked + .trilho::after { transform: translateX(20px); }
.interruptor input:disabled + .trilho { opacity: .45; }
.interruptor input:focus-visible + .trilho { outline: 2px solid var(--destaque); outline-offset: 2px; }

/* Fonte dos participantes: chips no estilo .ag-chip */
.opcoes-fonte { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.opcoes-fonte label { margin: 0; }
.opcoes-fonte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcoes-fonte span { display: inline-block; padding: 8px 16px; border: 1px solid var(--borda-2); border-radius: 99px; cursor: pointer; font: 600 .86rem/1.3 var(--rotulo);
  background: var(--superficie-2); color: var(--texto-suave); transition: border-color .15s, color .15s; }
.opcoes-fonte span:hover { border-color: var(--destaque-2); color: var(--texto); }
.opcoes-fonte input:checked + span { border-color: var(--destaque-2); color: var(--destaque); background: rgba(0, 231, 107, .1); box-shadow: 0 0 18px -8px rgba(0, 249, 133, .8); }
.opcoes-fonte input:disabled + span { opacity: .45; cursor: not-allowed; }
.opcoes-fonte input:focus-visible + span { outline: 2px solid var(--destaque); outline-offset: 2px; }

/* Segmentado ("Uma por pessoa / Uma por comentário") no estilo .ag-tabs */
.segmentado { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--borda-2); border-radius: 10px; background: var(--superficie-2); width: 100%; }
.segmentado label { flex: 1; margin: 0; min-width: 0; }
.segmentado input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmentado span { display: block; text-align: center; padding: 9px 6px; border-radius: 7px; cursor: pointer; font: 600 .84rem/1.25 var(--rotulo); color: var(--texto-suave); }
.segmentado span:hover { color: var(--texto); }
.segmentado input:checked + span { background: var(--destaque); color: var(--sobre-destaque); box-shadow: 0 0 20px -8px rgba(0, 249, 133, .9); }
.segmentado input:focus-visible + span { outline: 2px solid var(--destaque); outline-offset: 2px; }

/* Mensagens */
.aviso { padding: 12px 14px; border-radius: var(--raio-p); margin-bottom: 16px; font-size: .93rem; border: 1px solid transparent; }
.aviso.erro { background: var(--perigo-suave); color: #ff8a8a; border-color: rgba(255, 92, 92, .4); }
.aviso.ok { background: var(--ok-suave); color: var(--destaque); border-color: rgba(0, 231, 107, .35); }
.aviso.info { background: linear-gradient(160deg, rgba(14, 53, 27, .55), rgba(4, 6, 4, .9)); color: var(--texto); border-color: rgba(0, 249, 133, .28); }
.aviso.atencao { background: var(--alerta-suave); color: var(--alerta); border-color: rgba(245, 197, 66, .35); }
.aviso.atencao a { color: var(--alerta); }
.selo { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 700 .68rem/1.5 var(--rotulo); letter-spacing: .1em; text-transform: uppercase;
  background: var(--destaque-suave); color: var(--destaque); border: 1px solid rgba(0, 231, 107, .3); margin-bottom: 10px; }
.selo.ok { background: var(--ok-suave); color: var(--destaque); border-color: rgba(0, 231, 107, .35); }
.selo.alerta { background: var(--alerta-suave); color: var(--alerta); border-color: rgba(245, 197, 66, .35); }
.selo.perigo { background: var(--perigo-suave); color: var(--perigo); border-color: rgba(255, 92, 92, .35); }
.selo.neutro { background: var(--superficie-3); color: var(--texto-suave); border-color: var(--borda-2); }

/* Login */
.inicio { display: grid; gap: 28px; align-items: center; padding-top: 8px; }
@media (min-width: 900px) { .inicio { grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 40px; } }
.inicio-texto h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; }
.inicio .destaque-texto { color: var(--destaque); text-shadow: 0 0 26px rgba(0, 249, 133, .45); }
.caixa-login { width: min(460px, 100%); justify-self: center; position: relative; overflow: hidden; padding: 30px 28px;
  border-color: rgba(0, 249, 133, .28); box-shadow: inset 0 0 0 1px rgba(0, 249, 133, .05), 0 0 60px -22px rgba(0, 249, 133, .55), var(--sombra);
  background: radial-gradient(90% 60% at 50% 0%, rgba(0, 249, 133, .12), transparent 70%), linear-gradient(180deg, #071209, #030503); }
.marca-alpha-vertical { display: flex; justify-content: center; margin: 0 0 6px; }
.marca-alpha-vertical img { width: min(220px, 64%); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 249, 133, .18)); }
.login-sub { text-align: center; margin: 0 0 22px; }
.login-sub .selo { margin: 0; }
@media (max-width: 899px) { .caixa-login { order: -1; } }
@media (max-width: 420px) { .caixa-login { padding: 24px 18px; } }
.vantagens { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.vantagens li { display: flex; gap: 12px; align-items: flex-start; color: var(--texto); }
.vantagens li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gradiente);
  color: var(--sobre-destaque); font-weight: 800; font-size: .78rem; box-shadow: 0 0 14px -4px rgba(0, 249, 133, .8); }

/* Listas */
.historico { list-style: none; margin: 0; padding: 0; }
.historico li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--borda); flex-wrap: wrap; }
.historico li:first-child { border-top: 0; padding-top: 4px; }
.historico .info { min-width: 0; flex: 1 1 220px; }
.historico .titulo { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historico .selo { margin: 0 0 0 4px; vertical-align: 1px; }
.historico .acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.vazio { text-align: center; color: var(--texto-suave); padding: 24px 8px; }

.contador { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.contador strong { font: 800 2.6rem/1 var(--titulo); color: var(--destaque); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(0, 249, 133, .45); }
.contador span { color: var(--texto-suave); }
.contador b { font-family: var(--titulo); font-weight: 700; color: var(--texto); font-variant-numeric: tabular-nums; }
.motivos { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.motivos li { font: 600 .74rem/1.4 var(--rotulo); background: var(--superficie-2); color: var(--texto-suave); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--borda-2); }

.participantes { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; border: 1px solid var(--borda-2); border-radius: var(--raio-p); background: var(--superficie-2);
  scrollbar-color: var(--borda-2) transparent; }
.participantes li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borda); font-size: .93rem; }
.participantes li:first-child { border-top: 0; }
.participantes li.vazio { display: block; }
.participantes .n { color: var(--destaque-2); font: 700 .88rem/1.5 var(--titulo); font-variant-numeric: tabular-nums; text-align: right; }
.participantes .u { font-weight: 700; color: var(--texto); }
.participantes .t { color: var(--texto-suave); overflow-wrap: anywhere; }
.participantes li.fora { background: rgba(255, 255, 255, .015); }
.participantes li.fora .n { color: var(--texto-fraco); }
.participantes li.fora .u { text-decoration: line-through; color: var(--texto-fraco); }
.participantes .motivo { font-size: .74rem; color: var(--perigo); }

.post { display: flex; gap: 14px; align-items: flex-start; }
.post .legenda { color: var(--texto-suave); font-size: .92rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; }
.post a { overflow-wrap: anywhere; }

.tabela-rolagem { overflow-x: auto; border: 1px solid var(--borda-2); border-radius: var(--raio-p); margin: 10px 0 16px; background: var(--superficie-2); }
table.previa { border-collapse: collapse; width: 100%; font-size: .85rem; }
table.previa th, table.previa td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--borda); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
table.previa th { background: var(--superficie-3); border-top: 0; font: 600 .74rem/1.4 var(--rotulo); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-suave); }

.zona-arquivo { display: block; border: 1.5px dashed rgba(0, 249, 133, .35); border-radius: var(--raio); padding: 24px; text-align: center; cursor: pointer;
  background: radial-gradient(80% 120% at 50% 0%, rgba(0, 249, 133, .06), transparent 70%), var(--superficie-2); font-family: var(--fonte); font-weight: 500; transition: border-color .15s, background .15s; }
.zona-arquivo:hover, .zona-arquivo.arrastando { border-color: var(--destaque); background: rgba(0, 231, 107, .08); }
.zona-arquivo input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.girando { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--destaque-escuro); border-top-color: var(--destaque); animation: girar .9s linear infinite; margin: 0 auto 12px;
  filter: drop-shadow(0 0 8px rgba(0, 249, 133, .5)); }
@keyframes girar { to { transform: rotate(360deg); } }

/* Resultado e comprovante */
.lista-premiados { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista-premiados li { counter-increment: p; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: var(--raio-p); background: var(--superficie-2); border: 1px solid var(--borda-2); }
.lista-premiados li::before { content: counter(p); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--destaque); color: var(--sobre-destaque); font: 800 1rem/1 var(--titulo); box-shadow: 0 0 16px -4px rgba(0, 249, 133, .8); }
.lista-premiados .premiado-nome { color: var(--destaque); }
.lista-premiados.suplentes li::before { background: var(--prata); box-shadow: none; color: #0b0f0d; }
.lista-premiados.suplentes .premiado-nome { color: var(--metal); }
.premiado-nome { font-weight: 800; overflow-wrap: anywhere; }
.premiado-texto { color: var(--texto-suave); font-size: .9rem; overflow-wrap: anywhere; }
.detalhes { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.detalhes dt { color: var(--texto-suave); font: 600 .84rem/1.6 var(--rotulo); }
.detalhes dd { margin: 0; overflow-wrap: anywhere; }
.regras { padding-left: 20px; margin: 0; }
.regras li { margin-bottom: 4px; }
.regras li::marker { color: var(--destaque-2); }
.hash code { display: block; padding: 10px 12px; background: var(--superficie-2); border: 1px solid var(--borda-2); border-radius: var(--raio-p); overflow-wrap: anywhere;
  font-size: .82rem; color: var(--metal); }
.copiar { display: flex; gap: 8px; }
.copiar input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .detalhes { grid-template-columns: minmax(0, 1fr); gap: 2px; } .detalhes dd { margin-bottom: 8px; } }

/* Comprovante impresso: fundo claro e texto escuro, legível em qualquer impressora. */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; }
  .topo { position: static; background: #fff; border-bottom: 2px solid #0e8f45; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .marca img { filter: none; }
  .selo-app { color: #0e5c2f; border-color: #0e8f45; background: none; }
  .conteudo { padding: 12px 0; max-width: none; }
  .cartao { background: #fff !important; border: 0; box-shadow: none; padding: 0; }
  h1, h2, .premiado-nome, .lista-premiados .premiado-nome, .lista-premiados.suplentes .premiado-nome, .detalhes dd, .regras li { color: #111 !important; text-shadow: none; }
  h2 { border-bottom: 1px solid #cfd8d3; padding-bottom: 4px; }
  .muted, .detalhes dt, .premiado-texto { color: #4a5550 !important; }
  .selo { color: #0e5c2f; background: none; border-color: #0e8f45; }
  a { color: #0e5c2f; }
  .lista-premiados li { background: #fff; border-color: #cfd8d3; break-inside: avoid; }
  .lista-premiados li::before { background: #0e8f45; color: #fff; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lista-premiados.suplentes li::before { background: #8a948f; color: #fff; }
  .hash code { background: #f3f6f4; border-color: #cfd8d3; color: #111; }
}

/* Apresentação (tela cheia, boa para gravar / live): fundo preto com brilho verde, como a "Meta Batida" da Alpha.
   Enquanto ela está aberta, o resto da página some (html.com-palco): nada aparece por trás nem em volta, nem em captura da página inteira. */
html.com-palco, html.com-palco body { overflow: hidden; }
html.com-palco body > :not(.palco) { display: none !important; }
.palco { position: fixed; inset: 0; z-index: 100; width: 100%; min-height: 100vh; min-height: 100dvh; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(0, 249, 133, .16), transparent 70%),
    radial-gradient(120% 70% at 50% 120%, rgba(14, 143, 69, .22), transparent 60%),
    linear-gradient(180deg, #020403, #000 70%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 16px 32px; overflow: auto; text-align: center; }
.palco::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%); }
.palco > div:not(.fechar) { width: 100%; display: flex; flex-direction: column; align-items: center; }
.palco .logo-palco { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); height: 38px; width: auto; opacity: .95; filter: drop-shadow(0 0 18px rgba(0, 249, 133, .35)); }
.palco .fechar { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.palco .fechar button { background: rgba(255, 255, 255, .06); color: var(--texto-suave); border: 1px solid var(--borda-2); border-radius: 99px; padding: 8px 14px;
  font: 600 .8rem/1.2 var(--rotulo); cursor: pointer; }
.palco .fechar button:hover { color: #fff; border-color: var(--destaque-2); }
@media (max-width: 760px) {
  .palco { padding-top: 76px; }
  .palco .logo-palco { left: 16px; transform: none; top: 22px; height: 24px; }
  .palco .fechar { top: 16px; right: 12px; gap: 6px; }
  .palco .fechar button { padding: 7px 11px; font-size: .74rem; }
}
.palco .titulo-palco { font: 700 clamp(.95rem, 2.6vw, 1.3rem)/1.3 var(--marca); letter-spacing: .08em; text-transform: uppercase; color: var(--metal); margin-bottom: 20px; overflow-wrap: anywhere; max-width: min(92vw, 760px); }
.palco .regressiva { font: 900 clamp(7rem, 32vw, 15rem)/1 var(--titulo); color: var(--destaque); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(0, 249, 133, .65), 0 0 120px rgba(0, 249, 133, .35); animation: pulsar 1s ease-out; }
@keyframes pulsar { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.palco .etapa { text-transform: uppercase; letter-spacing: .22em; font: 700 .9rem/1.3 var(--rotulo); color: var(--destaque); margin-bottom: 14px; text-shadow: 0 0 16px rgba(0, 249, 133, .5); }
.palco .etapa.suplente { color: var(--metal); text-shadow: none; }
.palco .roleta { width: min(92vw, 720px); padding: 30px 18px; border-radius: 24px; border: 1px solid rgba(0, 249, 133, .35);
  background: radial-gradient(90% 70% at 50% 0%, rgba(0, 249, 133, .14), transparent 70%), linear-gradient(160deg, #071209, #030503 60%);
  box-shadow: 0 0 0 1px rgba(0, 249, 133, .06) inset, 0 30px 80px rgba(0, 0, 0, .6);
  font: 900 clamp(1.5rem, 6.4vw, 3.4rem)/1.15 var(--marca); letter-spacing: .02em; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.palco .roleta.parou { border-color: var(--destaque); color: var(--destaque); text-shadow: 0 0 30px rgba(0, 249, 133, .6);
  box-shadow: 0 0 0 1px rgba(0, 249, 133, .12) inset, 0 0 90px -10px rgba(0, 249, 133, .65), 0 30px 80px rgba(0, 0, 0, .6); animation: pulsar .6s ease-out; }
.palco .roleta.suplente.parou { border-color: #b9c4bf; color: #e6ecea; text-shadow: 0 0 24px rgba(201, 239, 224, .35);
  box-shadow: 0 0 60px -14px rgba(201, 239, 224, .45), 0 30px 80px rgba(0, 0, 0, .6); }
.palco .comentario-palco { margin-top: 14px; color: var(--texto-suave); max-width: min(92vw, 720px); overflow-wrap: anywhere; min-height: 1.5em; }
.palco .revelados { margin-top: 26px; display: grid; gap: 8px; width: min(92vw, 640px); text-align: left; }
.palco .revelado { display: flex; gap: 14px; align-items: center; background: rgba(7, 18, 9, .85); border: 1px solid rgba(0, 249, 133, .22); border-radius: 12px; padding: 10px 14px; animation: entrar .4s ease-out; }
.palco .revelado b { min-width: 0; overflow-wrap: anywhere; font: 800 1.08rem/1.3 var(--fonte); color: var(--destaque); }
.palco .revelado .pos { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--destaque); color: var(--sobre-destaque);
  font: 800 1.05rem/1 var(--titulo); box-shadow: 0 0 18px -4px rgba(0, 249, 133, .9); }
.palco .revelado.suplente { border-color: rgba(201, 239, 224, .16); background: rgba(255, 255, 255, .03); }
.palco .revelado.suplente .pos { background: var(--prata); color: #0b0f0d; box-shadow: none; }
.palco .revelado.suplente b { color: #dfe6e3; }
.palco .revelado .pequeno { color: var(--texto-fraco); font: 600 .7rem/1.4 var(--rotulo); letter-spacing: .12em; text-transform: uppercase; }
.palco .final { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@keyframes entrar { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .palco *, .girando { animation-duration: .01s !important; } }
