/* Baú Programado — usa as artes originais do bundle timedchestview */

.bau-fundo {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(6, 2, 16, .74); backdrop-filter: blur(3px);
}

.bau-painel {
  position: relative;
  width: min(880px, 94vw); max-height: 90vh; overflow: auto;
  padding: 22px 26px 18px;
  background-size: 100% 100%; background-repeat: no-repeat;
  background-color: #241243;
  border: 1px solid #6b45b8; border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  color: #efe6ff;
}

.bau-x {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.bau-x img { width: 100%; height: 100%; object-fit: contain; }

.bau-painel header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.bau-icone { width: 54px; height: 54px; object-fit: contain; }
.bau-painel h2 {
  margin: 0; font-size: 20px; letter-spacing: .4px;
  color: #ffd970; text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}
.bau-painel header p { margin: 3px 0 0; font-size: 12.5px; opacity: .78; max-width: 46ch; }

.bau-carteira { margin-left: auto; display: grid; gap: 5px; font-size: 13px; }
.bau-carteira span { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.bau-carteira img { width: 17px; height: 17px; object-fit: contain; }
.pt-ficha {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8f8f, #d5343d 62%, #8d1420);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

/* ---- os quatro slots */

.bau-slots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 18px 0;
}

.bau-slot {
  position: relative; min-height: 226px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 10px 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px;
}
.bau-slot.cheio { border-color: var(--cor, #b3763d); }
.bau-slot.vazio { opacity: .55; justify-content: center; }
.bau-slot.vazio .ka { width: 76px; opacity: .5; }
.bau-slot.vazio .cadeado { position: absolute; width: 30px; opacity: .7; }
.bau-slot .rot { font-size: 12px; opacity: .7; }

.bau-slot .brilho {
  position: absolute; top: 6px; left: 50%; translate: -50% 0;
  width: 130px; opacity: .85; pointer-events: none;
  animation: bau-pulsa 1.8s ease-in-out infinite;
}
@keyframes bau-pulsa { 50% { opacity: .35; scale: 1.06; } }

.bau-img { width: 92px; height: 92px; object-fit: contain; }
.bau-slot .nome { font-size: 13px; font-weight: 600; color: var(--cor, #e8c98d); }

.bau-slot .barra {
  width: 100%; height: 12px; border-radius: 7px; overflow: hidden;
  background-color: rgba(0, 0, 0, .45); background-size: 100% 100%;
}
.bau-slot .barra i {
  display: block; height: 100%; border-radius: 7px;
  background-size: 100% 100%; background-color: var(--cor, #b3763d);
  transition: width .4s ease;
}
.bau-slot .conta { display: flex; align-items: center; gap: 5px; font-size: 12px; opacity: .85; }
.bau-slot .conta img { width: 13px; height: 13px; object-fit: contain; }
.bau-slot .pronto {
  font-size: 12.5px; font-weight: 700; color: #7ee787;
  text-transform: uppercase; letter-spacing: .5px;
}

.bau-slot .acoes { margin-top: auto; display: grid; gap: 6px; width: 100%; }

.bau-btn {
  padding: 7px 8px; font: inherit; font-size: 12px; font-weight: 600;
  color: #2a1608; background-size: 100% 100%; background-repeat: no-repeat;
  background-color: #f0c45a; border: 0; border-radius: 8px; cursor: pointer;
}
.bau-btn:hover { filter: brightness(1.08); }
.bau-btn.bom { background-color: #64c46e; color: #10240f; }
.bau-btn.moeda { background-color: #8f6de0; color: #fff; }

.bau-painel footer {
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; opacity: .82;
}
.bau-alerta { margin-left: auto; color: #ffb35c; }

@media (max-width: 760px) {
  .bau-slots { grid-template-columns: repeat(2, 1fr); }
  .bau-painel header { flex-wrap: wrap; }
  .bau-carteira { margin-left: 0; }
}
