/* 聖經記憶之旅　第二版：黑暗裡的光
   底是深夜藍，重點是暖金色的光，畫面讓電影感的圖當主角。
   走進一卷書，「光」的顏色（--light）換成那一卷的顏色，其餘不變。
   字體：思源宋體（標題、經文；網站自帶的精簡版叫 BMJ Serif，見 css/fonts.css）、
   手機內建的黑體（操作文字，不用下載）、Cormorant（大數字）。 */

:root {
  --night-0: #060A13;
  --night-1: #0A1120;
  --night-2: #101A2D;
  --night-3: #18243B;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #F5F0E6;
  --text-2: #B9C1CF;
  --text-3: #7C879B;
  --light: #F2C46D;
  --light-hi: #FFE9B8;
  --on-light: #1B1406;
  --ok: #7FD6A4;
  --bad: #F19A8E;
  --serif: "BMJ Serif", "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
  --num: "Cormorant Garamond", "BMJ Serif", "Noto Serif TC", serif;
  --gutter: clamp(18px, 5vw, 56px);
  --wrap: 72rem;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --s-1: .875rem;
  --s0: 1rem;
  --s1: 1.125rem;
  --s2: 1.3125rem;
  --s3: 1.5rem;
}

* { box-sizing: border-box; }
html { background: var(--night-1); color: var(--text); font-family: var(--sans); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(110% 70% at 50% -10%, #16233C 0%, var(--night-1) 58%, var(--night-0) 100%); }
/* 細細的顆粒，讓大片深色不死板 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in oklab, var(--light), transparent 55%); color: #fff; }
:focus-visible { outline: 2px solid var(--light-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soon { padding: 60px var(--gutter); font-size: 1.1rem; color: var(--text-2); }
/* 程式還沒跑起來的那一下：正中間一朵慢慢呼吸的燈火 */
.boot { display: grid; place-content: center; justify-items: center; gap: 16px; min-height: 100dvh; font-size: .9rem; letter-spacing: .32em; text-indent: .32em; color: var(--text-3); }
.boot img { border-radius: 16px; animation: boot 1.5s ease-in-out infinite alternate; }
@keyframes boot { from { opacity: .5; transform: scale(.95); } to { opacity: 1; transform: scale(1.04); } }
.icon { display: inline-grid; }
.icon svg { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--light); color: var(--on-light);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: .04em;
  box-shadow: 0 12px 36px -12px color-mix(in oklab, var(--light), transparent 30%), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.btn b { font-family: var(--serif); font-weight: 700; letter-spacing: .08em; }
.btn.is-ghost { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ───────── 大廳 ───────── */
.hero { position: relative; display: grid; align-items: end; min-height: min(100svh, 920px); overflow: hidden; isolation: isolate; }
.hero-art, .hero-shade, .hero-dust { position: absolute; inset: 0; }
.hero-art { z-index: -3; }
/* 主視覺的太陽和小路在畫面偏右（約 62%），手機直式裁切時要留住那裡 */
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; animation: breathe 48s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(to top, var(--night-1) 2%, rgba(10, 17, 32, .86) 26%, rgba(10, 17, 32, .2) 62%, rgba(10, 17, 32, .5) 100%),
    linear-gradient(to right, rgba(10, 17, 32, .74), rgba(10, 17, 32, 0) 64%);
}
.hero-dust { z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-top { position: absolute; inset: 0 0 auto 0; padding: clamp(18px, 3vw, 30px) var(--gutter); }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .34em; opacity: .92; }
.hero-body { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 120px var(--gutter) clamp(40px, 8vw, 88px); }
.hero-verse { max-width: 26em; font-family: var(--serif); font-size: clamp(1rem, 2.6vw, 1.2rem); line-height: 1.9; letter-spacing: .06em; color: var(--light-hi); opacity: 0; animation: fade 1.2s ease .1s forwards; }
.hero-verse cite { display: block; margin-top: .1em; font-style: normal; font-size: .82em; letter-spacing: .08em; color: var(--text-2); white-space: nowrap; }
.hero-title { margin-top: clamp(8px, 2vw, 16px); font-family: var(--serif); font-weight: 900; font-size: clamp(2.7rem, 11.5vw, 6.2rem); line-height: 1.14; letter-spacing: .1em; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.hero-title span { display: inline-block; opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 300ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 1; } }
.hero-lede { margin-top: clamp(10px, 2vw, 18px); max-width: 24em; font-size: clamp(1.05rem, 2.8vw, 1.3rem); color: var(--text-2); opacity: 0; animation: fade 1s ease 1s forwards; }
.hero-lede span { display: inline-block; } /* 一句一塊，窄螢幕換行時不會只掉一個字下來 */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vw, 36px); opacity: 0; animation: fade 1s ease 1.25s forwards; }

.sec { max-width: var(--wrap); margin-inline: auto; padding: clamp(52px, 8vw, 100px) var(--gutter) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.sec-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 2.1rem); letter-spacing: .1em; }
.sec-head p { color: var(--text-2); }

.posters { display: grid; grid-auto-flow: column; grid-auto-columns: min(58vw, 230px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter) 24px; }
.posters::-webkit-scrollbar { display: none; }
.poster {
  position: relative; display: grid; align-items: end; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: var(--r-m); scroll-snap-align: start; container-type: inline-size; isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% -6%, color-mix(in oklab, var(--light), transparent 58%), transparent 62%),
    linear-gradient(180deg, color-mix(in oklab, var(--light), #0A1120 80%), #0A1120 78%);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px #000;
  transition: transform .35s var(--ease), box-shadow .35s;
}
a.poster:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 40%), 0 30px 70px -30px color-mix(in oklab, var(--light), transparent 40%); }
.poster-art { position: absolute; inset: 0; z-index: -2; }
.poster-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.poster.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 13, 25, .97) 10%, rgba(8, 13, 25, .55) 46%, rgba(8, 13, 25, .1) 74%); }
.poster-mono {
  position: absolute; top: 7cqw; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-weight: 900; font-size: 62cqw; line-height: 1; color: transparent;
  background: linear-gradient(180deg, color-mix(in oklab, var(--light), white 30%), color-mix(in oklab, var(--light), transparent 80%));
  -webkit-background-clip: text; background-clip: text;
}
.poster.has-art .poster-mono { top: 6cqw; left: 8cqw; right: auto; font-size: 20cqw; background: none; color: var(--light-hi); text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.poster-body { display: grid; gap: 2px; padding: 9cqw 8cqw; }
.poster-name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 11cqw, 1.5rem); letter-spacing: .1em; }
.poster-tag { font-size: clamp(.78rem, 6.6cqw, .92rem); line-height: 1.5; color: var(--text-2); }
.poster-meta { margin-top: 6cqw; font-size: clamp(.72rem, 6cqw, .82rem); color: var(--light-hi); }
.poster.is-soon { filter: saturate(.72) brightness(.84); }
.poster.is-soon .poster-meta { color: var(--text-3); }
@media (min-width: 900px) {
  .posters { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); overflow: visible; margin-inline: 0; padding: 10px 0 0; }
}

.game-grid { display: grid; gap: 14px; }
.game-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  min-height: 190px; padding: clamp(20px, 3vw, 30px); overflow: hidden; border-radius: var(--r-l);
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 45%), 0 24px 60px -30px color-mix(in oklab, var(--light), transparent 50%); }
.game-card h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem, 3.6vw, 1.7rem); letter-spacing: .1em; }
.game-card p { margin-top: 6px; max-width: 20em; color: var(--text-2); }
.game-go { display: inline-flex; margin-top: 16px; padding: 8px 20px; border-radius: 999px; background: var(--light); color: var(--on-light); font-weight: 700; font-size: .95rem; }
.viz { display: grid; justify-items: center; gap: 10px; min-width: 124px; }
.viz b { font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums; font-size: 1.5rem; letter-spacing: .04em; color: var(--light-hi); }
.viz-grid { display: grid; grid-template-columns: repeat(2, 56px); gap: 6px; }
.viz-grid i { aspect-ratio: 16 / 10; border-radius: 6px; background: linear-gradient(135deg, #22314F, #131D31); box-shadow: inset 0 0 0 1px var(--line); }
.viz-grid i.is-hit { background: linear-gradient(135deg, color-mix(in oklab, var(--light), #131D31 30%), color-mix(in oklab, var(--light), #131D31 70%)); box-shadow: 0 0 0 2px var(--light), 0 0 24px -4px var(--light); }
.viz-match { display: flex; align-items: center; justify-content: center; min-width: 150px; height: 112px; }
.viz-match i {
  display: grid; place-items: center; width: 62px; height: 84px; margin-inline: -8px; border-radius: 8px;
  font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--light);
  background: linear-gradient(160deg, #24365A, #111B30);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 55%), 0 10px 24px -10px #000;
}
.viz-match i:nth-child(1) { transform: rotate(-10deg) translateY(6px); }
.viz-match i:nth-child(2) { z-index: 1; transform: translateY(-6px); background: var(--text); color: #1B2438; font-family: var(--num); font-size: 1.25rem; }
.viz-match i:nth-child(3) { transform: rotate(10deg) translateY(6px); }
/* 看圖搶答：一張圖配四個經文代號 */
.viz-ref { gap: 8px; }
.viz-art { display: block; width: 118px; aspect-ratio: 16 / 9; border-radius: 6px; background: linear-gradient(135deg, color-mix(in oklab, var(--light), #131D31 45%), #131D31 85%); box-shadow: inset 0 0 0 1px var(--line); }
.viz-opts { display: grid; grid-template-columns: repeat(2, 56px); gap: 6px; }
.viz-opts i { display: grid; place-items: center; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--num); font-style: normal; font-weight: 600; font-variant-numeric: lining-nums; font-size: .85rem; line-height: 1; color: var(--on-light); }
.viz-opts i.is-hit { background: var(--light); box-shadow: 0 0 18px -4px var(--light); }
/* 搶拍牌陣：一桌牌，一張亮起來，一張已經收走 */
.viz-cards { display: grid; grid-template-columns: repeat(4, 28px); gap: 5px; }
.viz-cards i { aspect-ratio: 4 / 3; border-radius: 4px; background: linear-gradient(135deg, #22314F, #131D31); box-shadow: inset 0 0 0 1px var(--line); }
.viz-cards i.is-hit { background: linear-gradient(135deg, color-mix(in oklab, var(--light), #131D31 30%), color-mix(in oklab, var(--light), #131D31 70%)); box-shadow: 0 0 0 2px var(--light), 0 0 18px -4px var(--light); }
.viz-cards i.is-gone { background: none; opacity: .45; }
/* 競技歌牌：上面是上句，下面是寫著下句的紙牌 */
.viz-karuta b { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .1em; }
.viz-karuta .viz-cards { grid-template-columns: repeat(3, 38px); }
.viz-karuta .viz-cards i { aspect-ratio: 16 / 9; background: linear-gradient(170deg, #FBF7EE, #DDD2BC); box-shadow: none; opacity: .82; }
.viz-karuta .viz-cards i.is-hit { opacity: 1; background: linear-gradient(170deg, #FFF6DC, var(--light)); box-shadow: 0 0 0 2px var(--light), 0 0 18px -4px var(--light); }
.game-soon { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.game-soon li { display: grid; grid-template-columns: 7em 1fr auto; align-items: baseline; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.game-soon b { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .06em; color: var(--text); }
.tag-soon { font-size: .8rem; color: var(--text-3); white-space: nowrap; }
@media (min-width: 760px) { .game-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 560px) {
  .game-soon li { grid-template-columns: 1fr auto; }
  .game-soon p { grid-column: 1 / -1; grid-row: 2; }
  .viz { min-width: 0; }
  .viz-match { min-width: 120px; }
}

.atlas-t { margin-top: 28px; }
.atlas-t h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .1em; }
.atlas-groups { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.atlas-g { display: grid; gap: 8px; }
.atlas-cap { font-size: .8rem; color: var(--text-3); }
.atlas-row { display: flex; flex-wrap: wrap; gap: 6px; }
.orb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--serif); font-size: .95rem; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.orb.is-soon { color: var(--light); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 55%); }
.orb.is-open { background: var(--light); color: var(--on-light); font-weight: 700; box-shadow: 0 0 24px -2px var(--light); }
.foot { display: grid; justify-items: start; gap: 18px; max-width: var(--wrap); margin: 72px auto 0; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-3); }
.foot .btn { min-height: 48px; padding: 0 24px; font-size: 1rem; }

/* ───────── 一卷書 ───────── */
.topbar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter) 0; }
.topbar a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px 0 10px; border-radius: 999px; background: rgba(10, 17, 32, .5); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .95rem; }
.topbar a:hover { background: rgba(10, 17, 32, .78); }
.topbar a.is-fwd { padding: 0 10px 0 16px; }
.topbar-side { display: flex; gap: 8px; }

.bk-hero, .ch-hero { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; isolation: isolate; }
.bk-hero { min-height: clamp(380px, 62svh, 640px); }
.ch-hero { min-height: clamp(340px, 56svh, 600px); }
.bk-art, .ch-art, .bk-shade, .ch-shade { position: absolute; inset: 0; }
.bk-art, .ch-art { z-index: -2; }
.bk-art img, .ch-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.bk-art.is-empty, .ch-art.is-empty {
  background:
    conic-gradient(from 180deg at 50% -20%, transparent 40%, color-mix(in oklab, var(--light), transparent 78%) 47%, transparent 50%, color-mix(in oklab, var(--light), transparent 84%) 54%, transparent 60%),
    radial-gradient(70% 90% at 50% -10%, color-mix(in oklab, var(--light), transparent 62%), transparent 70%);
}
.bk-shade, .ch-shade { z-index: -1; background: linear-gradient(to top, var(--night-1) 0%, rgba(10, 17, 32, .84) 30%, rgba(10, 17, 32, .25) 66%, rgba(10, 17, 32, .55) 100%); }
.bk-body, .ch-body { align-self: end; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 40px var(--gutter) clamp(22px, 4vw, 44px); }
.bk-body h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: 1.14; letter-spacing: .12em; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.bk-tag { margin-top: 8px; font-family: var(--serif); font-size: clamp(1.15rem, 3.4vw, 1.6rem); letter-spacing: .14em; color: var(--light-hi); }
.bk-intro { margin-top: 10px; max-width: 30em; color: var(--text-2); }
.bk-progress { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: .9rem; color: var(--text-2); }
.bk-progress span { white-space: nowrap; }
.meter { flex: 0 1 220px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--light); box-shadow: 0 0 12px var(--light); }

.ch-index { display: flex; gap: 8px; max-width: var(--wrap); margin-inline: auto; padding: 16px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
.ch-index::-webkit-scrollbar { display: none; }
.ch-index a, .ch-index span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums; font-size: 1.3rem; line-height: 1; }
.ch-index a { color: var(--light-hi); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 45%); transition: background .2s, color .2s; }
.ch-index a:hover, .ch-index a.is-done { background: var(--light); color: var(--on-light); }
.ch-index span { color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }

.journey { max-width: 60rem; margin-inline: auto; padding: 10px var(--gutter) 96px; }
.journey-note { margin-top: 14px; color: var(--text-2); }
.part { margin-top: clamp(30px, 5vw, 52px); }
.part-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.part-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 3.8vw, 1.7rem); letter-spacing: .1em; }
.part-head span { font-size: .9rem; color: var(--text-3); white-space: nowrap; }
.stops { position: relative; display: grid; gap: 16px; margin: 0; padding: 0 0 0 34px; list-style: none; }
.stops::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, color-mix(in oklab, var(--light), transparent 40%), rgba(255, 255, 255, .1)); }
.stop { position: relative; }
.lamp { position: absolute; left: -31px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--night-1); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--light), transparent 30%); }
.stop.is-done .lamp { background: var(--light); box-shadow: 0 0 0 4px color-mix(in oklab, var(--light), transparent 78%), 0 0 22px var(--light); }
.stop.is-next .lamp { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px var(--light), 0 0 0 0 color-mix(in oklab, var(--light), transparent 50%); }
  50% { box-shadow: inset 0 0 0 2px var(--light), 0 0 0 10px transparent; }
}
.stop.is-locked .lamp { left: -28px; top: 14px; width: 10px; height: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.stop-card { display: grid; overflow: hidden; border-radius: var(--r-l); background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.stop-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 45%), 0 26px 60px -34px color-mix(in oklab, var(--light), transparent 40%); }
.stop-card .art { border-radius: 0; }
.stop-body { display: grid; align-content: center; gap: 6px; padding: 18px 20px 20px; }
.stop-head { display: flex; align-items: baseline; gap: 14px; }
.stop-num { font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums; font-size: 3rem; line-height: .9; color: var(--light); }
.stop-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 4.6vw, 1.8rem); letter-spacing: .14em; }
.stop-sum { color: var(--text-2); }
.stop-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mark { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.mark.is-on { color: var(--light-hi); background: color-mix(in oklab, var(--light), transparent 90%); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 50%); }
.mark .stars { letter-spacing: .1em; color: var(--light); }
.mark .stars i { font-style: normal; opacity: .28; }
.stop-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 38px; font-size: .92rem; color: var(--text-3); }
.stop-locked b, .stop-locked a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums; font-size: 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 700px) {
  .stop-card { grid-template-columns: minmax(0, 44%) 1fr; }
  .stop-card .art { height: 100%; aspect-ratio: auto; min-height: 190px; }
  .stop-body { padding: 22px 28px; }
}

/* ───────── 一章 ───────── */
.chapter { padding-bottom: 40px; }
.ch-kicker { font-size: .95rem; letter-spacing: .2em; color: var(--light-hi); }
.ch-title-row { display: flex; align-items: baseline; gap: clamp(12px, 3vw, 24px); margin-top: 2px; }
.ch-num { font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums; font-size: clamp(4.6rem, 20vw, 8.4rem); line-height: 1; margin-top: -.08em; color: var(--light); text-shadow: 0 0 60px color-mix(in oklab, var(--light), transparent 50%); }
.ch-title-row h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.1rem, 9.4vw, 4.4rem); line-height: 1.15; letter-spacing: .16em; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.ch-sum { margin-top: 14px; max-width: 30em; font-size: clamp(1rem, 2.6vw, 1.15rem); }
.ch-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ch-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(10, 17, 32, .5); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .9rem; color: var(--text-2); }
.ch-facts b { font-weight: 500; color: var(--text-3); }
.peg-ico { display: inline-grid; place-items: center; color: var(--light); }
.peg-ico svg { display: block; }

.tabs { display: flex; gap: 4px; width: fit-content; max-width: calc(100% - 2 * var(--gutter)); margin: 18px auto 0; padding: 5px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px clamp(12px, 3.4vw, 22px); border-radius: 999px; font-size: clamp(.92rem, 3.6vw, 1.02rem); color: var(--text-2); white-space: nowrap; transition: background .25s, color .25s; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--light); color: var(--on-light); font-weight: 700; box-shadow: 0 6px 20px -6px var(--light); }

.filmstrip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 40vw, 210px); gap: 12px; max-width: var(--wrap); margin: 22px auto 0; padding: 4px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
.filmstrip::-webkit-scrollbar { display: none; }
.frame { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; opacity: .6; transition: opacity .25s; }
.frame:hover, .frame.is-active { opacity: 1; }
.frame .art { border-radius: 12px; }
.frame.is-active .art { box-shadow: 0 0 0 2px var(--light), 0 10px 30px -10px var(--light); }
.frame-ref { margin-top: 8px; font-size: .82rem; color: var(--light-hi); font-variant-numeric: tabular-nums; }
.frame-title { font-family: var(--serif); line-height: 1.35; letter-spacing: .04em; }

.art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: #0E1728; }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.art.is-empty { align-content: center; gap: 4px; padding: 12px; text-align: center; background: radial-gradient(90% 130% at 50% -20%, color-mix(in oklab, var(--light), transparent 70%), transparent 62%), linear-gradient(180deg, #17243C, #0D1627); }
.art-title { font-family: var(--serif); font-size: clamp(1rem, 3vw, 1.25rem); letter-spacing: .12em; }
.art-note { font-size: .78rem; color: var(--text-3); }
.frame .art-title { font-size: .85rem; }
.frame .art-note { display: none; }
.plain { max-width: 42rem; margin-inline: auto; padding: 36px var(--gutter) 80px; font-size: 1.1rem; color: var(--text-2); }

/* 聽經看圖：唸到哪一節，光就打在那一節 */
.listen { --stage-h: calc((100vw - 2 * var(--gutter)) * .5625 + 78px); display: grid; gap: 6px; max-width: var(--wrap); margin-inline: auto; padding: 14px var(--gutter) 150px; }
.stage { position: sticky; top: 0; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 14px; background: linear-gradient(var(--night-1) 90%, transparent); }
.stage .art { box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px #000; }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 10px; }
.stage .ref { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--light); white-space: nowrap; }
.stage-title { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .08em; }
.clue { display: none; flex-basis: 100%; color: var(--text-2); }
.verses { max-width: 34em; margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-weight: 500; font-size: clamp(1.22rem, 4.7vw, 1.45rem); line-height: 2; }
.scene-mark { margin-top: 26px; padding: 16px 0 6px; border-top: 1px solid var(--line); font-family: var(--sans); font-weight: 400; font-size: .9rem; line-height: 1.7; }
.verses > .scene-mark:first-child { margin-top: 0; border-top: 0; }
.scene-mark b { display: block; font-weight: 500; letter-spacing: .06em; color: var(--light-hi); }
.scene-mark span { display: block; color: var(--text-3); }
.verse { display: grid; grid-template-columns: 2.1em 1fr; width: 100%; padding: 4px 10px 4px 0; border: 0; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; background: none; text-align: left; line-height: inherit; scroll-margin-top: var(--stage-h); transition: opacity .5s, background .4s; }
.vn { padding-right: 1.2em; font-family: var(--sans); font-weight: 400; font-size: .56em; line-height: calc(2em / .56); text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vt small { font-size: .68em; color: var(--text-3); }
.verse.is-key .vt { color: var(--light-hi); }
.key-tag { margin-left: .8em; padding: .2em .8em; border-radius: 999px; background: color-mix(in oklab, var(--light), transparent 84%); font-family: var(--sans); font-style: normal; font-weight: 500; font-size: .48em; color: var(--light-hi); vertical-align: .4em; white-space: nowrap; }
.verses.is-live .verse { opacity: .38; }
.verses.is-live .verse.is-now, .verses.is-live .verse:hover { opacity: 1; }
.verse.is-now { border-left-color: var(--light); background: linear-gradient(90deg, color-mix(in oklab, var(--light), transparent 84%), transparent 85%); }
.done-note { margin-top: 30px; padding: 18px 20px; border-radius: var(--r-m); background: color-mix(in oklab, var(--light), transparent 90%); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 60%); font-size: 1.05rem; }
.done-note a { margin-left: .8em; font-weight: 700; color: var(--light-hi); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 960px) {
  .listen { --stage-h: 28px; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: start; gap: 56px; padding-top: 30px; }
  .stage { top: 24px; margin: 0; padding: 0; background: none; }
  .stage .art { border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px #000, 0 0 140px -40px color-mix(in oklab, var(--light), transparent 55%); }
  .stage figcaption { margin-top: 16px; }
  .clue { display: block; margin-top: 6px; }
  .scene-mark span { display: none; }
}

/* 聽故事：像看一支影片。畫面慢慢移動、照進度換圖，下面是字幕；點畫面可以暫停 */
.story { display: grid; gap: 18px; max-width: 62rem; margin-inline: auto; padding: 18px var(--gutter) 150px; }
.cinema {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-l); isolation: isolate; background: #05080F;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px #000, 0 0 160px -50px color-mix(in oklab, var(--light), transparent 45%);
}
.cinema-art { position: absolute; inset: 0; cursor: pointer; }
.cinema-pic { position: absolute; inset: 0; animation: pic-in 1.3s ease both; }
.cinema-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.cinema-pic.is-empty { display: grid; place-items: center; align-content: center; gap: 4px; background: radial-gradient(90% 130% at 50% -20%, color-mix(in oklab, var(--light), transparent 70%), transparent 62%), linear-gradient(180deg, #17243C, #0D1627); }
/* 四種鏡頭：慢慢推近、往右搖、慢慢拉遠、往左上搖。每換一張圖換一種 */
.cinema-pic.is-move-0 img { animation: move-0 28s ease-out both; }
.cinema-pic.is-move-1 img { animation: move-1 28s ease-out both; }
.cinema-pic.is-move-2 img { animation: move-2 28s ease-out both; }
.cinema-pic.is-move-3 img { animation: move-3 28s ease-out both; }
.cinema.is-paused .cinema-pic img, .cinema.is-idle .cinema-pic img { animation-play-state: paused; }
@keyframes pic-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes move-0 { from { transform: scale(1.03); } to { transform: scale(1.17); } }
@keyframes move-1 { from { transform: scale(1.13) translateX(-3%); } to { transform: scale(1.13) translateX(3%); } }
@keyframes move-2 { from { transform: scale(1.18); } to { transform: scale(1.03); } }
@keyframes move-3 { from { transform: scale(1.13) translate(3%, 1.5%); } to { transform: scale(1.13) translate(-3%, -1.5%); } }
/* 下面壓暗一點，字幕才看得清楚 */
.cinema::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0 0; height: 48%; background: linear-gradient(to top, rgba(4, 7, 14, .9), rgba(4, 7, 14, .35) 55%, transparent); pointer-events: none; }
.cinema-bars { position: absolute; z-index: 3; inset: 12px 14px auto 14px; display: flex; gap: 5px; }
.cinema-bars i { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.cinema-bars b { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; }
.cinema-bars .is-done b { width: 100%; }
.cinema-chip {
  position: absolute; z-index: 3; top: 26px; left: 14px; right: 62px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; width: fit-content; max-width: calc(100% - 76px);
  margin: 0; padding: 5px 14px; border-radius: 999px; background: rgba(6, 10, 19, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .82rem; color: var(--text-2); pointer-events: none;
}
.cinema-chip b { color: var(--light-hi); font-weight: 700; }
.cinema-chip span { font-family: var(--serif); letter-spacing: .06em; color: var(--text); }
.cinema-chip .ref { font-family: var(--sans); letter-spacing: 0; color: var(--text-3); }
.cinema-sub {
  position: absolute; z-index: 3; left: 5%; right: 5%; bottom: clamp(10px, 5.5%, 36px); margin: 0; text-align: center; text-wrap: balance;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.02rem, 4.3vw, 1.7rem); line-height: 1.5; letter-spacing: .04em; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95), 0 0 3px rgba(0, 0, 0, .9); pointer-events: none;
}
.cinema-sub.is-in { animation: sub-in .35s ease both; }
@keyframes sub-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cinema-nav { position: absolute; z-index: 2; top: 18%; bottom: 18%; display: grid; align-items: center; width: 20%; padding: 0 12px; border: 0; background: none; color: transparent; }
.cinema-nav.is-prev { left: 0; justify-items: start; }
.cinema-nav.is-next { right: 0; justify-items: end; }
@media (hover: hover) { .cinema:hover .cinema-nav { color: rgba(255, 255, 255, .8); } }
/* 還沒開始的時候，中間一顆大大的播放鈕 */
.cinema-big {
  position: absolute; z-index: 4; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: fit-content; height: fit-content; margin: auto;
  padding: 0; border: 0; background: none; color: #fff; font: inherit; font-family: var(--serif); font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.25rem); letter-spacing: .12em; text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.cinema.is-idle .cinema-big { display: flex; }
.cinema-big .icon { display: grid; place-items: center; width: clamp(64px, 16vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--light); color: var(--on-light); box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 0 70px -6px var(--light); transition: transform .25s var(--ease); }
.cinema-big:hover .icon { transform: scale(1.06); }
.cinema.is-idle::before { content: ""; position: absolute; z-index: 2; inset: 0; background: rgba(4, 7, 14, .38); pointer-events: none; }
/* 暫停的時候中間也放播放鈕（不寫字），點一下繼續 */
.cinema.is-paused .cinema-big { display: flex; }
.cinema.is-paused .cinema-big span:last-child { display: none; }
.story-key { padding: 16px 20px; border-radius: var(--r-m); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.story-key .ref { font-size: .88rem; letter-spacing: .06em; color: var(--text-3); }
.story-key p { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 4.2vw, 1.3rem); line-height: 1.95; color: var(--light-hi); }
.story-key small { font-size: .7em; color: var(--text-3); }
.story-more summary { width: fit-content; padding: 8px 16px; border-radius: 999px; color: var(--text-2); font-size: .95rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); list-style: none; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more[open] summary { color: var(--text); }
.story-text { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.08rem, 4.1vw, 1.22rem); line-height: 2; color: var(--text-2); }
/* 這一幕的經文：一節一行，左邊是節數 */
.story-verses { color: var(--text); }
.story-verses .sv { display: grid; grid-template-columns: 2.6em 1fr; align-items: baseline; }
.story-verses .sv + .sv { margin-top: 4px; }
.story-verses .vn { padding-right: .7em; }
.story-verses small { font-size: .68em; color: var(--text-3); }
@media (max-width: 640px) {
  /* 手機上畫面貼齊螢幕兩邊，盡量大 */
  .story .cinema { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .cinema-chip .ref { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cinema-pic img, .cinema-pic, .cinema-sub.is-in { animation: none; } }

/* 聽故事的時候，一幕一幕的小圖排在影片下面；最下面要留位置給播放列 */
.chapter.is-story .story { padding-bottom: 6px; }
.chapter.is-story .filmstrip { margin-top: 8px; padding-bottom: 150px; }
.player .side { display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) {
  .player .side .snd-pill span:last-child { display: none; } /* 手機上聲音鈕只留圖示，播放列才不會擠成兩行 */
  .player .side .snd-pill { padding: 6px; }
}

/* 加映的名畫：整幅放進去不裁，後面墊一層模糊的同一張；角落小字寫「名畫：作者，年代」，分得出不是 AI 圖 */
.is-painting { background: #05080F; }
.is-painting .art-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.45) saturate(.9); transform: scale(1.12); }
.is-painting .art-painting { position: relative; width: 100%; height: 100%; object-fit: contain; }
.art-credit {
  position: absolute; z-index: 2; right: 10px; bottom: 8px; padding: 2px 10px; border-radius: 999px;
  background: rgba(6, 10, 19, .66); font-size: .75rem; color: var(--text-2); pointer-events: none;
}
.cinema-pic .art-credit { top: 46px; bottom: auto; right: 64px; }
.cinema-pic.is-painting img.art-painting { animation: none; }
.cinema.is-full .is-painting .art-blur, .stage.is-full .is-painting .art-blur { object-fit: cover; }
.is-full .cinema-pic .art-credit { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); right: calc(14px + env(safe-area-inset-right)); }

/* 聽經看圖：同一幕換到下一張分鏡時淡入 */
.art.is-fading-in img { animation: pic-in .8s ease both; }

/* 底部的播放列 */
.player {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px;
  width: min(560px, calc(100% - 24px)); padding: 8px 14px 8px 20px; border-radius: 999px;
  background: rgba(16, 24, 42, .74); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px -20px #000;
}
.player-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player .now { overflow: hidden; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: var(--light-hi); white-space: nowrap; text-overflow: ellipsis; }
.eq { flex: none; display: none; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--light); }
.player.is-playing .eq { display: inline-flex; }
.player.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.player.is-playing .eq i:nth-child(2) { animation-delay: -.35s; }
.player.is-playing .eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.player .keys { display: flex; align-items: center; gap: 8px; }
.player .side { justify-self: end; }
.btn-round { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
.btn-round:hover { background: rgba(255, 255, 255, .17); }
.btn-round:active { transform: scale(.94); }
.btn-round.is-main { width: 58px; height: 58px; background: var(--light); color: var(--on-light); box-shadow: 0 8px 28px -6px var(--light); }
.btn-speed { min-width: 3.6em; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .9rem; font-variant-numeric: tabular-nums; }


/* ───────── 11/13：手機的換章按鈕放下面、全螢幕、自動接下一章、選聲音、只有經文的書卷 ───────── */

/* 換章：電腦在上面那一列；手機（窄螢幕）收進下面，拇指按得到，浮在播放列上面一點 */
.ch-dock { display: none; }
@media (max-width: 760px) {
  .ch-hero .topbar-side, .rd-head .topbar-side { display: none; }
  .ch-dock {
    position: fixed; z-index: 29; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex; justify-content: space-between; gap: 10px; pointer-events: none;
  }
  .ch-dock a {
    pointer-events: auto; display: inline-flex; align-items: center; gap: 2px; min-height: 42px; padding: 0 16px 0 8px; border-radius: 999px;
    background: rgba(16, 24, 42, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 12px 30px -12px #000; font-size: .95rem;
  }
  .ch-dock a.is-fwd { margin-left: auto; padding: 0 8px 0 16px; }
  .ch-dock a { transition: opacity .2s, transform .2s var(--ease); }
  .ch-dock.is-tucked a { opacity: 0; transform: translateY(10px); pointer-events: none; }
  .chapter.has-player .ch-dock { bottom: calc(98px + env(safe-area-inset-bottom)); }
  .chapter.has-player { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .chapter:not(.has-player) { padding-bottom: 90px; }
}

/* 11/18：每一章最底下的「上一章、下一章」（手機、電腦都有；手機拇指好按，按鈕大） */
.ch-end { display: flex; gap: 12px; width: min(var(--wrap, 1120px), 100% - 32px); margin: clamp(28px, 5vw, 48px) auto 0; }
.ch-end-gap { flex: 1; }
.ch-end-btn {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 66px; padding: 10px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); text-decoration: none;
  transition: background .15s, transform .15s var(--ease);
}
.ch-end-btn:hover { background: rgba(255, 255, 255, .1); }
.ch-end-btn:active { transform: scale(.97); }
.ch-end-btn.is-fwd { justify-content: flex-end; text-align: right; }
.ch-end-btn > span { min-width: 0; }
.ch-end-btn small { display: block; font-size: .8rem; letter-spacing: .1em; color: var(--text-3); }
.ch-end-btn b { display: block; overflow: hidden; font-size: 1.05rem; white-space: nowrap; text-overflow: ellipsis; color: var(--light-hi); }
.ch-end-btn svg { flex: none; color: var(--light-hi); }

/* 播放列上面那一排：自動接下一章的開關、聲音選單 */
.play-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 2px 0 14px; }
.opt-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 10px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; color: var(--text-2);
}
.opt-switch { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background .2s; }
.opt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.opt-toggle[aria-pressed="true"] { color: var(--text); }
.opt-toggle[aria-pressed="true"] .opt-switch { background: var(--light); }
.opt-toggle[aria-pressed="true"] .opt-switch::after { transform: translateX(14px); background: var(--on-light); }
.opt-voice { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--text-2); }
.opt-select { min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text); font: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.opt-select option { background: var(--night-2); color: var(--text); }
.opt-note { flex-basis: 100%; font-size: .85rem; color: var(--text-3); }
.opt-note:empty { display: none; }
.link-btn { margin-left: .8em; padding: 0; border: 0; background: none; font-weight: 700; color: var(--light-hi); text-decoration: underline; text-underline-offset: 5px; }

/* 全螢幕的按鈕（平常在畫面右上角） */
.full-enter {
  position: absolute; z-index: 4; top: 22px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(6, 10, 19, .6); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.stage-art { position: relative; }
.stage .full-enter { top: 10px; right: 10px; }
.full-bar { display: none; }
.full-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: rgba(6, 10, 19, .7); color: #fff; font-size: .95rem; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}

/* 自己做的全螢幕：固定鋪滿整個螢幕、黑底，蓋住上面的列、分頁和播放列，整頁不能捲 */
html.is-full-page, html.is-full-page body { overflow: hidden; overscroll-behavior: none; }
.is-full {
  position: fixed !important; inset: 0 !important; z-index: 100 !important;
  width: auto !important; height: auto !important; max-width: none !important; aspect-ratio: auto !important;
  margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: #000 !important; box-shadow: none !important;
  container-type: size;
}
/* 手機拿直的、按了「橫著看」：畫面轉 90 度鋪滿 */
.is-full.is-turned { inset: 0 auto auto 0 !important; width: var(--fh) !important; height: var(--fw) !important; transform-origin: 0 0; transform: rotate(90deg) translateY(-100%); }
.is-full .full-enter { display: none; }
.is-full > .full-bar { position: absolute; z-index: 8; top: calc(22px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: flex; gap: 8px; }

/* 聽故事的影片放到全螢幕 */
.cinema.is-full .cinema-pic img { object-fit: contain; object-position: 50% 50% !important; }
.cinema.is-full .cinema-bars { top: calc(12px + env(safe-area-inset-top)); }
.cinema.is-full .cinema-chip { top: calc(78px + env(safe-area-inset-top)); left: calc(14px + env(safe-area-inset-left)); }
.cinema.is-full .cinema-sub { bottom: calc(5% + env(safe-area-inset-bottom)); font-size: clamp(1.15rem, 3.6cqw, 2.4rem); }
.cinema.is-full .cinema-nav { color: rgba(255, 255, 255, .5); }
.cinema.is-full::after { height: 36%; }

/* 聽經看圖的圖放到全螢幕：圖鋪滿，下面寫正在唸的那一節；點圖播放或暫停，左右兩邊換上一節、下一節 */
.ov-nav, .ov-big, .stage-verse { display: none; }
.stage.is-full { display: block; }
.stage.is-full .stage-art { position: absolute; inset: 0; }
.stage.is-full .stage-slot, .stage.is-full .art { height: 100%; }
.stage.is-full .art { aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #000; cursor: pointer; }
.stage.is-full .art img { object-fit: contain; object-position: 50% 50% !important; }
.stage.is-full figcaption {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: block; margin: 0; text-align: center; pointer-events: none;
  padding: 56px max(6%, env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .55) 60%, transparent);
}
.stage.is-full .stage-title, .stage.is-full .clue { display: none; }
.stage.is-full .stage-verse {
  display: block; max-width: 46em; margin: 0 auto; font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 3cqw, 2rem); line-height: 1.65;
  color: #fff; text-shadow: 0 2px 12px #000; text-wrap: balance;
}
.stage-verse b { font-family: var(--num); font-weight: 600; color: var(--light-hi); }
.stage-verse small { font-size: .7em; opacity: .7; }
.stage.is-full .ov-nav { position: absolute; z-index: 2; top: 16%; bottom: 34%; display: grid; align-items: center; width: 18%; padding: 0 12px; border: 0; background: none; color: rgba(255, 255, 255, .5); }
.ov-nav.is-prev { left: 0; justify-items: start; }
.ov-nav.is-next { right: 0; justify-items: end; }
.stage.is-full:not(.is-playing) .ov-big {
  position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; width: 92px; height: 92px; margin: auto; border: 0; border-radius: 50%;
  background: var(--light); color: var(--on-light); box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 0 70px -6px var(--light);
}

/* 只有經文的章：上面一塊簡單的標題，下面一節一節的經文 */
.rd-head { position: relative; background: radial-gradient(90% 120% at 50% -20%, color-mix(in oklab, var(--light), transparent 76%), transparent 70%); }
.rd-body { max-width: 44rem; margin-inline: auto; padding: 30px var(--gutter) 4px; }
.chapter.is-read .ch-num { font-size: clamp(3.6rem, 16vw, 6rem); }
.chapter.is-read .ch-title-row h1 { font-size: clamp(1.8rem, 7.4vw, 3rem); }
.rd-note { margin-top: 8px; color: var(--text-2); }
.rd-tts { margin: 0 0 14px; font-size: .9rem; color: var(--text-3); }
.listen.is-plain { --stage-h: 20px; display: block; max-width: 44rem; padding-top: 18px; }

/* 只有經文的書卷：書名和每一章的數字 */
.bk-hero.is-plain { min-height: clamp(320px, 50svh, 540px); }
.bk-group { margin-bottom: 4px; font-size: .9rem; letter-spacing: .2em; color: var(--light-hi); }
.world.is-read .bk-body .btn { margin-top: 22px; }
.rd-chapters { max-width: var(--wrap); margin-inline: auto; padding: 22px var(--gutter) 96px; }
.rd-chapters h2 { margin-bottom: 14px; font-family: var(--serif); font-size: 1.3rem; letter-spacing: .1em; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; }
.rd-grid a {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums;
  font-size: 1.45rem; color: var(--light-hi); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 55%); transition: background .2s, color .2s;
}
.rd-grid a:hover { background: var(--light); color: var(--on-light); }
.ch-index a.is-read { color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.stop-locked a { color: var(--text-2); }
.stop-locked a:hover { color: var(--light-hi); box-shadow: inset 0 0 0 1px var(--light); }
a.orb:not(.is-open):hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--light-hi); }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title span, .hero-verse, .hero-lede, .hero-actions { opacity: 1; }
}

/* ───────── 11/13 夜：隨時跳轉（右下角圓鈕 → 選書卷、章、節） ───────── */
.jump-fab {
  position: fixed; z-index: 31; right: calc(14px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: rgba(16, 24, 42, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--light), transparent 50%), 0 14px 32px -10px #000; color: var(--light-hi); line-height: 1.1;
  transition: transform .2s var(--ease), background .2s;
}
.jump-fab:hover { background: rgba(26, 36, 58, .94); }
.jump-fab:active { transform: scale(.94); }
.jump-ico { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.jump-lbl { font-size: .7rem; letter-spacing: .1em; color: var(--text-2); }
body[data-view="game"] .jump-fab, body[data-view="pk"] .jump-fab, body[data-view="world"] .jump-fab,
html.is-full-page .jump-fab, html.is-jumping .jump-fab { display: none; }
@media (max-width: 760px) {
  body:has(.chapter.has-player) .jump-fab { bottom: calc(152px + env(safe-area-inset-bottom)); }
  body:has(.chapter:not(.has-player)) .jump-fab { bottom: calc(68px + env(safe-area-inset-bottom)); }
}

html.is-jumping, html.is-jumping body { overflow: hidden; }
.jump-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: rgba(3, 6, 12, 0); transition: background .2s; }
.jump-sheet.is-in { background: rgba(3, 6, 12, .62); }
.jump-panel {
  display: flex; flex-direction: column; width: min(660px, 100%); max-height: min(86dvh, 780px); border-radius: 22px 22px 0 0;
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-strong), 0 -20px 60px -20px #000; padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform .22s var(--ease);
}
.jump-sheet.is-in .jump-panel { transform: none; }
@media (min-width: 761px) {
  .jump-sheet { align-items: center; }
  .jump-panel { border-radius: 22px; }
}
.jump-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 4px 22px; font-size: 1.12rem; }
.jump-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.jump-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 20px 12px; border-bottom: 1px solid var(--line); }
.jump-chip { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .95rem; color: var(--text-2); }
.jump-chip.is-on { background: var(--light); color: var(--on-light); font-weight: 700; }
.jump-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 24px; }
.jump-group h3 { margin: 12px 0 8px; font-size: .9rem; font-weight: 600; letter-spacing: .2em; color: var(--light-hi); }
.jump-grid { display: grid; gap: 8px; }
.jump-grid.is-books { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.jump-grid.is-nums { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.jump-cell {
  min-height: 46px; padding: 6px 4px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .92rem; line-height: 1.3; color: var(--text); transition: background .15s;
}
.jump-cell:hover, .jump-cell:focus-visible { background: rgba(255, 255, 255, .13); }
.jump-cell.is-num { aspect-ratio: 1; min-height: 0; font-family: var(--num); font-size: 1.3rem; font-weight: 600; font-variant-numeric: lining-nums; color: var(--light-hi); }
.jump-cell.is-open { font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c, var(--light)), transparent 40%); }
.jump-cell.is-open::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--c, var(--light)); vertical-align: middle; }
.jump-cell.is-here { background: color-mix(in oklab, var(--light), transparent 80%); box-shadow: inset 0 0 0 2px var(--light); }
.jump-note { margin: 0 0 8px; font-size: .88rem; color: var(--text-3); }
.jump-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--light); vertical-align: middle; }
.jump-row { margin-bottom: 12px; }
.jump-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .98rem; color: var(--light-hi);
}
/* 11/18：跳轉面板的分頁（書卷／搜尋／紀錄）、搜尋結果、紀錄 */
.jump-tabs { display: flex; gap: 6px; margin: 4px 20px 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.jump-tab { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; font-size: .98rem; color: var(--text-2); }
.jump-tab.is-on { background: var(--light); color: var(--on-light); font-weight: 700; }
.jump-tabs + .jump-crumbs { padding-top: 12px; }
.jump-tabs + .jump-crumbs[hidden] + .jump-body { border-top: 1px solid var(--line); margin-top: 12px; }
.jump-search { position: sticky; top: -14px; z-index: 1; margin: -14px -20px 10px; padding: 14px 20px 10px; background: var(--night-2); }
.jump-input {
  width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; color: var(--text);
}
.jump-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--light); }
.jump-results { display: grid; gap: 6px; }
.jump-hit {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .04); text-align: left; font-size: .95rem; line-height: 1.6; color: var(--text-2);
}
.jump-hit:hover, .jump-hit:focus-visible { background: rgba(255, 255, 255, .1); }
.jump-hit b { font-family: var(--num); font-variant-numeric: lining-nums; color: var(--light-hi); white-space: nowrap; }
.jump-hit mark { padding: 0 2px; border-radius: 4px; background: color-mix(in oklab, var(--light), transparent 55%); color: var(--text); }
.jump-hit.is-ref { background: color-mix(in oklab, var(--light), transparent 82%); box-shadow: inset 0 0 0 1px var(--light); color: var(--text); }
.jump-stat { display: flex; gap: 10px; margin: 0 0 12px; }
.jump-stat > span { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.jump-stat b { font-family: var(--num); font-size: 1.7rem; line-height: 1; color: var(--light-hi); }
.jump-stat small { flex-basis: 100%; font-size: .82rem; color: var(--text-3); }
.jump-day { margin-bottom: 12px; }
.jump-day-name { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: .92rem; font-weight: 600; color: var(--text); }
.jump-day-name small { font-weight: 400; color: var(--text-3); }
.jump-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-chips .jump-chip { display: inline-flex; align-items: center; text-decoration: none; }
.jump-clear { margin-top: 10px; font-size: .86rem; }
.verse.is-jumped { animation: jumped 2.4s ease-out; }
@keyframes jumped { 0%, 40% { background: color-mix(in oklab, var(--light), transparent 70%); } 100% { background: none; } }

/* ───────── 3D 闖關的入口（首頁的大門、書卷頁的按鈕）。總入口頁的樣式在 css/hub.css ───────── */
.door-sec { padding-top: clamp(30px, 5vw, 60px); }
.door { position: relative; display: grid; align-items: end; min-height: clamp(320px, 44vw, 480px); overflow: hidden; border-radius: var(--r-l); isolation: isolate; box-shadow: inset 0 0 0 1px var(--line-strong), 0 50px 90px -60px #000; }
.door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transition: transform 1.4s var(--ease); }
.door:hover img { transform: scale(1.05); }
.door-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 13, 25, .9) 2%, rgba(8, 13, 25, .34) 40%, rgba(8, 13, 25, 0) 66%), linear-gradient(to right, rgba(8, 13, 25, .58), rgba(8, 13, 25, .12) 40%, rgba(8, 13, 25, 0) 58%); }
.door-body { display: grid; justify-items: start; gap: 6px; max-width: 36rem; padding: clamp(22px, 4vw, 44px); }
.door-k { font-size: .92rem; letter-spacing: .3em; color: var(--light-hi); }
.door-t { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.2; letter-spacing: .1em; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.door-p { max-width: 26em; color: var(--text); opacity: .88; }
.door .btn { margin-top: 14px; }
.door:hover .btn { filter: brightness(1.07); transform: translateY(-2px); }
.bk-3d { margin-top: 20px; }
body[data-view="hub"] .jump-fab { display: none; }
