:root {
  --ink: #2b1a12;
  --ink-2: #6b4a38;
  --muted: #9b8778;
  --paper: #fbf7f0;
  --card: #fffdf9;
  --line: #eadfd0;
  --orange: #ff6b2c;
  --orange-deep: #e8552f;
  --gold: #ffb347;
  --green: #0a8f4d;
  --red: #d8341f;
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff6e8 0%, rgba(255, 246, 232, 0) 60%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }

/* ================================================================ 海报 */

.poster {
  position: relative;
  padding: 16px 20px 30px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, rgba(255, 255, 255, 0) 2px 6px),
    linear-gradient(168deg, #ffe2b8 0%, #ffb475 38%, #ff7f4d 72%, #ef5a35 100%);
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(200, 90, 40, .18);
}

.poster-bar {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
}
.badge {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(43, 26, 18, .72); color: #ffe9d2; letter-spacing: .5px;
}
.badge.ended { background: rgba(43, 26, 18, .45); }
.poster-date { font-size: 12px; color: #7a3d1e; letter-spacing: 1px; }

/* 主视觉：太阳 + 三层山脊 + 帐篷 */
.poster-art {
  position: relative;
  margin: 2px -20px 0;
  height: 148px;
  overflow: hidden;
}
.sun {
  position: absolute; right: 42px; top: 14px;
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffbe8 0%, #ffd77a 45%, #ff9a3c 100%);
  box-shadow: 0 0 40px 12px rgba(255, 210, 120, .55);
}
.ridge { position: absolute; left: -12%; width: 124%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ridge-1 { bottom: -6px; height: 68px; background: #e0673c; opacity: .85; }
.ridge-2 { bottom: -18px; left: -28%; width: 96%; height: 82px; background: #c94a2c; }
.ridge-3 { bottom: -26px; left: 32%; width: 104%; height: 74px; background: #a43a23; }
.tent {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 46px; filter: drop-shadow(0 6px 8px rgba(90, 30, 10, .35));
}
.stamp {
  position: absolute; right: 14px; bottom: 26px;
  width: 66px; height: 66px; border: 2px dashed rgba(255, 245, 225, .85);
  border-radius: 50%; color: #fff2dd; font-size: 11px; line-height: 1.25;
  display: grid; place-items: center; text-align: center;
  transform: rotate(-9deg); letter-spacing: 1px;
}

.poster h1 {
  position: relative; z-index: 2;
  margin: 12px 0 2px;
  font-size: 31px; line-height: 1.2; letter-spacing: 3px; font-weight: 800;
  color: #3d1c0c;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .35);
}
.poster-sub { position: relative; z-index: 2; margin: 0; font-size: 13px; color: #7a3d1e; letter-spacing: 1px; }
.poster-loc { position: relative; z-index: 2; margin-top: 10px; font-size: 12px; color: #8a4a26; }

.countdown {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(255, 240, 220, .55);
  color: #fff3e2;
}
.cd-label { font-size: 12px; letter-spacing: 1px; opacity: .9; }
.cd-time {
  font-size: 21px; font-weight: 800; letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(120, 40, 10, .25);
}
.cd-people { margin-left: auto; font-size: 12px; opacity: .85; }

.poster-strip {
  position: relative; z-index: 2;
  margin: 14px 0 16px; padding: 9px 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: #fff1de; letter-spacing: 2px;
  border-top: 1px dashed rgba(255, 240, 220, .55);
  border-bottom: 1px dashed rgba(255, 240, 220, .55);
}
.poster-strip i { font-style: normal; opacity: .6; }

.poster-cta {
  position: relative; z-index: 2;
  width: 100%; padding: 15px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ff7a33, #e8431f);
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 10px 22px rgba(160, 50, 20, .32);
  cursor: pointer;
}
.poster-cta:active { transform: translateY(1px); }

/* ================================================================ 快捷入口 */

.quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: -24px 16px 0; padding: 14px 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(80, 45, 25, .1);
  position: relative; z-index: 3;
}
.quick-item {
  border: 0; background: none; font: inherit; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 0; cursor: pointer;
}
.quick-item i { font-style: normal; font-size: 23px; }
.quick-item span { font-size: 12px; color: var(--ink-2); }

/* ================================================================ 区块标题 */

main { padding: 20px 16px 0; }

.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 2px 12px; }
.sec-head h2 {
  margin: 0; font-size: 19px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.sec-head h2::before {
  content: ""; width: 6px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}
.sec-head em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ================================================================ 票根式套餐 */

.ticket {
  position: relative;
  display: flex; align-items: stretch;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(80, 45, 25, .07);
  margin-bottom: 12px;
  overflow: hidden;
}
.ticket-left { flex: 1; min-width: 0; display: flex; gap: 12px; padding: 15px 14px; }
.ticket-icon {
  width: 54px; height: 54px; flex: 0 0 54px;
  display: grid; place-items: center; font-size: 27px;
  border-radius: 12px;
  background: linear-gradient(150deg, #fff1d8, #ffd9a8);
  border: 1px solid #f3dfc2;
  overflow: hidden;
}
.ticket-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ticket-info { min-width: 0; }
.ticket-info h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: .5px; }
.ticket-info p { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.ticket-stock { font-size: 11px; color: var(--orange-deep); background: #fff1e6; padding: 2px 8px; border-radius: 999px; }

.ticket-stub {
  position: relative;
  width: 98px; flex: 0 0 98px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 8px;
  background: linear-gradient(180deg, #fffaf2, #fff3e2);
  border-left: 2px dashed #efdcc2;
}
/* 撕票孔 */
.ticket-stub::before,
.ticket-stub::after {
  content: ""; position: absolute; left: -8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.ticket-stub::before { top: -8px; }
.ticket-stub::after { bottom: -8px; }

.ticket-price { color: var(--red); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: .5px; }
.ticket-price small { font-size: 13px; font-weight: 600; margin-right: 1px; }
.buy-btn {
  border: 0; border-radius: 999px; padding: 7px 16px;
  background: linear-gradient(135deg, #ff7a33, #e8431f); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 10px rgba(200, 70, 30, .25);
}
.buy-btn:disabled { background: #e7e0d6; color: #a99c8d; box-shadow: none; cursor: not-allowed; }

/* ================================================================ 活动说明 */

.rules {
  margin: 20px 0 8px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.9;
}
.rules h4 { margin: 0 0 6px; font-size: 13px; color: var(--ink); letter-spacing: 1px; }

.poster-foot {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #b9a795; padding: 6px 2px 4px;
  border-top: 1px dashed var(--line); margin-top: 16px;
}

/* ================================================================ 通用按钮 */

.btn {
  border: 0; border-radius: 12px; padding: 11px 18px;
  font: inherit; font-size: 15px; cursor: pointer;
  background: #f3ece1; color: #6b4a38;
}
.btn-primary {
  border: 0; border-radius: 12px; background: linear-gradient(135deg, #ff7a33, #e8431f);
  color: #fff; font: inherit; font-size: 16px; padding: 13px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 70, 30, .22);
}
.btn-primary:disabled { background: #e7e0d6; color: #a99c8d; box-shadow: none; }
.btn-block { display: block; width: 100%; }
.btn-small {
  border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px;
  background: #f1e7d8; color: #6b4a38; cursor: pointer;
}
.btn-ghost { border: 0; border-radius: 10px; padding: 9px 16px; font: inherit; font-size: 13px; background: #f3ece1; color: #6b4a38; cursor: pointer; }

/* ================================================================ 抽奖 */

.wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.wheel-stage { position: relative; width: 300px; height: 300px; max-width: 82vw; }
.wheel {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(
    #fff4e3 0deg 45deg, #ffe6c4 45deg 90deg,
    #fff4e3 90deg 135deg, #ffe6c4 135deg 180deg,
    #fff4e3 180deg 225deg, #ffe6c4 225deg 270deg,
    #fff4e3 270deg 315deg, #ffe6c4 315deg 360deg);
  box-shadow: 0 12px 30px rgba(200, 90, 40, .2), inset 0 0 0 8px #fff;
  transition: transform 4.2s cubic-bezier(.17, .67, .2, 1);
}
.slice { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; }
.slice span {
  position: absolute; left: -46px; top: -127px; width: 92px;
  text-align: center; font-size: 12px; font-weight: 700; color: #a4541f; line-height: 1.2;
}
.slice i { display: block; font-style: normal; font-size: 19px; margin-bottom: 1px; }

.pointer {
  position: absolute; left: 50%; top: -4px; transform: translateX(-50%);
  width: 0; height: 0; z-index: 3;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 17px solid #d8341f;
  filter: drop-shadow(0 2px 3px rgba(90, 20, 0, .3));
}
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(160deg, #ffb347, #e8431f);
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 1px;
  display: grid; place-items: center; border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(210, 70, 20, .35); z-index: 2;
  cursor: pointer; user-select: none;
}
.hub:active { transform: translate(-50%, -50%) scale(.96); }

.chance-bar {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; box-shadow: 0 6px 16px rgba(80, 45, 25, .06);
}
.chance-bar b { color: var(--orange-deep); font-size: 19px; }
.link { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }

.record-list {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 16px; margin-top: 14px;
}
.record-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  font-size: 13px; border-bottom: 1px solid var(--line);
}
.record-row:last-child { border-bottom: 0; }
.record-row .t { color: var(--muted); font-size: 12px; }

.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 0; }

/* ================================================================ 我的 / 打卡 */

.phone-line {
  display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: 0 6px 16px rgba(80, 45, 25, .05); margin-bottom: 12px;
}
.phone-line input { flex: 1; border: 0; outline: 0; font: inherit; background: none; color: var(--ink); }

.checkin-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 6px 16px rgba(80, 45, 25, .06);
}
.checkin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.checkin-head h3 { margin: 0; font-size: 16px; letter-spacing: 1px; }
.streak { font-size: 12px; color: var(--muted); }
.streak b { color: var(--orange-deep); }

.week { display: flex; justify-content: space-between; gap: 6px; margin: 12px 0 16px; }
.day { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.day b {
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 4px;
  border-radius: 50%; background: #f2ebdf; font-size: 13px; color: #b3a394; font-weight: 600;
}
.day.done b { background: linear-gradient(135deg, #ffb347, #ff7a33); color: #fff; }
.day.today b { box-shadow: 0 0 0 2px rgba(255, 122, 51, .35); }

.order-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(80, 45, 25, .05);
}
.order-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.order-mid { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.order-mid h4 { margin: 0; font-size: 15px; }
.order-mid b { color: var(--red); }
.status { font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.status.pending { background: #fff3e0; color: #c2610c; }
.status.paid { background: #e7f6ec; color: var(--green); }
.status.cancelled { background: #f1ece4; color: #9b8778; }
.order-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; }
.muted { color: var(--muted); font-size: 12px; }

/* ================================================================ 弹层 */

.mask {
  position: fixed; inset: 0; background: rgba(40, 24, 14, .5);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 40;
}
.mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: 480px; margin: 0 auto;
  background: var(--card); border-radius: 22px 22px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(60, 30, 10, .18);
}
.sheet.show { transform: translateY(0); }
.sheet h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: .5px; }
.sheet .sub { color: var(--muted); font-size: 12px; margin: 0 0 16px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; outline: 0; background: #fdfaf5; color: var(--ink);
}
.field input:focus { border-color: var(--orange); background: #fff; }

.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 19px; line-height: 1; color: var(--ink); cursor: pointer;
}
.stepper button:disabled { color: #ccc; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 17px; }

.amount-line { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.amount-line b { color: var(--red); font-size: 25px; }

.pay-summary {
  background: #fdf6ea; border: 1px dashed #e9d6ba; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 4px;
}
.pay-summary h4 { margin: 0 0 4px; font-size: 15px; }
.pay-summary p { margin: 0; font-size: 12px; color: var(--muted); }

.code-qr {
  width: 176px; height: 176px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.code-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 6px; }
.code-digits {
  font-family: "SF Mono", Consolas, monospace; font-size: 20px; letter-spacing: 4px;
  font-weight: 700; color: var(--ink-2); background: #fdf6ea;
  padding: 6px 14px; border-radius: 999px; border: 1px dashed #e9d6ba;
}
.code-hint { font-size: 12px; color: var(--muted); text-align: center; }
.code-hint.warn { color: var(--orange-deep); }

/* ================================================================ 底部导航 */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 253, 249, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  border: 0; background: none; font: inherit; cursor: pointer;
  padding: 9px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: #a99784;
}
.tabbar button i { font-style: normal; font-size: 21px; filter: grayscale(1); opacity: .6; }
.tabbar button.active { color: var(--orange-deep); font-weight: 700; }
.tabbar button.active i { filter: none; opacity: 1; }

/* ================================================================ 其它 */

.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(45, 26, 14, .92); color: #fff6e9; padding: 12px 20px;
  border-radius: 12px; font-size: 14px; max-width: 78vw; text-align: center;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.hidden { display: none !important; }
.mt { margin-top: 18px; }
.center { text-align: center; }

/* ---------------- 实时动态弹幕 ---------------- */
.wall {
  position: relative;
  height: 36px;
  margin: -6px 14px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .04);
}
.wall-item {
  position: absolute;
  top: 50%;
  left: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  font-size: 12px;
  line-height: 1.35;
  color: #6b5a45;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: wall-move 16s linear forwards;
  will-change: transform;
}
.wall-item.draw {
  color: #b4571a;
  background: #fff7ef;
  box-shadow: 0 1px 4px rgba(214, 122, 42, .18);
}
@keyframes wall-move {
  to { transform: translate(-220%, -50%); }
}

/* 抽奖规则提示 */
.draw-rule {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a7358;
  text-align: center;
  background: #fff8ee;
  border-radius: 10px;
  padding: 7px 10px;
}


/* ---------------- 活动详情长图 ---------------- */
.detail-imgs { margin: 0 0 24px; }
.detail-imgs img { display: block; width: 100%; height: auto; margin-bottom: 2px; border-radius: 4px; }

/* ---------------- 右侧悬浮：音乐 / 客服 ---------------- */
.floaters { position: fixed; right: 10px; bottom: 30%; display: flex; flex-direction: column; gap: 12px; z-index: 40; }
.floater { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-size: 17px; background: rgba(255,255,255,.92); box-shadow: 0 3px 10px rgba(0,0,0,.14);
  color: #c2703c; text-decoration: none; cursor: pointer; }
.floater.kefu { background: linear-gradient(135deg,#2fbf71,#1f9d5b); color: #fff; }
.floater.playing { animation: floater-spin 4s linear infinite; }
@keyframes floater-spin { to { transform: rotate(360deg); } }


/* ---------------- 我的推广 ---------------- */
.ref-card { background: #fff; border-radius: 14px; padding: 16px; margin: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ref-head { display: flex; align-items: center; justify-content: space-between; }
.ref-head h3 { margin: 0; font-size: 15px; }
.ref-stat { font-size: 12px; color: #c2703c; }
.ref-stat b { font-size: 15px; }
.ref-tip { font-size: 12px; color: #9a8c7d; margin: 8px 0 12px; line-height: 1.6; }
.ref-actions { display: flex; gap: 10px; }
.ref-actions button { flex: 1; }
.poster-wrap { text-align: center; }
.poster-wrap img { max-width: 100%; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.poster-wrap p { font-size: 12px; color: #9a8c7d; margin-top: 10px; }


/* ---------------- 倒计时放大居中 ---------------- */
.countdown { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 12px 16px; text-align: center; }
.countdown .cd-label { font-size: 13px; letter-spacing: 2px; color: #8a7358; }
.countdown .cd-time { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: 3px;
  color: #d2551f; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.countdown .cd-people { font-size: 12px; color: #a08a70; }


/* ---------------- 底部栏：小 tab + 大抢购 ---------------- */
.tabbar { display: flex; align-items: stretch; gap: 6px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button.tab-sm {
  flex: 0 0 62px; border: 0; background: none; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 10px; color: #a99784; padding: 4px 0;
}
.tabbar button.tab-sm i { font-style: normal; font-size: 17px; filter: grayscale(1); opacity: .6; }
.tabbar button.tab-sm.active { color: var(--orange-deep); font-weight: 700; }
.tabbar button.tab-sm.active i { filter: none; opacity: 1; }
.tabbar .tab-buy {
  flex: 1; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700;
  color: #fff; border-radius: 999px; letter-spacing: 1px;
  background: linear-gradient(135deg, #ff8a3c, #f4562a);
  box-shadow: 0 6px 16px rgba(244, 86, 42, .32);
}
.tabbar .tab-buy:active { transform: scale(.98); }

/* 倒计时背景可换 */
.countdown.has-bg {
  background-size: cover; background-position: center; border-radius: 16px;
  margin: 0 14px; overflow: hidden; position: relative;
}
.countdown.has-bg::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.55);
}
.countdown.has-bg > * { position: relative; z-index: 1; }


/* ---------------- 转盘扇区（图标更大） ---------------- */
.wheel .slice span { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.wheel .slice span i { font-size: 19px; font-style: normal; }
.wheel .slice span { font-size: 10px; }

/* ---------------- 中奖全屏礼花 ---------------- */
#celebrate {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  background: rgba(30, 12, 20, .78); text-align: center; padding: 24px;
}
#celebrate.show { display: grid; animation: cel-fade .18s ease; }
@keyframes cel-fade { from { opacity: 0 } to { opacity: 1 } }
.cel-card { animation: cel-pop .5s cubic-bezier(.2,1.6,.5,1); }
.cel-badge {
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 44px;
  background: linear-gradient(160deg, #ffd76e, #ff9f43); color: #5a2a00;
  box-shadow: 0 0 0 7px rgba(255, 215, 110, .2);
}
.cel-title { font-size: 17px; color: #ffe3ac; letter-spacing: 3px; }
.cel-prize {
  margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(180deg, #fff6cf, #ffb229);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.cel-sub { margin-top: 12px; font-size: 13px; color: #e7c6a2; line-height: 1.7; }
.cel-btn {
  margin-top: 22px; border: 0; border-radius: 999px; padding: 12px 34px;
  font: inherit; font-size: 15px; font-weight: 700; color: #5a2a00; cursor: pointer;
  background: linear-gradient(135deg, #ffe08a, #ffb93d);
}
@keyframes cel-pop { from { transform: scale(.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.cel-spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ffd76e; pointer-events: none;
  animation: cel-fly 1.2s ease-out forwards; }
@keyframes cel-fly { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0 } }
