/* MONSTERIDLE — janela STREAMER (js/ui/paineis.js, desenharStreamer e htmlCanais).
 * Visual da tela enviada pelo Pedro (nov/2026): blocos azul-marinho com fio ciano, regras do cupom em roxo,
 * quatro cartões de resultado e a tabela das doações com quem doou. Celular: cartões em 2 colunas e a tabela rola. */
.str-tela{display:flex;flex-direction:column;gap:12px;color:#e6f4ff}
/* "Atualizado às" + Atualizar: a janela só busca de novo ao abrir, no botão ou depois de 30 s */
.str-topo{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;color:#9fc3e0}
.str-bloco{padding:12px 16px 14px;border-radius:14px;background:linear-gradient(180deg,rgba(11,35,71,.92),rgba(8,26,54,.92));
  border:2px solid rgba(34,211,238,.55);box-shadow:inset 0 0 16px rgba(34,211,238,.1)}
.str-tit{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:18px;font-weight:900;letter-spacing:1px;text-transform:uppercase;color:#fff}
.str-tit-ico{width:30px;height:30px;flex:none;object-fit:contain}
.str-ico{width:20px;height:20px;object-fit:contain;flex:none;vertical-align:-4px;margin-right:6px}
.str-bt svg,.str-nota svg{width:18px;height:18px;flex:none}

/* cupom: código, copiar, estado e pausar numa linha */
.str-cupom{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.str-rot{font-size:14px;color:#cbd5e1}
.str-codigo{padding:7px 22px;border-radius:12px;border:2px solid #22d3ee;background:rgba(4,16,38,.8);font:900 18px/1.2 inherit;letter-spacing:1px;color:#fff}
.str-bt{display:inline-flex;align-items:center;gap:8px;padding:7px 16px;border-radius:10px;cursor:pointer;font:800 14px/1.2 inherit;color:#fff;
  background:linear-gradient(180deg,#1e4f9a,#163a75);border:2px solid #38bdf8;box-shadow:0 0 10px rgba(56,189,248,.25)}
.str-bt:hover{filter:brightness(1.15)}
.str-bt.grande{padding:11px 24px;font-size:16px}
.str-bt.grande svg{width:22px;height:22px}
.str-sep{align-self:stretch;width:2px;min-height:28px;background:rgba(148,163,184,.35)}
.str-estado{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:10px;font-weight:800;font-size:14px;
  color:#cbd5e1;background:rgba(51,65,85,.5);border:2px solid #64748b}
.str-estado i{width:12px;height:12px;border-radius:50%;background:#94a3b8}
.str-estado.on{color:#4ade80;background:rgba(22,101,52,.35);border-color:#16a34a}
.str-estado.on i{background:#22c55e;box-shadow:0 0 8px #22c55e}
.str-regras{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.str-regras span{display:flex;align-items:center;justify-content:center;gap:4px;padding:9px 12px;border-radius:12px;font-size:15px;font-weight:700;
  background:linear-gradient(180deg,rgba(91,33,182,.55),rgba(59,7,100,.55));border:2px solid #a855f7;box-shadow:0 0 12px rgba(168,85,247,.3)}
.str-regras b{font-size:20px;font-weight:900;color:#fde047;margin-right:4px}
.str-regras .str-ico{width:26px;height:26px;margin-right:6px}

/* resultados */
.str-cartoes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.str-cartao{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(4,16,38,.75);
  border:2px solid rgba(34,211,238,.45);box-shadow:inset 0 0 14px rgba(34,211,238,.1);min-width:0}
.str-cartao .str-ico{width:40px;height:40px;margin:0}
.str-cartao span{display:flex;flex-direction:column;min-width:0}
.str-cartao b{font-size:24px;font-weight:900;line-height:1.1;color:#fde047;white-space:nowrap}
.str-cartao:nth-child(3) b{color:#7dd3fc}
.str-cartao small{font-size:13px;color:#e2e8f0}
.str-nota{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:6px 10px;border-radius:8px;background:rgba(15,23,42,.45);font-size:13.5px;color:#cbd5e1}
.str-nota:empty{display:none}
.str-sub{margin:-4px 0 10px;font-size:14px;color:#cbd5e1}
.str-sub b{color:#fff}

/* últimas doações */
.str-tabela-rola{overflow-x:auto}
.str-tabela{width:100%;border-collapse:collapse;font-size:14px}
.str-tabela th{padding:7px 10px;text-align:left;font-weight:800;color:#fff;background:rgba(88,28,135,.55);white-space:nowrap}
.str-tabela th:first-child{border-radius:8px 0 0 8px}
.str-tabela th:last-child{border-radius:0 8px 8px 0}
.str-tabela td{padding:5px 10px;white-space:nowrap;font-weight:700}
.str-tabela tbody tr:nth-child(odd){background:rgba(15,23,42,.45)}
.str-tabela td .str-ico{width:16px;height:16px;vertical-align:-3px}
.str-ouro{color:#fde047}
.str-doador{color:#7dd3fc}
.str-apagada{color:#94a3b8;font-weight:400;font-style:italic}

/* canais */
.str-canais{display:flex;align-items:center;gap:16px}
.str-campos{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.str-campo{display:flex;align-items:center;gap:10px}
.str-campo span{width:72px;font-weight:700}
.str-rede{width:28px;height:28px;flex:none}
.str-campo input{flex:1;min-width:0;padding:8px 14px;border-radius:10px;border:2px solid #38bdf8;background:rgba(4,16,38,.85);color:#fff;font:inherit}
.str-campo input:focus{outline:none;border-color:#22d3ee;box-shadow:0 0 10px rgba(34,211,238,.45)}
.str-sep.alto{min-height:70px}
.str-salvar{display:flex;flex-direction:column;align-items:center;gap:6px}
#str-status{font-size:13px}

/* celular: tudo em grade de duas colunas iguais, centralizado */
@media(max-width:700px){
  .str-bloco{padding:12px}
  .str-tit{font-size:16px}
  .str-cupom{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .str-rot{display:none}
  .str-codigo{grid-column:1/-1;text-align:center}
  .str-cupom .str-bt:first-of-type{grid-column:1/-1}
  .str-cupom .str-bt,.str-estado{justify-content:center;padding:8px 6px}
  .str-cartoes{grid-template-columns:1fr 1fr}
  .str-cartao{flex-direction:column;justify-content:center;text-align:center;gap:6px;padding:10px 6px}
  .str-cartao span{align-items:center}
  .str-cartao .str-ico{width:34px;height:34px}
  .str-cartao b{font-size:20px}
  .str-regras{grid-template-columns:1fr}
  .str-regras span{font-size:14px}
  /* cada doação em duas linhas: data e quem doou; valor, diamantes e comissão */
  .str-tabela thead{display:none}
  .str-tabela tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 8px;padding:7px 10px;border-radius:8px}
  .str-tabela td{padding:0;font-size:13px}
  .str-tabela td:nth-child(1){grid-column:1/3;color:#cbd5e1}
  .str-tabela td:nth-child(2){text-align:right;overflow:hidden;text-overflow:ellipsis}
  .str-tabela td:nth-child(n+4){text-align:right}
  .str-canais{flex-direction:column;align-items:stretch}
  .str-sep{display:none}
  .str-campo span{width:auto}
}
