/* ============================================================
   羊窝商城 · 首页海报流（App Store Today 形态）
   ------------------------------------------------------------
   两层：
     第一层 商城首页 —— 若干张栏目海报卡（含套装，封面直接用套装图），
             只负责「发现」，卡片底部一个「进入 →」；
     第二层 栏目内页 —— 点卡进来，原来的商品网格一个字不动，
             顶部多一条「← 商城首页」。

   套装内页（.bp-*）是一整块商品页：封面头图 + 价格条 + 单品清单，
   清单里每件单品都能单买，整包买按 8 折（省 30%）结算。
   结算确认页（.bp-ck-*）在买整包前弹出，逐件列价再确认。
   ============================================================ */

/* ---------- 首页：栏目大海报（一栏一行，参考 V 版 Win95 执法页海报） ----------
   每张海报独占一行、尺寸放大，左上角栏目标签、左下角「小字 + 大标题 + 一句说明」、
   右下角进入按钮，整张可点。 */
.shop-home { display: block; }

.story-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 14px; }
.story-head h3 { font-family: var(--font-serif); font-size: 19px; color: #fff; margin: 0; }
.story-head span { font-size: 12px; color: var(--muted); }

.story-grid { display: flex; flex-direction: column; gap: 20px; }
.story-card {
  position: relative; overflow: hidden; width: 100%; min-height: 400px;
  display: flex; align-items: flex-end;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.12);
  background: #10151d; cursor: pointer; text-align: left;
  padding: 0; font: inherit; color: inherit;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.story-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); box-shadow: 0 20px 46px rgba(0,0,0,.5); }

/* 宣传画面轮播：一帧一张，两帧以上由 JS 定时平移 */
.story-track {
  position: absolute; inset: 0; display: flex;
  transition: transform .75s cubic-bezier(.45,.05,.2,1); will-change: transform;
}
.story-frame { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.story-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.story-card:hover .story-bg { transform: scale(1.03); }
.story-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,10,18,.8) 0%, rgba(6,10,18,.36) 52%, rgba(6,10,18,.06) 100%),
    linear-gradient(180deg, rgba(6,10,18,.08) 0%, rgba(6,10,18,.3) 46%, rgba(6,10,18,.9) 100%);
}
.story-tag {
  position: absolute; top: 20px; left: 22px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(8,12,20,.45); border: 1px solid rgba(255,255,255,.3); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* 非图片封面：四色渐变 / 编号大字符 / 头像大 emoji / 四张牌 / 礼盒 */
/* 配色：右侧四根色卡，左侧留深色给文字 */
.story-bg.is-swatch {
  background: radial-gradient(120% 100% at 80% 4%, #1b2238 0%, #0e1220 55%, #090c14 100%);
  display: flex; align-items: center; justify-content: flex-end;
  gap: 14px; padding-right: 6.5%;
}
.story-bg.is-swatch i {
  width: 72px; height: 200px; border-radius: 14px; display: block;
  box-shadow: 0 14px 32px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.35);
}
.story-bg.is-swatch i:nth-child(1) { background: #6fb6ff; }
.story-bg.is-swatch i:nth-child(2) { background: #b794ff; }
.story-bg.is-swatch i:nth-child(3) { background: #ff8fb3; }
.story-bg.is-swatch i:nth-child(4) { background: #5fe0b0; }
.story-bg.is-num {
  background: radial-gradient(120% 100% at 78% 6%, #2a2350 0%, #131a2b 55%, #0b0f18 100%);
  display: flex; align-items: center; justify-content: flex-end;
}
.story-bg.is-num::before {
  content: "007"; font-family: var(--font-serif); font-weight: 800; font-size: 240px;
  color: rgba(255,255,255,.13); letter-spacing: 4px; line-height: 1;
  margin-right: 6%; margin-top: -10px;
}
.story-bg.is-emoji {
  background: radial-gradient(120% 100% at 78% 8%, #1d3a4d 0%, #16202e 55%, #0b0f18 100%);
  display: flex; align-items: center; justify-content: flex-end;
}
.story-bg.is-emoji::before {
  content: "🐑"; font-size: 200px; line-height: 1; opacity: .9;
  margin-right: 8%;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.45));
}
/* 抽卡：右侧四张斜排的牌 */
.story-bg.is-cards {
  background: radial-gradient(120% 100% at 76% 0%, #3b2a63 0%, #1c1732 52%, #0a0913 100%);
  display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; padding-right: 8%;
}
.story-bg.is-cards i {
  width: 128px; height: 186px; border-radius: 12px; display: block;
  background: linear-gradient(158deg, rgba(255,255,255,.2), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.story-bg.is-cards i:nth-child(1) { transform: rotate(-11deg) translateY(10px); opacity: .72; }
.story-bg.is-cards i:nth-child(2) { transform: rotate(-4deg) translateY(-4px); opacity: .86; }
.story-bg.is-cards i:nth-child(3) { transform: rotate(4deg) translateY(-4px); opacity: .86; }
.story-bg.is-cards i:nth-child(4) { transform: rotate(11deg) translateY(10px); opacity: .72; }

/* 礼盒：没有在售套装时的兜底封面（纯 CSS 画） */
.story-bg.is-gift {
  background:
    radial-gradient(300px 260px at 80% 44%, rgba(255,176,104,.18), transparent 70%),
    radial-gradient(120% 100% at 78% 6%, #43233c 0%, #251a2c 52%, #0b0a12 100%);
  display: flex; align-items: center; justify-content: flex-end;
}
.story-bg.is-gift b {
  position: relative; display: block; width: 208px; height: 172px;
  margin-right: 9%; margin-top: -12%;
  filter: drop-shadow(0 22px 42px rgba(0,0,0,.5)) brightness(1.34) saturate(1.08);
}
.story-bg.is-gift b::before {          /* 盒身 */
  content: ""; position: absolute; left: 4px; right: 4px; top: 58px; bottom: 0;
  border-radius: 3px 3px 12px 12px;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255,255,255,.92) 44% 56%, transparent 56%),
    linear-gradient(158deg, #fff0c8 0%, #ffbb6d 40%, #ff8043 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -20px 30px rgba(120,40,20,.26);
}
.story-bg.is-gift b::after {           /* 盖子 */
  content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 36px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255,255,255,.88) 44% 56%, transparent 56%),
    linear-gradient(180deg, #fff8dc 0%, #ffcc86 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.75);
}
.story-bg.is-gift b i { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.story-bg.is-gift b i::before,
.story-bg.is-gift b i::after {
  content: ""; position: absolute; top: 2px; width: 52px; height: 34px;
  background: linear-gradient(158deg, #fff2cd 0%, #ffb55f 70%, #f08b48 100%);
  border-radius: 58% 42% 52% 48% / 62% 56% 44% 38%;
}
.story-bg.is-gift b i::before { left: -54px; transform: rotate(-18deg); }
.story-bg.is-gift b i::after { left: 2px; transform: rotate(16deg); }

.story-body { position: relative; z-index: 2; padding: 30px 34px 34px; width: 100%; padding-right: 188px; }
.story-kicker { font-size: 12px; letter-spacing: 1.8px; color: rgba(237,241,248,.68); margin-bottom: 10px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.story-title { font-family: var(--font-serif); font-size: 40px; color: #fff; line-height: 1.14; letter-spacing: .5px; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.story-sub { font-size: 14px; color: rgba(237,241,248,.78); margin-top: 12px; line-height: 1.6; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.story-cta {
  position: absolute; z-index: 3; right: 30px; bottom: 34px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 700; padding: 11px 22px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34); color: #fff;
  transition: .18s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.story-card:hover .story-cta { background: #fff; color: #10141c; border-color: #fff; }
.story-dots { position: absolute; z-index: 3; top: 24px; right: 26px; display: flex; gap: 5px; }
.story-dots i {
  width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.36);
  transition: .25s;
}
.story-dots i.on { width: 18px; background: rgba(255,255,255,.9); }

/* ---------- 栏目内页 ----------
   原来这里还有一条「← 商城首页」的按钮（.shop-back）。全页只留左上角
   那一个返回键了，那条重复的按钮连同样式一起删掉。 */

/* ============================================================
   套装内页 .bp
   ============================================================ */
.bundle-grid { display: block; }

.bp {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(168deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
  box-shadow: 0 20px 46px rgba(0,0,0,.34);
}
.bp + .bp { margin-top: 22px; }
.bp.is-done { opacity: .82; }

/* --- 头图：套装封面 + 右侧标题区（人物在画面左侧，字就摆右边） --- */
.bp-hero {
  position: relative; min-height: 404px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 30px 34px 34px;
}
.bp-hero-bg {
  position: absolute; inset: 0;
  background-color: #0d1119; background-size: cover; background-position: center top;
  transition: transform .7s ease;
}
.bp:hover .bp-hero-bg { transform: scale(1.025); }
.bp-hero-bg.is-flat { background-image: linear-gradient(150deg, #1b2432, #0e131b); }
.bp-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(6,10,18,.94) 0%, rgba(6,10,18,.68) 34%, rgba(6,10,18,.12) 68%),
    linear-gradient(180deg, rgba(6,10,18,.22) 0%, rgba(6,10,18,.02) 40%, rgba(6,10,18,.72) 100%);
}
.bp-hero-tx { position: relative; z-index: 2; max-width: 440px; text-align: right; }
.bp-kick {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #ffe1a8;
}
.bp-name {
  font-family: var(--font-serif); font-size: 36px; line-height: 1.14; letter-spacing: .5px;
  color: #fff; margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.bp-desc { font-size: 13.5px; line-height: 1.65; color: rgba(237,241,248,.8); margin: 0 0 14px; }
.bp-bars { display: flex; gap: 5px; justify-content: flex-end; }
.bp-bars i { width: 40px; height: 6px; border-radius: 3px; }
.bp-due {
  position: absolute; z-index: 3; top: 20px; left: 24px;
  font-size: 11.5px; line-height: 1; letter-spacing: .2px;
  padding: 6px 12px; border-radius: 999px;
  color: #ffd9a3; background: rgba(12,16,24,.5); border: 1px solid rgba(255,178,92,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.bp-due b { font-size: 13px; font-weight: 800; color: #ffe1a8; }
.bp-due.is-soon { color: #ffc9c9; border-color: rgba(255,120,120,.5); }
.bp-due.is-soon b { color: #ffb3b3; }

/* --- 价格条：左价格、右按钮 --- */
.bp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 28px; border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}
.bp-sum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bp-sum-k { font-size: 12px; color: rgba(237,241,248,.56); }
.bp-sum-k s { text-decoration: line-through; opacity: .85; }
.bp-now { font-size: 25px; font-weight: 800; color: #ffe1a8; font-variant-numeric: tabular-nums; line-height: 1; }
.bp-now small { font-size: 11.5px; font-weight: 400; opacity: .72; }
.bp-off {
  font-size: 11.5px; color: #9fe1cb;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(95,224,176,.1); border: 1px solid rgba(95,224,176,.32);
}
.bp-act { flex: none; min-width: 118px; }

/* --- 单品清单 --- */
.bp-list { padding: 2px 28px 4px; }
.bp-list-hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 0 10px; font-size: 12px; letter-spacing: 1.4px; color: rgba(237,241,248,.5);
}
.bp-list-hd span { font-size: 11.5px; letter-spacing: 0; color: rgba(237,241,248,.4); }

.bp-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 108px;
  align-items: center; gap: 14px;
  padding: 13px 0; border-top: 1px solid rgba(255,255,255,.075);
}
.bp-row.is-own .bp-nm { color: rgba(237,241,248,.62); }
.bp-th {
  width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 23px;
  background-color: #0d1119; background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.12);
}
.bp-th.is-color { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); border-color: rgba(255,255,255,.24); }
.bp-th.is-num {
  font-family: var(--font-serif); font-size: 13px; font-weight: 800; letter-spacing: .2px;
  color: #ffe1a8;
  background-image: radial-gradient(circle at 50% 42%, rgba(255,225,168,.2), rgba(255,255,255,.03));
}
.bp-th.is-peek { cursor: zoom-in; transition: transform .18s, border-color .18s; }
.bp-th.is-peek:hover { transform: scale(1.06); border-color: rgba(255,255,255,.42); }

.bp-info { min-width: 0; }
.bp-nm {
  font-family: var(--font-serif); font-size: 15px; color: #fff; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-kd {
  font-size: 11px; color: rgba(237,241,248,.44); margin-top: 3px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-pr {
  text-align: right; font-size: 15px; font-weight: 700; color: #ffe1a8;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bp-pr small { font-size: 10.5px; font-weight: 400; opacity: .68; margin-left: 2px; }
.bp-own { font-size: 11.5px; font-weight: 600; color: #9fe1cb; }
.bp-one { min-width: 88px; justify-content: center; white-space: nowrap; }
/* 已经摇到号了：按钮从「抽取编号」变成「🎰 mmxw335」，金色表示待购买 */
.bp-one.is-kept {
  background: rgba(255,206,107,.14) !important;
  border-color: rgba(255,206,107,.46) !important;
  color: #ffe1a8 !important;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}
.bp-one.is-kept:hover { background: rgba(255,206,107,.22) !important; border-color: rgba(255,206,107,.72) !important; }

.bp-none { padding: 22px 0; font-size: 12.5px; color: rgba(237,241,248,.45); }
.bp-note {
  margin: 0; padding: 6px 28px 20px;
  font-size: 11.5px; line-height: 1.75; color: rgba(237,241,248,.46);
}

/* --- 空态：套装还没上架 --- */
.bp-soon {
  display: flex; align-items: center; gap: 22px;
  padding: 30px 28px; border-radius: 22px; text-align: left;
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1.5px dashed rgba(255,255,255,.18);
}
.bp-soon-ico {
  width: 68px; height: 68px; flex: none; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: radial-gradient(circle at 32% 26%, rgba(255,225,168,.22), rgba(255,255,255,.04) 70%);
  border: 1px solid rgba(255,225,168,.26);
}
.bp-soon-t { font-family: var(--font-serif); font-size: 19px; color: #fff; margin-bottom: 7px; }
.bp-soon-tx p { font-size: 13px; line-height: 1.75; color: rgba(237,241,248,.6); margin: 0; max-width: 640px; }

/* ============================================================
   结算确认页 .bp-ck（买整包前弹出来逐件列价）
   ============================================================ */
.bp-ck {
  position: fixed; inset: 0; z-index: 9996;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4,7,12,.72);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.bp-ck.open { display: flex; }

.bp-ck-box {
  position: relative; width: 100%; max-width: var(--yw-modal-w, min(92vw, max(520px, 50vw)));
  max-height: calc(100vh - 40px); overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 24px 24px 20px; border-radius: 22px;
  background: linear-gradient(168deg, #18202d 0%, #0e131c 68%, #0a0e15 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.62);
  animation: bpCkIn .26s cubic-bezier(.2,.7,.3,1);
}
@keyframes bpCkIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .bp-ck-box { animation-duration: .01ms; } }

.bp-ck-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; cursor: pointer;
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  transition: .18s;
}
.bp-ck-x:hover { color: #fff; background: rgba(255,255,255,.16); }

.bp-ck-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 26px; }
.bp-ck-thumb {
  width: 72px; height: 72px; flex: none; border-radius: 14px;
  background-color: #0d1119; background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.16);
}
.bp-ck-hdtx { min-width: 0; }
.bp-ck-eyebrow { font-size: 10.5px; letter-spacing: 1.5px; color: #ffe1a8; margin: 0 0 5px; }
.bp-ck-title { font-family: var(--font-serif); font-size: 20px; color: #fff; margin: 0 0 5px; line-height: 1.2; }
.bp-ck-sub { font-size: 11.5px; line-height: 1.5; color: rgba(237,241,248,.58); margin: 0; }

.bp-ck-rows { border-top: 1px solid rgba(255,255,255,.1); }
.bp-ck-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 13px; color: rgba(237,241,248,.86);
}
.bp-ck-nm { min-width: 0; }
.bp-ck-nm i {
  font-style: normal; font-size: 10.5px; color: rgba(237,241,248,.4);
  margin-left: 8px; white-space: nowrap;
}
.bp-ck-row b { flex: none; font-variant-numeric: tabular-nums; color: #ffe1a8; font-size: 13.5px; }

.bp-ck-sum {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
}
.bp-ck-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 4px 0; font-size: 12.5px; color: rgba(237,241,248,.58);
}
.bp-ck-line b { font-variant-numeric: tabular-nums; color: rgba(237,241,248,.92); font-weight: 700; }
.bp-ck-line.is-off b { color: #9fe1cb; }
.bp-ck-line.is-total {
  margin-top: 7px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.16);
  font-size: 13px; color: rgba(237,241,248,.82);
}
.bp-ck-line.is-total b { font-size: 20px; color: #ffe1a8; }
.bp-ck-line.is-left { font-size: 12px; }
.bp-ck-line.is-left b i { font-style: normal; opacity: .45; margin: 0 6px; }

.bp-ck-tip { font-size: 11.5px; color: rgba(237,241,248,.42); margin: 13px 0 16px; line-height: 1.6; }
.bp-ck-acts { display: flex; gap: 10px; }
.bp-ck-acts .btn { flex: 1; min-height: 44px; white-space: nowrap; }
.bp-ck-acts .bp-ck-yes { flex: 1.45; }

.bp-one .bp-s { display: none; }   /* 手机上才用短文案「抽号」，桌面上用完整的 */
/* ---------- 黑市：四张翻牌 ---------- */
.draw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; flex-wrap: wrap; }
.draw-pool { font-size: 12.5px; color: var(--muted); }
.draw-pool b { color: #ffe1a8; font-size: 15px; font-variant-numeric: tabular-nums; }
/* 今日轮次状态：平时灰着，本轮发过之后亮成琥珀色并带倒计时 */
.draw-when {
  font-size: 12px; color: rgba(237,241,248,.6); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  font-variant-numeric: tabular-nums;
}
.draw-when.is-locked {
  color: #ffe1a8;
  border-color: rgba(255,206,107,.3);
  background: rgba(255,206,107,.09);
}
.draw-when b { color: #fff; font-weight: 700; }
.draw-when i { font-style: normal; opacity: .8; margin-left: 5px; letter-spacing: .5px; }

.draw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.draw-card { perspective: 1400px; cursor: pointer; aspect-ratio: .72; outline: none; position: relative; }
.draw-card.is-dead { cursor: default; opacity: .55; }
.draw-card.is-dead:hover .dc-back { border-color: rgba(255,255,255,.17); }
.dc-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.4,.12,.2,1);
}
.draw-card.is-open .dc-inner { transform: rotateY(180deg); }
.dc-face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* 背面 */
.dc-back {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 10px, transparent 10px 20px),
    radial-gradient(120% 100% at 50% 0%, #2b2350 0%, #171326 58%, #0b0a13 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.028);
  transition: border-color .2s;
}
.draw-card:hover .dc-back { border-color: rgba(255,255,255,.4); }
.dc-q { font-family: var(--font-serif); font-size: 56px; line-height: 1; color: rgba(255,255,255,.46); }
.dc-back i {
  font-style: normal; font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 5px; text-indent: 5px; color: rgba(255,255,255,.34);
}
/* 正面 */
.dc-front {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: 12px;
  background: linear-gradient(168deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.22);
}
/* 已翻开的牌悬停提示：点整张牌出「装在主页效果」小窗。
   提示挂在 .draw-card 上而不是正面里 —— 正面被 rotateY(180deg) 翻过，
   放进去会跟着镜像，而且给它加 position 会破坏 .dc-face 的 inset:0 定位。 */
.dc-peek {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-size: 10px; font-weight: 700; letter-spacing: .3px; color: #fff; white-space: nowrap;
  background: rgba(8,12,20,.66); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 4px 9px;
  opacity: 0; transform: translateY(3px); transition: .2s; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.draw-card.is-open:hover .dc-peek { opacity: 1; transform: translateY(0); }
.draw-card.is-got .dc-front { border-color: rgba(95,224,176,.5); }
.dc-art {
  height: 45%; border-radius: 10px; flex: none;
  background-color: #0d1119; background-size: cover; background-position: center;
}
.dc-art.is-emoji {
  display: flex; align-items: center; justify-content: center; font-size: 56px;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.16), rgba(255,255,255,.03) 72%);
}
.dc-art.is-color {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 -34px 40px rgba(0,0,0,.22);
}
.dc-kind { margin-top: 10px; font-size: 10px; letter-spacing: 1.2px; color: #9fe1cb; }
.dc-name {
  font-family: var(--font-serif); font-size: 17px; color: #fff; margin-top: 3px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-from {
  font-size: 10.5px; color: rgba(237,241,248,.5); margin-top: 6px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dc-price { font-size: 15px; font-weight: 800; color: #ffe1a8; font-variant-numeric: tabular-nums; }
.dc-price small { font-size: 10px; font-weight: 400; opacity: .7; margin-left: 2px; }
.dc-buy { flex: none; padding: 6px 12px !important; font-size: 11.5px !important; min-height: 0 !important; }
.dc-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
}
.dc-empty-ico { font-size: 30px; opacity: .5; }
.dc-empty b { font-size: 13px; color: rgba(255,255,255,.82); font-weight: 600; }
.dc-empty span:last-child { font-size: 11px; color: rgba(237,241,248,.45); line-height: 1.5; }
.draw-tip { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .story-grid { gap: 12px; }
  .story-card { min-height: 244px; border-radius: 18px; }
  .story-tag { top: 12px; left: 13px; font-size: 10px; padding: 4px 9px; }
  .story-bg.is-num::before { font-size: 132px; }
  .story-bg.is-emoji::before { font-size: 122px; }
  .story-bg.is-cards { gap: 8px; padding-right: 5%; }
  .story-bg.is-cards i { width: 64px; height: 94px; border-radius: 8px; }
  .story-bg.is-swatch { gap: 7px; padding-right: 5%; }
  .story-bg.is-swatch i { width: 42px; height: 112px; border-radius: 9px; }
  .story-bg.is-gift b { width: 132px; height: 112px; margin-right: 8%; margin-top: -8%; }
  .story-bg.is-gift b::before { top: 38px; left: 3px; right: 3px; border-radius: 2px 2px 9px 9px; }
  .story-bg.is-gift b::after { top: 18px; height: 24px; border-radius: 5px; }
  .story-bg.is-gift b i::before, .story-bg.is-gift b i::after { width: 30px; height: 20px; top: 2px; }
  .story-bg.is-gift b i::before { left: -31px; }
  .story-bg.is-gift b i::after { left: 1px; }
  .story-body { padding: 20px 16px 22px; }
  .story-kicker { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 6px; }
  .story-title { font-size: 26px; }
  .story-sub { font-size: 12px; margin-top: 8px; }
  /* 手机把「进入」挪到右上角，说明文字就能用满整宽，不会挤成三行 */
  .story-cta { top: 11px; right: 12px; bottom: auto; font-size: 11px; padding: 6px 12px; }
  /* 轮播点在右上会撞「进入」，手机挪到标签下方 */
  .story-dots { top: 44px; right: auto; left: 15px; }

  /* 套装页 */
  .bp { border-radius: 18px; }
  .bp-hero { min-height: 236px; padding: 22px 18px 20px; }
  .bp-hero-tx { max-width: 62%; }
  .bp-kick { font-size: 10px; padding: 3px 9px; margin-bottom: 9px; }
  .bp-name { font-size: 26px; margin-bottom: 8px; }
  .bp-desc { font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
  .bp-bars i { width: 28px; height: 5px; }
  .bp-due { top: 12px; left: 14px; font-size: 10.5px; padding: 5px 10px; }
  .bp-due b { font-size: 12px; }

  .bp-bar { padding: 13px 16px; gap: 10px; }
  .bp-sum { gap: 8px; }
  .bp-sum-k { font-size: 11px; }
  .bp-now { font-size: 21px; }
  .bp-off { font-size: 10.5px; padding: 3px 8px; }
  .bp-act { min-width: 0; flex: 1 1 100%; min-height: 42px; }

  .bp-list { padding: 2px 16px 0; }
  .bp-list-hd { padding: 13px 0 8px; }
  .bp-list-hd span { font-size: 10.5px; }
  .bp-row { grid-template-columns: 42px minmax(0, 1fr) auto 66px; gap: 9px; padding: 11px 0; }
  .bp-th { width: 42px; height: 42px; border-radius: 10px; font-size: 19px; }
  .bp-th.is-num { font-size: 11px; }
  .bp-nm { font-size: 13.5px; }
  .bp-kd { font-size: 9.5px; }
  .bp-pr { font-size: 13px; }
  .bp-pr small { font-size: 9px; }
  .bp-one { min-width: 0; padding: 6px 8px !important; font-size: 11px !important; }
  .bp-row { grid-template-columns: 42px minmax(0, 1fr) auto 74px; }
  .bp-one .bp-l { display: none; }
  .bp-one .bp-s { display: inline; }
  .bp-note { padding: 6px 16px 16px; }
  .bp-soon { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
  .bp-soon-ico { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }
  .bp-soon-t { font-size: 17px; }
  .bp-soon-tx p { font-size: 12.5px; }

  /* 结算页 */
  .bp-ck { padding: 12px; align-items: flex-end; }
  .bp-ck-box { max-width: none; max-height: calc(100vh - 24px); padding: 20px 18px 16px; border-radius: 20px; }
  .bp-ck-thumb { width: 60px; height: 60px; }
  .bp-ck-title { font-size: 18px; }
  .bp-ck-row { font-size: 12.5px; }
  .bp-ck-line.is-total b { font-size: 18px; }
  .bp-ck-acts .btn { min-height: 46px; font-size: 13px; }

  .draw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dc-q { font-size: 44px; }
  .dc-art { height: 42%; }
  .dc-art.is-emoji { font-size: 40px; }
  .dc-kind { margin-top: 8px; }
  .dc-name { font-size: 15px; }
  .dc-from { font-size: 10px; margin-top: 4px; }
  .dc-price { font-size: 13px; }
  .draw-bar { margin-bottom: 14px; }
  .draw-when { font-size: 11px; padding: 4px 10px; }
}

/* 手机横屏：以前整站 zoom:.5，这里把弹层放大 1.6 倍补回。
   app90.css 已取消那个缩放，这几条补丁一并去掉，否则横屏弹层会大一圈。 */
@media (orientation: landscape) and (max-height: 500px) {
  .bp-hero { min-height: 300px; }
}

/* ============================================================
   编号扭蛋机小窗 .pn（点「抽取编号」/ 整包买完自动弹出）
   ============================================================ */
.pn {
  position: fixed; inset: 0; z-index: 9997;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4,7,12,.74);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.pn.open { display: flex; }

.pn-box {
  position: relative; width: 100%; max-width: var(--yw-modal-w, min(92vw, max(520px, 50vw)));
  max-height: calc(100vh - 40px); overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 22px 22px 18px; border-radius: 22px;
  background: linear-gradient(168deg, #1b2331 0%, #101623 62%, #0a0e15 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.62);
  animation: pnIn .28s cubic-bezier(.2,.7,.3,1);
}
@keyframes pnIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.pn-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: rgba(237,241,248,.72); font-size: 13px; line-height: 1; cursor: pointer;
  transition: .18s;
}
.pn-x:hover { background: rgba(255,255,255,.16); color: #fff; }

.pn-hd { margin-bottom: 14px; padding-right: 32px; }
.pn-eyebrow { font-size: 10.5px; letter-spacing: 1.6px; color: #ffe1a8; margin: 0 0 6px; }
.pn-title { font-family: var(--font-serif); font-size: 21px; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.pn-sub { font-size: 11.5px; line-height: 1.6; color: rgba(237,241,248,.6); margin: 0; }

/* 机器本体 */
.pn-machine {
  position: relative; margin: 2px 0 14px;
  padding: 16px 16px 18px; border-radius: 20px;
  background: linear-gradient(180deg, #223049 0%, #161f2e 56%, #101823 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.36);
  overflow: hidden;
}

/* 玻璃罩 + 里面的扭蛋 */
.pn-dome {
  position: relative; height: 104px; margin: 0 auto 12px;
  border-radius: 999px 999px 16px 16px;
  background:
    radial-gradient(120% 92% at 50% 0%, rgba(255,255,255,.22), rgba(255,255,255,.05) 46%, transparent 72%),
    linear-gradient(180deg, rgba(140,190,255,.2), rgba(90,130,200,.08));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 -14px 24px rgba(8,12,20,.34), inset 0 2px 0 rgba(255,255,255,.34);
  overflow: hidden;
}
.pn-dome::after {
  content: ""; position: absolute; left: 11%; top: 9px; width: 44%; height: 24px;
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
  filter: blur(3px);
}
.pn-dome i {
  position: absolute; left: var(--x); top: var(--y);
  width: 25px; height: 25px; margin: -12.5px 0 0 -12.5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.55), transparent 58%), var(--c);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.28);
}

/* 号码窗 */
.pn-slot {
  position: relative; height: 68px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #05090f, #0b131f);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 6px 18px rgba(0,0,0,.72), inset 0 -1px 0 rgba(255,255,255,.07);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.pn-slot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px);
}
.pn-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px; font-weight: 800; letter-spacing: 2px;
  color: #cfe2ff; text-shadow: 0 0 18px rgba(120,180,255,.45);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pn-slot.is-plain { border-color: rgba(140,190,255,.34); }
.pn-slot.is-lucky {
  border-color: rgba(255,206,107,.55);
  box-shadow: inset 0 6px 18px rgba(0,0,0,.62), 0 0 26px rgba(255,180,80,.3);
  animation: pnPop .5s cubic-bezier(.2,.8,.3,1);
}
.pn-code.is-lucky { color: #ffd77a; text-shadow: 0 0 24px rgba(255,190,90,.8); }
@keyframes pnPop {
  0% { transform: scale(.94); }
  55% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* 右侧信息栏的包装器：窄屏（手机/竖版）让它透明，子元素照原样竖排；
   只有电脑端宽版那一栏才把它变成 flex 列。 */
.pn-side, .pa-side { display: contents; }

/* 摇把：贴在玻璃罩右上角那圈机器面上，别压号码窗 */
.pn-knob {
  position: absolute; right: 12px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.45), transparent 56%),
              linear-gradient(160deg, #93a9cb, #4a5c78);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.pn-knob::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.pn-knob::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px;
  margin: -1px 0 0 -5.5px; border-radius: 2px; background: rgba(255,255,255,.66);
}

/* 摇起来 */
.pn-machine.is-rolling { animation: pnShake .16s linear infinite; }
@keyframes pnShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  75% { transform: translate(2px, -1px); }
}
.pn-machine.is-rolling .pn-dome::after {
  content: ""; position: absolute; left: 11%; top: 9px; width: 44%; height: 24px;
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
  filter: blur(3px);
}
.pn-dome i {
  animation: pnJump .44s cubic-bezier(.4,0,.5,1) infinite;
  animation-delay: var(--d);
}
@keyframes pnJump {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  38% { transform: translate(3px, -10px) rotate(16deg); }
  70% { transform: translate(-4px, -3px) rotate(-11deg); }
}
.pn-machine.is-rolling .pn-knob { animation: pnSpin .5s linear infinite; }
@keyframes pnSpin { to { transform: rotate(360deg); } }

.pn-tip {
  min-height: 18px; margin: 0 0 12px; text-align: center;
  font-size: 12px; line-height: 1.5; color: rgba(237,241,248,.62);
}
.pn-tip.is-lucky { color: #ffd77a; font-weight: 600; }

.pn-acts { display: flex; gap: 10px; }
.pn-acts .btn { flex: 1; min-height: 44px; white-space: nowrap; }
.pn-acts .pn-go { flex: 1.5; }

@media (max-width: 640px) {
  .pn { padding: 14px; }
  .pn-box { padding: 20px 16px 16px; border-radius: 18px; }
  .pn-title { font-size: 19px; }
  .pn-dome { height: 88px; }
  .pn-dome::after {
  content: ""; position: absolute; left: 11%; top: 9px; width: 44%; height: 24px;
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
  filter: blur(3px);
}
.pn-dome i { width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; }
  .pn-slot { height: 60px; }
  .pn-code { font-size: 25px; letter-spacing: 1.5px; }
  .pn-acts .btn { min-height: 46px; font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .pn-box { max-height: 96vh; }
}
@media (prefers-reduced-motion: reduce) {
  .pn-box, .pn-slot.is-lucky,
  .pn-machine.is-rolling, .pn-machine.is-rolling .pn-dome i,
  .pn-machine.is-rolling .pn-knob { animation: none; }
}

/* ============================================================
   摇号前的确认窗 .pa
   ------------------------------------------------------------
   点「🎰 抽取编号」不再直接开摇：先摆一屏说清「这号多少钱、
   你余额还剩多少、250127 不在这条路上」，确认了扭蛋机才开动。
   皮肤和扭蛋机 .pn 是同一套，弹入动效也从下往上浮 16px。
   ============================================================ */
.pa {
  position: fixed; inset: 0; z-index: 9996;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4,7,12,.74);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.pa.open { display: flex; }

.pa-box {
  position: relative; width: 100%; max-width: var(--yw-modal-w, min(92vw, max(520px, 50vw)));
  max-height: calc(100vh - 40px); overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 20px 20px 16px; border-radius: 20px;
  background: linear-gradient(168deg, #1b2331 0%, #101623 62%, #0a0e15 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.62);
  animation: paIn .26s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes paIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.pa-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: rgba(237,241,248,.72); font-size: 13px; line-height: 1; cursor: pointer;
  transition: .18s;
}
.pa-x:hover { background: rgba(255,255,255,.16); color: #fff; }

.pa-eyebrow { font-size: 10.5px; letter-spacing: 1.6px; color: #ffe1a8; margin: 0 0 6px; }
.pa-title {
  font-family: var(--font-serif); font-size: 20px; color: #fff;
  margin: 0 0 6px; line-height: 1.25; padding-right: 26px;
}
.pa-sub { font-size: 11.5px; line-height: 1.6; color: rgba(237,241,248,.6); margin: 0 0 14px; }

/* 商品行：缩略图 + 名字 + 售价 */
.pa-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.pa-th {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.2), rgba(255,255,255,.04) 62%, transparent 74%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.pa-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pa-nm {
  font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pa-kind {
  font-size: 10.5px; color: rgba(237,241,248,.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pa-price { flex: none; text-align: right; color: #ffe1a8; font-variant-numeric: tabular-nums; }
.pa-price b { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.pa-price small {
  display: block; font-size: 9.5px; font-weight: 400;
  color: rgba(237,241,248,.45); letter-spacing: 1px;
}

/* 三条说明 */
.pa-pts { list-style: none; margin: 13px 0 15px; padding: 0; display: grid; gap: 8px; }
.pa-pts li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; line-height: 1.55; color: rgba(237,241,248,.56);
}
.pa-pts li i { flex: none; font-style: normal; font-size: 12px; line-height: 1.45; }
.pa-pts li b { color: rgba(255,225,168,.95); font-weight: 700; font-variant-numeric: tabular-nums; }
.pa-pts li.is-short b { color: #ff9b9b; }

.pa-acts { display: flex; gap: 10px; }
.pa-acts .btn { flex: 1; min-height: 44px; white-space: nowrap; }
.pa-acts .pa-yes { flex: 1.4; }
/* 积分不够时主按钮要看得出来是按不动的，别还是亮蓝一片 */
.pa-acts .pa-yes[disabled] {
  opacity: .45; cursor: not-allowed;
  background: rgba(255,255,255,.1); color: rgba(237,241,248,.6);
  border-color: rgba(255,255,255,.14); box-shadow: none;
}

@media (max-width: 640px) {
  .pa { padding: 14px; }
  .pa-box { padding: 18px 16px 14px; border-radius: 18px; }
  .pa-title { font-size: 18.5px; }
  .pa-th { width: 40px; height: 40px; font-size: 20px; border-radius: 11px; }
  .pa-price b { font-size: 18.5px; }
  .pa-pts li { font-size: 11.5px; }
  .pa-acts .btn { min-height: 46px; font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .pa-box { max-height: 96vh; }
}
@media (prefers-reduced-motion: reduce) {
  .pa-box { animation: none; }
}

/* ============================================================
   电脑端宽版：摇号确认窗 .pa / 扭蛋机 .pn 改成左右两栏
   ------------------------------------------------------------
   全站小窗统一到 --yw-modal-w（屏幕宽的一半：1440 → 720）。
   这两块原本是 388 / 402 的竖版机器造型，直接加宽会让中间空出
   一大条，所以 ≥761px 切成「左机器 / 商品卡 · 右信息 + 按钮」。
   手机（≤640）完全走上面的竖版规则，横屏矮视口（zoom 1.6）也排除，
   避免两套规则互相挤压。
   ============================================================ */
@media (min-width: 761px) and (min-height: 501px) {
  /* ---------------- 扭蛋机 ---------------- */
  .pn-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    column-gap: 28px;
    align-items: stretch;
    padding: 26px 28px 24px;
  }
  .pn-hd { grid-column: 1 / -1; padding-right: 46px; margin-bottom: 18px; }
  .pn-title { font-size: 24px; }
  .pn-sub { font-size: 13px; }

  .pn-machine {
    grid-column: 1;
    margin: 0;
    display: flex; flex-direction: column;
    padding: 24px 22px 26px;
  }
  /* flex 列里 margin:auto 的水平分量会取消 stretch，玻璃罩会塌成 2px 宽 */
  .pn-dome { width: 100%; height: 134px; margin: 0 0 16px; }
  .pn-dome i { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .pn-slot { height: 80px; margin-top: auto; }
  .pn-code { font-size: 34px; letter-spacing: 3px; }
  .pn-knob { width: 30px; height: 30px; right: 14px; top: 14px; }

  .pn-side {
    grid-column: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 18px; min-width: 0; padding-bottom: 2px;
  }
  .pn-tip { margin: 0; text-align: left; font-size: 13px; line-height: 1.7; }
  .pn-acts { flex-direction: column; gap: 10px; }
  .pn-acts .btn { width: 100%; min-height: 46px; }

  /* ---------------- 摇号确认窗 ---------------- */
  .pa-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 26px;
    align-items: start;
    padding: 24px 28px 22px;
  }
  .pa-head { display: block; grid-column: 1 / -1; }
  .pa-title { font-size: 24px; padding-right: 44px; }
  .pa-sub { font-size: 13px; margin-bottom: 20px; }

  /* 商品卡改成竖版：图标在上、名字居中、价格在下，和右侧三条说明等高 */
  .pa-card {
    grid-column: 1; align-self: center;
    flex-direction: column; align-items: center; text-align: center;
    gap: 14px; padding: 26px 18px;
  }
  .pa-th { width: 76px; height: 76px; font-size: 36px; border-radius: 18px; }
  .pa-tx { flex: none; align-items: center; gap: 5px; }
  .pa-nm { font-size: 15px; }
  .pa-kind { font-size: 11.5px; }
  .pa-price { text-align: center; }
  .pa-price b { font-size: 28px; }
  .pa-price small { font-size: 10.5px; margin-top: 2px; }

  .pa-side {
    grid-column: 2;
    display: flex; flex-direction: column; justify-content: center;
    gap: 16px; min-width: 0;
  }
  .pa-pts { margin: 0; gap: 10px; }
  .pa-pts li { font-size: 12.5px; line-height: 1.6; }
  .pa-acts { flex-direction: column; gap: 10px; }
  .pa-acts .btn { width: 100%; min-height: 46px; }
}
