/* 由 ToeicApp/tools/join-gen/gen.mjs 產生（母版樣式＋夜市合合樂配色）。要改配色請改 apps.json 再重新產生。 */
  :root {
    --ground: #F6F0E6; --card: #FFFBF5; --ink: #3D3530; --muted: #5F534A; --faint: #6E6259;
    --rule: #D9CBB6; --strong: #94672C; --accent: #A85C63; --ok: #3F6B52; --sel: #F1E3D4; --alert: #A23B45;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ground: #1E2433; --card: #283043; --ink: #F4EDE2; --muted: #D2CBC0; --faint: #BDB5AA;
    --rule: #3C4559; --strong: #F0D49A; --accent: #E2A9A4; --ok: #A3C0A9; --sel: #333B50; --alert: #F4A29A;
    }
  }
  * { box-sizing: border-box; }
  body { margin: 0; overflow-wrap: anywhere; background: var(--ground); color: var(--ink); font: 16px/1.7 "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
  main { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
  .mono { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; }
  h1, h2 { font-family: "Noto Serif TC", "PMingLiU", serif; line-height: 1.3; }
  h1 { font-size: 30px; margin: 8px 0 12px; }
  h2 { font-size: 20px; margin: 36px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
  .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
  .kicker { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
  .lead { color: var(--muted); margin: 0; }
  .stamp { flex: none; width: 92px; height: 92px; border: 3px solid var(--accent); border-radius: 50%; color: var(--accent);
    display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-9deg);
    font: 700 15px/1.25 "Noto Serif TC", serif; text-align: center; }
  .stamp b { font-size: 26px; }
  ol, ul { padding-left: 1.3em; margin: 8px 0; }
  li { margin: 6px 0; }
  .reward { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 12px 16px; margin: 16px 0; }
  .reward b { color: var(--accent); }
  form { background: var(--card); border: 1px solid var(--rule); padding: 20px 16px; margin-top: 12px; }
  label { display: block; font-weight: 700; margin-bottom: 4px; }
  input[type=email] { width: 100%; min-height: 44px; padding: 8px 12px; font: 16px "IBM Plex Mono", ui-monospace, Consolas, monospace;
    background: var(--ground); color: var(--ink); border: 1px solid var(--strong); border-radius: 2px; }
  input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, .shots:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  [tabindex="-1"]:focus { outline: none; }
  #stepsDone:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }
  input[aria-invalid="true"] { border: 2px solid var(--accent); }
  .gbtn { background: transparent; color: var(--ink); border: 1px solid var(--strong); font-weight: 500; margin: 0 0 4px; }
  .gbtn:hover:not(:disabled) { border-color: var(--accent); }
  .hint { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
  fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
  legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
  .opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0; min-height: 36px; align-items: center; }
  .opt input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
  .check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-weight: 400; }
  .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--accent); }
  button { width: 100%; min-height: 48px; font: 700 16px "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; cursor: pointer; margin-top: 8px;
    background: var(--ink); color: var(--ground); border: 1px solid var(--ink); border-radius: 2px; }
  button:disabled { opacity: .5; cursor: default; }
  .msg { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--strong); display: none; }
  .msg.show { display: block; }
  .msg.ok { border-color: var(--ok); color: var(--ok); font-weight: 700; }
  .msg.err { border-color: var(--accent); color: var(--accent); }
  .hp { position: absolute; left: -9999px; }
  .line { background: var(--card); border: 1px solid var(--rule); padding: 16px; margin-top: 16px; }
  .line h3 { margin: 0 0 6px; font: 700 17px "Noto Serif TC", "PMingLiU", serif; }
  .line p { margin: 6px 0; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); text-decoration: none; font-weight: 700; }
  .btn.dark { background: var(--ink); color: var(--ground); }
  .kw { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; color: var(--accent); font-weight: 700; }
  a { color: var(--accent); text-underline-offset: 3px; }
  .slots { margin: 0 0 12px; font-weight: 700; }
  .slots.full { color: var(--accent); border: 1px solid var(--accent); padding: 8px 12px; }
  .opt.off { opacity: .45; }
  details { margin: 8px 0; }
  .shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .shots figure { flex: none; width: 200px; margin: 0; scroll-snap-align: start; }
  .shots img, .rep img { display: block; width: 100%; height: auto; border: 1px solid var(--strong); border-radius: 6px; background: var(--card); }
  figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
  .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; }
  .pin { position: relative; }
  .pin::after { content: ""; position: absolute; left: 93.1%; top: 79.3%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(184, 57, 42, .25); pointer-events: none; }
  .pin span { position: absolute; right: 2%; top: 63%; background: var(--accent); color: var(--ground); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 2px; }
  summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
  footer { margin-top: 40px; font-size: 13px; color: var(--muted); }
  footer a { color: var(--muted); text-underline-offset: 3px; }
  .lang { float: right; font-size: 14px; font-weight: 700; margin: 0 0 8px 12px; }
  html[lang="en"] body { font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
  html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .stamp, html[lang="en"] .line h3 { font-family: Georgia, "Times New Roman", serif; }
  html[lang="en"] button { font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
  .note-box { background: var(--card); border: 1px solid var(--rule); padding: 10px 14px; font-size: 15px; }
  .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: 44px; margin: 0; padding: 8px 14px; border-radius: 2px;
    font: 700 13px "IBM Plex Mono", ui-monospace, Consolas, monospace; letter-spacing: .08em;
    background: var(--ink); color: var(--ground); border: 1px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
  .to-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

  .steps { list-style: none; counter-reset: st; padding: 0; }
  .steps li { counter-increment: st; background: var(--card); border: 1px solid var(--rule); padding: 12px 16px; margin: 10px 0; }
  .steps li p { margin: 8px 0 0; }
  .steps .btn { width: 100%; }

  @media (max-width: 480px) { .stamp { width: 64px; height: 64px; font-size: 12px; } .stamp b { font-size: 19px; } }
  /* 重要提示：紅色粗框與「重要」標籤，一眼就看到 */
  .note-box.important { background: var(--card); background: color-mix(in srgb, var(--alert) 12%, var(--card));
    border: 2px solid var(--alert); border-left-width: 8px; font-weight: 500; }
  .note-box.important b { color: var(--alert); }
  .note-box .imp { display: inline-block; background: var(--alert); color: var(--ground); font-size: 13px; font-weight: 700;
    line-height: 1.5; padding: 0 8px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
  @media (prefers-color-scheme: dark) { .note-box.important b { color: color-mix(in srgb, var(--alert) 65%, #fff); } }

  /* 螢幕閱讀器（盲人使用者）：只給讀螢幕唸、畫面上看不到的字；鍵盤按 Tab 才出現的「跳到登記表單」 */
  .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(--ink); color: var(--ground); font-weight: 700; text-decoration: none; }
  .skip:focus { top: 12px; }
  .note-box.done { border: 2px solid var(--ok); font-weight: 700; margin: 0 0 8px; }
  .shots { scroll-padding-left: 4px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.email-warn { background: color-mix(in srgb, var(--alert) 10%, transparent); border: 2px solid var(--alert); border-radius: 10px; padding: 10px 14px; margin: 4px 0 16px; font-size: 16px; font-weight: 500; }

/* 沒填或沒勾的那一組：紅框從外面收進來、晃一下、再閃三下；錯誤訊息也用提醒色（2026-10-28 使用者：未勾同意很不明顯） */
.attn { outline: 3px solid var(--alert, var(--alert)); outline-offset: 6px; border-radius: 8px;
  background: color-mix(in srgb, var(--alert, var(--alert)) 10%, transparent);
  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, var(--alert)) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .attn { animation: none; } }
.msg.err { border-color: var(--alert, var(--alert)); color: var(--alert, var(--alert)); border-width: 2px; font-weight: 700; }

/* 封測進度（第幾天、截止、正式版上架；2026-10-28 使用者） */
.test-status { border: 2px solid var(--ok, var(--alert)); border-radius: 10px; padding: 12px 14px; margin: 16px 0;
  background: color-mix(in srgb, var(--ok, var(--alert)) 8%, transparent); }
.test-status.ended { border-color: var(--alert, var(--alert)); background: color-mix(in srgb, var(--alert, var(--alert)) 8%, transparent); }
.test-status p { margin: 0; }
.test-status .ts-main { font-weight: 700; font-size: 17px; }
.test-status .ts-sub { margin-top: 6px; }
.test-status .btn { margin-top: 10px; }
.ts-bar { height: 10px; border-radius: 5px; margin: 10px 0 2px; overflow: hidden; background: color-mix(in srgb, currentColor 14%, transparent); }
.ts-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok, var(--alert)); 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); } }
@media (prefers-reduced-motion: reduce) { .ts-bar i, .test-status.appear { animation: none; } }

.msg.field-err { margin: 8px 0 6px; }

/* 重點小卡（2026-10-28 使用者：招募頁說明改成重點式） */
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; }
.facts li { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; 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 .ic { grid-row: span 2; font-size: 22px; line-height: 1.2; }
.facts b { font-size: 15px; }
.facts span:last-child { font-size: 14px; color: var(--muted); line-height: 1.45; }
.brief { padding-left: 20px; margin: 8px 0 16px; }
.brief li { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .facts li { animation: none; } }


/* ───── 夜市合合樂專屬設計「今日主題圓盤」（2026-11-08 使用者選 C）─────
   照 App 首頁：米白紙張、三角旗、圓盤外圈 1～5 號方塊是加入步驟、中間大獎是「開市」＝測滿 14 天的獎勵。
   夜晚（深色）是深藏青＋暖燕麥，和 App 的夜晚一樣。字型粉圓體（Google Fonts Huninn）。
   產生器 ToeicApp/tools/join-gen 用 apps.json 的 extraCssFile 接在 join.css 最後、heroHtml 放圓盤；只換色票不算自己的設計（skill recruit-join-site）。 */
body.mmdial {
  --tile1: #F4E7D6; --tile2: #EBD4C8; --tile3: #DCE5D3; --tile4: #D7DFEA; --tile5: #ECD8DE; --gold: #E6C477;
  --line: #4A3F38; --shadow: rgba(74, 63, 56, .22);
  font-family: "Huninn", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .55), transparent 40%),
    radial-gradient(rgba(120, 95, 70, .06) 1px, transparent 1.2px) 0 0 / 7px 7px,
    var(--ground);
}
@media (prefers-color-scheme: dark) {
  body.mmdial {
    --tile1: #4A4A55; --tile2: #54454B; --tile3: #3F4D47; --tile4: #3C4659; --tile5: #51434F; --gold: #C9A764;
    --line: #12161F; --shadow: rgba(0, 0, 0, .35);
    background: radial-gradient(rgba(240, 212, 154, .05) 1px, transparent 1.2px) 0 0 / 7px 7px, var(--ground);
  }
}
body.mmdial h1, body.mmdial h2, body.mmdial button, body.mmdial .line h3,
html[lang="en"] body.mmdial, html[lang="en"] body.mmdial h1, html[lang="en"] body.mmdial h2, html[lang="en"] body.mmdial button {
  font-family: "Huninn", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

/* 紙卡：細墨線＋右下錯位陰影 */
body.mmdial main {
  position: relative; background: var(--card); border: 1.5px solid var(--rule); border-radius: 28px;
  margin: 18px auto 28px; padding-top: 52px; box-shadow: 0 10px 30px var(--shadow);
}
@media (max-width: 680px) { body.mmdial main { margin: 10px 10px 20px; } }
/* 頂端一串三角旗（莫蘭迪四色） */
body.mmdial main::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 14px; height: 20px; border-top: 1px solid var(--muted);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20'%3E%3Cpath d='M3 0h22L14 18z' fill='%239DB3A0'/%3E%3Cpath d='M31 0h22L42 18z' fill='%23E1C27E'/%3E%3Cpath d='M59 0h22L70 18z' fill='%239FB6CF'/%3E%3Cpath d='M87 0h22L98 18z' fill='%23D9A3AB'/%3E%3C/svg%3E") 0 0 / 112px 20px repeat-x; pointer-events: none;
}
body.mmdial .top { display: block; text-align: center; border-bottom: 0; padding-bottom: 0; }
body.mmdial .stamp { display: none; }
body.mmdial .kicker { letter-spacing: .18em; }
body.mmdial h1 { color: var(--accent); font-size: clamp(24px, 7vw, 31px); letter-spacing: .06em; margin: 6px 0 10px; }
body.mmdial .lead { text-align: left; }
body.mmdial h2 { border-bottom: 1.5px dashed var(--rule); color: var(--ink); }
body.mmdial .lang { float: none; display: inline-block; margin: 0 0 4px; }

/* 首屏圓盤：外圈 1～5 號方塊、中間「開市」大獎 */
.dial-wrap { margin: 22px auto 6px; text-align: center; }
.dial {
  position: relative; width: min(320px, 80vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 70%, var(--ground)); border: 1.5px solid var(--rule); box-shadow: 0 7px 0 var(--rule);
}
.dial::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1.5px dashed var(--rule); }
.dial-c {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  border-radius: 50%; background: var(--gold); border: 1.5px solid var(--line); display: grid; place-items: center;
  animation: mm-pulse 2.6s ease-in-out infinite;
}
.dial-c img { width: 78%; height: auto; margin-top: -10%; }
.dial-c b {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--accent); color: var(--card); font-size: 13px; padding: 1px 10px; border-radius: 999px; border: 1.5px solid var(--line);
}
.dial-s {
  position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  border-radius: 16px; border: 1.5px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); display: grid; place-items: center;
  animation: mm-pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards;
}
.dial-s img { width: 84%; height: auto; }
.dial-s b {
  position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); font-size: 13px; line-height: 1;
}
.dial-s.s1 { background: var(--tile1); } .dial-s.s2 { background: var(--tile2); animation-delay: .08s; }
.dial-s.s3 { background: var(--tile3); animation-delay: .16s; } .dial-s.s4 { background: var(--tile4); animation-delay: .24s; }
.dial-s.s5 { background: var(--tile5); animation-delay: .32s; }
.dial-cap { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
@keyframes mm-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes mm-pulse { 50% { transform: translate(-50%, -50%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .dial-c, .dial-s { animation: none; } }

/* 獎勵框：紙卡＋粉色紙膠帶 */
body.mmdial .reward {
  position: relative; border: 1.5px solid var(--line); border-left-width: 1.5px; border-radius: 14px;
  box-shadow: 4px 4px 0 var(--rule); margin-top: 26px;
}
body.mmdial .reward::before {
  content: ""; position: absolute; top: -11px; left: calc(50% - 40px); width: 80px; height: 20px;
  background: rgba(214, 150, 160, .55); transform: rotate(-3deg);
}

/* 重點小卡：方塊色的小紙卡 */
body.mmdial .facts li { border-radius: 14px; border: 1.5px solid var(--rule); box-shadow: 3px 3px 0 var(--shadow); }
body.mmdial .facts li:nth-child(5n+1) { background: color-mix(in srgb, var(--tile1) 55%, var(--card)); }
body.mmdial .facts li:nth-child(5n+2) { background: color-mix(in srgb, var(--tile2) 55%, var(--card)); }
body.mmdial .facts li:nth-child(5n+3) { background: color-mix(in srgb, var(--tile3) 55%, var(--card)); }
body.mmdial .facts li:nth-child(5n+4) { background: color-mix(in srgb, var(--tile4) 55%, var(--card)); }
body.mmdial .facts li:nth-child(5n+5) { background: color-mix(in srgb, var(--tile5) 55%, var(--card)); }

/* 五個步驟：每一步前面是圓盤上同號的方塊 */
body.mmdial .steps li {
  position: relative; border-radius: 16px; border: 1.5px solid var(--rule); padding: 14px 16px 14px 74px; min-height: 76px;
  box-shadow: 3px 3px 0 var(--shadow);
}
body.mmdial .steps li::before {
  content: counter(st); position: absolute; left: 14px; top: 14px; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); content: "";
  background: var(--tile1) url(img/dial-1.png) center / 80% no-repeat;
}
body.mmdial .steps li::after {
  content: counter(st); position: absolute; left: 44px; top: 44px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; line-height: 1;
}
body.mmdial .steps li:nth-child(2)::before { background-color: var(--tile2); background-image: url(img/dial-2.png); }
body.mmdial .steps li:nth-child(3)::before { background-color: var(--tile3); background-image: url(img/dial-3.png); }
body.mmdial .steps li:nth-child(4)::before { background-color: var(--tile4); background-image: url(img/dial-4.png); }
body.mmdial .steps li:nth-child(5)::before { background-color: var(--tile5); background-image: url(img/dial-5.png); }

/* 按鈕：乾燥玫瑰膠囊（像 App 的「開始擺攤」） */
body.mmdial .btn.dark, body.mmdial button[type="submit"], body.mmdial #go {
  background: var(--accent); color: var(--card); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: 0 4px 0 var(--line);
}
body.mmdial .btn.dark:active, body.mmdial button[type="submit"]:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
body.mmdial .btn { border-radius: 999px; }
body.mmdial form, body.mmdial .line, body.mmdial .note-box { border-radius: 16px; }
body.mmdial .note-box.important { border-radius: 14px; }
body.mmdial input[type=email] { border-radius: 12px; }
body.mmdial .shots img { border-radius: 16px; border-color: var(--rule); }
body.mmdial .to-top { border-radius: 999px; }
