/* Jogadores no Fortnite agora (/fortnite/jogadores-agora): cartões dos números, aviso, barras e tabelas.
   Pedido por jogadores-agora.js; ao mudar, trocar o ?v= lá. O HTML vem de src/populacao.js. */
.pop-topo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
.pop-num { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(150deg, color-mix(in srgb, #5b8cff 22%, var(--panel)), var(--panel)); padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pop-num.pop-principal { background: linear-gradient(150deg, color-mix(in srgb, #2fd27a 26%, var(--panel)), var(--panel)); }
.pop-num strong { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.pop-num span { font-size: .9rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pop-num small { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.pop-aviso { border-left: 4px solid #ffb35c; background: color-mix(in srgb, #ffb35c 12%, var(--panel)); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; font-size: .9rem; color: var(--ink); }
.pop-bloco { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; margin: 12px 0; min-width: 0; }
.pop-bloco h3 { margin: 0 0 4px; }
.pop-grafico { margin: 8px 0 4px; color: var(--ink); }
.pop-grafico svg { display: block; max-width: 760px; height: auto; overflow: visible; }
.pop-barra { fill: #5b8cff; transition: opacity .15s ease; }
/* Cores dos gráficos (item 64): cada gráfico com a sua e a média por dia da semana com uma cor por dia. */
.pop-barra.pop-c-ciano { fill: #18b6d6; } .pop-barra.pop-c-verde { fill: #22b866; } .pop-barra.pop-c-laranja { fill: #f2802e; }
.pop-barra.pop-c-rosa { fill: #e8508f; } .pop-barra.pop-c-azul { fill: #4f7cf0; } .pop-barra.pop-c-amarelo { fill: #e3b21c; } .pop-barra.pop-c-roxo { fill: #9560f0; }
.pop-barra.pop-parcial { fill-opacity: .42; stroke: currentColor; stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 4 3; }
.pop-barra:hover { opacity: .75; }
.pop-tabela summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
#pop-area { min-width: 0; max-width: 100%; }
.pop-rolar { overflow-x: auto; max-width: 100%; }
.pop-rolar table { min-width: 0; }
@media (max-width: 640px) {
  .pop-topo { grid-template-columns: 1fr; }
  .pop-grafico text { font-size: 20px; }
  .pop-grafico .pop-val { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pop-barra { transition: none; } }
/* Cartão da página Mapas do criativo (item 28, parte c), montado por cartaoPopulacaoHtml em src/populacao.js. */
.popc-area { margin: 10px 0 14px; min-width: 0; }
.popc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 260px); grid-template-areas: "texto linha" "ver linha"; gap: 6px 16px; align-items: center; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(150deg, color-mix(in srgb, #2fd27a 22%, var(--panel)), var(--panel)); padding: 14px 16px; color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.popc:hover, .popc:focus-visible { border-color: #2fd27a; transform: translateY(-1px); }
.popc-texto { grid-area: texto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.popc-titulo { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.popc-num { overflow-wrap: anywhere; }
.popc-num strong { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.popc-num span { font-weight: 600; }
.popc-pico { font-size: .9rem; font-weight: 600; }
.popc small { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.popc-linha { grid-area: linha; width: 100%; height: 64px; display: block; }
.popc-linha .popc-fundo { fill: color-mix(in srgb, #2fd27a 22%, transparent); stroke: none; }
.popc-linha .popc-traco { stroke: #2fd27a; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.popc-ver { grid-area: ver; font-weight: 700; font-size: .9rem; color: var(--ink); }
@media (max-width: 640px) {
  .popc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "texto" "linha" "ver"; }
}
@media (prefers-reduced-motion: reduce) { .popc { transition: none; } .popc:hover { transform: none; } }
/* Um dia no ecossistema (item 28, parte b), montado por blocoEcossistema em src/ecossistema-dia.js. */
.pop-eco-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.pop-eco .pop-num { border-radius: 14px; padding: 12px 14px; }
.pop-eco .pop-num strong { font-size: clamp(1.25rem, 3.6vw, 1.8rem); }
.pop-eco h4 { margin: 14px 0 4px; }
.pop-eco .seo-tabela td:not(:first-child), .pop-eco .seo-tabela th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .pop-eco-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .pop-eco-grade { gap: 8px; } .pop-eco .pop-num { padding: 10px; } }
.pop-eco .seo-tabela th:first-child, .pop-eco .seo-tabela td:first-child { text-align: left; }
.pop-eco .seo-tabela td:first-child { min-width: 9em; overflow-wrap: anywhere; }

/* Item 64 (16/11/2026): banner de ponta a ponta no modelo da capa dos Elementais, quadrantes com fundo desenhado,
   aviso de desde quando há histórico e filtro de data e horário em todos os gráficos. Desenhos próprios, sem arte do jogo. */
#pop-area > .pop-heroi:first-child, #pop-area > link:first-child + .pop-heroi { margin-top: -28px; }
.pop-heroi { background: radial-gradient(circle at 80% 25%, rgba(47, 224, 255, .35) 0%, rgba(47, 224, 255, 0) 50%), linear-gradient(135deg, #0b1f3f 0%, #10183a 55%, #23103a 100%); color: #f7fcff; overflow: hidden; }
.pop-heroi > .pop-heroi-arte { position: absolute; inset: 0; max-width: none; width: 100%; height: 100%; z-index: 0; opacity: .7; pointer-events: none; }
.pop-heroi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 16, 38, .94) 0%, rgba(9, 16, 38, .72) 42%, rgba(9, 16, 38, .12) 100%); z-index: 0; pointer-events: none; }
.pop-heroi > :not(.pop-heroi-arte) { position: relative; z-index: 1; }
.pop-heroi > .sp-heroi-card { position: absolute; z-index: 2; }
.pop-heroi h2 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.02; color: #fff; }
.pop-heroi p { color: #d7e6f3; }
.pop-heroi .sp-heroi-acoes a { text-decoration: none; display: inline-flex; align-items: center; border-radius: 999px; border: 2px solid #2fe0ff; white-space: nowrap; }
.pop-heroi .sp-heroi-acoes a.sp-heroi-ver { color: #0e2a47; }
@media (min-width: 901px) { .cabeca.banner.pop-heroi > h2, .cabeca.banner.pop-heroi > p { max-width: min(62ch, calc(100% - 430px)); } }
@media (max-width: 900px) { .pop-heroi > .sp-heroi-card { position: relative; } }
.pop-heroi-card { gap: 6px !important; }
.pop-heroi-num { font: 800 clamp(2.2rem, 7vw, 3.4rem) var(--display, inherit); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.pop-heroi-card small { color: #b9d3e6; font-size: .85rem; }
.pop-heroi-desde { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 210, 63, .14); border: 1px solid rgba(255, 210, 63, .45); color: #ffe7a3; font-size: .85rem; }
@media (prefers-reduced-motion: no-preference) {
  .pop-heroi-linha { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: pop-linha 3.2s ease-out .3s forwards; }
  .pop-heroi-ponto { animation: pop-pulso 2.4s ease-in-out infinite; transform-origin: 1300px 95px; }
}
@keyframes pop-linha { to { stroke-dashoffset: 0; } }
@keyframes pop-pulso { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .6; } }
/* Quadrantes dos números com fundo desenhado e camada escura para o texto. */
.pop-topo .pop-num { position: relative; overflow: hidden; color: #f7fcff; border-color: rgba(255, 255, 255, .14); min-height: 128px; justify-content: flex-end;
  background: linear-gradient(0deg, rgba(8, 14, 32, .92) 0%, rgba(8, 14, 32, .6) 70%, rgba(8, 14, 32, .35) 100%), var(--pop-fundo) right bottom / auto 100% no-repeat, var(--pop-cor, #1d3d7a); }
.pop-topo .pop-num strong, .pop-topo .pop-num span { color: #fff; }
.pop-topo .pop-num small { color: #c6d9ea; }
.pop-f-gente { --pop-cor: #0f6b46; --pop-fundo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cg fill='%2357f0a8' fill-opacity='.55'%3E%3Ccircle cx='40' cy='60' r='13'/%3E%3Crect x='20' y='76' width='40' height='50' rx='18'/%3E%3Ccircle cx='95' cy='48' r='15'/%3E%3Crect x='72' y='66' width='46' height='60' rx='20'/%3E%3Ccircle cx='155' cy='58' r='13'/%3E%3Crect x='135' y='74' width='40' height='50' rx='18'/%3E%3Ccircle cx='200' cy='66' r='11'/%3E%3Crect x='183' y='80' width='34' height='44' rx='15'/%3E%3C/g%3E%3C/svg%3E"); }
.pop-f-pico { --pop-cor: #12497a; --pop-fundo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cpath d='M0 120 L60 60 L90 85 L140 20 L180 70 L220 45 L220 120Z' fill='%232fe0ff' fill-opacity='.4'/%3E%3Cpath d='M0 120 L60 60 L90 85 L140 20 L180 70 L220 45' fill='none' stroke='%232fe0ff' stroke-width='4'/%3E%3Ccircle cx='140' cy='20' r='7' fill='%23ffd23f'/%3E%3C/svg%3E"); }
.pop-f-recorde { --pop-cor: #6a3a0c; --pop-fundo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cg fill='%23ffd23f' fill-opacity='.5'%3E%3Cpath d='M150 10 L162 38 L192 40 L169 59 L177 88 L150 72 L123 88 L131 59 L108 40 L138 38Z'/%3E%3Crect x='40' y='70' width='22' height='50' rx='4'/%3E%3Crect x='70' y='50' width='22' height='70' rx='4'/%3E%3Crect x='100' y='90' width='22' height='30' rx='4'/%3E%3C/g%3E%3C/svg%3E"); }
.pop-desde { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; border-left: 4px solid #e3b21c; background: color-mix(in srgb, #e3b21c 12%, var(--panel)); color: var(--ink); font-size: .9rem; font-weight: 600; }
/* Filtro de data e horário. */
.pop-filtro { margin: 14px 0 6px; scroll-margin-top: 90px; }
#pop-filtro-ancora { display: block; position: relative; top: -90px; }
.pop-filtro fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin: 0; min-width: 0;
  background: linear-gradient(135deg, color-mix(in srgb, #18b6d6 14%, var(--panel)), color-mix(in srgb, #9560f0 12%, var(--panel))); }
.pop-filtro legend { font-weight: 800; padding: 0 6px; color: var(--ink); }
.pop-campos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.pop-campos label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink); min-width: 0; }
.pop-campos input, .pop-campos select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.pop-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.pop-botoes .botao { min-height: 40px; }
.pop-atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pop-atalho { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pop-atalho[aria-current="true"] { background: #18b6d6; border-color: #18b6d6; color: #04202a; }
.pop-ativo { margin: 8px 0 0; font-weight: 700; color: var(--ink); }
.pop-hist[aria-busy="true"] { opacity: .55; }
.pop-bloco { border-top-width: 4px; }
.pop-b-hora { border-top-color: #18b6d6; } .pop-b-horadia { border-top-color: #f2802e; } .pop-b-dia { border-top-color: #22b866; } .pop-b-semana { border-top-color: #e8508f; } .pop-b-mes { border-top-color: #9560f0; }
@media (max-width: 900px) { .pop-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pop-botoes { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .pop-hist { transition: none; } }
/* Item 110: lista das ilhas e modos que entram na soma de agora, e os botões que levam até ela. */
.pop-ver-ilhas { position: relative; z-index: 1; align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); color: #fff !important; font-size: .85rem; font-weight: 700; text-decoration: none; }
.pop-ver-ilhas:hover, .pop-ver-ilhas:focus-visible { background: rgba(255, 255, 255, .28); }
.pop-heroi-ilhas { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 999px; border: 2px solid #2fe0ff; color: #fff !important; font-weight: 700; font-size: .88rem; text-decoration: none; }
.pop-heroi-ilhas:hover, .pop-heroi-ilhas:focus-visible { background: rgba(47, 224, 255, .18); }
.pop-ilhas { scroll-margin-top: 130px; }
.pop-ilhas .pop-regra { margin: 4px 0 10px; font-size: .88rem; }
.pop-ilhas-tabela th:first-child, .pop-ilhas-tabela td:first-child { width: 2.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-ilhas-tabela td:nth-child(5), .pop-ilhas-tabela th:nth-child(5), .pop-ilhas-tabela td:nth-child(6), .pop-ilhas-tabela th:nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pop-ilhas-tabela td:nth-child(5) { font-weight: 700; }
.pop-ilha-nome { min-width: 10em; overflow-wrap: anywhere; }
.pop-ilhas-tabela code { font-size: .82rem; white-space: nowrap; }
@media (max-width: 640px) {
  /* No celular cada ilha vira uma linha em duas camadas: posição, nome e jogadores em cima; código e criador embaixo. */
  .pop-ilhas-tabela, .pop-ilhas-tabela tbody { display: block; width: 100%; }
  .pop-ilhas-tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pop-ilhas-tabela tr { display: grid; grid-template-columns: 2em auto minmax(0, 1fr) auto; grid-template-areas: "pos nome nome jog" "pos cod cri cri"; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pop-ilhas-tabela td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .pop-ilhas-tabela td:nth-child(1) { grid-area: pos; width: auto; }
  .pop-ilhas-tabela td:nth-child(2) { grid-area: nome; min-width: 0; font-weight: 600; }
  .pop-ilhas-tabela td:nth-child(5) { grid-area: jog; text-align: right !important; }
  .pop-ilhas-tabela td:nth-child(3) { grid-area: cod; font-size: .82rem; color: var(--muted); }
  .pop-ilhas-tabela td:nth-child(4) { grid-area: cri; font-size: .82rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
  .pop-ilhas-tabela td:nth-child(4)::before { content: "· "; }
  .pop-ilhas-tabela td:nth-child(6) { display: none; }
}
