@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/cormorant-garamond-normal-variable.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 500;font-display:swap;src:url('fonts/cormorant-garamond-italic-variable.woff2') format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/instrument-sans-variable.woff2') format('woff2');}

/* "Royal & Ember" game colors (2026-10-12), now worn by six color themes (2026-11-02, Christopher's approved mockup
   Mockups/tabs-settings-2026-11-02.html): CM Checkbook Register's and CM Snowball's Automatic, Dim, Classic Blue, Sunrise,
   Plum and Slate, which replaced System, Dark, Dim and Sepia.
   ember  = the pillar of fire (streaks)
   honey  = "sweeter also than honey" Ps 19:10 (XP, rewards, stars)
   mint / berry = right / wrong
   The game colors (ember, honey, mint, berry and the tile colors --t-*) are the same in every light theme; the theme
   colors the pages, headings and buttons (--royal for words and lines, --royal-solid for filled buttons, --royal-deep for
   their 3D edge, --hero for the big colored cards). :root holds Classic Blue, which Automatic shows on a light phone;
   Dim is the dark side (chosen, or Automatic on a dark phone). The logo keeps its own ember and purple in every theme. */
:root {
  --bg: #DFEAF4;
  --surface: #F7FAFD;
  --surface-2: #E7EFF7;
  --ink: #2A281F;
  --ink-2: rgba(42, 40, 31, 0.71);
  --ink-3: rgba(42, 40, 31, 0.66); /* 0.55 in the mockup measured 3.3:1; this is 4.4:1 or better on every light page */
  --line: #D3DFEA;
  --royal: #1F5C8B;
  --royal-solid: #2A6CA3;
  --royal-deep: #174A70;
  --royal-wash: #DBEAF6;
  --hero: linear-gradient(135deg, #4A8AC9 0%, #1F5C8B 55%, #143E5F 100%);
  --hero-deep: #143E5F;
  --glow: rgba(31, 92, 139, 0.32);
  --red: #AD4038;
  --ember: #FF7A2F;
  --ember-deep: #B2480B;
  --ember-wash: #FBE0C7;
  --honey: #F5B731;
  --honey-deep: #8F6200;
  --honey-wash: #F9E6BD;
  --mint: #1E9E6C;
  --mint-deep: #137750;
  --mint-wash: #D5EAD6;
  --berry: #E5484D;
  --berry-deep: #B8313A;
  --berry-wash: #F8DDD3;
  /* Look A's game tiles and goal icons (Practice, Me): white words on these in every theme, each 4.6:1 or better (the
     mockup's brighter red, gold and orange measured 4.0, 3.7 and 3.2:1, so each is a shade deeper, same hue) */
  --t-berry: #DC3239; --t-berry-d: #B02830; --t-honey: #9D6A0A; --t-honey-d: #6E4A05;
  --t-ember: #C54F15; --t-ember-d: #96390B; --t-royal: #5A46E0; --t-royal-d: #3F2FB4;
  --mark-ok: var(--mint-deep); --mark-no: var(--berry-deep); /* reading page ticks and crosses, and their legend */
  --name-ink: var(--royal); --name-line: color-mix(in srgb, var(--royal) 40%, transparent); /* names that open a person or place page (idea 3 Plus) */
  --shadow: 0 1px 2px rgba(31, 60, 90, 0.06), 0 4px 14px rgba(31, 60, 90, 0.09);
  --radius: 18px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --logo-c: #FF7A2F;
  --logo-m: #5A46E0;
  --ice: #2F7FC6;
  --mint-panel: #DCEBD9;
  --berry-panel: #F8DCD3;
  --glass: rgba(247, 250, 253, 0.55);
  --glass-fx: blur(14px) saturate(1.7);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(31, 92, 139, 0.18), 0 0 0 1px rgba(31, 92, 139, 0.1);
  color-scheme: light;
}
/* iPhone Safari (in a tab) draws the page under the clock while reporting a 0 safe area, so reserve it on touch screens.
   From the Home Screen iOS already starts below the status bar, so use the real value there. Same fix as Capture Memory. */
:root { --shield: var(--safe-t); }
@media (pointer: coarse) { :root { --safe-t: max(env(safe-area-inset-top, 0px), 54px); --shield: calc(var(--safe-t) + 26px); } }
@media (pointer: coarse) and (display-mode: standalone) { :root { --safe-t: env(safe-area-inset-top, 0px); --shield: var(--safe-t); } }
@media (pointer: coarse) { html.standalone { --safe-t: env(safe-area-inset-top, 0px); --shield: var(--safe-t); } }

/* The other light themes: only the page, card, line and heading colors change (Checkbook's values). */
:root[data-theme="sunrise"] {
  --bg: #F9E0CC; --surface: #FFF8F2; --surface-2: #FCE9DA; --line: #F0DCCB;
  --royal: #A24E17; --royal-solid: #B5591C; --royal-deep: #7E3A10; --royal-wash: #FCE5D3;
  --hero: linear-gradient(135deg, #E07F33 0%, #A24E17 55%, #6F3410 100%); --hero-deep: #6F3410; --glow: rgba(162, 78, 23, 0.32);
  --shadow: 0 1px 2px rgba(110, 60, 20, 0.06), 0 4px 14px rgba(110, 60, 20, 0.09);
  --glass: rgba(255, 248, 242, 0.55); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(162, 78, 23, 0.18), 0 0 0 1px rgba(162, 78, 23, 0.1);
}
:root[data-theme="plum"] {
  --bg: #EBE1F3; --surface: #FBF8FD; --surface-2: #F1EAF7; --line: #E2D6EC;
  --royal: #643A86; --royal-solid: #74479A; --royal-deep: #4A2A64; --royal-wash: #EDE4F4;
  --hero: linear-gradient(135deg, #8E5FB8 0%, #643A86 55%, #43265A 100%); --hero-deep: #43265A; --glow: rgba(100, 58, 134, 0.32);
  --shadow: 0 1px 2px rgba(70, 40, 95, 0.06), 0 4px 14px rgba(70, 40, 95, 0.09);
  --glass: rgba(251, 248, 253, 0.55); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(100, 58, 134, 0.18), 0 0 0 1px rgba(100, 58, 134, 0.1);
}
:root[data-theme="slate"] {
  --bg: #E1E7ED; --surface: #F8FAFB; --surface-2: #EBEFF3; --line: #D6DDE4;
  --royal: #34495E; --royal-solid: #3F5870; --royal-deep: #253545; --royal-wash: #E2E7ED;
  --hero: linear-gradient(135deg, #5F7C9B 0%, #34495E 55%, #1F2D3B 100%); --hero-deep: #1F2D3B; --glow: rgba(52, 73, 94, 0.32);
  --shadow: 0 1px 2px rgba(30, 45, 60, 0.06), 0 4px 14px rgba(30, 45, 60, 0.09);
  --glass: rgba(248, 250, 251, 0.55); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(52, 73, 94, 0.18), 0 0 0 1px rgba(52, 73, 94, 0.1);
}
/* Dim: chosen, or Automatic on a dark phone (the same values twice, one block for each). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1C2230; --surface: #272F40; --surface-2: #313A4D;
    --ink: #DCE2EC; --ink-2: #AEB5C2; --ink-3: #98A0AE; --line: #3A4253;
    --royal: #93C3EE; --royal-solid: #3E5D8C; --royal-deep: #2A4167; --royal-wash: #30405A;
    --hero: linear-gradient(135deg, #4A6FA3 0%, #30466B 55%, #222F48 100%); --hero-deep: #1A2438; --glow: rgba(0, 0, 0, 0.4); --red: #EE8A82;
    --ember: #FF8F4D; --ember-deep: #EE7B36; --ember-wash: rgba(255, 143, 77, 0.15);
    --honey: #FFC94D; --honey-deep: #E0A31F; --honey-wash: rgba(255, 201, 77, 0.14);
    --mint: #2FC48A; --mint-deep: #1E9E6C; --mint-wash: rgba(47, 196, 138, 0.14);
    --berry: #FF6B6F; --berry-deep: #E04A50; --berry-wash: rgba(255, 107, 111, 0.14);
    --t-berry: #C9434A; --t-berry-d: #8F2A31; --t-honey: #9C6B0E; --t-honey-d: #6A4704;
    --t-ember: #B85825; --t-ember-d: #8A3F17; --t-royal: #5B4BD6; --t-royal-d: #3B2FA0;
    --mark-ok: var(--mint); --mark-no: var(--berry);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
    --mint-panel: #1E3B36; --berry-panel: #3F2731; --logo-m: #FFFFFF; --ice: #7CC0F5;
    --glass: rgba(39, 47, 64, 0.55); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    color-scheme: dark;
  }
}
:root[data-theme="dim"] {
  --bg: #1C2230; --surface: #272F40; --surface-2: #313A4D;
  --ink: #DCE2EC; --ink-2: #AEB5C2; --ink-3: #98A0AE; --line: #3A4253;
  --royal: #93C3EE; --royal-solid: #3E5D8C; --royal-deep: #2A4167; --royal-wash: #30405A;
  --hero: linear-gradient(135deg, #4A6FA3 0%, #30466B 55%, #222F48 100%); --hero-deep: #1A2438; --glow: rgba(0, 0, 0, 0.4); --red: #EE8A82;
  --ember: #FF8F4D; --ember-deep: #EE7B36; --ember-wash: rgba(255, 143, 77, 0.15);
  --honey: #FFC94D; --honey-deep: #E0A31F; --honey-wash: rgba(255, 201, 77, 0.14);
  --mint: #2FC48A; --mint-deep: #1E9E6C; --mint-wash: rgba(47, 196, 138, 0.14);
  --berry: #FF6B6F; --berry-deep: #E04A50; --berry-wash: rgba(255, 107, 111, 0.14);
  --t-berry: #C9434A; --t-berry-d: #8F2A31; --t-honey: #9C6B0E; --t-honey-d: #6A4704;
  --t-ember: #B85825; --t-ember-d: #8A3F17; --t-royal: #5B4BD6; --t-royal-d: #3B2FA0;
  --mark-ok: var(--mint); --mark-no: var(--berry);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  --mint-panel: #1E3B36; --berry-panel: #3F2731; --logo-m: #FFFFFF; --ice: #7CC0F5;
  --glass: rgba(39, 47, 64, 0.55); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root:not(#_) { --glass: var(--surface); } } /* :not(#_) outranks every theme rule above */

[hidden] { display: none !important; }
/* Newer iPhone Safari blurs whatever scrolls under the clock, and the blur reaches about 26pt below it. A solid strip in
   the page color covers that whole zone on every page, so content disappears before it can blur (Christopher's
   screenshots, 2026-10-12; a strip only as tall as the clock area still showed blurred text). Zero height on desktop. */
body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: var(--shield); background: var(--bg); z-index: 35; pointer-events: none; }
/* Never scroll sideways, whatever the text size or zoom (clip, unlike hidden, keeps position: sticky working). */
.app { overflow-x: clip; }
/* touch-action: manipulation stops iPhone's double-tap zoom (two quick taps on a PIN key zoomed the page,
   Christopher 2026-10-12). Pinch-to-zoom still works. On every element, because iPhone checks each one. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.screen { padding: calc(30px + var(--safe-t)) 16px calc(var(--tabbar-h) + var(--safe-b) + 40px); }
.app.no-tabs .screen { padding-bottom: calc(var(--safe-b) + 24px); }
.app.no-tabs .tabbar { display: none; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); z-index: 20;
  width: calc(100% - 28px); max-width: 452px; height: var(--tabbar-h); padding: 5px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); box-shadow: var(--glass-edge);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); font-size: 0.68rem; font-weight: 700; border-radius: 999px; }
.tabbar a.active { background: var(--royal-wash); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--royal); }
.tabbar a.active svg { stroke-width: 2.2; }

/* ---------- CM logo (full mark only, never the C on its own) ---------- */
.cm-logo { display: block; }
.cm-logo path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.cm-logo .c { stroke: var(--logo-c); }
.cm-logo .m { stroke: var(--logo-m); }
.cm-logo.small path { stroke-width: 12; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
.brand .cm-logo { width: 34px; height: 34px; }

/* ---------- Shared pieces ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.brandline { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }
.chips { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; background: var(--surface); box-shadow: var(--shadow); }
.chip svg { width: 18px; height: 18px; }
.chip.ember { color: var(--ember); }
.chip.honey { color: var(--honey-deep); }
.chip.dim { color: var(--ink-3); }
.icon-ember { fill: var(--ember); }
.icon-honey { fill: var(--honey); }
.icon-dim { fill: var(--ink-3); }

h1.greet { font-size: 1.65rem; line-height: 1.15; margin: 0 0 4px; letter-spacing: -0.01em; }
.sub { color: var(--ink-2); margin: 0 0 18px; }
.section-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 26px 2px 10px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

/* Chunky "3D" buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 16px; padding: 15px 18px; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em;
  cursor: pointer; position: relative; top: 0; transition: top 0.06s, box-shadow 0.06s, background 0.15s;
}
.btn:active { top: 3px; }
.btn-royal { background: var(--royal-solid); color: #fff; box-shadow: 0 4px 0 var(--royal-deep); }
.btn-royal:active { box-shadow: 0 1px 0 var(--royal-deep); }
.btn-white { background: #fff; color: var(--royal-deep); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.btn-white:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.btn-mint { background: var(--mint); color: #fff; box-shadow: 0 4px 0 var(--mint-deep); }
.btn-berry { background: var(--berry); color: #fff; box-shadow: 0 4px 0 var(--berry-deep); }
.btn-ghost { background: var(--surface); color: var(--royal); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: 0 4px 0 var(--line); cursor: default; top: 0; }
.btn-row { display: grid; gap: 14px; }
.btn-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } /* a finished chapter: Retake quiz beside Read it here */
.btn-duo .btn { padding-top: 13px; padding-bottom: 13px; } /* the outlined one's 2px border would make the pair 4px taller than one button */
.btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn-pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-pair .btn { flex-direction: column; gap: 2px; padding: 7px 4px 6px; font-size: 0.82rem; }
.btn-pair .btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; }
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Today ---------- */
.streak-strip { padding: 12px 10px 14px; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.wk .lbl { font-size: 0.72rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.wk .f { width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.wk .f svg { width: 24px; height: 24px; }
.wk .f .icon-dim { opacity: 0.45; }
.wk .f svg.snow { fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wk .col.is-today .f { box-shadow: inset 0 0 0 2px var(--ember); }
.wk .col.is-today .lbl { color: var(--ink); }
.section-title.first { margin-top: 18px; }
/* Today only (2026-10-16, from Christopher's phone): 14px less above the session card, so its button sits above the
   tab bar at his size (322 x 699 with the Home Screen's 50px top and 27px bottom) even with a two-line greeting. */
.today .topbar { margin-bottom: 14px; }
.today .section-title.first { margin-top: 14px; }
.today .streak-strip { padding: 10px 10px 12px; }
.today .hero { margin-top: 12px; }
/* The link under the button then starts just below the pill's top edge instead of showing half its letters above it. */
.today .ses-just { margin-top: 16px; }

.hero {
  margin-top: 14px; border-radius: 22px; padding: 18px 18px 18px; color: #fff; position: relative; overflow: hidden;
  background: var(--hero);
  box-shadow: 0 10px 30px var(--glow);
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.hero::before { content: ""; position: absolute; right: 30px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 201, 77, 0.16); }
.hero h2 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; line-height: 1.05; margin: 0 0 4px; position: relative; z-index: 1; }
.hero p { margin: 0 0 14px; opacity: 0.85; font-size: 0.95rem; position: relative; z-index: 1; }
.hero .barline { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; z-index: 1; }
.hero .barline .bar { flex: 1; margin: 0; }
.hero .barline span { font-size: 0.82rem; opacity: 0.85; white-space: nowrap; }
.hero .btn { position: relative; z-index: 1; }
.hero .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); margin: 0 0 6px; overflow: hidden; position: relative; z-index: 1; }
.hero .bar i { display: block; height: 100%; background: var(--honey); border-radius: 99px; }
/* Today's session (2026-10-16): the Today card lists the session's three parts, then Start, then "Just the chapter quiz". */
.hero .ses-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.hero .ses-head h2 { font-size: 1.55rem; margin: 0; }
.ses-time { font-size: 0.8rem; opacity: 0.8; white-space: nowrap; }
.ses-done { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 0.85rem; color: var(--honey); white-space: nowrap; }
.ses-done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero .ses-list { position: relative; z-index: 1; margin: 4px 0 12px; }
.ses-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.hero .ses-row + .ses-row { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ses-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
/* On the colored Today card the chapter dot is drawn in --royal, which in a light theme is close to the card's own color,
   so it would vanish; there it is white (2026-11-02; a lighter purple from 2026-10-16). Only the royal dot reads --royal. */
.hero .ses-dot { --royal: #FFFFFF; }
.ses-txt { flex: 1; min-width: 0; }
.ses-txt b { display: block; font-size: 0.95rem; }
.ses-txt span { display: block; font-size: 0.8rem; line-height: 1.3; opacity: 0.85; }
.ses-xp { flex: none; font-weight: 800; font-size: 0.85rem; color: var(--honey); }
.hero .ses-xp { color: #FFD66B; }
.ses-just { display: block; text-align: center; margin-top: 8px; color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
.hero p + .btn { margin-top: 2px; }
/* The session's one results screen. */
.ses-results .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin-top: 8px; }
.ses-card { text-align: left; padding: 6px 14px 10px; margin: 10px 0 12px; }
.ses-card .ses-row + .ses-row { border-top: 1px solid var(--line); }
.ses-card .ses-txt span { color: var(--ink-2); opacity: 1; }
.ses-txt .ses-stars, .ses-card .ses-txt .ses-stars { display: inline; color: var(--honey-deep); letter-spacing: 1px; }
.ses-total { display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 700; }
.ses-total b { display: inline-flex; align-items: center; gap: 4px; font-size: 1.15rem; color: var(--honey-deep); }
.ses-total b svg { width: 20px; height: 20px; }
.ses-streak { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; font-weight: 700; color: var(--ember-deep); }
.ses-streak svg { width: 20px; height: 20px; }
.wu-note { display: block; margin-top: 4px; font-weight: 700; font-size: 0.85rem; }


.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 12px; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.1; }
.stat span { font-size: 0.78rem; color: var(--ink-2); font-weight: 600; }

/* ---------- Learn (path) ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface-2); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.book-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.book-head .pct { flex: 1; }
.book-head h2 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
/* Learn: the book's name opens the book chooser (2026-10-14; was a 2 x 2 switcher above it). */
.book-switch { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; line-height: inherit; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.book-switch svg { width: 22px; height: 22px; color: var(--royal); margin-top: 4px; }
.pbar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.pbar i { display: block; height: 100%; background: var(--honey); border-radius: 99px; transition: width 0.6s ease; }
.book-head small { color: var(--ink-2); font-weight: 600; }

.unit { margin: 26px 0 8px; border-radius: 16px; padding: 14px 16px; color: #fff; background: var(--royal-solid); box-shadow: 0 4px 0 var(--royal-deep); }
.unit b { display: block; font-size: 1.02rem; }
.unit span { font-size: 0.85rem; opacity: 0.85; }
.unit.u1 { background: var(--royal-solid); box-shadow: 0 4px 0 var(--royal-deep); } /* the first unit wears the theme's color */
.unit.u2 { background: #D9662A; box-shadow: 0 4px 0 #A94B18; }
.unit.u3 { background: #1E9E6C; box-shadow: 0 4px 0 #137750; }
.unit.u4 { background: #C2367B; box-shadow: 0 4px 0 #8F2259; }
.unit.u5 { background: #2E7FD0; box-shadow: 0 4px 0 #1D5C9C; }

.path { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 24px 0 6px; }
.node-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.node {
  width: 70px; height: 66px; border-radius: 50%; border: 0; cursor: pointer; position: relative; top: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  background: var(--surface-2); color: var(--ink-3); box-shadow: 0 6px 0 var(--line);
  transition: top 0.06s, box-shadow 0.06s;
}
.node:active { top: 4px; box-shadow: 0 2px 0 var(--line); }
.node.done { background: var(--honey); color: #5A3C00; box-shadow: 0 6px 0 var(--honey-deep); }
.node.done:active { box-shadow: 0 2px 0 var(--honey-deep); }
.node.next { background: var(--royal-solid); color: #fff; box-shadow: 0 6px 0 var(--royal-deep); }
.node.next:active { box-shadow: 0 2px 0 var(--royal-deep); }
.node.next::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 4px solid var(--royal-wash); }
.stars { display: flex; gap: 2px; margin-top: 8px; height: 14px; }
.stars svg { width: 14px; height: 14px; fill: var(--line); }
.stars svg.on { fill: var(--honey); }
.bubble {
  position: relative; margin-bottom: 14px; white-space: nowrap; background: var(--surface); color: var(--royal);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; padding: 8px 12px; border-radius: 12px;
  border: 2px solid var(--line); animation: bob 1.6s ease-in-out infinite;
}
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--line); }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* ---------- Genesis footprints (footStep() in app.js, scenery in scenes.js) ---------- */
.fp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.walk { position: relative; padding: 16px 0 34px; } /* room below the last chapter for its bush (idea 3, 2026-11-02) */
/* The sandy trail under the footprints, drawn by drawTrails() in app.js behind every row (rows paint over it). */
.trail { position: absolute; top: 0; left: 50%; width: 288px; margin-left: -144px; overflow: visible; pointer-events: none; }
.trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-edge { stroke: var(--sc-path-edge); } .trail-sand { stroke: var(--sc-path); } .trail-pebble { fill: var(--sc-pebble); }
/* The walking path (2026-11-02): earth and gravel where you've walked, to the next footprint, then a dotted outline. */
.trail-grit { fill: var(--wp-grit); } .trail-grit2 { fill: var(--wp-grit2); }
.trail-ahead { stroke: var(--wp-ahead); }
.trail path.trail-dash { stroke: var(--wp-dash); stroke-width: 1.8; stroke-dasharray: 5 6; stroke-linecap: round; }
/* Idea 3, "grows as you walk" (2026-11-02): a patch of ground under each book; between one chapter's book and the next,
   a bush, an outline until the chapter is reached (like the books, and like them following "Color every book"), green
   once it is, with a flower in front for each star the chapter earned; lanterns beside the path, lit behind you. Drawn
   by drawTrails() in app.js: .grow behind the rows, .grow.front over them, so a flower can stand in front of a bush. */
.grow { position: absolute; top: 0; left: 50%; width: 288px; margin-left: -144px; overflow: visible; pointer-events: none; }
.grow.front { z-index: 2; }
.grow-patch { fill: var(--dc-mound); }
.bush .o { fill: var(--bk-blank); stroke: var(--bk-line); stroke-width: 2.6; }
.bush .i { fill: var(--bk-blank); }
.bush.on .o, .bush.on .i { fill: var(--dc-bush); }
.bush.fill .o, .bush.fill .i { transition: fill 0.9s; }
.flower .st { fill: none; stroke: var(--dc-grass); stroke-width: 1.3; stroke-linecap: round; }
.flower .pt { fill: var(--dc-petal); stroke: var(--bk-line); stroke-width: 0.6; } .flower.p2 .pt { fill: var(--dc-petal2); }
.flower .md { fill: var(--honey); }
.flower.pop { transform-box: fill-box; transform-origin: 50% 100%; animation: fp-pop 0.35s both; }
.lantern .glow { fill: var(--honey); stroke: none; opacity: 0.3; }
.lantern.light .glow { animation: lantern-on 0.9s 0.9s both; }
.lantern.light .mt, .lantern.light .wd, .lantern.light .sp { animation: lantern-fill 0.9s 0.9s both; }
@keyframes lantern-on { from { opacity: 0; } }
@keyframes lantern-fill { from { fill: var(--bk-blank); } }
.step { position: relative; display: flex; justify-content: center; align-items: center; }
.scene { position: absolute; left: 50%; top: 50%; width: 288px; max-width: 100%; transform: translate(-50%, -50%); pointer-events: none; }
.fp-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 2px 0 4px; }
/* Idea 2 (2026-10-16): an invisible button over a landmark, and the verse card a tap opens just below it, so the
   drawing stays in view. (Until 2026-11-01 each footprint's scene sides had one too; the path now has books.) */
.scene-tap { position: absolute; top: 50%; transform: translateY(-50%); width: 88px; padding: 0; border: 0; background: none; z-index: 1; cursor: pointer; }
.scene-tap.lm { left: calc(50% - 144px); width: 288px; }
.scene-tap:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; border-radius: 12px; }
/* Books on the path (2026-11-01): a tap on either book opens the chapter, like its footprint. The outer 88px of each
   side, clear of the footprints; left out of the tab order and screen readers, since the footprint already says it. */
.book-tap { position: absolute; top: 50%; transform: translateY(-50%); width: 88px; height: 100px; padding: 0; border: 0; background: none; z-index: 1; cursor: pointer; }
.book-tap.l { left: calc(50% - 144px); }
.book-tap.r { left: calc(50% + 56px); }
.verse-pop { position: absolute; top: calc(100% - 6px); z-index: 3; width: min(236px, 84%); padding: 9px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); color: var(--ink); font-size: 0.86rem; line-height: 1.4; animation: vpop-in 0.16s ease-out; }
.verse-pop.c { left: calc(50% - 118px); }
.verse-pop b { display: block; color: var(--royal); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1px; }
@keyframes vpop-in { from { opacity: 0; transform: translateY(4px); } }
.fp { width: 50px; height: 75px; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.fp svg { width: 100%; height: 100%; overflow: visible; }
.fp .fp-top { fill: var(--fp-off); stroke: var(--fp-off-ink); stroke-width: 2px; transition: transform 0.06s; } /* not reached yet: an outline, like the books (2026-11-02) */
.fp .fp-depth { fill: var(--fp-off-deep); }
.fp text { fill: var(--fp-off-ink); stroke: none; font-family: var(--sans); font-weight: 800; font-size: 15px; text-anchor: middle; }
.fp:active .fp-top { transform: translateY(4px); }
.fp.done .fp-top, .fp.next .fp-top { stroke-width: 0; }
.fp.done .fp-top { fill: var(--honey); } .fp.done .fp-depth { fill: var(--honey-deep); } .fp.done text { fill: #5A3C00; }
.fp.next .fp-top { fill: var(--royal-solid); } .fp.next .fp-depth { fill: var(--royal-deep); } .fp.next text { fill: #fff; }
.fp-halo { fill: var(--royal-wash); stroke: var(--royal-wash); stroke-width: 12; stroke-linejoin: round; }
.walk .stars { margin-top: 2px; }
.walk .bubble { margin-bottom: 8px; }
/* Once, after finishing: the finished footprint turns gold, its stars pop, then the next footprint steps down onto the
   path and its START bubble appears. Reduce Motion skips all of it (the rule near the end of this file). */
.fp.fresh .fp-top { animation: fp-fill 0.6s 0.2s both; }
.fp.fresh .fp-depth { animation: fp-fill-depth 0.6s 0.2s both; }
.fp.fresh text { animation: fp-fill-text 0.6s 0.2s both; }
.fp.fresh ~ .stars svg.on { animation: fp-pop 0.35s both; }
.fp.fresh ~ .stars svg:nth-child(1) { animation-delay: 0.65s; }
.fp.fresh ~ .stars svg:nth-child(2) { animation-delay: 0.8s; }
.fp.fresh ~ .stars svg:nth-child(3) { animation-delay: 0.95s; }
.step.land .fp { animation: fp-land 0.55s 1.05s both; }
.step.land .bubble { animation: fp-show 0.3s 1.55s both, bob 1.6s 1.85s ease-in-out infinite; }
@keyframes fp-fill { 0% { fill: var(--fp-off); stroke-width: 2px; } 40% { fill: var(--fp-off); stroke-width: 2px; transform: translateY(4px); } 100% { transform: none; } }
@keyframes fp-fill-depth { 0%, 40% { fill: var(--fp-off-deep); } }
@keyframes fp-fill-text { 0%, 40% { fill: var(--fp-off-ink); } }
@keyframes fp-pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.25); opacity: 1; } }
@keyframes fp-land { 0% { opacity: 0; transform: translateY(-26px) scale(1.08); } 60% { opacity: 1; transform: translateY(3px) scale(0.96, 0.98); } 100% { transform: none; } }
@keyframes fp-show { from { opacity: 0; } }
/* Books on the path (Christopher, 2026-11-01; path-books.js): outlines in the theme's line color until the chapter is
   finished or up next (.pbk.on), then the covers, pages, ribbons, metal and wood fill with color. Classes: cv cover,
   sp spine, pg pages, mt metal, wd wood, rb ribbon, ln and tl lines (tl the faint text lines on a page), fl a foil
   frame or rule; t-cv a label on a cover or spine, t-pg a label on a page. The fill fades in only while a chapter is
   reached just now (.fill, added by renderLearn), so a theme change doesn't fade every book. */
.pbk path, .pbk rect, .pbk circle { stroke: var(--bk-line); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pbk.fill * { transition: fill 0.9s, stroke 0.9s; }
.pbk .ln { fill: none; }
.pbk .tl { fill: none; stroke-width: 1.1; opacity: 0.4; }
.pbk .fl { fill: none; stroke-width: 1; }
.pbk .cv, .pbk .sp, .pbk .mt, .pbk .wd, .pbk .rb { fill: var(--bk-blank); }
.pbk .pg { fill: var(--bk-page-off); }
.pbk text { font-family: var(--sans); font-weight: 700; fill: var(--bk-line); stroke: none; }
.pbk .bn { font-size: 10.5px; } .pbk .bc, .pbk .one { font-size: 9.5px; } .pbk .one.snug { font-size: 8.6px; }
.pbk.on .cv { fill: var(--c); } .pbk.on .sp { fill: var(--cd); } .pbk.on .pg { fill: var(--bk-page); }
.pbk.on .mt { fill: var(--bk-metal); } .pbk.on .wd { fill: var(--bk-wood); } .pbk.on .rb { fill: var(--bk-ribbon); }
.pbk.on .t-cv { fill: var(--bk-foil); } .pbk.on .t-pg { fill: var(--bk-page-ink); } .pbk.on .fl { stroke: var(--bk-foil); }
.pbk.on .tl { stroke: var(--bk-page-ink); }
@keyframes scene-reveal { from { filter: grayscale(1) brightness(0.75); opacity: 0.28; } }
/* Idea 3 (2026-10-16): a wide landmark drawing where each unit ends, between its last footprint and the next banner.
   Faint until the unit's last chapter is finished; it fills in after that footprint turns gold. */
.landmark { position: relative; margin: 2px 0 12px; }
.landmark.faint .scene { filter: grayscale(1) brightness(0.75); opacity: 0.28; }
.landmark.reveal-lm .scene { animation: scene-reveal 0.9s 1.2s both; }
.scene .tw { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 50% { opacity: 0.35; transform: scale(0.8); } }

/* Scenery colors: the light set first (every light theme), then Dim's. Since 2026-11-02 (Christopher's picks in
   Mockups/path-2026-11-02.html and Mockups/walkway-2026-11-02.html): a footprint not reached yet is an outline, the
   books' line color (--fp-off-ink) around the page's surface (--fp-off), its number 12.8:1 or better on a light theme,
   8.2:1 in Dim (until then a shade darker than the sand, which hid it in Sunrise). The trail is a walking path: packed
   earth (--sc-path, its edge --sc-path-edge) with fine gravel (--wp-grit, --wp-grit2) and small stones (--sc-pebble)
   where you've walked, and ahead a faint fill (--wp-ahead) with dotted edges (--wp-dash). Beside it, idea 3: a patch
   of ground under each book (--dc-mound) and a bush between chapters (--dc-bush), flowers (--dc-petal, --dc-petal2,
   stems --dc-grass) for the stars a chapter earned. */
:root {
  --fp-off: var(--surface); --fp-off-deep: rgba(58, 44, 30, 0.16); --fp-off-ink: var(--bk-line);
  --sc-sun: #F2A922; --sc-moon: #D4B865; --sc-star: #E0A31F; --sc-cloud: #E3EAF3; --sc-water: #4A90D9; --sc-rain: #4A90D9;
  --sc-trunk: #8A5A33; --sc-leaf: #4FA65F; --sc-leaf2: #2F8148; --sc-fruit: #E9792F;
  --sc-skin: #B97A50; --sc-hair: #3A2618; --sc-coat: #A8743A;
  --sc-gold: #E3A52A; --sc-gold2: #C98A12; --sc-blade: #9AA4B5; --sc-serpent: #5E9E3A;
  --sc-wool: #FFFFFF; --sc-woolline: #CDBFA4; --sc-soil: #9C7046; --sc-soil2: #7A5232;
  --sc-paper: #FBF3DC; --sc-inkline: #8A6A3A; --sc-wood: #B07A45; --sc-wood2: #84552B; --sc-window: #4A3420;
  --sc-animal: #B0844F; --sc-animal2: #7E5A33; --sc-bird: #6E7FA6; --sc-dove: #FFFFFF;
  --sc-mount: #A8977A; --sc-mount2: #8C7B60; --sc-grape: #6B3FA0; --sc-tent: #C99A5B; --sc-tent2: #8C6436;
  --sc-sand: #D9B877; --sc-brick: #C4683F; --sc-brick2: #8E4528;
  --sc-path: #D7E1EA; --sc-path-edge: #C2D0DD; --sc-pebble: #9FB6CC;
  --wp-grit: #A9BACB; --wp-grit2: #F3F6F9; --wp-ahead: rgba(255, 255, 255, 0.38); --wp-dash: #86A2BE;
  --dc-mound: #CFE3D3; --dc-grass: #4F8A63; --dc-bush: #8DBF8F; --dc-petal: #FFFFFF; --dc-petal2: #F49AB0;
  --sc-grass: #4F9A4A; --sc-stem: #3F8040; --sc-rock: #BCB19E; --sc-rock2: #A19582; --sc-pondedge: #CDB98F; --sc-ripple: #D3E6F6;
  --sc-petal-a: #E5484D; --sc-petal-b: #FFFDF7; --sc-petal-c: #E874A6; --sc-petal-d: #8C7BFF; --sc-petalc: #F2A922;
  --sc-robe-a: #5F79B0; --sc-robe-b: #C0643A; --sc-robe-c: #7C8F3E; --sc-camel: #C69C63; --sc-camel2: #9A7444;
  --sc-ox: #8E6040; --sc-ox2: #6A4429; --sc-horn: #B89A66; --sc-bread: #D6A158; --sc-bread2: #A06F35;
  --sc-jug: #B5653D; --sc-jug2: #8E4A28; --sc-wine: #7A1F3D; --sc-milk: #FFFDF7; --sc-butter: #F2CF5B;
  --sc-silver: #D3D8E0; --sc-silver2: #8A93A3; --sc-smoke: #A49D92; --sc-smoke2: #8A8276; --sc-wall: #D9C49C; --sc-wall2: #B89F72;
  --sc-pot: #4A3A2C; --sc-pottage: #B8392E; --sc-cave: #3E3226; --sc-field: #9DC06A; --sc-dusk: #F0883E;
  --sc-robe-d: #9C5A8E; --sc-robe-e: #C2953A; --sc-robe-e2: #8A6418; --sc-robe-f: #8E4A3A; --sc-linen: #FFFDF7; --sc-linenline: #D6C8AA; --sc-hairgray: #A39E96;
  --sc-grain: #E0B54A; --sc-grain2: #A08A60; --sc-stalk: #B5973A; --sc-stalk2: #8C7A55; --sc-mandrake: #F0A030; --sc-oil: #E6B530;
  --sc-goat: #6E5A4A; --sc-goat2: #4E3E32; --sc-goatpale: #EFE6D6; --sc-goatspot: #5C4636; --sc-ass: #9A948C; --sc-ass2: #6E6860;
  --sc-horse: #9A5A32; --sc-horse2: #74421F; --sc-mane: #3A2618; --sc-sack: #C2A06E; --sc-sack2: #9C7C4C; --sc-honey: #E09A1E;
  --sc-nut: #8A5A33; --sc-almond: #C99A6A; --sc-wbasket: #F7F0E0; --sc-weave: #C8B48E;
  --sc-lion: #D9A04A; --sc-lionmane: #A8652A; --sc-lionmuzzle: #F2D9A8; --sc-hind: #B97F4A; --sc-hind2: #946236; --sc-hindtail: #FFF8EC;
  --sc-blood: #9E2A2B; --sc-blood2: #C4483F; --sc-frog: #5E9E3A; --sc-frog2: #3F7A28; --sc-frogbelly: #C8DB8A; --sc-fly: #3A3A40; --sc-flywing: #FFFFFF;
  --sc-locust: #9A8A3A; --sc-locust2: #6E6228; --sc-hail: #F4F7FB; --sc-hailline: #A9B6C6; --sc-bolt: #E8B020; --sc-night: #3A3550; --sc-lamp: #FFC94D;
  --sc-bulrush: #A6984E; --sc-pitch: #4A3A2C; --sc-dog: #B58A5A; --sc-dog2: #7E5A33; --sc-eagle: #7A5232; --sc-eagle2: #4E3420; --sc-eaglehead: #C9A06A;
  --sc-blue: #3E63B8; --sc-purple: #6A3FA0; --sc-scarlet: #C0392B; --sc-brass: #B5823A; --sc-brass2: #8A5E22; --sc-pom: #B83A4E;
  --sc-stone: #D6CFC0; --sc-stone2: #ADA492; --sc-stoneline: #8E8572; --sc-redskin: #A63A2A; --sc-badger: #5C4A3A; --sc-olive: #3E4A18; --sc-onyx: #3A3A40; --sc-wind: #A9B4C2;
}
/* Each light theme tints the walking path and what grows beside it to its own pages (the mockups' values). */
:root[data-theme="sunrise"] {
  --sc-path: #EFD0B3; --sc-path-edge: #E0B996; --sc-pebble: #D4A27E; --wp-grit: #CB9B76; --wp-grit2: #FBE9DA; --wp-ahead: rgba(255, 248, 242, 0.45); --wp-dash: #C88E68;
  --dc-mound: #E2DEA6; --dc-grass: #74883A; --dc-bush: #A9BB62; --fp-off: var(--surface); --fp-off-deep: rgba(58, 44, 30, 0.16); --fp-off-ink: var(--bk-line);
}
:root[data-theme="plum"] {
  --sc-path: #E2D4EC; --sc-path-edge: #D0BFDF; --sc-pebble: #B49FCB; --wp-grit: #B09ACA; --wp-grit2: #F5F0F9; --wp-ahead: rgba(255, 255, 255, 0.4); --wp-dash: #A48BBF;
  --dc-mound: #DAE4CC; --dc-grass: #67884C; --dc-bush: #A3C08A; --fp-off: var(--surface); --fp-off-deep: rgba(58, 44, 30, 0.16); --fp-off-ink: var(--bk-line);
}
:root[data-theme="slate"] {
  --sc-path: #D8DFE6; --sc-path-edge: #C6D0D9; --sc-pebble: #A3B0BE; --wp-grit: #A0ADBB; --wp-grit2: #F2F5F7; --wp-ahead: rgba(255, 255, 255, 0.4); --wp-dash: #8E9DAD;
  --dc-mound: #D2E0D4; --dc-grass: #5C8566; --dc-bush: #93B79A; --fp-off: var(--surface); --fp-off-deep: rgba(58, 44, 30, 0.16); --fp-off-ink: var(--bk-line);
}
/* Dim (chosen, or Automatic on a dark phone): the dark scenery set, with the trail and footprints retuned to its slate. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --sc-sun: #FFC94D; --sc-moon: #F2F0FF; --sc-star: #FFE08A; --sc-cloud: #C9D3E6; --sc-water: #3B78D8; --sc-rain: #7CC0F5;
    --sc-trunk: #A0714A; --sc-leaf: #2FC48A; --sc-leaf2: #1E9E6C; --sc-fruit: #FF8F4D;
    --sc-hair: #5C3B24; --sc-coat: #B98A52; --sc-gold: #FFC94D; --sc-gold2: #E0A31F; --sc-blade: #D7DCE6; --sc-serpent: #7BC24F;
    --sc-wool: #F2F0F6; --sc-woolline: transparent; --sc-soil: #7A5536; --sc-soil2: #5C3E26;
    --sc-paper: #E9D9AE; --sc-inkline: #8A7448; --sc-wood2: #7C5130; --sc-window: #3A2818;
    --sc-animal: #C9A06A; --sc-animal2: #8E6A44; --sc-bird: #C9D3E6; --sc-dove: #F2F0F6;
    --sc-mount: #4D4F78; --sc-mount2: #3C3D63; --sc-grape: #A57BE0; --sc-tent: #D9B98C; --sc-tent2: #9C7646;
    --sc-sand: #CFAE6E; --sc-brick: #C9714A; --sc-brick2: #8E4D2E;
    --sc-path: #2C2752; --sc-path-edge: #37315F; --sc-pebble: #4C457A;
    --sc-grass: #27A874; --sc-stem: #1E9E6C; --sc-rock: #5D5987; --sc-rock2: #4A4570; --sc-pondedge: #2A3A6A; --sc-ripple: #9CC8F5;
    --sc-petal-a: #FF6B70; --sc-petal-b: #F2F0FF; --sc-petal-c: #F58FBA; --sc-petal-d: #A99BFF; --sc-petalc: #FFC94D;
    --sc-robe-a: #8296D6; --sc-robe-b: #D9805A; --sc-robe-c: #9DB25F; --sc-camel: #D4AF7C; --sc-camel2: #A8875A;
    --sc-ox: #B07E55; --sc-ox2: #85603F; --sc-horn: #E3D4AE; --sc-bread: #E0B06A; --sc-bread2: #A87A44;
    --sc-jug: #C97A52; --sc-jug2: #9C5A38; --sc-wine: #B8436A; --sc-milk: #F2F0F6; --sc-butter: #FFE08A;
    --sc-silver: #D7DCE6; --sc-silver2: #8F98AC; --sc-smoke: #6F6A92; --sc-smoke2: #5A567E; --sc-wall: #C9B58C; --sc-wall2: #9F8B64;
    --sc-pot: #6B5A4A; --sc-pottage: #E0574A; --sc-cave: #0F0D22; --sc-field: #23855E; --sc-dusk: #FF9A5A;
    --sc-robe-d: #C07AB2; --sc-robe-e: #D9B354; --sc-robe-e2: #8E7224; --sc-robe-f: #B86A55; --sc-linen: #ECEAF2; --sc-linenline: transparent; --sc-hairgray: #CFCAC2;
    --sc-grain: #F0C75E; --sc-grain2: #8E7C58; --sc-stalk: #C9AA4E; --sc-stalk2: #7E6E4E; --sc-mandrake: #FFB84D; --sc-oil: #FFD054;
    --sc-goat: #B8A28A; --sc-goat2: #8E7A64; --sc-goatpale: #E4DCCD; --sc-goatspot: #6E5A48; --sc-ass: #A9A3B8; --sc-ass2: #7E7890;
    --sc-horse: #B8784C; --sc-horse2: #8E5A36; --sc-mane: #5A3F2C; --sc-sack: #C9AA78; --sc-sack2: #9E8058; --sc-honey: #FFB83D;
    --sc-nut: #B07E55; --sc-almond: #D4AC7E; --sc-wbasket: #E6DFCF; --sc-weave: #A8987A;
    --sc-lion: #E8B460; --sc-lionmane: #C27A3A; --sc-lionmuzzle: #F5E2B8; --sc-hind: #C99460; --sc-hind2: #A87B4C; --sc-hindtail: #F2F0F6;
    --sc-blood: #B8333A; --sc-blood2: #E0574A; --sc-frog: #7BC24F; --sc-frog2: #5A9A38; --sc-frogbelly: #C8E08A; --sc-fly: #B4B0D0; --sc-flywing: #E6E4F4;
    --sc-locust: #C9B458; --sc-locust2: #9A8A3A; --sc-hail: #F2F0FF; --sc-hailline: transparent; --sc-bolt: #FFE08A; --sc-night: #070615; --sc-lamp: #FFD054;
    --sc-bulrush: #B8AA5A; --sc-pitch: #3A2C24; --sc-dog: #C9A06A; --sc-dog2: #8E6A44; --sc-eagle: #A87B4C; --sc-eagle2: #7E5A33; --sc-eaglehead: #D9B98C;
    --sc-blue: #5F86E0; --sc-purple: #9A6FD9; --sc-scarlet: #E0574A; --sc-brass: #D19A4A; --sc-brass2: #A8763A; --sc-pom: #E05A6E;
    --sc-stone: #B9B4D2; --sc-stone2: #8E89AE; --sc-stoneline: #5D5987; --sc-redskin: #C9584A; --sc-badger: #7E6A58; --sc-olive: #2A3510; --sc-onyx: #4A4870; --sc-wind: #C9D3E6;
    --fp-off: var(--surface); --fp-off-deep: rgba(196, 203, 215, 0.14); --fp-off-ink: var(--bk-line);
    --sc-path: #2E3545; --sc-path-edge: #3A4356; --sc-pebble: #4D5870; --sc-rock: #5E6880; --sc-rock2: #4A5367; --sc-pondedge: #2B3B57;
    --wp-grit: #222835; --wp-grit2: #48526B; --wp-ahead: rgba(255, 255, 255, 0.03); --wp-dash: #5D6B86;
    --dc-mound: #243431; --dc-grass: #6F9E7C; --dc-bush: #3F6A50; --dc-petal: #E9E6F4; --dc-petal2: #F08CA6;
  }
}
:root[data-theme="dim"] {
  --sc-sun: #FFC94D; --sc-moon: #F2F0FF; --sc-star: #FFE08A; --sc-cloud: #C9D3E6; --sc-water: #3B78D8; --sc-rain: #7CC0F5;
  --sc-trunk: #A0714A; --sc-leaf: #2FC48A; --sc-leaf2: #1E9E6C; --sc-fruit: #FF8F4D;
  --sc-hair: #5C3B24; --sc-coat: #B98A52; --sc-gold: #FFC94D; --sc-gold2: #E0A31F; --sc-blade: #D7DCE6; --sc-serpent: #7BC24F;
  --sc-wool: #F2F0F6; --sc-woolline: transparent; --sc-soil: #7A5536; --sc-soil2: #5C3E26;
  --sc-paper: #E9D9AE; --sc-inkline: #8A7448; --sc-wood2: #7C5130; --sc-window: #3A2818;
  --sc-animal: #C9A06A; --sc-animal2: #8E6A44; --sc-bird: #C9D3E6; --sc-dove: #F2F0F6;
  --sc-mount: #4D4F78; --sc-mount2: #3C3D63; --sc-grape: #A57BE0; --sc-tent: #D9B98C; --sc-tent2: #9C7646;
  --sc-sand: #CFAE6E; --sc-brick: #C9714A; --sc-brick2: #8E4D2E;
  --sc-path: #2C2752; --sc-path-edge: #37315F; --sc-pebble: #4C457A;
  --sc-grass: #27A874; --sc-stem: #1E9E6C; --sc-rock: #5D5987; --sc-rock2: #4A4570; --sc-pondedge: #2A3A6A; --sc-ripple: #9CC8F5;
  --sc-petal-a: #FF6B70; --sc-petal-b: #F2F0FF; --sc-petal-c: #F58FBA; --sc-petal-d: #A99BFF; --sc-petalc: #FFC94D;
  --sc-robe-a: #8296D6; --sc-robe-b: #D9805A; --sc-robe-c: #9DB25F; --sc-camel: #D4AF7C; --sc-camel2: #A8875A;
  --sc-ox: #B07E55; --sc-ox2: #85603F; --sc-horn: #E3D4AE; --sc-bread: #E0B06A; --sc-bread2: #A87A44;
  --sc-jug: #C97A52; --sc-jug2: #9C5A38; --sc-wine: #B8436A; --sc-milk: #F2F0F6; --sc-butter: #FFE08A;
  --sc-silver: #D7DCE6; --sc-silver2: #8F98AC; --sc-smoke: #6F6A92; --sc-smoke2: #5A567E; --sc-wall: #C9B58C; --sc-wall2: #9F8B64;
  --sc-pot: #6B5A4A; --sc-pottage: #E0574A; --sc-cave: #0F0D22; --sc-field: #23855E; --sc-dusk: #FF9A5A;
  --sc-robe-d: #C07AB2; --sc-robe-e: #D9B354; --sc-robe-e2: #8E7224; --sc-robe-f: #B86A55; --sc-linen: #ECEAF2; --sc-linenline: transparent; --sc-hairgray: #CFCAC2;
  --sc-grain: #F0C75E; --sc-grain2: #8E7C58; --sc-stalk: #C9AA4E; --sc-stalk2: #7E6E4E; --sc-mandrake: #FFB84D; --sc-oil: #FFD054;
  --sc-goat: #B8A28A; --sc-goat2: #8E7A64; --sc-goatpale: #E4DCCD; --sc-goatspot: #6E5A48; --sc-ass: #A9A3B8; --sc-ass2: #7E7890;
  --sc-horse: #B8784C; --sc-horse2: #8E5A36; --sc-mane: #5A3F2C; --sc-sack: #C9AA78; --sc-sack2: #9E8058; --sc-honey: #FFB83D;
  --sc-nut: #B07E55; --sc-almond: #D4AC7E; --sc-wbasket: #E6DFCF; --sc-weave: #A8987A;
  --sc-lion: #E8B460; --sc-lionmane: #C27A3A; --sc-lionmuzzle: #F5E2B8; --sc-hind: #C99460; --sc-hind2: #A87B4C; --sc-hindtail: #F2F0F6;
  --sc-blood: #B8333A; --sc-blood2: #E0574A; --sc-frog: #7BC24F; --sc-frog2: #5A9A38; --sc-frogbelly: #C8E08A; --sc-fly: #B4B0D0; --sc-flywing: #E6E4F4;
  --sc-locust: #C9B458; --sc-locust2: #9A8A3A; --sc-hail: #F2F0FF; --sc-hailline: transparent; --sc-bolt: #FFE08A; --sc-night: #070615; --sc-lamp: #FFD054;
  --sc-bulrush: #B8AA5A; --sc-pitch: #3A2C24; --sc-dog: #C9A06A; --sc-dog2: #8E6A44; --sc-eagle: #A87B4C; --sc-eagle2: #7E5A33; --sc-eaglehead: #D9B98C;
  --sc-blue: #5F86E0; --sc-purple: #9A6FD9; --sc-scarlet: #E0574A; --sc-brass: #D19A4A; --sc-brass2: #A8763A; --sc-pom: #E05A6E;
  --sc-stone: #B9B4D2; --sc-stone2: #8E89AE; --sc-stoneline: #5D5987; --sc-redskin: #C9584A; --sc-badger: #7E6A58; --sc-olive: #2A3510; --sc-onyx: #4A4870; --sc-wind: #C9D3E6;
  --fp-off: var(--surface); --fp-off-deep: rgba(196, 203, 215, 0.14); --fp-off-ink: var(--bk-line);
  --sc-path: #2E3545; --sc-path-edge: #3A4356; --sc-pebble: #4D5870; --sc-rock: #5E6880; --sc-rock2: #4A5367; --sc-pondedge: #2B3B57;
  --wp-grit: #222835; --wp-grit2: #48526B; --wp-ahead: rgba(255, 255, 255, 0.03); --wp-dash: #5D6B86;
  --dc-mound: #243431; --dc-grass: #6F9E7C; --dc-bush: #3F6A50; --dc-petal: #E9E6F4; --dc-petal2: #F08CA6;
}
/* The books on the path (2026-11-01). The seven cover colors (and their darker spines) are the same in every theme:
   each carries the cream label at 5.1:1 or better. Labels on colored pages 9.9:1 or better; outline labels on the
   blank fill 7.0:1 or better. */
:root {
  --bk-line: #3A2C1E; --bk-blank: var(--surface); --bk-page-off: #FFFFFF; --bk-page: #FFF8E6; --bk-page-ink: #3A2C1E;
  --bk-foil: #FFF1C9; --bk-ribbon: #C8343F; --bk-metal: #D9A53A; --bk-wood: #A0703F;
  --bk-c1: #8C2F3F; --bk-c1d: #6B2230; --bk-c2: #7A4E2D; --bk-c2d: #5C3A21; --bk-c3: #2F4C80; --bk-c3d: #223862;
  --bk-c4: #2E6A48; --bk-c4d: #215036; --bk-c5: #5A46E0; --bk-c5d: #3F2FB4; --bk-c6: #23707A; --bk-c6d: #19545C;
  --bk-c7: #8A5520; --bk-c7d: #683F17;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bk-line: #C4CBD7; --bk-blank: #272F40; --bk-page-off: #313A4D; --bk-page: #D8D0BB; --bk-page-ink: #2A2238;
    --bk-ribbon: #E5484D; --bk-metal: #E3B04A; --bk-wood: #A97A4C;
  }
}
:root[data-theme="dim"] {
  --bk-line: #C4CBD7; --bk-blank: #272F40; --bk-page-off: #313A4D; --bk-page: #D8D0BB; --bk-page-ink: #2A2238;
  --bk-ribbon: #E5484D; --bk-metal: #E3B04A; --bk-wood: #A97A4C;
}
.sc-sun { fill: var(--sc-sun); } .sc-ray { stroke: var(--sc-sun); stroke-width: 2.6; stroke-linecap: round; }
.sc-moon { fill: var(--sc-moon); } .sc-star { fill: var(--sc-star); } .sc-cloud { fill: var(--sc-cloud); } .sc-water { fill: var(--sc-water); }
.sc-trunk { fill: var(--sc-trunk); } .sc-leaf { fill: var(--sc-leaf); } .sc-leaf2 { fill: var(--sc-leaf2); } .sc-fruit { fill: var(--sc-fruit); }
.sc-skin { fill: var(--sc-skin); } .sc-hair { fill: var(--sc-hair); } .sc-eye { fill: #2B1D14; } .sc-cheek { fill: #E8836B; opacity: 0.55; }
.sc-smile { fill: none; stroke: #2B1D14; stroke-width: 1.3; stroke-linecap: round; } .sc-smile.thin { stroke-width: 0.9; }
.sc-coat { fill: var(--sc-coat); }
.sc-gold { fill: var(--sc-gold); } .sc-gold2 { fill: var(--sc-gold2); } .sc-goldeye { fill: #7A4E00; }
.sc-goldline { fill: none; stroke: var(--sc-gold); stroke-width: 1.4; stroke-linecap: round; }
.sc-flame { fill: var(--ember); } .sc-blade { fill: var(--sc-blade); }
.sc-serpent { fill: none; stroke: var(--sc-serpent); stroke-width: 4.5; stroke-linecap: round; } .sc-serpenthead { fill: var(--sc-serpent); }
.sc-wool { fill: var(--sc-wool); } .sc-woolline { fill: var(--sc-wool); stroke: var(--sc-woolline); stroke-width: 2.4; } .sc-face { fill: #4A3A2C; }
.sc-soil { fill: var(--sc-soil); } .sc-furrow { fill: none; stroke: var(--sc-soil2); stroke-width: 2.4; stroke-linecap: round; }
.sc-sprout { fill: none; stroke: var(--sc-leaf); stroke-width: 2.2; stroke-linecap: round; }
.sc-paper { fill: var(--sc-paper); } .sc-inkline { fill: none; stroke: var(--sc-inkline); stroke-width: 2.4; stroke-linecap: round; }
.sc-wood { fill: var(--sc-wood); } .sc-wood2 { fill: var(--sc-wood2); } .sc-plank { fill: none; stroke: var(--sc-wood2); stroke-width: 1.4; }
.sc-rib { fill: none; stroke: var(--sc-wood); stroke-width: 3; stroke-linecap: round; } .sc-window, .sc-door { fill: var(--sc-window); }
.sc-animal { fill: var(--sc-animal); } .sc-animal2 { fill: var(--sc-animal2); }
.sc-bird { fill: var(--sc-bird); } .sc-dove { fill: var(--sc-dove); stroke: var(--sc-woolline); stroke-width: 1; } .sc-beak { fill: var(--honey); }
.sc-fish { fill: var(--ember); } .sc-rain { fill: none; stroke: var(--sc-rain); stroke-width: 1.8; stroke-linecap: round; }
.sc-mount { fill: var(--sc-mount); } .sc-mount2 { fill: var(--sc-mount2); }
.sc-vine { fill: none; stroke: var(--sc-trunk); stroke-width: 2.4; stroke-linecap: round; } .sc-grape { fill: var(--sc-grape); }
.sc-bow { fill: none; stroke-width: 4.6; }
.sc-tent { fill: var(--sc-tent); } .sc-tent2 { fill: var(--sc-tent2); } .sc-sand { fill: var(--sc-sand); }
.sc-brick { fill: var(--sc-brick); } .sc-brickline { fill: none; stroke: var(--sc-brick2); stroke-width: 1; }
/* Side decoration (scenes.js, GENESIS_DECOR) */
.sc-grass { fill: var(--sc-grass); } .sc-stem { fill: none; stroke: var(--sc-stem); stroke-width: 1.6; stroke-linecap: round; }
.sc-rock { fill: var(--sc-rock); } .sc-rock2 { fill: var(--sc-rock2); } .sc-pondedge { fill: var(--sc-pondedge); }
.sc-ripple { fill: none; stroke: var(--sc-ripple); stroke-width: 1.4; stroke-linecap: round; }
.sc-petal-a { fill: var(--sc-petal-a); } .sc-petal-b { fill: var(--sc-petal-b); } .sc-petal-c { fill: var(--sc-petal-c); }
.sc-petal-d { fill: var(--sc-petal-d); } .sc-petalc { fill: var(--sc-petalc); }
/* Chapters 12 to 25 (2026-10-13) */
.sc-robe-a { fill: var(--sc-robe-a); } .sc-robe-b { fill: var(--sc-robe-b); } .sc-robe-c { fill: var(--sc-robe-c); }
.sc-camel { fill: var(--sc-camel); } .sc-camel2 { fill: var(--sc-camel2); } .sc-camelline { fill: none; stroke: var(--sc-camel); stroke-width: 2; stroke-linecap: round; }
.sc-ox { fill: var(--sc-ox); } .sc-ox2 { fill: var(--sc-ox2); } .sc-oxline { fill: none; stroke: var(--sc-ox); stroke-width: 2.2; stroke-linecap: round; }
.sc-hornline { fill: none; stroke: var(--sc-horn); stroke-width: 2.2; stroke-linecap: round; } .sc-hornline.ram { stroke-width: 2.6; }
.sc-hornedge { fill: none; stroke: var(--sc-ox2); stroke-width: 4.6; stroke-linecap: round; }
.sc-coinring { fill: none; stroke: var(--sc-silver2); stroke-width: 0.8; }
.sc-bread { fill: var(--sc-bread); } .sc-breadline { fill: none; stroke: var(--sc-bread2); stroke-width: 1.4; stroke-linecap: round; }
.sc-jug { fill: var(--sc-jug); } .sc-jug2 { fill: var(--sc-jug2); } .sc-jugline { fill: none; stroke: var(--sc-jug); stroke-width: 2.4; stroke-linecap: round; }
.sc-wine { fill: var(--sc-wine); } .sc-milk { fill: var(--sc-milk); } .sc-butter { fill: var(--sc-butter); }
.sc-silver { fill: var(--sc-silver); stroke: var(--sc-silver2); stroke-width: 1; }
.sc-smoke { fill: var(--sc-smoke); } .sc-smoke2 { fill: var(--sc-smoke2); } .sc-wall { fill: var(--sc-wall); } .sc-wall2 { fill: var(--sc-wall2); }
.sc-pot { fill: var(--sc-pot); } .sc-pottage { fill: var(--sc-pottage); } .sc-potrim { fill: none; stroke: var(--sc-pot); stroke-width: 1.6; }
.sc-steam { fill: none; stroke: var(--sc-cloud); stroke-width: 1.4; stroke-linecap: round; }
.sc-cave { fill: var(--sc-cave); } .sc-field { fill: var(--sc-field); } .sc-dusk { fill: var(--sc-dusk); }
.sc-wellline { fill: none; stroke: var(--sc-rock2); stroke-width: 1; }
.sc-twig { fill: none; stroke: var(--sc-trunk); stroke-width: 1.6; stroke-linecap: round; } .sc-twig.dark { stroke: var(--sc-wood2); stroke-width: 1.9; }
.sc-string { fill: none; stroke: var(--sc-wood2); stroke-width: 0.8; } .sc-beam { fill: none; stroke: var(--sc-wood2); stroke-width: 2.4; stroke-linecap: round; }
.sc-spring { fill: none; stroke: var(--sc-water); stroke-width: 1.6; stroke-linecap: round; }
/* Chapters 26 to 50 (2026-10-13) */
.sc-robe-d { fill: var(--sc-robe-d); } .sc-robe-e { fill: var(--sc-robe-e); } .sc-robe-f { fill: var(--sc-robe-f); }
.sc-linen { fill: var(--sc-linen); stroke: var(--sc-linenline); stroke-width: 0.8; } .sc-hairgray { fill: var(--sc-hairgray); }
.sc-grain { fill: var(--sc-grain); } .sc-grain2 { fill: var(--sc-grain2); } .sc-grainline { fill: none; stroke: var(--sc-stalk); stroke-width: 0.8; }
.sc-awn { fill: none; stroke: var(--sc-stalk); stroke-width: 0.9; stroke-linecap: round; } .sc-awn2 { fill: none; stroke: var(--sc-stalk2); stroke-width: 0.9; stroke-linecap: round; }
.sc-stalk { fill: none; stroke: var(--sc-stalk); stroke-width: 1.6; stroke-linecap: round; } .sc-stalk2 { fill: none; stroke: var(--sc-stalk2); stroke-width: 1.4; stroke-linecap: round; }
.sc-stalkleaf { fill: var(--sc-stalk); } .sc-mandrake { fill: var(--sc-mandrake); } .sc-oil { fill: var(--sc-oil); }
.sc-bowwood { fill: none; stroke: var(--sc-trunk); stroke-width: 2.6; stroke-linecap: round; } .sc-bowstring { fill: none; stroke: var(--sc-blade); stroke-width: 0.9; }
.sc-arrow { fill: none; stroke: var(--sc-trunk); stroke-width: 1.2; } .sc-fletch { fill: var(--sc-petal-a); } .sc-quiverline { fill: none; stroke: var(--sc-trunk); stroke-width: 1; }
.sc-goat { fill: var(--sc-goat); } .sc-goat2 { fill: var(--sc-goat2); } .sc-goatpale { fill: var(--sc-goatpale); } .sc-goatspot { fill: var(--sc-goatspot); }
.sc-goathorn { fill: none; stroke: var(--sc-goat2); stroke-width: 1.6; stroke-linecap: round; }
.sc-rail { fill: none; stroke: var(--sc-wood); stroke-width: 2.4; stroke-linecap: round; } .sc-rung { fill: none; stroke: var(--sc-wood); stroke-width: 1.8; stroke-linecap: round; }
.sc-sleep { fill: none; stroke: #2B1D14; stroke-width: 0.9; stroke-linecap: round; } .sc-staff { fill: none; stroke: var(--sc-trunk); stroke-width: 2; stroke-linecap: round; }
.sc-rod { fill: none; stroke: var(--sc-trunk); stroke-width: 2.2; stroke-linecap: round; } .sc-strake { fill: none; stroke: var(--sc-milk); stroke-width: 2.2; }
.sc-wallline { fill: none; stroke: var(--sc-wall2); stroke-width: 1; } .sc-bars { fill: none; stroke: var(--sc-silver2); stroke-width: 1.6; }
.sc-ass { fill: var(--sc-ass); } .sc-ass2 { fill: var(--sc-ass2); } .sc-assline { fill: none; stroke: var(--sc-ass); stroke-width: 1.8; stroke-linecap: round; }
.sc-horse { fill: var(--sc-horse); } .sc-horse2 { fill: var(--sc-horse2); } .sc-mane { fill: var(--sc-mane); }
.sc-spoke { fill: none; stroke: var(--sc-wood2); stroke-width: 1.2; } .sc-wheel { fill: none; stroke: var(--sc-wood2); stroke-width: 2; }
.sc-pole { fill: none; stroke: var(--sc-wood2); stroke-width: 2.2; stroke-linecap: round; }
.sc-sack { fill: var(--sc-sack); } .sc-sack2 { fill: var(--sc-sack2); } .sc-tie { fill: var(--sc-trunk); }
.sc-wbasket { fill: var(--sc-wbasket); } .sc-weave { fill: none; stroke: var(--sc-weave); stroke-width: 1; }
.sc-honey { fill: var(--sc-honey); } .sc-nut { fill: var(--sc-nut); } .sc-almond { fill: var(--sc-almond); }
.sc-lion { fill: var(--sc-lion); } .sc-lionmane { fill: var(--sc-lionmane); } .sc-lionmuzzle { fill: var(--sc-lionmuzzle); }
.sc-lionline { fill: none; stroke: var(--sc-lion); stroke-width: 2; stroke-linecap: round; }
.sc-hind { fill: var(--sc-hind); } .sc-hindtail { fill: var(--sc-hindtail); }
.sc-hindline { fill: none; stroke: var(--sc-hind); stroke-width: 2.4; stroke-linecap: round; } .sc-hindline2 { fill: none; stroke: var(--sc-hind2); stroke-width: 2.4; stroke-linecap: round; }
.sc-vine.thick { stroke-width: 4.2; } .sc-fold { fill: none; stroke: #2B1D14; stroke-opacity: 0.22; stroke-width: 1; }
/* Exodus (2026-10-13) */
.sc-blood { fill: var(--sc-blood); } .sc-bloodline { fill: none; stroke: var(--sc-blood2); stroke-width: 1.4; stroke-linecap: round; }
.sc-frog { fill: var(--sc-frog); } .sc-frog2 { fill: var(--sc-frog2); } .sc-frogbelly { fill: var(--sc-frogbelly); } .sc-frogeye { fill: #FFFDF7; }
.sc-fly { fill: var(--sc-fly); } .sc-flywing { fill: var(--sc-flywing); opacity: 0.75; }
.sc-locust { fill: var(--sc-locust); } .sc-locust2 { fill: var(--sc-locust2); } .sc-locustleg { fill: none; stroke: var(--sc-locust2); stroke-width: 1.2; stroke-linecap: round; }
.sc-wind { fill: none; stroke: var(--sc-wind); stroke-width: 1.6; stroke-linecap: round; } .sc-incense { fill: none; stroke: var(--sc-wind); stroke-width: 1.4; stroke-linecap: round; }
.sc-hail { fill: var(--sc-hail); stroke: var(--sc-hailline); stroke-width: 0.8; } .sc-bolt { fill: var(--sc-bolt); }
.sc-night { fill: var(--sc-night); } .sc-lamp { fill: var(--sc-lamp); } .sc-glow { fill: var(--sc-lamp); opacity: 0.28; }
.sc-bulrush { fill: var(--sc-bulrush); } .sc-pitch { fill: var(--sc-pitch); } .sc-weave2 { fill: none; stroke: var(--sc-pitch); stroke-width: 0.9; stroke-opacity: 0.55; }
.sc-dog { fill: var(--sc-dog); } .sc-dog2 { fill: var(--sc-dog2); } .sc-dogline { fill: none; stroke: var(--sc-dog); stroke-width: 2.4; stroke-linecap: round; }
.sc-eagle { fill: var(--sc-eagle); } .sc-eagle2 { fill: var(--sc-eagle2); } .sc-eaglehead { fill: var(--sc-eaglehead); }
.sc-blue { fill: var(--sc-blue); } .sc-purple { fill: var(--sc-purple); } .sc-scarlet { fill: var(--sc-scarlet); }
.sc-bluecord { fill: none; stroke: var(--sc-blue); stroke-width: 1.8; stroke-linecap: round; }
.sc-brass { fill: var(--sc-brass); } .sc-brass2 { fill: var(--sc-brass2); } .sc-brassline { fill: none; stroke: var(--sc-brass2); stroke-width: 1; }
.sc-pom { fill: var(--sc-pom); } .sc-stone { fill: var(--sc-stone); } .sc-stone2 { fill: var(--sc-stone2); }
.sc-stoneline { fill: none; stroke: var(--sc-stoneline); stroke-width: 1.2; stroke-linecap: round; }
.sc-redskin { fill: var(--sc-redskin); } .sc-badger { fill: var(--sc-badger); } .sc-olive { fill: var(--sc-olive); } .sc-onyx { fill: var(--sc-onyx); }
.sc-sleeve { fill: none; stroke-width: 3.6; stroke-linecap: round; }
.sc-shine { fill: none; stroke: var(--sc-sun); stroke-width: 1.8; stroke-linecap: round; }
.sc-goldwire { fill: none; stroke: var(--sc-gold2); stroke-width: 1.2; stroke-linecap: round; }
.sc-yarn-blue { fill: none; stroke: var(--sc-blue); stroke-width: 1.4; } .sc-yarn-purple { fill: none; stroke: var(--sc-purple); stroke-width: 1.4; }
.sc-yarn-scarlet { fill: none; stroke: var(--sc-scarlet); stroke-width: 1.4; }
.sc-arm { fill: none; stroke: var(--sc-robe-e); stroke-width: 3.6; stroke-linecap: round; }
.sc-armedge { fill: none; stroke: var(--sc-robe-e2); stroke-width: 5.4; stroke-linecap: round; }

/* ---------- Chapter page ---------- */
.navbar { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px -8px; }
.navbar .title { font-weight: 700; color: var(--ink-2); }
.chapter-page { min-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 58px); display: flex; flex-direction: column; }
.chapter-page .ch-mid { margin: auto 0; }
.chapter-page.done .ch-mid { margin: 4px 0 14px; }
/* Idea 4 (2026-10-16): the chapter's two drawings, joined, and once the chapter is finished their verses. */
.ch-art { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 2px 0 0; }
.ch-art svg { display: block; height: 112px; width: auto; max-width: calc(50% - 7px); overflow: hidden; border-radius: 12px; }
.ch-verses { margin-top: 14px; display: grid; gap: 8px; }
.ch-verse { margin: 0; padding: 9px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 0.86rem; line-height: 1.4; color: var(--ink-2); }
.ch-verse b { color: var(--royal); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
/* A finished chapter shows stars, the best score and two verses as well, so everything is a little tighter to stay on one screen. */
.chapter-page.done .chapter-hero { padding-bottom: 8px; }
.chapter-page.done .ch-art svg { height: 84px; }
.chapter-page.done .ch-verses { margin-top: 10px; gap: 6px; }
.chapter-page.done .ch-verse { padding: 7px 11px; font-size: 0.82rem; line-height: 1.35; }
.chapter-page.done .outline-toggle { margin-top: 10px; }
@media (max-height: 660px) {
  .chapter-page.done .chapter-hero h1 { font-size: 2.5rem; }
  .chapter-page.done .ch-mid { margin: 0 0 10px; }
  .chapter-page.done .ch-art svg { height: 54px; }
  .chapter-page.done .ch-verse { font-size: 0.78rem; padding: 6px 10px; }
}
.chapter-hero { text-align: center; padding: 6px 0 18px; }
.chapter-hero .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); }
.chapter-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 3rem; margin: 2px 0 6px; line-height: 1; }
.chapter-hero .stars { justify-content: center; height: 22px; }
.chapter-hero .stars svg { width: 22px; height: 22px; }
.chapter-hero .best { color: var(--ink-2); font-size: 0.9rem; margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 36px; font-size: 1rem; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--royal); }
.chapter-cta { padding-bottom: 6px; }
.outline-toggle { margin: 18px auto 0; display: block; }
.outline-wrap { margin-top: 6px; }
.cta-meta { text-align: center; color: var(--ink-2); font-size: 0.85rem; margin-top: 10px; }
.cta-meta b { color: var(--honey-deep); }

/* ---------- Quiz ---------- */
.quiz-top { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 10px; background: var(--bg); margin: calc(-30px - var(--safe-t)) -16px 14px; padding: calc(30px + var(--safe-t)) 16px 10px 8px; }
.qbar { flex: 1; height: 16px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.qbar i { display: block; height: 100%; border-radius: 99px; background: var(--mint); position: relative; transition: width 0.4s ease; }
.qbar i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.35); }
.combo { display: flex; align-items: center; gap: 3px; font-weight: 800; color: var(--ember); font-size: 0.95rem; min-width: 38px; }
.combo svg { width: 18px; height: 18px; fill: var(--ember); }
.combo.pop { animation: pop 0.35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.qmeta { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.qmeta .star-tag { color: var(--honey-deep); background: var(--honey-wash); padding: 3px 8px; border-radius: 99px; letter-spacing: 0.02em; text-transform: none; }
.qtext { font-family: var(--serif); font-weight: 600; font-size: 1.38rem; line-height: 1.22; margin: 0 0 16px; }
.options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 11px 12px;
  box-shadow: 0 3px 0 var(--line); position: relative; top: 0; font-weight: 600; font-size: 0.96rem; line-height: 1.32;
  transition: border-color 0.12s, background 0.12s;
}
.opt .key { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--line); color: var(--ink-3); font-size: 0.85rem; font-weight: 800; }
.opt:active { top: 2px; box-shadow: 0 1px 0 var(--line); }
.opt.sel { border-color: var(--royal); background: var(--royal-wash); box-shadow: 0 3px 0 var(--royal); }
.opt.sel .key { border-color: var(--royal); color: var(--royal); }
.opt.right { border-color: var(--mint); background: var(--mint-wash); box-shadow: 0 3px 0 var(--mint); }
.opt.right .key { border-color: var(--mint); background: var(--mint); color: #fff; }
.opt.wrong { border-color: var(--berry); background: var(--berry-wash); box-shadow: 0 3px 0 var(--berry); }
.opt.wrong .key { border-color: var(--berry); background: var(--berry); color: #fff; }
.opt.locked { cursor: default; }
.opt.locked:active { top: 0; }
.check-wrap { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 14px 16px calc(var(--safe-b) + 16px); background: var(--bg); border-top: 1px solid var(--line); z-index: 15; }
.quiz-spacer { height: 104px; } /* no transition: the scroll after Check needs the full height at once */

.feedback {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 520px; margin: 0 auto;
  padding: 18px 16px calc(var(--safe-b) + 16px); border-radius: 22px 22px 0 0;
  transform: translateY(105%); transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}
.feedback.show { transform: translateY(0); }
.feedback.good { background: var(--mint-panel); }
.feedback.bad { background: var(--berry-panel); }
.feedback .fb-head { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.feedback.good .fb-head { color: var(--mint-deep); }
.feedback.bad .fb-head { color: var(--berry-deep); }
.fb-head .badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.feedback.good .badge { background: var(--mint); }
.feedback.bad .badge { background: var(--berry); }
.fb-head .badge svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fb-body { color: var(--ink); margin: 0 0 14px; font-size: 0.98rem; }
.fb-body .fb-label { font-weight: 700; }
.fb-body .ref { display: inline-block; margin-top: 4px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
/* Idea 1: the answer's verse under its reference (sizes from Mockups/understanding-2026-10-21.html, frame 1A).
   A long verse scrolls in its own box, about seven lines tall, so the four answers stay above the panel. */
.feedback.has-verse .fb-head { font-size: 1.2rem; margin-bottom: 2px; }
.feedback.has-verse .fb-body { margin-bottom: 12px; }
.fb-verse { margin: 2px 0 0; max-height: 8.75em; overflow-y: auto; -webkit-overflow-scrolling: touch; font-family: var(--serif); font-size: 0.93rem; line-height: 1.25; color: var(--ink); }
.fb-verse.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.fb-verse.fade-t { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
.fb-verse.fade-t.fade-b { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent); }
.fb-verse sup { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; color: var(--ink-2); margin-right: 3px; }
/* Idea 1 Plus (frame 1B): the verse before and after, dimmer; the answering words marked in honey. */
.fb-verse.ctx p { margin: 0 0 4px; }
.fb-verse.ctx p:last-child { margin-bottom: 0; }
.fb-verse.ctx p.dim { color: var(--ink-2); }
mark.fb-hl { background: var(--honey-wash); color: inherit; border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--honey); }
.fb-whole { display: block; padding: 8px 0 0; }

/* ---------- Reading the chapter (idea 4; Mockups/understanding-2026-10-21.html, frames 4A and 4B) ---------- */
.ch-links { display: flex; justify-content: center; flex-wrap: wrap; }
.chapter-page .ch-links .linkbtn { display: block; margin: 0; padding: 8px 6px 2px; } /* 6px sides: See the outline and People and places share one row at 320 wide */
.read-page { padding-bottom: 64px; } /* the last verse clears the pinned Start quiz bar */
.read-h { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: 0; }
.read-sub { margin: 4px 0 14px; color: var(--ink-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; }
.read-sub b.ok { color: var(--mark-ok); }
.read-sub b.no { color: var(--mark-no); }
p.read-v { position: relative; margin: 0 0 9px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.38; color: var(--ink); }
.read-v sup { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; color: var(--ink-2); margin-right: 3px; }
.read-page.marked p.read-v { padding-left: 20px; }
.rmk { position: absolute; left: 0; top: 0.34em; width: 13px; height: 13px; }
.rmk svg { width: 13px; height: 13px; display: block; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.rmk.ok svg { stroke: var(--mark-ok); }
.rmk.no svg { stroke: var(--mark-no); }
.read-pin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; max-width: 520px; margin: 0 auto; padding: 12px 16px calc(var(--safe-b) + 14px); background: var(--bg); border-top: 1px solid var(--line); }
.sheet.reader .sheet-head { position: sticky; top: -22px; z-index: 2; margin: -22px -18px 10px; padding: 16px 18px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet p.read-v { margin: 0 0 9px; color: var(--ink); }
.sheet p.read-v.focus { margin: 0 -8px 9px; padding: 3px 8px; border-radius: 10px; background: var(--honey-wash); }

/* ---------- Old words (idea 2; Mockups/understanding-2026-10-21.html, frame 2A) ---------- */
/* A word is a button inside the verse, dressed as text with a dotted line; its card opens under the verse. */
button.ow { -webkit-appearance: none; appearance: none; display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; cursor: pointer; text-decoration: underline dotted var(--ink-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button.ow:focus-visible { outline: 2px solid var(--royal); outline-offset: 1px; border-radius: 3px; }
.ow-card { margin: -2px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); text-align: left; font-family: var(--sans); font-size: 0.95rem; line-height: 1.35; font-weight: 400; color: var(--ink); }
.ow-card b { font-weight: 800; }
.ow-card .ow-from { color: var(--ink-2); }
.ow-card small { display: block; margin-top: 4px; color: var(--ink-2); font-size: 0.72rem; font-weight: 700; }
.fb-verse.ctx .ow-card { margin: 2px 0 8px; }
/* Plus (frame 2B): the card's link to the word's own page, and that page (a tall sheet; Webster's whole entry, then
   every place the word appears). */
.ow-card button.ow-more { display: block; margin: 4px 0 -6px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--royal); cursor: pointer; text-align: left; }
/* ---------- People and places (idea 3; mockup frame 3A): a sheet from a finished chapter's page ---------- */
.sheet p.pp-src { margin: -6px 0 4px; color: var(--ink-2); font-size: 0.8rem; font-weight: 700; }
.pp-row { padding: 7px 0; border-top: 1px solid var(--line); }
.pp-row b { display: block; font-size: 0.92rem; }
.sheet .pp-row p { margin: 1px 0 0; font-family: var(--serif); font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.pp-row p span { font-family: var(--sans); font-size: 0.72rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.sheet p.wp-src { margin: -4px 0 12px; color: var(--ink-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.sheet p.wp-def { margin: 0 0 8px; color: var(--ink); font-size: 0.92rem; line-height: 1.4; }
.wp-here { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--honey-wash); color: var(--ink); font-size: 0.95rem; line-height: 1.35; }
.wp-here small { display: block; margin-bottom: 2px; color: var(--ink-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.wp-here .ow-from { color: var(--ink-2); }
.wp-hit { padding: 8px 0; border-top: 1px solid var(--line); }
.wp-hit b { font-size: 0.78rem; color: var(--ink-2); letter-spacing: 0.03em; }
.sheet .wp-hit p { margin: 2px 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.32; color: var(--ink); }
/* Plus (frame 3B): a page for each person and place. A name that opens one is a button dressed as purple text, in the
   People and places sheet, on a finished chapter's reading page and on the pages themselves. */
button.pname { -webkit-appearance: none; appearance: none; display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; letter-spacing: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; cursor: pointer; color: var(--name-ink); text-decoration: underline; text-decoration-color: var(--name-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button.pname:focus-visible { outline: 2px solid var(--royal); outline-offset: 1px; border-radius: 3px; }
.pp-row b button.pname, .pg-row b button.pname { font-weight: inherit; }
.sheet p.pg-also { margin: -4px 0 8px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-2); }
.sheet p.pg-also b { color: var(--ink); }
.pg-also span, .pg-row p span { font-family: var(--sans); font-size: 0.72rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.sheet p.pg-src { margin: -4px 0 8px; color: var(--ink-2); font-size: 0.8rem; font-weight: 700; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.pg-chips b { font-size: 0.78rem; color: var(--ink-2); margin-right: 4px; }
a.pg-chip { min-width: 34px; min-height: 30px; padding: 5px 7px; border-radius: 9px; background: var(--surface-2); color: var(--ink); font-size: 0.8rem; font-weight: 700; text-align: center; text-decoration: none; }
a.pg-chip.on { background: var(--royal-solid); color: #fff; }
.sheet p.pg-see { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-2); }
.pg-row { padding: 7px 0; border-top: 1px solid var(--line); }
.pg-row b { display: block; font-size: 0.92rem; }
.sheet .pg-row p { margin: 1px 0 0; font-family: var(--serif); font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.read-page p.read-v.focus { margin-left: -8px; margin-right: -8px; padding: 3px 8px; border-radius: 10px; background: var(--honey-wash); }
.read-page.marked p.read-v.focus { padding-left: 28px; } /* keeps the tick or cross clear of the text */

/* ---------- Results ---------- */
.results { text-align: center; }
.results .title { font-size: 1.7rem; font-weight: 800; margin: 2px 0 2px; letter-spacing: -0.01em; }
.results .subtitle { color: var(--ink-2); margin: 0 0 12px; font-size: 0.95rem; }
.ring-wrap { position: relative; width: 200px; height: 180px; margin: 0 auto; }
.score-ring { position: absolute; left: 34px; top: 44px; width: 132px; height: 132px; }
.score-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.score-ring .fill { fill: none; stroke: var(--mint); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0.8, 0.3, 1); }
.score-ring .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.score-ring .center b { font-size: 2.1rem; line-height: 1; }
.score-ring .center span { color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
/* Stars sit on an arc over the ring: centers at 50 deg left, top, 50 deg right of the ring's center (100,110), radius 88. */
.big-stars svg { position: absolute; width: 34px; height: 34px; fill: var(--line); transform: scale(0.4); opacity: 0; }
.big-stars .s1 { left: 16px; top: 36px; rotate: -24deg; }
.big-stars .s2 { left: 79px; top: 1px; width: 42px; height: 42px; }
.big-stars .s3 { left: 150px; top: 36px; rotate: 24deg; }
.big-stars svg.in { animation: starIn 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.big-stars svg.on { fill: var(--honey); }
@keyframes starIn { to { transform: scale(1); opacity: 1; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.tile { border-radius: 16px; padding: 10px 8px; border: 2px solid; }
.tile .note { display: block; font-size: 0.78rem; font-weight: 700; margin-top: 2px; color: var(--ink-2); }
.tile small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tile b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 1.35rem; margin-top: 4px; color: var(--ink); }
.tile b svg { width: 20px; height: 20px; }
.tile.honey { border-color: var(--honey); background: var(--honey-wash); } .tile.honey small { color: var(--honey-deep); }
.tile.mint { border-color: var(--mint); background: var(--mint-wash); } .tile.mint small { color: var(--mint-deep); }
.tile.ember { border-color: var(--ember); background: var(--ember-wash); } .tile.ember small { color: var(--ember-deep); }
.streak-banner { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--ember-wash); color: var(--ember-deep); font-weight: 800; border-radius: 14px; padding: 10px 14px; margin: 0 0 18px; }
.streak-banner svg { width: 22px; height: 22px; fill: var(--ember); }
.review { text-align: left; margin-top: 18px; display: grid; gap: 10px; }
.review-item { background: var(--surface); border-radius: 14px; padding: 12px 14px; border-left: 5px solid var(--mint); box-shadow: var(--shadow); }
.review-item.miss { border-left-color: var(--berry); }
.review-item .rq { font-weight: 700; margin-bottom: 4px; }
.review-item .ry { color: var(--berry-deep); font-size: 0.92rem; }
.review-item .ra { color: var(--ink-2); font-size: 0.92rem; }
.linkbtn { border: 0; background: none; color: var(--royal); font-weight: 700; cursor: pointer; padding: 12px; }
.results .linkbtn { padding: 8px 12px; }
/* Shorter screens (big text or zoom, like Christopher's): shrink the ring and its stars so results still fit. */
@media (max-height: 700px) { .ring-wrap { transform: scale(0.84); margin: -14px auto -15px; } }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- Practice ---------- */
.pcard { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; cursor: pointer; text-align: left; width: 100%; border: 0; }
.pcard .pic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.pcard .pic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard .ptxt { flex: 1; }
.pcard .ptxt b { display: block; font-size: 1.05rem; }
.pcard .ptxt span { color: var(--ink-2); font-size: 0.9rem; }
.pcard .soon { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.pcard .count { min-width: 30px; height: 30px; border-radius: 99px; background: var(--berry); color: #fff; font-weight: 800; display: grid; place-items: center; padding: 0 8px; }
.pcard.disabled { cursor: default; opacity: 0.75; }

/* ---------- Learn's Path | Practice switch (2026-11-02, Mockups/tabs-settings-2026-11-02.html) ---------- */
.lp-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -6px 0 14px; border-radius: 15px; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line); }
.lp-switch button { position: relative; border: 0; border-radius: 11px; padding: 9px 0; font: inherit; font-weight: 800; font-size: 0.95rem; color: var(--ink-2); background: transparent; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.lp-switch button .ico { width: 18px; height: 18px; }
.lp-switch button .lp-foot { width: 15px; height: 23px; margin: -3px 0; transform: rotate(8deg); } /* the path's own footprint */
.lp-switch button.on { background: var(--royal-solid); color: #fff; box-shadow: 0 3px 0 var(--royal-deep); }
.lp-switch em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--berry); color: #fff; font-size: 0.72rem; display: grid; place-items: center; }
/* The tab bar's red count of mistakes waiting, on Learn. */
.tabbar a { position: relative; }
.tb-badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--berry); color: #fff; font-size: 0.66rem; font-weight: 800; display: grid; place-items: center; font-style: normal; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------- Look A: Practice and Me (Christopher's pick, Mockups/looks-2026-11-02.html) ---------- */
.g-shield { width: 40px; height: 44px; flex: none; position: relative; }
.g-shield b { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 3px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.g-xp-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.g-xp-t b { font-size: 0.92rem; color: var(--ink); font-weight: 800; }
.g-bar { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; }
.g-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #FFC94D, #F5B731); position: relative; }
.g-bar i::after { content: ""; position: absolute; left: 7px; right: 7px; top: 3px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.45); }
.g-bar.mint i { background: linear-gradient(180deg, #33C08A, #1E9E6C); }
.g-bar.royal i { background: linear-gradient(180deg, #7E6CFF, var(--t-royal)); }
.g-bar.ember i { background: linear-gradient(180deg, #FF9A5C, #FF7A2F); }
.g-bar.berry i { background: linear-gradient(180deg, #FF7A7E, var(--t-berry)); }
.g-bar.honey i { background: linear-gradient(180deg, #FFC94D, #E0A31F); }
.g-bar.light { background: rgba(255, 255, 255, 0.22); }
.g-bar i[style*="width:0%"]::after { display: none; }
.g-card { background: var(--surface); border-radius: 20px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); padding: 8px 14px; margin-bottom: 10px; }
.g-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.g-card-h b { font-size: 1rem; font-weight: 800; }
.g-card-h span { font-size: 0.8rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.g-reward { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 99px; background: var(--honey-wash); color: var(--honey-deep) !important; }
.g-reward svg { width: 24px; height: 24px; }
.g-reward.won { background: var(--mint-wash); color: var(--mint-deep) !important; padding-left: 8px; }
.g-reward.won .ico { width: 16px; height: 16px; stroke-width: 3; }
.g-goal { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.g-gi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.g-gi .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.g-gi.off { background: var(--surface-2); color: var(--ink-3); box-shadow: none; }
.g-gt { flex: 1; min-width: 0; }
.g-gt > div { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; font-weight: 700; margin-bottom: 4px; }
.g-gt > div em { font-style: normal; color: var(--ink-2); font-weight: 800; white-space: nowrap; }
.g-gt .g-bar { height: 11px; }
.g-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-tile { position: relative; top: 0; min-width: 0; text-align: left; border: 0; border-radius: 20px; padding: 42px 12px 10px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; box-shadow: 0 5px 0 var(--deep); background: var(--c); overflow: hidden; font: inherit; cursor: pointer; }
.g-tile:active { top: 3px; box-shadow: 0 2px 0 var(--deep); }
.g-tile::before { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.g-tile .g-ti { position: absolute; top: 9px; left: 11px; width: 30px; height: 30px; border-radius: 11px; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; }
.g-tile .g-ti .ico { width: 19px; height: 19px; stroke-width: 2.3; }
.g-tile b { font-size: 1.02rem; font-weight: 800; line-height: 1.15; }
.g-tile span { font-size: 0.78rem; font-weight: 700; opacity: 0.92; }
.g-tile .g-count { position: absolute; top: 10px; right: 10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #fff; color: var(--c); font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; font-style: normal; }
.g-tile .g-mini { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); margin-top: 5px; overflow: hidden; }
.g-tile .g-mini i { display: block; height: 100%; background: #fff; border-radius: 99px; }
/* Nothing to fix, or no chapter finished yet: the tile stays in its place, quieter, and says why. */
.g-tile.off { cursor: default; background: var(--surface-2); color: var(--ink-2); box-shadow: 0 5px 0 var(--line); }
.g-tile.off:active { top: 0; box-shadow: 0 5px 0 var(--line); }
.g-tile.off .g-ti { background: var(--line); }
.g-hero { position: relative; border-radius: 22px; padding: 16px; color: #fff; background: var(--hero); box-shadow: 0 5px 0 var(--hero-deep); margin-bottom: 14px; overflow: hidden; }
.g-hero::after { content: ""; position: absolute; right: -40px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.g-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; position: relative; z-index: 1; }
.g-hero-top > div:last-child { min-width: 0; }
.g-av { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--royal-solid); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; position: relative; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.g-av .g-shield { position: absolute; right: -10px; bottom: -8px; width: 28px; height: 31px; }
.g-av .g-shield b { font-size: 0.78rem; }
.g-hero h1 { font-size: 1.45rem; margin: 0; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.g-hero .since { font-size: 0.82rem; opacity: 0.85; font-weight: 600; }
.g-hero .g-xp-t { color: rgba(255, 255, 255, 0.85); position: relative; z-index: 1; }
.g-hero .g-xp-t b { color: #fff; }
.g-hero .g-bar { position: relative; z-index: 1; }
.g-days { display: flex; justify-content: space-between; }
.g-day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 800; color: var(--ink-3); }
.g-day i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.g-day.done i { background: var(--ember); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.g-day.today i { background: transparent; box-shadow: inset 0 0 0 3px var(--ember); color: var(--ember); }
.g-day.done span, .g-day.today span { color: var(--ember-deep); }
.g-day .ico { width: 16px; height: 16px; }
.g-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.g-stat { background: var(--surface); border-radius: 16px; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); padding: 9px 8px; min-width: 0; }
.g-stat .ico { width: 18px; height: 18px; color: var(--c); margin-bottom: 4px; }
.g-stat b { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.g-stat span { font-size: 0.7rem; font-weight: 700; color: var(--ink-2); }
.g-sec { font-size: 1.05rem; font-weight: 800; margin: 4px 2px 10px; }
.g-medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.g-medal { text-align: center; background: var(--surface); border-radius: 16px; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); padding: 10px 4px 8px; min-width: 0; }
.g-medal svg { width: 52px; height: 58px; margin: 0 auto 4px; }
.g-medal b { display: block; font-size: 0.78rem; font-weight: 800; line-height: 1.15; }
.g-medal span { display: block; font-size: 0.66rem; font-weight: 700; color: var(--ink-2); margin-top: 2px; line-height: 1.2; }
/* Collections (2026-11-02, his pick C·3, Mockups/collections-rings-2026-11-02.html): a fold, three rings, and under a
   tapped ring its shelf of books (five to a row, the short name inside each ring) or the verses kept. */
.c-acc { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; color: var(--ink); padding: 4px 2px; margin: 4px 0 10px; text-align: left; cursor: pointer; }
.c-acc b { font-size: 1.05rem; font-weight: 800; }
.c-acc .sum { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.c-acc b + .c-chev { margin-left: auto; }
.c-chev { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--royal); }
.c-chev .ico { width: 16px; height: 16px; stroke-width: 2.6; transform: rotate(90deg); }
.c-acc[aria-expanded="true"] .c-chev .ico { transform: rotate(-90deg); }
.c-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.c-ring { position: relative; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 3px 0 var(--line); padding: 10px 4px 9px; text-align: center; cursor: pointer; }
.c-ring.sel { border-color: var(--royal); box-shadow: 0 3px 0 var(--royal); }
.c-ring .rg { display: block; width: 64px; height: 64px; margin: 0 auto 4px; }
.c-ring .rg svg, .sbk .rw svg { width: 100%; height: 100%; }
.c-ring .rv { position: absolute; left: 0; right: 0; top: 30px; font-weight: 800; font-size: 0.9rem; }
.c-ring b { display: block; font-size: 0.78rem; line-height: 1.15; font-weight: 800; }
.c-ring > span:last-child { display: block; font-size: 0.68rem; font-weight: 700; color: var(--ink-2); margin-top: 2px; }
.c-rings:has(+ .c-panel) { margin-bottom: 12px; }
.c-panel { padding: 12px 10px; margin-bottom: 18px; }
.c-panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 10px; font-size: 0.8rem; font-weight: 800; color: var(--ink-2); }
.c-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 2px; }
.sbk { min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: center; cursor: pointer; }
.sbk .rw { position: relative; display: block; width: 50px; height: 50px; margin: 0 auto; }
.sbk .in { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 0.74rem; letter-spacing: -0.01em; line-height: 1; }
.sbk .in.small { font-size: 0.62rem; }
.sbk small { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 3px; font-size: 0.66rem; font-weight: 700; color: var(--ink-2); }
.sbk small .ico { width: 11px; height: 11px; stroke-width: 3.4; }
.sbk.done small { color: var(--honey-deep); }
.sbk.soon .in, .sbk.soon small { color: var(--ink-3); }
.sbk.soon .in { font-weight: 700; }
.vk-row { padding: 8px 2px; }
.vk-row + .vk-row { border-top: 1px solid var(--line); }
.vk-row b { display: block; font-size: 0.86rem; }
.vk-row p { margin: 2px 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.32; color: var(--ink); }
.vk-sub { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--line); }
.vk-empty { margin: 0 2px 4px; font-size: 0.88rem; line-height: 1.4; color: var(--ink-2); }
.g-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; padding: 4px 0; }
.g-cal span { font-size: 0.66rem; font-weight: 800; color: var(--ink-3); }
.g-cal i { height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--ink-3); background: var(--surface-2); }
.g-cal i.on { background: var(--ember); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.g-cal i.today { background: transparent; box-shadow: inset 0 0 0 2.5px var(--ember); color: var(--ember-deep); }
.g-cal i.on.today { background: var(--ember); color: #fff; }
.g-cal i.blank { background: transparent; box-shadow: none; }

/* ---------- Settings (2026-11-02), laid out like CM Checkbook Register's approved Settings A ---------- */
.st-top { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.st-back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px 8px 10px; border-radius: 99px; background: var(--surface); color: var(--royal); font-weight: 700; font-size: 1rem; box-shadow: var(--shadow); }
.st-back .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.st-h { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--royal); margin: 4px 2px 2px; }
.st-sec { font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 800; color: var(--ink-2); text-transform: uppercase; margin: 9px 6px 5px; }
.st-group { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 10px 0 13px; min-height: 40px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
button.st-row:active, a.st-row:active { background-color: var(--surface-2); }
.st-row .ico { color: var(--royal); width: 20px; height: 20px; }
.st-row .lbl { flex: 1; min-width: 0; padding: 9px 0; font-size: 0.98rem; white-space: nowrap; }
.st-row .lbl small { display: block; color: var(--ink-2); font-size: 0.78rem; margin-top: 1px; white-space: normal; }
.st-row + .st-row { background-image: linear-gradient(var(--line), var(--line)); background-position: right top; background-size: calc(100% - 43px) 1px; background-repeat: no-repeat; }
.st-v { color: var(--ink-2); font-size: 0.88rem; padding: 9px 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-row .chev { width: 16px; color: var(--ink-3); align-self: stretch; display: grid; place-items: center; }
.st-row .chev .ico { width: 15px; height: 15px; color: var(--ink-3); stroke-width: 2.4; }
.st-row.red, .st-row.red .ico { color: var(--red); }
.st-row.plain { cursor: default; }
.st-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-lock { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 99px; font: inherit; font-size: 0.92rem; background: var(--surface); color: var(--royal); font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.st-lock .ico { width: 18px; height: 18px; }
.st-foot { color: var(--ink-3); font-size: 0.78rem; margin: 10px 6px 0; }
.tdot { width: 40px; height: 40px; flex: none; }
.tdot.sm { width: 18px; height: 18px; }
.tp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tp-row + .tp-row { box-shadow: inset 0 1px 0 var(--line); }
.tp-row div { flex: 1; min-width: 0; }
.tp-row b { display: block; font-size: 1rem; }
.tp-row.on b { color: var(--royal); }
.tp-row span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; display: block; }
.tp-row .ico { color: var(--royal); stroke-width: 2.6; }
.st-page .draw-toggle { margin: 14px 0 0; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.gl-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.gl-days button { font: inherit; border: 0; border-radius: 12px; padding: 10px 0 8px; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 1.15rem; line-height: 1; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.gl-days button small { display: block; font-size: 0.62rem; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
.gl-days button.on { background: var(--royal-solid); color: #fff; box-shadow: 0 3px 0 var(--royal-deep); }
.gl-days button.on small { color: rgba(255, 255, 255, 0.85); }
.gl-note { color: var(--ink-2); font-size: 0.84rem; line-height: 1.4; margin: 0; }
/* How the app works, Privacy and Contact: plain pages of text in cards. */
.st-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; margin: 12px 0; }
.st-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.02rem; color: var(--royal); }
.st-card h3 .ico { width: 20px; height: 20px; }
.st-card p { margin: 0; font-size: 0.94rem; line-height: 1.45; }
.st-card p + p { margin-top: 8px; }
.st-card ul { margin: 4px 0 0; padding-left: 19px; font-size: 0.94rem; line-height: 1.45; }
.st-card li + li { margin-top: 5px; }
.st-card .short { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.st-card .warn { font-weight: 700; }
.st-date { margin: 2px 6px 0; font-size: 0.86rem; color: var(--ink-2); }
.st-card a.mail { display: inline-block; padding: 12px 0; color: var(--royal); font-weight: 700; }
.ct-addr { margin: 12px 0 0; padding: 11px 2px; border-radius: 10px; background: var(--bg); text-align: center; font-weight: 700; color: var(--royal); font-size: 0.94rem; -webkit-user-select: text; user-select: text; }
.ct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ct-btns .btn { padding: 12px 6px; font-size: 0.94rem; }
.sheet .btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }

/* ---------- Welcome ---------- */
.welcome { min-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 58px); display: flex; flex-direction: column; }
/* His pick C (2026-11-02): the logo beside the headline, then two numbered cards. The name box sits high so the iPhone
   keyboard never covers it: when it did, Safari slid the whole page up and back (recorded in the iPhone simulator,
   2026-10-12); in the mockup it stays 177px clear of the keyboard at 320 x 693. */
.wl-top { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.wl-top .cm-logo { width: 40px; height: 40px; flex: none; }
.welcome h1 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.08; margin: 0; }
.welcome-form { margin-top: 0; }
.wl-card { padding: 12px 14px 14px; margin-bottom: 10px; }
.wl-q { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; font-weight: 800; font-size: 0.98rem; color: var(--ink); }
.wl-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--royal-solid); color: #fff; font-weight: 800; font-size: 0.9rem; box-shadow: 0 2px 0 var(--royal-deep); }
.wl-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line); }
.wl-field:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--royal), 0 0 0 4px var(--royal-wash); }
.wl-field .ico { width: 22px; height: 22px; color: var(--royal); }
.wl-input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; }
.wl-input::placeholder { color: var(--ink-3); }
.wl-input:-webkit-autofill, .wl-input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 99999s; }
.wl-rings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.wl-ring { min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: center; cursor: pointer; }
.wl-ring .rw { position: relative; display: block; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; }
.wl-ring .rw svg { width: 100%; height: 100%; }
.wl-ring .rw b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.74rem; font-weight: 800; }
.wl-ring small { display: block; margin-top: 2px; font-size: 0.64rem; font-weight: 700; color: var(--ink-2); }
.wl-ring.on .rw { background: var(--royal-solid); box-shadow: 0 3px 0 var(--royal-deep); }
.wl-ring.on .rw svg { visibility: hidden; }
.wl-ring.on .rw b { color: #fff; }
.wl-ring.on small { color: var(--royal); font-weight: 800; }
.welcome .wl-more { display: block; margin: 6px auto 0; padding: 6px 12px; font-weight: 800; font-size: 0.86rem; }
.welcome-form > .btn { margin-top: 4px; }
.field { width: 100%; padding: 15px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem; outline: none; }
.field:focus { border-color: var(--royal); }
.field:-webkit-autofill, .field:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset; transition: background-color 99999s; }
.field:autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset; }
.book-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* "Color every book" (Idea 1, 2026-10-16, as "Show all drawings"): a switch on the Color theme page. */
.draw-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.draw-toggle b { display: block; font-weight: 700; }
.draw-toggle small { display: block; margin-top: 1px; color: var(--ink-2); font-weight: 600; font-size: 0.8rem; line-height: 1.3; }
.dt-switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--line); transition: background 0.2s; }
.dt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.draw-toggle[aria-checked="true"] .dt-switch { background: var(--royal-solid); }
.draw-toggle[aria-checked="true"] .dt-switch::after { transform: translateX(18px); }

/* ---------- Sheets / dialogs ---------- */
.sheet-scrim { position: fixed; inset: 0; background: rgba(15, 12, 35, 0.45); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px 18px calc(var(--safe-b) + 18px); animation: up 0.25s ease; max-height: calc(100dvh - var(--safe-t) - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; }
.sheet .review { margin-top: 0; }
.sheet h2 { margin: 0 0 6px; font-size: 1.3rem; }
.sheet.under { filter: brightness(0.6); } /* a sheet with another over it (a word or person page) */
.sheet.stacked { box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.4); }
.sheet p { margin: 0 0 18px; color: var(--ink-2); }
/* The book chooser (2026-10-14): every book on two tabs, three to a row. Ready books look like buttons; the others
   are flat and say "Coming soon" when tapped. Names wrap by word ("Song of / Solomon"), never mid-word. */
.sheet p.bk-note { margin: -6px 2px 12px; font-size: 0.85rem; }
#bktabs { margin-bottom: 14px; }
#bktabs button { font-size: 0.9rem; padding: 9px 4px; } /* "New Testament" stays on one line at 320pt */
.bk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bk-btn { min-height: 46px; padding: 6px 2px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.78rem; line-height: 1.15; text-align: center; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.bk-btn small { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 600; font-size: 0.68rem; }
.bk-btn.on { border-color: var(--royal); background: var(--royal-wash); box-shadow: 0 2px 0 var(--royal); }
.bk-btn.soon { border-color: transparent; background: var(--surface-2); box-shadow: none; color: var(--ink-2); font-weight: 600; }
.bk-btn.tight { font-size: 0.68rem; } /* "1 Thessalonians", "2 Thessalonians" */
.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(var(--safe-b) + 28px); z-index: 60; transform: translateY(10px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.9rem; text-align: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: none; }
/* Near the top instead (toast(msg, "top")), below the strip iPhone blurs under the clock, so it never covers a button. */
.toast.at-top { bottom: auto; top: calc(var(--shield) + 42px); transform: translateY(-10px); }
.toast.at-top.show { transform: none; }

/* ---------- Backup and restore (2026-10-16, Mockups/backup-2026-10-16.html) ---------- */
.bu-note { background: var(--royal-wash); border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; font-size: 0.9rem; line-height: 1.42; color: var(--ink); }
.sheet .bu-status { text-align: center; color: var(--ink-3); font-size: 0.85rem; font-weight: 600; margin: 10px 0 0; }
.sheet .bu-status.bu-saved { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--mint-deep); font-weight: 700; }
.bu-saved svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sheet .bu-tip { margin: 8px 2px 14px; color: var(--ink-2); font-size: 0.84rem; line-height: 1.38; }
.bu-cmp { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 0.9rem; }
.bu-cmp th { text-align: left; color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; padding: 0 0 6px; }
.bu-cmp td { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.bu-cmp td:first-child { padding-right: 12px; }
.bu-cmp td b { color: var(--ink); }
.bu-warn { background: var(--berry-wash); border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; font-size: 0.9rem; line-height: 1.42; }
.bu-restore { display: block; margin: 14px auto 0; padding: 6px; font-size: 0.92rem; }
@keyframes up { from { transform: translateY(100%); } }

/* No entrance animation on screen changes: on the phone it read as a flash and a bounce on every tap (Christopher,
   2026-10-12). Screens switch instantly; only meaningful motion remains (feedback panel, stars, confetti, sheets). */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .big-stars svg { transform: none; opacity: 1; }
}

/* ---------- Full review ---------- */
.fr-card + .fr-card { margin-top: 12px; }
.fr-card .bk { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fr-card .bk b { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.fr-card .bk span { color: var(--ink-2); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.fr-card .pbar { margin: 8px 0 14px; }

/* ---------- Verse match (2026-11-02, from the approved mockup Mockups/verse-match-2026-11-02.html) ---------- */
.qtext .qref { color: var(--royal); white-space: nowrap; }
.opt.vopt { align-items: flex-start; font-family: var(--serif); font-weight: 500; font-size: 1rem; line-height: 1.3; }
.opt.vopt .key { font-family: var(--sans); margin-top: 1px; }
.vopt .vref { display: block; margin-top: 5px; font-family: var(--sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink-2); }
.opt.right .vref { color: var(--mint-deep); }
.opt.wrong .vref { color: var(--berry-deep); }
.vm-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin-top: 8px; }
.vm-list { text-align: left; padding: 4px 14px; margin: 0 0 14px; }
.vm-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.vm-row + .vm-row { border-top: 1px solid var(--line); }
.vm-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.vm-row.ok .vm-mark { background: var(--mint); }
.vm-row.miss .vm-mark { background: var(--berry); }
.vm-mark svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.vm-row b { font-size: 0.98rem; }
.vm-verse { margin: 3px 0 0; font-family: var(--serif); font-size: 0.95rem; line-height: 1.3; color: var(--ink); }

/* ---------- App Lock ---------- */
.lock-screen { min-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 58px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lock-screen > .cm-logo { width: 56px; height: 56px; margin-bottom: 10px; }
.lock-setup { text-align: center; padding-top: 8px; }
.lock-setup .lock-warning { text-align: left; }
.lock-title { font-size: 1.3rem; font-weight: 800; margin: 6px 0 6px; }
.lock-sub { color: var(--ink-2); margin: 0 0 8px; }
.lock-error { min-height: 1.4em; color: var(--berry); font-weight: 700; font-size: 0.9rem; margin: 4px 0 10px; }
.lock-warning { background: var(--berry-wash); border-radius: 16px; padding: 14px 16px; margin: 10px 0 18px; line-height: 1.45; }
/* Recovery codes and Start over (2026-10-15, Christopher's choice A + C). */
.lock-note { text-align: left; background: var(--royal-wash); border-radius: 16px; padding: 14px 16px; margin: 10px 0 18px; line-height: 1.45; }
.forgot { margin-top: 14px; font-size: 0.95rem; }
.navbar-space { height: 36px; }
.codebox { margin: 14px 0; padding: 16px 8px; border-radius: 16px; border: 2px dashed var(--royal); background: var(--surface); font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em; user-select: all; -webkit-user-select: all; }
.codefield { text-align: center; font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 12px; }
.codefield::placeholder { text-transform: none; letter-spacing: 0.04em; }
.choice { display: block; width: 100%; text-align: left; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--royal); background: var(--royal-wash); color: var(--ink); font: inherit; cursor: pointer; }
.choice b { display: block; }
.choice span { color: var(--ink-2); font-size: 0.85rem; }
.choice.warn { border-color: var(--line); background: var(--surface); }
.lock-dots { display: flex; gap: 12px; justify-content: center; margin: 4px 0 22px; }
.lock-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); }
.lock-dot.filled { background: var(--royal-solid); border-color: var(--royal-solid); }
.keypad-grid { display: grid; grid-template-columns: repeat(3, 68px); gap: 14px 22px; justify-content: center; }
.keypad-key { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 3px 0 var(--line); color: var(--ink); font-size: 1.55rem; font-weight: 700; cursor: pointer; }
.keypad-key:active { background: var(--royal-wash); }
.keypad-key.keypad-blank { background: transparent; box-shadow: none; }
.keypad-key.keypad-back { background: transparent; box-shadow: none; font-size: 1.2rem; color: var(--ink-2); }
.lock-shake { animation: lockShake 0.32s ease; }
@keyframes lockShake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
