/* Saldo de pedras no topo (saldo.js) */
.saldo-chip{position:relative;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 6px;margin:auto 4px auto 0;border-radius:999px;flex:none;
  background:linear-gradient(180deg,rgba(64,190,140,.16),rgba(30,110,90,.12));border:1px solid rgba(120,230,180,.28);color:#dff7ec;text-decoration:none;
  font:700 14px/1 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;transition:background .2s,border-color .2s,transform .2s}
.saldo-chip[hidden]{display:none}
.saldo-chip:hover{background:linear-gradient(180deg,rgba(64,190,140,.26),rgba(30,110,90,.2));border-color:rgba(140,240,190,.45)}
.saldo-chip:focus-visible{outline:2px solid #7ee2b8;outline-offset:2px}
.saldo-chip img{width:24px;height:24px;filter:drop-shadow(0 0 6px rgba(90,230,160,.45))}
body:not(.tema-noite) .saldo-chip{color:#0f4a36;background:linear-gradient(180deg,#e9fbf2,#d4f3e4);border-color:#9fdcc0}
.saldo-chip.saldo-pulso{animation:saldoPulso .9s ease}
@keyframes saldoPulso{0%{transform:scale(1)}30%{transform:scale(1.12);box-shadow:0 0 0 4px rgba(120,230,180,.25),0 0 22px rgba(90,230,160,.55)}100%{transform:scale(1)}}
.saldo-ganho{position:absolute;left:50%;top:100%;transform:translate(-50%,0);padding:3px 8px;border-radius:999px;background:#1d6b4e;color:#eafff5;font-size:12px;font-weight:800;
  white-space:nowrap;pointer-events:none;box-shadow:0 6px 16px rgba(0,0,0,.3);animation:saldoGanho 1.9s ease forwards;z-index:5}
@keyframes saldoGanho{0%{opacity:0;transform:translate(-50%,-6px)}15%{opacity:1;transform:translate(-50%,6px)}75%{opacity:1;transform:translate(-50%,8px)}100%{opacity:0;transform:translate(-50%,14px)}}
@media (max-width:660px){.saldo-chip{height:32px;padding:0 9px 0 4px;gap:4px;font-size:13px;margin-right:2px}.saldo-chip img{width:21px;height:21px}}
@media (max-width:360px){.saldo-chip{padding:0 7px 0 3px;font-size:12px}}
@media (prefers-reduced-motion:reduce){.saldo-chip.saldo-pulso{animation:none}}
/* celular estreito: o saldo ocupa o lugar do botão de tema (o tema continua em Preferências) */
@media (max-width:430px){
  html body header .top .top-actions:has(.saldo-chip:not([hidden])) #theme-toggle{display:none}
}
@media (max-width:370px){
  html body header .top .top-actions:has(.saldo-chip:not([hidden])) :is(#search-toggle,#notice-button,.profile-link){width:34px;min-width:34px}
  html body header .top .top-actions .saldo-chip{height:30px;padding:0 7px 0 3px;font-size:12px;gap:3px;margin-right:0}
  html body header .top .top-actions .saldo-chip img{width:19px;height:19px}
}
@media (max-width:440px){
  html body header .top:has(.saldo-chip:not([hidden])) .brand{font-size:0;gap:0;min-width:0}
}
