/* Put the result just above the board, where it stays visible through settlement. */
.neonGame[data-cash-hand-table] .cashHandResult {
  position: absolute;
  left: 50%;
  bottom: calc(100% + clamp(5px, 1cqh, 12px));
  transform: translateX(-50%);
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: max-content;
  max-width: min(62cqw, 650px);
  box-sizing: border-box;
  padding: 5px clamp(8px, 1.5cqw, 18px) 7px;
  border: 1px solid #ddbd7882;
  border-radius: 10px;
  background: linear-gradient(155deg, #1d2532f8, #11161ff5);
  box-shadow: 0 3px 10px #090b114d;
  color: #fffaf0;
  font: 650 clamp(15px, 2.5cqh, 23px)/1.16 system-ui, sans-serif;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
  pointer-events: none;
}
.cashResultContext, .cashResultRow small {
  display: block;
  font: 600 clamp(12px, 1.8cqh, 16px)/1.2 system-ui, sans-serif;
}
.cashResultContext { color: #e5cd98; }
.cashResultAwards, .cashResultRow { display: grid; gap: 2px; min-width: 0; }
.cashResultRow strong { overflow-wrap: anywhere; }
.cashResultRow strong b { color: #ffe5a5; white-space: nowrap; }
.cashResultRow small { color: #e8edf0; }
.cashHandResult:not([data-award-count="1"]) .cashResultAwards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 4px 10px;
}
.neonGame[data-cash-result-active] .pokerPotHeader > .casinoPot,
.neonGame[data-cash-result-active] .pokerPotHeader > .luxPotChips { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .neonGame[data-cash-hand-table] .casinoFlyingChips.casinoChipFlight {
    animation-name: cashAwardFlight;
    animation-timing-function: cubic-bezier(.32,.04,.25,1);
  }
  @keyframes cashAwardFlight {
    0% { opacity: 0; transform: translate(0,0) scale(.8); }
    12% { opacity: 1; }
    52% { transform: translate(calc(var(--deal-x) * .52),calc(var(--deal-y) * .52 - 7px)) scale(1.08); }
    88% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--deal-x),var(--deal-y)) scale(.86); }
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  .neonGame[data-cash-hand-table] .cashHandResult {
    bottom: calc(100% + 3px);
    padding: 3px 8px;
    gap: 1px;
    font-size: 14px;
  }
  .cashResultRow small, .cashResultContext { font-size: 11px; }
}
