:root {
  --page-bg: #d51b10;
  --page-bg-deep: #ae0c0d;
  --page-highlight: #ff7b32;
  --page-accent: #ed351f;
  --ink: #35201d;
  --ink-soft: #77524a;
  --cream: #fff1d7;
  --cream-deep: #ffd9a9;
  --gold: #ffc94a;
  --white: #fff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--page-bg-deep); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg-deep);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.has-activity-modal { overflow: hidden; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #ffed98; outline-offset: 3px; }

.campaign-page {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--page-bg);
}
.campaign-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image: radial-gradient(rgba(255, 229, 145, .42) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 17px 17px, 29px 29px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
}
.campaign-page[data-template="card_flip"]::before { opacity: .28; }
.campaign-shell { position: relative; z-index: 1; width: min(100%, 560px); margin: 0 auto; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(112px + var(--safe-bottom)); }

/* The small header mirrors the WeChat in-app proportions in the references. */
.wx-bar { display: flex; align-items: center; gap: 9px; min-height: 46px; color: #fff; }
.back-button {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 0, 0, .3);
  color: #fff;
	text-decoration: none;
}
.back-glyph { width: 11px; height: 11px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateX(1px) rotate(45deg); }
.participation-count { display: flex; align-items: center; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; font-size: 14px; }
.participation-count strong { font-weight: 900; }
.participation-count b { color: #ffe28b; }
.participation-count button { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 4px 7px; border: 1px solid rgba(255, 229, 151, .52); border-radius: 999px; background: rgba(108, 0, 0, .2); color: #ffe597; font-size: 11px; font-weight: 800; line-height: 1; }
.participation-count button span { font-size: 15px; line-height: 1; }
.campaign-head { position: relative; padding: 15px 10px 0; color: #fff; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { position: relative; display: grid; place-items: center; width: 47px; height: 47px; border: 2px solid rgba(255, 255, 255, .68); border-radius: 12px; background: linear-gradient(145deg, rgba(255, 143, 83, .92), rgba(225, 34, 26, .68)); color: #fff; font-size: 27px; font-weight: 900; box-shadow: 0 4px 0 rgba(119, 17, 8, .23); }
.brand-mark i { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid #fff; border-radius: 50%; background: #236fea; color: #fff; font-size: 12px; font-style: normal; line-height: 1; }
.brand-lockup > div { min-width: 0; }
.brand-lockup strong { display: block; overflow: hidden; font-size: 22px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.brand-badge { display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 5px; background: #ffcc56; color: #9c2411; font-size: 10px; font-weight: 900; }
.header-action { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 40px; padding: 9px 14px; border: 0; border-radius: 999px; background: #fff; color: #e2382b; box-shadow: 0 5px 13px rgba(111, 0, 0, .2); font-size: 13px; font-weight: 800; }
.header-action span { font-size: 18px; line-height: 1; }
.hero-copy { padding: 24px 0 10px; text-align: center; }
.hero-kicker { color: #ffe398; font-size: 10px; font-weight: 900; letter-spacing: .24em; }
.hero-kicker i { margin-left: 3px; color: #fff0a7; font-style: normal; }
.hero-copy h1 { margin: 8px 0 6px; color: #fff; font-size: 40px; line-height: 1.05; font-weight: 950; letter-spacing: .02em; text-shadow: 0 4px 0 rgba(147, 15, 11, .5), 0 0 18px rgba(255, 235, 157, .3); }
.hero-copy p { max-width: 390px; margin: 12px auto 8px; color: #ffe5ce; font-size: 14px; line-height: 1.7; }
.hero-spark { position: absolute; color: #ffe48c; font-size: 24px; animation: twinkle 2.6s ease-in-out infinite; }
.spark-one { top: 138px; left: 9px; }
.spark-two { top: 170px; right: 15px; font-size: 16px; animation-delay: .6s; }
.spark-three { top: 246px; left: 18%; font-size: 13px; animation-delay: 1.1s; }

.game-board { position: relative; margin-top: 7px; padding: 38px 15px 17px; border: 4px solid #ffcf8b; border-radius: 25px; background: linear-gradient(180deg, #fff1d8, #ffe6c3); box-shadow: 0 9px 0 rgba(107, 13, 8, .28), inset 0 0 0 2px rgba(255, 255, 255, .73); }
.wechat-auth-prompt { position: relative; z-index: 3; display: grid; gap: 5px; margin: -25px 5px 14px; padding: 14px 15px; border: 1px solid rgba(214, 91, 39, .25); border-radius: 14px; background: rgba(255, 250, 238, .96); color: #6f3a2c; box-shadow: 0 5px 16px rgba(117, 49, 21, .12); }
.wechat-auth-prompt strong { color: #b8321e; font-size: 15px; }
.wechat-auth-prompt span { font-size: 12px; line-height: 1.5; }
.wechat-auth-prompt button { justify-self: start; margin-top: 4px; padding: 7px 14px; border: 0; border-radius: 999px; background: #d94727; color: #fff; font-size: 12px; font-weight: 800; }
.game-board::before { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255, 255, 255, .83); border-radius: 17px; pointer-events: none; }
.board-ribbon { position: absolute; z-index: 2; top: -18px; left: 50%; display: flex; align-items: center; justify-content: center; gap: 9px; width: min(83%, 375px); min-height: 49px; padding: 11px 19px; transform: translateX(-50%) rotate(-1deg); border: 2px solid #ffc985; border-radius: 15px 15px 25px 25px; background: linear-gradient(180deg, #fff9e9, #ffe2b8); box-shadow: 0 5px 0 rgba(206, 91, 33, .25); color: #bc321f; text-align: center; font-size: 18px; font-weight: 900; }
.board-ribbon em { padding: 4px 8px; border-radius: 5px; background: #f04426; color: #fff; font-size: 11px; font-style: normal; white-space: nowrap; }
.game-stage { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 367px; }
.stage-glow { position: absolute; top: 54px; left: 50%; width: 290px; height: 170px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 180, 89, .6), rgba(255, 210, 146, 0) 72%); filter: blur(1px); }
.stage-object { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 340px; cursor: pointer; outline: none; }
.stage-object::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 250px; height: 24px; transform: translateX(-50%); border-radius: 50%; background: rgba(146, 55, 22, .18); filter: blur(8px); pointer-events: none; }
.stage-note { position: relative; z-index: 2; margin: 16px 0 8px; color: #a95e42; text-align: center; font-size: 12px; line-height: 1.65; }
.draw-availability { position: relative; z-index: 2; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 66px; margin: 13px 2px 3px; padding: 10px 12px; border: 1px solid rgba(48, 175, 109, .24); border-radius: 12px; background: linear-gradient(135deg, rgba(241, 255, 247, .96), rgba(255, 252, 231, .96)); color: #305e43; box-shadow: 0 4px 12px rgba(71, 91, 48, .08); }
.eligibility-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #30af6d; color: #fff; font-size: 19px; font-weight: 900; box-shadow: 0 0 0 5px rgba(48, 175, 109, .12); }
.eligibility-copy { display: grid; gap: 3px; min-width: 0; }
.eligibility-copy strong { color: #21573a; font-size: 15px; line-height: 1.25; }
.eligibility-copy small { color: #698172; font-size: 11px; line-height: 1.45; }
.eligibility-count { padding: 5px 8px; border-radius: 999px; background: #218b56; color: #fff; font-size: 10px; font-weight: 900; white-space: nowrap; }
.draw-availability.is-muted { border-color: rgba(224, 137, 42, .28); background: linear-gradient(135deg, #fff9ec, #fff1dc); color: #885022; }
.draw-availability.is-muted .eligibility-icon { background: #ec9e39; box-shadow: 0 0 0 5px rgba(236, 158, 57, .13); }
.draw-availability.is-muted .eligibility-copy strong { color: #8c4d1e; }
.draw-availability.is-muted .eligibility-copy small { color: #9b7456; }
.draw-availability.is-unlimited .eligibility-count { background: #c13b28; }
.stage-draw-button { display: none; }
.stage-draw-button span { font-size: 28px; line-height: 1; }
.stage-draw-button:active { transform: translateY(2px); box-shadow: 0 4px 0 #bc331e; }
.stage-draw-button:disabled { cursor: not-allowed; opacity: .62; filter: grayscale(.25); box-shadow: 0 4px 0 #bd7b6d; }

/* Wheel: the pointer stays fixed while every configured prize owns one sector. */
.wheel-art { display: none; position: relative; width: min(318px, 100%); aspect-ratio: 1; }
.game-stage[data-template="wheel"] .wheel-art { display: block; }
.wheel-disc { --wheel-count: 6; position: absolute; inset: 14px; display: grid; place-items: center; overflow: hidden; border: 7px solid #ffb920; border-radius: 50%; background: conic-gradient(from -30deg, #fff3cf 0 60deg, #ffc985 60deg 120deg, #fff3cf 120deg 180deg, #ffc985 180deg 240deg, #fff3cf 240deg 300deg, #ffc985 300deg 360deg); box-shadow: 0 0 0 5px #ffe6a0, 0 0 0 9px #ef7b27, 0 10px 0 #b83e17, inset 0 0 22px rgba(188, 71, 21, .2); will-change: transform; }
.wheel-disc::before { content: ""; position: absolute; z-index: 1; inset: 9px; border: 2px solid rgba(255, 255, 255, .68); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(169, 64, 18, .2); }
.wheel-disc::after { content: ""; position: absolute; z-index: 1; inset: 2px; border: 7px dotted #ffe27a; border-radius: 50%; opacity: .9; }
.wheel-pointer { position: absolute; z-index: 6; top: 5px; left: 50%; width: 34px; height: 47px; transform: translateX(-50%); border: 4px solid #ffd85f; border-radius: 12px 12px 18px 18px; background: linear-gradient(180deg, #fff9df 0 19%, #f04a27 20% 100%); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 3px rgba(113, 24, 8, .44)); pointer-events: none; }
.wheel-labels { position: absolute; inset: 0; pointer-events: none; }
.wheel-labels span { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; justify-items: center; align-content: center; gap: 2px; width: 82px; min-height: 88px; padding: 4px 3px; transform: translate(-50%, -50%) rotate(var(--wheel-angle)) translateY(-92px) rotate(var(--wheel-counter-angle)); transform-origin: center; color: #a3331f; font-size: 10px; font-weight: 900; line-height: 1.15; text-align: center; }
.wheel-labels span img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(126, 46, 20, .2)); }
.wheel-labels span b { display: -webkit-box; max-width: 80px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wheel-labels span small { max-width: 72px; overflow: hidden; color: #d04b2c; font-size: 9px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.wheel-prize-glyph { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .65); color: #da6a2a; font-size: 21px; box-shadow: inset 0 0 0 1px rgba(190, 77, 27, .12); }
.wheel-core { position: absolute; top: 50%; left: 50%; z-index: 4; display: grid; place-content: center; width: 96px; height: 96px; transform: translate(-50%, -50%); border: 6px solid #ffc72d; border-radius: 50%; background: linear-gradient(145deg, #ff8546, #df241b); box-shadow: 0 8px 0 #a72a16, 0 12px 18px rgba(130, 35, 12, .3), inset 0 3px 4px rgba(255, 255, 255, .4); color: #fff; text-align: center; text-shadow: 0 2px 0 rgba(126, 28, 15, .35); }
.wheel-core b { font-size: 25px; line-height: 1.02; }
.wheel-core small { font-size: 15px; font-weight: 900; }
.wheel-disc.is-spinning { animation: wheel-awaiting .72s linear infinite; }
.wheel-disc.is-settling .wheel-labels span { filter: saturate(1.08); }
.stage-object.is-drawing .wheel-core { animation: wheel-core-pulse .7s ease-in-out infinite; }

/* Blind-box collection: the required copy/count remains visible in the visual. */
.blind-collection { display: none; width: 100%; min-height: 315px; padding: 11px 7px 12px; border: 2px solid #ffc782; border-radius: 17px; background: linear-gradient(180deg, #ffe9c5, #fff3de); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .72), 0 7px 0 rgba(176, 72, 24, .18); }
.game-stage[data-template="blind_box"] .blind-collection { display: block; }
.collection-toolbar { display: flex; justify-content: space-between; gap: 8px; margin: -2px 4px 7px; }
.collection-tool { display: inline-flex; align-items: center; gap: 4px; min-height: 31px; padding: 5px 10px; border: 1px solid rgba(217, 130, 54, .35); border-radius: 999px; background: linear-gradient(180deg, #fff4db, #ffd89d); color: #934522; font-size: 11px; font-weight: 800; box-shadow: 0 2px 0 rgba(181, 79, 24, .12); }
.collection-tool span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e85a2b; color: #fff; font-size: 10px; font-weight: 900; }
.collection-title { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; color: #bb3b1e; text-align: center; font-size: 16px; font-weight: 900; }
.collection-title b { color: #e74b21; }
.collection-speaker { color: #e14625; font-size: 14px; letter-spacing: -4px; }
.collection-overflow-note { margin: 2px 10px 0; color: #a26545; font-size: 10px; line-height: 1.35; text-align: center; }
.blind-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 9px; align-items: end; min-height: 172px; padding: 17px 11px 8px; }
.blind-box { position: relative; display: grid; place-items: center; width: min(100%, 100px); min-height: 104px; margin: auto; border: 3px solid #8997ed; border-radius: 8px; background: linear-gradient(145deg, #4d5cdb, #26319c); box-shadow: inset 11px 0 rgba(255, 255, 255, .12), inset -13px 0 rgba(13, 18, 89, .22), 0 9px 8px rgba(84, 40, 159, .18); transform: skewY(-3deg); }
.blind-box:nth-child(3n + 2) { min-height: 122px; transform: translateY(-7px) skewY(-3deg); }
.blind-box::before { content: ""; position: absolute; top: -17px; right: -3px; left: -3px; height: 26px; border: 3px solid #aab4ff; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5264e7, #313cae); transform: skewY(5deg); }
.blind-box i { position: absolute; top: -11px; z-index: 1; color: #f5f5ff; font-size: 10px; font-style: normal; }
.blind-box b { color: #fff; font-size: clamp(25px, 8vw, 42px); font-weight: 900; text-shadow: 0 3px 0 rgba(16, 22, 116, .7); }
.blind-box.is-collected { border-color: #ffd25d; background: linear-gradient(145deg, #6f83ff, #374bd1); box-shadow: 0 0 0 3px rgba(255, 210, 93, .28), inset 11px 0 rgba(255, 255, 255, .16), 0 9px 8px rgba(84, 40, 159, .18); }
.collection-prizes { display: flex; gap: 8px; justify-content: center; height: 74px; }
.collection-prizes span { display: grid; place-items: center; width: 66px; height: 58px; overflow: hidden; border: 2px solid #fff; border-radius: 8px; background: #fff; color: #744b3d; font-size: 10px; text-align: center; box-shadow: 0 3px 8px rgba(129, 64, 30, .12); }
.collection-prizes img { width: 100%; height: 100%; object-fit: cover; }
.collection-progress { display: flex; align-items: center; gap: 8px; margin: 1px 12px 8px; color: #9e583d; font-size: 11px; }
.collection-progress > span { flex: 0 0 auto; }
.collection-progress > i { flex: 1; height: 7px; overflow: hidden; border-radius: 99px; background: #f4cda8; }
.collection-progress > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f26b2c, #e6311d); transition: width .3s ease; }
.collection-cta { display: flex; align-items: center; justify-content: center; gap: 4px; width: min(100% - 24px, 320px); height: 39px; margin: 1px auto 0; border: 0; border-radius: 999px; background: #f4b9a8; color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 3px 0 rgba(191, 91, 61, .16); }
.collection-cta span { font-size: 20px; line-height: 1; }
.collection-cta.is-ready { background: linear-gradient(135deg, #ef5b28, #d52a21); color: #fff9e9; box-shadow: 0 4px 0 rgba(155, 42, 25, .24), 0 7px 12px rgba(164, 45, 25, .16); }
.collection-cta:disabled { cursor: not-allowed; opacity: .62; filter: grayscale(.2); box-shadow: none; }

/* Egg shelf */
.egg-art { display: none; position: relative; width: 100%; height: 310px; padding-top: 12px; }
.game-stage[data-template="egg"] .egg-art { display: block; }
.egg-art::before { content: "砸开金蛋，看看今天的好运"; position: absolute; top: 0; right: 0; left: 0; color: #ac3b1e; text-align: center; font-size: 16px; font-weight: 900; }
.egg-shelf { position: absolute; right: 4%; bottom: 25px; left: 4%; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 20px 15px; height: 237px; padding: 23px 20px 18px; border: 7px solid #e98737; border-radius: 13px; background: linear-gradient(180deg, #6f1a4a, #3f0e36); box-shadow: inset 0 0 0 4px #ffa958, 0 9px 0 rgba(148, 54, 18, .22); }
.egg-shelf::before, .egg-shelf::after { content: ""; position: absolute; right: 0; left: 0; height: 7px; background: #9c3e68; box-shadow: 0 3px 0 rgba(255, 158, 91, .5); }
.egg-shelf::before { top: 103px; }
.egg-shelf::after { bottom: 72px; }
.egg { position: relative; z-index: 1; display: block; width: 55px; height: 72px; margin: auto; border-radius: 52% 48% 46% 46% / 44% 47% 53% 56%; background: linear-gradient(145deg, #fff6a3, #ffd33b 50%, #e26c22); box-shadow: inset 9px 0 11px rgba(255, 255, 255, .24), inset -10px -7px 13px rgba(115, 24, 18, .22), 0 5px 7px rgba(46, 2, 22, .32); }
.egg::after { content: ""; position: absolute; top: 16px; left: 12px; width: 16px; height: 23px; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: rotate(24deg); }
.egg-cracker { position: absolute; right: 6%; bottom: 3px; display: grid; place-items: center; width: 60px; height: 48px; border: 4px solid #fbb440; border-radius: 12px; background: #ec5633; color: #fff5d2; font-size: 20px; font-weight: 900; box-shadow: 0 5px 0 #a8361c; }

/* Red packet */
.packet-art { display: none; position: relative; width: 100%; height: 315px; padding: 9px 5px; }
.game-stage[data-template="red_packet"] .packet-art { display: block; }
.packet-banner { margin: 0 auto 9px; color: #b53120; text-align: center; font-size: 16px; font-weight: 900; }
.packet-banner b { color: #e34224; font-size: 22px; }
.packet-balance { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; margin: 0 auto 14px; padding: 14px 16px 12px; border: 2px solid #efd3a6; border-radius: 15px; background: #fff; box-shadow: 0 5px 0 rgba(168, 79, 31, .12); }
.packet-balance > span { grid-column: 1 / -1; color: #57423f; font-size: 13px; }
.packet-balance > strong { grid-column: 1; grid-row: 2; color: #dc402a; font-size: 28px; line-height: 1; }
.packet-balance > strong b { font-size: 31px; }
.packet-balance > i { grid-column: 1; grid-row: 3; position: relative; display: block; align-self: end; width: min(100%, 170px); height: 9px; overflow: hidden; border-radius: 99px; background: #ffe7df; }
.packet-balance > i b { display: block; width: 22%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9372, #e94225); }
.packet-balance small { position: absolute; right: 13px; bottom: 12px; color: #c45d30; font-size: 10px; }
.packet-withdraw { grid-column: 2; align-self: center; min-width: 73px; height: 31px; padding: 0 11px; border: 1px solid #ef8a67; border-radius: 999px; background: #fff4ee; color: #c9482b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.packet-withdraw span { margin-right: 3px; font-size: 14px; }
.packet-withdraw.is-ready { border-color: #d63824; background: linear-gradient(135deg, #f05c38, #d72a22); color: #fff; box-shadow: 0 3px 0 rgba(153, 42, 28, .18); }
.packet-withdraw:disabled { cursor: not-allowed; opacity: .55; }
.packet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 22px 0; }
.packet-cards span { position: relative; display: grid; place-items: center; height: 143px; border: 2px solid #ffd38a; border-radius: 11px; background: linear-gradient(180deg, #ed3b32, #b81c32); box-shadow: inset 0 0 0 2px rgba(255, 228, 150, .44), 0 8px 0 rgba(143, 45, 39, .2); color: #fff0c6; font-size: 31px; font-weight: 900; }
.packet-cards span::before { content: ""; position: absolute; top: 44%; right: 0; left: 0; border-top: 2px solid #ffe2a4; transform: rotate(-11deg); }
.packet-cards span::after { content: "¥"; position: absolute; top: 42%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translate(-50%, -50%); border: 2px solid #ffe7a9; border-radius: 50%; background: #fff1bb; color: #ae2e2c; font-size: 21px; }

/* Capsule machine */
.capsule-art { display: none; position: relative; width: 100%; height: 320px; padding-top: 5px; }
.game-stage[data-template="capsule"] .capsule-art { display: block; }
.capsule-header { color: #a93722; text-align: center; font-size: 18px; font-weight: 900; }
.capsule-window { position: absolute; top: 40px; right: 9%; left: 9%; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 6px; height: 183px; padding: 19px; border: 10px solid #ed9436; border-radius: 19px; background: radial-gradient(circle at 50% 28%, #ffb56e, #d7482c 74%); box-shadow: inset 0 0 0 4px #ffd477, 0 7px 0 rgba(156, 57, 21, .3); }
.capsule-window::before { content: ""; position: absolute; right: 0; bottom: 48%; left: 0; height: 6px; background: rgba(119, 33, 58, .4); }
.capsule-window span { position: relative; z-index: 1; display: block; width: 49px; height: 49px; margin: auto; border-radius: 50%; background: linear-gradient(145deg, #ff8c91, #d62c45); box-shadow: inset 0 -11px rgba(120, 21, 45, .22), 0 4px 5px rgba(86, 19, 28, .25); }
.capsule-window span:nth-child(2), .capsule-window span:nth-child(5) { background: linear-gradient(145deg, #fff19b, #f6aa13); }
.capsule-window span:nth-child(3), .capsule-window span:nth-child(6) { background: linear-gradient(145deg, #8dd4ff, #2578db); }
.capsule-controls { position: absolute; right: 5%; bottom: 5px; left: 5%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; min-height: 67px; padding: 8px 13px; border: 4px solid #ed8c2e; border-radius: 15px; background: linear-gradient(#ffcb57, #eb762d); box-shadow: 0 6px 0 rgba(143, 54, 21, .3); }
.capsule-controls i { display: block; width: 35px; height: 35px; border: 4px solid #b84a2d; border-radius: 50%; background: #ff3d68; box-shadow: inset 0 3px rgba(255, 255, 255, .52); }
.capsule-controls b { color: #fff; font-size: 20px; text-align: center; }
.capsule-controls em { padding: 4px 7px; border-radius: 6px; background: #ef3c4b; color: #fff; font-size: 13px; font-style: normal; }

/* Flip-card collection */
.flip-collection { display: none; position: relative; width: 100%; min-height: 314px; padding: 12px 8px; border: 2px solid #f7b344; border-radius: 17px; background: linear-gradient(180deg, #fff4d6, #ffe7c1); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .73), 0 8px 0 rgba(117, 31, 126, .2); }
.game-stage[data-template="card_flip"] .flip-collection { display: block; }
.flip-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; min-height: 211px; max-height: 246px; overflow: hidden; padding: 5px 12px 0; }
.flip-deck span { position: relative; display: grid; place-items: center; min-height: 84px; border: 3px solid #f7c66c; border-radius: 12px; background: linear-gradient(160deg, #782cd1, #c62b87 75%); color: #fff1be; font-size: clamp(19px, 6vw, 25px); font-weight: 900; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 6px 0 rgba(80, 21, 126, .24); }
.flip-deck span.is-collected { border-color: #fff0a1; background: linear-gradient(160deg, #9b50e2, #d73893 75%); box-shadow: 0 0 0 3px rgba(255, 235, 151, .24), inset 0 0 0 2px rgba(255, 255, 255, .3), 0 6px 0 rgba(80, 21, 126, .24); }
.flip-deck span::before, .flip-deck span::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255, 232, 158, .7); border-radius: 8px; }
.flip-deck span::after { inset: 22px 18px; border-radius: 50%; }
.flip-goal { display: flex; align-items: center; justify-content: space-between; min-height: 37px; margin-top: 8px; padding: 7px 14px; border-radius: 8px; background: rgba(255, 246, 219, .85); color: #8c3d28; font-size: 12px; }
.flip-goal b { font-size: 14px; }

/* Live participation and content panels */
.participant-strip { margin-top: 14px; padding: 14px 14px 12px; border: 2px solid rgba(255, 237, 205, .76); border-radius: 17px; background: rgba(255, 247, 226, .96); box-shadow: 0 6px 0 rgba(133, 25, 23, .18); }
.participant-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.participant-strip-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.participant-strip-head strong { color: #8c3326; font-size: 14px; }
.participant-strip-head b { color: #c85a35; font-size: 12px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e83e2d; box-shadow: 0 0 0 4px rgba(232, 62, 45, .13); animation: pulse 1.8s ease-in-out infinite; }
.participant-strip-head button, .text-link { border: 0; background: none; color: #dc4d35; font-size: 12px; white-space: nowrap; }
.avatar-row { position: relative; display: flex; align-items: center; min-height: 46px; margin-top: 11px; padding: 2px 48px 2px 3px; overflow: hidden; }
.avatar-row img { flex: 0 0 38px; width: 38px; height: 38px; margin-right: -5px; border: 2px solid #fff7e9; border-radius: 50%; object-fit: cover; background: #f2baa6; box-shadow: 0 2px 4px rgba(120, 35, 19, .14); }
.avatar-row img:last-child { margin-right: 0; }
.avatar-more { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #fff7e9; border-radius: 50%; background: #f5d2ae; color: #9c5d45; font-size: 12px; }
.content-sheet { margin-top: 15px; padding: 0 17px 30px; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -4px 18px rgba(119, 16, 16, .16); }
.content-tabs { display: flex; height: 60px; border-bottom: 1px solid #f0e8e3; }
.content-tab { position: relative; flex: 1; border: 0; background: none; color: #999497; font-size: 15px; font-weight: 700; }
.content-tab.is-active { color: #262225; font-weight: 900; }
.content-tab.is-active::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 40px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #ed3c2e; }
.tab-panel { padding-top: 20px; }
.about-lead { margin: 0 0 16px; color: #49393a; font-size: 16px; line-height: 1.55; }
.highlight-box { padding: 17px 15px; border: 1px solid #f0ddb7; border-radius: 10px; background: #fff6dc; }
.box-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 13px; color: #80551d; }
.box-heading span { font-size: 18px; font-weight: 900; }
.box-heading small { color: #bd8b47; font-size: 9px; letter-spacing: .17em; }
.highlight-box ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.highlight-box li { position: relative; display: block; padding-left: 45px; color: #876b3b; font-size: 13px; line-height: 1.45; }
.highlight-box li::before { position: absolute; top: 0; left: 0; counter-increment: step; content: counter(step) "、"; color: #ad6d1f; font-weight: 900; }
.highlight-box li b { display: block; margin: 0 0 2px; color: #765016; font-size: 14px; }
.goal-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid #f0d7be; border-radius: 11px; background: #fff7ed; }
.goal-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 50%; background: #e96740; color: #fff; font-size: 16px; }
.goal-card > div { min-width: 0; flex: 1; }
.goal-card strong { color: #8b402d; font-size: 14px; }
.goal-card p { margin: 3px 0 0; color: #a77968; font-size: 11px; }
.goal-count { white-space: nowrap; }
.teaser-card { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 10px; border: 1px solid #eee4e0; border-radius: 11px; background: #fafafa; }
.teaser-art { display: grid; place-items: center; flex: 0 0 49px; width: 49px; height: 49px; border-radius: 9px; background: linear-gradient(145deg, #f16445, #f6ac52); color: #fff; font-size: 24px; font-weight: 900; }
.teaser-card > div { min-width: 0; flex: 1; }
.teaser-card small { display: block; color: #aaa; font-size: 10px; }
.teaser-card strong { display: block; overflow: hidden; margin-top: 2px; color: #30292b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.teaser-card p { margin: 3px 0 0; color: #aaa; font-size: 10px; }
.teaser-card button { flex: 0 0 auto; border: 0; background: none; color: #e44836; font-size: 11px; font-weight: 800; }
.rule-summary { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 2px; }
.rule-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #f2ad32; color: #fff; font-size: 13px; font-weight: 900; }
.rule-summary div { min-width: 0; flex: 1; }
.rule-summary strong { font-size: 14px; }
.rule-summary p { margin: 3px 0 0; color: #999; font-size: 11px; line-height: 1.45; }
.rule-summary button { border: 0; background: none; color: #e44836; font-size: 25px; line-height: 1; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.panel-heading > div > span { color: #ed7669; font-size: 9px; font-weight: 900; letter-spacing: .19em; }
.panel-heading h2 { margin: 4px 0 0; font-size: 22px; }
.panel-heading > b { color: #999; font-size: 11px; font-weight: 500; white-space: nowrap; }
.panel-heading > b strong { color: #ed4536; font-size: 24px; }
.participation-log { display: grid; gap: 8px; margin-top: 15px; padding: 12px; border: 1px solid #f1e5df; border-radius: 11px; background: #fffafa; }
.participation-log:empty { display: none; }
.participation-log-head { display: flex; align-items: center; justify-content: space-between; color: #8b3730; font-size: 13px; font-weight: 900; }
.participation-log-head small { color: #b59690; font-size: 10px; font-weight: 600; }
.participation-log-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding-top: 7px; border-top: 1px solid #f3e9e4; color: #6f5e5c; font-size: 11px; }
.participation-log-item:first-of-type { border-top: 0; }
.participation-log-item img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.participation-log-item b { min-width: 0; flex: 1; overflow: hidden; color: #5b4744; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.participation-log-item time { color: #b3a09b; font-size: 10px; white-space: nowrap; }
.prize-list { display: grid; gap: 0; margin-top: 14px; overflow: hidden; border-radius: 12px; background: #fafafa; }
.prize-card { display: flex; align-items: center; gap: 10px; min-height: 85px; padding: 11px 10px; border-bottom: 1px solid #eee; }
.prize-card:last-child { border-bottom: 0; }
.prize-rank { flex: 0 0 21px; color: #aaa; font-size: 11px; font-weight: 900; text-align: center; }
.prize-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; overflow: hidden; border-radius: 10px; background: var(--prize-bg, #e78954); color: #fff; font-size: 25px; font-weight: 900; }
.prize-icon img { width: 100%; height: 100%; object-fit: cover; }
.prize-card > div { min-width: 0; }
.prize-empty { padding: 35px 14px; color: #aa9894; text-align: center; font-size: 13px; }
.prize-glyph { display: block; line-height: 1; }
.collection-prizes img { width: 100%; height: 100%; object-fit: cover; }
.prize-card strong { display: block; color: #2a2526; font-size: 14px; line-height: 1.38; }
.prize-card small { display: block; margin-top: 4px; color: #999; font-size: 11px; line-height: 1.4; }
.prize-card .prize-validity { color: #bd6a4d; font-variant-numeric: tabular-nums; }
.panel-footnote { margin: 13px 0 0; color: #aaa; text-align: center; font-size: 11px; }
.winner-list { display: grid; gap: 10px; margin-top: 15px; }
.winner-group { overflow: hidden; border: 1px solid #f0dfd9; border-radius: 11px; background: #fffafa; }
.winner-group-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 8px 11px; background: #fff0ed; color: #c94031; font-size: 13px; font-weight: 900; }
.winner-group-head small { color: #c68e85; font-size: 10px; font-weight: 600; }
.winner-avatars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 7px; padding: 12px 10px 14px; }
.winner-person { display: grid; justify-items: center; gap: 4px; width: 100%; min-width: 0; color: #807171; font-size: 10px; }
.winner-person img { width: 39px; height: 39px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 5px rgba(109, 44, 40, .14); }
.winner-person b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-person time { overflow: hidden; max-width: 53px; color: #b0a3a1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.winner-person:nth-child(n + 6) { display: none; }
.winner-group.is-expanded .winner-person { display: grid; }
.winner-expand { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-top: 1px solid #f1e1db; background: #fff; color: #c64435; font-size: 12px; font-weight: 800; }
.winner-expand i { font-size: 15px; font-style: normal; transition: transform .2s ease; }
.winner-expand[aria-expanded="true"] i { transform: rotate(180deg); }
.record-empty { display: grid; place-items: center; padding: 48px 0 36px; color: #999; text-align: center; }
.record-empty span { margin-bottom: 9px; color: #efb249; font-size: 40px; }
.record-empty strong { color: #5b5052; font-size: 14px; }
.record-empty p { margin: 5px 0 0; font-size: 11px; }
.record-result { margin-top: 13px; padding: 14px; border-radius: 11px; background: #fff6dd; color: #7e5d27; }
.record-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #e24b36; font-size: 11px; }
.record-result-head time { color: #aaa; font-size: 10px; }
.record-result > strong { font-size: 17px; }
.record-result > p { margin: 6px 0 0; color: #9a8461; font-size: 11px; line-height: 1.45; }
.record-cash-withdraw { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #f15a36, #d92f22); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 4px 0 rgba(153, 42, 28, .2); }

.cash-withdraw-modal { position: fixed; z-index: 55; inset: 0; display: grid; place-items: center; padding: 20px; }
.cash-withdraw-panel { position: relative; z-index: 1; width: min(100%, 390px); padding: 22px 20px 20px; border: 2px solid #ffe39a; border-radius: 20px; background: linear-gradient(180deg, #fffaf0, #fff0d2); box-shadow: 0 24px 70px rgba(77, 0, 4, .42); }
.cash-withdraw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cash-withdraw-head span { color: #df6b3f; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.cash-withdraw-head h2 { margin: 4px 0 6px; color: #682b22; font-size: 22px; }
.cash-withdraw-head p { margin: 0; color: #9a735d; font-size: 12px; line-height: 1.5; }
.cash-withdraw-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.cash-withdraw-methods label { position: relative; }
.cash-withdraw-methods input { position: absolute; opacity: 0; }
.cash-withdraw-methods span { display: grid; place-items: center; min-height: 42px; border: 1px solid #edcdb3; border-radius: 10px; background: rgba(255,255,255,.7); color: #8d6251; font-size: 13px; font-weight: 800; }
.cash-withdraw-methods input:checked + span { border-color: #e3482d; background: #fff0e5; color: #c73824; box-shadow: inset 0 0 0 1px #e3482d; }
.cash-withdraw-upload, .cash-withdraw-account { display: grid; gap: 7px; margin-top: 14px; color: #765347; font-size: 12px; font-weight: 800; }
.cash-withdraw-upload input[type=file] { width: 100%; padding: 10px; border: 1px dashed #e4b898; border-radius: 10px; background: rgba(255,255,255,.65); color: #9b7766; font-size: 11px; }
.cash-withdraw-upload small { color: #ad8d7d; font-size: 10px; font-weight: 500; }
.cash-withdraw-upload img { width: 120px; height: 120px; margin: 2px auto 0; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 3px 12px rgba(117, 54, 25, .12); }
.cash-withdraw-account input { min-height: 40px; padding: 9px 10px; border: 1px solid #edcfb9; border-radius: 9px; background: rgba(255,255,255,.75); color: #60483e; }
.cash-withdraw-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 13px; border-radius: 10px; background: rgba(255,255,255,.56); color: #a2735e; font-size: 12px; }
.cash-withdraw-summary strong { color: #c73824; font-size: 22px; }
.cash-withdraw-summary b { font-weight: 950; }
.cash-withdraw-submit { width: 100%; min-height: 46px; margin-top: 12px; border: 0; border-radius: 999px; background: linear-gradient(105deg, #ff7546, #e9271c); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 5px 0 #b92e1c; }
.cash-withdraw-submit:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }

.share-rail { position: fixed; z-index: 5; right: max(8px, calc((100vw - 560px) / 2 - 4px)); bottom: calc(155px + var(--safe-bottom)); display: grid; justify-items: center; }
.share-rail button { display: grid; place-items: center; width: 51px; height: 51px; border: 0; border-radius: 50%; background: #fff; color: #e83b32; box-shadow: 0 4px 12px rgba(105, 20, 22, .22); font-size: 25px; }
.share-rail span { display: grid; place-items: center; width: 70px; height: 25px; margin-top: -5px; border-radius: 999px; background: #fff; color: #a55348; box-shadow: 0 3px 10px rgba(105, 20, 22, .12); font-size: 11px; }
.bottom-bar { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; gap: 12px; width: min(560px, 100%); margin: auto; padding: 14px 20px calc(14px + var(--safe-bottom)); border-radius: 27px 27px 0 0; background: rgba(255, 255, 255, .97); box-shadow: 0 -5px 22px rgba(106, 13, 16, .22); }
.bottom-bar button { min-width: 0; height: 55px; border: 0; border-radius: 999px; font-size: 17px; font-weight: 900; white-space: nowrap; }
.bottom-bar button b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; background: #ffe9e6; color: #e74b42; }
.bottom-secondary .info-icon { display: grid; place-items: center; width: 22px; height: 22px; margin: 0; border: 2px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 15px; font-weight: 900; line-height: 1; }
.bottom-primary { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1.08; background: linear-gradient(110deg, #ff714b, #ed1f1b); color: #fff; box-shadow: 0 6px 12px rgba(229, 39, 30, .2); }
.bottom-primary span { font-size: 23px; line-height: 1; }
.bottom-primary:disabled { cursor: not-allowed; opacity: .62; filter: grayscale(.22); box-shadow: none; }
.toast { position: fixed; z-index: 30; right: 18px; bottom: calc(104px + var(--safe-bottom)); left: 18px; width: fit-content; max-width: calc(100% - 36px); margin: auto; padding: 10px 15px; border-radius: 999px; background: rgba(46, 20, 22, .92); color: #fff; box-shadow: 0 5px 18px rgba(0, 0, 0, .24); font-size: 12px; text-align: center; }
.toast[hidden] { display: none; }

.prize-celebration, .my-prizes-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(61, 5, 9, .72); backdrop-filter: blur(3px); }
.celebration-panel, .my-prizes-panel { position: relative; z-index: 1; width: min(100%, 368px); border: 2px solid #ffe39a; border-radius: 22px; background: linear-gradient(180deg, #fff9e8, #fff1d2); box-shadow: 0 24px 70px rgba(77, 0, 4, .44), inset 0 0 0 4px rgba(255, 255, 255, .48); }
.celebration-panel { overflow: hidden; padding: 35px 24px 24px; text-align: center; animation: celebration-enter .38s cubic-bezier(.16, 1, .3, 1); }
.modal-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(121, 45, 29, .1); color: #9a5d4b; font-size: 27px; line-height: 1; }
.celebration-panel > .modal-close { position: absolute; z-index: 4; top: 10px; right: 10px; }
.celebration-rays { position: absolute; top: -146px; left: 50%; width: 380px; height: 380px; transform: translateX(-50%); border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 190, 48, .26) 0 12deg, transparent 12deg 24deg); animation: celebration-rays 16s linear infinite; }
.celebration-confetti i { position: absolute; z-index: 2; top: 8%; width: 8px; height: 17px; border-radius: 3px; background: #f0462e; transform: rotate(20deg); animation: confetti-fall 1.7s ease-in-out infinite; }
.celebration-confetti i:nth-child(1) { left: 10%; }
.celebration-confetti i:nth-child(2) { left: 24%; top: 17%; background: #f6b82d; animation-delay: .25s; }
.celebration-confetti i:nth-child(3) { left: 39%; top: 6%; background: #ef728e; animation-delay: .5s; }
.celebration-confetti i:nth-child(4) { right: 36%; top: 15%; background: #59b8ac; animation-delay: .15s; }
.celebration-confetti i:nth-child(5) { right: 19%; background: #f6b82d; animation-delay: .4s; }
.celebration-confetti i:nth-child(6) { right: 8%; top: 19%; background: #ee5137; animation-delay: .65s; }
.celebration-kicker { position: relative; z-index: 2; display: inline-block; padding: 6px 15px; border-radius: 999px; background: #e93622; color: #fff5d2; font-size: 13px; font-weight: 900; letter-spacing: .12em; box-shadow: 0 4px 0 #b82316; }
.celebration-prize-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 108px; height: 108px; margin: 20px auto 12px; overflow: hidden; border: 5px solid #fff; border-radius: 25px; background: linear-gradient(145deg, #ffd66d, #ff8144); color: #fff; font-size: 47px; font-weight: 950; box-shadow: 0 0 0 5px #ffc742, 0 12px 22px rgba(169, 56, 20, .24); transform: rotate(-3deg); }
.celebration-prize-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff8e8; }
.celebration-level { position: relative; z-index: 2; display: block; color: #d34224; font-size: 13px; font-weight: 900; }
.celebration-panel h2 { position: relative; z-index: 2; margin: 6px 0 8px; color: #9c2619; font-size: 25px; line-height: 1.25; }
.celebration-panel p { position: relative; z-index: 2; margin: 0 0 18px; color: #9a735d; font-size: 13px; line-height: 1.5; }
.celebration-panel .celebration-validity { margin: -7px 0 16px; color: #b8563d; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.celebration-primary, .my-prizes-done { position: relative; z-index: 2; display: grid; place-items: center; width: 100%; min-height: 49px; border: 0; border-radius: 999px; background: linear-gradient(105deg, #ff7546, #e9271c); color: #fff; box-shadow: 0 5px 0 #b92e1c; font-size: 16px; font-weight: 900; text-decoration: none; }
.celebration-secondary { position: relative; z-index: 2; min-height: 42px; margin-top: 10px; padding: 7px 20px; border: 0; background: transparent; color: #a96d58; font-size: 13px; font-weight: 800; }
.my-prizes-panel { max-height: min(640px, calc(100dvh - 44px)); overflow: auto; padding: 21px 18px 18px; }
.my-prizes-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.my-prizes-head span { color: #df6b3f; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.my-prizes-head h2 { margin: 2px 0 0; color: #682b22; font-size: 23px; }
.my-prizes-list { display: grid; gap: 10px; }
.my-prize-empty { padding: 34px 10px; color: #a88c82; text-align: center; font-size: 13px; line-height: 1.7; }
.my-prize-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid #f1d5c2; border-radius: 13px; background: rgba(255, 255, 255, .72); }
.my-prize-item-icon { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: #ffdd91; color: #c94a27; font-size: 22px; font-weight: 900; }
.my-prize-item-icon img { width: 100%; height: 100%; object-fit: contain; }
.my-prize-item div { min-width: 0; }
.my-prize-item strong { display: block; overflow: hidden; color: #6b3027; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.my-prize-item time { display: block; margin-top: 4px; color: #aa938a; font-size: 10px; }
.my-prize-item div > small { display: block; margin-top: 3px; color: #b5684f; font-size: 10px; line-height: 1.35; }
.my-prize-item em { color: #d34428; font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; }
.my-prize-item > a, .my-prize-item > button { grid-column: 2 / 4; display: grid; place-items: center; min-height: 38px; border: 0; border-radius: 999px; background: #e43d29; color: #fff; font-size: 12px; font-weight: 900; text-decoration: none; }
.my-prizes-done { margin-top: 17px; }
.my-withdrawal-section { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; padding-top: 13px; border-top: 1px solid #efd9c9; }
.my-withdrawal-section > strong { color: #8c4f3e; font-size: 13px; }
.my-withdrawal-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.72); }
.my-withdrawal-item span { min-width: 0; }
.my-withdrawal-item b, .my-withdrawal-item small { display: block; }
.my-withdrawal-item b { color: #6b3027; font-size: 12px; }
.my-withdrawal-item small { margin-top: 3px; color: #aa938a; font-size: 10px; }
.my-withdrawal-item em { font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; }
.withdrawal-status-pending { color: #c2742b; }
.withdrawal-status-approved { color: #268655; }
.withdrawal-status-rejected { color: #b84236; }

/* Collection cards already carry their own action inside the illustrated
   panel (see the reference component). Keep the sticky action bar for the
   instant-reveal templates, but let card campaigns finish in one visible CTA. */
.campaign-page[data-template="blind_box"] .bottom-bar,
.campaign-page[data-template="card_flip"] .bottom-bar { display: none; }
.campaign-page[data-template="blind_box"] .campaign-shell,
.campaign-page[data-template="card_flip"] .campaign-shell { padding-bottom: calc(34px + var(--safe-bottom)); }

/* Template colourways from the reference examples. */
.campaign-page[data-template="blind_box"] { --page-bg: #cf250f; --page-bg-deep: #ab0e0b; --page-highlight: #ffb44d; }
.campaign-page[data-template="egg"] { --page-bg: #bb100a; --page-bg-deep: #8b070a; --page-highlight: #ffb13b; }
.campaign-page[data-template="red_packet"] { --page-bg: #e32418; --page-bg-deep: #b60d12; --page-highlight: #ffbd45; }
.campaign-page[data-template="capsule"] { --page-bg: #c52d0d; --page-bg-deep: #99100b; --page-highlight: #ffaf3c; }
.campaign-page[data-template="card_flip"] { --page-bg: #3c0ab6; --page-bg-deep: #230276; --page-highlight: #f7bc40; }
.campaign-page[data-template="card_flip"] .hero-copy h1 { text-shadow: 0 4px 0 #281076, 0 0 15px rgba(255, 229, 135, .45); }
.campaign-page[data-template="card_flip"] .content-sheet { box-shadow: 0 -4px 18px rgba(34, 4, 106, .28); }
.campaign-page[data-template="card_flip"] .stage-draw-button { background: linear-gradient(110deg, #ff734b, #ed1f1c); }

@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.16) rotate(18deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.9); opacity: .72; } 50% { transform: scale(1.16); opacity: 1; } }
@keyframes wheel-awaiting { to { transform: rotate(360deg); } }
@keyframes wheel-core-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes celebration-enter { from { opacity: 0; transform: translateY(22px) scale(.82); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes celebration-rays { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes confetti-fall { 0%, 100% { transform: translateY(-9px) rotate(0); opacity: .35; } 50% { transform: translateY(20px) rotate(110deg); opacity: 1; } }
@keyframes reveal-box { 0%, 100% { transform: translateY(0) rotate(0); } 28% { transform: translateY(4px) rotate(-7deg); } 58% { transform: translateY(-6px) rotate(7deg); } }
@keyframes reveal-egg { 0%, 100% { transform: rotate(0); } 24% { transform: rotate(-7deg); } 48% { transform: rotate(8deg); } 72% { transform: rotate(-5deg); } }
@keyframes reveal-packet { 0%, 100% { transform: translateY(0); } 42% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes reveal-capsule { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg) translateY(3px); } 60% { transform: rotate(4deg) translateY(-3px); } }
@keyframes reveal-flip { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg) scale(1.04); } }
.stage-object.revealing .blind-collection { animation: reveal-box .82s ease-in-out; }
.stage-object.revealing .egg-shelf { animation: reveal-egg .78s ease-in-out; }
.stage-object.revealing .packet-art { animation: reveal-packet .84s ease-in-out; }
.stage-object.revealing .capsule-art { animation: reveal-capsule .82s ease-in-out; }
.stage-object.revealing .flip-deck span { animation: reveal-flip .85s ease-in-out; }
.stage-object.revealing .flip-deck span:nth-child(2) { animation-delay: .06s; }
.stage-object.revealing .flip-deck span:nth-child(3) { animation-delay: .12s; }
.stage-object.revealing .flip-deck span:nth-child(4) { animation-delay: .18s; }
.stage-object.revealing .flip-deck span:nth-child(5) { animation-delay: .24s; }
.stage-object.revealing .flip-deck span:nth-child(6) { animation-delay: .3s; }

@media (max-width: 395px) {
  .campaign-shell { padding-right: 11px; padding-left: 11px; }
  .campaign-head { padding-right: 6px; padding-left: 6px; }
  .brand-lockup strong { font-size: 19px; }
  .brand-badge { display: none; }
  .header-action { padding-right: 11px; padding-left: 11px; font-size: 12px; }
  .participation-count { font-size: 12px; }
  .hero-copy h1 { font-size: 34px; }
  .game-board { padding-right: 10px; padding-left: 10px; }
  .board-ribbon { width: 87%; font-size: 16px; }
  /* The wheel is visually scaled but keeps its full layout box. Reserve enough
     height so the caption never enters the wheel's painted area on 375px. */
  .game-stage { min-height: 340px; }
  .stage-object { height: 306px; }
  .wheel-art { transform: scale(.9); transform-origin: center; }
  .blind-collection, .flip-collection { height: 293px; transform: scale(.96); transform-origin: center; }
  .blind-collection { min-height: 0; padding-top: 8px; padding-bottom: 7px; }
  .blind-boxes { height: 126px; min-height: 126px; gap: 8px 7px; padding: 9px 8px 4px; }
  .blind-box { min-height: 76px; border-width: 2px; }
  .blind-box:nth-child(3n + 2) { min-height: 88px; transform: translateY(-4px) skewY(-3deg); }
  .blind-box::before { top: -13px; height: 20px; border-width: 2px; }
  .blind-box i { top: -9px; font-size: 9px; }
  .blind-box b { font-size: clamp(22px, 7vw, 34px); }
  .collection-prizes { height: 45px; gap: 5px; }
  .collection-prizes span { width: 51px; height: 40px; border-width: 1px; border-radius: 6px; font-size: 8px; }
  .collection-overflow-note { margin-top: 1px; font-size: 9px; }
  .collection-progress { gap: 6px; margin-top: 1px; margin-bottom: 5px; font-size: 10px; }
  .collection-cta { height: 30px; margin-top: 0; font-size: 14px; }
  .collection-cta span { font-size: 18px; }
  .flip-collection { padding-top: 8px; padding-bottom: 7px; }
  .flip-deck { min-height: 164px; max-height: 164px; gap: 7px 9px; padding: 3px 9px 0; }
  .flip-deck span { min-height: 68px; border-width: 2px; border-radius: 10px; font-size: clamp(17px, 5.5vw, 22px); }
  .flip-deck span::before { inset: 6px; }
  .flip-deck span::after { inset: 16px 13px; }
  .flip-goal { min-height: 30px; margin-top: 5px; padding: 4px 10px; font-size: 10px; }
  .flip-goal b { font-size: 12px; }
  .egg-art, .packet-art, .capsule-art { transform: scale(.88); transform-origin: center; }
  .packet-cards { padding-right: 14px; padding-left: 14px; }
  .packet-cards span { height: 132px; }
  .content-sheet { padding-right: 14px; padding-left: 14px; }
  .winner-avatars { gap: 11px 4px; padding-right: 7px; padding-left: 7px; }
  .content-tab { font-size: 14px; }
  .highlight-box li { padding-left: 40px; }
  .campaign-page:not([data-template="blind_box"]):not([data-template="card_flip"]) .game-stage .stage-note { font-size: 11px; }
  .campaign-page:not([data-template="blind_box"]):not([data-template="card_flip"]) .game-board > .draw-availability { min-height: 64px; margin-top: 10px; }
  .bottom-bar { gap: 8px; padding-right: 15px; padding-left: 15px; }
  .bottom-bar button { font-size: 15px; }
}

@media (max-width: 350px) {
  /* Six 38px avatars plus the pinned affordance fit the 266px content rail. */
  .avatar-row { padding-right: 52px; }
  .avatar-more { right: 2px; width: 39px; height: 39px; font-size: 11px; }
  .draw-availability { grid-template-columns: 34px minmax(0, 1fr); min-height: 64px; margin-top: 8px; padding: 9px 10px; }
  .eligibility-icon { width: 34px; height: 34px; }
  .eligibility-count { grid-column: 2; justify-self: start; margin-top: -1px; }
  .stage-note { font-size: 11px; }
}

/* Collection cards contain their own CTA and intentionally use the taller
   illustrated board; the compact instant-reveal stage above must not squeeze
   these two templates. */
@media (max-width: 395px) {
  .campaign-page[data-template="blind_box"] .game-stage,
  .campaign-page[data-template="card_flip"] .game-stage { min-height: 340px; }
  .campaign-page[data-template="blind_box"] .stage-object,
  .campaign-page[data-template="card_flip"] .stage-object { height: 313px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 图六 · 盲盒/翻牌共用集卡组件
   Keep the interaction copy configurable, while matching the reference's
   quiet white card surface, paired warm controls and disabled card states. */
.campaign-page[data-template="blind_box"] .collection-toolbar,
.campaign-page[data-template="card_flip"] .collection-toolbar {
  gap: 10px;
  margin: 0 2px 10px;
}
.campaign-page[data-template="blind_box"] .collection-tool,
.campaign-page[data-template="card_flip"] .collection-tool {
  flex: 1;
  justify-content: center;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #f4cb82;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7e5 0%, #ffc06d 100%);
  color: #934218;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(190, 91, 26, .18), inset 0 1px rgba(255,255,255,.9);
}
.campaign-page[data-template="blind_box"] .collection-tool span,
.campaign-page[data-template="card_flip"] .collection-tool span {
  display: none;
}
.campaign-page[data-template="blind_box"] .collection-title,
.campaign-page[data-template="card_flip"] .collection-title {
  justify-content: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 0 6px;
  color: #3d3634;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
}
.campaign-page[data-template="blind_box"] .collection-title b,
.campaign-page[data-template="card_flip"] .collection-title b { color: inherit; }
.campaign-page[data-template="blind_box"] .collection-speaker,
.campaign-page[data-template="card_flip"] .collection-speaker {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #ed5429;
  color: #fff;
  font-size: 13px;
  letter-spacing: -2px;
}
.campaign-page[data-template="blind_box"] .collection-prizes.is-card-set {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: auto;
  min-height: 86px;
  margin: 5px 8px 9px;
  padding: 0;
}
.campaign-page[data-template="blind_box"] .collection-prizes.is-card-set span {
  position: relative;
  width: auto;
  height: 86px;
  border: 2px solid #e4e4e4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  color: #c6c6c6;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95);
}
.campaign-page[data-template="blind_box"] .collection-prizes.is-card-set span::before,
.campaign-page[data-template="card_flip"] .flip-deck span::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: .33;
}
.campaign-page[data-template="blind_box"] .collection-prizes.is-card-set span::after,
.campaign-page[data-template="card_flip"] .flip-deck span::after {
  content: "";
  position: absolute;
  inset: 25px 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .25;
}
.campaign-page[data-template="blind_box"] .collection-prizes.is-card-set span.is-collected,
.campaign-page[data-template="card_flip"] .flip-deck span.is-collected {
  border-color: #ef9b44;
  background: linear-gradient(160deg, #ffcf76, #ec6b35);
  color: #fff8e6;
  box-shadow: 0 3px 0 rgba(184, 74, 28, .18), inset 0 0 0 1px rgba(255,255,255,.55);
}
.campaign-page[data-template="card_flip"] .flip-collection {
  min-height: 314px;
  border-color: #eadfd5;
  background: #fff;
  box-shadow: 0 7px 0 rgba(65, 28, 125, .16), inset 0 0 0 1px rgba(255,255,255,.9);
}
.campaign-page[data-template="card_flip"] .flip-deck {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 176px;
  max-height: none;
  padding: 4px 8px 0;
}
.campaign-page[data-template="card_flip"] .flip-deck span {
  min-height: 86px;
  border: 2px solid #e4e4e4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  color: #c6c6c6;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95);
}
.campaign-page[data-template="blind_box"] .collection-cta,
.campaign-page[data-template="card_flip"] .collection-cta {
  width: calc(100% - 22px);
  height: 48px;
  margin: 9px auto 0;
  border: 1px solid #f2c7a5;
  border-radius: 999px;
  background: linear-gradient(100deg, #f8b9aa, #f3a496);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 0 rgba(184, 89, 65, .14);
}
.campaign-page[data-template="blind_box"] .collection-cta.is-ready,
.campaign-page[data-template="card_flip"] .collection-cta.is-ready {
  background: linear-gradient(105deg, #ff7447, #e92c1f);
  box-shadow: 0 4px 0 rgba(155, 42, 25, .2), 0 7px 12px rgba(164, 45, 25, .14);
}

/* The shared component already carries its own progress and CTA. The generic
   stage status lines would sit on top of the CTA on compact screens, so keep
   them out of these two collection layouts. */
.campaign-page[data-template="blind_box"] .stage-note,
.campaign-page[data-template="card_flip"] .stage-note,
.campaign-page[data-template="blind_box"] .game-board > .draw-availability,
.campaign-page[data-template="card_flip"] .game-board > .draw-availability { display: none; }

/* The shared card panel grows with its configurable card count. Reserve the
   space explicitly so the CTA never spills into the participant strip. */
.campaign-page[data-template="blind_box"] .game-stage,
.campaign-page[data-template="card_flip"] .game-stage {
  min-height: 430px;
}
.campaign-page[data-template="blind_box"] .stage-object,
.campaign-page[data-template="card_flip"] .stage-object {
  height: 403px;
}
.campaign-page[data-template="blind_box"] .blind-collection,
.campaign-page[data-template="card_flip"] .flip-collection {
  height: auto;
  min-height: 390px;
  transform: none;
}
@media (max-width: 395px) {
  .campaign-page[data-template="blind_box"] .game-stage,
  .campaign-page[data-template="card_flip"] .game-stage { min-height: 400px; }
  .campaign-page[data-template="blind_box"] .stage-object,
  .campaign-page[data-template="card_flip"] .stage-object { height: 373px; }
  .campaign-page[data-template="blind_box"] .blind-collection,
  .campaign-page[data-template="card_flip"] .flip-collection {
    min-height: 350px;
  }
}
