/* 珊瑚礁招募頁（2026-10-27 改成 App 自己的「深海 × 生物螢光」風格，不再用多益產生器的樣式）。
   底圖是 App 內建的深海珊瑚照片 bg_deep_garden（NOAA，公有領域）；面板照 ui/components/Glass.kt 的毛玻璃，
   按鈕照 BubbleActionButton／PillButton 的螢光青膠囊，色票照 ui/theme/Theme.kt（Abyss、Biolume、CoralPink、Sun、Pearl）。
   英文標題用襯線字（像海洋圖鑑），中文標題用黑體（App 的規則）。
   之後別再用 ToeicApp/tools/join-gen/gen.mjs 覆蓋這份 css；步驟、文案有改時手動同步 index.html 與 en/index.html。 */
:root {
  color-scheme: dark;
  --abyss: #04162B; --deep: #072540; --lagoon: #0B4F6C; --sheet: #061B2E;
  --ink: #F4EEE2; --muted: #BFD6DC; --faint: #9DB6BF;
  --bio: #5EF2E6; --bio-hi: #9CFFF4; --bio-lo: #3CC8C0;
  --coral: #FF8A6B; --sun: #FFD27A; --kelp: #8BD96B; --dark-ink: #0A1B2A;
  --glass-top: rgba(10, 46, 74, .62); --glass-bottom: rgba(4, 26, 46, .82); --glass-line: rgba(156, 255, 244, .28);
  --accent: var(--bio); --ok: var(--kelp); --alert: var(--coral);
}
* { box-sizing: border-box; }
html { background: var(--abyss); }
body {
  margin: 0; overflow-wrap: anywhere; color: var(--ink);
  font: 17px/1.75 "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background:
    linear-gradient(rgba(4, 22, 43, .35), rgba(4, 22, 43, .6) 45%, var(--abyss) 100%) top center / 100% 640px no-repeat,
    url("img/reef.jpg") top center / max(900px, 100%) auto no-repeat,
    radial-gradient(ellipse 120% 60% at 50% 100%, var(--lagoon), transparent 70%) bottom center / 100% 700px no-repeat,
    linear-gradient(var(--abyss), var(--deep));
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .line h3, html[lang="en"] summary { font-family: "Noto Serif", Georgia, serif; }
main { max-width: 640px; margin: 0 auto; padding: 28px 16px 80px; }
.mono { font-family: "Noto Sans TC", system-ui, sans-serif; }
b { color: var(--bio-hi); font-weight: 700; }
a { color: var(--bio-hi); text-underline-offset: 3px; }

/* 標題區：螢光小字、珍珠白大標、氣泡與「14 天」浮球 */
.top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 8px 0 24px; }
.top > div:first-child { flex: 1; min-width: 0; }
.kicker { font-size: 13px; font-weight: 700; color: var(--bio); letter-spacing: .28em; text-shadow: 0 0 10px rgba(94, 242, 230, .45); }
h1, h2, .line h3 { line-height: 1.35; }
html[lang="zh-Hant"] h1 { word-break: keep-all; }
h1 { font-size: 34px; margin: 8px 0 12px; color: var(--ink); letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.lead { color: var(--ink); margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubbles i { position: absolute; bottom: 0; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(156, 255, 244, .55);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), transparent 45%); animation: rise 7s linear infinite; opacity: 0; }
.bubbles i:nth-child(1) { left: 62%; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 70%; width: 6px; height: 6px; animation-delay: 2.3s; }
.bubbles i:nth-child(3) { left: 82%; width: 14px; height: 14px; animation-delay: 4.1s; }
.bubbles i:nth-child(4) { left: 90%; width: 8px; height: 8px; animation-delay: 5.6s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px); opacity: 0; } }
/* 「14 天」：發光的玻璃泡泡，像 App 首頁的圓形按鈕 */
.stamp { flex: none; position: relative; z-index: 1; width: 96px; height: 96px; margin-top: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .35), rgba(94, 242, 230, .18) 38%, rgba(4, 26, 46, .85) 72%);
  border: 1.5px solid var(--bio-hi); box-shadow: 0 0 0 5px rgba(94, 242, 230, .12), 0 0 26px rgba(94, 242, 230, .45), inset 0 -8px 18px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.2; }
.stamp b { color: var(--bio-hi); font-size: 32px; line-height: 1.05; text-shadow: 0 0 12px rgba(94, 242, 230, .8); }

/* 段落標題：螢光小圓點＋細線 */
h2 { font-size: 23px; margin: 44px 0 12px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bio); box-shadow: 0 0 10px var(--bio); }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--glass-line), transparent); }

/* 毛玻璃面板（Glass.kt）：深藍半透明、上亮下暗、細亮邊、圓角 24 */
.reward, form, .line, .note-box, .steps li, details {
  position: relative; background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-line); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 24px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.reward { padding: 20px 22px; margin: 22px 0 18px; font-size: 18px; text-align: center;
  border-color: rgba(156, 255, 244, .55); box-shadow: 0 0 24px rgba(94, 242, 230, .18), inset 0 1px 0 rgba(255, 255, 255, .12); }
.reward b { color: var(--sun); font-size: 20px; white-space: nowrap; }
.note-box { padding: 14px 18px; font-size: 16px; border-radius: 18px; }
.line { padding: 18px; margin-top: 16px; }
.line h3 { margin: 0 0 6px; font-size: 18px; color: var(--bio-hi); }
.line p { margin: 6px 0; }

/* 遊戲畫面：圓角手機框、螢光細邊 */
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-padding-left: 4px;
  scrollbar-color: var(--bio-lo) transparent; border-radius: 18px; }
.shots figure { flex: none; width: 168px; margin: 0; scroll-snap-align: start; text-align: center; }
.shots img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid rgba(156, 255, 244, .45);
  box-shadow: 0 0 18px rgba(94, 242, 230, .18), 0 10px 20px rgba(0, 0, 0, .5); }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* 步驟：螢光泡泡編號 */
ol, ul { padding-left: 1.3em; margin: 8px 0; }
li { margin: 6px 0; }
ul li::marker { color: var(--bio); }
.steps { list-style: none; counter-reset: st; padding: 0; }
.steps li { counter-increment: st; padding: 16px 18px 16px 66px; margin: 12px 0; }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--dark-ink);
  background: radial-gradient(circle at 35% 30%, var(--bio-hi), var(--bio) 60%, var(--bio-lo)); box-shadow: 0 0 12px rgba(94, 242, 230, .55); }
.steps li p { margin: 10px 0 0; }
.steps .btn { width: 100%; }

/* 按鈕：螢光青膠囊（亮→主色漸層、深色字、外發光），按下縮一點 */
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 22px;
  border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  color: var(--dark-ink); background: linear-gradient(90deg, var(--bio-hi), var(--bio)); border: 0;
  box-shadow: 0 0 0 4px rgba(94, 242, 230, .14), 0 0 22px rgba(94, 242, 230, .35); transition: transform .1s, box-shadow .1s; }
.btn:active, button:active:not(:disabled) { transform: scale(.97); box-shadow: 0 0 0 2px rgba(94, 242, 230, .2), 0 0 12px rgba(94, 242, 230, .3); }
.btn.dark { color: var(--dark-ink); }
button { width: 100%; margin-top: 10px; }
#go { font-size: 18px; min-height: 54px; }
button:disabled { opacity: .5; cursor: default; }
.gbtn { background: rgba(4, 26, 46, .6); color: var(--ink); border: 1px solid var(--glass-line); box-shadow: none; font-weight: 500; margin: 0 0 4px; }

/* 表單 */
form { padding: 24px 18px; margin-top: 12px; }
label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--bio-hi); }
input[type=email] { width: 100%; min-height: 50px; padding: 8px 16px; font: 17px ui-monospace, Consolas, monospace;
  background: rgba(4, 22, 43, .85); color: var(--ink); border: 1px solid var(--glass-line); border-radius: 16px; }
input[type=email]::placeholder { color: var(--faint); }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, .shots:focus-visible { outline: 3px solid var(--sun); 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(--coral); }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 16px; }
fieldset { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 4px; color: var(--bio-hi); }
.opt { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 4px 0; min-height: 40px; color: var(--ink); }
.opt input, .check input { width: 22px; height: 22px; flex: none; accent-color: var(--bio); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-weight: 400; color: var(--ink); }
.check input { margin-top: 4px; }
.opt.off { opacity: .45; }
.msg { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--glass-line); border-radius: 14px; display: none; }
.msg.show { display: block; }
.msg.ok { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.msg.err { border-color: var(--coral); color: var(--coral); }
.hp { position: absolute; left: -9999px; }
.kw { color: var(--sun); font-weight: 700; }
.slots { margin: 0 0 12px; font-weight: 700; color: var(--bio-hi); }
.slots.full { color: var(--coral); border: 1px solid var(--coral); border-radius: 14px; padding: 8px 12px; }

/* 常見問題 */
details { margin: 10px 0; padding: 0 18px; border-radius: 18px; }
summary { cursor: pointer; font-weight: 700; padding: 13px 0; color: var(--ink); }
summary::marker { color: var(--bio); }
details p { margin: 0 0 12px; }

footer { margin-top: 48px; font-size: 14px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }
.credit { font-size: 13px; color: var(--faint); }
.lang { position: relative; z-index: 2; float: right; font-size: 15px; font-weight: 700; margin: 0 0 8px 12px; padding: 4px 14px; border: 1px solid var(--glass-line);
  border-radius: 999px; text-decoration: none; background: rgba(4, 26, 46, .6); }
.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 16px; font-size: 14px; letter-spacing: .08em; }

/* 重要提示：珊瑚橘粗框 */
.note-box.important { background: linear-gradient(180deg, rgba(74, 30, 34, .85), rgba(44, 18, 30, .92)); border: 2px solid var(--coral); border-left-width: 8px; font-weight: 500; }
.note-box.important b { color: #FFB59F; }
.note-box .imp { display: inline-block; background: var(--coral); color: var(--dark-ink); font-size: 14px; font-weight: 700;
  line-height: 1.5; padding: 0 10px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.note-box.done { border: 2px solid var(--ok); font-weight: 700; margin: 0 0 8px; }

/* 螢幕閱讀器、鍵盤 */
.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(--bio); color: var(--dark-ink); font-weight: 700; text-decoration: none; border-radius: 12px; }
.skip:focus { top: 12px; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .stamp { width: 74px; height: 74px; margin-top: 36px; font-size: 12px; } .stamp b { font-size: 25px; }
  .shots figure { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, button { transition: none; } .bubbles { display: none; } }
.email-warn { background: color-mix(in srgb, var(--coral) 10%, transparent); border: 2px solid var(--coral); 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 .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(--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; } }
/* 重點小卡套這一頁的配色 */
.facts li { background: linear-gradient(var(--glass-top), var(--glass-bottom)); border-color: var(--glass-line); backdrop-filter: blur(6px); }
