.result-mask {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 12, 0.62);
  backdrop-filter: blur(2px);
}

/* 赢牌金币散落 */
.result-coins {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.result-coins__c {
  position: absolute;
  top: -28px;
  width: 18px;
  height: 18px;
  animation-name: coinFall;
  animation-timing-function: cubic-bezier(0.4, 0.1, 0.7, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}
@keyframes coinFall {
  0% {
    transform: translateY(-30px) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(540deg);
    opacity: 0.9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .result-coins {
    display: none;
  }
}

.result-card {
  position: relative;
  z-index: 2;
  width: 84%;
  max-width: 340px;
  padding: 16px 16px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1d2a24, #121b17);
  border: 1px solid rgba(244, 210, 122, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* 爆奖横幅 */
.jackpot-hit {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(180deg, #5a3a12, #3a2608);
  border: 1px solid rgba(255, 214, 90, 0.7);
  box-shadow: 0 0 18px rgba(255, 200, 80, 0.45), inset 0 0 12px rgba(255, 200, 80, 0.2);
  animation: jackpotPulse 1.1s ease-in-out infinite alternate;
}
.jackpot-hit__crown {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffe066;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.jackpot-hit__line {
  margin-top: 4px;
  font-size: 12px;
  color: #ffeccb;
}
.jackpot-hit__line b {
  color: #fff3c8;
}
.jackpot-hit__amount {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  font-weight: 900;
  color: #ffd65a;
}
.jackpot-hit__amount .coin {
  width: 18px;
  height: 18px;
}
@keyframes jackpotPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 200, 80, 0.35), inset 0 0 10px rgba(255, 200, 80, 0.15);
  }
  100% {
    box-shadow: 0 0 26px rgba(255, 210, 90, 0.7), inset 0 0 16px rgba(255, 210, 90, 0.3);
  }
}

.result-card__title {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffe9a8;
  margin-bottom: 12px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-row {
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: #d7e3db;
}
.result-row__info {
  display: grid;
  grid-template-columns: 30px 1fr 1.4fr auto;
  align-items: center;
  gap: 9px;
}
.result-row--win {
  background: rgba(244, 210, 122, 0.16);
  border: 1px solid rgba(244, 210, 122, 0.4);
}

/* 赢家/比牌者的头/尾实际牌面 */
.result-row__decks {
  display: flex;
  gap: 14px;
  margin: 6px 0 1px 39px;
}
.result-deck {
  display: flex;
  align-items: center;
  gap: 3px;
}
.result-deck__label {
  font-size: 10px;
  font-weight: 700;
  color: #aebcb3;
  margin-right: 1px;
}
.mcard {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 29px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff, #e7ebe9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  line-height: 1;
}
.mcard__rank {
  font-size: 12px;
  font-weight: 900;
}
.mcard__suit {
  font-size: 9px;
  margin-top: 1px;
}
.mcard--red {
  color: #c8102e;
}
.mcard--black {
  color: #1a1a1a;
}
.mcard--joker {
  color: #b8860b;
}

/* 结算行头像（与台面同一套真人头像，金属边框） */
.result-row__avatar {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  overflow: hidden;
  padding: 1.5px;
  background: linear-gradient(145deg, #f7e3a8 0%, #c69a45 30%, #6f4f24 55%, #c69a45 80%, #f7e3a8 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 248, 220, 0.6);
}
.result-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.result-row__mono {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: radial-gradient(circle at 38% 28%, hsl(var(--seat-hue, 250) 55% 46%), hsl(var(--seat-hue, 250) 50% 22%));
}
.result-row__name {
  font-weight: 700;
  color: #fff;
}
.result-row__hand {
  color: #aebcb3;
  font-size: 11px;
}
.result-row__delta {
  font-weight: 900;
  text-align: right;
  color: #aebcb3;
}
.result-row__delta.pos {
  color: #5fd38a;
}
.result-row__delta.neg {
  color: #ef7676;
}

.result-next {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px 0;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #3a2708;
  background: linear-gradient(180deg, #ffe7a6, #d89a2a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.result-next:active {
  transform: translateY(1px);
}
