/* Baú Diário */
.arena.dch {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  overflow-y: auto;
}
.dtop {
  text-align: center;
  padding-top: 6px;
}
.dtop h2 {
  font-family: var(--f-horror);
  font-weight: 400;
  font-size: 40px;
  margin: 0;
  text-shadow:
    0 3px 0 var(--accent-d),
    0 0 22px rgba(224, 36, 58, 0.6);
}
.dtop p {
  margin: 4px 0 0;
  font-weight: 800;
  opacity: 0.85;
}
.dbox {
  position: relative;
  width: 230px;
  height: 220px;
  margin: 14px auto 0;
  cursor: pointer;
}
.dbox > svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  animation: dsway 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.dbox.done > svg,
.dbox.mini > svg {
  animation: none;
}
.dbox.done {
  filter: grayscale(0.8) brightness(0.7);
  cursor: default;
}
.dbox.mini {
  width: 120px;
  height: 115px;
  margin: 0 auto;
}
@keyframes dsway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}
.dbox .dglw {
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 192, 48, 0.55), transparent 62%);
  animation: tw 2s ease-in-out infinite;
  pointer-events: none;
}
.dbox.shk > svg {
  animation: dshk 0.14s linear infinite;
}
@keyframes dshk {
  0% {
    transform: rotate(-6deg) translateX(-4px);
  }
  50% {
    transform: rotate(6deg) translateX(4px);
  }
  100% {
    transform: rotate(-6deg) translateX(-4px);
  }
}
.dbox .drays {
  animation: dray 6s linear infinite;
}
@keyframes dray {
  to {
    transform: rotate(360deg);
  }
}
.dprz {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 96px;
  height: 96px;
  margin-left: -48px;
  animation: dup 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
}
.dprz svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dprz.kid {
  width: 120px;
  height: 140px;
  margin-left: -60px;
  animation: dkid 1s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}
@keyframes dup {
  from {
    transform: translateY(90px) scale(0.3);
    opacity: 0;
  }
  to {
    transform: translateY(-40px) scale(1);
    opacity: 1;
  }
}
@keyframes dkid {
  0% {
    transform: translateY(90px) scale(0.2) rotate(-30deg);
    opacity: 0;
  }
  60% {
    transform: translateY(-90px) scale(1.1) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(1) rotate(0);
  }
}
.dbox.brk > svg {
  animation: dbrk 0.5s ease-out forwards;
}
@keyframes dbrk {
  40% {
    transform: scale(1.15, 0.9);
  }
  100% {
    transform: scale(1.05, 0.95) rotate(3deg);
  }
}
.dfull {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  animation: flash 2.2s ease-out forwards;
}
.dlab {
  margin-top: 8px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7) !important;
}
.dpos {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.dpos span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.dpos svg {
  width: 40px;
  height: 40px;
}
.dpos-coin,
.dprz.coin {
  color: var(--gold);
}
.dpos-flame {
  color: #ff8a3d;
}
.dcd {
  margin-top: 14px;
  font-weight: 800;
  font-size: 16px;
}
.dcd b {
  font-family: var(--f-display);
  font-size: 26px;
  color: #f5c030;
}
.btn.dbtn {
  background: linear-gradient(180deg, #f5c030, #d99a10);
  color: #231b33;
  box-shadow:
    0 4px 0 #8a5a00,
    0 0 22px rgba(245, 192, 48, 0.55);
  font-size: 17px;
  min-height: 54px;
}
/* destaque do baú: chip no topo da casa e card no topo dos jogos */
.chestc {
  position: relative;
  display: none;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 99px;
  padding: 4px 10px 4px 6px;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(180deg, #f5c030, #d99a10);
  color: #231b33;
  box-shadow: 0 0 14px rgba(245, 192, 48, 0.8);
  animation: happy 0.9s ease-in-out infinite;
}
.chestc.on {
  display: flex;
}
.chestc::after {
  content: "";
  position: absolute;
  inset: -6px -3px;
}
.chestc:active {
  transform: scale(0.94);
  filter: brightness(0.88);
}
.chestc svg {
  width: 24px;
  height: 24px;
}
#s-games .gcard.dcard {
  border-color: var(--place-mark);
}
.gcard.dcard .tag {
  display: inline-block;
  background: #f5c030;
  color: #231b33;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 900;
  margin-left: 4px;
  vertical-align: 2px;
}
#s-games .gcard.dcard.off {
  border-color: var(--place-line);
  filter: grayscale(0.7);
}
.gcard.dcard .ic svg {
  width: 52px;
  height: 52px;
}
