:root {
  --ground: #fff6dc; --card: #fffdf6; --ink: #3b2a1e; --muted: #6e5b4a; --faint: #8f7c69;
  --rule: #eadfc4; --strong: #d6c49c; --yolk: #ffd54a; --yolk-edge: #d9a521; --accent: #b23a26; --ok: #2e7349;
  --sky: #d6ecfa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1e1914; --card: #29221b; --ink: #f5ebdd; --muted: #cbbba6; --faint: #a08f7a;
    --rule: #3d342a; --strong: #5c4f3f; --yolk: #f2c94c; --yolk-edge: #9c7714; --accent: #ff8f78; --ok: #7fd49d;
    --sky: #23303a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: anywhere; background: var(--ground); color: var(--ink); font: 16px/1.75 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; }
h1, h2 { line-height: 1.3; letter-spacing: .01em; }
h1 { font-size: 28px; margin: 4px 0 8px; }
h2 { font-size: 20px; margin: 40px 0 10px; display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 12px; height: 15px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: var(--yolk); box-shadow: inset 0 -2px 0 var(--yolk-edge); flex: none; }
p { margin: 8px 0; }
a { color: var(--accent); text-underline-offset: 3px; }
b { font-weight: 700; }

.top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding-bottom: 20px; border-bottom: 2px dashed var(--strong); }
.icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 4px 0 var(--rule); }
.kicker { font-size: 12px; color: var(--muted); letter-spacing: .12em; font-weight: 700; }
.lead { color: var(--muted); margin: 0; }
.egg { width: 76px; height: 92px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--card); border: 3px solid var(--yolk-edge);
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(8deg); color: var(--ink);
  font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 4px 0 var(--rule); }
.egg b { font-size: 28px; line-height: 1.1; }
@media (max-width: 480px) {
  .top { grid-template-columns: auto 1fr; }
  .egg { display: none; }
  .icon { width: 64px; height: 64px; border-radius: 17px; }
  h1 { font-size: 24px; }
}

.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots figure { flex: none; width: 190px; margin: 0; scroll-snap-align: start; }
.shots img, .rep img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); background: var(--card); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.reward { background: var(--card); border: 2px solid var(--yolk); border-radius: 18px; padding: 12px 18px; margin: 18px 0 12px; box-shadow: 0 4px 0 var(--rule); }
.reward b { color: var(--accent); }

ol, ul { padding-left: 1.4em; margin: 8px 0; }
li { margin: 6px 0; }
.steps li::marker { font-weight: 700; color: var(--accent); }

.slots { margin: 0 0 12px; font-weight: 700; }
.slots.off, .slots.full { color: var(--accent); background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 8px 12px; }

form { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 20px 18px; box-shadow: 0 4px 0 var(--rule); }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=email] { width: 100%; min-height: 48px; padding: 8px 14px; font: 16px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--ground); color: var(--ink); border: 2px solid var(--strong); border-radius: 14px; }
input[type=email]:focus { border-color: var(--yolk-edge); }
input:focus-visible, button:focus-visible, summary:focus-visible, a: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-color: var(--accent); }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 14px; line-height: 1.6; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.opt { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 2px 0; min-height: 44px; cursor: pointer; }
.opt input, .check input { width: 22px; height: 22px; flex: none; accent-color: var(--yolk-edge); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; }
button { width: 100%; min-height: 52px; margin-top: 10px; cursor: pointer; font: 700 17px "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #3b2a1e; background: var(--yolk); border: 0; border-radius: 999px; box-shadow: 0 5px 0 var(--yolk-edge); transition: transform .08s, box-shadow .08s; }
button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--yolk-edge); }
button:disabled { opacity: .5; cursor: default; }
.gbtn { background: var(--card); color: var(--ink); border: 2px solid var(--strong); box-shadow: none; font-weight: 500; margin: 0 0 4px; }
.gbtn:active:not(:disabled) { transform: none; box-shadow: none; }
.msg { margin-top: 16px; padding: 10px 14px; border-radius: 12px; display: none; }
.msg.show { display: block; }
.msg.ok { border: 2px solid var(--ok); color: var(--ok); font-weight: 700; }
.msg.err { border: 2px solid var(--accent); color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.rep { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.rep figure { margin: 0; width: calc(50% - 8px); min-width: 150px; max-width: 240px; }
.pins { position: relative; align-self: flex-start; }
.pin { position: absolute; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(178, 58, 38, .25); pointer-events: none; }
.pin.bug { left: 25.9%; top: 65.4%; } /* 嗷嗷 2026-11-08 截圖：小瓢蟲 */
.pin.wish { left: 72.9%; top: 69.0%; }
.tag { position: absolute; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.tag.bug { left: 11%; top: 57.5%; }
.tag.wish { right: 4%; top: 74.5%; }
@media (prefers-color-scheme: dark) { .tag { color: #1e1914; } }

details { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 2px 14px; margin: 8px 0; }
details[open] { padding-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
details p { color: var(--ink); }

footer { margin-top: 44px; padding-top: 16px; border-top: 2px dashed var(--strong); font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }

.steps { list-style: none; counter-reset: st; padding: 0; }
.steps li { counter-increment: st; background: var(--card); border: 2px solid var(--rule); border-radius: 18px; padding: 12px 16px; margin: 10px 0; }
.steps li::marker { content: none; }
.gobtn, .btn.dark { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 10px; font-weight: 700; font-size: 17px; text-decoration: none; color: #3b2a1e; background: var(--yolk); border-radius: 999px; box-shadow: 0 5px 0 var(--yolk-edge); }
.gobtn:active, .btn.dark:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yolk-edge); }

.lang { float: right; font-size: 14px; font-weight: 700; margin-left: 8px; }
.note-box { background: var(--card); border: 2px solid var(--rule); border-radius: 18px; padding: 10px 16px; }

/* 重要提示：磚紅色粗框、淡紅底與「重要」膠囊標籤（深色模式用珊瑚橘），一眼就看到 */
.note-box.important { background: var(--card); background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border: 3px solid var(--accent); font-weight: 500; }
.note-box.important b { color: var(--accent); }
.note-box .imp { display: inline-block; background: var(--accent); color: var(--ground); font-size: 13px; font-weight: 700;
  line-height: 1.55; padding: 0 10px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }

/* 螢幕閱讀器（盲人使用者）：只給讀螢幕唸、畫面上看不到的字；鍵盤按 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 18px; background: var(--ink); color: var(--ground); font-weight: 700; text-decoration: none; border-radius: 999px; }
.skip:focus { top: 12px; }
.note-box.done { border-color: var(--ok); font-weight: 700; margin: 0 0 8px; }
.shots { scroll-padding-left: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } button, .gobtn { transition: none; } }
.email-warn { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 2px solid var(--accent); 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(--accent)); outline-offset: 6px; border-radius: 8px;
  background: color-mix(in srgb, var(--alert, var(--accent)) 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(--accent)) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .attn { animation: none; } }
.msg.err { border-color: var(--alert, var(--accent)); color: var(--alert, var(--accent)); border-width: 2px; font-weight: 700; }

/* 封測進度（第幾天、截止、正式版上架；2026-10-28 使用者） */
.test-status { border: 2px solid var(--ok, var(--accent)); border-radius: 10px; padding: 12px 14px; margin: 16px 0;
  background: color-mix(in srgb, var(--ok, var(--accent)) 8%, transparent); }
.test-status.ended { border-color: var(--alert, var(--accent)); background: color-mix(in srgb, var(--alert, var(--accent)) 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 .gobtn, .test-status .btn { margin-top: 10px; }
.opt.off { opacity: .45; }
.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(--accent)); 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; } }

/* 官方 LINE 區塊（2026-11-07 照多益補上） */
.line { background: var(--card); border: 2px solid var(--rule); border-radius: 18px; padding: 16px; margin-top: 18px; }
.line h3 { margin: 0 0 6px; font-size: 18px; }
.line p { margin: 6px 0; }
.kw { font-weight: 700; color: var(--accent); }
.line .btn { display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--card); border: 2px solid var(--strong); border-radius: 999px; }
