:root {
  --pink: #ff3d7a;
  --pink-2: #ff6aa3;
  --pink-deep: #ff2a63;
  --lime: #c8f000;
  --ink: #1b1b1b;
  --muted: #9b9b9b;
  --paper: #fff7f9;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  min-height: 100%;
  height: auto;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #f7d6e2;
  color: var(--ink);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.stage {
  width: min(980px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, #ffe9f1 0%, var(--paper) 42%, #fff 100%);
  padding-bottom: max(160px, env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

.hero {
  position: relative;
  min-height: 220px;
  padding: 28px 24px 64px;
  overflow: hidden;
  color: #1b1b1b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 12px) 0 0 / 12px 12px,
    linear-gradient(180deg, #ff7eb4 0%, #ff4d8f 48%, #ff2f78 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .ray {
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  background: radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
}

.hero-bg .coin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe98a, #f0b400 70%);
  border: 2px solid #d49200;
  box-shadow: inset 0 0 0 3px rgba(212, 146, 0, 0.22);
}

.hero-bg .c1 { left: 42%; top: 28px; }
.hero-bg .c2 { right: 38%; top: 72px; width: 14px; height: 14px; }
.hero-bg .c3 { left: 58%; bottom: 78px; width: 16px; height: 16px; }

.hero-bg .spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hero-bg .s1 { left: 18px; top: 42px; }
.hero-bg .s2 { left: 120px; top: 96px; width: 8px; height: 8px; opacity: 0.8; }
.hero-bg .s3 { right: 24px; top: 36px; width: 12px; height: 12px; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 58%;
}

.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2a63, #ff4d86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(180, 20, 70, 0.22);
}

.hero-title {
  margin-top: 12px;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-title .t1,
.hero-title .t2 {
  display: inline-block;
  -webkit-text-stroke: 5px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 0 rgba(40, 10, 20, 0.18));
}

.hero-title .t1 {
  color: #1b1b1b;
}

.hero-title .t2 {
  color: #ff2a63;
  margin-left: 2px;
}

.hero-swoosh {
  width: min(240px, 90%);
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5ef0d8 0%, #c8f000 55%, #ffe56a 100%);
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.55);
  transform: rotate(-2deg);
}

.hero-art {
  position: absolute;
  right: 18px;
  bottom: 42px;
  width: 180px;
  height: 140px;
  z-index: 2;
}

.megaphone {
  position: absolute;
  left: -10px;
  top: 8px;
  width: 34px;
  height: 22px;
  background: linear-gradient(180deg, #ffe56a, #ffb400);
  border-radius: 4px 14px 14px 4px;
  transform: rotate(-18deg);
  box-shadow: 0 4px 8px rgba(160, 40, 80, 0.18);
}

.megaphone::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 12px;
  height: 14px;
  background: #ff6aa3;
  border-radius: 4px;
}

.megaphone::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -2px;
  width: 14px;
  height: 26px;
  border: 3px solid #fff;
  border-left: 0;
  border-radius: 0 50% 50% 0;
  opacity: 0.85;
}

.gift-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 150px;
  height: 120px;
}

.gift-box {
  position: absolute;
  left: 28px;
  bottom: 0;
  width: 96px;
  height: 52px;
  background: linear-gradient(180deg, #ffb24a, #ff8a1a);
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(160, 40, 80, 0.2);
}

.gift-box::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 0;
  bottom: 0;
  width: 16px;
  background: rgba(255, 255, 255, 0.28);
}

.gift-lid {
  position: absolute;
  left: 22px;
  bottom: 44px;
  width: 108px;
  height: 18px;
  background: linear-gradient(180deg, #ffc86a, #ff9a22);
  border-radius: 6px;
  transform: rotate(-8deg);
  transform-origin: left center;
}

.piggy {
  position: absolute;
  left: 42px;
  bottom: 36px;
  width: 78px;
  height: 78px;
}

.piggy .ear {
  position: absolute;
  top: 2px;
  width: 20px;
  height: 22px;
  background: #ff9bb8;
  border-radius: 50% 50% 42% 42%;
}

.piggy .ear.l { left: 8px; transform: rotate(-16deg); }
.piggy .ear.r { right: 8px; transform: rotate(16deg); }

.piggy .face {
  position: absolute;
  inset: 12px 4px 0;
  background: radial-gradient(circle at 35% 28%, #ffd4e0, #ff8eb0 72%);
  border-radius: 46% 46% 48% 48%;
  box-shadow: inset 0 -8px 0 rgba(255, 61, 122, 0.16);
}

.piggy .eye {
  position: absolute;
  top: 34px;
  width: 8px;
  height: 10px;
  background: #2a1a20;
  border-radius: 40%;
  transform: rotate(18deg);
}

.piggy .eye.l { left: 22px; transform: rotate(-18deg); }
.piggy .eye.r { right: 22px; }

.piggy .nose {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 28px;
  height: 16px;
  margin-left: -14px;
  background: #ff6d95;
  border-radius: 40%;
}

.piggy .nose::before,
.piggy .nose::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 5px;
  height: 6px;
  background: #2a1a20;
  border-radius: 50%;
}

.piggy .nose::before { left: 6px; }
.piggy .nose::after { right: 6px; }

.piggy .tag {
  position: absolute;
  left: -14px;
  top: 34px;
  padding: 3px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe56a, #ffb400);
  color: #ff2a63;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  transform: rotate(-16deg);
  box-shadow: 0 3px 0 rgba(180, 80, 0, 0.18);
}

.mini-car {
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 52px;
  height: 24px;
  background: linear-gradient(180deg, #d8ff4a, #a8e000);
  border-radius: 10px 16px 8px 8px;
  box-shadow: 0 6px 10px rgba(160, 40, 80, 0.16);
}

.mini-car::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -9px;
  width: 22px;
  height: 12px;
  background: #8fd000;
  border-radius: 8px 10px 0 0;
}

.mini-car::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background: #2a1a20;
  border-radius: 50%;
  box-shadow: 24px 0 0 #2a1a20;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -1px;
  height: 40px;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  z-index: 3;
}

main {
  position: relative;
  z-index: 4;
  margin-top: -28px;
  padding: 0 14px max(96px, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 760px) {
  .hero {
    min-height: 200px;
    padding: 22px 18px 58px;
  }

  .hero-copy {
    max-width: 62%;
  }

  .hero-art {
    right: 6px;
    width: 150px;
    height: 120px;
  }

  .gift-wrap {
    width: 130px;
    height: 108px;
  }

  .piggy {
    width: 68px;
    height: 68px;
    left: 36px;
  }
}

.card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(255, 61, 122, 0.08);
  padding: 18px 16px 16px;
  margin-bottom: 12px;
}

.notice-inline {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff4f7;
}

.notice-inline h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.notice-inline p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.notice-inline p + p {
  margin-top: 4px;
}

.notice-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pink);
  font-size: 12px;
  font-weight: 750;
  margin-top: 8px;
  padding: 0;
  cursor: pointer;
  display: block;
}

.agree {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.agree[hidden] {
  display: none !important;
}

.agree-mask {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 20, 0.55);
}

.agree-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 18px 50px rgba(160, 40, 80, 0.28);
}

.agree-panel h2 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 12px;
}

.agree-body {
  max-height: min(42dvh, 280px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 14px;
  background: #fff4f7;
  margin-bottom: 14px;
}

.agree-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.agree-body p + p {
  margin-top: 10px;
}

.agree-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.agree-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
  flex: 0 0 auto;
}

.agree-panel .cta {
  margin-top: 0;
}

.agree-panel .cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

body.agree-lock {
  overflow: hidden;
}

body.agree-lock .stage {
  pointer-events: none;
  user-select: none;
}

.action {
  text-align: center;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.timer b {
  display: inline-block;
  min-width: 78px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #1b1b1b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.timer span {
  font-size: 13px;
  color: var(--ink);
}

.action h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.sub,
.kami em,
.notice-inline p,
.step-block > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sub {
  margin: 6px 0 14px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: 4px;
  margin: 0 auto 16px;
  max-width: 420px;
}

.flow-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.flow-item b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe0eb;
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.flow-item.is-active b,
.flow-item.is-done b {
  background: var(--lime);
  color: var(--ink);
}

.flow > i {
  height: 2px;
  background: linear-gradient(90deg, #ffd0e0, var(--pink));
  border-radius: 999px;
}

.step-block {
  text-align: left;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7fa;
  border: 1px solid #ffe0eb;
}

.step-block + .step-block {
  margin-top: 10px;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.step-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--pink);
}

.step-head h3 {
  font-size: 16px;
}

.step-block .cta {
  margin-top: 12px;
}

.link-jump {
  display: inline-flex;
  margin-top: 10px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.kami {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.kami span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.kami strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 20px;
  letter-spacing: 0.03em;
  white-space: pre-line;
  word-break: break-all;
  line-height: 1.3;
}

.kami strong.is-empty {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.kami em {
  font-style: normal;
  font-size: 12px;
}

.cta-wrap {
  position: relative;
  padding-top: 18px;
}

.bubble {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  padding: 4px 10px;
  border-radius: 8px;
  background: #3a3a3a;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: #3a3a3a;
  transform: rotate(45deg);
}

.cta {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6aa3 0%, #ff3d7a 52%, #ff2a63 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 0 #e01858, 0 12px 20px rgba(255, 45, 99, 0.28);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.cta svg {
  width: 22px;
  height: 22px;
}

.cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.cta:not(:disabled):active {
  transform: translateY(2px);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.drawer[hidden] {
  display: none !important;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 20, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drawer-panel {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: 0 16px 48px rgba(160, 40, 80, 0.28);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.drawer.is-open .drawer-mask {
  opacity: 1;
}

.drawer.is-open .drawer-panel {
  opacity: 1;
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.drawer-step {
  font-size: 12px;
  font-weight: 800;
  color: var(--pink);
}

.drawer-head h3 {
  font-size: 18px;
  margin-top: 2px;
}

.drawer-close {
  appearance: none;
  border: 0;
  background: #fff0f4;
  color: var(--ink);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.drawer-panel .qr-tip {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #ff2a63;
  font-weight: 800;
  text-align: center;
}

.drawer-qr {
  margin: 0 auto 10px;
  padding: 10px;
  width: 220px;
  max-width: 100%;
  border-radius: 16px;
  background: #fff7fa;
  box-sizing: border-box;
}

.drawer-qr img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #fff;
}

.drawer-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.drawer-panel .cta {
  margin-top: 0;
}

body.drawer-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  top: 42%;
  z-index: 40;
  transform: translate(-50%, -10px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(30, 16, 24, 0.88);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.title span {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--lime);
  border-radius: 999px;
  z-index: -1;
}

#introText {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.gallery {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 14px;
  background: #fff0f4;
}

.guide-tip {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.qr-tip {
  margin: 0 0 4px;
  font-size: 13px;
  color: #ff2a63;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 760px) {
  .stage {
    width: min(430px, 100%);
  }

  .drawer {
    padding: 12px;
  }

  .drawer-panel {
    width: min(320px, 100%);
    padding: 14px 14px 16px;
  }

  .drawer-qr {
    width: min(200px, 72vw);
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .drawer-mask,
  .drawer-panel,
  .toast {
    transition: none;
  }
}
