.jp-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* ===== 金币散落动画 ===== */
.jp-coins {
  position: absolute;
  inset: 0;
  z-index: 32;
  pointer-events: none;
}
.jp-coin {
  position: absolute;
  top: -24px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff3c0, #f4c645 55%, #b9821a);
  box-shadow: 0 0 4px rgba(255, 210, 110, 0.8), inset 0 0 0 2px rgba(255, 240, 190, 0.7);
  animation-name: jpCoinFall;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes jpCoinFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(720px) rotate(540deg);
    opacity: 0.9;
  }
}

/* ===== 木纹弹窗 ===== */
.jp-panel {
  position: relative;
  z-index: 31;
  width: 88%;
  max-width: 360px;
  max-height: 82%;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e7c08a 0%, #d8a866 32%, #c99457 100%);
  border: 2px solid #f3dcae;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(120, 70, 30, 0.4);
}

.jp-titlebar {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  padding: 7px 30px;
  text-align: center;
  background: linear-gradient(180deg, #a13b2a, #7c2418);
  border: 2px solid #f3dcae;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.jp-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffe6a8;
  letter-spacing: 4px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}
.jp-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(90, 45, 20, 0.5);
  color: #ffe6a8;
  font-size: 13px;
  cursor: pointer;
}

/* 分页 */
.jp-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 10px;
  background: rgba(110, 64, 28, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(120, 70, 30, 0.4);
}
.jp-tab {
  flex: 1;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 800;
  color: #5a3414;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.jp-tab.is-on {
  color: #6a2a10;
  background: linear-gradient(180deg, #ffd567, #f0aa33);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jp-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  text-align: center;
}

.jp-sub {
  margin: 6px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #7c3a12;
}
.jp-sub--gold {
  color: #8a2f12;
  font-size: 16px;
  letter-spacing: 2px;
}
.jp-sub2 {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #7c3a12;
}

/* 数字滚轮 */
.jp-reel {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.jp-reel__digit {
  width: 34px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #e8902a;
  background: linear-gradient(180deg, #fff4d6 0%, #f0d28e 50%, #d9ad55 100%);
  border: 1px solid #b9842f;
  border-radius: 5px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -3px 4px rgba(120, 70, 20, 0.4);
}

/* 各级别奖金 */
.jp-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.jp-level {
  padding: 7px 4px;
  background: linear-gradient(180deg, rgba(150, 92, 40, 0.45), rgba(110, 64, 28, 0.55));
  border: 1px solid rgba(243, 220, 174, 0.5);
  border-radius: 8px;
}
.jp-level__name {
  font-size: 16px;
  font-weight: 900;
  color: #ffe27a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.jp-level__cap {
  margin: 3px 0;
  font-size: 9px;
  color: #f0dcb4;
}
.jp-level__reel {
  display: flex;
  justify-content: center;
  gap: 1px;
}
.jp-level__digit {
  width: 11px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #e8902a;
  background: #fff4d6;
  border: 1px solid #c79a55;
  border-radius: 2px;
}

/* 奖励牌型 */
.jp-rewards-head {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6a3410;
}
.jp-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(120, 70, 30, 0.25);
}
.jp-reward__name {
  flex: 0 0 40px;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  color: #7c2a10;
}
.jp-reward__cards {
  display: flex;
  gap: 10px;
}
.jp-pair {
  display: flex;
  gap: 2px;
}
.jp-card {
  width: 22px;
  height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #222;
  background: linear-gradient(160deg, #fff, #efeada);
  border: 1px solid #b9b1a0;
  border-radius: 2px;
}
.jp-card--red {
  color: #c62828;
}
.jp-card--joker b {
  font-size: 6px;
  line-height: 1.1;
  writing-mode: vertical-rl;
  color: #c62828;
}
.jp-card__suit {
  font-size: 10px;
}

/* 比例环 */
.jp-ring {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jp-ring__hole {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff4d6;
  background: #7c4a22;
}
.jp-note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #6a3410;
}

/* 奖池记录 */
.jp-topwin {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(60, 40, 90, 0.7), rgba(120, 70, 110, 0.55));
  border: 1px solid rgba(243, 220, 174, 0.5);
  color: #ffe9c4;
  font-size: 12px;
}
.jp-topwin__player {
  flex: 1;
  text-align: left;
  font-weight: 700;
}
.jp-topwin__amt {
  font-weight: 900;
  color: #ffd86b;
}
.jp-records {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(110, 64, 28, 0.25);
}
.jp-record {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  font-size: 12px;
  color: #5a3414;
  background: rgba(243, 220, 174, 0.35);
}
.jp-record__player {
  flex: 1;
  text-align: left;
  font-weight: 700;
}
.jp-record__amt {
  font-weight: 900;
  color: #9a4a14;
}
.jp-record__date {
  color: #7c5a30;
  font-size: 11px;
}
