:root {
  --ink: #120c1c;
  --plum: #2a1a3a;
  --rose: #ff5c8a;
  --gold: #e8b86d;
  --cream: #fff6ec;
  --mint: #6ee7c8;
  --lav: #b8a0ff;
  --glass: rgba(255, 246, 236, 0.07);
  --line: rgba(255, 246, 236, 0.14);
  --font-show: "Ma Shan Zheng", cursive;
  --font-body: "ZCOOL XiaoWei", "Songti SC", serif;
  --r: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #4a2d5c 0%, var(--ink) 55%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite;
}

.g1 { width: 300px; height: 300px; background: var(--rose); top: -80px; right: -60px; }
.g2 { width: 240px; height: 240px; background: var(--lav); bottom: 15%; left: -70px; animation-delay: -5s; }
.g3 { width: 180px; height: 180px; background: var(--gold); bottom: 35%; right: 10%; opacity: 0.2; animation-delay: -9s; }

@keyframes drift {
  50% { transform: translate(14px, 20px) scale(1.05); }
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 80% 50%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.3), transparent);
  opacity: 0.6;
}

.vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.55);
  pointer-events: none;
}

.header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 16px 6px;
}

.nav-back {
  position: absolute;
  top: 18px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 246, 236, 0.72);
  background: rgba(255, 246, 236, 0.06);
  border: 1px solid rgba(255, 246, 236, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.nav-back-left { left: 12px; }
.nav-back-right { right: 12px; left: auto; }

.nav-back:hover:not(:disabled) {
  background: rgba(255, 246, 236, 0.1);
  color: rgba(255, 246, 236, 0.92);
}

.nav-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-back.hidden {
  display: none;
}

.bell {
  font-size: 1.2rem;
  animation: ring 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(232, 184, 109, 0.6));
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(6deg); }
}

.shop-name {
  font-family: var(--font-show);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  background: linear-gradient(180deg, #fff8e8, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

.shop-tag {
  font-size: 0.75rem;
  color: rgba(255, 246, 236, 0.45);
  letter-spacing: 0.35em;
  margin-top: 4px;
}

.main {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 18px calc(48px + var(--safe-b));
}

.clerk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  animation: rise 0.55s ease;
}

.clerk.hidden { display: none; }

.clerk-portrait {
  position: relative;
  flex-shrink: 0;
}

.portrait-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 109, 0.45);
  animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.portrait-char {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-family: var(--font-show);
  font-size: 1.4rem;
  background: linear-gradient(145deg, #ff7aa0, #e84d7a);
  box-shadow: 0 10px 28px rgba(255, 92, 138, 0.35);
}

.bubble {
  flex: 1;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

#clerk-line {
  font-size: 0.98rem;
  line-height: 1.7;
  min-height: 1.6em;
}

#clerk-line.cursor::after {
  content: "▍";
  color: var(--gold);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.stage { animation: rise 0.45s ease; }

.card {
  background: linear-gradient(165deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  padding: 24px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}

.card-hero { text-align: center; }

/* 糖果店门面 — 午夜精品 + 荧光层次 */
.shop-front {
  position: relative;
  width: min(280px, 88vw);
  margin: 0 auto 20px;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.45));
}

.shop-front::before {
  content: "";
  position: absolute;
  inset: -14px -10px -20px;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(255, 190, 120, 0.42) 0%, rgba(255, 92, 138, 0.18) 38%, transparent 72%),
    radial-gradient(ellipse at 50% 20%, rgba(184, 160, 255, 0.14) 0%, transparent 55%);
  z-index: -1;
  pointer-events: none;
  animation: portalBreath 3s ease-in-out infinite;
}

.facade {
  position: relative;
  padding: 0 0 14px;
  background:
    linear-gradient(175deg, rgba(255, 92, 138, 0.1) 0%, rgba(184, 160, 255, 0.08) 38%, transparent 68%),
    linear-gradient(180deg, #4a3258 0%, #322448 48%, #241832 100%);
  border-radius: 18px;
  border: 1px solid rgba(232, 184, 109, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 236, 0.14),
    0 0 22px rgba(255, 92, 138, 0.14),
    0 0 42px rgba(232, 184, 109, 0.22),
    0 0 0 1px rgba(255, 246, 236, 0.06);
  overflow: hidden;
}

.facade-cornice {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 92, 138, 0.35) 12%,
    rgba(232, 184, 109, 0.35) 32%,
    #ffe4a8 50%,
    rgba(232, 184, 109, 0.35) 68%,
    rgba(255, 92, 138, 0.35) 88%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(232, 184, 109, 0.45);
}

.facade-head {
  position: relative;
  padding: 18px 16px 14px;
  text-align: center;
}

.facade-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: #ffe8b8;
  border: 1px solid rgba(232, 184, 109, 0.45);
  border-radius: 999px;
  background: rgba(232, 184, 109, 0.12);
  box-shadow: 0 0 12px rgba(232, 184, 109, 0.2);
}

.facade-title {
  font-family: var(--font-show);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, #fff8e8 0%, #ffd98a 42%, #e8b86d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 210, 140, 0.55));
}

.facade-chime {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.chime-rod {
  display: block;
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, transparent, rgba(255, 220, 160, 0.85));
  box-shadow: 0 0 6px rgba(232, 184, 109, 0.5);
}

.chime-bell {
  font-size: 0.82rem;
  opacity: 1;
  animation: chimeBell 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 210, 140, 0.65));
}

.portal {
  position: relative;
  padding: 0 18px;
}

.portal-arch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  height: 198px;
  border: 1.5px solid rgba(255, 220, 160, 0.72);
  border-bottom: none;
  border-radius: 999px 999px 0 0 / 120px 120px 0 0;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    0 0 18px rgba(232, 184, 109, 0.35),
    inset 0 8px 28px rgba(255, 200, 120, 0.12);
}

.portal-shell {
  position: relative;
  margin-top: 8px;
  padding: 10px 8px 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #1a1028 0%, #0c0714 100%);
  border: 1px solid rgba(255, 220, 160, 0.38);
  border-top: none;
  overflow: hidden;
  box-shadow:
    inset 0 -36px 48px rgba(255, 180, 100, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.doors {
  position: relative;
  display: flex;
  height: 188px;
  perspective: 1000px;
  z-index: 1;
  gap: 6px;
}

.door {
  flex: 1;
  position: relative;
  transition: transform 1.25s cubic-bezier(0.22, 0.85, 0.28, 1);
  transform-origin: center left;
  transform-style: preserve-3d;
}

.d-right { transform-origin: center right; }

.d-left.open { transform: rotateY(-54deg); }
.d-right.open { transform: rotateY(54deg); }

.door-leaf {
  position: relative;
  height: 100%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #5c4568 0%, #3a2848 55%, #2a2034 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 160, 0.32),
    inset 0 -20px 30px rgba(0, 0, 0, 0.28);
}

.door-glass {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 74%;
  border-radius: 999px 999px 6px 6px / 72px 72px 6px 6px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 252, 240, 0.72) 0%, transparent 44%),
    linear-gradient(180deg, rgba(255, 220, 160, 0.55) 0%, rgba(255, 92, 138, 0.18) 52%, rgba(184, 160, 255, 0.22) 100%);
  border: 1.5px solid rgba(255, 236, 200, 0.72);
  box-shadow:
    inset 0 0 32px rgba(255, 230, 180, 0.45),
    0 0 22px rgba(255, 200, 120, 0.45),
    0 0 36px rgba(255, 92, 138, 0.15);
}

.glass-shine {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 32%;
  height: 44%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 72%);
  filter: blur(1px);
}

.door-mullion {
  position: absolute;
  top: 14px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 230, 180, 0.85), rgba(232, 184, 109, 0.25));
  box-shadow: 0 0 6px rgba(232, 184, 109, 0.45);
}

.door-handle {
  position: absolute;
  bottom: 26px;
  width: 3px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a88840, #ffe9a8 45%, #a88840);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(232, 184, 109, 0.45);
}

.door-handle::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #e8b86d);
  box-shadow: 0 0 8px rgba(232, 184, 109, 0.55);
}

.d-left .door-handle { right: 10px; }
.d-right .door-handle { left: 10px; }

.portal-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.guide-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 190, 0.85) 0%,
    rgba(255, 92, 138, 0.35) 42%,
    transparent 72%
  );
  animation: guidePulse 2.2s ease-in-out infinite;
}

.guide-beam {
  position: relative;
  width: 3px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(184, 160, 255, 0.15) 0%,
    rgba(255, 230, 160, 0.95) 45%,
    rgba(255, 92, 138, 0.55) 100%
  );
  box-shadow:
    0 0 14px rgba(255, 230, 160, 0.9),
    0 0 28px rgba(255, 92, 138, 0.35),
    0 0 42px rgba(255, 210, 140, 0.45);
  animation: guidePulse 2.2s ease-in-out infinite;
}

.guide-arrow {
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid rgba(255, 240, 190, 0.95);
  filter: drop-shadow(0 0 10px rgba(255, 210, 140, 0.85));
  animation: guideFloat 2.2s ease-in-out infinite;
}

.guide-label {
  margin-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: rgba(255, 248, 220, 0.92);
  text-shadow:
    0 0 10px rgba(255, 210, 140, 0.85),
    0 0 22px rgba(255, 92, 138, 0.35);
  animation: guidePulse 2.2s ease-in-out infinite;
}

.portal-shell:has(.door.open) .portal-guide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

@keyframes guidePulse {
  0%, 100% { opacity: 0.65; filter: brightness(0.92); }
  50% { opacity: 1; filter: brightness(1.15); }
}

@keyframes guideFloat {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.portal-glow {
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(255, 210, 140, 0.72) 0%, rgba(255, 92, 138, 0.28) 42%, transparent 70%),
    radial-gradient(ellipse at 50% 40%, rgba(184, 160, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
  animation: portalBreath 2.8s ease-in-out infinite;
  z-index: 0;
}

.portal-sill {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 2px;
}

.portal-sill span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5a4838, #a88868, #5a4838);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(232, 184, 109, 0.22);
}

.portal-sill span:nth-child(1),
.portal-sill span:nth-child(3) { width: 18%; opacity: 0.72; }
.portal-sill span:nth-child(2) { width: 52%; }

.hint-entrance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #fff6ec;
  margin-bottom: 24px;
  font-style: normal;
  text-shadow: 0 0 18px rgba(255, 200, 120, 0.35);
}

.hint-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd98a;
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(255, 210, 140, 0.75);
  font-style: normal;
}

@keyframes portalBreath {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hint {
  color: rgba(255, 246, 236, 0.55);
  font-size: 0.88rem;
  margin-bottom: 22px;
  font-style: italic;
}

.action {
  display: block;
  width: 100%;
  padding: 15px 20px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  color: var(--cream);
  background: var(--glass);
}

.action:active:not(:disabled) { transform: scale(0.98); }

.action.primary {
  background: linear-gradient(135deg, #f0c878, #e8a84a);
  color: #2a1838;
  border: none;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(232, 168, 74, 0.28);
}

.action.ghost { background: transparent; }

.action.redpacket {
  background: linear-gradient(180deg, #ff5a4a, #c62828);
  border: none;
  color: #fff8e8;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 16px 40px rgba(198, 40, 40, 0.45);
  animation: hb-glow 2.5s ease-in-out infinite;
}

@keyframes hb-glow {
  50% { box-shadow: 0 16px 50px rgba(255, 90, 74, 0.55); }
}

.actions.off { pointer-events: none; opacity: 0.45; }

.card-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-shop .action {
  max-width: 280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 是小秦分支 · 欢迎过渡 */
.card-welcome .welcome-atmosphere {
  font-size: 0.82rem;
  color: rgba(255, 246, 236, 0.55);
  margin: 4px 0 18px;
  font-style: italic;
}

.card-welcome #btn-to-candy {
  max-width: 280px;
}

/* 不是小秦分支 */
.card-no .no-atmosphere {
  font-size: 0.82rem;
  color: rgba(255, 246, 236, 0.5);
  margin: 4px 0 16px;
  font-style: italic;
}

.wind-chime {
  position: relative;
  width: 64px;
  height: 52px;
  margin: 0 auto 8px;
}

.wc-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 28px;
  background: rgba(232, 184, 109, 0.45);
  transform-origin: top center;
  animation: chimeSwing 2.8s ease-in-out infinite;
}

.wc-line.l1 { left: 30%; animation-delay: 0s; }
.wc-line.l2 { left: 50%; animation-delay: -0.4s; }
.wc-line.l3 { left: 70%; animation-delay: -0.8s; }

.wc-bell {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  animation: chimeSwing 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(232, 184, 109, 0.5));
}

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

.wc-bell {
  animation-name: chimeBell;
}

@keyframes chimeBell {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); }
  50% { transform: translateX(-50%) rotate(8deg); }
}

.actions-no {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.card-no #btn-browse {
  max-width: 280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 糖果罐互动 */
.jar-wrap:not(.is-open) .jar-scene {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.jar-wrap.is-open .jar-scene {
  opacity: 1;
}

.jar-interactive {
  cursor: pointer;
  transition: transform 0.25s, filter 0.25s;
}

.jar-interactive:not(.tapped) .jar-glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, rgba(200, 190, 220, 0.35) 0%, rgba(80, 60, 100, 0.45) 100%);
}

.jar-interactive:not(.tapped) .candy-pile {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
}

.jar-interactive:not(.tapped) {
  animation: jarInvite 2.8s ease-in-out infinite;
}

@keyframes jarInvite {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(232, 184, 109, 0.2)); }
  50% { filter: drop-shadow(0 0 26px rgba(255, 210, 140, 0.5)); }
}

.jar-seal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(40, 28, 58, 0.62) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.jar-interactive:not(.tapped) .jar-seal::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 230, 160, 0.45);
  box-shadow:
    0 0 16px rgba(255, 210, 140, 0.25),
    inset 0 0 20px rgba(255, 210, 140, 0.08);
  animation: sealRing 2.4s ease-in-out infinite;
}

.jar-interactive:not(.tapped) .jar-seal::after {
  content: "";
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 160, 0.55) 0%, transparent 72%);
  animation: sealTap 2.4s ease-in-out infinite;
}

.jar-seal span {
  position: relative;
  z-index: 1;
  font-family: var(--font-show);
  font-size: 2.1rem;
  color: rgba(255, 236, 200, 0.95);
  animation: sealQuestion 2.4s ease-in-out infinite;
}

@keyframes sealRing {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); box-shadow: 0 0 28px rgba(255, 210, 140, 0.55); }
}

@keyframes sealQuestion {
  0%, 100% {
    opacity: 0.78;
    text-shadow: 0 0 14px rgba(232, 184, 109, 0.45);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 24px rgba(255, 230, 160, 0.9),
      0 0 40px rgba(255, 92, 138, 0.28);
  }
}

@keyframes sealTap {
  0%, 100% { opacity: 0.35; transform: scale(0.88); }
  50% { opacity: 0.9; transform: scale(1.12); }
}

.jar-interactive.tapped .jar-seal {
  opacity: 0;
  transform: scale(1.15);
  pointer-events: none;
}

.jar-interactive.tapped .jar-lid {
  transform: translateY(-6px) rotate(-6deg);
  transition: transform 0.5s ease;
}

.jar-interactive.tapped .candy-pile {
  visibility: visible;
  animation: candiesIn 0.75s ease forwards;
}

@keyframes candiesIn {
  from {
    opacity: 0;
    transform: scale(0.55) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.jar-interactive:active {
  transform: scale(0.97);
}

.jar-interactive.tapped {
  filter: drop-shadow(0 0 20px rgba(232, 184, 109, 0.45));
}

.jar-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 240, 200, 0.78);
  text-shadow: 0 0 14px rgba(255, 210, 140, 0.35);
}

.jar-wrap:not(.is-open) .jar-hint {
  animation: hintPulse 2.6s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.card-leave .leave-chime {
  font-size: 1.6rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(232, 184, 109, 0.45));
  animation: chimeBell 3.2s ease-in-out infinite;
}

.card-leave h2 {
  font-family: var(--font-show);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.card-leave .leave-main {
  font-family: var(--font-show);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.5;
}

.card-leave .leave-sub {
  font-size: 0.88rem;
  color: rgba(255, 246, 236, 0.58);
  margin-bottom: 16px;
  line-height: 1.65;
}

.card-leave .leave-warm {
  font-family: var(--font-show);
  font-size: 0.95rem;
  color: rgba(232, 184, 109, 0.75);
  letter-spacing: 0.08em;
}

/* 糖果店货架 */
.shelf-unit {
  position: relative;
  height: 108px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
}

.card-shop .shelf-unit {
  width: 100%;
}

.shelf-wall {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(80, 50, 100, 0.35) 0%, rgba(40, 28, 55, 0.5) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      transparent 2px 24px
    );
  border: 1px solid var(--line);
  border-radius: 16px;
}

.shelf-board {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 18px;
  height: 14px;
  background: linear-gradient(180deg, #c9a06a 0%, #8b6914 55%, #6d4c12 100%);
  border-radius: 3px;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
  z-index: 2;
}

.shelf-board::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -52px;
  height: 52px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.shelf-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 70%;
  height: 40px;
  margin-left: -35%;
  background: radial-gradient(ellipse at center bottom, rgba(232, 184, 109, 0.25), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.si {
  position: absolute;
  bottom: 14px;
  display: block;
  z-index: 3;
}

/* 小玻璃罐 */
.si-jar {
  width: 22px;
  height: 28px;
  border-radius: 4px 4px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.15);
}

.si-jar::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  right: 3px;
  height: 5px;
  background: linear-gradient(90deg, #c9a050, #e8c878);
  border-radius: 2px 2px 0 0;
}

.j1 {
  left: 14%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 107, 157, 0.45));
}

.j2 {
  left: 26%;
  height: 24px;
  width: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(126, 232, 199, 0.4));
}

/* 糖果盒 */
.si-box {
  left: 42%;
  width: 32px;
  height: 22px;
  background: linear-gradient(145deg, #ff8a80, #e84d4d);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
}

.si-box::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

/* 糖果袋 */
.si-bag {
  left: 58%;
  width: 26px;
  height: 30px;
  background: linear-gradient(160deg, #c4a8ff, #7e57c2);
  border-radius: 4px 4px 12px 12px;
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.si-bag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0 0 4px 4px;
}

/* 糖罐 */
.si-can {
  right: 12%;
  width: 24px;
  height: 26px;
  background: linear-gradient(90deg, #ffe082, #ffb300, #ffe082);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.si-can::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 2px;
  right: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.35);
}

.jar-wrap {
  margin: 8px 0 24px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jar-scene {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 200px;
  height: 200px;
  margin-left: -100px;
  pointer-events: none;
  z-index: 0;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 2.4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold);
}

.s1 { left: 12%; top: 18%; animation-delay: 0s; }
.s2 { right: 8%; top: 35%; animation-delay: 0.8s; }
.s3 { left: 45%; top: 8%; animation-delay: 1.6s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.85; transform: scale(1.2); }
}

.jar {
  text-align: center;
  position: relative;
  z-index: 1;
}

.jar-lid {
  width: 96px;
  height: 18px;
  margin: 0 auto -2px;
  background: linear-gradient(180deg, #e8c878, #a67c2e);
  border-radius: 8px 8px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.lid-knob {
  display: block;
  width: 22px;
  height: 10px;
  margin: -6px auto 0;
  background: linear-gradient(180deg, #d4a84b, #8b6914);
  border-radius: 6px 6px 2px 2px;
}

.jar-glass {
  width: 128px;
  height: 148px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-width: 1px;
  border-radius: 10px 10px 52px 52px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(120, 80, 160, 0.12) 100%);
  box-shadow:
    inset 0 -24px 40px rgba(255, 107, 157, 0.12),
    inset 4px 0 12px rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.jar-shine {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 22%;
  height: 55%;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.candy-pile {
  position: absolute;
  inset: 10px 8px 14px;
}

.c {
  position: absolute;
  display: block;
  animation: candy-bob 3.2s ease-in-out infinite;
}

/* 水果硬糖 */
.c-round {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow:
    inset -3px -4px 8px rgba(0, 0, 0, 0.2),
    inset 2px 2px 6px rgba(255, 255, 255, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.2);
}

.c-round::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 7px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-25deg);
}

.r1 { left: 8%; bottom: 12%; background: linear-gradient(145deg, #ff8fab, #e84d7a); animation-delay: 0s; }
.r2 { left: 28%; bottom: 22%; background: linear-gradient(145deg, #7ee8c7, #3cb896); animation-delay: -0.4s; scale: 0.92; rotate: -8deg; }
.r3 { left: 52%; bottom: 8%; background: linear-gradient(145deg, #ffe082, #f9a825); animation-delay: -0.9s; }
.r4 { right: 10%; bottom: 18%; background: linear-gradient(145deg, #c4a8ff, #8b6fd4); animation-delay: -1.3s; scale: 1.05; }
.r5 { left: 18%; bottom: 42%; background: linear-gradient(145deg, #ffab91, #ff6e40); animation-delay: -1.8s; width: 18px; height: 18px; }
.r6 { right: 22%; bottom: 38%; background: linear-gradient(145deg, #81d4fa, #4fc3f7); animation-delay: -2.2s; width: 20px; height: 20px; rotate: 12deg; }

/* 糖纸卷糖 */
.c-wrap {
  width: 26px;
  height: 13px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.c-wrap::before,
.c-wrap::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: inherit;
  filter: brightness(0.92);
}

.c-wrap::before { left: -6px; }
.c-wrap::after { right: -6px; }

.w1 { left: 38%; bottom: 48%; background: linear-gradient(90deg, #ff6b9d, #ff8a80); animation-delay: -0.5s; rotate: -12deg; }
.w2 { left: 62%; bottom: 52%; background: linear-gradient(90deg, #aed581, #7cb342); animation-delay: -1.1s; rotate: 8deg; }
.w3 { left: 8%; bottom: 58%; background: linear-gradient(90deg, #ffd54f, #ffb300); animation-delay: -1.7s; rotate: 5deg; width: 22px; }

/* 糖豆 */
.c-bean {
  width: 11px;
  height: 16px;
  border-radius: 45% 45% 50% 50%;
  box-shadow: inset -1px -2px 4px rgba(0, 0, 0, 0.2);
}

.b1 { left: 48%; bottom: 32%; background: #e91e63; animation-delay: -0.7s; rotate: 15deg; }
.b2 { left: 72%; bottom: 28%; background: #5c6bc0; animation-delay: -1.4s; rotate: -20deg; }
.b3 { left: 32%; bottom: 68%; background: #ff7043; animation-delay: -2s; rotate: 8deg; }

/* 棒棒糖 */
.c-lolly {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6b9d, #ffe082, #7ee8c7, #c4a8ff, #ff6b9d);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  right: 6%;
  bottom: 55%;
  animation-delay: -1s;
}

.c-lolly::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 3px;
  height: 22px;
  margin-left: -1.5px;
  background: linear-gradient(90deg, #f5e6d0, #d4b896);
  border-radius: 2px;
}

/* 星星糖 */
.c-star {
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, #fff59d, #ffc107);
  clip-path: polygon(50% 0%, 61% 38%, 100% 38%, 68% 59%, 79% 100%, 50% 74%, 21% 100%, 32% 59%, 0% 38%, 39% 38%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  left: 55%;
  bottom: 62%;
  animation-delay: -2.4s;
  rotate: 15deg;
}

@keyframes candy-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.jar-cap {
  margin-top: 10px;
  font-family: var(--font-show);
  font-size: 1.15rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 184, 109, 0.4);
  text-align: center;
}

.card-mood h2 {
  font-family: var(--font-show);
  font-size: 1.5rem;
  text-align: center;
  color: var(--gold);
  margin-bottom: 18px;
}

.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--cream);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mood .e { font-size: 1.9rem; }
.mood .t { font-size: 0.88rem; }

.mood.on {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(255, 92, 138, 0.25), 0 12px 32px rgba(0,0,0,0.3);
}

.mood-confirm {
  margin-top: 18px;
  width: 100%;
}

.card-mood-reply {
  text-align: center;
  padding: 28px 20px;
}

.mood-picked-label {
  font-family: var(--font-show);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.card-gift { text-align: center; }

.gift-box {
  position: relative;
  width: 136px;
  height: 112px;
  margin: 0 auto 22px;
}

.gift-halo {
  position: absolute;
  inset: -22px -16px -26px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 210, 140, 0.62) 0%, transparent 58%),
    radial-gradient(ellipse at 50% 15%, rgba(255, 92, 138, 0.42) 0%, transparent 52%);
  animation: portalBreath 2.6s ease-in-out infinite;
  pointer-events: none;
}

.gift-lid {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 28px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #ffd4e4 0%, #ff8fab 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 18px rgba(255, 92, 138, 0.45);
  z-index: 2;
}

.gift-bow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -35%);
  width: 22px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, #ffe9a8, #c8944a);
  box-shadow:
    -10px 0 0 -2px rgba(255, 220, 160, 0.85),
    10px 0 0 -2px rgba(255, 220, 160, 0.85),
    0 0 12px rgba(232, 184, 109, 0.45);
}

.gift-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  border-radius: 8px 8px 12px 12px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    linear-gradient(180deg, #ff7eaa 0%, #ff5c8a 52%, #e84380 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 36px rgba(255, 92, 138, 0.42),
    0 0 32px rgba(255, 200, 120, 0.28);
  overflow: hidden;
}

.gift-band-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 10px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #8a6b2e, #ffe9a8 50%, #8a6b2e);
  opacity: 0.85;
  box-shadow: 0 0 10px rgba(232, 184, 109, 0.35);
}

.gift-band-v {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 10px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8a6b2e, #ffe9a8 50%, #8a6b2e);
  opacity: 0.85;
  box-shadow: 0 0 10px rgba(232, 184, 109, 0.35);
}

.gift-box-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  font-family: var(--font-show);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  z-index: 1;
}

/* 揭开惊喜动画 */
.gift-box.opening {
  animation: giftShake 0.55s ease-in-out 2;
}

.gift-box.opening .opening-lid {
  animation: giftLidLift 1.2s ease forwards;
}

.gift-box.opening .gift-box-label {
  animation: labelFade 0.5s ease 0.6s forwards;
}

.gift-box.opening .gift-band-h,
.gift-box.opening .gift-band-v {
  animation: labelFade 0.5s ease 0.5s forwards;
}

.gift-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.burst {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  left: 50%;
  top: 45%;
  opacity: 0;
  animation: burstOut 1s ease forwards;
}

.b1 { background: #ffd54f; animation-delay: 0.15s; --bx: -42px; --by: -38px; }
.b2 { background: #ff8fab; animation-delay: 0.2s; --bx: 38px; --by: -44px; }
.b3 { background: #7ee8c7; animation-delay: 0.25s; --bx: -48px; --by: 12px; }
.b4 { background: #c4a8ff; animation-delay: 0.18s; --bx: 44px; --by: 8px; }
.b5 { background: #fff; animation-delay: 0.3s; --bx: 0; --by: -52px; width: 6px; height: 6px; }
.b6 { background: #ffe082; animation-delay: 0.22s; --bx: -20px; --by: 36px; }

@keyframes giftShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg) scale(1.02); }
  75% { transform: rotate(3deg) scale(1.02); }
}

@keyframes giftLidLift {
  0% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(-48px) rotate(-8deg); opacity: 1; }
  100% { transform: translateY(-72px) rotate(-12deg) scale(0.85); opacity: 0; }
}

@keyframes labelFade {
  to { opacity: 0; transform: scale(0.9); }
}

@keyframes burstOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1); }
}

.opening-hint {
  animation: pulseText 1s ease-in-out infinite;
}

@keyframes pulseText {
  50% { opacity: 0.45; }
}

.card-code.is-revealing .gift-kicker,
.card-code.is-revealing .gift-lead,
.card-code.is-revealing .gift-amount,
.card-code.is-revealing .gift-note {
  animation: revealPart 0.65s ease both;
}

.card-code.is-revealing .gift-lead { animation-delay: 0.08s; }
.card-code.is-revealing .gift-amount { animation-delay: 0.14s; }
.card-code.is-revealing .gift-note { animation-delay: 0.2s; }

.card-code.is-revealing .code-ticket {
  animation: revealPart 0.75s ease 0.28s both;
}

.card-code.is-revealing .wait-notice {
  animation: revealPart 0.75s ease 0.42s both;
}

.card-code.is-revealing .wx-steps {
  animation: revealPart 0.75s ease 0.55s both;
}

.card-code.is-revealing .wx-hint,
.card-code.is-revealing .ghost {
  animation: revealPart 0.65s ease 0.68s both;
}

@keyframes revealPart {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wait-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 14px;
  text-align: left;
  border-radius: var(--r);
  background: rgba(232, 184, 109, 0.12);
  border: 1px solid rgba(232, 184, 109, 0.35);
}

.wait-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.wait-notice p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 246, 236, 0.82);
}

.gift-kicker {
  font-family: var(--font-show);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
  text-shadow: 0 0 18px rgba(232, 184, 109, 0.35);
}

.gift-lead {
  font-size: 0.92rem;
  color: rgba(255, 246, 236, 0.78);
  margin-bottom: 14px;
  line-height: 1.55;
}

.gift-amount {
  font-size: 0.92rem;
  color: rgba(255, 246, 236, 0.72);
  margin-bottom: 8px;
}

.gift-amount strong {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 400;
}

.card-code .code-ticket {
  margin: 18px 0 16px;
  padding: 20px 16px;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 107, 157, 0.15), rgba(232, 184, 109, 0.12));
  border: 1px dashed rgba(232, 184, 109, 0.45);
}

.code-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 246, 236, 0.5);
  margin-bottom: 10px;
}

.code-text {
  font-family: var(--font-show);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 14px;
  text-shadow: 0 0 24px rgba(232, 184, 109, 0.35);
}

.action.copy {
  width: auto;
  display: inline-flex;
  padding: 10px 22px;
  font-size: 0.9rem;
  margin-top: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.5), rgba(196, 168, 255, 0.35));
  border: 1px solid rgba(255, 107, 157, 0.45);
  color: var(--cream);
}

.wx-steps {
  text-align: left;
  margin: 0 auto 12px;
  max-width: 300px;
  padding-left: 1.2em;
  font-size: 0.82rem;
  color: rgba(255, 246, 236, 0.65);
  line-height: 1.75;
}

.wx-steps strong {
  color: var(--gold);
  font-weight: 600;
}

#copy-hint.ok { color: var(--mint); }

.gift-note.warn,
.wx-hint.warn { color: #ffab91; }

.action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hongbao {
  width: 130px;
  height: 168px;
  margin: 0 auto 20px;
  background: linear-gradient(165deg, #ff6b5a, #b71c1c);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 20px 48px rgba(183, 28, 28, 0.45);
}

.hongbao::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, #ff8575, #e53935);
  clip-path: polygon(0 0, 50% 85%, 100% 0);
}

.hb-seal {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd54f, #f9a825);
  display: grid;
  place-items: center;
  font-family: var(--font-show);
  font-size: 1.6rem;
  color: #8b0000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.gift-note {
  font-size: 0.9rem;
  color: rgba(255, 246, 236, 0.7);
  margin-bottom: 16px;
}

.wx-hint {
  margin-top: 14px;
  font-size: 0.76rem;
  color: rgba(255, 246, 236, 0.45);
  line-height: 1.55;
}

.card-end {
  text-align: center;
  padding: 40px 24px;
}

.card-end h2 {
  font-family: var(--font-show);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.card-end p { color: rgba(255,246,236,0.65); line-height: 1.8; }
.card-end .sub { margin-top: 16px; color: var(--mint); }

.shine {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  animation: pulse 1.8s ease infinite;
}

.banner-err {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 10px;
  background: #b71c1c;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}
