/* ============================================================
   中奖弹窗 · 白酒年货定制模板（layout = liquor）
   对齐设计稿：中奖弹出框设计需求（白酒 / 春节年货券）
   版式：倒计时条 → 三张场景画板（竖排三行，一行一张）→ 主标语 → 抵扣徽标 → 按钮 → 脚注
   ============================================================ */

.dsp-liquor {
  --lq-w: 344px;          /* 卡片宽度（小屏用媒体查询收窄） */
  --lq-ar: 2.35;          /* 单张画板宽高比：越大小屏越矮 */
  --lq-metal: linear-gradient(180deg,
    #fffdf4 0%, #fff0bd 14%, #fbdd96 30%, #f0c469 44%,
    #e3b052 52%, #f5d07a 62%, #ffeeb6 76%, #eebb57 90%, #fff8dd 100%);
  --lq-rim: linear-gradient(168deg,
    #fff8de 0%, #f7dc9a 16%, #e8bd66 30%, #d5a247 42%,
    #b9812a 52%, #eec072 64%, #ffeec0 80%, #d09a34 100%);
  --lq-gold-text: linear-gradient(180deg,
    #fffefa 0%, #fff2d2 20%, #ffe0a0 44%, #f6c46e 66%, #ffeab8 86%, #fbd68c 100%);
  position: relative;
  width: var(--lq-w);
  max-width: 92vw;
  margin: 0 auto;
  isolation: isolate;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Hiragino Sans GB", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* ---------- 卡片外的节日氛围 ---------- */
.lq-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lq-rays {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 330%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 214, 150, .40) 0deg 2.4deg,
    rgba(255, 214, 150, 0) 2.4deg 10.5deg);
  filter: blur(1.6px);
  opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .5) 30%, transparent 58%);
  mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .5) 30%, transparent 58%);
  animation:
    lqRaysBurst 1.2s cubic-bezier(.12, .9, .2, 1) .2s both,
    lqSpin 34s linear 1.4s infinite;
}

@keyframes lqRaysBurst {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-24deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: .7; }
}

@keyframes lqSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 烟花 */
.lq-fw {
  position: absolute;
  opacity: 0;
  animation: lqFwLoop 7.2s ease-in-out infinite;
}
.lq-fw svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 186, 104, .8));
}
.lq-fw-a { top: -11.2%; left: 5%; width: 80px; }
.lq-fw-b { top: -10%; right: 6%; width: 66px; animation-delay: -2.6s; }
.lq-fw-c { bottom: -11%; left: 7%; width: 74px; animation-delay: -4.4s; }
.lq-fw-d { bottom: -9.8%; right: 6%; width: 60px; animation-delay: -1.4s; }

@keyframes lqFwLoop {
  0% { opacity: 0; transform: scale(.68) rotate(-7deg); }
  10% { opacity: .95; }
  24% { opacity: .82; transform: scale(1) rotate(0deg); }
  44% { opacity: .52; transform: scale(1.05) rotate(1.5deg); }
  62% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(.68) rotate(-7deg); }
}

/* 宫灯 */
.lq-lantern {
  position: absolute;
  z-index: 1;
  transform-origin: 50% -8px;
  animation: lqSway 4.8s ease-in-out infinite;
}
.lq-lantern svg { display: block; width: 100%; height: auto; }
.lq-lantern-l {
  width: 58px;
  left: -23px;
  top: -46px;
  filter: drop-shadow(0 10px 20px rgba(255, 86, 56, .5));
}
.lq-lantern-r { display: none; }

@keyframes lqSway {
  0%, 100% { transform: rotate(-3.4deg); }
  50% { transform: rotate(3.4deg); }
}

/* 飘落缎带 */
.lq-streamers {
  position: absolute;
  inset: -8% -6%;
}
.lq-streamers span {
  position: absolute;
  top: -18%;
  left: var(--x, 50%);
  width: var(--w, 6px);
  height: var(--h, 24px);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd88a 0%, #d1282d 38%, #8d1016 72%, #e8b45e 100%);
  box-shadow: 0 0 7px rgba(255, 180, 110, .38);
  opacity: 0;
  transform: rotate(var(--r, 0deg));
  animation: lqFall var(--t, 8s) linear var(--d, 0s) infinite;
}

@keyframes lqFall {
  0% { top: -18%; opacity: 0; transform: rotate(var(--r, 0deg)); }
  10% { opacity: .92; }
  78% { opacity: .72; }
  100% { top: 112%; opacity: 0; transform: rotate(calc(var(--r, 0deg) + 150deg)); }
}

/* ---------- 卡片 ---------- */
.lq-card {
  position: relative;
  z-index: 2;
  padding: 6px;
  border-radius: 20px;
  background:
    linear-gradient(152deg,
      #fff8e2 0%, #f2d091 10%, #c8933e 21%, #ffeec4 32%,
      #dcab57 46%, #fff3d2 59%, #cf9a43 73%, #f8e2b0 87%, #c08b34 100%);
  box-shadow:
    0 26px 58px rgba(0, 0, 0, .66),
    0 0 0 1px rgba(255, 246, 214, .5),
    0 0 70px rgba(255, 150, 60, .42),
    0 0 110px rgba(255, 120, 40, .18);
  animation: lqPunch .72s cubic-bezier(.16, 1.3, .3, 1) .08s both;
}

.lq-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  border: 1px solid rgba(255, 248, 222, .58);
  pointer-events: none;
  z-index: 4;
}

@keyframes lqPunch {
  0% { transform: scale(.34) rotate(-3deg); opacity: 0; }
  42% { opacity: 1; }
  66% { transform: scale(1.04) rotate(.8deg); }
  84% { transform: scale(.985) rotate(-.4deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.lq-inner {
  position: relative;
  border-radius: 15px;
  padding: 10px 9px 12px;
  overflow: hidden;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(255, 166, 110, .32) 0%, rgba(255, 140, 90, 0) 62%),
    radial-gradient(96% 62% at 50% -4%, #b02a34 0%, #911725 32%, #6d0d1a 64%, #4b0710 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 176, .45),
    inset 0 3px 14px rgba(255, 200, 140, .18),
    inset 0 -46px 60px rgba(0, 0, 0, .38);
}

.lq-inner::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 11px;
  border: 1px solid rgba(255, 226, 172, .22);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 倒计时匾额 ---------- */
.lq-countdown {
  position: relative;
  z-index: 3;
  height: 70px;
  font-size: 10px;          /* 匾额文字基准：内部字号一律用 em，改这一处即可整体缩放 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .44em;
  padding: 0 35px 0 15px;
  white-space: nowrap;
  border: 4.5px solid transparent;
  border-radius: 15px;
  background-image:
    radial-gradient(100% 136% at 40% 22%, #d4423f 0%, #b8282e 24%, #93181d 52%, #710d14 76%, #52060f 100%),
    linear-gradient(158deg,
      #fff8e8 0%, #f6e2ba 12%, #e2c58f 28%, #fdefd0 44%,
      #eed4a4 60%, #d9ba84 76%, #fdf2d6 90%, #efd8ab 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 224, .42),
    inset 0 3px 2px rgba(255, 228, 194, .16),
    inset 0 -18px 26px rgba(40, 3, 8, .5),
    inset 0 14px 20px rgba(255, 152, 112, .1),
    0 0 0 1px rgba(96, 26, 12, .34),
    0 4px 14px rgba(26, 0, 4, .5);
  animation: lqFadeDown .6s ease-out .22s both;
}

/* 内圈细金线 */
.lq-countdown::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 240, 212, .38);
  box-shadow: inset 0 0 18px rgba(255, 192, 130, .1);
  pointer-events: none;
}

/* 匾额左右装饰：左宫灯、右中国结 */
.lq-cd-lan { display: none; }

.lq-cd-knot {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 24px;
  z-index: 4;
  transform-origin: 50% 0;
  animation: lqSway 6.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(60, 4, 6, .55));
}
.lq-cd-knot svg { display: block; width: 100%; height: auto; }

@keyframes lqSwayR {
  0%, 100% { transform: rotate(4.5deg); }
  50% { transform: rotate(-4.5deg); }
}

.lq-cd-label {
  font-size: 1.95em;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  flex: none;
  color: #f8eccb;
  -webkit-text-stroke: .12em #702006;
  paint-order: stroke fill;
  text-shadow: 0 .055em 0 rgba(92, 24, 5, .8);
}

.lq-cd-grp {
  display: inline-flex;
  align-items: baseline;
  gap: 1.8px;
  flex: none;
}

.lq-cd-label + .lq-cd-grp { margin-left: 3px; }

.lq-cd-grp b {
  font-family: "Arial Black", "DIN Alternate", "Bahnschrift", Impact, system-ui, sans-serif;
  font-size: 1.75em;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f9ecc8;
  -webkit-text-stroke: .085em #83300f;
  paint-order: stroke fill;
  text-shadow: 0 .1em 0 rgba(90, 26, 6, .8);
}

/* 天数：比标题再大一档的米金浮雕字（描边/投影用 em，随字号自适应） */
.lq-cd-grp-main b {
  font-size: 3.15em;
  letter-spacing: .2px;
  color: #fbeecd;
  -webkit-text-stroke: .105em #7d240d;
  paint-order: stroke fill;
  text-shadow:
    0 -.03em 0 rgba(255, 252, 236, .9),
    0 .06em 0 #86330e,
    0 .1em .24em rgba(32, 0, 0, .42);
  margin-right: 0;
}

.lq-cd-grp-main i {
  margin-left: .12em;
  font-size: 1.55em;
  position: relative;
  top: -.28em;
}

/* 「天」之后留一点呼吸，避免与小屏的「09 时」贴住 */
.lq-cd-grp-main { margin-right: .25em; }

.lq-cd-grp i {
  font-style: normal;
  font-size: .98em;
  font-weight: 800;
  letter-spacing: 0;
  color: #f7e8c6;
  -webkit-text-stroke: .05em #83300f;
  text-shadow: 0 .1em 0 rgba(78, 20, 2, .8);
}

/* 已过春节：只有「火热开抢」一行字 */
.lq-cd-grp-main b:only-child {
  font-size: 1.9em;
  letter-spacing: .1em;
}

/* ---------- 三张场景画板（竖排，一行一张） ---------- */
.lq-scenes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 9px;
}

.lq-row {
  position: relative;
  margin: 0;
  aspect-ratio: var(--lq-ar, 2.35);
  border-radius: 8px;
  overflow: hidden;
  background: #7c3a1c;
  box-shadow:
    0 0 0 1.5px rgba(233, 195, 126, .95),
    0 4px 11px rgba(0, 0, 0, .46);
  animation: lqFadeUp .55s ease-out both;
  animation-delay: calc(.36s + var(--i, 0) * .1s);
}

.lq-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

/* 左下角压一层暗渐变，让米色胶囊更跳 */
.lq-row::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(48, 4, 8, .58), rgba(48, 4, 8, 0));
  pointer-events: none;
}

.lq-no {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-family: "DIN Alternate", "Bahnschrift", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #7e1108;
  background: linear-gradient(180deg, #fff6dc, #eec684);
  box-shadow:
    0 1px 3px rgba(50, 6, 8, .5),
    inset 0 0 0 1px rgba(255, 250, 230, .7);
}

.lq-cap {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  padding: 3px 9px 3.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf0, #f2d9ae);
  box-shadow:
    0 1px 4px rgba(50, 6, 8, .45),
    inset 0 0 0 1px rgba(255, 252, 238, .8);
  white-space: nowrap;
}

.lq-cap b {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #8e1a14;
}

.lq-cap i {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: #a4553a;
}

.lq-cap i::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 7px;
  margin: 0 7px;
  background: rgba(168, 104, 68, .34);
  transform: translateY(-.5px);
}

/* ---------- 主标语 ---------- */
.lq-slogan {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .8px;
  line-height: 1.25;
  background-image: var(--lq-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(84, 20, 6, .55));
  animation: lqFadeUp .6s ease-out .62s both;
}

/* ---------- 抵扣徽标 ---------- */
.lq-badge {
  position: relative;
  z-index: 2;
  display: table;
  margin: 9px auto 0;
  padding: 4px 15px 4.5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #8d1a0f;
  background: linear-gradient(180deg, #fdf0d2 0%, #f4d69f 52%, #e6bd7b 100%);
  border: 1px solid rgba(255, 246, 214, .82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 2px 8px rgba(0, 0, 0, .34);
  animation: lqFadeUp .55s ease-out .72s both;
}

/* ---------- 按钮 ---------- */
.lq-btn {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  margin-top: 11px;
  padding: 12px 0 13px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  text-indent: 2px;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 999px;
  background-image:
    linear-gradient(180deg, #d32b39 0%, #b11626 42%, #8b0c17 78%, #6b0710 100%),
    var(--lq-rim);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 236, 196, .55),
    inset 0 -8px 14px rgba(70, 4, 10, .5),
    0 0 0 1px rgba(96, 44, 4, .35),
    0 0 0 4px rgba(255, 214, 140, .16);
  transition: transform .12s ease;
  animation:
    lqBtnEnter .5s cubic-bezier(.34, 1.56, .64, 1) 1.02s both,
    lqBtnGlow 2.2s ease-in-out 1.5s infinite;
}

.lq-btn span {
  position: relative;
  display: inline-block;
  background-image:
    linear-gradient(108deg,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 255, 255, .5) 45%,
      rgba(255, 251, 232, .86) 50%,
      rgba(255, 255, 255, .5) 55%,
      rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg,
      #ffffff 0%, #fffbea 16%, #ffeec2 38%, #ffd88f 58%, #fff0c8 78%, #fffdf2 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: 260% 100%, 100% 100%;
  background-position: 0% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: .3px rgba(104, 34, 8, .18);
  filter: drop-shadow(0 1.5px 1.5px rgba(54, 4, 10, .5));
  animation: lqMetalSweep 3.8s ease-in-out 1.9s infinite;
}

.lq-btn::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 4px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.lq-btn:active { transform: scale(.97); }

@keyframes lqMetalSweep {
  0%, 62% { background-position: 0% 0, 0 0; }
  100% { background-position: 260% 0, 0 0; }
}

@keyframes lqBtnEnter {
  0% { opacity: 0; transform: translateY(22px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lqBtnGlow {
  0%, 100% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, .5),
      inset 0 1px 0 rgba(255, 236, 196, .55),
      inset 0 -8px 14px rgba(70, 4, 10, .5),
      0 0 0 1px rgba(96, 44, 4, .35),
      0 0 0 4px rgba(255, 214, 140, .16);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(255, 120, 60, .5),
      inset 0 1px 0 rgba(255, 240, 208, .75),
      inset 0 -8px 14px rgba(70, 4, 10, .5),
      0 0 0 1px rgba(96, 44, 4, .4),
      0 0 0 5px rgba(255, 214, 140, .28),
      0 0 40px rgba(255, 170, 70, .26);
  }
}

/* ---------- 脚注 ---------- */
.lq-note {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: #ecc9a0;
  letter-spacing: .2px;
}

.lq-note span + span { margin-left: 10px; }

.lq-check {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ecc9a0;
}

.lq-check::after {
  content: "";
  position: absolute;
  left: 2.2px;
  top: 2.6px;
  width: 4.4px;
  height: 2.4px;
  border-left: 1.3px solid #6d0d1a;
  border-bottom: 1.3px solid #6d0d1a;
  transform: rotate(-45deg);
}

/* ---------- 入场动画 ---------- */
@keyframes lqFadeDown {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes lqFadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 顶部闪光 */
.lq-flash {
  position: absolute;
  inset: -20% -30%;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%,
    rgba(255, 250, 230, 1) 0%,
    rgba(255, 230, 170, .8) 12%,
    rgba(255, 200, 120, .4) 30%,
    rgba(255, 170, 80, .1) 50%,
    transparent 70%);
  animation: lqFlash 1s ease-out both;
  mix-blend-mode: screen;
}

@keyframes lqFlash {
  0% { opacity: 0; transform: scale(.15); }
  18% { opacity: 1; transform: scale(.8); }
  40% { opacity: .7; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ---------- 礼花彩带 ---------- */
.cp-confetti-layer .lq-ribbon-piece {
  position: absolute;
  left: 50%;
  top: 45%;
  width: var(--w, 8px);
  height: var(--h, 30px);
  background-image: linear-gradient(104deg,
    var(--c1, #9a6410) 0%,
    var(--c2, #e8b45e) 16%,
    var(--chi, #fff6da) 30%,
    var(--c2, #e8b45e) 44%,
    var(--c1, #9a6410) 58%,
    var(--c2, #e8b45e) 74%,
    var(--chi, #fff6da) 88%,
    var(--c1, #9a6410) 100%);
  background-size: 260% 100%;
  background-position: 0 0;
  border-radius: var(--br, 1.5px);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg) scale(0);
  box-shadow:
    0 0 7px rgba(255, 205, 115, .42),
    inset 0 0 1.5px rgba(255, 255, 255, .55);
  animation:
    lqBurst var(--bt, .9s) cubic-bezier(.12, .8, .25, 1) var(--d, 0s) both,
    lqFloat var(--ft, 3s) ease-in-out calc(var(--d, 0s) + var(--bt, .9s)) infinite,
    lqSheen var(--st, 1.7s) linear var(--d, 0s) infinite;
}

.cp-confetti-layer .lq-ribbon-piece.flake {
  background-image: linear-gradient(132deg,
    var(--c1, #9a6410) 0%, var(--chi, #fff6da) 34%,
    var(--c2, #e8b45e) 56%, var(--c1, #9a6410) 100%);
  box-shadow: 0 0 9px rgba(255, 216, 132, .55);
}

.cp-confetti-layer .lq-ribbon-piece.dot {
  background-image: radial-gradient(circle at 32% 26%,
    var(--chi, #fff6da) 0%, var(--c2, #e8b45e) 52%, var(--c1, #9a6410) 100%);
  box-shadow: 0 0 10px rgba(255, 216, 132, .6);
}

@keyframes lqSheen {
  0% { background-position: 0% 0; }
  100% { background-position: 260% 0; }
}

@keyframes lqBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0); }
  12% { opacity: 1; transform: translate(-50%, -50%) rotate(30deg) scale(1); }
  100% {
    opacity: .95;
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px)))
      rotate(var(--r, 180deg)) scale(1);
  }
}

@keyframes lqFloat {
  0% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) rotate(var(--r, 180deg)) rotateX(0deg); }
  25% { transform: translate(calc(-50% + var(--tx, 0px) + var(--sw, 10px)), calc(-50% + var(--ty, 0px) + var(--fall, 20px))) rotate(calc(var(--r, 180deg) + 20deg)) rotateX(54deg); }
  50% { transform: translate(calc(-50% + var(--tx, 0px) - var(--sw, 10px)), calc(-50% + var(--ty, 0px) + calc(var(--fall, 20px) * 2))) rotate(calc(var(--r, 180deg) + 40deg)) rotateX(0deg); }
  75% { transform: translate(calc(-50% + var(--tx, 0px) + var(--sw2, -8px)), calc(-50% + var(--ty, 0px) + calc(var(--fall, 20px) * 3))) rotate(calc(var(--r, 180deg) + 60deg)) rotateX(-54deg); }
  100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px) + calc(var(--fall, 20px) * 4))) rotate(calc(var(--r, 180deg) + 80deg)) rotateX(0deg); opacity: .6; }
}

/* 金色粒子 */
.cp-confetti-layer .lq-particle {
  position: absolute;
  left: var(--px, 50%);
  bottom: -5%;
  width: var(--sz, 4px);
  height: var(--sz, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e0 20%, #ffd76e 60%, rgba(255, 200, 80, 0) 100%);
  opacity: 0;
  animation: lqParticleRise var(--pt, 4s) ease-out var(--d, 0s) infinite;
  pointer-events: none;
}

@keyframes lqParticleRise {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(0); }
  10% { opacity: .9; transform: translateY(calc(var(--rise, -40vh) * .1)) translateX(var(--drift, 10px)) scale(1); }
  40% { opacity: .7; }
  100% { opacity: 0; transform: translateY(var(--rise, -40vh)) translateX(calc(var(--drift, 10px) * -1)) scale(.3); }
}

/* ---------- 挂在弹窗里的容器 ---------- */
.result-card.is-liquor {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  max-width: none;
  width: auto;
  transform: none;
  transition: none;
}

.result-card.is-liquor > *:not(.dsp-liquor):not(.modal-close) { display: none !important; }

.result-card.is-liquor .modal-close {
  top: -13px;
  right: -9px;
  z-index: 9;
  width: 28px;
  height: 28px;
  line-height: 24px;
  font-size: 17px;
  color: #ffe6b8;
  background: rgba(62, 6, 12, .6);
  border: 1.5px solid rgba(255, 218, 154, .62);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 380px) {
  .dsp-liquor { --lq-w: 322px; --lq-ar: 2.45; }
  .lq-slogan { font-size: 19.5px; }
  .lq-countdown { padding: 0 31px 0 13px; gap: .5em; font-size: 9.6px; height: 67px; }
  .lq-cd-label { letter-spacing: .3px; }
  .lq-btn { font-size: 17px; letter-spacing: 1.5px; text-indent: 1.5px; }
  .lq-cap b { font-size: 10px; }
  .lq-cap i { font-size: 9.5px; }
}

@media (max-width: 360px) {
  .dsp-liquor { --lq-w: 306px; --lq-ar: 2.5; }
  .lq-countdown { gap: .5em; padding: 0 28px 0 12px; font-size: 9.2px; height: 64px; }
  .lq-cd-label { letter-spacing: .1px; }
  .lq-cd-knot { width: 26px; right: 4px; top: 4px; }
  .lq-slogan { font-size: 18px; letter-spacing: .5px; }
  .lq-badge { font-size: 11.5px; padding: 3.5px 12px 4px; }
  .lq-note { font-size: 9.5px; }
}

/* 矮屏：优先压画板高度，保证整卡不出屏 */
@media (max-height: 800px) {
  .dsp-liquor { --lq-w: 322px; --lq-ar: 2.55; }
  .lq-countdown { height: 63px; font-size: 9.2px; }
  .lq-scenes { gap: 6px; margin-top: 8px; }
  .lq-slogan { font-size: 19px; margin-top: 10px; }
  .lq-btn { padding: 10px 0 11px; margin-top: 9px; }
  .lq-note { margin-top: 8px; }
  .lq-lantern-l { width: 50px; top: -40px; left: -20px; }
}

@media (max-height: 700px) {
  .dsp-liquor { --lq-w: 320px; --lq-ar: 2.7; }
  .lq-inner { padding: 8px 7px 9px; }
  .lq-countdown { height: 56px; font-size: 8.4px; gap: .5em; padding: 0 25px 0 11px; }
  .lq-cd-label { letter-spacing: 0; }
  .lq-cd-knot { width: 22px; top: 4px; right: 4px; }
  .lq-scenes { gap: 5px; margin-top: 7px; }
  .lq-no { min-width: 16px; height: 16px; font-size: 9.5px; top: 5px; left: 5px; }
  .lq-cap { padding: 2.5px 8px 3px; left: 5px; bottom: 5px; }
  .lq-cap b { font-size: 9.5px; }
  .lq-cap i { font-size: 9px; }
  .lq-cap i::before { margin: 0 5px; }
  .lq-slogan { font-size: 17px; margin-top: 8px; letter-spacing: .4px; }
  .lq-badge { font-size: 11px; margin-top: 6px; padding: 3px 12px 3.5px; }
  .lq-btn { font-size: 15.5px; padding: 9px 0 10px; margin-top: 8px; }
  .lq-note { font-size: 9px; margin-top: 6px; }
}

@media (max-height: 640px) {
  .dsp-liquor { --lq-w: 282px; --lq-ar: 2.95; }
  .lq-slogan { font-size: 16px; }
  .lq-btn { font-size: 14.5px; }
  .lq-note span + span { margin-left: 7px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  .lq-rays, .lq-fw, .lq-lantern, .lq-streamers span, .lq-card, .lq-countdown,
  .lq-row, .lq-slogan, .lq-badge, .lq-btn, .lq-btn span, .lq-flash {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cp-confetti-layer { display: none; }
}
