/* EnQuest — 純白、細線、以字為主
   色彩只有墨色一種主色；綠／紅只用在答題對錯 */
:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #8a8a8a;
  --line: #ececec;
  --line-2: #dcdcdc;
  --soft: #f7f7f5;
  --ok: #1f7a4c;
  --ok-soft: #eef6f1;
  --bad: #b3261e;
  --bad-soft: #fbefee;
  --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --r: 14px;
  --maxw: 680px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: .01em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
small { font-size: 13px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.grow { flex: 1; min-width: 0; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 500 11px/1 var(--sans); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; flex: none; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 500; padding: 12px 22px; border-radius: 999px; transition: opacity .15s, transform .1s; white-space: nowrap; }
.btn:hover:not(:disabled) { opacity: .86; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: var(--soft); color: var(--muted); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.lg { padding: 15px 30px; font-size: 16px; }
.btn.block { width: 100%; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--ink); }
.link.danger { color: var(--bad); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--soft); }
.spk { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); flex: none; transition: background .15s; }
.spk:hover { background: var(--soft); }
.spk.sm { width: 30px; height: 30px; }
.spk.sm .ic { width: 16px; height: 16px; }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 14px; margin: 4px; }
.pill:hover { border-color: var(--ink); }
.cefr { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; margin-right: 8px; color: var(--ink-2); vertical-align: 1px; }
.line { height: 2px; background: var(--line); margin: 12px 0 8px; }
.line i { display: block; height: 100%; background: var(--ink); transition: width .6s ease; }
.dots3 { display: inline-flex; gap: 4px; }
.dots3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.dots3 i.on { background: var(--ink); }

/* ---------- 介紹頁 ---------- */
.landing { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lp-hero { padding: 96px 0 72px; max-width: 760px; }
.kicker { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 18px; margin-bottom: 20px; }
.lp-hero h1 { font-family: var(--serif); font-size: clamp(38px, 6.4vw, 68px); line-height: 1.18; letter-spacing: .01em; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin: 28px 0 36px; line-height: 1.8; }
.lp-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.sample { margin: 0 0 40px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.sample figcaption { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.sample-q { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.4; }
.sample figcaption span { margin-left: 8px; color: var(--ink-2); }
.sample-a { font-size: 17px; padding-left: 16px; border-left: 2px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.sample-a small { font-size: 13px; color: var(--ok); }
.sample-a.bad { border-color: var(--line-2); color: var(--muted); }
.sample-a.bad span { text-decoration: line-through; text-decoration-color: var(--line-2); }
.sample-a.bad small { color: var(--bad); }
.lp-sec { padding: 64px 0; border-bottom: 1px solid var(--line); }
.lp-sec h2, .lp-final h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 40px; }
.methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.methods li { display: flex; gap: 20px; }
.num { font-family: var(--serif); color: var(--muted); font-size: 15px; min-width: 24px; padding-top: 2px; }
.methods h3 { font-size: 18px; margin-bottom: 6px; font-weight: 600; }
.methods p { color: var(--ink-2); }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.route { padding: 28px 28px 8px 0; }
.route + .route { padding-left: 28px; border-left: 1px solid var(--line); }
.route h3 { font-family: var(--serif); font-size: 24px; }
.route-for { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.route > p:not(.route-for) { color: var(--ink-2); font-size: 15px; min-height: 52px; }
.route ul { list-style: none; padding: 0; margin: 20px 0 0; }
.route li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--ink); }
.flow li { padding: 22px 0 0; display: flex; flex-direction: column; gap: 6px; }
.flow b { font-size: 17px; font-weight: 600; }
.flow small { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.lp-final { text-align: center; padding: 96px 0; }
.lp-final h2 { margin-bottom: 12px; }
.lp-final .btn { margin-top: 32px; }
.lp-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 0 40px; border-top: 1px solid var(--line); }

/* ---------- 引導 ---------- */
.ob { max-width: 520px; margin: 0 auto; padding: 16px 24px 48px; }
.ob-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.step-count { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.ob-body h1 { font-family: var(--serif); font-size: 32px; margin-bottom: 10px; }
.ob-body > p { margin-bottom: 32px; }
.choice { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: padding .15s; }
.choice:first-of-type { border-top: 1px solid var(--line); }
.choice:hover { padding-left: 10px; }
.choice b { display: block; font-size: 18px; font-weight: 600; }
.choice small { color: var(--muted); font-size: 14px; }
.radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; margin-left: auto; }
.choice.on .radio { box-shadow: inset 0 0 0 6px var(--ink); }

/* ---------- 主畫面框架 ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 24px calc(96px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hud { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.stat b { color: var(--ink); font-weight: 600; font-size: 15px; margin-right: 2px; font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring.full .ring-fg { stroke: var(--ok); }
.ring b { font-size: 10px; color: var(--ink); font-weight: 600; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; padding: 0 0 env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar button { flex: 1; max-width: 150px; padding: 18px 0 16px; font-size: 14px; color: var(--muted); position: relative; }
.tabbar button.on { color: var(--ink); font-weight: 600; }
.tabbar button.on::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--ink); }
.dot { position: absolute; top: 12px; margin-left: 4px; font-style: normal; font-size: 10px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 999px; padding: 0 5px; line-height: 16px; }
.page { padding-top: 32px; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.page-h { font-family: var(--serif); font-size: 32px; margin-bottom: 28px; }
.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 13px; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }

/* 學習頁 */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 32px; }
.abil { cursor: pointer; }
.abil ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.abil li { padding: 2px 0; }
.abil li::before { content: "— "; color: var(--muted); }
.title { font-family: var(--serif); font-size: 28px; }
.figure { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.figure span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.cta { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 22px 24px; background: var(--ink); color: #fff; border-radius: var(--r); transition: opacity .15s; }
.cta:hover { opacity: .9; }
.cta small { display: block; opacity: .6; font-size: 13px; margin-bottom: 2px; }
.cta b { font-size: 18px; font-weight: 600; }
.cta .ic { width: 22px; height: 22px; }
.cta.done { background: var(--soft); color: var(--ink-2); }
.notice { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px 0; margin-top: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.notice > span:last-child { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tabs { display: flex; gap: 28px; margin: 40px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 12px 0; color: var(--muted); font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.course-desc { color: var(--muted); font-size: 14px; margin: 16px 0 8px; }
.cta-goal { margin: 4px 0 0 !important; opacity: .7 !important; }
.missions { border-top: 1px solid var(--line); margin-top: 8px; }
.mission { width: 100%; display: flex; gap: 18px; align-items: flex-start; text-align: left; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .15s; }
.mission:hover:not(:disabled) { padding-left: 8px; }
.mission .u-num { padding-top: 4px; }
.mission .grow { display: flex; flex-direction: column; gap: 4px; }
.m-title { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.35; }
.m-goal-s { color: var(--ink-2); font-size: 15px; }
.m-state { font-size: 13px; color: var(--muted); padding-top: 6px; white-space: nowrap; }
.mission:not(:disabled) .m-state { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.m-grade { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; padding-top: 2px; min-width: 28px; text-align: center; }
.mission:disabled { opacity: .45; }

/* 片語卡頁 */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.nums b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.2; }
.nums small { color: var(--muted); }
.nums b span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.today-w .link { font-size: 14px; }
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.bands div { border-top: 1px solid var(--line); padding-top: 10px; }
.bands small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.bands b { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.bands span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.themes { list-style: none; margin: 0; padding: 0; }
.theme { border-bottom: 1px solid var(--line); }
.theme-h { width: 100%; display: flex; align-items: center; gap: 4px; padding: 16px 0 10px; text-align: left; }
.theme-h b { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.theme-h small { font-size: 12px; color: var(--ok); margin-left: 10px; }
.t-n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.theme.done .t-n { color: var(--ok); }
.theme.open .theme-h b { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.mastery.wide { width: 100%; margin-bottom: 14px; }
.theme.done .mastery i { background: var(--ok); }
.theme-body { padding-bottom: 16px; }
.theme-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 4px 0 12px; }
.theme-acts small { flex-basis: 100%; }
.cardlist li.todo { color: var(--muted); }
.cardlist li.todo b { color: var(--muted); font-weight: 600; }
.mdeck summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 4px 0 12px; }
.deck { padding-bottom: 20px; }
.deck h3 { font-family: var(--serif); font-size: 18px; padding: 8px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.deck h3 small { font-family: var(--sans); font-weight: 400; color: var(--muted); }
.deck-k { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-top: 10px; }
.can-h { font-family: var(--serif); font-size: 17px; margin: 18px 0 2px; }
.cando { list-style: none; margin: 0; padding: 0; }
.cando li { display: flex; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.cando li.got { color: var(--ink); }
.cando li.got .b-state { color: var(--ok); }
.m-grade small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.ear-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.ear-row span { flex: 1; }
.ear-row b { display: block; font-weight: 600; }
.ear-row small { color: var(--muted); }
.en-hidden { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.banner.can { font-family: var(--serif); font-size: 18px; font-weight: 700; border-top: 1px solid var(--ink); }
.words-line { margin-top: 12px; }
.cardlist { list-style: none; margin: 0; padding: 0; }
.cardlist li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.cardlist li:last-child { border-bottom: 0; }
.cardlist b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.cardlist small { display: block; color: var(--muted); }
.lvbox { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.lv { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; color: var(--ok); flex: none; }
.block .fine { margin-top: 12px; }
.row-h { display: flex; justify-content: space-between; align-items: baseline; }
.wlist { list-style: none; margin: 0; padding: 0; }
.wlist li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wlist li:last-child { border: 0; }
.wlist b { display: block; font-weight: 600; }
.wlist small { color: var(--muted); }
.mastery { width: 56px; height: 2px; background: var(--line); flex: none; }
.mastery i { display: block; height: 100%; background: var(--ink); }

/* 成就頁 */
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 180px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-2); }
.track .b { width: 100%; max-width: 28px; min-height: 0; background: var(--line-2); }
.track .b.hit { background: var(--ink); }
.col .v { font-size: 11px; color: var(--muted); height: 16px; font-variant-numeric: tabular-nums; }
.col .d { font-size: 12px; color: var(--muted); }
.col .d.now { color: var(--ink); font-weight: 600; }
.chart + .fine { margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-bottom: 0; }
.st { padding: 22px 16px 22px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.st small { color: var(--muted); }
.st b { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }
.st span { font-size: 12px; min-height: 18px; }
.badges { list-style: none; margin: 0; padding: 0; }
.badges li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.badges li b { display: block; font-weight: 500; }
.badges li.got { color: var(--ink); }
.badges li.got b { font-weight: 600; }
.badges li small { color: var(--muted); }
.b-state { font-size: 12px; }
.badges li.got .b-state { color: var(--ok); }

/* 設定頁 */
.set .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set .row:last-child { border: 0; }
.set .row > span small { display: block; color: var(--muted); }
.set > p { margin-bottom: 8px; }
.set select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 34px 8px 12px; max-width: 220px; font-size: 14px; }
.set input[type=range] { width: 150px; accent-color: var(--ink); }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(18px); }
.about { text-align: center; font-size: 13px; padding: 24px 0; }

/* ---------- 課程播放器 ---------- */
.player { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 0 24px; }
.p-top { display: flex; align-items: center; gap: 16px; padding: 16px 0; position: sticky; top: 0; background: #fff; z-index: 5; }
.p-bar { flex: 1; height: 2px; background: var(--line); }
.p-bar i { display: block; height: 100%; background: var(--ink); transition: width .4s ease; }
.p-hud { min-width: 56px; text-align: right; font-size: 13px; color: var(--muted); }
.lives { display: inline-flex; gap: 5px; }
.lives i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s; }
.lives i.on { background: var(--ink); box-shadow: none; }
.combo-hud { color: var(--ink); font-weight: 500; }
.p-body { flex: 1; padding: 24px 0 180px; }
.q { animation: enter .35s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.q-label { font-size: 13px; letter-spacing: .12em; color: var(--muted); margin-bottom: 28px; }
.q-label.sm { margin: 32px 0 12px; }
.q-word { font-family: var(--serif); font-size: 44px; font-weight: 700; display: flex; align-items: center; gap: 16px; margin-bottom: 8px; line-height: 1.25; }
.q-word.zh { font-size: 36px; }
.q-sent { font-family: var(--serif); font-size: 24px; line-height: 1.75; padding: 8px 0 4px; }
.blank { display: inline-block; min-width: 96px; border-bottom: 2px solid var(--ink); margin: 0 4px; }
.q-zh { font-family: var(--serif); font-size: 22px; line-height: 1.6; }
.q-zh.sm { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.listen-box { display: flex; align-items: center; gap: 20px; margin: 8px 0 28px; }
.play { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .1s, opacity .15s; }
.play .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.play:hover { opacity: .88; }
.play:active { transform: scale(.96); }
.slow { font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.opts { display: grid; gap: 10px; margin-top: 28px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; transition: box-shadow .15s, background .15s; }
.opt:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.opt.right { box-shadow: inset 0 0 0 1.5px var(--ok); background: var(--ok-soft); color: var(--ok); }
.opt.wrong { box-shadow: inset 0 0 0 1.5px var(--bad); background: var(--bad-soft); color: var(--bad); animation: shake .3s; }
.opt:disabled:not(.right):not(.wrong) { color: var(--muted); }
@keyframes shake { 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.flash { padding: 8px 0; }
.flash-en { font-family: var(--serif); font-size: 52px; font-weight: 700; display: flex; align-items: center; gap: 18px; line-height: 1.2; }
.flash-zh { font-size: 20px; color: var(--ink-2); margin: 10px 0 36px; }
.flash-ex { display: flex; gap: 14px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; }
mark { background: none; color: inherit; box-shadow: inset 0 -0.4em 0 #efece4; }
.tipcard h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 16px; }
.tipcard > p { font-size: 17px; color: var(--ink-2); line-height: 1.9; margin-bottom: 28px; }
.tipcard b { color: var(--ink); }
.tipcard ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tipcard li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tipcard li b { font-family: var(--serif); font-size: 17px; }
.tipcard li small { display: block; color: var(--muted); }
.zone { min-height: 68px; border-bottom: 1px solid var(--ink); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 24px; transition: background .2s; }
.zone.right { border-color: var(--ok); }
.zone.wrong { border-color: var(--bad); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.tok { padding: 9px 15px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; background: #fff; transition: box-shadow .12s; }
.tok:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tok.used { background: var(--soft); box-shadow: none; color: transparent; pointer-events: none; }
.hintline { font: 500 20px/1 ui-monospace, "SF Mono", monospace; color: var(--muted); letter-spacing: 3px; margin: 20px 0 8px; }
.answer-in { width: 100%; font-family: var(--serif); font-size: 26px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; margin-top: 16px; outline: none; border-radius: 0; }
.answer-in:focus { border-color: var(--ink); }
.answer-in::placeholder { color: #c4c4c4; font-family: var(--sans); font-size: 18px; }
.speak-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.speak-card .q-zh { grid-column: 2; }
.speak-en { font-family: var(--serif); font-size: 28px; line-height: 1.5; }
.speak-en span { transition: color .2s; }
.speak-en .hit { color: var(--ok); }
.speak-en .miss { color: var(--bad); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mic-btn { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 56px auto 12px; font-size: 14px; color: var(--ink-2); }
.mic-ic { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); transition: background .2s, color .2s; }
.mic-ic .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.mic-btn:hover .mic-ic { background: var(--soft); }
.mic-btn.on .mic-ic { background: var(--ink); color: #fff; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 10px rgba(20, 20, 20, .06); } }
.mic-status { text-align: center; color: var(--muted); font-size: 14px; min-height: 48px; }
.mic-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 15px; }
.mic-line:hover { border-color: var(--ink); }
.mic-line.on { border-style: solid; border-color: var(--ink); background: var(--soft); }
.scene { display: flex; flex-direction: column; gap: 2px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.scene small { color: var(--muted); }
.scene b { font-family: var(--serif); font-size: 24px; }
.chat { display: grid; gap: 16px; }
.msg { display: flex; animation: enter .3s ease; }
.msg.me { justify-content: flex-end; }
.bubble { max-width: 86%; padding: 14px 18px; border-radius: 14px; background: var(--soft); font-size: 16px; }
.who { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.line-row { display: flex; gap: 10px; align-items: flex-start; font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.bubble small { display: block; color: var(--muted); margin-top: 6px; }
.me .bubble { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--serif); font-size: 17px; }
.reveal { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* 簡報 */
.p-crumb { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.brief .p-body { padding-top: 16px; }
.brief-h { font-family: var(--serif); font-size: 40px; line-height: 1.2; margin-bottom: 16px; }
.story { font-size: 17px; color: var(--ink-2); line-height: 1.85; }
.goal { margin: 32px 0 0; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.goal small { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.goal p { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.5; margin-top: 4px; }
.rules { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 40px; margin: 22px 0 10px; }
.rules dt { font-size: 12px; color: var(--muted); }
.rules dd { margin: 2px 0 0; font-weight: 600; }
.rules-note { line-height: 1.8; }
.phr { margin-top: 36px; }
.phr h2, .res-sec h2 { font-size: 13px; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.phr .fine { margin-top: 12px; }
.best { margin-top: 28px; color: var(--muted); font-size: 14px; }
.best b { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-left: 4px; }

/* 任務對話 */
.talk .p-top { border-bottom: 0; }
.m-goal { display: flex; flex-direction: column; min-width: 0; }
.m-goal small { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.m-goal span { font-size: 14px; font-weight: 600; line-height: 1.4; }
.patience { flex: none; }
.patience.hit { animation: shake .35s; }
.timebar { height: 2px; background: var(--line); position: sticky; top: 72px; z-index: 5; }
.timebar i { display: block; height: 100%; width: 100%; background: var(--ink); transition: width .1s linear; }
.timebar.low i { background: var(--bad); }
.timebar.off { visibility: hidden; }
.talk .p-body { padding-top: 28px; }
.msg.react .bubble { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.me .bubble.g2 { box-shadow: inset 0 0 0 1.5px var(--ink); }
.me .bubble.g1 { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.me .bubble.g0 { box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
.note { justify-self: end; max-width: 86%; text-align: right; font-size: 13px; color: var(--muted); margin-top: -8px; animation: enter .3s ease; }
.note b { font-weight: 600; margin-right: 8px; }
.note.g2 b { color: var(--ok); }
.note.g1 b { color: var(--ink); }
.note.g0 b { color: var(--bad); }
.sys { justify-self: center; text-align: center; max-width: 420px; font-size: 14px; color: var(--ink-2); padding: 12px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: enter .3s ease; }
.sys small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
#reply .opts { margin-top: 0; }
#mic.on { animation: breathe 1.6s ease-in-out infinite; }
#mic .ic { width: 16px; height: 16px; }

/* 底部回饋列 */
.p-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; padding: 18px max(24px, calc(50% - var(--maxw) / 2 + 24px)) calc(18px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.p-foot.show { animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.p-foot.good { background: var(--ok-soft); border-color: transparent; }
.p-foot.bad { background: var(--bad-soft); border-color: transparent; }
.fb-msg { min-width: 0; }
.fb-t { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.good .fb-t { color: var(--ok); }
.bad .fb-t { color: var(--bad); }
.fb-d { font-size: 15px; margin-top: 2px; color: var(--ink-2); }
.fb-ex { color: var(--muted); font-size: 14px; margin-top: 2px; }
.combo { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 8px; letter-spacing: .04em; }
.hint { font-size: 13px; }

/* 結算 */
.result { padding: 88px 0 64px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: fade .4s ease; }
.result h1 { font-family: var(--serif); font-size: 40px; margin-bottom: 8px; }
.result > p.muted { max-width: 420px; line-height: 1.8; }
.stars { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 4px; }
.stars .dots3 { gap: 10px; }
.stars .dots3 i { width: 12px; height: 12px; }
.stars small { color: var(--muted); }
.res-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.res-grid div { padding: 18px 32px; }
.res-grid div + div { border-left: 1px solid var(--line); }
.res-grid b { display: block; font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.res-grid small { color: var(--muted); }
.banner { width: 100%; max-width: 420px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.banner small { display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.rank { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 20px 0 4px; }
.rank-l { font-family: var(--serif); font-size: 88px; font-weight: 700; line-height: 1; }
.rank small { color: var(--muted); max-width: 320px; }
.res-sec { width: 100%; max-width: 520px; text-align: left; margin-top: 40px; }
.better { list-style: none; margin: 0; padding: 0; }
.better li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.better small { display: inline-block; width: 52px; font-size: 12px; color: var(--muted); flex: none; }
.said { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.said small { text-decoration: none; }
.instead { display: flex; align-items: center; }
.instead .line-row { font-size: 17px; }
.why { font-size: 14px; color: var(--ink-2); padding-left: 52px; }
.res-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; width: 100%; max-width: 360px; }

/* 提示訊息 */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; transform: translateY(-12px); opacity: 0; transition: transform .3s, opacity .3s; text-align: center; }
.toast.show { transform: none; opacity: 1; }

/* 響應式 */
@media (max-width: 820px) {
  .methods { grid-template-columns: 1fr; gap: 28px; }
  .routes { grid-template-columns: 1fr; border-top: 0; }
  .route, .route + .route { padding: 28px 0 8px; border-left: 0; border-top: 1px solid var(--ink); }
  .route > p:not(.route-for) { min-height: 0; }
  .flow { grid-template-columns: 1fr; border-top: 0; }
  .flow li { padding: 18px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) { .summary { grid-template-columns: 1fr 1fr; } .abil { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .landing, .shell, .player, .ob { padding-left: 20px; padding-right: 20px; }
  .lp-hero { padding: 56px 0 48px; }
  .summary { grid-template-columns: 1fr; gap: 28px; }
  .hud { gap: 12px; }
  .brief-h { font-size: 32px; }
  .goal p { font-size: 21px; }
  .rules { grid-template-columns: repeat(2, auto); gap: 14px 40px; }
  .m-goal span { font-size: 13px; }
  .timebar { top: 72px; }
  .rank-l { font-size: 72px; }
  .why { padding-left: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .q-word, .flash-en { font-size: 38px; }
  .speak-en { font-size: 24px; }
  .res-grid div { padding: 16px 18px; }
  .p-foot { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 例句的中文翻譯 */
.ex-zh { display: block; font-family: var(--sans); font-size: 15px; color: var(--muted); margin-top: 6px; }
.fb-ex small { display: block; }
.cardlist small.ex { margin-top: 4px; font-size: 13px; line-height: 1.6; }

/* ---------- v3.3：今天、計畫、按鈕組設定、快速設定 ---------- */
body { font-size: 17px; }
.tabs { margin-top: 0; }
.course-desc { margin: 16px 0 20px; }
.plan-head { padding-bottom: 24px; }
.plan-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.plan-bars small { display: block; color: var(--muted); font-size: 13px; }
.plan-bars b { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.plan-bars b span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.steps { list-style: none; margin: 0 0 24px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); }
.steps li.now .n { background: var(--ink); color: #fff; box-shadow: none; }
.steps li.done .n { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.steps b { display: block; font-size: 18px; font-weight: 600; }
.steps small { display: block; color: var(--muted); font-size: 14px; }
.steps li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.btn.lg.block { width: 100%; font-size: 18px; padding: 18px 24px; }
.all-done { font-family: var(--serif); font-size: 21px; font-weight: 700; padding: 8px 0; }
.all-done small { display: block; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 6px; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 72px; min-height: 48px; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; color: var(--ink-2); background: #fff; }
.seg button.on { background: var(--ink); color: #fff; box-shadow: none; font-weight: 600; }
.seg.big button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 14px 16px; min-width: 130px; }
.seg.big b { font-size: 17px; }
.seg small { font-size: 13px; opacity: .7; font-weight: 400; }
.ctl { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ctl p { margin: 0 0 10px; font-weight: 500; }
.ctl p small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.set .row { padding: 14px 0; }

.qs-btn { flex: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.qs-btn:hover { background: var(--soft); }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 20, .25); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: var(--maxw); max-height: 85vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 8px 24px 32px; animation: up .2s ease; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet-h b { font-size: 18px; }
.sheet .ctl:last-child { border-bottom: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

.player .reveal { display: none; }
.player.nozh .reveal { display: block; }
.player.nozh .zh-t { display: none; }
.player .zh-t.peeked { display: block; }
.peeks { display: flex; gap: 8px; margin-top: 10px; }
.peek { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line, #ddd); border-radius: 999px; color: var(--ink, inherit); background: transparent; }
.p-crumb.grow { flex: 1; }
.rate-fine { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.rate-fine > button { width: 48px; height: 48px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 22px; }
.rate-fine > button:disabled { opacity: .3; }
.rate-fine span { flex: 1; text-align: center; color: var(--muted); }
.rate-fine b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rate-fine .link { margin-left: 12px; font-size: 14px; }
.me-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.me-h .page-h { margin: 0; }
.sub-h { margin-bottom: 12px; }
.sub-h .link { font-size: 16px; text-decoration: none; color: var(--ink-2); }
.stat-grid + .block { margin-top: 8px; }

/* 練習中的快速設定列（頂部列第二行） */
.p-top { flex-wrap: wrap; row-gap: 10px; }
.qbar { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 2px; }
.qrate { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--muted); }
.qrate button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; color: var(--ink); }
.qrate button:hover:not(:disabled) { background: var(--soft); }
.qrate button:disabled { opacity: .3; }
.qrate b { min-width: 40px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.qchip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--muted); }
.qchip i { font-style: normal; font-size: 12px; }
.qchip.on { color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.player.nozh .ex-zh, .player.nozh .fb-ex small { display: none; }

/* 左右滑動開關 */
.tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); flex: none; }
.tgl .sw { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background .2s; flex: none; }
.tgl .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.tgl.on .sw { background: var(--ink); }
.tgl.on .sw::after { transform: translateX(18px); }
.qbar .tgl { height: 38px; padding: 0 6px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qbar .tgl .sw { width: 38px; height: 24px; }
.qbar .tgl .sw::after { width: 18px; height: 18px; }
.qbar .tgl.on .sw::after { transform: translateX(14px); }
.row-ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-ctl p { margin: 0; }

/* 聽力練習 */
.lis-h { font-family: var(--serif); font-size: 24px; margin: 6px 0 20px; }
.lis-btns { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lis-tr { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.lis-tr small { display: block; color: var(--muted); }

/* ---------- v3.5 能力地圖：城市街區，每個任務一扇窗 ---------- */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sec-h h2 { margin: 0; }
.sm-p { font-size: 14px; margin-bottom: 14px; }

/* 任務版本與突發狀況 */
.mood-tag { align-self: flex-start; margin-top: 6px; font-size: 12px; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); }
.mood-box { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; margin: 18px 0 8px; }
.mood-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.mood-h small { color: var(--muted); }
.mood-h b { font-size: 17px; }
.mood-h .link { margin-left: auto; font-size: 14px; }
.mood-box .rules { margin: 10px 0 6px; }
.sys.event { border: 1px solid var(--ink); border-radius: 10px; font-weight: 600; color: var(--ink); animation: enter .3s ease, shake .4s ease .1s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 今日一句 */
.speak { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sp-en { font-family: var(--serif); font-size: 28px; line-height: 1.4; margin: 6px 0 8px; max-width: 520px; }
.sp-zh { color: var(--muted); font-size: 16px; display: block; margin-bottom: 18px; }
.speak .lis-btns { flex-direction: row; gap: 20px; justify-content: center; }
.speak .lis-btns .slow { display: inline-flex; align-items: center; gap: 6px; }
.speak .lis-btns .ic { width: 16px; height: 16px; }
.sp-how { margin: 18px 0 22px; }
.rec-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.rec-btn .ic { width: 34px; height: 34px; box-sizing: content-box; padding: 26px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .2s; }
.rec-btn.on .ic { background: var(--bad); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 10px var(--bad-soft); } }
.sp-result { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 520px; }
.sp-result:empty { display: none; }
.sp-msg { font-weight: 600; }
.sp-hits { font-size: 18px; line-height: 1.6; }
.sp-hits .miss { color: var(--muted); text-decoration: underline wavy var(--line-2); }
.sp-result .btn .ic { width: 16px; height: 16px; }
.star-row { display: inline-flex; gap: 4px; font-size: 26px; line-height: 1; }
.star-row i { font-style: normal; color: var(--line-2); }
.star-row i.on { color: #e0a800; }
.voice-cmp .star-row { font-size: 16px; }
.result > .star-row { margin: 12px 0 8px; font-size: 34px; }

/* 成就卡 */
.share-ov { position: fixed; inset: 0; background: rgba(20, 20, 20, .55); display: grid; place-items: center; z-index: 50; padding: 20px; animation: enter .2s ease; }
.share-box { background: #fff; border-radius: 18px; padding: 18px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; max-height: 100%; overflow: auto; }
.share-box img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-btns a.btn { text-decoration: none; }

/* ---------- v3.6 首頁「今天」精簡：計畫＋五件事＋大按鈕，在手機上一個畫面放得下 ---------- */
.page:has(.plan-head) { padding-top: 16px; }
.plan-head { padding-bottom: 14px; }
.plan-head .eyebrow { margin-bottom: 2px; }
.plan-bars { gap: 20px; margin-top: 6px; }
.plan-bars b { font-size: 24px; line-height: 1.25; }
.plan-head .fine { margin-top: 6px; font-size: 12.5px; line-height: 1.5; }
.block.today { padding: 14px 0 18px; }
.block.today h2 { margin-bottom: 8px; }
.today .steps { margin-bottom: 14px; }
.today .steps li { gap: 12px; padding: 9px 0; }
.today .steps .n { width: 28px; height: 28px; font-size: 14px; }
.today .steps b { font-size: 16px; line-height: 1.35; }
.today .steps small { font-size: 13px; line-height: 1.4; }
.today .steps .btn.sm { padding: 7px 14px; font-size: 13px; }
.today > .btn.lg { padding: 14px 24px; }
.today .all-done { font-size: 18px; }

/* ---------- v3.6 3D 能力地圖（不支援 WebGL 時保留 2D 格子） ---------- */
/* 矮螢幕（iPhone SE 等）：再收一點，讓大按鈕也在第一個畫面裡 */
@media (max-height: 720px) {
  .plan-head .fine { display: none; }
  .plan-head { padding-bottom: 10px; }
  .plan-bars b { font-size: 21px; }
  .block.today { padding-top: 10px; }
  .today .steps li { padding: 6px 0; }
  .today .steps b { font-size: 15.5px; }
  .today > .btn.lg { padding: 12px 24px; }
}

/* ---------- 任務分頁：所有任務可玩 ---------- */
#mlist { scroll-margin-top: 80px; }
.mission.later .m-state { color: var(--muted); font-weight: 500; text-decoration: none; }
.mission.later .m-title { color: var(--ink-2); }
.harder { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 14px 0 4px; border-radius: var(--r); background: var(--soft); font-size: 14px; }
.harder b { font-size: 15px; }
.harder span { color: var(--ink-2); }
.harder .link { align-self: flex-start; margin-top: 4px; font-size: 14px; }
.peek-box { align-items: stretch; text-align: left; max-width: 520px; }
.peek-box .sec-h h2 { font-size: 15px; color: var(--ink); letter-spacing: 0; }
.peek-box .sec-h { position: sticky; top: -18px; background: #fff; padding: 6px 0; z-index: 1; }
.harder { margin-bottom: 16px; }
.p-foot #back .ic { width: 16px; height: 16px; }
@media (max-width: 520px) { .p-foot #back ~ .hint { display: none; } }
