/* FORRA e GESSO: a tela única de resultado das apostas (docs/bet-result-standard.md) */
.bigres {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  animation: brin 0.2s ease-out;
}
.bigres.out {
  animation: brout 0.25s ease-in forwards;
}
@keyframes brin {
  from {
    opacity: 0;
  }
}
@keyframes brout {
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}
.bigres.win {
  background: radial-gradient(
    circle at 50% 45%,
    rgba(30, 110, 62, 0.94),
    rgba(11, 7, 16, 0.97) 70%
  );
}
.bigres.loss {
  background: radial-gradient(circle at 50% 45%, #d8d2c8, #9a9388 60%, #4a4640);
}
.bword {
  font-family: var(--f-horror);
  font-weight: 400;
  font-size: min(30vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}
.win .bword {
  color: #ffd23f;
  text-shadow:
    0 6px 0 #7a5600,
    0 0 40px rgba(255, 210, 63, 0.9),
    0 0 90px rgba(47, 191, 113, 0.8);
  animation: bwin 0.7s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
.loss .bword {
  color: #f4f0e8;
  text-shadow:
    0 2px 0 #b8b0a2,
    0 5px 0 #8a8478,
    0 8px 14px rgba(0, 0, 0, 0.35);
  animation: bloss 0.5s cubic-bezier(0.5, 0, 0.6, 1.4) both;
}
@keyframes bloss {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  70% {
    transform: translateY(4%);
  }
  82% {
    transform: translateY(-2%) rotate(-1deg);
  }
  100% {
    transform: none;
  }
}
.loss .bword::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(0, 0, 0, 0.06) 9px 11px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.bet-result-figure {
  width: 110px;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
  animation: bwin 0.6s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
.bet-result-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.win .bet-result-figure {
  color: #fff6c8;
}
.loss .bet-result-figure {
  color: #231b33;
}
.bet-result-tag {
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #ffd23f;
  color: #3a2500;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  animation: bsub 0.4s 0.2s both;
}
.bet-result-amount {
  margin-top: 14px;
  padding: 6px 18px 6px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  position: relative;
  z-index: 2;
  animation: bsub 0.4s 0.3s both;
}
.bet-result-amount svg {
  width: 30px;
  height: 30px;
}
.bet-result-amount small {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.8;
}
.win .bet-result-amount {
  background: rgba(11, 7, 16, 0.6);
  color: #ffd23f;
}
.loss .bet-result-amount {
  background: rgba(244, 240, 232, 0.7);
  color: #8f1f2c;
}
.bsub {
  margin-top: 10px;
  padding: 0 24px;
  max-width: 340px;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  position: relative;
  z-index: 2;
  animation: bsub 0.4s 0.4s both;
}
.bet-result-dopamine {
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(11, 7, 16, 0.72);
  color: #b99cff;
  font-weight: 900;
  font-size: 14px;
  position: relative;
  z-index: 2;
  animation: bsub 0.4s 0.5s both;
}
.bet-result-fatal {
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 8px;
  background: #b3202f;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  transform: rotate(-2deg);
  position: relative;
  z-index: 2;
  animation: bsub 0.4s 0.55s both;
}
.win .bsub {
  color: #fff;
}
.loss .bsub {
  color: #3a3630;
}
@keyframes bsub {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.bskip {
  position: absolute;
  bottom: calc(30px + var(--sab));
  font-weight: 800;
  font-size: 13px;
  opacity: 0.6;
  z-index: 2;
}
.win .bskip {
  color: #fff;
}
.loss .bskip {
  color: #3a3630;
}
.brays {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 210, 63, 0.22) 0 10deg,
    transparent 10deg 22deg
  );
  animation: spn 9s linear infinite;
  z-index: 1;
}
.bcoin {
  position: absolute;
  left: var(--x);
  top: -40px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2a8, #f5c030 55%, #b7800a);
  border: 3px solid #7a5600;
  z-index: 1;
  animation: bfall 1.6s ease-in var(--d) forwards;
}
@keyframes bfall {
  to {
    transform: translateY(110vh) rotate(var(--r));
  }
}
.bcrack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: bsub 0.3s 0.45s both;
}
.loss {
  animation:
    brin 0.2s ease-out,
    bshk 0.35s 0.45s;
}
@keyframes bshk {
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}
