/* 環球夜市大富翁招募頁（2026-10-28 改成 App 自己的「熱鬧版」風格：夕陽夜市插畫、貼紙卡、糖果按鈕、描邊大字，照 docs/design/style-v2.html；
   不再用多益產生器的樣式，之後不要再用產生器覆蓋，文案改動手動同步）。App 固定亮色，這頁也固定亮色。 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@500;700;900&family=Baloo+2:wght@700;800&display=swap");
:root {
  --cream: #FFF6E5; --paper: #FFFFFF; --cocoa: #4A2C1A; --cocoa-2: #7A4E33;
  --tomato: #FF5A3C; --tomato-d: #C93A22; --sun: #FFC93C; --sun-d: #D99A0B; --mint: #2EC4B6; --mint-d: #1C8F84; --pink: #FF7EB6;
  /* join.js 與共用段落用的名稱 */
  --ground: var(--cream); --card: var(--paper); --ink: var(--cocoa); --muted: var(--cocoa-2); --faint: #7F5E49;
  --rule: var(--cocoa); --strong: var(--cocoa); --accent: var(--tomato-d); --ok: #18756C; --sel: #FFE9C7; --alert: #B3261E;
  --font: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; --num: "Baloo 2", "Noto Sans TC", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: anywhere; color: var(--cocoa); font: 500 16px/1.7 var(--font);
  background: radial-gradient(circle at 12% 8%, #FFE3B8 0 140px, transparent 141px), radial-gradient(circle at 92% 46%, #FFE9C7 0 110px, transparent 111px), var(--cream); }
main { max-width: 660px; margin: 0 auto; padding: 20px 16px 72px; }
.mono { font-family: var(--num); }

/* ── 首屏：夕陽夜市插畫上的招牌 ── */
.top { position: relative; border: 3px solid var(--cocoa); border-radius: 26px; box-shadow: 6px 7px 0 var(--cocoa); overflow: hidden;
  background: url(img/hero.jpg) center 22% / cover, #F08A4B; padding: 150px 18px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.top > div:first-child { background: rgba(255, 255, 255, .94); border: 3px solid var(--cocoa); border-radius: 20px; box-shadow: 4px 5px 0 var(--cocoa); padding: 14px 16px 16px; }
.kicker { display: inline-block; font: 800 13px/1.5 var(--num); letter-spacing: .06em; color: var(--cocoa); background: var(--sun);
  border: 2.5px solid var(--cocoa); border-radius: 999px; padding: 1px 12px; box-shadow: 2px 3px 0 var(--cocoa); transform: rotate(-2deg); margin: 0 0 6px; }
h1 { font: 900 clamp(28px, 7vw, 40px)/1.2 var(--font); margin: 6px 0 8px; color: var(--tomato-d); text-wrap: balance;
  text-shadow: 0 3px 0 #FFD9B8; }
.lead { color: var(--cocoa-2); margin: 0; font-weight: 500; }
.lang { position: absolute; top: 14px; right: 14px; z-index: 2; font: 800 14px var(--num); color: var(--cocoa); background: #fff; text-decoration: none;
  border: 2.5px solid var(--cocoa); border-radius: 999px; padding: 4px 14px; box-shadow: 2px 3px 0 var(--cocoa); }
.lang:hover { background: var(--sun); }
/* 「招募中 14 天」做成 App 圖示的 GO 球 */
.stamp { flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, #FF8A6E 0 18%, var(--tomato-d) 62%); color: #fff; border: 4px solid var(--cocoa);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--cocoa), 4px 9px 0 3px var(--cocoa); font: 900 14px/1.15 var(--font); text-align: center;
  transform: rotate(-8deg); margin: 0 6px 6px 0; animation: bob 2.4s ease-in-out infinite; }
.stamp b { font: 800 34px/1 var(--num); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(-3deg); } }

/* ── 小標：貼紙標籤 ── */
h2 { display: inline-block; font: 900 21px/1.35 var(--font); margin: 40px 0 10px; padding: 4px 16px 5px; color: var(--cocoa);
  background: var(--sun); border: 3px solid var(--cocoa); border-radius: 14px; box-shadow: 3px 4px 0 var(--cocoa); transform: rotate(-1.5deg); }
#stepsTitle { background: var(--mint); }
#signup { background: #fff; }

/* ── 貼紙卡：白底、粗可可色邊、實心偏移陰影 ── */
.reward, form, .line, .note-box, .steps li, details { background: var(--paper); border: 3px solid var(--cocoa); border-radius: 20px; box-shadow: 5px 6px 0 var(--cocoa); }
.reward { margin: 22px 0 14px; padding: 14px 16px 14px 62px; position: relative; font-weight: 700; }
.reward::before { content: ""; position: absolute; left: 14px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF1A8, var(--sun) 55%, var(--sun-d)); border: 2.5px solid var(--cocoa); }
.reward b { color: var(--tomato-d); }
form { padding: 20px 16px; margin-top: 12px; }
.line { padding: 16px; margin-top: 16px; }
.line h3 { margin: 0 0 6px; font: 900 17px var(--font); }
.line p { margin: 6px 0; }
.note-box { padding: 12px 16px; font-size: 15px; margin: 16px 0; }
ol, ul { padding-left: 1.3em; margin: 8px 0; }
li { margin: 6px 0; }
a { color: var(--tomato-d); text-underline-offset: 3px; font-weight: 700; }

/* ── 表單 ── */
label { display: block; font-weight: 900; margin-bottom: 4px; }
input[type=email] { width: 100%; min-height: 48px; padding: 8px 14px; font: 700 17px var(--num); background: var(--cream); color: var(--cocoa);
  border: 3px solid var(--cocoa); border-radius: 14px; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, .shots:focus-visible { outline: 3px solid #1F7AE0; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
#stepsDone:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--alert); background: #FFF0EC; }
.hint { font-size: 14px; color: var(--cocoa-2); margin: 6px 0 16px; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { font-weight: 900; padding: 0; margin-bottom: 6px; }
.opt { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 6px 0; min-height: 44px; padding: 4px 12px;
  border: 2.5px solid var(--cocoa); border-radius: 14px; background: #fff; cursor: pointer; }
.opt:has(input:checked) { background: var(--sun); box-shadow: 2px 3px 0 var(--cocoa); }
.opt input { width: 22px; height: 22px; flex: none; accent-color: var(--tomato-d); }
.opt.off { opacity: .45; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 12px; font-weight: 700; }
.check input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--tomato-d); }

/* ── 糖果按鈕：粗邊、底下厚度、按下下沉、亮面高光 ── */
button, .btn { position: relative; overflow: hidden; font: 900 18px var(--font); cursor: pointer; border: 3px solid var(--cocoa); border-radius: 18px;
  box-shadow: 0 6px 0 var(--cocoa); transition: transform .08s, box-shadow .08s; }
button::before, .btn::before { content: ""; position: absolute; left: 12px; right: 12px; top: 5px; height: 7px; border-radius: 8px; background: rgba(255, 255, 255, .5); pointer-events: none; }
button:active:not(:disabled), .btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--cocoa); }
button { width: 100%; min-height: 54px; margin-top: 10px; padding: 10px 20px 12px; background: var(--tomato-d); color: #fff; text-shadow: 0 2px 0 rgba(74, 44, 26, .45); }
button:disabled { opacity: .55; cursor: default; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 18px 10px; color: var(--cocoa); background: #fff; text-decoration: none; }
.btn.dark { background: var(--sun); color: var(--cocoa); }
.gbtn { background: #fff; color: var(--cocoa); text-shadow: none; font-weight: 700; margin: 0 0 4px; }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20;
  width: auto; min-width: 56px; min-height: 48px; margin: 0; padding: 6px 16px 8px; font: 800 14px var(--num); background: var(--sun); color: var(--cocoa); text-shadow: none; }

/* ── 訊息 ── */
.msg { margin-top: 14px; padding: 10px 14px; border: 2.5px solid var(--cocoa); border-radius: 14px; display: none; background: #fff; }
.msg.show { display: block; }
.msg.ok { border-color: var(--ok); color: var(--ok); font-weight: 900; background: #E8F7F4; }
.msg.err { border-color: var(--alert); color: var(--alert); font-weight: 900; background: #FFF0EC; }
.msg.field-err { margin: 8px 0 6px; }
.hp { position: absolute; left: -9999px; }
.kw { font-family: var(--num); color: var(--tomato-d); font-weight: 800; }
.slots { margin: 0 0 12px; font-weight: 900; }
.slots.full { color: var(--alert); border: 2.5px solid var(--alert); border-radius: 14px; padding: 8px 12px; background: #FFF0EC; }
.email-warn { background: #FFF0EC; border: 2.5px solid var(--tomato-d); border-radius: 14px; padding: 10px 14px; margin: 4px 0 16px; font-size: 16px; font-weight: 700; }

/* ── 步驟：號碼做成關卡地圖的圓號 ── */
.steps { list-style: none; counter-reset: st; padding: 0; }
.steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 62px; margin: 14px 0; }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 800 19px var(--num); color: #fff; background: var(--tomato-d); border: 2.5px solid var(--cocoa); }
.steps li p { margin: 10px 0 0; }
.steps .btn { width: 100%; }

/* ── 重要提示 ── */
.note-box.important { background: #FFF0EC; border-color: var(--alert); box-shadow: 5px 6px 0 var(--alert); font-weight: 700; }
.note-box.important b { color: var(--alert); }
.note-box .imp { display: inline-block; background: var(--alert); color: #fff; font-size: 13px; font-weight: 900; line-height: 1.5; padding: 1px 10px;
  border-radius: 999px; margin-right: 4px; vertical-align: 1px; transform: rotate(-3deg); }
.note-box.done { border-color: var(--ok); box-shadow: 5px 6px 0 var(--ok); font-weight: 900; margin: 0 0 8px; }

/* ── 常見問題：一張張小卡 ── */
details { margin: 12px 0; padding: 0 16px; }
summary { cursor: pointer; font-weight: 900; padding: 12px 0; list-style: none; display: flex; gap: 10px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--num);
  background: var(--sun); border: 2.5px solid var(--cocoa); transition: transform .2s; }
details[open] summary::before { transform: rotate(45deg); }
details p { margin: 0 0 12px; }

/* ── 截圖 ── */
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-padding-left: 4px; }
.shots figure { flex: none; width: 190px; margin: 0; scroll-snap-align: start; }
.shots img, .rep img { display: block; width: 100%; height: auto; border: 3px solid var(--cocoa); border-radius: 18px; box-shadow: 4px 5px 0 var(--cocoa); background: #fff; }
figcaption { font-size: 14px; font-weight: 700; color: var(--cocoa-2); margin-top: 8px; text-align: center; }
.rep { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.rep figure { margin: 0; width: calc(50% - 8px); min-width: 180px; max-width: 240px; }

footer { margin-top: 44px; font-size: 13px; color: var(--cocoa-2); text-align: center; }
footer a { color: var(--cocoa-2); }

/* ── 螢幕閱讀器、跳到表單 ── */
.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; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 30; padding: 10px 16px; background: var(--cocoa); color: #fff; font-weight: 900; text-decoration: none; border-radius: 12px; }
.skip:focus { top: 12px; }

/* 沒填或沒勾的那一組：紅框從外面收進來、晃一下、再閃三下（2026-10-28 使用者：未勾同意很不明顯） */
.attn { outline: 3px solid var(--alert); outline-offset: 6px; border-radius: 14px; background: #FFF0EC;
  animation: attn-in .35s ease-out, attn-shake .4s ease-in-out .35s, attn-blink .7s ease-in-out .75s 3; }
@keyframes attn-in { from { outline-offset: 18px; outline-color: transparent; } }
@keyframes attn-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes attn-blink { 50% { outline-color: color-mix(in srgb, var(--alert) 25%, transparent); } }

/* 封測進度（第幾天、截止、正式版上架；2026-10-28 使用者） */
.test-status { border: 3px solid var(--cocoa); border-radius: 20px; padding: 14px 16px; margin: 18px 0; background: #E8F7F4; box-shadow: 5px 6px 0 var(--cocoa); }
.test-status.ended { background: #FFF0EC; }
.test-status p { margin: 0; }
.test-status .ts-main { font-weight: 900; font-size: 17px; }
.test-status .ts-sub { margin-top: 6px; }
.test-status .btn { margin-top: 12px; }
.ts-bar { height: 14px; border-radius: 999px; margin: 10px 0 2px; overflow: hidden; background: #fff; border: 2.5px solid var(--cocoa); }
.ts-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--mint) 0 10px, #5ED8CB 10px 20px); transform-origin: left; animation: ts-grow .9s ease-out; }
@keyframes ts-grow { from { transform: scaleX(0); } }
.test-status.appear { animation: ts-in .28s ease-out; }
@keyframes ts-in { from { opacity: 0; transform: translateY(12px); } }

/* 重點小卡（2026-10-28 使用者：招募頁說明改成重點式） */
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.facts li { margin: 0; background: #fff; border: 2.5px solid var(--cocoa); border-radius: 16px; box-shadow: 3px 4px 0 var(--cocoa); padding: 10px 12px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; animation: ts-in .28s ease-out backwards; }
.facts li:nth-child(2) { animation-delay: .05s; } .facts li:nth-child(3) { animation-delay: .1s; } .facts li:nth-child(4) { animation-delay: .15s; } .facts li:nth-child(5) { animation-delay: .2s; } .facts li:nth-child(6) { animation-delay: .25s; }
.facts li:nth-child(4n+1) .ic { background: var(--sun); } .facts li:nth-child(4n+2) .ic { background: #BFEFEA; }
.facts li:nth-child(4n+3) .ic { background: #FFD3DF; } .facts li:nth-child(4n) .ic { background: #FFE0D6; }
.facts .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--cocoa); display: grid; place-items: center; font-size: 20px; }
.facts b { font-size: 16px; font-weight: 900; }
.facts span:last-child { font-size: 14px; color: var(--cocoa-2); line-height: 1.45; }
.brief { padding-left: 20px; margin: 8px 0 16px; }
.brief li { margin: 4px 0; }

html[lang="en"] body, html[lang="en"] button, html[lang="en"] h1, html[lang="en"] h2 { font-family: "Baloo 2", system-ui, "Segoe UI", Arial, sans-serif; }
html[lang="en"] h1 { font-weight: 800; }

@media (max-width: 480px) {
  .top { padding-top: 120px; grid-template-columns: 1fr; }
  .stamp { position: absolute; top: 14px; left: 14px; width: 84px; height: 84px; font-size: 12px; margin: 0; }
  .stamp b { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp, .attn, .ts-bar i, .test-status.appear, .facts li { animation: none; }
  button, .btn { transition: none; }
}

/* 標題第二行（招募字樣）小一號、可可色 */
h1 small { display: block; font-size: .62em; color: var(--cocoa); text-shadow: none; }
