/* Layout: app shell — sticky bar, one view at a time, person sheet slides in from the right (bottom on phones).
   Palette: lapis (Marian blue of illuminated manuscripts) + gold leaf on cool vellum / night lapis. */
:root {
  /* warm parchment, deep ink; lapis and gold as accents */
  --bg: #f5efe3;
  --surface: #fffdf8;
  --raised: #ffffff;
  --sunk: #ede5d5;
  --fg: #1f1b16;
  --muted: #5d5546;
  --faint: #8a8170;
  --line: #e2d8c4;
  --lapis: #27448f;
  --lapis-ink: #ffffff;
  --primary: #27448f;
  --on-primary: #ffffff;
  --gold: #8a6212;
  --gold-bright: #c99a2e;
  --rubric: #a3262a;
  --lit: #6b3fa0;
  --font-display: "Alegreya SC", "Alegreya", Georgia, serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --font-ui: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --shadow-1: 0 1px 2px rgb(60 40 10 / .06), 0 2px 8px rgb(60 40 10 / .05);
  --shadow-2: 0 2px 4px rgb(60 40 10 / .06), 0 10px 28px rgb(60 40 10 / .10);
  --dock-h: 0px;
  --bar-h: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121318; --surface: #1b1c23; --raised: #22242c; --sunk: #0d0e12; --fg: #ece7dc; --muted: #aaa293; --faint: #7d7769;
    --line: #2e3039; --lapis: #9db2f2; --lapis-ink: #10152a; --primary: #4062c2; --on-primary: #ffffff; --gold: #dcb865; --gold-bright: #e2c072; --rubric: #f0857f; color-scheme: dark;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4); --shadow-2: 0 10px 30px rgb(0 0 0 / .45);
  }
}
:root[data-theme="dark"] {
  --bg: #121318; --surface: #1b1c23; --raised: #22242c; --sunk: #0d0e12; --fg: #ece7dc; --muted: #aaa293; --faint: #7d7769;
  --line: #2e3039; --lapis: #9db2f2; --lapis-ink: #10152a; --primary: #4062c2; --on-primary: #ffffff; --gold: #dcb865; --gold-bright: #e2c072; --rubric: #f0857f; color-scheme: dark;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4); --shadow-2: 0 10px 30px rgb(0 0 0 / .45);
}
@media (max-width: 640px) { :root { --dock-h: calc(62px + env(safe-area-inset-bottom, 0px)); } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: var(--lapis); }
button, select, input { font: inherit; font-family: var(--font-ui); color: var(--fg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); color: var(--fg); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; letter-spacing: .04em; color: var(--gold); }
.lede { color: var(--muted); max-width: 65ch; margin: .4rem 0 0; }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand span { color: var(--fg); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; font-family: var(--font-ui); }
.tabs a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.tabs a.on { color: var(--surface); background: var(--lapis); }
.search { position: relative; margin-left: auto; flex: 1 1 200px; max-width: 320px; }
.search input, .people-tools input, .people-tools select, .canon-tools select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.qres { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 12px 30px rgb(0 0 0 / .18); max-height: 60vh; overflow: auto; z-index: 30; }
.qres button { display: block; width: 100%; text-align: left; padding: 8px 12px; background: none; border: 0; cursor: pointer; }
.qres button:hover, .qres button:focus-visible { background: var(--sunk); }
.qres small { color: var(--muted); }

main { padding-block: 20px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.view { display: flex; flex-direction: column; gap: 14px; }

/* map */
.map-head { display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.map-head > div:first-child { min-width: 0; flex: 1 1 420px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--font-ui); font-size: .8rem; color: var(--muted); max-width: 520px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legend .ln { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--muted); margin-right: 5px; vertical-align: 3px; }
.legend .ln.d { border-top-style: dashed; }
.map-wrap { position: relative; height: min(72vh, 760px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
#graph { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.map-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-tools button { min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); font-family: var(--font-ui); font-size: .85rem;
  padding: 6px 10px; border-radius: 6px; max-width: 260px; }

/* canon matrix */
.canon-tools { font-family: var(--font-ui); }
.canon-tools select { width: auto; margin-left: 6px; }
.canon-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
#canon svg text { font-family: var(--font-ui); fill: var(--fg); }
#canon .row:hover rect.hl { fill: var(--sunk); }
#canon .row { cursor: pointer; }

/* people list */
.people-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.people-tools input { flex: 2 1 220px; width: auto; }
.people-tools select { flex: 1 1 160px; width: auto; }
.count { color: var(--muted); font-family: var(--font-ui); font-size: .9rem; margin: 0; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.plist button { width: 100%; height: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; display: grid; gap: 2px; }
.plist button:hover { border-color: var(--lapis); }
.plist b { font-family: var(--font-body); font-size: 1.05rem; }
.plist span { color: var(--muted); font-size: .85rem; }

/* person panel */
.panel { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: -20px 0 40px rgb(0 0 0 / .18); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) 20px; }
@media (max-width: 640px) {
  .panel { top: 12vh; left: 0; width: 100vw; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.close { position: sticky; top: 0; float: right; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.3rem; cursor: pointer; z-index: 2; }
.p-eyebrow { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.p-name { font-size: 2rem; margin: 2px 0 2px; }
.p-alias { color: var(--muted); font-style: italic; }
.p-sec { display: grid; gap: 8px; margin-top: 22px; }
.p-sec p { margin: 0; }
.feast { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--sunk); font-family: var(--font-ui); font-size: .85rem; }
.feast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rubric); }
.catholic { border-left: 3px solid var(--gold); padding-left: 14px; }
.know { margin: 0; padding-left: 1.2em; }
.know li + li { margin-top: 4px; }

.tree { display: grid; gap: 6px; font-family: var(--font-ui); }
.tree .gen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tree .lbl { width: 72px; flex: none; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 3px 11px; cursor: pointer; font-size: .9rem; }
.chip:hover { border-color: var(--lapis); color: var(--lapis); }
.chip.self { background: var(--lapis); color: var(--surface); border-color: var(--lapis); cursor: default; }
.chip small { color: var(--muted); }
.rels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-ui); font-size: .92rem; }
.rels li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.rels .t { color: var(--muted); }
.ref { font-family: var(--font-ui); font-size: .85rem; color: var(--lapis); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-variant-numeric: tabular-nums; }

.strip { width: 100%; overflow-x: auto; }
.strip svg text { font-family: var(--font-ui); fill: var(--muted); }

.passage { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.passage h4 { margin: 0 0 4px; font-family: var(--font-ui); font-size: .85rem; color: var(--gold); }
.passage p { margin: 0; font-size: 1rem; }
.passage sup { font-family: var(--font-ui); color: var(--muted); font-size: .7em; margin-right: 2px; }
.passage mark { background: color-mix(in srgb, var(--gold) 28%, transparent); color: inherit; border-radius: 2px; }
details.bk { border-top: 1px solid var(--line); padding: 6px 0; }
details.bk summary { cursor: pointer; font-family: var(--font-ui); display: flex; justify-content: space-between; gap: 8px; }
details.bk summary span { color: var(--muted); font-variant-numeric: tabular-nums; }
details.bk .vv { display: grid; gap: 6px; margin-top: 8px; }
details.bk .vv p { margin: 0; font-size: .95rem; }
details.bk .vv b { font-family: var(--font-ui); font-size: .8rem; color: var(--lapis); margin-right: 4px; font-variant-numeric: tabular-nums; }

/* quiz */
.quiz { max-width: 680px; display: grid; gap: 16px; }
.qhead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.qmeta { font-family: var(--font-ui); color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.qprompt { font-size: 1.2rem; }
.qopts { display: grid; gap: 8px; }
.qopts button { text-align: left; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 1rem; }
.qopts button:hover:not(:disabled) { border-color: var(--lapis); }
.qopts button.right { border-color: #2f7d4a; background: color-mix(in srgb, #2f7d4a 16%, var(--bg)); }
.qopts button.wrong { border-color: var(--rubric); background: color-mix(in srgb, var(--rubric) 14%, var(--bg)); }
.qexp { color: var(--muted); }
.qnext { justify-self: start; padding: 9px 18px; border-radius: 999px; border: 0; background: var(--lapis); color: var(--surface); cursor: pointer; font-weight: 700; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i.ok { background: #2f7d4a; } .dots i.no { background: var(--rubric); } .dots i.cur { outline: 2px solid var(--lapis); }

.foot { color: var(--muted); font-family: var(--font-ui); font-size: .8rem; padding-block: 0 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.loading { color: var(--muted); font-family: var(--font-ui); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- shared game / hub ---------- */
:root { --g1: #c99a2e; --g2: #5f8f5a; --g3: #4f74c4; --g4: #8a5aa8; --good: #2f7d4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g1: #d8b35c; --g2: #7fb27a; --g3: #7f9ff0; --g4: #b48ad0; --good: #5fbf7f; } }
:root[data-theme="dark"] { --g1: #d8b35c; --g2: #7fb27a; --g3: #7f9ff0; --g4: #b48ad0; --good: #5fbf7f; }
.eyebrow { display: block; font-family: var(--font-ui); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ghead { display: flex; align-items: baseline; gap: 10px 14px; flex-wrap: wrap; }
.ghead h1 { flex: 1 1 auto; }
.back { border: 0; background: none; color: var(--lapis); font-family: var(--font-ui); font-weight: 700; cursor: pointer; padding: 4px 0; }
.ghost { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: var(--font-ui); }
.ghost.small { padding: 3px 10px; font-size: .85rem; }
.ghost:disabled, .qnext:disabled { opacity: .45; cursor: default; }
.gbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gfoot { color: var(--muted); font-family: var(--font-ui); font-size: .85rem; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.game, .hub, .today, .journey { display: grid; gap: 14px; max-width: 760px; }
.hub, .today { max-width: 980px; }
.sharebox { width: 100%; min-height: 90px; font-family: var(--font-ui); }
[data-msg].pulse::after { content: attr(data-msg); margin-left: 10px; font-family: var(--font-ui); font-size: .85rem; color: var(--rubric); animation: fadeout 1.6s forwards; }
@keyframes fadeout { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gcard { text-align: left; display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.gcard:hover { border-color: var(--lapis); }
.gname { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.gdesc { color: var(--muted); font-family: var(--font-body); }
.gstat { font-family: var(--font-ui); font-size: .85rem; color: var(--gold); font-weight: 700; }
.pbar { display: block; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--gold); }
.pbar.wide { max-width: 420px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.badge { padding: 10px 12px; border-radius: var(--r); border: 1px dashed var(--line); color: var(--muted); display: grid; gap: 2px; font-family: var(--font-ui); font-size: .85rem; }
.badge b { font-family: var(--font-display); font-size: 1rem; }
.badge.got { border: 1px solid var(--gold); color: var(--fg); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.badge.got b::before { content: "✦ "; color: var(--gold); }

/* threads */
.tclue { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r); background: var(--sunk); }
.tclue b { font-size: 1.15rem; }
.tgrid-wrap { position: relative; width: min(100%, 380px); justify-self: center; }
.tgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; z-index: 1; }
.tcell { aspect-ratio: 1; border-radius: 10px; border: 0; background: transparent; font-family: var(--font-ui); font-weight: 700; font-size: clamp(1rem, 4.6vw, 1.35rem); color: var(--fg); cursor: pointer; transition: background .12s; }
.tcell.sel { background: color-mix(in srgb, var(--lapis) 28%, transparent); }
.tcell.found { background: color-mix(in srgb, var(--g3) 45%, transparent); }
.tcell.span { background: color-mix(in srgb, var(--g1) 60%, transparent); }
.tcell.hinted { box-shadow: inset 0 0 0 2px var(--gold); }
.tlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.tlines line { stroke-linecap: round; stroke-width: 6; stroke-dasharray: 2 6; }
.tlines .lsel { stroke: color-mix(in srgb, var(--lapis) 28%, transparent); }
.tlines .lf { stroke: color-mix(in srgb, var(--g3) 45%, transparent); }
.tlines .ls { stroke: color-mix(in srgb, var(--g1) 60%, transparent); }
.tword { text-align: center; font-family: var(--font-ui); font-weight: 700; letter-spacing: .12em; font-size: 1.2rem; min-height: 1.6em; }

/* lineage links */
.lgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ltile { min-height: 64px; padding: 6px; border: 0; border-radius: 8px; background: var(--sunk); font-family: var(--font-ui); font-weight: 700; font-size: clamp(.72rem, 2.8vw, .95rem); cursor: pointer; overflow-wrap: anywhere; color: var(--fg); }
.ltile.on { background: var(--fg); color: var(--bg); }
.lsolved { display: grid; gap: 6px; }
.lgroup { border-radius: 8px; padding: 10px; text-align: center; display: grid; gap: 2px; font-family: var(--font-ui); color: #15130c; }
.lgroup b { text-transform: uppercase; letter-spacing: .05em; }
.lgroup { color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--lit); text-align: left; }
.lgroup.d1 { --lit: #d9c27a; } .lgroup.d2 { --lit: #3c7a4a; } .lgroup.d3 { --lit: #b3282d; } .lgroup.d4 { --lit: #6b3fa0; }
.lgroup .chip { background: var(--sunk); color: var(--fg); }

/* hidden name */
.ahidden { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ahidden span { width: 40px; height: 48px; border-bottom: 3px solid var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.ahidden span.on { color: var(--gold); }
.aclues { display: grid; gap: 10px; padding-left: 1.4em; margin: 0; }
.aclue p { margin: 0 0 6px; }
.arow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ain { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .15em; font-weight: 700; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); width: min(100%, 15ch); }
.aclue.ok .ain { border-color: var(--good); color: var(--good); }
.aclue.ok::marker { color: var(--good); }

/* tap */
.tapq { display: grid; gap: 2px; font-size: 1.15rem; }
.tapmap { position: relative; height: min(64vh, 560px); min-height: 360px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
#tapsvg { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.tapmap.wideext { height: min(64vh, 560px, 72vw); min-height: 240px; }
#tapsvg .off, .tapmap.small .off { fill: var(--sunk); }
#tapsvg .sea { fill: color-mix(in srgb, var(--lapis) 26%, var(--surface)); }
#tapsvg .land { fill: var(--surface); stroke: color-mix(in srgb, var(--fg) 35%, transparent); stroke-width: .6; vector-effect: non-scaling-stroke; }
#tapsvg .lake { fill: color-mix(in srgb, var(--lapis) 30%, var(--surface)); stroke: none; }
#tapsvg .river { fill: none; stroke: color-mix(in srgb, var(--lapis) 50%, var(--surface)); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#tapsvg .pin { fill: var(--rubric); stroke: var(--surface); }
#tapsvg .ans { fill: var(--good); stroke: var(--surface); }
#tapsvg .gline { stroke: var(--fg); stroke-dasharray: 4 3; }
#tapsvg .plabel { fill: var(--fg); font-family: var(--font-ui); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.maptag { position: absolute; left: 8px; bottom: 8px; font-family: var(--font-ui); font-size: .75rem; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 8px; border-radius: 999px; }
.tapbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.tapres { display: grid; gap: 6px; }

/* quiz levels */
.levels { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; justify-self: start; }
.levels button { border: 0; background: none; padding: 6px 14px; cursor: pointer; }
.levels button.on { background: var(--lapis); color: var(--surface); }

/* today */
.tband { border-left: 6px solid var(--lit); padding: 6px 0 6px 16px; display: grid; gap: 6px; }
.tband p { margin: 0; }
.tsec { display: grid; gap: 10px; }
.readings { display: grid; gap: 8px; }
.reading { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 10px 14px; }
.reading summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.reading summary .who { color: var(--muted); font-family: var(--font-ui); font-size: .85rem; }
.reading .passage { margin: 10px 0; display: grid; gap: 8px; justify-items: start; }
.potd { text-align: left; display: grid; gap: 4px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; max-width: 720px; }
.potd b { font-family: var(--font-display); font-size: 1.4rem; }
.potd:hover { border-color: var(--lapis); }
.gmini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gm { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.gm span { color: var(--muted); font-family: var(--font-ui); font-size: .85rem; }
.inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inbox p { margin: 4px 0 0; }

/* journeys */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.step details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 10px 14px; }
.step summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sn { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sunk); font-family: var(--font-ui); font-size: .8rem; font-weight: 700; flex: none; }
.step.done .sn { background: var(--good); color: var(--surface); }
.stepbody { display: grid; gap: 10px; margin-top: 10px; justify-items: start; }
.stepbody .passage { justify-self: stretch; display: grid; gap: 8px; justify-items: start; }
.reflect { margin: 0; font-style: italic; }
.reflect .eyebrow { font-style: normal; }

/* person panel additions */
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fixform { display: grid; gap: 6px; margin-top: 12px; padding: 12px; border-radius: var(--r); background: var(--sunk); font-family: var(--font-ui); font-size: .9rem; }
.fixform textarea, .fixform select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
@media (max-width: 640px) {
  .bar-inner { gap: 8px; }
  .tabs { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; }
  .tabs a { flex: none; }
  .search { order: 2; flex: 1 1 140px; max-width: none; }
  .ahidden { gap: 4px; }
  .ahidden span { width: min(36px, calc((100vw - 60px) / 10)); height: 42px; font-size: 1.3rem; }
}
.lgroup .chip { background: rgb(255 255 255 / .55); border-color: transparent; color: #15130c; font-size: .8rem; }

/* ---------- bible sub-nav ---------- */
.subnav { display: flex; gap: 4px; font-family: var(--font-ui); border-bottom: 1px solid var(--line); }
.subnav a { padding: 6px 12px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.on { color: var(--lapis); border-bottom-color: var(--lapis); }

/* ---------- music ---------- */
.tag { font-family: var(--font-ui); font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.mparts summary { cursor: pointer; list-style: none; }
.mparts summary h2 { display: inline; }
.mparts summary::before { content: "▸ "; color: var(--gold); }
.mparts[open] summary::before { content: "▾ "; }
.partlist { display: grid; gap: 12px; padding-left: 1.3em; }
.partlist p { margin: 2px 0 6px; }
.lyrics { display: grid; gap: 18px; font-size: 1.05rem; }
.lyrics.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lyrics p { margin: 0 0 14px; }
.lyrics .tr { color: var(--muted); }

/* ---------- sacraments ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.facts p { margin: 4px 0 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--good); }
.checklist input:checked + span b { text-decoration: line-through; color: var(--muted); }
.lvl { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.lvl-church-law { background: color-mix(in srgb, var(--rubric) 16%, transparent); color: var(--rubric); }
.lvl-common { background: color-mix(in srgb, var(--lapis) 14%, transparent); color: var(--lapis); }
.lvl-if-applicable { background: var(--sunk); color: var(--muted); }
.steplist { display: grid; gap: 6px; padding-left: 1.4em; margin: 0; }
.faq { border-top: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 6px 0 0; }

/* ---------- find a mass ---------- */
.findform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-ui); }
.findform input, .findform select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.findform input { width: 9ch; letter-spacing: .08em; }
.churches { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.church { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; }
.ctop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ctop b { font-size: 1.08rem; }
.dist { font-family: var(--font-ui); font-weight: 700; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtimes { font-family: var(--font-ui); font-size: .9rem; }
a.chip { text-decoration: none; color: var(--fg); }

@media print {
  .bar, .foot, .back, #sacprint, .panel, body::before { display: none !important; }
  .checklist label { border: 0; padding: 4px 0; }
  body { background: #fff; color: #000; }
}

/* ---------- five loaves ---------- */
.loaves { max-width: 520px; }
.wgrid { display: grid; gap: 6px; justify-self: center; width: min(100%, 330px); }
.wrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wt { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 46% 46% 14% 14%; font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.3rem, 6vw, 1.9rem); text-transform: uppercase; }
.wt.filled { border-color: var(--muted); }
.wt.correct, .kb button.correct { background: var(--lapis); border-color: var(--lapis); color: var(--surface); }
.wt.present, .kb button.present { background: transparent; border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.wt.absent { background: var(--muted); border-color: var(--muted); color: var(--bg); }
.kb button.absent { background: color-mix(in srgb, var(--muted) 55%, var(--bg)); color: var(--bg); }
.kb { display: grid; gap: 6px; user-select: none; }
.kbrow { display: flex; gap: 5px; justify-content: center; }
.kb button { flex: 1 1 0; max-width: 44px; height: 54px; border: 0; border-radius: 6px; background: var(--sunk); font-family: var(--font-ui); font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--fg); padding: 0; }
.kb button.wide { flex: 1.6 1 0; max-width: 68px; font-size: .78rem; }

/* ---------- language toggle ---------- */
.langtog { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.langtog button { border: 0; background: none; padding: 6px 10px; cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: .8rem; color: var(--muted); }
.langtog button.on { background: var(--lapis); color: var(--surface); }
@media (max-width: 640px) { .langtog { order: 2; } }

/* ---------- pray ---------- */
.gcards.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.prayer { border-top: 1px solid var(--line); padding: 8px 0; }
.prayer summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.ptext p { margin: 8px 0; font-size: 1.08rem; line-height: 1.6; }
.beads { max-width: 640px; }
.beadstrip { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.bd { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.bd.large, .bd.cross { width: 11px; height: 11px; }
.bd.cross { border-radius: 2px; }
.bd.past { background: var(--gold); }
.bd.now { background: var(--lapis); outline: 2px solid color-mix(in srgb, var(--lapis) 35%, transparent); }
.beadcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; min-height: 220px; align-content: start; }
.beadcard h2 { font-size: 1.4rem; }
.cnt { font-family: var(--font-ui); font-size: .9rem; color: var(--gold); font-weight: 700; }
.guide { max-width: 760px; }
.exsec { border-top: 1px solid var(--line); padding: 8px 0; }
.exsec summary { cursor: pointer; font-weight: 700; }
.mguide { display: grid; gap: 6px; padding-left: 1.4em; margin: 0; }
.mguide details { padding: 4px 0; }
.mguide summary { cursor: pointer; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.mguide p { margin: 6px 0; }
.posture { font-family: var(--font-ui); font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.posture.p-kneel { background: color-mix(in srgb, var(--g4) 22%, transparent); color: var(--fg); }
.posture.p-stand { background: color-mix(in srgb, var(--g2) 22%, transparent); color: var(--fg); }
.saint { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; }
.saint b { font-family: var(--font-display); font-size: 1.25rem; }
.saint p { margin: 0; }
.saint blockquote { margin: 4px 0; padding-left: 12px; border-left: 3px solid var(--gold); font-style: italic; }

.levels { flex-wrap: wrap; max-width: 100%; }
.subnav { overflow-x: auto; scrollbar-width: none; }
.subnav a { white-space: nowrap; flex: none; }

.finder .levels a { padding: 6px 16px; text-decoration: none; color: var(--fg); font-family: var(--font-ui); font-weight: 500; }
.finder .levels a.on { background: var(--lapis); color: var(--surface); }
.badge-today, .badge-likely { justify-self: start; font-family: var(--font-ui); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.badge-today { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.badge-likely { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.tipbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; display: grid; gap: 6px; justify-items: start; }
.tipbox .know { margin: 0; }
a.qnext.findconf { text-decoration: none; justify-self: start; }

/* ---------- pilgrimage ---------- */
.pilgrim { max-width: 640px; }
.candles { display: flex; gap: 8px; align-items: flex-end; }
.cdl { width: 12px; height: 34px; border-radius: 3px 3px 2px 2px; background: var(--line); position: relative; }
.cdl.lit { background: color-mix(in srgb, var(--gold) 55%, var(--surface)); }
.cdl.lit::before { content: ""; position: absolute; left: 50%; top: -14px; width: 10px; height: 14px; transform: translateX(-50%); border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff6c8, #f2a93b 60%, transparent 70%); }
.candles .qmeta { margin-left: 6px; }
.stations { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.station { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px; display: grid; gap: 6px; opacity: .7; }
.station.open { opacity: 1; border-color: var(--lapis); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lapis) 14%, transparent); }
.station.done { opacity: 1; }
.station p { margin: 0; }
.sthead { display: flex; gap: 10px; align-items: baseline; }
.sticon { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--sunk); color: var(--gold); font-weight: 700; flex: none; }
.station.done .sticon { background: var(--gold); color: var(--surface); }
.clue { font-style: italic; }
.tiles { display: flex; gap: 6px; flex-wrap: wrap; }
.lt { width: 40px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; cursor: pointer; color: var(--fg); }
.lt.used { opacity: .25; }
.answer { font-family: var(--font-ui); font-weight: 700; letter-spacing: .2em; font-size: 1.3rem; min-height: 1.5em; }
.answer.shake, .ain.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tapmap.small { height: 300px; min-height: 0; }
.tapmap.small svg { width: 100%; height: 100%; display: block; cursor: crosshair; }
.tapmap.small .sea { fill: color-mix(in srgb, var(--lapis) 26%, var(--surface)); }
.tapmap.small .land { fill: var(--surface); stroke: color-mix(in srgb, var(--fg) 35%, transparent); stroke-width: .6; }
.tapmap.small .lake { fill: color-mix(in srgb, var(--lapis) 30%, var(--surface)); }
.tapmap.small .pin { fill: var(--rubric); stroke: var(--surface); stroke-width: 2; }
.tapmap.small .ans { fill: var(--good); stroke: var(--surface); stroke-width: 2; }
.pchip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-family: var(--font-ui); color: var(--fg); }
.pchip.on { background: var(--lapis); color: var(--surface); border-color: var(--lapis); }
.vq { font-size: 1.05rem; }

/* ---------- about / parish ---------- */
.footlinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.footlinks a { color: var(--muted); }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 12px 14px; }
.promises b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.credits li { font-size: .92rem; }
.eracred { margin: var(--s4) 0 6px; font-family: var(--font-ui); font-size: .95rem; font-weight: 700; }
.eracred .qmeta { font-weight: 400; margin-left: 4px; }
.sel { user-select: all; font-family: var(--font-ui); }
.finder-switch a, .finder .levels a { padding: 6px 16px; text-decoration: none; color: var(--fg); font-family: var(--font-ui); font-weight: 500; }
.finder-switch a.on { background: var(--lapis); color: var(--surface); }
.finder-switch { margin-bottom: 14px; }
.demo { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px dashed var(--gold); border-radius: var(--r); padding: 8px 12px; font-family: var(--font-ui); font-size: .9rem; margin: 0; }
.ptimes { border-collapse: collapse; width: 100%; font-family: var(--font-ui); }
.ptimes th { text-align: left; font-weight: 700; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; width: 1%; }
.ptimes td { padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ptimes tr:last-child td { border-bottom: 0; }

/* ---------- page frame: one centred column on wide screens ---------- */
.bar-inner, main, .foot { max-width: 1180px; margin-inline: auto; }
.game, .hub, .today, .journey { width: 100%; margin-inline: auto; }
.bar-inner { flex-wrap: nowrap; }
.tabs { flex-wrap: nowrap; }
.tabs a { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 641px) { .bar-inner { flex-wrap: wrap; } .tabs { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; } }

/* ---------- phone: bottom dock replaces the tab strip ---------- */
.dock, .moresheet { display: none; }
@media (max-width: 640px) {
  .bar-inner { flex-wrap: nowrap; padding-block: 8px; }
  .tabs { display: none; }
  .brand { font-size: 1.02rem; flex: none; }
  .search { order: 0; flex: 1 1 0; min-width: 0; }
  .search input { padding: 6px 12px; font-size: .92rem; }
  .langtog { order: 0; flex: none; }
  .langtog button { padding: 6px 8px; }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; cursor: pointer; text-decoration: none;
    color: var(--muted); font-family: var(--font-ui); font-size: .72rem; font-weight: 500; border-radius: 10px; }
  .dock .on { color: var(--lapis); font-weight: 700; }
  .moresheet:not([hidden]) { display: grid; position: fixed; z-index: 29; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgb(0 0 0 / .22); padding: 6px; }
  .moresheet a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--fg); font-family: var(--font-ui); font-weight: 500; }
  .moresheet a.on { background: var(--sunk); color: var(--lapis); }
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* the map: put the picture first, the explanation after */
  .map-head .lede { display: none; }
  .map-head h1 { font-size: 1.3rem; }
  .legend { font-size: .72rem; gap: 4px 10px; order: 3; }
  .map-wrap { height: 58vh; min-height: 340px; }
}

/* ---------- game hub polish ---------- */
.gname { display: flex; align-items: center; gap: 10px; }
.gico { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--lapis) 10%, var(--surface)); color: var(--lapis); }
.gcard { transition: border-color .15s, box-shadow .15s, transform .15s; }
.gcard:hover { box-shadow: 0 6px 18px rgb(0 0 0 / .08); transform: translateY(-1px); }
.gcard.done .gico { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold); }
.gcard.done .gstat { color: var(--muted); }

/* ---------- five loaves: board and keyboard fit one phone screen ---------- */
.loaves .tword { margin: 0; min-height: 1.4em; }
.loaves .wgrid { width: min(100%, 330px, max(220px, calc((100dvh - 545px) * .83))); }

/* ---------- games: finger-sized controls, readable labels ---------- */
.game .back, .game .ghost, .game .qnext, .game .pchip, .game .levels button, .game .ain, .game .findform input { min-height: 40px; }
.game .ghost.small { min-width: 44px; }
.game .back { padding-right: 8px; }
.game .eyebrow { color: color-mix(in srgb, var(--gold) 72%, var(--fg)); }
.tcell:focus-visible, .ltile:focus-visible, .lt:focus-visible, .kb button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (max-width: 640px) { .loaves .lede { font-size: .95rem; margin: 0; } .loaves { gap: 10px; } }
@media (max-width: 640px) and (max-height: 780px) { .loaves .kb button { height: 46px; } .loaves .kb { gap: 5px; } .loaves .lede { font-size: .9rem; } }

/* ---------- first-visit welcome ---------- */
.welcome { position: relative; display: grid; gap: 8px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: var(--r);
  background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.welcome h2 { font-size: 1.15rem; }
.welcome p { margin: 0; color: var(--muted); }
.welcome .chips { margin-top: 4px; }
@media (max-width: 420px) { .search input { font-size: .84rem; padding-inline: 10px; } .bar-inner { gap: 6px; } }

/* ---------- pray: guided devotions ---------- */
.pcard { align-content: start; grid-template-rows: auto; }
.pcard .gname { display: block; }
.pcard .gstat { color: var(--muted); font-weight: 500; margin-top: auto; }
.pcard.done .gstat { color: var(--good); font-weight: 700; }
.pcard.done { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.pcard.feat { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.prayedtoday { margin: 0; padding: 8px 12px; border-radius: var(--r); font-family: var(--font-ui); font-size: .95rem; justify-self: start; max-width: 100%;
  color: var(--fg); background: color-mix(in srgb, var(--good) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line)); }
.prayedtoday b { color: var(--good); }
.prayer .gbtns { margin-top: 6px; }
.beads .ghead .back { flex: 0 0 100%; text-align: left; }
.beads .morelink { justify-self: start; text-align: left; }
.stepwrap { scroll-margin-top: 76px; outline: none; }
.beadcard { overflow-wrap: anywhere; }
.beadcard .vr { display: grid; gap: 4px; }
.beadcard .vr p { margin: 0; font-size: 1.08rem; line-height: 1.5; padding-left: 1.7em; text-indent: -1.7em; }
.beadcard .vr abbr { font-family: var(--font-ui); font-size: .85rem; font-weight: 700; color: var(--rubric); text-decoration: none; display: inline-block; width: 1.7em; text-indent: 0; }
.beadcard .vr .resp { font-weight: 700; }
.beadcard .medit { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.6; }
.beadcard .say { margin: 4px 0 0; padding-left: 12px; border-left: 3px solid var(--gold); font-size: 1.12rem; font-style: italic; line-height: 1.5; }
.beadcard .ptext .eyebrow { margin-top: 6px; }
.beadcard .stref { display: flex; flex-wrap: wrap; gap: 8px; }
.beadcard.amen { justify-items: center; text-align: center; align-content: center; gap: 10px; padding-block: 28px;
  background: color-mix(in srgb, var(--gold) 7%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.beadcard.amen .gbtns { justify-content: center; }
.amenmark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-family: var(--font-ui); font-weight: 700;
  color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--line)); }

/* ---------- the daily habit: Start today, the streak, My pilgrimage ---------- */
a.ghost, a.qnext { display: inline-flex; align-items: center; text-decoration: none; }
a.ghost { color: var(--fg); }
.qnext.big { padding: 13px 28px; font-size: 1.15rem; min-height: 52px; }
.hub .eyebrow, .startcard .eyebrow, .ritual .eyebrow { color: color-mix(in srgb, var(--gold) 72%, var(--fg)); }
.startcard { display: grid; gap: 8px; justify-items: start; padding: 16px 18px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.startcard p { margin: 0; }
.startcard.done > b { font-family: var(--font-display); font-size: 1.4rem; }
.startcard .ghost, .startcard .qnext, .usccb { min-height: 40px; }
@media (max-width: 640px) { .startcard .qnext.big { justify-self: stretch; justify-content: center; } }
.usccb { justify-self: start; }
.flame { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); text-decoration: none; font-family: var(--font-ui); font-weight: 500; }
.flame .flico { flex: none; color: var(--muted); }
.flame.lit { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.flame.lit .flico { color: var(--gold); }
.gcards.one { grid-template-columns: minmax(0, 520px); }
.gcard.featured, .gm.feat { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.gcard.featured { padding: 18px; }
.hub a.ghost, .game .rback { min-height: 40px; }
.game .rback { justify-self: start; }

/* the steps: one screen at a time over the page, above the dock */
html.ritual-on { overflow: hidden; }
.ritual { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; justify-items: center; padding-top: env(safe-area-inset-top, 0px); }
.rit { width: min(100%, 620px); height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.rbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.rbar i { height: 4px; border-radius: 2px; background: var(--line); }
.rbar i.cur { background: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.rbar i.on { background: var(--gold); }
.rtop { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.rtop .eyebrow { flex: 1; }
.rtop .ghost { min-height: 40px; min-width: 44px; justify-content: center; }
.rcard { overflow-y: auto; overscroll-behavior: contain; min-height: 0; display: grid; gap: 12px; align-content: start; padding: 18px; background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--lit, var(--gold)); border-radius: var(--r); cursor: pointer; outline: none; }
.rcard h2 { margin: 0; font-size: 1.5rem; }
.rcard p, .rcard blockquote { margin: 0; }
.rcard blockquote { padding-left: 12px; border-left: 3px solid var(--gold); font-style: italic; }
.rcard .passage p { font-size: 1.08rem; line-height: 1.6; }
.rcard .ghost { min-height: 40px; }
.rcard .rprayer { font-size: 1.25rem; line-height: 1.5; }
.rok { color: var(--good); font-family: var(--font-ui); font-weight: 700; }
.rnav { display: flex; gap: 10px; }
.rnav .ghost, .rnav .qnext { min-height: 48px; }
.rnav .qnext { flex: 1; font-size: 1.1rem; }
.rdone { display: grid; gap: 10px; justify-items: center; align-content: center; text-align: center; min-height: 100%; cursor: default; }
.rdone .gbtns { justify-content: center; }
.rflame svg { width: 72px; height: 72px; color: var(--gold); }
.rlead { font-family: var(--font-display); font-size: 1.3rem; }
.rteaser { padding: 8px 14px; border-radius: 14px; background: var(--sunk); font-family: var(--font-ui); font-size: .95rem; }
.rnew { font-family: var(--font-ui); }

/* the three welcome screens */
.welcome .wclose { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.welcome h2 { padding-right: 34px; }
.welcome .ghost, .welcome .qnext, .welcome input { min-height: 40px; }
.wlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-family: var(--font-ui); }
.wlist li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.wdots { display: flex; gap: 6px; justify-content: center; }
.wdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.wdots i.on { background: var(--gold); }

/* My pilgrimage */
.flamebox { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.flamebox > .gfoot, .flamebox > .gbtns { grid-column: 1 / -1; margin: 0; }
.flamebox h2 { margin: 0; font-size: 1.25rem; }
.flamebox p { margin: 0; }
.flnum { display: grid; justify-items: center; color: var(--muted); }
.flamebox.lit .flnum { color: var(--gold); }
.flnum svg { width: 40px; height: 40px; }
.flnum b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--fg); }
.coll .ghost, .coll .qnext, .about .gbtns .ghost, .about .gbtns .qnext { min-height: 40px; }
.bookgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; max-width: 760px; }
.bk { display: grid; place-items: center; height: 34px; overflow: hidden; border-radius: 6px; border: 1px dashed var(--line); color: var(--muted); font-family: var(--font-ui); font-size: .72rem; }
.bk.on { border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--fg); font-weight: 700; }
.stamp { border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border-radius: 999px; padding: 3px 11px; font-family: var(--font-ui); font-size: .9rem; }
.stamp.off { border: 1px dashed var(--line); background: none; color: var(--muted); }
@media print { .ritual, .startcard, .welcome { display: none; } }
.gcard.featured .gstat { color: color-mix(in srgb, var(--gold) 72%, var(--fg)); }
.gcard.featured.done .gstat { color: var(--muted); }
.coll, .coll .tsec { grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* =====================================================================
   SHELL v2 — warm, calm, phone-first. Everything below overrides the older rules above.
   ===================================================================== */
html, body { background: var(--bg); }
body { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body::before { background: var(--bg); }
h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); letter-spacing: -.005em; }
h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.22rem; color: var(--fg); }
h3 { font-family: var(--font-ui); font-weight: 700; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.lede { color: var(--muted); font-size: 1.02rem; }
.qmeta { color: var(--muted); }
.gfoot { color: var(--muted); }
.eyebrow { color: var(--gold); letter-spacing: .09em; }
.gname { font-family: var(--font-body); font-weight: 800; }
a { text-underline-offset: 2px; }

/* buttons: one primary per screen, soft secondary, a small press on every tap */
.qnext { background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 10px 20px; min-height: 44px; font-family: var(--font-ui); font-size: 1rem;
  box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 2px 6px color-mix(in srgb, var(--primary) 28%, transparent); }
.ghost { background: var(--surface); border-color: var(--line); color: var(--fg); min-height: 40px; }
.ghost:hover { border-color: color-mix(in srgb, var(--lapis) 45%, var(--line)); }
button, a.qnext, a.ghost, .gcard, .chip, .bookbtn, .chapbtn, .contcard, .rowlink, .dock a, .tabs a {
  transition: transform .12s var(--ease), background-color .15s, border-color .15s, box-shadow .15s, opacity .15s; }
button:active:not(:disabled), a.qnext:active, a.ghost:active, .gcard:active, .chip:active, .bookbtn:active, .chapbtn:active, .contcard:active, .rowlink:active { transform: scale(.97); }
.chip { background: var(--surface); }

/* ---------- top bar: brand only on phones; brand + five tabs on wide screens ---------- */
.bar { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar-inner { min-height: var(--bar-h); padding-block: 6px; gap: 12px 24px; flex-wrap: nowrap; }
.brand { color: var(--gold); font-size: 1.12rem; letter-spacing: .01em; flex: none; }
.brand span { color: var(--fg); }
.tabs { margin-inline: auto; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--sunk) 70%, transparent); flex-wrap: nowrap; overflow: visible; order: 0; flex: 0 1 auto; }
.tabs a { position: relative; color: var(--muted); padding: 7px 16px; font-weight: 600; font-size: .95rem; }
.tabs a:hover { color: var(--fg); }
.tabs a.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); }
.tabs .newdot { position: absolute; top: 6px; right: 7px; }
.baracts { display: flex; align-items: center; gap: 8px; flex: none; min-width: 120px; justify-content: flex-end; }
.newdot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 1080px) and (min-width: 641px) { .bar-inner { flex-wrap: nowrap; } .tabs { order: 0; flex: 0 1 auto; overflow: visible; } .baracts { min-width: 0; } }
/* the streak, once there is one: a small chip in the corner that opens Me */
.flame { min-height: 36px; padding: 4px 12px 4px 8px; gap: 6px; border-color: var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.flame .flico { color: var(--faint); }
.flame.lit { border-color: color-mix(in srgb, var(--gold-bright) 55%, var(--line)); background: color-mix(in srgb, var(--gold-bright) 10%, var(--surface)); }
.flame.lit .flico { color: var(--gold-bright); }
.flame .fltxt { font-weight: 500; color: var(--muted); }
.baracts .flame .fltxt { display: none; }

/* ---------- page frame ---------- */
main { padding-top: var(--s5); padding-bottom: calc(var(--s7) + var(--dock-h)); }
.view { gap: var(--s4); }
.view.enter { animation: viewin .22s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot { display: none; }
body.show-foot .foot { display: block; padding-bottom: calc(var(--s5) + var(--dock-h)); }
body.show-foot main { padding-bottom: var(--s5); }
.hub, .today, .game, .journey, .reader, .me { gap: var(--s4); }
.today { max-width: 680px; }
.hub { max-width: 980px; }
.loading { padding: var(--s4) 0; }
.skel { display: grid; gap: 10px; padding: var(--s4) 0; }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--sunk), color-mix(in srgb, var(--sunk) 40%, var(--surface)), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel i:nth-child(3n) { width: 78%; } .skel i:nth-child(4n) { width: 92%; } .skel .tall { height: 180px; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- phone: bottom dock, slim header ---------- */
.dock { display: none; }
@media (max-width: 640px) {
  :root { --bar-h: 50px; }
  .tabs { display: none; }
  .bar-inner { padding-block: 4px; justify-content: space-between; }
  .brand { font-size: 1.05rem; }
  .baracts { min-width: 0; }
  main { padding-top: var(--s4); }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: var(--dock-h);
    background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    padding: 6px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px)); }
  .dock a { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 2px 0 0; text-decoration: none; color: var(--faint);
    font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .01em; border-radius: 12px; }
  .dock .dico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background-color .2s; }
  .dock svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dock .newdot { position: absolute; top: 1px; right: 11px; }
  .dock a.on { color: var(--lapis); }
  .dock a.on .dico { background: color-mix(in srgb, var(--lapis) 13%, transparent); }
  .dock a.on .fillme { fill: currentColor; fill-opacity: .22; }
  .dock a:active .dico { transform: scale(.92); }
  /* inside a game the board gets the whole screen between the status bar and the dock; the game draws its own back */
  body.in-game .bar { display: none; }
  body.in-game main { padding-top: max(var(--s3), env(safe-area-inset-top, 0px)); }
  .map-wrap { height: calc(100dvh - var(--bar-h) - var(--dock-h) - 190px); min-height: 320px; }
}
@media (max-width: 380px) { .dock .dico { width: 46px; } }

/* ---------- the shared head of the Bible tab: sub-tabs and the people search ---------- */
.biblehead { display: grid; gap: var(--s3); max-width: 1180px; margin-bottom: var(--s4); }
.biblehead:not([hidden]) + .view { margin-top: 0; }
.subnav { gap: 2px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 12px; font-weight: 600; color: var(--muted); }
.subnav a.on { color: var(--fg); border-bottom-color: var(--gold-bright); }
.search { position: relative; margin: 0; max-width: 520px; flex: none; display: block; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lapis) 18%, transparent); }
.qres { border-radius: var(--r); box-shadow: var(--shadow-2); }
.qres button { padding: 10px 14px; }
.people-tools input, .people-tools select, .canon-tools select { background: var(--surface); padding: 9px 14px; }
.plist button { border-radius: var(--r-sm); background: var(--surface); }
.map-wrap, .canon-scroll { border-radius: var(--r); background: var(--surface); }

/* ---------- person panel / sheet ---------- */
.panel { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); padding-bottom: calc(var(--s7) + env(safe-area-inset-bottom, 0px)); }
.panel:not([hidden]) { animation: sheetin-r .26s var(--ease); }
@keyframes sheetin-r { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .panel { top: 8vh; border-radius: 20px 20px 0 0; z-index: 45; }
  .panel:not([hidden]) { animation: sheetin-b .3s var(--ease); }
  .panel::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 10px; }
}
@keyframes sheetin-b { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.close { background: var(--sunk); border: 0; color: var(--fg); }
.p-name { font-family: var(--font-body); font-weight: 800; }
.feast { display: block; width: fit-content; max-width: 100%; border-radius: var(--r-sm); }
.sheetart { margin: 0 0 var(--s4); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sunk); }
.sheetart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet h2 { font-size: 1.6rem; margin: 4px 0 8px; }
.sheet .ptext p { font-size: 1.12rem; }
.sheet p { margin: 0 0 10px; }

/* ---------- sacred art ---------- */
.art { position: relative; overflow: hidden; background: var(--sunk); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.art img.in { opacity: 1; }
.art figcaption, .artcap { position: absolute; right: 8px; bottom: 8px; max-width: 70%; padding: 2px 8px; border-radius: 999px; font-family: var(--font-ui); font-size: .68rem; line-height: 1.4;
  color: #fff; background: rgb(0 0 0 / .42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.art figcaption:has(.artabout) { padding: 0; z-index: 1; }
.artabout { display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 2px 5px 2px 10px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.artabout span { overflow: hidden; text-overflow: ellipsis; }
.artabout i { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgb(255 255 255 / .9); color: #222; font: italic 700 .66rem/1 Georgia, serif; }
.artabout:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.aboutart .artwhole { margin: 0 0 var(--s4); border-radius: var(--r); overflow: hidden; background: var(--sunk); display: grid; place-items: center; }
.aboutart .artwhole img { display: block; max-width: 100%; max-height: min(56vh, 520px); width: auto; height: auto; }
.aboutart .byline { color: var(--muted); font-family: var(--font-ui); font-size: .95rem; }
.aboutart .gfoot a { white-space: nowrap; }

/* ---------- Today ---------- */
.hero { position: relative; display: grid; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.hero .art { aspect-ratio: 16 / 10; }
.hero .art img { object-position: 50% 30%; }
.hero .art::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgb(0 0 0 / .28), transparent); pointer-events: none; }
.hero .band { height: 6px; background: var(--lit); }
.hero .htext { display: grid; gap: 4px; padding: var(--s4) var(--s4) var(--s4); background: linear-gradient(to bottom, color-mix(in srgb, var(--lit) 9%, var(--surface)), var(--surface)); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem); line-height: 1.1; }
.hero .season { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-ui); font-size: .92rem; flex-wrap: wrap; }
.hero .lcol { width: 10px; height: 10px; border-radius: 50%; background: var(--lit); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lit) 25%, transparent); flex: none; }
.hero .also { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.hero .hflame { position: absolute; top: 10px; right: 10px; z-index: 2; }
.hero .hflame .flame { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .hflame .fltxt { display: none; }

.startcard { gap: var(--s3); padding: var(--s4); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); justify-items: stretch; }
.startcard .qnext.big { justify-self: stretch; justify-content: center; font-size: 1.15rem; min-height: 56px; }
.startcard .sub { color: var(--muted); font-family: var(--font-ui); font-size: .95rem; text-align: center; margin: 0; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps4 li { display: grid; justify-items: center; gap: 4px; font-family: var(--font-ui); font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; }
.steps4 .sic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); position: relative; }
.steps4 .sic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps4 li.done .sic { background: color-mix(in srgb, var(--gold-bright) 22%, var(--surface)); color: var(--gold); }
.steps4 li.done .sic::after { content: "✓"; position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good); color: #fff; font-size: .6rem; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.steps4 li.next .sic { background: color-mix(in srgb, var(--lapis) 14%, var(--surface)); color: var(--lapis); }
.startcard.done { background: linear-gradient(160deg, color-mix(in srgb, var(--gold-bright) 12%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--gold-bright) 40%, var(--line)); }
.startcard.done .dtop { display: flex; gap: 14px; align-items: center; }
.startcard.done .dflame { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold-bright) 20%, var(--surface)); color: var(--gold-bright); }
.startcard.done .dflame svg { width: 30px; height: 30px; }
.startcard.done b.big { font-family: var(--font-display); font-size: 1.45rem; display: block; line-height: 1.1; }
.startcard.done .teaser { padding: 8px 12px; border-radius: var(--r-sm); background: var(--sunk); font-family: var(--font-ui); font-size: .92rem; color: var(--muted); }

.tcard { display: grid; gap: var(--s2); padding: var(--s4); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.tcard > .eyebrow { margin: 0; }
.featgame { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; text-align: left; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--fg); }
.featgame .gbadge, .gdot .gbadge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--gc, var(--lapis)) 16%, var(--surface)); color: var(--gc, var(--lapis)); }
.featgame .gbadge .gico, .gdot .gbadge .gico { width: 32px; height: 32px; padding: 0; background: none; color: inherit; }
.featgame b { font-family: var(--font-body); font-weight: 800; font-size: 1.25rem; display: block; }
.featgame .gd { color: var(--muted); font-size: .98rem; line-height: 1.35; display: block; }
.featgame .playpill { padding: 8px 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-family: var(--font-ui); font-weight: 700; font-size: .95rem; }
.featgame .playpill.done { background: color-mix(in srgb, var(--good) 15%, var(--surface)); color: var(--good); }
.gdots { display: flex; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s3); margin-top: var(--s1); border-top: 1px solid var(--line); align-items: center; }
.gdots .lbl { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); flex: 1 1 100%; }
.gdot { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; flex: 1 1 140px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--fg); font-family: var(--font-ui); font-weight: 600; }
.gdot .gbadge { width: 40px; height: 40px; border-radius: 12px; position: relative; }
.gdot .gbadge .gico { width: 24px; height: 24px; }
.gdot.done .gbadge::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; font-size: .6rem; box-shadow: 0 0 0 2px var(--surface); }
.gdot small { display: block; color: var(--muted); font-weight: 500; }

.saintline { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; color: var(--fg); }
.portrait { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--lit) 18%, var(--surface));
  color: var(--lit); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--gold-bright) 60%, transparent); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.saintline b { font-family: var(--font-body); font-weight: 800; font-size: 1.18rem; display: block; line-height: 1.2; }
.saintline .one { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; margin-top: 2px; }
.saintline .more, .rowlink .more { color: var(--lapis); font-family: var(--font-ui); font-weight: 700; font-size: .9rem; white-space: nowrap; }

.readrow { padding: 0; overflow: hidden; }
.readrow > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: var(--s4); }
.readrow > summary::-webkit-details-marker { display: none; }
.readrow .ricon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--lapis) 12%, var(--surface)); color: var(--lapis); }
.readrow .ricon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.readrow .rl b { display: block; font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; }
.readrow .rl span { color: var(--muted); font-family: var(--font-ui); font-size: .9rem; }
.readrow .chev { color: var(--faint); font-size: 1.4rem; transition: transform .2s; }
.readrow[open] .chev { transform: rotate(90deg); }
.readrow .rbody { display: grid; gap: var(--s3); padding: 0 var(--s4) var(--s4); }
.reading { border-radius: var(--r-sm); background: var(--bg); border-color: var(--line); }
.reading summary .eyebrow { display: inline; }

.moretoday { display: grid; gap: 0; padding: 4px 0; }
.moretoday > h2 { padding: var(--s3) var(--s4) 4px; font-size: 1.05rem; }
.rowlink { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px var(--s4); border: 0; border-top: 1px solid var(--line); background: none; width: 100%;
  text-align: left; cursor: pointer; color: var(--fg); text-decoration: none; font: inherit; }
.moretoday > h2 + .rowlink { border-top: 0; }
.rowlink .ricon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); color: var(--gold); }
.rowlink .ricon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rowlink b { display: block; font-weight: 700; font-family: var(--font-body); }
.rowlink span.s { display: block; color: var(--muted); font-family: var(--font-ui); font-size: .88rem; line-height: 1.35; }
.rowlink .chev { color: var(--faint); font-size: 1.3rem; }
.moretoday .remindbox { padding: 12px var(--s4); border-top: 1px solid var(--line); }
.moretoday .remindbox h2 { font-size: 1rem; }

/* ---------- the welcome: one full screen, three steps, shown once ---------- */
html.welcome-on { overflow: hidden; }
.welcomex { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.welcomex .wart { position: relative; min-height: 0; }
.welcomex .wart .art { position: absolute; inset: 0; }
.welcomex .wart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--bg)); }
.welcomex .wpane { display: grid; gap: var(--s3); padding: 0 max(var(--s5), env(safe-area-inset-left, 0px)) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); width: min(100%, 560px); justify-self: center; margin-top: -40px; position: relative; z-index: 1; }
.welcomex .brandmark { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.welcomex h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.4rem); line-height: 1.08; }
.welcomex p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.welcomex .wlist { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fg); }
.welcomex .langpick { display: flex; gap: 8px; }
.welcomex .langpick button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.welcomex .langpick button.on { border-color: var(--lapis); background: color-mix(in srgb, var(--lapis) 12%, var(--surface)); color: var(--lapis); box-shadow: 0 0 0 1px var(--lapis) inset; }
.welcomex .wnav { display: flex; gap: 10px; align-items: center; }
.welcomex .wnav .qnext { flex: 1; justify-content: center; min-height: 52px; font-size: 1.1rem; }
.welcomex .wnav .ghost { min-height: 52px; }
.welcomex .wdots { justify-content: flex-start; }
.welcomex .findform input { width: auto; }
.welcomex .wpane > * { animation: viewin .35s var(--ease) both; }
@media (min-width: 900px) {
  .welcomex { grid-template-rows: none; grid-template-columns: 1.1fr 1fr; }
  .welcomex .wart::after { background: linear-gradient(to right, transparent 60%, var(--bg)); }
  .welcomex .wpane { align-self: center; margin-top: 0; padding: var(--s6); }
}

/* ---------- Start today steps ---------- */
.ritual { background: var(--bg); }
.rcard { border-radius: 18px; border-top-width: 5px; box-shadow: var(--shadow-1); padding: 0; gap: 0; }
.rcard > .rin { display: grid; gap: 12px; align-content: start; padding: 18px; }
.rcard .rart { aspect-ratio: 16 / 9; flex: none; }
.rcard .rart.tall { aspect-ratio: 4 / 3; }
.rcard h2 { font-family: var(--font-body); font-weight: 800; }
.rdone { padding: 18px; }
.rflame svg { animation: flick 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.04, .98) rotate(-1.5deg); } 60% { transform: scale(.98, 1.03) rotate(1deg); } }
.rnum { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- Pray ---------- */
.gcards.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s3); }
.pcard { padding: 0; overflow: hidden; border-radius: 16px; gap: 0; box-shadow: var(--shadow-1); grid-template-rows: auto 1fr; }
.pcard .art { aspect-ratio: 16 / 9; }
.pcard .pin { display: grid; gap: 4px; padding: 12px 14px 14px; align-content: start; }
.pcard .gname { font-size: 1.12rem; }
.pcard .gdesc { font-size: .97rem; line-height: 1.35; }
.pcard .gstat { margin-top: 4px; }
.pcard.feat { border-color: color-mix(in srgb, var(--gold-bright) 55%, var(--line)); }
.gcard { border-radius: 16px; background: var(--surface); }
.gcard:hover { border-color: color-mix(in srgb, var(--lapis) 35%, var(--line)); }
.praychips { display: flex; flex-wrap: wrap; gap: 8px; }
.praychips .chip { padding: 7px 14px; font-family: var(--font-body); font-size: 1rem; border-color: var(--line); }
.praychips .chip:hover { border-color: var(--lapis); color: var(--fg); }
.librow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0 var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.librow .rowlink { border-top: 1px solid var(--line); }
@media (min-width: 641px) { .librow .rowlink:nth-child(-n+3) { border-top: 0; } }
@media (max-width: 640px) { .librow .rowlink:first-child { border-top: 0; } .librow { gap: 0; } }
.beadcard { border-radius: 16px; box-shadow: var(--shadow-1); }
.beadcard .mart { margin: -18px -20px 6px; aspect-ratio: 16 / 9; border-radius: 16px 16px 0 0; }
.beadcard h2 { font-family: var(--font-body); font-weight: 800; }

/* ---------- Me ---------- */
.me { max-width: 760px; display: grid; gap: var(--s4); }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: var(--s5) var(--s4); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.profile .bigflame { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: color-mix(in srgb, var(--gold-bright) 14%, var(--surface)); color: var(--gold-bright); grid-row: span 2; }
.profile .bigflame svg { width: 30px; height: 30px; }
.profile .bigflame b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.profile.lit .bigflame { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-bright) 50%, transparent); }
.profile h1 { font-size: 1.45rem; }
.profile .ptag { color: var(--muted); margin: 0; font-family: var(--font-ui); }
.profile .counters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--s3); }
.profile .counters div { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--bg); }
.profile .counters b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.profile .counters span { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); }
.profile .gbtns { grid-column: 1 / -1; }
.profile .gfoot { grid-column: 1 / -1; margin: 0; }
.monthcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 360px; }
.monthcal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-ui); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.monthcal .h { aspect-ratio: auto; font-weight: 700; font-size: .7rem; color: var(--faint); }
.monthcal .k { background: var(--gold-bright); color: #1f1b16; font-weight: 700; }
.monthcal .t { box-shadow: 0 0 0 2px var(--lapis) inset; color: var(--fg); }
.monthcal .gr { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-bright) 75%, transparent) inset; background: color-mix(in srgb, var(--gold-bright) 10%, transparent); color: var(--fg); outline: 1.5px dashed color-mix(in srgb, var(--gold-bright) 70%, transparent); outline-offset: -6px; }
.monthcal .gr.t { box-shadow: 0 0 0 2px var(--lapis) inset; }
.callegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: var(--s3) 0 0; font-family: var(--font-ui); font-size: .82rem; color: var(--muted); }
.callegend span { display: inline-flex; align-items: center; gap: 6px; }
.callegend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.callegend i.k { background: var(--gold-bright); }
.callegend i.gr { border: 1.5px dashed var(--gold-bright); background: color-mix(in srgb, var(--gold-bright) 10%, transparent); }
.profile .gracebox { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s3); padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold-bright) 8%, var(--bg)); border: 1px dashed color-mix(in srgb, var(--gold-bright) 45%, transparent); font-family: var(--font-ui); }
.profile .gracebox .grico { color: var(--gold-bright); flex: none; margin-top: 1px; }
.profile .gracebox b { display: block; font-size: .98rem; }
.profile .gracebox span span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.grace-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-family: var(--font-ui); font-size: .92rem; color: var(--muted); }
.grace-note svg { color: var(--gold-bright); flex: none; }
.saintgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; }
.saintgrid .sg { display: grid; justify-items: center; gap: 6px; text-align: center; font-family: var(--font-ui); font-size: .8rem; line-height: 1.2; color: var(--fg); }
.saintgrid .portrait { width: 60px; height: 60px; font-size: 1.4rem; }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 8px; }
.medal { display: grid; justify-items: center; gap: 6px; text-align: center; font-family: var(--font-ui); font-size: .78rem; color: var(--muted); line-height: 1.25; }
.medal i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.4rem; background: var(--sunk); color: var(--faint); border: 2px dashed var(--line); }
.medal.got i { background: radial-gradient(circle at 35% 30%, #f6dfa0, var(--gold-bright) 60%, #9a7420); color: #3d2a05; border: 2px solid color-mix(in srgb, var(--gold-bright) 60%, #fff); box-shadow: var(--shadow-1); }
.medal b { color: var(--fg); font-size: .85rem; }
.settings { padding: 0; overflow: hidden; }
.settings > h2 { padding: var(--s4) var(--s4) 4px; }
.setrow { display: grid; gap: 8px; padding: 14px var(--s4); border-top: 1px solid var(--line); }
.settings > h2 + .setrow { border-top: 0; }
.setrow > .sl { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.setrow b { font-family: var(--font-body); font-weight: 700; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sunk); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); min-height: 36px; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); }
.settings .rowlink { border-top: 1px solid var(--line); }
.empty { padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); color: var(--muted); font-family: var(--font-ui); font-size: .95rem; margin: 0; }
.bookgrid .bk { border-radius: 8px; }

/* ---------- the Bible reader ---------- */
.reader { max-width: 720px; display: grid; gap: var(--s4); }
.reader .ghead { align-items: center; }
.contcard { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--fg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--lapis) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.contcard .eyebrow { grid-column: 1; }
.contcard b { grid-column: 1; font-family: var(--font-body); font-weight: 800; font-size: 1.2rem; }
.contcard .chev { grid-column: 2; grid-row: 1 / span 2; color: var(--lapis); font-size: 1.6rem; }
.startread { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.secname { margin: var(--s3) 0 var(--s2); }
.bookbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 8px; }
.bookbtn { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookbtn:hover, .chapbtn:hover { border-color: var(--lapis); }
.chapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.chapbtn { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg);
  font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.chapbtn.on { border-color: var(--lapis); color: var(--lapis); box-shadow: 0 0 0 1px var(--lapis) inset; }
.chtitle { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); }
.chtitle span { color: var(--gold); }
.chtext { font-size: 1.18rem; line-height: 1.75; max-width: 64ch; }
.chtext sup { font-family: var(--font-ui); font-size: .62em; font-weight: 700; color: var(--gold); margin-right: 3px; vertical-align: .55em; }
.chhead { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.chnav { display: flex; justify-content: space-between; gap: 10px; padding-top: var(--s4); border-top: 1px solid var(--line); }
.chnav .qnext, .chnav .ghost { min-height: 48px; }

/* ---------- small things ---------- */
.ghead { align-items: center; }
.ghead .back { font-size: 1rem; text-decoration: none; }
a.back { display: inline-flex; align-items: center; min-height: 40px; }
.tsec { gap: var(--s3); }
.saint { border-radius: var(--r); }
.promises li { border-radius: var(--r); }
.badge-today, .badge-likely { border-radius: 999px; }
.church, .facts > div, .checklist label, .step details, .tipbox, .qcard { border-radius: var(--r); }
@media (min-width: 900px) { .today { gap: var(--s5); } }
@media (max-width: 640px) {
  main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { border-radius: 18px; margin-inline: -4px; }
  .profile { padding: var(--s4); }
}
@media print { .dock, .biblehead { display: none !important; } }
.hero p { margin: 0; }
.findform input[type="time"] { width: auto; min-width: 8.5ch; letter-spacing: 0; }
h1, h2, .hero h1, .rnum, .profile b, .counters b, .chtitle, .startcard b.big { font-variant-numeric: lining-nums; }
body.on-me .footlinks { display: none; }
.subnav a { padding: 8px 11px; }
.prayhome { margin-top: 0; }
.tcol { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
@media (min-width: 1000px) {
  .today { max-width: 1120px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
  .today > .tcol:first-child { position: sticky; top: calc(var(--bar-h) + var(--s4)); }
  .today .hero .art { aspect-ratio: auto; height: min(42vh, 380px); }
}
.tcard, .me, .profile > div, .reader, .hub, .today .tcol { min-width: 0; }
.tcard { grid-template-columns: minmax(0, 1fr); }
.bk { position: relative; }
body.reading-ch .biblehead .search { display: none; }
.reader.chapter .ghead { margin-bottom: -8px; }
.welcomex .wart { background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--gold-bright) 28%, var(--bg)), var(--bg) 70%); }
.art.noart img { display: none; }
.profile .bigflame b, .profile .counters b, .rnum { font-family: var(--font-ui); font-weight: 800; letter-spacing: -.01em; }
.setrow p:empty { display: none; }
.setrow h2 { font-size: 1.05rem; }
@media (max-width: 640px) {
  .prayhome .gcards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prayhome .pcard .gdesc { display: none; }
  .prayhome .pcard .pin { padding: 10px 12px 12px; }
  .prayhome .pcard .gname { font-size: 1.02rem; line-height: 1.2; }
  .prayhome .pcard .art { aspect-ratio: 4 / 3; }
}
.pcard:not(:has(.art)) .pin { padding-top: 14px; }
.rcard { display: block; }
.rcard > .rart { display: block; width: 100%; }
.rcard > .rdone { min-height: 100%; }
.me, .reader, .biblehead { margin-inline: auto; width: 100%; }
.reader, .biblehead { max-width: 980px; }
.reader.chapter { max-width: 760px; }
.profile .bigflame svg:only-child { width: 40px; height: 40px; }
@media (min-width: 1000px) {
  .me { display: block; max-width: 1080px; columns: 2; column-gap: var(--s5); }
  .me > * { break-inside: avoid; margin-bottom: var(--s4); }
  .me > .profile, .me > .settings { column-span: none; }
  .bookbtns { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.crumb { max-width: 1180px; margin: calc(-1 * var(--s3)) auto var(--s1); }
.crumb .back { font-size: 1rem; }
.gcard .gdesc { font-size: .98rem; line-height: 1.4; }
body.on-today .baracts .flame { visibility: hidden; }
.rgame { display: grid; justify-items: center; text-align: center; gap: 10px; padding: var(--s5) 0 var(--s3); }
.rgame .gbadge { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 16%, var(--surface)); color: var(--gc); }
.rgame .gbadge .gico { width: 56px; height: 56px; padding: 0; background: none; color: inherit; }
.rgame p { color: var(--muted); max-width: 34ch; }
.rin #rplay { justify-self: center; min-width: 200px; justify-content: center; }
.rin .rok { text-align: center; }
.rin:has(.rgame) > .qmeta { text-align: center; }
.promises b { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; }
.promises li { border-left-width: 3px; box-shadow: var(--shadow-1); }
.saint b, .potd b, .badge b, .welcome h2 { font-family: var(--font-body); font-weight: 800; }
main > .view, .biblehead, .crumb { max-width: 1080px; margin-inline: auto; width: 100%; }
main > #view-map, main > #view-canon { max-width: 1180px; }
.hub { margin-inline: auto; width: 100%; }
.librow { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 641px) { .librow .rowlink:nth-child(-n+3) { border-top: 1px solid var(--line); } .librow .rowlink:nth-child(-n+3):is(:nth-child(-n+3)) { border-top: 0; } }
.welcomex figcaption { display: none; }
a.stamp { text-decoration: none; color: var(--fg); }
.allbooks summary { cursor: pointer; margin: 4px 0 8px; }
