:root {
  --yunshang-lottery-primary: #ea5f8f;
  --yunshang-lottery-primary-soft: rgba(234, 95, 143, 0.12);
  --yunshang-lottery-blue: #2f6cf6;
  --yunshang-lottery-ink: #0f172a;
  --yunshang-lottery-text: #1e293b;
  --yunshang-lottery-muted: #64748b;
  --yunshang-lottery-bg: #f4f7fb;
  --yunshang-lottery-surface: #ffffff;
  --yunshang-lottery-border: rgba(15, 23, 42, 0.08);
}

.yunshang-lottery-root {
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  float: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  overscroll-behavior-y: auto;
}

.yunshang-lottery-root .alignleft,
.yunshang-lottery-root .alignright,
.yunshang-lottery-root .aligncenter {
  float: none;
  margin: 0;
}

.yunshang-lottery-shell {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --yunshang-lottery-grid-gap: 12px;
  --yunshang-lottery-grid-gap-mobile: 10px;
  color: var(--yunshang-lottery-text);
  display: grid;
  gap: 20px;
  position: relative;
  width: min(100%, 1100px);
  margin-inline: auto;
}

.yunshang-lottery-shell.is-grid-gap-compact {
  --yunshang-lottery-grid-gap: 10px;
  --yunshang-lottery-grid-gap-mobile: 8px;
}

.yunshang-lottery-shell.is-grid-gap-relaxed {
  --yunshang-lottery-grid-gap: 14px;
  --yunshang-lottery-grid-gap-mobile: 12px;
}

.yunshang-lottery-page-head-note {
  line-height: 1.45;
  color: #475569;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(71, 85, 105, 0.2);
}

.yunshang-lottery-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  color: #fff;
  border-radius: var(--yunshang-lottery-radius, 12px);
  background: linear-gradient(180deg, rgba(113, 100, 193, 0.94), rgba(103, 89, 184, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 7px 14px rgba(79, 70, 229, 0.07);
  max-width: 1056px;
  margin: 0 auto;
}

.yunshang-lottery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--lottery-cover-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  mix-blend-mode: screen;
}

.yunshang-lottery-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 24%);
}

.yunshang-lottery-hero > * {
  position: relative;
  z-index: 1;
}

.yunshang-lottery-hero-content {
  display: grid;
  gap: 3px;
  align-content: start;
  justify-items: center;
  text-align: center;
  max-width: 920px;
}

.yunshang-lottery-hero h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.yunshang-lottery-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yunshang-lottery-description {
  max-width: 64ch;
  line-height: 1.3;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.yunshang-lottery-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.yunshang-lottery-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.yunshang-lottery-chip.is-muted {
  color: rgba(255, 255, 255, 0.78);
}

.yunshang-lottery-hero-panel {
  display: none;
}

.yunshang-lottery-activity-banner {
  display: grid;
}

.yunshang-lottery-sidebar {
  display: grid;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-hero {
  animation: yunshangLotteryHeroEnter .7s ease both;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-stage-card {
  animation: yunshangLotteryFloatIn .75s ease both;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-sidebar .yunshang-card {
  animation: yunshangLotteryFloatIn .75s ease both;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-sidebar .yunshang-card:nth-child(1) {
  animation-delay: .04s;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-sidebar .yunshang-card:nth-child(2) {
  animation-delay: .1s;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-sidebar .yunshang-card:nth-child(3) {
  animation-delay: .16s;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-sidebar .yunshang-card:nth-child(4) {
  animation-delay: .22s;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-chip {
  animation: yunshangLotteryChipPop .55s ease both;
}

.yunshang-lottery-shell.is-ready .yunshang-lottery-chip:nth-child(2) { animation-delay: .03s; }
.yunshang-lottery-shell.is-ready .yunshang-lottery-chip:nth-child(3) { animation-delay: .06s; }
.yunshang-lottery-shell.is-ready .yunshang-lottery-chip:nth-child(4) { animation-delay: .09s; }
.yunshang-lottery-shell.is-ready .yunshang-lottery-chip:nth-child(5) { animation-delay: .12s; }
.yunshang-lottery-shell.is-ready .yunshang-lottery-chip:nth-child(6) { animation-delay: .15s; }

.yunshang-lottery-status-card {
  overflow: hidden;
}

.yunshang-lottery-state-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.yunshang-lottery-state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 108, 246, 0.1);
  color: var(--yunshang-lottery-blue);
  font-size: 12px;
  font-weight: 700;
}

.yunshang-lottery-state-badge.is-accent {
  background: var(--yunshang-lottery-primary-soft);
  color: var(--yunshang-lottery-primary);
}

.yunshang-lottery-state-user {
  display: grid;
  gap: 3px;
  margin: 12px 0 10px;
}

.yunshang-lottery-state-user span {
  font-size: 18px;
  font-weight: 700;
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-state-user small,
.yunshang-lottery-status-card p,
.yunshang-lottery-limit-note {
  color: var(--yunshang-lottery-muted);
  line-height: 1.7;
}

.yunshang-lottery-login-cta {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 108, 246, 0.06), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(47, 108, 246, 0.12);
}

.yunshang-lottery-login-cta strong {
  display: block;
  margin-bottom: 10px;
  color: var(--yunshang-lottery-ink);
  line-height: 1.6;
}

.yunshang-lottery-login-actions {
  display: grid;
  gap: 8px;
}

.yunshang-lottery-login-actions .button {
  width: fit-content;
}

.yunshang-lottery-login-actions span {
  color: var(--yunshang-lottery-muted);
  line-height: 1.6;
}

.yunshang-lottery-status-card.is-logged-in {
  border-color: rgba(47, 108, 246, 0.18);
  background: linear-gradient(180deg, rgba(47, 108, 246, 0.05), #fff);
}

.yunshang-lottery-status-card.is-guest {
  border-color: rgba(234, 95, 143, 0.18);
  background: linear-gradient(180deg, rgba(234, 95, 143, 0.05), #fff);
}

.yunshang-lottery-activity-banner {
  padding: 14px 16px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #f8fafc);
}

.yunshang-lottery-activity-banner span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-activity-banner strong {
  font-size: 15px;
  line-height: 1.7;
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-activity-banner.is-active {
  border-color: rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(255, 255, 255, 0.96));
}

.yunshang-lottery-activity-banner.is-upcoming {
  border-color: rgba(234, 95, 143, 0.18);
  background: linear-gradient(180deg, rgba(234, 95, 143, 0.08), rgba(255, 255, 255, 0.96));
}

.yunshang-lottery-activity-banner.is-ended,
.yunshang-lottery-activity-banner.is-offline,
.yunshang-lottery-activity-banner.is-draft {
  border-color: rgba(100, 116, 139, 0.16);
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.06), rgba(255, 255, 255, 0.96));
}

.yunshang-lottery-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.yunshang-lottery-limit-grid div {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.yunshang-lottery-limit-grid small {
  display: block;
  margin-bottom: 8px;
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-limit-grid strong {
  font-size: 20px;
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-limit-meter {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.yunshang-lottery-limit-meter-bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.yunshang-lottery-limit-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yunshang-lottery-primary), #ff8abc);
  box-shadow: 0 4px 10px rgba(255, 79, 159, 0.18);
}

.yunshang-lottery-limit-meter-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}

.yunshang-lottery-limit-meter-meta strong {
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-limit-meter-meta span {
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.yunshang-lottery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.yunshang-lottery-layout-main {
  display: grid;
  gap: 20px;
}

.yunshang-lottery-layout .yunshang-lottery-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.yunshang-lottery-stage-card,
.yunshang-lottery-sidebar .yunshang-card {
  background: var(--yunshang-lottery-surface);
  border-radius: var(--yunshang-lottery-radius, 20px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--yunshang-lottery-border);
  padding: 22px;
}

.yunshang-lottery-stage-card {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.yunshang-lottery-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.yunshang-lottery-stage-head--center {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.yunshang-lottery-stage-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.yunshang-lottery-kicker {
  margin: 0;
  color: var(--yunshang-lottery-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yunshang-lottery-stage-note {
  color: var(--yunshang-lottery-muted);
  font-size: 13px;
}

.yunshang-lottery-prize-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f9fc, #eef2f7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 12px 28px rgba(15, 23, 42, 0.06);
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards {
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 10px 10px 50px;
  border-radius: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.035);
  box-shadow: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li + li {
  margin-top: 0;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #fff, #fff8fc);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07), inset 0 0 0 1px rgba(255, 79, 159, 0.06);
  border-color: rgba(255, 79, 159, 0.1);
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li::before {
  content: '🎁';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #7c6ae4, #6657b8);
  color: #fff;
  font-size: 12px;
  opacity: 0.68;
  box-shadow: 0 5px 12px rgba(124, 106, 228, 0.12);
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff7fb3, #7c6ae4);
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li span {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li span {
  padding-right: 8px;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li span small {
  display: inline-flex;
  width: fit-content;
  padding: 0 9px;
  min-height: 18px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 79, 159, 0.04);
  color: #c08497;
  font-size: 10px;
  font-weight: 700;
}

.yunshang-lottery-prize-panel .yunshang-lottery-prize-list--cards li strong {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #f43f5e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.84;
}

.yunshang-lottery-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  margin-bottom: 18px;
  overflow: visible;
}

.yunshang-lottery-wheel {
  width: min(72vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -90deg,
      rgba(255, 255, 255, 0.98) 0 calc((360deg / var(--segment-count, 8)) - 1deg),
      rgba(244, 120, 136, 0.42) calc((360deg / var(--segment-count, 8)) - 1deg) calc(360deg / var(--segment-count, 8))
    );
  position: relative;
  box-shadow:
    inset 0 0 0 8px #f7ca54,
    inset 0 0 0 12px #f4838c,
    0 14px 34px rgba(255, 79, 159, 0.16);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotate(0deg);
  will-change: transform;
  animation: yunshangLotteryWheelGlow 4s ease-in-out infinite;
}

.yunshang-lottery-wheel::before {
  content: '抽奖';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.24) 0 13%, transparent 14%),
    radial-gradient(circle at top, #ff97a1 0%, #f46d7a 52%, #ea6072 100%);
  border: 5px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(234, 95, 143, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  z-index: 2;
  pointer-events: none;
}

.yunshang-lottery-wheel::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.42);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.yunshang-lottery-wheel.is-spinning {
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.85), 0 20px 50px rgba(255, 79, 159, 0.26);
  animation: none;
}

.yunshang-lottery-wheel.is-pre-spinning {
  animation: yunshangLotteryWheelLoop .72s linear infinite;
}

.yunshang-lottery-shell.is-wheel-result .yunshang-lottery-wheel::after {
  opacity: 1;
  animation: yunshangLotteryWheelRing .95s ease-out;
}

.yunshang-lottery-shell.is-wheel-result .yunshang-lottery-wheel-pointer {
  animation: yunshangLotteryPointerPop .6s ease;
}

.yunshang-lottery-wheel-segment {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #3d3d4d;
  font-weight: 500;
  transform: rotate(calc((360deg / var(--segment-count, 8)) * var(--segment-index, 0)));
  opacity: 0;
  animation: yunshangLotterySegmentEnter .55s ease both;
  animation-delay: calc(var(--segment-index, 0) * .04s);
  z-index: 0;
}

.yunshang-lottery-wheel-segment span {
  max-width: 76px;
  text-align: center;
  transform: translateY(-88px) rotate(calc((360deg / var(--segment-count, 8)) * var(--segment-index, 0) * -1));
  transform-origin: center center;
  display: grid;
  gap: 2px;
  color: #3d3d4d;
  font-size: 11px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.yunshang-lottery-wheel-segment span small {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto;
  padding: 0 6px;
  min-height: 16px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 79, 159, 0.04);
  color: #f08a99;
  font-size: 9px;
  letter-spacing: 0;
  opacity: 1;
}

.yunshang-lottery-wheel-pointer {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 24px solid #ff5f74;
  filter: drop-shadow(0 5px 8px rgba(255, 95, 116, 0.2));
  z-index: 2;
}

.yunshang-lottery-scratch-card {
  position: relative;
  min-height: 350px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--yunshang-lottery-primary-soft));
  border: 1px solid rgba(255, 79, 159, 0.16);
}

.yunshang-lottery-shell.is-mode-scratch .yunshang-lottery-scratch-card {
  min-height: 360px;
  box-shadow: 0 14px 32px rgba(255, 79, 159, 0.12);
}

.yunshang-lottery-scratch-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: yunshangLotteryShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.yunshang-lottery-scratch-cover,
.yunshang-lottery-scratch-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.yunshang-lottery-scratch-cover {
  background: linear-gradient(135deg, #ff7eb8, #ffb6d5);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: grab;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.yunshang-lottery-scratch-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.24), transparent 55%);
  opacity: 0.8;
}

.yunshang-lottery-scratch:hover .yunshang-lottery-scratch-cover {
  transform: scale(1.02);
}

.yunshang-lottery-scratch.is-pending .yunshang-lottery-scratch-cover {
  cursor: wait;
  letter-spacing: 1px;
  background: linear-gradient(120deg, #7c6ae4, #ff7eb8, #7c6ae4);
  background-size: 220% 100%;
  animation: yunshangLotteryScratchPending 1s linear infinite;
}

.yunshang-lottery-scratch-reveal {
  opacity: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.95), #fff);
}

.yunshang-lottery-shell.is-mode-scratch .yunshang-lottery-scratch-reveal {
  align-content: center;
  gap: 8px;
}

.yunshang-lottery-shell.is-mode-scratch .yunshang-lottery-scratch-reveal strong {
  color: var(--yunshang-lottery-primary);
  font-size: 22px;
}

.yunshang-lottery-shell.is-mode-scratch .yunshang-lottery-scratch-reveal p {
  max-width: 26ch;
  color: #475569;
}

.yunshang-lottery-scratch.is-revealed .yunshang-lottery-scratch-cover {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}

.yunshang-lottery-scratch.is-revealed .yunshang-lottery-scratch-reveal {
  opacity: 1;
}

.yunshang-lottery-scratch.is-revealed .yunshang-lottery-scratch-reveal strong,
.yunshang-lottery-scratch.is-revealed .yunshang-lottery-scratch-reveal p {
  animation: yunshangLotteryFloatIn .5s ease both;
}

.yunshang-lottery-shell.is-mode-scratch .yunshang-lottery-scratch.is-revealed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 126, 184, 0.16), transparent 58%);
  animation: yunshangLotteryScratchBurst .7s ease-out;
  pointer-events: none;
}

.yunshang-lottery-shell.is-mode-scratch.is-result-visible .yunshang-lottery-scratch-card {
  border-color: rgba(255, 79, 159, 0.22);
  box-shadow: 0 18px 36px rgba(255, 79, 159, 0.16), inset 0 0 0 1px rgba(255,255,255,0.65);
}

.yunshang-lottery-shell.is-mode-scratch.is-result-visible .yunshang-lottery-scratch-reveal {
  background: radial-gradient(circle at top, rgba(255,255,255,0.98), #fff7fb);
}

.yunshang-lottery-particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.yunshang-lottery-particle {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: yunshangLotteryParticleFly .95s ease-out var(--particle-delay, 0s) both;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

.yunshang-lottery-draw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.yunshang-lottery-shell.is-mode-grid .yunshang-lottery-draw-grid {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(47, 108, 246, 0.06), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(47, 108, 246, 0.12);
}

.yunshang-lottery-draw-card {
  position: relative;
  min-height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255, 79, 159, 0.12);
  background: linear-gradient(180deg, #fff, var(--yunshang-lottery-primary-soft));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
  padding: 16px;
  color: var(--yunshang-lottery-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: yunshangLotteryCardEnter .55s ease both;
  animation-delay: calc(var(--card-index, 0) * .06s);
  min-width: 0;
}

.yunshang-lottery-draw-card strong,
.yunshang-lottery-draw-card em {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yunshang-lottery-draw-card .index {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 999px;
  background: var(--yunshang-lottery-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.yunshang-lottery-grid-slot-icon {
  flex: 0 0 auto;
  transform: translateY(-2px);
}

.yunshang-lottery-grid-slot-title {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: calc(100% - 12px);
  min-height: 1.35em;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  margin-top: -4px;
  padding-bottom: 4px;
  position: relative;
}

.yunshang-lottery-grid-slot-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0));
}

.yunshang-lottery-grid-slot-type {
  display: block;
  max-width: 100%;
  font-size: 10px;
  line-height: 1.2;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.yunshang-lottery-grid-slot-probability {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 20px);
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: #be185d;
  white-space: nowrap;
}

.yunshang-lottery-draw-card:hover .yunshang-lottery-grid-slot-type,
.yunshang-lottery-draw-card.is-winning .yunshang-lottery-grid-slot-type,
.yunshang-lottery-shell.is-mode-grid.is-result-visible .yunshang-lottery-draw-card.is-winning .yunshang-lottery-grid-slot-type {
  opacity: 1;
  transform: translateY(0);
}

.yunshang-lottery-draw-card.is-winning {
  box-shadow: 0 0 0 3px rgba(255, 79, 159, 0.14);
  transform: translateY(-2px);
}

.yunshang-lottery-shell.is-mode-grid.is-pending .yunshang-lottery-draw-card {
  opacity: 0.6;
  transform: scale(0.985);
}

.yunshang-lottery-shell.is-mode-grid.is-pending .yunshang-lottery-draw-card.is-pending-active {
  opacity: 1;
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(47, 108, 246, 0.38);
  box-shadow: 0 14px 28px rgba(47, 108, 246, 0.2);
  animation: yunshangLotteryGridScan .22s ease both;
}

.yunshang-lottery-draw-card.is-winning,
.yunshang-lottery-shell.is-mode-draw .yunshang-lottery-draw-card.is-winning {
  animation: yunshangLotteryCardFocus .85s ease both;
}

.yunshang-lottery-draw-card.is-winning::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(255, 79, 159, 0.16), transparent 60%);
  opacity: 0;
  animation: yunshangLotteryFocusHalo .9s ease both;
  pointer-events: none;
}

.yunshang-lottery-draw-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.yunshang-lottery-draw-card.is-winning::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(255, 79, 159, 0.38);
  pointer-events: none;
}

.yunshang-lottery-draw-card em {
  font-style: normal;
  color: #64748b;
}

.yunshang-lottery-shell.is-mode-grid.is-result-visible .yunshang-lottery-draw-card.is-winning {
  background: linear-gradient(180deg, #ffffff, rgba(122, 231, 255, 0.22));
  border-color: rgba(47, 108, 246, 0.28);
  box-shadow: 0 14px 32px rgba(47, 108, 246, 0.18), 0 0 0 4px rgba(47, 108, 246, 0.08);
}

.yunshang-lottery-shell.is-mode-grid.is-result-visible .yunshang-lottery-draw-card.is-winning .index {
  background: linear-gradient(180deg, var(--yunshang-lottery-blue), #7ae7ff);
}

.yunshang-lottery-shell.is-mode-grid.is-result-visible .yunshang-lottery-draw-card.is-winning strong {
  color: var(--yunshang-lottery-blue);
}

.yunshang-lottery-shell.is-mode-grid.is-result-visible .yunshang-lottery-draw-card.is-winning em {
  color: #1d4ed8;
}

.yunshang-lottery-shell.is-mode-grid.is-result-visible .yunshang-lottery-draw-card.is-winning .yunshang-lottery-grid-slot-probability {
  background: rgba(255, 255, 255, 0.9);
  color: #1d4ed8;
}

.yunshang-lottery-action-row {
  display: grid;
  gap: 8px;
}

.yunshang-lottery-action-note {
  font-size: 13px;
  color: var(--yunshang-lottery-muted);
  text-align: center;
}

.yunshang-lottery-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.yunshang-lottery-account-grid div {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.96));
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 6px;
}

.yunshang-lottery-account-grid span {
  color: var(--yunshang-lottery-muted);
  font-size: 12px;
}

.yunshang-lottery-account-grid strong {
  color: var(--yunshang-lottery-ink);
  font-size: 18px;
}

.yunshang-lottery-grid-board {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(122, 231, 255, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 186, 96, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(48, 102, 237, 0.1), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(47, 108, 246, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 36px rgba(47, 108, 246, 0.08);
}

.yunshang-lottery-grid-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(104px, 1fr));
  gap: var(--yunshang-lottery-grid-gap, 12px);
  aspect-ratio: 1;
}

.yunshang-lottery-grid-slot,
.yunshang-lottery-grid-center {
  width: 100%;
  height: 100%;
}

.yunshang-lottery-grid-slot.slot-tl {
  grid-column: 1;
  grid-row: 1;
}

.yunshang-lottery-grid-slot.slot-tc {
  grid-column: 2;
  grid-row: 1;
}

.yunshang-lottery-grid-slot.slot-tr {
  grid-column: 3;
  grid-row: 1;
}

.yunshang-lottery-grid-slot.slot-mr {
  grid-column: 3;
  grid-row: 2;
}

.yunshang-lottery-grid-slot.slot-br {
  grid-column: 3;
  grid-row: 3;
}

.yunshang-lottery-grid-slot.slot-bc {
  grid-column: 2;
  grid-row: 3;
}

.yunshang-lottery-grid-slot.slot-bl {
  grid-column: 1;
  grid-row: 3;
}

.yunshang-lottery-grid-slot.slot-ml {
  grid-column: 1;
  grid-row: 2;
}

.yunshang-lottery-grid-center {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  gap: 6px;
  align-self: stretch;
  justify-self: stretch;
  padding: 16px;
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, #ffe07b, #ffb14b 52%, #ff8c2a);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 32px rgba(255, 150, 43, 0.28);
  transform: translateZ(0);
}

.yunshang-lottery-grid-center:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 36px rgba(255, 150, 43, 0.32);
}

.yunshang-lottery-grid-center-label {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.yunshang-lottery-grid-center strong {
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.yunshang-lottery-grid-center.is-loading {
  opacity: 0.92;
}

.yunshang-lottery-purchase-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.yunshang-lottery-purchase-methods label {
  min-height: 72px;
  align-items: flex-start;
}

.yunshang-lottery-payment-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.yunshang-lottery-payment-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.yunshang-lottery-payment-option.is-active {
  border-color: rgba(47, 108, 246, 0.24);
  background: linear-gradient(180deg, rgba(47, 108, 246, 0.06), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 24px rgba(47, 108, 246, 0.12);
}

.yunshang-lottery-payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yunshang-lottery-payment-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(15, 23, 42, 0.06);
  font-size: 18px;
}

.yunshang-lottery-payment-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.yunshang-lottery-payment-text strong {
  color: var(--yunshang-lottery-ink);
  font-size: 14px;
}

.yunshang-lottery-payment-text small,
.yunshang-lottery-purchase-note {
  color: var(--yunshang-lottery-muted);
  line-height: 1.5;
}

.yunshang-lottery-purchase-head-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 108, 246, 0.12), rgba(124, 58, 237, 0.12));
  color: var(--yunshang-lottery-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.yunshang-lottery-purchase-note {
  margin: 0;
  font-size: 13px;
}

.yunshang-lottery-purchase-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yunshang-lottery-purchase-dialog {
  width: min(94vw, 920px);
}

.yunshang-lottery-purchase-btn {
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7eb8, #f97316 56%, #ffb84d);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 0.03em;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.22);
}

.yunshang-lottery-purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.26);
}

.yunshang-lottery-purchase-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7eb8, #f97316 56%, #ffb84d);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.yunshang-lottery-purchase-entry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.24);
}

.yunshang-lottery-purchase-brief {
  background: linear-gradient(180deg, #fff, #fff7fb);
  border-color: rgba(255, 126, 184, 0.16);
}

.yunshang-lottery-purchase-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.yunshang-lottery-purchase-brief-grid div,
.yunshang-lottery-purchase-summary div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 6px;
}

.yunshang-lottery-purchase-brief-grid span,
.yunshang-lottery-purchase-summary span {
  font-size: 12px;
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-purchase-brief-grid strong,
.yunshang-lottery-purchase-summary strong {
  font-size: 20px;
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-draw-btn {
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed 48%, #8b5cf6);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 0.04em;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.26);
}

.yunshang-lottery-draw-btn.is-loading {
  opacity: 0.82;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26);
}

.yunshang-lottery-draw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(99, 102, 241, 0.28);
}

.yunshang-lottery-shell.is-result-visible .yunshang-lottery-modal-dialog {
  animation: yunshangLotteryModalPop .36s ease both;
}

.yunshang-lottery-prize-list,
.yunshang-lottery-record-list {
  display: grid;
  gap: 10px;
}

.yunshang-lottery-prize-list--cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yunshang-lottery-prize-list li,
.yunshang-lottery-record-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 247, 251, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.yunshang-lottery-prize-list li {
  align-items: center;
}

.yunshang-lottery-prize-list li::before {
  content: '🎁';
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #7c6ae4, #6657b8);
  color: #fff;
  margin-right: 10px;
}

.yunshang-lottery-prize-list li span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yunshang-lottery-prize-list li strong {
  color: #f59e0b;
  flex: 0 0 auto;
  margin-left: 8px;
  white-space: nowrap;
}

.yunshang-lottery-prize-list li span small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.yunshang-lottery-mini-stats {
  display: grid;
  gap: 8px;
}

.yunshang-lottery-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.62);
  z-index: 99999;
  padding: 20px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
  touch-action: pan-y;
}

.yunshang-lottery-modal[hidden] {
  display: none;
}

.yunshang-lottery-modal.is-open,
.yunshang-lottery-modal.is-closing {
  opacity: 1;
  pointer-events: auto;
}

.yunshang-lottery-modal.is-closing {
  pointer-events: none;
}

.yunshang-lottery-modal-dialog {
  width: min(92vw, 520px);
  background: #fff;
  border-radius: var(--yunshang-lottery-radius, 20px);
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.yunshang-lottery-modal.is-open .yunshang-lottery-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.yunshang-lottery-modal.is-closing .yunshang-lottery-modal-dialog {
  transform: translateY(14px) scale(0.97);
  opacity: 0;
}

.yunshang-lottery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.yunshang-lottery-modal-body {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.yunshang-lottery-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd66b, #ff9d3f 55%, #ff7eb8);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 16px 28px rgba(255, 156, 63, 0.24);
}

.yunshang-lottery-modal-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-modal-body > h3:not(.yunshang-lottery-modal-title) {
  margin: 0;
  font-size: 18px;
  color: var(--yunshang-lottery-text);
}

.yunshang-lottery-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.yunshang-lottery-modal-hint {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.yunshang-lottery-modal-close-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 159, 0.18);
  background: linear-gradient(180deg, #fff, #fff6fa);
  color: var(--yunshang-lottery-primary);
  font-weight: 700;
  cursor: pointer;
}

.yunshang-lottery-modal-close-btn:hover {
  background: linear-gradient(180deg, #fff, #ffeef5);
}

.yunshang-lottery-modal-prize {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--yunshang-lottery-primary-soft), #fff);
  border: 1px solid rgba(255, 79, 159, 0.16);
}

.yunshang-lottery-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.yunshang-lottery-modal-meta .result-badge,
.yunshang-lottery-modal-meta .result-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.yunshang-lottery-modal-meta .result-badge {
  background: var(--yunshang-lottery-primary-soft);
  color: var(--yunshang-lottery-primary);
}

.yunshang-lottery-modal-meta .result-status {
  background: #eef2ff;
  color: #4338ca;
}

.yunshang-lottery-modal-prize strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.yunshang-lottery-modal-prize .reward-value {
  color: #334155;
  font-weight: 600;
}

.yunshang-lottery-modal-prize .reward-source {
  display: block;
  margin-top: 8px;
  color: #64748b;
}

.yunshang-lottery-modal-prize .reward-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--yunshang-lottery-primary);
  font-size: 12px;
  font-weight: 700;
}

.yunshang-lottery-purchase-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.66);
  z-index: 99998;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
  touch-action: pan-y;
}

.yunshang-lottery-purchase-modal[hidden] {
  display: none;
}

.yunshang-lottery-purchase-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.yunshang-lottery-draw-card strong,
.yunshang-lottery-draw-card em,
.yunshang-lottery-record-item span,
.yunshang-lottery-record-item strong,
.yunshang-lottery-purchase-package strong,
.yunshang-lottery-purchase-package small,
.yunshang-lottery-purchase-head p,
.yunshang-lottery-modal-prize strong,
.yunshang-lottery-modal-prize .reward-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yunshang-lottery-shell {
  overflow-x: hidden;
}

@media (max-width: 782px) {
  .yunshang-lottery-purchase-package {
    gap: 8px;
  }

  .yunshang-lottery-purchase-head h3 {
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.2;
  }
}

.yunshang-lottery-purchase-dialog {
  width: min(94vw, 760px);
  background: linear-gradient(180deg, #fff, #fff7fb);
  border-radius: var(--yunshang-lottery-radius, 24px);
  padding: 22px;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.24);
  position: relative;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  overflow: hidden;
}

.yunshang-lottery-purchase-dialog::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #2f6cf6, #7c3aed 52%, #ff7eb8);
}

.yunshang-lottery-purchase-modal.is-open .yunshang-lottery-purchase-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.yunshang-lottery-purchase-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.yunshang-lottery-purchase-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding-right: 36px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 108, 246, 0.12), rgba(124, 58, 237, 0.12) 52%, rgba(255, 126, 184, 0.12));
  border: 1px solid rgba(47, 108, 246, 0.1);
}

.yunshang-lottery-purchase-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-purchase-head p {
  margin: 0;
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-purchase-head .yunshang-lottery-purchase-note {
  color: #4338ca;
  font-weight: 700;
}

.yunshang-lottery-purchase-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.yunshang-lottery-purchase-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yunshang-lottery-purchase-package {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff, #fff9fc);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.yunshang-lottery-purchase-package:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.yunshang-lottery-purchase-package.is-active {
  border-color: rgba(255, 126, 184, 0.34);
  box-shadow: 0 16px 28px rgba(255, 126, 184, 0.14);
  background: linear-gradient(180deg, #fff, #fff3f8);
}

.yunshang-lottery-purchase-package strong {
  font-size: 18px;
  color: var(--yunshang-lottery-ink);
}

.yunshang-lottery-purchase-package em {
  font-style: normal;
  color: var(--yunshang-lottery-primary);
  font-weight: 700;
}

.yunshang-lottery-purchase-package b {
  font-size: 22px;
  color: #f97316;
}

.yunshang-lottery-purchase-package small {
  color: var(--yunshang-lottery-muted);
  line-height: 1.6;
}

.yunshang-lottery-purchase-package-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yunshang-lottery-primary-soft);
  color: var(--yunshang-lottery-primary);
  font-size: 12px;
  font-weight: 700;
}

.yunshang-lottery-purchase-head-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6cf6, #7c3aed);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.yunshang-lottery-purchase-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.yunshang-lottery-purchase-methods label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  color: var(--yunshang-lottery-text);
  font-weight: 700;
}

.yunshang-lottery-purchase-methods label:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.yunshang-lottery-purchase-methods label.is-active {
  border-color: rgba(47, 108, 246, 0.24);
  background: linear-gradient(180deg, rgba(47, 108, 246, 0.06), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 24px rgba(47, 108, 246, 0.12);
}

.yunshang-lottery-purchase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.yunshang-lottery-purchase-submit,
.yunshang-lottery-purchase-cancel {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.yunshang-lottery-purchase-submit {
  color: #fff;
  background: linear-gradient(90deg, #ff7eb8, #f97316 60%, #ffb84d);
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.22);
}

.yunshang-lottery-purchase-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.yunshang-lottery-purchase-cancel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-purchase-message {
  margin: 14px 0 0;
  min-height: 24px;
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-purchase-message.is-error {
  color: #dc2626;
}

.yunshang-lottery-purchase-message.is-success {
  color: #059669;
}

.yunshang-lottery-purchase-message.is-warning {
  color: #b45309;
}

.yunshang-lottery-notice {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--yunshang-lottery-primary-soft);
  border: 1px solid rgba(255, 79, 159, 0.18);
}

.yunshang-lottery-shell.is-drawing {
  opacity: 0.98;
}

.yunshang-lottery-shell.is-result-visible .yunshang-lottery-stage-card {
  box-shadow: 0 18px 40px rgba(255, 79, 159, 0.08);
}

.yunshang-lottery-info-card h3 {
  margin-top: 0;
}

.yunshang-lottery-info-card p {
  color: var(--yunshang-lottery-muted);
}

.yunshang-lottery-shell.is-reward-balance .yunshang-lottery-hero,
.yunshang-lottery-shell.is-reward-points .yunshang-lottery-hero {
  background: linear-gradient(135deg, #ff4f9f, #ff8abc 50%, #7c3aed 150%);
}

.yunshang-lottery-shell.is-reward-failed .yunshang-lottery-modal-meta .result-status {
  background: #fef3c7;
  color: #92400e;
}

.yunshang-lottery-shell.is-reward-points .yunshang-lottery-stage-card,
.yunshang-lottery-shell.is-reward-balance .yunshang-lottery-stage-card {
  box-shadow: 0 16px 40px rgba(234, 95, 143, 0.1);
}

.yunshang-lottery-shell.is-reward-points .yunshang-lottery-wheel,
.yunshang-lottery-shell.is-reward-balance .yunshang-lottery-wheel,
.yunshang-lottery-shell.is-reward-physical .yunshang-lottery-wheel {
  animation: yunshangLotteryRewardGlow .9s ease;
}

.yunshang-lottery-wheel.is-spinning {
  filter: saturate(1.06) brightness(1.03);
}

@keyframes yunshangLotteryPop {
  0% {
    transform: translateY(12px) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes yunshangLotteryPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 79, 159, 0.2);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 79, 159, 0);
  }
}

@keyframes yunshangLotteryHeroEnter {
  0% {
    transform: translateY(18px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes yunshangLotteryFloatIn {
  0% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes yunshangLotteryChipPop {
  0% {
    transform: translateY(8px) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes yunshangLotteryWheelGlow {
  0%, 100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.03);
  }
}

@keyframes yunshangLotteryWheelLoop {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes yunshangLotterySegmentEnter {
  0% {
    opacity: 0;
    transform: rotate(calc((360deg / var(--segment-count, 8)) * var(--segment-index, 0))) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(calc((360deg / var(--segment-count, 8)) * var(--segment-index, 0))) scale(1);
  }
}

@keyframes yunshangLotteryShine {
  0%, 60% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes yunshangLotteryCardEnter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yunshangLotteryModalPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yunshangLotteryRewardGlow {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes yunshangLotteryWheelRing {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes yunshangLotteryPointerPop {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-4px) scale(1.18);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes yunshangLotteryFocusHalo {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes yunshangLotteryCardFocus {
  0% {
    transform: translateY(4px) scale(0.96);
    filter: saturate(0.92);
  }
  55% {
    transform: translateY(-4px) scale(1.03);
    filter: saturate(1.08);
  }
  100% {
    transform: translateY(-2px) scale(1);
  }
}

@keyframes yunshangLotteryGridScan {
  0% {
    filter: saturate(0.92);
  }
  100% {
    filter: saturate(1.12);
  }
}

@keyframes yunshangLotteryScratchPending {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes yunshangLotteryScratchBurst {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes yunshangLotteryParticleFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--particle-x, 0px)), calc(-50% + var(--particle-y, 0px))) scale(0.1);
  }
}

.yunshang-lottery-draw-card.is-winning,
.yunshang-lottery-modal.is-open .yunshang-lottery-modal-dialog {
  animation: yunshangLotteryPop .25s ease both;
}

.yunshang-lottery-draw-btn.is-loading {
  animation: yunshangLotteryPulse 1.2s ease-in-out infinite;
}

@media (max-width: 782px) {
  .yunshang-lottery-root.yunshang-lottery-theme-qimeng,
  .yunshang-lottery-root.yunshang-lottery-theme-zibll {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 8px;
    overflow-x: hidden;
  }

  .yunshang-lottery-hero,
  .yunshang-lottery-stage,
  .yunshang-lottery-draw-grid {
    grid-template-columns: 1fr;
  }

  .yunshang-lottery-layout {
    grid-template-columns: 1fr;
  }

  .yunshang-lottery-layout-main {
    gap: 16px;
  }

  .yunshang-lottery-grid-board {
    padding: 12px;
  }

  .yunshang-lottery-grid-frame {
    grid-template-rows: repeat(3, minmax(86px, 1fr));
    gap: var(--yunshang-lottery-grid-gap-mobile, 10px);
  }

  .yunshang-lottery-account-grid,
  .yunshang-lottery-purchase-methods,
  .yunshang-lottery-purchase-summary {
    grid-template-columns: 1fr;
  }

  .yunshang-lottery-shell.is-mode-grid .yunshang-lottery-draw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .yunshang-lottery-shell.is-mode-grid .yunshang-lottery-draw-card {
    min-height: 86px;
    padding: 10px 8px;
  }

  .yunshang-lottery-grid-slot-title {
    font-size: 10px;
    min-height: 1.3em;
    margin-top: -3px;
  }

  .yunshang-lottery-grid-slot-title::after {
    width: 18px;
    margin-top: 3px;
    opacity: 0.82;
  }

  .yunshang-lottery-draw-card .index {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
  }

  .yunshang-lottery-grid-slot-type {
    font-size: 8px;
  }

  .yunshang-lottery-grid-slot-probability {
    font-size: 8px;
    min-height: 14px;
    padding: 0 4px;
    top: 7px;
    right: 7px;
  }

  .yunshang-lottery-shell {
    padding: 10px;
    border-radius: 14px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }

  .yunshang-lottery-stage,
  .yunshang-lottery-stage-card,
  .yunshang-lottery-prize-panel,
  .yunshang-lottery-hero {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .yunshang-lottery-wheel-wrap {
    min-height: 320px;
    padding-inline: 4px;
  }

  .yunshang-lottery-wheel {
    width: min(78vw, 300px);
  }

  .yunshang-lottery-hero {
    padding: 20px;
  }

  .yunshang-lottery-prize-panel,
  .yunshang-lottery-stage-card {
    padding: 16px;
  }

  .yunshang-lottery-stage-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .yunshang-lottery-prize-list li::before {
    margin-right: 8px;
  }

  .yunshang-lottery-purchase-summary,
  .yunshang-lottery-purchase-packages,
  .yunshang-lottery-purchase-brief-grid {
    grid-template-columns: 1fr;
  }

  .yunshang-lottery-purchase-dialog {
    width: min(96vw, 760px);
    padding: 18px;
    border-radius: 18px;
  }

  .yunshang-lottery-purchase-package {
    padding: 14px;
  }
}

.yunshang-lottery-shell.is-ref-v2 {
  --yunshang-v2-gold: #f8c94a;
  --yunshang-v2-blue: #2563eb;
  --yunshang-v2-violet: #4f46e5;
  --yunshang-v2-cyan: #0ea5e9;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-page-head {
  width: fit-content;
  margin: 0 auto;
  padding: 10px 24px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f7b500, #f97316 56%, #ef4444);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.24);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-page-head-icon {
  font-size: 20px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.85fr);
  gap: 24px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-board {
  padding: 18px;
  border-radius: 34px;
  border: 6px solid rgba(59, 130, 246, 0.9);
  background: linear-gradient(135deg, #2563eb, #3b82f6 44%, #4f46e5 100%);
  box-shadow: 0 24px 44px rgba(37, 99, 235, 0.32);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-board::before,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-board::after,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-frame::before,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid var(--yunshang-v2-gold);
  pointer-events: none;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-board::before {
  left: 10px;
  top: 10px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px 0 0 0;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-board::after {
  right: 10px;
  top: 10px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 10px 0 0;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-frame {
  position: relative;
  gap: var(--yunshang-lottery-grid-gap-mobile, 10px);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-frame::before {
  left: 10px;
  bottom: 10px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 10px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-frame::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 10px 0;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-draw-card {
  min-height: 118px;
  padding: 12px 10px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-slot-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  background: linear-gradient(135deg, #f59e0b, #f97316 54%, #fb7185);
  color: #fff;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.18);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-slot-title {
  font-size: 11px;
  min-height: 1.3em;
  margin-top: -4px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-slot-title::after {
  width: 20px;
  margin-top: 4px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, 0.55), rgba(251, 191, 36, 0));
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-draw-card .index {
  width: 22px;
  height: 22px;
  line-height: 22px;
  font-size: 12px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-slot-type {
  font-size: 10px;
  color: #64748b;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-slot-probability {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 9px rgba(15, 23, 42, 0.07);
  font-size: 9px;
  min-height: 16px;
  padding: 0 5px;
  top: 8px;
  right: 8px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-center {
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(140deg, #f59e0b, #fb923c 58%, #f97316);
  box-shadow: 0 24px 40px rgba(249, 115, 22, 0.34);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-grid-center-label {
  background: rgba(255, 255, 255, 0.2);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-sidebar .yunshang-card {
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.1);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-account-grid div:nth-child(1) {
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-account-grid div:nth-child(2) {
  background: linear-gradient(180deg, #eff6ff, #fff);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-account-grid div:nth-child(3) {
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-record-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-modal {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(9px);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-dialog {
  width: min(92vw, 560px);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-head {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 22px 14px;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-head h3,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-head p,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-head .yunshang-lottery-purchase-note {
  color: #fff;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-head-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-summary,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-packages,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-methods,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-actions,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-message {
  margin-left: 22px;
  margin-right: 22px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-summary {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-packages {
  grid-template-columns: 1fr;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-package {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 12px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-package-badge {
  grid-column: 1 / span 3;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-methods {
  grid-template-columns: 1fr;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-payment-option.is-online-recommended {
  border-color: rgba(34, 197, 94, 0.48);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.95));
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-payment-tag {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-actions {
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 16px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-cancel,
.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-submit {
  flex: 1 1 calc(50% - 6px);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-submit {
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-message {
  margin-top: 0;
  margin-bottom: 18px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-modal-dialog {
  width: min(92vw, 420px);
  border-radius: 22px;
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-modal-icon {
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background: linear-gradient(145deg, #f59e0b, #fb923c 56%, #f97316);
}

.yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-modal-close-btn {
  min-width: 120px;
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
}

@media (max-width: 782px) {
  .yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-layout {
    grid-template-columns: 1fr;
  }

  .yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-dialog {
    width: min(96vw, 560px);
  }

  .yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-cancel,
  .yunshang-lottery-shell.is-ref-v2 .yunshang-lottery-purchase-submit {
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .yunshang-lottery-shell {
    gap: 12px;
    padding: 8px;
  }

  .yunshang-lottery-hero {
    padding: 14px;
    border-radius: 14px;
  }

  .yunshang-lottery-wheel-wrap {
    min-height: 280px;
  }

  .yunshang-lottery-wheel {
    width: min(84vw, 268px);
  }

  .yunshang-lottery-stage-card,
  .yunshang-lottery-prize-panel,
  .yunshang-lottery-sidebar .yunshang-card {
    padding: 12px;
    border-radius: 14px;
  }

  .yunshang-lottery-shell.is-mode-grid .yunshang-lottery-draw-grid {
    gap: 6px;
    padding: 8px;
  }

  .yunshang-lottery-shell.is-mode-grid .yunshang-lottery-draw-card {
    min-height: 78px;
    padding: 8px 6px;
    border-radius: 10px;
  }

  .yunshang-lottery-grid-slot-icon {
    transform: none;
  }

  .yunshang-lottery-purchase-dialog {
    width: 96vw;
    padding: 14px;
    border-radius: 14px;
  }

  .yunshang-lottery-purchase-actions {
    gap: 8px;
  }

  .yunshang-lottery-purchase-submit,
  .yunshang-lottery-purchase-cancel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yunshang-lottery-shell *,
  .yunshang-lottery-shell *::before,
  .yunshang-lottery-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .yunshang-lottery-shell.is-ready .yunshang-lottery-hero,
  .yunshang-lottery-shell.is-ready .yunshang-lottery-stage-card,
  .yunshang-lottery-shell.is-ready .yunshang-lottery-sidebar .yunshang-card,
  .yunshang-lottery-shell.is-ready .yunshang-lottery-chip,
  .yunshang-lottery-wheel,
  .yunshang-lottery-scratch-card::after,
  .yunshang-lottery-draw-btn.is-loading {
    animation: none !important;
  }
}
