@font-face { font-family: "Gentium Book Plus"; font-weight: 400; font-display: swap; src: url(fonts/gentium-book-plus-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gentium Book Plus"; font-weight: 400; font-display: swap; src: url(fonts/gentium-book-plus-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gentium Book Plus"; font-weight: 700; font-display: swap; src: url(fonts/gentium-book-plus-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gentium Book Plus"; font-weight: 700; font-display: swap; src: url(fonts/gentium-book-plus-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6efe0; --card: #fffaf0; --ink: #2b2118; --mute: #7a6a58; --line: #e2d4b8;
  --brand: #8c2f39; --brand-dark: #6a1f28; --brand-ink: #fff; --gold: #c8962e; --gold-dark: #9c7220; --blue: #2f5d8a;
  --good: #4f8a4b; --good-dark: #386835; --good-bg: #e1f0dc; --bad: #b8423c; --bad-dark: #8f302b; --bad-bg: #f7dcd8;
  --scale: 1; --radius: 16px; --tab: 64px; --scene: 0.6;
}
[data-theme="dark"] { --bg: #17120e; --card: #231c16; --ink: #f1e7d3; --mute: #a8977f; --line: #3a2f24; --brand: #d66a74; --brand-dark: #a84853; --brand-ink: #1a0f10; --gold: #e0b04a; --gold-dark: #b08a30; --blue: #6fa3d6; --good: #7fc079; --good-dark: #5a9a55; --good-bg: #1f3320; --bad: #ef7f78; --bad-dark: #c05a54; --bad-bg: #3a1f1d; --scene: 0.35; }
[data-theme="royal"] { --bg: #1c1630; --card: #2a2142; --ink: #efe8ff; --mute: #b0a3d4; --line: #3d3260; --brand: #b78cf0; --brand-dark: #8a5cc8; --brand-ink: #1a1030; --gold: #e8c15a; --gold-dark: #b8962e; --blue: #7fb2e8; --good: #7fd09a; --good-dark: #5aa878; --good-bg: #1f3a2c; --bad: #f08080; --bad-dark: #c25a5a; --bad-bg: #3d2030; --scene: 0.35; }
[data-theme="sea"] { --bg: #eaf3f7; --card: #fbfeff; --ink: #14303d; --mute: #5d7f8f; --line: #cfe2ea; --brand: #1f6f8b; --brand-dark: #14506a; --gold: #d6a23a; --gold-dark: #a87d22; --blue: #2f5d8a; --good: #3f8f6b; --good-dark: #2c6e50; --good-bg: #dcf0e6; }
[data-theme="olive"] { --bg: #eef1e2; --card: #fbfcf4; --ink: #26301a; --mute: #6b7656; --line: #d8dfc2; --brand: #5b7a2d; --brand-dark: #425a1e; --gold: #c8962e; --gold-dark: #9c7220; --blue: #3d6a8a; --good: #4f8a4b; --good-dark: #386835; --good-bg: #e1f0d4; }
[data-theme="desert"] { --bg: #f7e8d4; --card: #fff6e8; --ink: #3a2414; --mute: #8a6a4c; --line: #ecd2ac; --brand: #b5532a; --brand-dark: #8a3c1a; --gold: #d9992f; --gold-dark: #a8741c; --blue: #3a6a8a; --good: #5f8a3f; --good-dark: #46692c; --good-bg: #e6f0d0; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: calc(16px * var(--scale)); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; overscroll-behavior-y: none; }
.spanish { font-family: "Gentium Book Plus", "Gentium Plus", "Palatino Linotype", "Cardo", serif; }
h1 { font-size: 1.6rem; margin: 0.4em 0; } h2 { font-size: 1.2rem; margin: 1.2em 0 0.5em; } h3 { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hide { display: none !important; }
.muted { color: var(--mute); } .small { font-size: 0.85rem; } .center { text-align: center; } .pad { padding: 28px 16px; }
.label { margin: 1em 0 0.4em; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; margin-top: 18px; }

#app { min-height: 100dvh; }
.view { max-width: 760px; margin: 0 auto; padding: 14px 16px calc(var(--tab) + 28px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--mute); text-decoration: none; font-size: 0.72rem; font-weight: 600; min-height: 44px; }
.tabbar a .g { font: 700 1.35rem "Gentium Book Plus", serif; line-height: 1; }
.tabbar a.on { color: var(--brand); }
body.playing .tabbar { display: none; }
body.playing .view { padding-bottom: 150px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 12px; }
.brand { display: flex; flex-direction: column; flex: 1; min-width: 0; } .brand > span { font-size: 1.5rem; font-weight: 800; font-family: "Gentium Book Plus", serif; color: var(--brand); } .brand small { color: var(--mute); }
.stats { display: flex; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; font-size: 1.3rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: 0 2px 0 var(--line); }
.card.flat { box-shadow: none; }
.btn { min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.btn.primary { background: var(--brand); border-color: var(--brand-dark); color: var(--brand-ink); }
.btn.good { background: var(--good); border-color: var(--good-dark); color: #fff; } .btn.bad { background: var(--bad); border-color: var(--bad-dark); color: #fff; }
.btn.ghost, .ghost { background: transparent; border-color: transparent; box-shadow: none; } .btn.small { min-height: 40px; padding: 6px 12px; } .wide { width: 100%; }
.link { background: none; border: 0; padding: 8px 0; color: var(--blue); text-align: left; } .link.small { font-size: 0.85rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chip { flex: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.chip small { color: var(--mute); font-weight: 600; } .chip.on { background: var(--brand); border-color: var(--brand-dark); color: var(--brand-ink); } .chip.on small { color: inherit; opacity: 0.8; } .chip.lockd { opacity: 0.7; }
.field { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; margin: 6px 0; }
.bar { flex: 1; height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--good); border-radius: 999px; transition: width 0.3s; }
.pill { background: var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 0.85rem; }
.tip { border-left: 4px solid var(--gold); padding-left: 12px; color: var(--mute); }
.badge { font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--line); white-space: nowrap; }
.badge.s0 { background: var(--line); } .badge.s1 { background: color-mix(in srgb, var(--gold) 35%, transparent); } .badge.s2 { background: color-mix(in srgb, var(--blue) 30%, transparent); } .badge.s3 { background: color-mix(in srgb, var(--good) 35%, transparent); } .badge.s4 { background: var(--gold); color: #fff; }
.list .item { width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; min-height: 52px; }
.list .item .spanish { font-size: 1.2rem; }

.hero { display: flex; gap: 16px; align-items: center; } .hero h1 { margin-top: 0; } .hero-text { flex: 1; } .mascot-wrap { flex: none; } .scribe { display: block; overflow: visible; }
.scribe .eyes { transform-origin: 100px 94px; animation: blink 5s infinite; } .scribe .quill { transform-origin: 160px 214px; animation: write 2.6s ease-in-out infinite; }
.scribe.cheer .quill, .scribe.happy .quill { animation-duration: 1.2s; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes write { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
.goals { margin-top: 10px; flex-wrap: wrap; }
.dials { display: grid; gap: 4px; grid-template-columns: 1fr; }
.dial { margin: 0; text-align: center; } .dial svg { width: 100%; max-width: 250px; } .dial .track { fill: none; stroke: var(--line); stroke-width: 9; } .dial .arc { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; }
.dial .grid { fill: none; stroke: var(--line); stroke-width: 1; } .dial .axis { fill: var(--mute); font: 700 11px system-ui; }
.dial figcaption { display: grid; margin-top: -4px; } .dial figcaption b { font-size: 1.8rem; color: var(--brand); } .dial figcaption span { font-weight: 800; } .dial figcaption small { color: var(--mute); padding: 0 12px; }
.legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 0.8rem; color: var(--mute); } .legend span { display: inline-flex; gap: 6px; align-items: center; } .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.s1 { background: var(--gold); } .sw.s2 { background: var(--blue); } .sw.s3 { background: var(--good); } .sw.s4 { background: var(--ink); }
.medals { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .medal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; opacity: 0.55; } .medal.on { opacity: 1; border-color: var(--gold); } .medal span { font-size: 1.5rem; } .medal small { color: var(--mute); font-size: 0.75rem; }
.review-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; } .review-card h2 { margin: 0 0 4px; } .review-card p { margin: 4px 0; }

.sections { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 -16px; padding: 6px 16px; }
.unit-banner { display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0 8px; } .unit-banner small { opacity: 0.8; font-weight: 700; } .unit-banner h3 { font-size: 1.15rem; } .unit-banner .pill { background: rgba(255, 255, 255, 0.2); color: inherit; }
.slot { margin: 10px 0; transform: translateX(var(--off)); text-align: center; position: relative; }
.node { width: 70px; height: 70px; border-radius: 50%; border: 0; border-bottom: 7px solid var(--brand-dark); background: var(--brand); color: var(--brand-ink); font: 700 1.9rem "Gentium Book Plus", serif; display: grid; place-items: center; }
.node:active { transform: translateY(3px); border-bottom-width: 4px; }
.node.k-gt, .node.k-gd { background: var(--blue); border-color: color-mix(in srgb, var(--blue) 70%, black); }
.node.k-rd { background: var(--good); border-color: var(--good-dark); }
.node.k-ts, .node.k-sx { width: 84px; height: 84px; background: var(--gold); border-color: var(--gold-dark); font-size: 2.2rem; }
.node.done { filter: saturate(0.55) brightness(1.08); } .node.done::after { content: "✓"; position: absolute; right: -2px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--good); color: #fff; font: 700 0.9rem system-ui; display: grid; place-items: center; }
.node.locked { background: var(--line); border-color: color-mix(in srgb, var(--line) 70%, black); color: var(--mute); filter: none; }
.node.current { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }
.pips, .cap { display: block; color: var(--gold-dark); font-size: 0.75rem; max-width: 150px; } .cap { color: var(--mute); font-weight: 700; margin-top: 4px; }
.bigglyph { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 700 2.4rem "Gentium Book Plus", serif; }
.bigglyph.k-gt, .bigglyph.k-gd { background: var(--blue); } .bigglyph.k-rd { background: var(--good); } .bigglyph.k-ts, .bigglyph.k-sx { background: var(--gold); }
.crowns { color: var(--gold); letter-spacing: 3px; font-size: 1.2rem; }

.progress { display: flex; align-items: center; gap: 10px; padding: 4px 0 10px; } .hearts { color: var(--bad); font-weight: 800; }
.stage { display: block; min-height: 40vh; }
.q { text-align: center; font-size: 2.4rem; margin: 14px 0 18px; font-weight: 700; line-height: 1.5; } .q.spanish { font-size: 2rem; } .q .tok.mark, .verse .tok.mark { background: color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 6px; padding: 0 3px; }
.huge { font-size: 3.2rem; line-height: 1.2; } .big { font-size: 2.2rem; margin: 0; } .tr { color: var(--mute); font-style: italic; font-size: 1.1rem; } .gloss { font-size: 1.5rem; font-weight: 700; margin: 6px 0; }
.blank { display: inline-block; min-width: 80px; border-bottom: 3px solid var(--brand); color: transparent; }
.opts { display: grid; gap: 10px; grid-template-columns: 1fr; } .opt { min-height: 56px; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card); font-size: 1.1rem; font-weight: 600; } .opt.spanish { font-size: 1.5rem; }
.opt.good, .tile.good { background: var(--good-bg); border-color: var(--good); } .opt.bad, .tile.bad { background: var(--bad-bg); border-color: var(--bad); }
.verse { font-size: 1.5rem; line-height: 1.9; } .verse .tok { font-size: inherit; }
.en { display: block; font-size: 1rem; color: var(--mute); line-height: 1.5; font-family: system-ui, sans-serif; margin-top: 4px; } .en-box .en { margin: 8px 0; }
.tok { font: inherit; background: none; border: 0; padding: 0 1px; border-radius: 6px; color: inherit; } .tok:hover { background: color-mix(in srgb, var(--blue) 18%, transparent); }
.tok.s0 { opacity: 0.45; } .tok.s1 { background: color-mix(in srgb, var(--gold) 28%, transparent); } .tok.s2 { border-bottom: 2px solid var(--blue); border-radius: 0; } .tok.unk { color: var(--mute); font-style: italic; }
.pairs, .match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .match { grid-template-columns: repeat(2, 1fr); }
.tile { min-height: 60px; padding: 8px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card); font-weight: 600; font-size: 1rem; } .tile.spanish { font-size: 1.4rem; } .tile.sel { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 15%, var(--card)); } .tile.gone { opacity: 0.25; pointer-events: none; }
.answer { min-height: 62px; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; margin: 12px 0; } .bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.feedback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); } .feedback.good { background: var(--good-bg); color: var(--good-dark); } .feedback.bad { background: var(--bad-bg); color: var(--bad-dark); }
.fbin { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; } .fbin .btn { grid-column: 1 / -1; } .fbtext { font-size: 0.95rem; max-height: 28vh; overflow: auto; } .fbtext .verse { font-size: 1.1rem; line-height: 1.6; } .fbtext small { opacity: 0.85; }
.timer { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 8px; } .timer i { display: block; height: 100%; width: 100%; background: var(--bad); }
.finish .xp { font-size: 1.6rem; font-weight: 800; color: var(--gold-dark); } .stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; } .stats3 div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; } .stats3 b { display: block; font-size: 1.2rem; } .stats3 span { color: var(--mute); font-size: 0.75rem; }
.badge-new { background: var(--gold); color: #fff; border-radius: 12px; padding: 8px 14px; margin: 8px 0; font-weight: 800; }
.flashcard { min-height: 280px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; } .rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .rates .btn { flex-direction: column; gap: 0; padding: 8px 4px; } .rates small { font-weight: 500; opacity: 0.7; }
.r0 { background: var(--bad-bg); } .r1 { background: color-mix(in srgb, var(--gold) 25%, var(--card)); } .r2 { background: var(--good-bg); } .r3 { background: color-mix(in srgb, var(--blue) 25%, var(--card)); }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .book { min-height: 56px; padding: 10px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card); text-align: left; }
.scripture .verse { margin: 0 0 14px; font-size: 1.45rem; line-height: 1.9; } .scripture .vn { font: 700 0.7rem system-ui; color: var(--brand); vertical-align: super; margin-right: 2px; } .scripture.custom { font-size: 1.45rem; line-height: 2; }
.pager { margin: 16px 0; flex-wrap: wrap; } .tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--line); border-radius: 12px; padding: 4px; margin-bottom: 8px; } .tabs2 button { border: 0; background: none; border-radius: 9px; min-height: 40px; font-weight: 700; } .tabs2 .on { background: var(--card); color: var(--brand); }
.attr { padding-left: 18px; color: var(--mute); font-size: 0.9rem; } .credit { display: flex; gap: 12px; align-items: center; } .preview { font-size: 1.6rem; }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: up 0.2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; max-width: 90vw; }
.lemma { font-size: 1.3rem; font-weight: 700; }

@media (min-width: 600px) {
  .opts { grid-template-columns: 1fr 1fr; } .dials { grid-template-columns: 1fr 1fr; } .scrim { align-items: center; } .sheet { border-radius: 22px; } .q { font-size: 2.8rem; } .q.spanish { font-size: 2.3rem; }
  .node { width: 78px; height: 78px; } .slot { transform: translateX(calc(var(--off) * 2)); }
}
@media (min-width: 960px) {
  .view { margin-left: 120px; max-width: 760px; padding-bottom: 40px; margin-right: auto; }
  body:not(.playing) #app { padding-left: 0; }
  .tabbar { right: auto; top: 0; bottom: 0; width: 104px; height: auto; flex-direction: column; justify-content: flex-start; padding-top: 16px; border-top: 0; border-right: 1px solid var(--line); }
  .tabbar a { flex: none; height: 76px; }
  body.playing .view { margin: 0 auto; }
  .dock, .feedback .fbin { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.path { display: flex; flex-direction: column-reverse; }
.path.dim { opacity: 0.45; pointer-events: none; }
.unit { position: relative; display: flex; flex-direction: column-reverse; margin-bottom: 0; padding: 36px 0; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: var(--scene); pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.unit-banner, .trail { position: relative; z-index: 1; }
.trail { display: flex; flex-direction: column-reverse; align-items: center; }
.slot { margin: 14px 0; }
.cap, .pips { background: color-mix(in srgb, var(--card) 85%, transparent); border-radius: 999px; padding: 2px 10px; }
.journey-start, .journey-end { display: grid; justify-items: center; gap: 4px; padding: 20px 0; text-align: center; font-weight: 800; color: var(--mute); }
.chip .sw { margin-right: 2px; }
.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 10px; }
.vcard { display: grid; gap: 4px; text-align: left; background: none; border: 0; padding: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .pct, .thumb .lvl { position: absolute; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; background: rgba(20, 14, 10, 0.78); color: #fff; }
.thumb .pct { top: 8px; right: 8px; } .thumb .lvl { left: 8px; bottom: 8px; background: var(--brand); color: var(--brand-ink); }
.vt { font-weight: 700; line-height: 1.3; }
.watch { display: grid; gap: 12px; grid-template-columns: 1fr; }
.vwrap { position: sticky; top: 0; z-index: 4; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.vwrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.transcript { margin: 0; max-height: 60vh; overflow: auto; }
.cue { margin: 0; padding: 8px 10px; border-radius: 10px; font: 1.3rem/1.8 "Gentium Book Plus", serif; }
.cue.now { background: color-mix(in srgb, var(--gold) 28%, transparent); }
.time { font: 700 0.75rem system-ui; color: var(--blue); background: none; border: 0; padding: 4px 6px; }
.vh { font-size: 1.1rem !important; }
@media (min-width: 900px) { .view.wide { max-width: 1280px; } .watch { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } .transcript { max-height: calc(100vh - 150px); } .vwrap { top: 12px; } }
.watch > * { min-width: 0; } .cue { overflow-wrap: anywhere; }

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
