/* 开奖摇奖动画（用户端活动页） */

.dla-scrim {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 38%, rgba(40, 40, 46, 0.9), rgba(0, 0, 0, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.dla-scrim.show { opacity: 1; pointer-events: auto; }

.dla-stage {
  position: relative;
  width: min(92vw, 560px);
  box-sizing: border-box;
  padding: 22px 22px 18px;
  border-radius: 26px;
  text-align: center;
  color: #f5f5f7;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #232327 0%, #131316 55%, #0a0a0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.36s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

.dla-scrim.show .dla-stage { transform: none; }

.dla-stage.win {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 213, 109, 0.5),
    0 0 48px rgba(255, 199, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dla-issue {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #8b8b92;
}

.dla-title {
  margin: 5px 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== 摇奖滚筒 ===== */
.dla-drum-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 204px;
  margin-bottom: 6px;
  transition: height 0.4s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.dla-drum-wrap.exit { height: 0; margin: 0; overflow: hidden; }

.dla-drum {
  position: relative;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 50% 50%, #1b1b1f 0%, #0c0c0e 100%);
  border: 5px solid #303034;
  box-shadow:
    inset 0 12px 34px rgba(0, 0, 0, 0.85),
    inset 0 -10px 24px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.dla-drum::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.13);
}

.dla-drum::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 8%;
  width: 46%;
  height: 26%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  filter: blur(2px);
  pointer-events: none;
}

.dla-spin {
  position: absolute;
  inset: 22px;
  animation: dla-rotate 2.4s linear infinite;
}

.dla-drum.shake { animation: dla-shake 0.42s ease-in-out infinite; }
.dla-drum.exit { transform: scale(0.72); opacity: 0; }

.dla-mini {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset -3px -5px 8px rgba(0, 0, 0, 0.4), 0 3px 7px rgba(0, 0, 0, 0.35);
}

.dla-mini.red { background: radial-gradient(circle at 32% 26%, #ff8a80, #b4000c 72%); }
.dla-mini.blue { background: radial-gradient(circle at 32% 26%, #8fc7ff, #0050a8 72%); }
.dla-mini.neutral { background: radial-gradient(circle at 32% 26%, #c9c9cf, #4a4a4f 72%); }
.dla-mini.digit { background: radial-gradient(circle at 32% 26%, #ffe08a, #c2760a 72%); }

@keyframes dla-rotate { to { transform: rotate(360deg); } }

@keyframes dla-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, 2px) rotate(-1.2deg); }
  50% { transform: translate(3px, -2px) rotate(1.2deg); }
  75% { transform: translate(-2px, -2px) rotate(-0.8deg); }
}

/* ===== 开奖号码盘 ===== */
.dla-tray {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 98px;
  padding: 8px 6px;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dla-tray.show { opacity: 1; }

.dla-ball {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #ff8a80, #b4000c 72%);
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.32), 0 6px 14px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(-120px) scale(0.6);
  animation: dla-drop 0.5s cubic-bezier(0.24, 0.82, 0.3, 1.18) forwards;
}

.dla-ball.blue {
  background: radial-gradient(circle at 32% 26%, #8fc7ff, #0050a8 72%);
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.32), 0 0 16px rgba(90, 170, 255, 0.55);
}

.dla-ball.neutral { background: radial-gradient(circle at 32% 26%, #c9c9cf, #4a4a4f 72%); }
.dla-ball.digit { background: radial-gradient(circle at 32% 26%, #ffe08a, #c2760a 72%); }
.dla-ball.small { width: 30px; height: 30px; font-size: 12px; }
.dla-ball.mid { width: 34px; height: 34px; font-size: 14px; }

@keyframes dla-drop {
  0% { opacity: 0; transform: translateY(-120px) scale(0.6); }
  62% { opacity: 1; transform: translateY(5px) scale(1.04); }
  82% { transform: translateY(-2px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 中奖 / 未中奖反馈 ===== */
.dla-feedback {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.dla-feedback.show {
  max-height: 180px;
  opacity: 1;
  margin-top: 12px;
}

.dla-feedback-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dla-feedback-sub {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.6;
  color: #a1a1a8;
}

.dla-feedback.win .dla-feedback-title {
  background: linear-gradient(90deg, #ffe9a8, #ffc247 45%, #ff9d2f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 19px;
  text-shadow: 0 0 18px rgba(255, 194, 71, 0.25);
}

.dla-feedback.lose .dla-feedback-title { color: #d7d7dc; }

/* 撒花 */
.dla-confetti {
  position: absolute;
  top: -12vh;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: dla-confetti 2.6s ease-in forwards;
  pointer-events: none;
}

@keyframes dla-confetti {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0.9; transform: translateY(115vh) rotate(620deg); }
}

/* ===== 状态与按钮 ===== */
.dla-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #83838a;
}

.dla-actions { margin-top: 12px; }

.dla-skip {
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dla-skip:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 480px) {
  .dla-stage { padding: 18px 14px 14px; border-radius: 22px; }
  .dla-drum-wrap { height: 176px; }
  .dla-drum { width: 160px; height: 160px; }
  .dla-spin { inset: 18px; }
  .dla-mini { width: 24px; height: 24px; font-size: 10px; }
  .dla-tray { min-height: 84px; gap: 6px; }
  .dla-ball { width: 34px; height: 34px; font-size: 14px; }
  .dla-ball.small { width: 26px; height: 26px; font-size: 11px; }
  .dla-ball.mid { width: 30px; height: 30px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .dla-spin, .dla-drum.shake, .dla-confetti { animation: none !important; }
  .dla-ball { animation-duration: 0.01s !important; }
  .dla-scrim, .dla-stage, .dla-drum, .dla-tray, .dla-feedback { transition: none !important; }
}
