/* ============================================================
 * Fayina 塔羅預約問卷
 * 淺色 = 晨霧奶茶（沿用官網色票）/深色 = 夜空占卜
 * 預設跟隨系統的淺色/深色模式（app.js 設定 data-theme="a" / "b"）
 * ============================================================ */
:root,
[data-theme="a"] {
  --bg: #FBF6F2;
  --bg-glow-1: #F5E6E1;
  --bg-glow-2: rgba(235, 211, 202, .55);
  --surface: rgba(255, 253, 251, .92);
  --surface-2: #FFFFFF;
  --text: #4A3530;
  --text-soft: #7A625B;
  --accent: #B47E6A;
  --accent-deep: #96614F;
  --gold: #D8BE97;
  --gold-soft: rgba(216, 190, 151, .55);
  --line: #E6D3CB;
  --sel-bg: #F8ECE6;
  --btn-bg: linear-gradient(135deg, #C08B76, #96614F);
  --btn-text: #FFFDFB;
  --shadow: 0 14px 40px rgba(150, 97, 79, .14);
  --back-bg: radial-gradient(circle at 50% 40%, #C99583 0%, #A86F5B 55%, #8C5948 100%);
  --back-ink: #F8E9DD;
  --overlay-bg: rgba(251, 246, 242, .94);
  --star: #D8BE97;
  --star-op: .55;
}

[data-theme="b"] {
  color-scheme: dark;
  --bg: #1E1216;
  --bg-glow-1: rgba(110, 52, 66, .55);
  --bg-glow-2: rgba(216, 190, 151, .10);
  --surface: rgba(52, 30, 37, .78);
  --surface-2: rgba(255, 244, 236, .05);
  --text: #F4E8DF;
  --text-soft: #CBB4A8;
  --accent: #D8BE97;
  --accent-deep: #EAD4AE;
  --gold: #D8BE97;
  --gold-soft: rgba(216, 190, 151, .38);
  --line: rgba(216, 190, 151, .26);
  --sel-bg: rgba(216, 190, 151, .14);
  --btn-bg: linear-gradient(135deg, #E9D3AE, #C7A576);
  --btn-text: #2A171D;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --back-bg: radial-gradient(circle at 50% 40%, #5B2E3A 0%, #3A1D25 60%, #24131A 100%);
  --back-ink: #D8BE97;
  --overlay-bg: rgba(22, 13, 16, .92);
  --star: #F4E3C4;
  --star-op: 1;
}

:root {
  --serif-en: "Cormorant Garamond", serif;
  --serif: "Noto Serif TC", "Cormorant Garamond", serif;
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--serif);
  color: var(--text);
  background:
    radial-gradient(120% 60% at 10% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(90% 50% at 110% 110%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity .4s ease, background-color .4s ease, color .4s ease;
}
body.ready { opacity: 1; }
button { font: inherit; color: inherit; }

/* ---------- 星空 ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky i {
  position: absolute; border-radius: 50%; background: var(--star); opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
.sky b {
  position: absolute; color: var(--gold); font-weight: 400; font-size: 11px; opacity: 0;
  animation: twinkle 6s ease-in-out infinite;
}
[data-theme="a"] .sky i { display: none; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: var(--star-op); transform: scale(1); }
}

/* ---------- 版面 ---------- */
.app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 16px;
}
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  transition: opacity .3s;
}
.topbar.hide { opacity: 0; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer;
  color: var(--text-soft);
}
.icon-btn:active { background: var(--sel-bg); }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; position: relative; }
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 3px; transition: width .6s cubic-bezier(.22,.61,.36,1);
}
.progress-star {
  position: absolute; right: -6px; top: 50%; transform: translateY(-52%);
  font-size: 12px; line-height: 1; color: var(--gold);
  text-shadow: 0 0 8px var(--gold);
}
.brand-mini { font-family: var(--serif-en); font-style: italic; font-size: 15px; color: var(--text-soft); width: 46px; text-align: right; }

.stage {
  flex: 1;
  perspective: 1400px;
  padding: 8px 0 16px;
  display: flex; flex-direction: column; justify-content: center;
}

/* ---------- 牌卡 ---------- */
.qcard { position: relative; transform-style: preserve-3d; }
.qcard .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); }
.qcard .front {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px 20px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.qcard .front::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid var(--gold-soft); border-radius: calc(var(--radius) - 6px);
}
.qcard .back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  background: var(--back-bg);
  color: var(--back-ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qcard:not(.flipping) .back { visibility: hidden; }
.cb-svg { width: 62%; max-width: 220px; height: auto; max-height: 90%; }

.card-orn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--gold); font-size: 10px; margin-bottom: 8px;
}
.card-orn em { font-family: var(--serif-en); font-size: 15px; letter-spacing: .14em; color: var(--text-soft); }
.chip {
  display: table; margin: 0 auto 10px;
  font-size: 12.5px; padding: 3px 12px; border-radius: 99px;
  background: var(--sel-bg); color: var(--accent-deep); border: 1px solid var(--line);
}
.banner {
  margin: 0 0 12px; font-size: 13px; text-align: center; color: var(--text-soft);
  padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--gold-soft);
}
.q-title {
  font-size: 21px; font-weight: 500; line-height: 1.5; text-align: center;
  margin: 4px 6px 6px; letter-spacing: .04em;
}
.q-hint { text-align: center; font-size: 13.5px; color: var(--text-soft); margin: 0 4px 4px; }
.q-body { margin-top: 18px; }
.qblock + .qblock { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.qblock[hidden] { display: none; }
.q-label { font-size: 16.5px; font-weight: 500; line-height: 1.55; text-align: center; margin: 0 4px 4px; letter-spacing: .03em; }
.q-label + .q-body, .q-hint.sm + .q-body { margin-top: 12px; }
.q-hint.sm { font-size: 12.5px; }
.opt-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-soft); font-weight: 400; }
.opts.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid-4 .opt { flex-direction: column; gap: 2px; padding: 8px 2px; min-height: 0; text-align: center; justify-content: center; border-radius: 12px; }
.grid-4 .opt-emoji { width: 28px; height: 28px; font-size: 16px; background: transparent; }
.grid-4 .opt-label { font-size: 12.5px; }
.grid-4 .opt-check { display: none; }
.q-error { color: #C0564A; font-size: 13.5px; text-align: center; margin: 12px 0 0; }
[data-theme="b"] .q-error { color: #F2A99B; }

/* ---------- 選項卡片 ---------- */
.opts { display: grid; gap: 10px; }
.opts.grid-2 { grid-template-columns: 1fr 1fr; }
.opts.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 40px 12px 14px;
  text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-2);
  transition: transform .15s ease, border-color .2s, background-color .2s, box-shadow .2s;
}
.opt:active { transform: scale(.975); }
.opt-emoji {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px;
  background: var(--sel-bg);
}
.opt-text { display: flex; flex-direction: column; min-width: 0; }
.opt-label { font-size: 16px; font-weight: 500; line-height: 1.45; }
.opt-desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; margin-top: 2px; }
.opt-tagline { font-size: 12px; color: var(--accent); line-height: 1.5; margin-bottom: 2px; }
.opt-badge {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-size: 11px; font-weight: 500; padding: 0 8px; border-radius: 99px; line-height: 1.7;
  background: var(--gold); color: #4A3530;
}
.opt-check {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line);
  transition: all .2s;
}
.opt.multi .opt-check { border-radius: 6px; }
.opt.sel {
  border-color: var(--accent);
  background: var(--sel-bg);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 18px rgba(150, 97, 79, .12);
}
.opt.sel .opt-check { background: var(--accent); border-color: var(--accent); }
.opt.sel .opt-check::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid var(--btn-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
[data-theme="b"] .opt.sel .opt-check::after { border-color: #2A171D; }
.opt.sel .opt-emoji { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.18) rotate(-6deg); } }

.grid-2 .opt { justify-content: center; text-align: center; padding: 14px 10px; min-height: 58px; }
.grid-2 .opt-check, .grid-3 .opt-check { display: none; }
.grid-3 .opt { flex-direction: column; gap: 4px; padding: 12px 4px; text-align: center; justify-content: center; }
.grid-3 .opt-emoji { width: 36px; height: 36px; font-size: 19px; }
.grid-3 .opt-label { font-size: 14px; }
.opts.grid-2 .opt-wrap, .opts.grid-3 .opt-wrap { grid-column: 1 / -1; }

.opt-wrap { display: flex; flex-direction: column; }
.opt-more {
  align-self: flex-start; margin: 6px 0 0 8px; padding: 2px 6px;
  border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--accent);
}
.opt-more span { display: inline-block; transition: transform .2s; }
.opt-more.open span { transform: rotate(180deg); }
.readings {
  margin: 6px 0 2px; padding: 10px 14px 10px 12px; font-size: 13.5px; color: var(--text-soft);
  border-left: 2px solid var(--gold); background: var(--sel-bg); border-radius: 0 12px 12px 0;
}
.readings p { margin: 0 0 2px; }
.readings ol { margin: 0; padding-left: 20px; }

.q-notice {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--sel-bg); border: 1px solid var(--gold-soft); font-size: 14px; text-align: center;
}
.q-notice p { margin: 0 0 8px; }
.q-notice.warn { margin-top: 16px; }

.detail {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.detail li {
  font-size: 12.5px; line-height: 1.5; color: var(--text-soft);
  padding: 10px 10px; border-radius: 12px; background: var(--sel-bg);
  display: flex; gap: 8px; align-items: flex-start;
}
.d-no { font-family: var(--serif-en); font-size: 16px; color: var(--accent); line-height: 1.1; }
.footnote { font-size: 12px; color: var(--text-soft); margin: 12px 0 0; text-align: center; }

/* ---------- 輸入 ---------- */
.field {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--text-soft); opacity: .6; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--sel-bg); }
textarea.field { resize: vertical; min-height: 150px; line-height: 1.7; }
textarea.field.short { resize: none; min-height: 0; overflow: hidden; line-height: 1.6; padding: 12px 16px; }
.field.date { min-height: 52px; text-align: center; }

.counter { text-align: right; font-size: 12px; color: var(--text-soft); margin: 6px 4px 0; font-family: var(--serif-en); }
.z-result { text-align: center; margin: 12px 0 0; font-size: 16px; color: var(--accent-deep); }
.link-btn {
  display: block; margin: 8px auto 0; padding: 4px 8px; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px;
}
.repeat { display: grid; gap: 14px; }
.rep { display: grid; gap: 6px; }
.rep-label { font-size: 14px; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.rep-label b {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif-en); font-size: 15px; font-weight: 600; color: var(--btn-text); background: var(--accent);
}

.consent-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.consent-list li {
  position: relative; padding: 0 0 0 22px; font-size: 14.5px; line-height: 1.65;
}
.consent-list li::before { content: "✦"; position: absolute; left: 2px; top: 1px; font-size: 11px; color: var(--gold); }
.consent-box {
  margin-top: 18px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  font-size: 15.5px;
}
.consent-box .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--accent); position: relative; transition: all .2s; }
.consent-box.sel { border-color: var(--accent); background: var(--sel-bg); }
.consent-box.sel .box { background: var(--accent); }
.consent-box.sel .box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--btn-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- 按鈕 ---------- */
.actions {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 12px 0 calc(16px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 55%, transparent);
}
.app:has(.devbar:not([hidden])) .actions { padding-bottom: 10px; }
.actions[hidden] { display: none; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 99px; cursor: pointer;
  font-size: 16px; letter-spacing: .1em; text-decoration: none;
  transition: transform .15s, opacity .2s, box-shadow .2s;
}
.btn-primary {
  flex: 1; max-width: 300px; border: 0;
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 8px 22px rgba(150, 97, 79, .25);
}
[data-theme="b"] .btn-primary { box-shadow: 0 8px 24px rgba(216, 190, 151, .22); }
.btn-primary[aria-disabled="true"] { opacity: .5; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary.lg { min-height: 54px; font-size: 17px; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.btn-ghost.sm { min-height: 38px; padding: 0 16px; font-size: 14px; letter-spacing: .05em; }
.btn-primary:active, .btn-ghost:active { transform: scale(.97); }
.tap-hint { margin: 0; font-size: 13px; color: var(--text-soft); min-height: 50px; display: flex; align-items: center; }

/* ---------- 開場 ---------- */
.intro .front { text-align: center; padding: 34px 22px 30px; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 14px;
  border: 1px solid var(--gold); padding: 4px; background: var(--surface-2);
}
.eyebrow { font-family: var(--serif-en); font-style: italic; font-size: 16px; letter-spacing: .12em; color: var(--accent); margin: 0; }
.intro-title { font-size: 25px; font-weight: 500; margin: 6px 0 10px; letter-spacing: .08em; }
.intro-body { font-size: 15px; color: var(--text-soft); margin: 0 0 6px; line-height: 1.9; }
.orn-line { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 11px; margin: 18px 12px 22px; }
.orn-line span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.intro .btn-primary { width: 100%; max-width: 260px; }
.resume p { margin: 0 0 14px; font-size: 15px; }
.resume .row { display: flex; gap: 10px; justify-content: center; }
.resume .btn-primary { flex: 1; }
.ext-note { margin: 18px 0 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }
.ext-note a { color: var(--accent-deep); }

/* ---------- 確認頁 ---------- */
.letter {
  margin-top: 16px; padding: 14px 12px 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.65;
}
.mhead { margin: 0 0 4px; font-weight: 600; padding: 0 4px; }
.mfoot { margin: 8px 4px 0; color: var(--accent-deep); }
.msec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.msec-head .divider { color: var(--gold); letter-spacing: -.05em; overflow: hidden; white-space: nowrap; flex: 1; }
.msec-head .link-btn { margin: 0 0 0 8px; color: var(--accent); flex: none; }
.mline {
  display: flex; width: 100%; gap: 8px; align-items: flex-start; text-align: left;
  border: 0; background: transparent; padding: 5px 4px; border-radius: 8px; cursor: pointer;
}
.mline:active { background: var(--sel-bg); }
.ml-text { flex: 1; word-break: break-word; }
.ml-text b { font-weight: 500; }
.ml-pen { color: var(--text-soft); opacity: .45; font-size: 13px; }
.mock-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--text-soft); }

/* ---------- 完成 ---------- */
.done .front { text-align: center; padding: 34px 20px 26px; }
.done-orn { font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.msg-pre {
  text-align: left; white-space: pre-wrap; word-break: break-word;
  font-family: var(--serif); font-size: 13.5px; line-height: 1.7;
  margin: 16px 0 0; padding: 14px; border-radius: 14px; max-height: 46vh; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  -webkit-user-select: text; user-select: text;
}
.msg-count { font-size: 12px; color: var(--text-soft); margin: 6px 0 0; text-align: right; font-family: var(--serif-en); }

/* ---------- 洗牌過場 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  background: var(--overlay-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  opacity: 0; transition: opacity .25s ease;
}
.overlay[hidden], .toast[hidden] { display: none; }
.overlay.in { opacity: 1; }
.overlay.out { opacity: 0; }
.deck { position: relative; width: 84px; height: 136px; margin-bottom: 30px; }
.mini {
  position: absolute; inset: 0; border-radius: 10px;
  background: var(--back-bg); border: 1px solid var(--gold-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.mini::before {
  content: "☾"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--back-ink); font-size: 30px;
}
.mini::after {
  content: ""; position: absolute; inset: 5px; border-radius: 7px; border: 1px solid var(--back-ink); opacity: .55;
}
.overlay.in .m1 { animation: sh1 1.3s cubic-bezier(.45,.05,.35,1) both; }
.overlay.in .m2 { animation: sh2 1.3s cubic-bezier(.45,.05,.35,1) both; }
.overlay.in .m3 { animation: sh3 1.3s cubic-bezier(.45,.05,.35,1) both; }
@keyframes sh1 { 0% { transform: translateY(20px); opacity: 0; } 25% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-62px) rotate(-14deg); } 75%, 100% { transform: translateX(0) rotate(-3deg); } }
@keyframes sh2 { 0% { transform: translateY(20px); opacity: 0; } 25% { opacity: 1; } 50% { transform: translateY(-14px); } 75%, 100% { transform: translateY(0) rotate(0); } }
@keyframes sh3 { 0% { transform: translateY(20px); opacity: 0; } 25% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(62px) rotate(14deg); } 75%, 100% { transform: translateX(0) rotate(3deg); } }
.overlay-title { font-size: 20px; letter-spacing: .1em; margin: 0; animation: fadeUp .6s .2s both; }
.overlay-sub { font-size: 14px; color: var(--text-soft); margin: 8px 0 0; max-width: 300px; animation: fadeUp .6s .35s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 其他 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); z-index: 30;
  transform: translateX(-50%); max-width: 86vw;
  padding: 10px 18px; border-radius: 99px; font-size: 14px;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
}
.toast.show { animation: fadeUp .25s both; }
.devbar {
  align-self: center; margin: 0 0 calc(10px + var(--safe-b));
  display: flex; gap: 4px; align-items: center;
  padding: 4px; border-radius: 99px; font-size: 11.5px;
  background: var(--surface); border: 1px dashed var(--gold-soft);
  opacity: .8;
}
.devbar[hidden] { display: none; }
.dev-tag { padding: 0 6px; color: var(--accent-deep); }
.devbar button { border: 0; background: transparent; padding: 3px 8px; border-radius: 99px; cursor: pointer; font-size: 11.5px; }
.devbar button.on { background: var(--accent); color: var(--btn-text); }

@media (min-width: 560px) {
  .stage { padding-top: 24px; }
  .q-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 整合站：問卷開場頁回官網的連結（LINE App 內不顯示） */
.link-home { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--text-soft); text-decoration: none; letter-spacing: .05em; }
.link-home:hover { color: var(--accent-deep); }
