/* 盧琴樹 LUCHINSHU（鷹速國際）雙11 線下門市掃碼抽獎・活動 landing
   品牌視覺：酒紅 #5C2331 / 深紅褐 #3D1722、金 #C6A15B、米白 #FBF6EE
   氛圍：米色放射線背景＋金色點綴，獎項/提醒區深紅褐漸層＋金框金字 */
:root {
  --wine: #5C2331;
  --wine-dark: #3D1722;
  --gold: #C6A15B;
  --gold-light: #E3C892;
  --gold-deep: #8C6A2F;
  --cream: #FBF6EE;
  --ink: #40222A;
  --danger: #A4231B;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  /* 米色放射線（上方灑下）＋金色圓點＋米白底 */
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, rgba(198, 161, 91, .18) 1.4px, transparent 1.6px),
    repeating-conic-gradient(from 180deg at 50% -140px, rgba(198, 161, 91, .12) 0deg 3deg, transparent 3deg 16deg),
    repeating-conic-gradient(from 180deg at 50% -140px, rgba(92, 35, 49, .05) 0deg 2deg, transparent 2deg 28deg);
  background-size: 30px 30px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
}

/* 手機優先置中欄 */
.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(198, 161, 91, .28), 0 18px 60px rgba(61, 23, 34, .12);
  background: transparent;
}
.wrap { padding: 0 16px 48px; }

/* ===== 1. 海報 hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  /* 海報含獎項區，勿用 4:5 cover 裁掉底部 */
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
}
.store-badge {
  display: none;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 14px auto 0;
  padding: 5px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--wine-dark);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(61, 23, 34, .35), inset 0 0 0 1px rgba(255, 253, 248, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-badge.on { display: block; }

/* ===== 星點裝飾（閃爍動畫） ===== */
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: var(--gold-light);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(227, 200, 146, .9);
  animation: twinkle 2.2s ease-in-out infinite;
}
.spark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fffdf6;
}
.hero .sp1 { top: 14%; left: 8%; }
.hero .sp2 { top: 8%; right: 10%; width: 7px; height: 7px; animation-delay: .7s; }
.hero .sp3 { top: 32%; right: 5%; width: 12px; height: 12px; animation-delay: 1.3s; }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: rotate(45deg) scale(.65); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.15); }
}

/* ===== 2. 標題列 ===== */
.title-block {
  position: relative;
  text-align: center;
  padding: 26px 12px 8px;
}
.kicker {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--gold-deep);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.35rem;
  letter-spacing: .1em;
  margin: 0;
  color: var(--wine);
  text-shadow: 0 2px 0 rgba(227, 200, 146, .55), 0 6px 18px rgba(92, 35, 49, .18);
}
.hero-sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .14em;
  margin: 6px 0 16px;
  color: var(--wine);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 6px 18px rgba(92, 35, 49, .30), inset 0 0 12px rgba(198, 161, 91, .18);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(227, 200, 146, .95);
  animation: chipGlow 1.8s ease-in-out infinite;
}
@keyframes chipGlow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(227, 200, 146, 1); }
}

/* ===== 卡片基底（金框＋四角菱形角飾） ===== */
.card {
  position: relative;
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(198, 161, 91, .65);
  box-shadow: 0 12px 32px rgba(61, 23, 34, .12), 0 2px 8px rgba(61, 23, 34, .06);
}
.card::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background-image:
    repeating-conic-gradient(from 0deg, var(--gold) 0 25%, transparent 0 50%),
    repeating-conic-gradient(from 90deg, var(--gold) 0 25%, transparent 0 50%);
  background-repeat: no-repeat;
  background-size: 11px 11px;
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;
  filter: drop-shadow(0 1px 1px rgba(61, 23, 34, .18));
}

/* 區塊標題 */
.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .18em;
  color: var(--wine);
  margin: 0 0 10px;
  text-align: center;
}
.sec-title::before, .sec-title::after {
  content: "◆";
  font-size: .6rem;
  color: var(--gold);
  margin: 0 10px;
  vertical-align: 3px;
}

/* ===== 3. 獎項板（深紅褐漸層＋金框金字） ===== */
.prize-board {
  padding: 24px 18px 20px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(198, 161, 91, .22), transparent 55%),
    linear-gradient(160deg, #6E2B3B 0%, var(--wine) 48%, var(--wine-dark) 100%);
  color: var(--cream);
  overflow: visible;
}
.board-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .22em;
  text-align: center;
  color: var(--gold-light);
  margin: 0 0 16px;
  padding-inline: 8px;
  max-width: 100%;
  text-shadow: 0 2px 10px rgba(20, 6, 10, .55);
}
.board-title .deco {
  font-size: .95rem;
  color: var(--gold);
  margin: 0 10px;
  vertical-align: 4px;
  animation: twinkle 2.6s ease-in-out infinite;
}
.prize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  padding-top: 16px; /* 留給 absolute、探出卡片上緣的獎項標籤 */
}
.prize {
  position: relative;
  min-width: 0;
  text-align: center;
  padding: 26px 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(198, 161, 91, .6);
  background: rgba(251, 246, 238, .07);
  box-shadow: inset 0 0 0 1px rgba(61, 23, 34, .25), inset 0 1px 0 rgba(251, 246, 238, .12);
  overflow: visible;
}
.prize-tag {
  position: absolute;
  z-index: 2;
  top: -11px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 2px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--wine-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 3px 8px rgba(20, 6, 10, .4), inset 0 0 0 1px rgba(255, 253, 248, .45);
  white-space: nowrap;
}
.prize-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--cream);
  margin: 0;
  line-height: 1.5;
}
.prize-name em {
  font-style: normal;
  color: var(--gold-light);
}
.prize-note {
  margin: 2px 0 6px;
  font-size: .8rem;
  color: rgba(251, 246, 238, .75);
}
.prize-count {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold-light);
  border-top: 1px dashed rgba(198, 161, 91, .55);
  padding-top: 5px;
  margin-top: 4px;
}
/* 頭獎：跨欄＋金底凸顯＋掃光 */
.prize-grand {
  grid-column: 1 / -1;
  padding: 30px 14px 18px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 58%, #B08A44 100%);
  border: 1px solid rgba(255, 253, 246, .65);
  box-shadow: 0 8px 22px rgba(20, 6, 10, .35), inset 0 0 0 1px rgba(140, 106, 47, .35);
  /* 不可 hidden：會裁掉 top:-11px 的「頭獎」標籤 */
  overflow: visible;
}
.prize-grand .prize-tag {
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.prize-grand .prize-name {
  font-size: 1.3rem;
  letter-spacing: .05em;
  color: var(--wine-dark);
  text-shadow: 0 1px 0 rgba(255, 253, 246, .5);
  max-width: 100%;
  overflow-wrap: anywhere;
  padding-inline: 8px;
}
.prize-grand .prize-name em { color: #7A2E3E; }
.prize-grand .prize-note { color: rgba(61, 23, 34, .72); }
.prize-grand .prize-count {
  color: var(--wine-dark);
  border-top-color: rgba(92, 35, 49, .4);
  font-size: .95rem;
}
.prize-grand::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%, transparent 100%);
  background-size: 220% 100%;
  animation: shineSlide 3.4s ease-in-out infinite;
  z-index: 0;
}
/* 只把文字抬到掃光上面。不可寫成 .prize-grand > *：
   那會蓋掉 .prize-tag 的 position:absolute，left:50% 會把「頭獎」推到卡片右緣。 */
.prize-grand > :not(.prize-tag) { position: relative; z-index: 1; }
@keyframes shineSlide {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -120% 0; }
}
.prize-grand .g1 { top: 12px; right: 14px; }
.prize-grand .g2 { bottom: 12px; left: 14px; width: 7px; height: 7px; animation-delay: 1s; }
/* 第四獎：補滿尾列全寬，版面平衡 */
.prize-grid .prize:last-child { grid-column: 1 / -1; }
@keyframes shine {
  0% { left: -45%; }
  55%, 100% { left: 125%; }
}

/* ===== 4. 活動資訊（米白亮卡） ===== */
.info-card {
  padding: 22px 20px;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--cream) 100%);
}
.info-list { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.info-list li { padding: 4px 0 4px 26px; position: relative; }
.info-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .55em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 1px 2px rgba(61, 23, 34, .25);
}
.info-list strong { color: var(--wine); }

/* ===== 5. 留言提醒（深紅褐漸層＋金框金字） ===== */
.warn-banner {
  position: relative;
  margin-top: 18px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--gold);
  background:
    radial-gradient(110% 100% at 50% -20%, rgba(198, 161, 91, .28), transparent 55%),
    linear-gradient(150deg, #6E2B3B 0%, var(--wine) 45%, var(--wine-dark) 100%);
  color: var(--cream);
  box-shadow: 0 12px 28px rgba(61, 23, 34, .32), inset 0 0 0 1px rgba(61, 23, 34, .3);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.warn-ic { display: block; margin-bottom: 8px; color: var(--gold-light); animation: twinkle 2.4s ease-in-out infinite; }
.warn-ic svg { width: 21px; height: 21px; vertical-align: -4px; filter: drop-shadow(0 0 6px rgba(227, 200, 146, .7)); }
.warn-ic svg + svg { margin-left: 8px; }
.warn-banner .big { font-size: 1.22rem; display: block; font-family: var(--serif); letter-spacing: .04em; }
.warn-banner .gold { color: var(--gold-light); text-shadow: 0 0 12px rgba(227, 200, 146, .45); }
.warn-banner .comment-phrase {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(251, 246, 238, .1);
  border: 1px solid rgba(198, 161, 91, .75);
  color: var(--gold-light);
  font-family: var(--serif);
  letter-spacing: .08em;
}

/* ===== 6. 表單卡 ===== */
.form-card {
  padding: 24px 20px;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--cream) 100%);
}
h2.form-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--wine);
  font-size: 1.4rem;
  letter-spacing: .12em;
  margin: 4px 0 6px;
  text-align: center;
}
.title-ic { width: 22px; height: 22px; vertical-align: -4px; margin-right: 4px; color: var(--gold-deep); }
.form-hint { text-align: center; color: #7a5c64; font-size: .9rem; margin: 0 0 14px; }

.field { margin-bottom: 16px; }
.field label.main {
  display: block;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 6px;
  font-size: .98rem;
}
.field label.main .req { color: var(--danger); }
.field .tip { font-size: .82rem; color: #93707a; margin-top: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background: #FFFDF8;
  border: 1.5px solid #dcc9b6;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .35);
  background: #fff;
}
input.invalid { border-color: var(--danger); background: #fdf3f2; }

/* radio 平台選擇（radio 隱藏＋pill 選中樣式） */
.platform-row { display: flex; gap: 10px; }
.platform-row input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.platform-row .pill {
  display: block;
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border: 1.5px solid #dcc9b6;
  border-radius: 12px;
  background: #FFFDF8;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.platform-row span { flex: 1; display: flex; }
.platform-row .pill { width: 100%; }
.platform-row .pill:hover { border-color: var(--gold); }
.platform-row input:checked + .pill {
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(92, 35, 49, .30), 0 0 0 3px rgba(198, 161, 91, .18);
}
.platform-row input:focus-visible + .pill {
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .45);
}
.order-channel-row .pill {
  letter-spacing: .02em;
  padding-left: 4px;
  padding-right: 4px;
}
.channel-tip {
  margin: 8px 0 0;
  font-size: .86rem;
  color: #7a5c64;
  line-height: 1.55;
}
#channelValue { display: none; }
.form-grid > .field-error { grid-column: 1 / -1; }
.field[hidden] { display: none !important; }

/* 個資全文 */
.privacy-box {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e7d6be;
  border-radius: 12px;
  background: #fffdf8;
  padding: 12px 14px;
  font-size: .82rem;
  line-height: 1.7;
  color: #5d4750;
}
.privacy-box h3 {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--wine);
  margin: 0 0 6px;
}
.privacy-box p { margin: 0 0 8px; }

/* 勾選區 */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e2d3bf;
  border-radius: 12px;
  background: #fffdf9;
  cursor: pointer;
  font-size: .92rem;
  transition: border-color .15s;
}
.check-row:hover { border-color: var(--gold); }
.check-row + .check-row { margin-top: 10px; }
.check-row.optional { border-style: dashed; color: #6d5560; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--wine); flex: none; }
.check-row input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 錯誤訊息（.on 才顯示） */
.field-error { color: var(--danger); font-size: .84rem; margin-top: 5px; display: none; }
.field-error.on { display: block; }
.form-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbf1ec;
  border: 1px solid #e6c4b8;
  color: var(--danger);
  font-size: .92rem;
  text-align: center;
  white-space: pre-line;
}
.form-error.on { display: block; }

/* ===== 按鈕 ===== */
.btn {
  display: block;
  width: 100%;
  padding: 15px 0;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--cream);
  border: 1px solid rgba(198, 161, 91, .75);
  box-shadow: 0 8px 22px rgba(92, 35, 49, .32), inset 0 0 14px rgba(198, 161, 91, .16);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--wine-dark);
  box-shadow: 0 4px 14px rgba(198, 161, 91, .5), inset 0 0 0 1px rgba(255, 253, 246, .5);
}
.btn-gold:hover { filter: brightness(1.05); }
button:disabled { cursor: not-allowed; }

/* ===== 7. 成功畫面（深紅金框・慶祝感） ===== */
.success-wrap {
  display: none;
  padding: 26px 22px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(198, 161, 91, .26), transparent 55%),
    linear-gradient(160deg, #6E2B3B 0%, var(--wine) 48%, var(--wine-dark) 100%);
  color: var(--cream);
  border: 1.5px solid var(--gold);
  overflow: hidden;
}
.success-wrap.on { display: block; }
.success-icon { margin: 4px 0 8px; }
.success-icon svg { width: 92px; height: 92px; filter: drop-shadow(0 0 14px rgba(227, 200, 146, .55)); animation: popIn .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes popIn {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.6rem;
  letter-spacing: .14em;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(20, 6, 10, .5);
}
.success-text { font-size: 1rem; margin: 0 0 6px; }
.success-text strong { color: var(--gold-light); }
.success-phrase {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .08em;
}
.countdown { color: var(--gold-light); font-weight: 700; margin: 10px 0 18px; }
.success-wrap .btn-gold { max-width: 320px; margin: 0 auto; }

/* ===== footer ===== */
footer.foot {
  text-align: center;
  margin-top: 32px;
  font-size: .8rem;
  color: var(--gold-deep);
}
footer.foot a { color: var(--wine); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ===== 動畫關閉（使用者偏好） ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 480px) {
  body { font-size: 18px; }
  .wrap { padding: 0 22px 56px; }
  .hero-title { font-size: 2.6rem; }
  .form-card, .info-card { padding: 28px 30px; }
  .prize-board { padding: 28px 24px 24px; }
}

/* 成功頁：追蹤粉專 */
.follow-box {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: rgba(251, 246, 238, .92);
  border: 1px solid rgba(198, 161, 91, .55);
  text-align: center;
}
.follow-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  color: var(--wine);
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.follow-text {
  margin: 0 0 12px;
  font-size: .9rem;
  color: #6a4a52;
  line-height: 1.5;
}
.follow-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-follow {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: none;
}
.btn-follow.fb { background: #1877F2; }
.btn-follow.ig {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}


/* ===== 桌面版（>=900px）：置中寬欄、光暈背景、雙欄表單 ===== */
@media (min-width: 900px) {
  /* 米白底＋柔和金色／酒紅放射光暈＋細金點 */
  body {
    background-color: #FAF6EE;
    background-image:
      radial-gradient(900px 520px at 10% -8%, rgba(198, 161, 91, .30), transparent 62%),
      radial-gradient(1000px 620px at 92% 2%, rgba(92, 35, 49, .15), transparent 60%),
      radial-gradient(1100px 760px at 50% 112%, rgba(198, 161, 91, .20), transparent 62%),
      radial-gradient(circle, rgba(198, 161, 91, .14) 1.4px, transparent 1.6px);
    background-size: auto, auto, auto, 30px 30px;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  }

  /* 置中寬欄，像浮在光暈上的一張大卡片 */
  .page {
    max-width: 820px;
    min-height: calc(100vh - 56px);
    margin: 28px auto;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 253, 248, .72), rgba(251, 246, 238, .55));
    box-shadow: 0 30px 80px rgba(61, 23, 34, .16), 0 0 0 1px rgba(198, 161, 91, .30);
  }
  .wrap { padding: 0 30px 60px; }

  /* 海報：維持原始比例不變形，圓角陰影置中 */
  .hero {
    margin: 24px 24px 0;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(61, 23, 34, .22), 0 0 0 1px rgba(198, 161, 91, .38);
  }
  .hero-img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .store-badge { margin-top: 22px; }

  /* 卡片呼吸感：更寬鬆的內距、間距與柔和陰影 */
  .card, .warn-banner { margin-top: 26px; }
  .card {
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(61, 23, 34, .13), 0 3px 10px rgba(61, 23, 34, .06);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(61, 23, 34, .16), 0 4px 12px rgba(61, 23, 34, .07);
  }
  .info-card, .form-card { padding: 34px 36px; }
  .warn-banner { padding: 24px 28px; }
  footer.foot { margin-top: 40px; }

  /* 表單雙欄：姓名+Email、電話+金額、平台+帳號 並排；full 跨整欄 */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
  }
  .form-grid .field { margin-bottom: 20px; }
  .form-grid .field.full { grid-column: 1 / -1; }
  .form-grid > .btn {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  /* 成功頁：追蹤按鈕並排、置中、等寬 */
  .follow-btns {
    flex-wrap: nowrap;
    gap: 14px;
    max-width: 440px;
    margin: 0 auto;
  }
  .btn-follow {
    flex: 1 1 0;
    padding: 13px 16px;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(61, 23, 34, .18);
  }
}

.prize-value {
  margin: 6px 0 0;
  font-size: .95rem;
  color: var(--wine);
  letter-spacing: .02em;
}
.prize-value strong {
  color: #8B1E2D;
  font-size: 1.15em;
}
.prize-grand .prize-value {
  background: rgba(255,255,255,.55);
  display: inline-block;
  max-width: calc(100% - 12px);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(198,161,91,.65);
  margin-top: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ===== 進站先選管道（只有形象＋兩個按鈕） ===== */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(36px, env(safe-area-inset-bottom));
  text-align: center;
}
#campaign { display: none; }
html.channel-preset #campaign,
html.channel-open #campaign { display: block; }
html.channel-preset .gate,
html.channel-open .gate { display: none; }

.gate-logo {
  width: min(78vw, 300px);
  aspect-ratio: 400 / 120;
  position: relative;
  overflow: hidden;
  margin: 0 auto 28px;
  border-radius: 18px;
  outline: 1px solid rgba(198, 161, 91, .55);
  box-shadow: 0 10px 24px rgba(61, 23, 34, .1);
}
/* hero-promo.jpg 1080×1531，標誌區塊約 x=340 y=30、400×120 */
.gate-logo img {
  position: absolute;
  width: 270%;
  height: 1275.833%;
  max-width: none;
  left: -85%;
  top: -25%;
  pointer-events: none;
}
.gate-actions {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gate-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 96px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(160deg, #6E2B3B 0%, var(--wine) 46%, var(--wine-dark) 100%);
  color: var(--cream);
  font-family: var(--serif);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(92, 35, 49, .28), inset 0 0 0 1px rgba(255, 253, 248, .08);
}
.gate-btn-line {
  background: linear-gradient(180deg, #FFFDF8 0%, var(--cream) 100%);
  color: var(--wine);
  box-shadow: 0 10px 24px rgba(61, 23, 34, .1), inset 0 0 0 1px rgba(255, 253, 248, .7);
}
.gate-btn-title {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.25;
}
.gate-btn-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold-light);
}
.gate-btn-line .gate-btn-sub { color: var(--gold-deep); }
.gate-btn:hover { filter: brightness(1.05); }
.gate-btn:active { transform: translateY(1px); }
.gate-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.gate-noscript {
  margin: 18px 0 0;
  color: var(--wine);
  font-size: .9rem;
}
#formCard { scroll-margin-top: 12px; }

@media (min-width: 900px) {
  html:not(.channel-open):not(.channel-preset) .page {
    margin: 0 auto;
    min-height: 100dvh;
    border-radius: 0;
  }
  .gate-actions { max-width: 460px; }
}
