/* =========================================================
   Banana Corrente · Controle de Caixas
   Visual: vidro fosco, cantos arredondados, amarelo da marca
   ========================================================= */
:root {
  --amarelo: #FFD500;
  --amarelo-forte: #F2B800;
  --amarelo-suave: #FFF4B8;
  --grafite: #1C1C1E;
  --grafite-2: #2C2C2E;
  --texto: #1C1C1E;
  --texto-2: #6B6B70;
  --texto-3: #9A9AA0;
  --verde: #23A55A;
  --verde-suave: #DFF5E7;
  --vermelho: #E5383B;
  --vermelho-suave: #FDE6E6;
  --vidro: rgba(255, 255, 255, 0.62);
  --vidro-forte: rgba(255, 255, 255, 0.82);
  --borda-vidro: rgba(255, 255, 255, 0.75);
  --linha: rgba(28, 28, 30, 0.08);
  --sombra: 0 1px 2px rgba(28, 28, 30, .04), 0 12px 40px rgba(60, 60, 40, .10);
  --raio: 22px;
  --raio-m: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texto);
  font: 16px/1.45 "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #F3F1EA;
  background-image:
    radial-gradient(60vw 50vh at 0% 0%, rgba(255, 213, 0, .28), transparent 70%),
    radial-gradient(55vw 55vh at 100% 15%, rgba(197, 214, 205, .65), transparent 70%),
    radial-gradient(70vw 50vh at 50% 110%, rgba(255, 236, 160, .45), transparent 70%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- Animações ---------- */
@keyframes subir { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { opacity: 0; } to { opacity: 1; } }
@keyframes folha { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes traco { to { stroke-dashoffset: 0; } }
@keyframes pulo { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.anima { animation: subir .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Topo (barra escura, rola junto com a página) ---------- */
.topo {
  position: relative; z-index: 50; margin: 12px auto 0; max-width: 1008px; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px;
  background: rgba(28, 28, 30, .86); color: #fff; border-radius: 18px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
}
.topo .logo { height: 28px; width: auto; display: block; }
.topo nav { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topo nav::-webkit-scrollbar { display: none; }
.topo nav a, .topo .sair {
  flex: 0 0 auto; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.topo nav a:active, .topo .sair:active { transform: scale(.95); }
.topo nav a.ativo { background: var(--amarelo); color: var(--grafite); }
.topo .perfil { margin-left: auto; flex: 0 0 auto; font-size: 13px; color: rgba(255, 255, 255, .65); white-space: nowrap; padding: 0 4px; }
.topo nav + .perfil { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .15); }
.topo .sair { margin-left: 0; }
@media (max-width: 520px) {
  .topo .perfil span { display: none; }
  .topo nav + .perfil { display: none; }  /* gestor: sem espaço para o crachá; as abas já dizem onde está */
  .topo { gap: 8px; }
  .topo nav { gap: 4px; }
  .topo nav a, .topo .sair { padding: 7px 10px; font-size: 13px; }
}
/* Linha com nome + botões (cadastro de motoristas): no celular os botões descem para baixo do nome */
.nota.com-acoes .acoes { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 520px) {
  .nota.com-acoes { flex-wrap: wrap; row-gap: 8px; }
  .nota.com-acoes .acoes { flex: 1 0 100%; }
  .nota.com-acoes .acoes .btn { flex: 1; }
}

/* ---------- Estrutura ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 40px; }
main.com-barra { padding-bottom: 110px; }
main.estreito { max-width: 520px; }
.titulo { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 4px 4px 2px; }
.subtitulo { color: var(--texto-2); font-size: 15px; margin: 0 4px 16px; }
.secao { font-size: 12px; font-weight: 700; color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; margin: 26px 6px 10px; }

/* ---------- Vidro / cartões ---------- */
.vidro {
  background: var(--vidro); border: 1px solid var(--borda-vidro); border-radius: var(--raio);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--sombra); padding: 16px;
}
.vidro + .vidro { margin-top: 12px; }
/* cartão em formato de pasta (aba no canto) */
.pasta { position: relative; margin-top: 18px; border-top-left-radius: 0; }
.pasta::before {
  content: ""; position: absolute; left: -1px; top: -14px; width: 40%; max-width: 150px; height: 15px;
  background: inherit; border: 1px solid var(--borda-vidro); border-bottom: 0;
  border-radius: 12px 18px 0 0; backdrop-filter: inherit; -webkit-backdrop-filter: inherit;
}
.pasta.amarela { background: linear-gradient(160deg, rgba(255, 228, 92, .92), rgba(255, 213, 0, .85)); border-color: rgba(255, 255, 255, .5); }
.pasta.escura { background: rgba(28, 28, 30, .9); color: #fff; border-color: rgba(255, 255, 255, .08); }
.pasta.escura .rotulo, .pasta.escura .ajuda { color: rgba(255, 255, 255, .6); }

/* ---------- Texto ---------- */
.pergunta { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; display: block; }
.ajuda { color: var(--texto-2); font-size: 14px; margin: 0 0 12px; }
.rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--texto-2); margin: 0 0 6px 2px; }

/* ---------- Campos ---------- */
input, select {
  font: inherit; font-size: 16px; width: 100%; height: 46px; padding: 0 14px; color: var(--texto);
  background: rgba(255, 255, 255, .85); border: 1.5px solid var(--linha); border-radius: 13px;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
input::placeholder { color: var(--texto-3); }
input:focus { outline: none; border-color: var(--amarelo-forte); box-shadow: 0 0 0 4px rgba(255, 213, 0, .30); background: #fff; }
input.ok { border-color: var(--verde); background: var(--verde-suave); font-weight: 700; }
.campo { margin-bottom: 12px; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 50px; }
.olho { position: absolute; right: 4px; top: 3px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 18px; cursor: pointer; }
.busca { position: relative; }
.busca::before { content: "🔎"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; pointer-events: none; }
.busca input { padding-left: 38px; }

/* lista de sugestões */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--vidro-forte); border: 1px solid var(--borda-vidro); border-radius: 14px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  max-height: 260px; overflow-y: auto; animation: subir .25s var(--ease);
}
.combo-list li { padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; }
.combo-list li:hover, .combo-list li:active { background: var(--amarelo-suave); }
.combo-list li.vazio { color: var(--texto-2); cursor: default; font-size: 14px; font-weight: 500; }

/* ---------- Botões ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 13px; min-height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.grande { width: 100%; min-height: 50px; font-size: 16px; border-radius: 14px; }
.btn.primario { background: var(--amarelo); color: var(--grafite); box-shadow: 0 6px 16px rgba(242, 184, 0, .30); }
.btn.escuro { background: var(--grafite); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.btn.claro { background: rgba(255, 255, 255, .8); color: var(--grafite); border: 1.5px solid var(--linha); }
.btn.perigo { background: var(--vermelho-suave); color: var(--vermelho); }
.btn.mini { min-height: 34px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.btn + .btn.grande, .btn.grande + .btn.grande { margin-top: 8px; }
.link { background: none; border: 0; color: var(--texto-2); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 4px 0; }

/* barra de ação embaixo (sólida, não deixa conteúdo aparecer por trás) */
.acao-fixa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #F3F1EA; border-top: 1px solid var(--linha); box-shadow: 0 -6px 20px rgba(60, 60, 40, .06);
}
.acao-final { margin-top: 18px; }
.acao-fixa > * { max-width: 520px; margin: 0 auto; display: flex; }
.acao-fixa.largo > * { max-width: 1040px; }

/* ---------- Escolha de nome (pílulas) ---------- */
.nomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 10px; }
.nome {
  font: inherit; font-size: 15px; font-weight: 700; text-align: left; padding: 8px 12px 8px 8px; min-height: 48px; cursor: pointer;
  border-radius: 14px; line-height: 1.2; border: 1.5px solid var(--borda-vidro); background: rgba(255, 255, 255, .7); color: var(--texto);
  display: flex; align-items: center; gap: 9px; transition: transform .15s var(--ease), background .2s, box-shadow .2s;
  animation: subir .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms);
}
.nome:active { transform: scale(.96); }
.nome .avatar {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--amarelo-suave); color: var(--grafite);
}
.nome.sel { background: var(--grafite); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.nome.sel .avatar { background: var(--amarelo); }
.sem-resultado { color: var(--texto-2); padding: 14px 4px; grid-column: 1 / -1; }

/* ---------- Motorista: linha de mercado ---------- */
.mercado-cartao { position: relative; animation: subir .45s var(--ease) both; }
.mercado-cartao .topo-cartao { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-right: 40px; }
.mercado-cartao .nome-mercado { font-size: 17px; font-weight: 700; line-height: 1.2; }
.mercado-cartao .remover {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(28, 28, 30, .06); font-size: 14px; cursor: pointer; color: var(--texto-2);
}
.mercado-cartao .campo-mercado { margin-right: 40px; }
.mercado-cartao .linha-campos { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .mercado-cartao .linha-campos { grid-template-columns: 1fr 200px; align-items: start; }
  .mercado-cartao .campo-mercado { margin-right: 0; }
  .mercado-cartao .linha-campos .contador { max-width: none; margin: 0; }
  .mercado-cartao { padding-right: 56px; }
}
.contador { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; align-items: center; max-width: 360px; margin: 0 auto; }
.contador button {
  height: 52px; border-radius: 15px; border: 0; font-size: 26px; font-weight: 600; cursor: pointer; line-height: 1;
  background: var(--grafite); color: #fff; transition: transform .12s var(--ease);
}
.contador button.mais { background: var(--amarelo); color: var(--grafite); }
.contador button:active { transform: scale(.92); }
.contador input { text-align: center; font-size: 26px; font-weight: 700; height: 52px; padding: 0 4px; border-radius: 15px; }
.contador-rotulo { text-align: center; color: var(--texto-2); font-size: 13px; margin-top: 4px; }

/* ---------- Saudação / passos ---------- */
.ola { display: flex; align-items: center; gap: 14px; }
.ola .avatar { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--amarelo); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--grafite); }
.ola .quem { font-size: 18px; font-weight: 700; line-height: 1.1; }
.passos { display: flex; gap: 5px; margin: 0 4px 14px; }
.passos span { flex: 1; height: 4px; border-radius: 99px; background: rgba(28, 28, 30, .1); transition: background .3s; }
.passos span.feito { background: var(--amarelo-forte); }

/* ---------- Sucesso ---------- */
.sucesso { text-align: center; padding: 26px 18px; }
.check { width: 80px; height: 80px; margin: 0 auto 12px; animation: pulo .55s var(--ease) both; }
.check circle { fill: var(--verde); }
.check path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: traco .45s .3s var(--ease) forwards; }

/* ---------- Avisos ---------- */
.info { background: rgba(255, 255, 255, .55); border-radius: 13px; padding: 11px 13px; font-size: 14px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.verde { background: var(--verde-suave); color: var(--verde); }
.chip.vermelho { background: var(--vermelho-suave); color: var(--vermelho); }
.chip.amarelo { background: var(--amarelo-suave); color: #8a6d00; }
.chip.cinza { background: rgba(28, 28, 30, .06); color: var(--texto-2); }

/* ---------- Abas (estilo segmentado) ---------- */
.segmentos { display: flex; padding: 4px; gap: 4px; border-radius: 13px; background: rgba(28, 28, 30, .07); margin-bottom: 12px; }
.segmentos button {
  flex: 1; border: 0; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 700;
  background: transparent; color: var(--texto-2); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.segmentos button.ativa { background: #fff; color: var(--texto); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }

/* ---------- Lista de notas (associar) ---------- */
.dia-grupo { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 4px 6px; font-weight: 700; color: var(--texto-2); font-size: 13px; }
.nota {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .7); border: 1.5px solid var(--borda-vidro); border-radius: 14px;
  transition: background .2s, transform .12s var(--ease), border-color .2s; animation: subir .35s var(--ease) both;
}
.nota:active { transform: scale(.985); }
.nota .marca {
  flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(28, 28, 30, .2); display: grid; place-items: center;
  font-size: 13px; color: transparent; transition: all .2s;
}
.nota.sel { background: var(--amarelo-suave); border-color: var(--amarelo-forte); }
.nota.sel .marca { background: var(--grafite); border-color: var(--grafite); color: var(--amarelo); }
.nota .dados { flex: 1; min-width: 0; }
.nota .mercado { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nota .sub { color: var(--texto-2); font-size: 13px; }
.nota .qtd { text-align: right; font-size: 19px; font-weight: 700; line-height: 1; }
.nota .qtd small { display: block; font-size: 11px; font-weight: 600; color: var(--texto-2); }

/* ---------- Painel ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px 16px; min-height: 120px; display: flex; flex-direction: column; }
.kpi .icone { font-size: 18px; }
.kpi .valor { font-size: 40px; font-weight: 300; letter-spacing: -.03em; line-height: 1; margin-top: auto; font-variant-numeric: tabular-nums; }
.kpi .kpi-nome { font-size: 14px; font-weight: 700; margin-top: 6px; }
.kpi .ajuda { font-size: 12px; margin: 2px 0 0; }
.kpi.ruim .valor { color: var(--vermelho); }
.kpi.bom .valor { color: var(--verde); }
.pasta.escura.kpi.ruim .valor { color: #FF8A8C; }
.pasta.amarela .ajuda { color: rgba(28, 28, 30, .65); }
.cab-secao { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cab-secao h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.filtros .segmentos { margin: 0; flex: 1 1 260px; }
.filtros input[type=date] { flex: 0 1 180px; height: 42px; font-size: 15px; }
.status-sync { font-size: 13px; color: var(--texto-2); margin: 8px 4px 0; }

/* tabelas */
.tabela-wrap { overflow-x: auto; margin: 10px -6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
th { font-size: 11px; color: var(--texto-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.forte { font-weight: 700; }
.vazio-msg { color: var(--texto-2); text-align: center; padding: 18px 10px; font-size: 14px; }

/* ---------- Login ---------- */
.login { max-width: 380px; margin: 6vh auto 0; padding: 0 16px; }
.login .marca-login {
  background: var(--grafite); border-radius: 24px 24px 0 0; padding: 22px 18px 20px; text-align: center;
  box-shadow: var(--sombra);
}
.login .marca-login img { height: 48px; width: auto; }
.login form { border-radius: 0 0 24px 24px; margin-top: 0; padding: 20px 18px 18px; }
.login h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.02em; }

/* ---------- Janela (modal) e aviso rápido (toast) ---------- */
.fundo-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 20, .35); display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: surgir .2s ease both; padding: 12px;
}
.janela {
  width: 100%; max-width: 420px; background: var(--vidro-forte); border: 1px solid var(--borda-vidro); border-radius: 22px;
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  animation: folha .35s var(--ease) both;
}
.janela h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.janela p { color: var(--texto-2); margin: 0 0 12px; font-size: 15px; }
.janela .botoes { display: grid; gap: 8px; margin-top: 14px; }
.janela input { margin-top: 4px; }
@media (min-width: 700px) { .fundo-modal { align-items: center; } }
.resumo { list-style: none; padding: 0; margin: 6px 0 0; }
.resumo li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--linha); font-size: 15px; }
.resumo li b { white-space: nowrap; }
.resumo li.total { border-bottom: 0; font-weight: 800; font-size: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 120; transform: translateX(-50%);
  background: var(--grafite); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3); animation: subir .35s var(--ease) both; max-width: calc(100% - 32px); text-align: center;
}
.toast.verde::before { content: "✅ "; }
.toast.vermelho { background: var(--vermelho); }

/* ---------- Telas pequenas ---------- */
@media (max-width: 520px) {
  .titulo { font-size: 23px; }
  .topo { padding-left: 12px; }
  .topo .logo { height: 26px; }
  .vidro { padding: 14px; border-radius: 18px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 104px; padding: 12px 14px 14px; }
  .kpi .valor { font-size: 32px; }
  .nomes { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ranking (gamificação) ---------- */
.rk-mini {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  margin-top: 10px; padding: 12px 14px; transition: transform .15s var(--ease);
}
.rk-mini:active { transform: scale(.98); }
.rk-mini .trofeu { font-size: 24px; }
.rk-mini .txt { flex: 1; font-size: 14px; color: var(--texto-2); line-height: 1.3; }
.rk-mini .txt b { color: var(--texto); font-size: 15px; }
.rk-mini .pts { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-mini .pts small { font-size: 11px; font-weight: 600; color: var(--texto-2); margin-left: 2px; }
.ranking { list-style: none; padding: 0; margin: 6px 0 0; }
.ranking li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 15px; animation: subir .35s var(--ease) both; }
.ranking li.eu { background: var(--amarelo-suave); font-weight: 700; }
.ord { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ranking .pos { flex: 0 0 28px; text-align: center; font-weight: 800; color: var(--texto-2); }
.ranking .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .pt { font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking .pt small { font-size: 11px; font-weight: 600; color: var(--texto-2); }
.ganhou { display: inline-flex; align-items: center; gap: 6px; background: var(--amarelo); color: var(--grafite); font-weight: 800;
          padding: 6px 14px; border-radius: 999px; font-size: 15px; margin: 4px 0 10px; animation: pulo .5s .2s var(--ease) both; }
.regras { list-style: none; padding: 0; margin: 4px 0 0; font-size: 14px; }
.regras li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linha); }
.regras li:last-child { border-bottom: 0; }

/* ---------- Ajustes de camadas e largura ---------- */
/* a lista de sugestões fica sólida e por cima do cartão de baixo */
.combo-list { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.vidro:focus-within, .mercado-cartao:focus-within { position: relative; z-index: 25; }
/* no notebook as telas estreitas ficam um pouco mais largas */
@media (min-width: 900px) {
  main.estreito { max-width: 640px; }
}
