/* הילולות הצדיקים — the Android app's Material 3 palette — תכלת (ui/Theme.kt), light and dark. */
:root {
  --primary: #1F6F9F;
  --on-primary: #FFFFFF;
  --primary-container: #DCEBF5;
  --on-primary-container: #0E3A5C;
  --secondary: #4F6A7E;
  --on-secondary: #FFFFFF;
  --secondary-container: #E3EAF0;
  --on-secondary-container: #1F2F3C;
  --background: #F6F9FC;
  --on-background: #13293D;
  --surface: #FFFFFF;
  --on-surface: #13293D;
  --surface-variant: #E8EFF5;
  --on-surface-variant: #41566A;
  --outline-variant: #D5E3EE;
  --hero: #0E3A5C;
  --on-hero: #FFFFFF;
  --scrim: rgba(0, 0, 0, .32);
  --bar-h: 80px;
  --top-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8EC3E6;
    --on-primary: #06283F;
    --primary-container: #17415F;
    --on-primary-container: #DCEBF5;
    --secondary: #A9BFCF;
    --on-secondary: #1A2C3A;
    --secondary-container: #2A3F50;
    --on-secondary-container: #E3EAF0;
    --background: #0C131B;
    --on-background: #E3EBF2;
    --surface: #141D27;
    --on-surface: #E3EBF2;
    --surface-variant: #1E2935;
    --on-surface-variant: #B9C7D3;
    --outline-variant: #2C3B49;
    --hero: #1B5A86;
  --on-hero: #FFFFFF;
  --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

@font-face {
  font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/frank-ruhl-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
:root { --serif: "Frank Ruhl Libre", "Times New Roman", serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--background); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--on-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-size: 15px;
  line-height: 22px;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg.i { width: 24px; height: 24px; fill: currentColor; flex: none; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.boot { padding: 40vh 16px 0; text-align: center; opacity: .6; }

/* ---------- top app bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  min-height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) calc(4px + var(--safe-r)) 0 calc(4px + var(--safe-l));
  background: var(--background);
}
.topbar h1 {
  font-family: var(--serif); font-weight: 700;
  flex: 1; margin: 0 12px; font-size: 22px; line-height: 28px;
  color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar.plain h1 { color: var(--on-background); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-surface-variant);
}
.icon-btn:active { background: color-mix(in srgb, var(--on-background) 10%, transparent); }

/* ---------- page body ---------- */
main.page {
  padding: 16px calc(16px + var(--safe-r)) 24px calc(16px + var(--safe-l));
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.with-bar main.page { padding-bottom: calc(var(--bar-h) + var(--safe-b) + 24px); }

/* ---------- bottom navigation ---------- */
nav.bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around;
  height: calc(var(--bar-h) + var(--safe-b));
  padding: 12px var(--safe-r) var(--safe-b) var(--safe-l);
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--outline-variant);
}
nav.bottom button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--on-surface-variant);
  max-width: 160px;
}
nav.bottom .pill {
  width: 64px; height: 32px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
nav.bottom button[aria-current="page"] { color: var(--on-surface); font-weight: 700; }
nav.bottom button[aria-current="page"] .pill { background: var(--secondary-container); color: var(--on-secondary-container); }

/* ---------- typography (Theme.kt AppTypography) ---------- */
.display-small, .headline-medium, .title-large { font-family: var(--serif); }
.display-small { font-size: 34px; line-height: 42px; font-weight: 700; }
.headline-medium { font-size: 26px; line-height: 34px; font-weight: 700; }
.title-large { font-size: 21px; line-height: 28px; font-weight: 600; }
.title-medium { font-size: 17px; line-height: 24px; font-weight: 600; }
.body-large { font-size: 17px; line-height: 26px; }
.body-medium { font-size: 15px; line-height: 22px; }
.label-large { font-size: 14px; font-weight: 500; line-height: 20px; }
.c-primary { color: var(--primary); }
.c-secondary { color: var(--secondary); }

/* ---------- Today ---------- */
.date-card {
  background: var(--hero); color: var(--on-hero);
  border-radius: 20px; padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.date-card .weekday { opacity: .75; }
.date-card .hdate { margin-top: 6px; font-size: 38px; line-height: 46px; }
.date-card .hyear { opacity: .8; }
.date-card .civil { margin-top: 8px; opacity: .7; }
.chips { margin-top: 9px; display: flex; flex-direction: column; align-items: center; }
.chip {
  background: var(--secondary-container); color: var(--on-secondary-container);
  border-radius: 999px; padding: 6px 14px; margin: 3px 0;
}
.day-nav { display: flex; justify-content: space-between; align-items: center; }
.text-btn {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 40px; padding: 0 12px; border-radius: 20px;
  color: var(--primary); font-size: 14px; font-weight: 500;
}
.text-btn:active { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.list-head { margin: 6px 0 2px; color: var(--secondary); }
.row {
  display: flex; align-items: center; width: 100%; text-align: start;
  background: var(--surface); color: var(--on-surface);
  border-radius: 12px; padding: 12px 14px; gap: 12px;
  text-decoration: none;
}
.row:active { filter: brightness(.96); }
.row .dot { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 55%, transparent); flex: none; }
.row .grow { flex: 1; min-width: 0; }
.row .chev { width: 20px; height: 20px; opacity: .35; }
.row .strong { font-weight: 600; }
.disclaimer { margin-top: 14px; opacity: .5; }

/* advanced sections */
.section { background: var(--surface); color: var(--on-surface); border-radius: 14px; overflow: hidden; }
.section > button {
  display: flex; align-items: center; width: 100%; padding: 13px 14px; text-align: start; gap: 0;
}
.section .s-title { color: var(--primary); white-space: nowrap; }
.section .s-preview {
  flex: 1; min-width: 0; padding: 0 8px; text-align: left;
  opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section .s-arrow { width: 22px; height: 22px; opacity: .45; }
.section .s-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.section hr { border: 0; border-top: 1px solid var(--outline-variant); margin: 0; }
.item-head { display: flex; align-items: flex-start; gap: 8px; }
.item-head .t { flex: 1; font-weight: 500; }
.tag {
  background: var(--secondary-container); color: var(--on-secondary-container);
  border-radius: 999px; padding: 3px 9px; flex: none;
}
.item .detail { margin-top: 4px; opacity: .78; }
.item .link { margin-top: 6px; color: var(--primary); text-decoration: underline; display: inline-block; }
.item .source { margin-top: 5px; color: var(--secondary); }

/* ---------- Calendar ---------- */
.month-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px calc(8px + var(--safe-r)) 4px calc(8px + var(--safe-l));
  max-width: 720px; margin: 0 auto;
}
.month-head .center { text-align: center; }
.month-head .year { opacity: .6; }
.cal main.page { gap: 8px; padding-top: 8px; }
.row.today { background: var(--primary-container); }
.day-circle {
  width: 40px; height: 40px; margin: 2px; border-radius: 50%; flex: none;
  background: var(--secondary-container); color: var(--on-secondary-container);
  display: flex; align-items: center; justify-content: center;
}
.row .preview { opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { color: var(--secondary); }

/* ---------- Search ---------- */
.search-box {
  position: relative; margin: 8px calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l));
  max-width: 688px;
}
@media (min-width: 720px) { .search-box { margin-inline: auto; } }
.search-box input {
  width: 100%; height: 56px; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--on-background) 40%, transparent);
  background: transparent; padding: 0 48px; font-size: 17px;  /* >= 16px: no iOS zoom */
  -webkit-appearance: none; appearance: none; outline: none;
}
.search-box input:focus { border: 2px solid var(--primary); padding: 0 47px; }
.search-box .lead { position: absolute; top: 16px; right: 12px; opacity: .7; pointer-events: none; }
.search-box .clear { position: absolute; top: 4px; left: 4px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.hint { padding: 4px calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l)); opacity: .6; max-width: 720px; margin: 0 auto; }
.search main.page { gap: 8px; padding-top: 8px; }

/* ---------- Tzadik ---------- */
.tz-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.portrait {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--secondary-container); color: color-mix(in srgb, var(--on-secondary-container) 65%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card { background: var(--surface); color: var(--on-surface); border-radius: 14px; padding: 16px; }
.card .dates { margin-top: 10px; opacity: .7; }
.card.variant { background: var(--surface-variant); }
.card.variant .body-medium { color: var(--on-surface-variant); margin-top: 6px; }
.verify { display: flex; align-items: center; gap: 6px; }
.verify svg { width: 18px; height: 18px; }
.verify span { opacity: .7; }
.buttons { display: flex; flex-direction: column; gap: 8px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: 22px; padding: 0 24px; width: 100%;
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn.outlined { border: 1px solid color-mix(in srgb, var(--on-background) 35%, transparent); color: var(--primary); }
.btn svg { width: 18px; height: 18px; }
.credits { border-top: 1px solid var(--outline-variant); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.credits p { margin: 0; opacity: .55; }
.credits button { text-align: start; text-decoration: underline; opacity: .55; }

/* dialog */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: var(--scrim);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.dialog {
  background: var(--surface); color: var(--on-surface); border-radius: 28px;
  padding: 24px; width: 100%; max-width: 420px; max-height: 85vh; overflow: auto;
}
.dialog h2 { margin: 0 0 16px; font-size: 24px; line-height: 32px; font-weight: 400; }
.dialog .lines { display: flex; flex-direction: column; gap: 6px; }
.dialog .lines p { margin: 0; overflow-wrap: anywhere; }
.dialog .small { font-size: 13px; opacity: .7; }
.dialog .actions { display: flex; justify-content: flex-end; margin-top: 20px; }

/* ---------- Text (psalm) ---------- */
.text-page main.page { padding-inline: calc(18px + var(--safe-r)) calc(18px + var(--safe-l)); }
.subtitle { text-align: center; color: var(--secondary); padding-bottom: 4px; border-bottom: 1px solid var(--outline-variant); }
.verse { display: flex; align-items: flex-start; }
.verse .n { width: 22px; flex: none; padding-top: 8px; font-size: 11px; line-height: 16px; opacity: .35; }
.verse .v { flex: 1; font-size: 20px; line-height: 34px; }
.text-source { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--outline-variant); font-size: 12px; line-height: 16px; opacity: .5; }

/* ---------- Settings ---------- */
.setting {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  background: var(--surface); color: var(--on-surface); border-radius: 12px; padding: 12px 14px;
}
.setting .sub { opacity: .6; }
.setting.rowpad { padding-block: 16px; }
.setting select {
  font-size: 17px; font-weight: 600; color: var(--secondary); background: transparent;
  border: 0; text-align: left; -webkit-appearance: none; appearance: none; padding: 4px 0 4px 18px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: 6px 55%, 0 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.setting select option { color: var(--on-surface); background: var(--surface); }
.divider { border: 0; border-top: 1px solid var(--outline-variant); margin: 6px 0; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 16px;
  background: var(--surface-variant); border: 2px solid color-mix(in srgb, var(--on-surface) 50%, transparent);
  transition: background-color .15s;
}
.switch .thumb {
  position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--on-surface) 50%, transparent);
  transition: right .15s, width .15s, height .15s, top .15s;
}
.switch input:checked ~ .track { background: var(--primary); border-color: var(--primary); }
.switch input:checked ~ .thumb { right: 24px; top: 4px; width: 24px; height: 24px; background: var(--on-primary); }
.switch input:focus-visible ~ .track { outline: 2px solid var(--primary); outline-offset: 2px; }
.note { background: var(--surface-variant); color: var(--on-surface-variant); border-radius: 12px; padding: 12px 14px; }
.note .title-medium { color: var(--on-surface); }
.note p { margin: 4px 0 0; }
.about { padding: 8px 4px 0; }
.about p { margin: 4px 0 0; opacity: .7; }

.setting .grow { flex: 1; min-width: 0; }

/* ---------- install prompt (js/install.js) ---------- */
.ins-sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  margin-inline: auto; max-width: 560px;
  background: var(--surface); color: var(--on-surface);
  border-radius: 24px 24px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .22);
  border: 1px solid var(--outline-variant); border-bottom: 0;
  padding: 18px calc(20px + var(--safe-r)) calc(14px + var(--safe-b)) calc(20px + var(--safe-l));
  transform: translateY(110%); transition: transform .25s ease;
}
.ins-sheet.open { transform: none; }
.ins-x {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; opacity: .6;
}
.ins-title { font-size: 18px; line-height: 26px; font-weight: 600; padding-inline-end: 40px; }
.ins-text { margin: 6px 0 0; }
.ins-text b { color: var(--primary); }
.ins-small { margin: 6px 0 0; font-size: 13px; opacity: .65; }
.ins-share { width: 20px; height: 20px; vertical-align: -4px; color: var(--primary); }
.ins-arrow { display: block; width: 32px; height: 32px; margin: 8px auto 0; color: var(--secondary); animation: ins-bob 1.4s ease-in-out infinite; }
@keyframes ins-bob { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .ins-sheet { transition: none; } .ins-arrow { animation: none; } }
.ins-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.ins-btn { min-height: 44px; border-radius: 22px; padding: 0 22px; font-size: 14px; font-weight: 500; color: var(--primary); }
.ins-btn.primary { background: var(--primary); color: var(--on-primary); }

/* ---------- ornaments, featured hilula, bio page ---------- */
.orn { display: flex; align-items: center; gap: 10px; color: var(--primary); margin: 10px 0 4px; font-size: 13px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--outline-variant); }
.orn.star { font-size: 18px; justify-content: center; letter-spacing: 6px; margin: 0; }
.orn.star::before, .orn.star::after { display: none; }
.feature { display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--on-surface);
  border: 1px solid var(--outline-variant); border-radius: 14px; padding: 12px; text-decoration: none; }
.feature:active { filter: brightness(.96); }
.feature .avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--primary-container); color: var(--on-primary-container);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.feature .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature .name { font-family: var(--serif); font-size: 18px; line-height: 24px; font-weight: 700; }
.feature .sub { opacity: .7; }
.tz-head .headline-medium { font-size: 30px; line-height: 38px; }
.bio-text { font-family: var(--serif); font-size: 18px; line-height: 32px; text-align: justify; }
.bio-text::first-letter { float: right; font-size: 52px; line-height: 44px; padding-left: 8px; padding-top: 4px; color: var(--primary); font-weight: 700; }
.feature .grow { flex: 1; min-width: 0; display: block; }
.feature .name { display: block; }
.about .src-small { font-size: 12px; line-height: 17px; opacity: .5; }

/* ---------- upgrade 1.1: favorites, reminders, month grid, candle, Tehillim by name ---------- */
a.setting { text-decoration: none; }
.setting .chev { width: 20px; height: 20px; opacity: .35; }
.fav-star { display: inline-flex; vertical-align: -2px; margin-inline-start: 6px; color: var(--primary); }
.fav-star svg.i { width: 16px; height: 16px; }
.row > .fav-star { margin: 0; }
.row > .fav-star svg.i { width: 20px; height: 20px; }
.fav-btn.on { color: var(--primary); }
.empty { opacity: .65; text-align: center; padding: 24px 8px; margin: 0; }

.rem-card { background: var(--primary-container); color: var(--on-primary-container); display: flex; flex-direction: column; gap: 6px; }
.rem-title { font-family: var(--serif); font-size: 19px; line-height: 26px; font-weight: 700; }
.rem-item { display: flex; align-items: center; gap: 8px; }
.rem-item svg.i { width: 18px; height: 18px; opacity: .7; }
.rem-row { padding-inline-end: 4px; gap: 4px; }
.rem-row .icon-btn { color: var(--secondary); }

.rem-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 12px; }
.field input, .field select {
  height: 52px; border-radius: 8px; padding: 0 12px; font-size: 17px;
  border: 1px solid color-mix(in srgb, var(--on-background) 35%, transparent);
  background: var(--surface); color: var(--on-surface); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.form-error { color: #B3261E; }
@media (prefers-color-scheme: dark) { .form-error { color: #F2B8B5; } }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.form-actions .btn { width: auto; }
.setting input[type="time"] {
  font-size: 17px; font-weight: 600; color: var(--secondary); background: transparent; border: 0; padding: 4px 0;
}

/* month grid: dir=rtl puts the first column (Sunday) on the right */
.icon-spacer { width: 48px; flex: none; }
.month-head .center { flex: 1; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ghead { text-align: center; font-size: 13px; font-weight: 600; color: var(--secondary); padding: 2px 0 4px; }
.gcell {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 62px; padding: 6px 0 4px; border-radius: 10px;
  background: var(--surface); color: var(--on-surface); text-decoration: none;
}
.gcell.empty { background: transparent; }
.gcell:active { filter: brightness(.94); }
.gcell.today { background: var(--primary); color: var(--on-primary); }
.gcell .hd { font-family: var(--serif); font-size: 19px; line-height: 22px; font-weight: 700; }
.gcell .cd { font-size: 11px; line-height: 14px; opacity: .6; }
.gcell .dots { display: flex; gap: 3px; height: 6px; margin-top: 4px; }
.gcell .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.gcell.today .dots i { background: var(--on-primary); }

/* candle */
.candle { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.candle-title { font-family: var(--serif); font-size: 19px; line-height: 26px; font-weight: 700; color: var(--primary); }
.candle .btn { max-width: 260px; }
.candle .btn:disabled { opacity: .55; cursor: default; }
.candle-fig { position: relative; width: 44px; height: 92px; }
.candle-fig .wax {
  position: absolute; bottom: 0; left: 8px; width: 28px; height: 56px; border-radius: 4px 4px 6px 6px;
  background: linear-gradient(90deg, #E9E1CF, #FFF9EA 45%, #DDD3BD);
}
.candle-fig .wick { position: absolute; bottom: 55px; left: 21px; width: 2px; height: 8px; background: #3A3A3A; border-radius: 1px; }
.candle-fig .flame, .candle-fig .glow { display: none; }
.candle.lit .flame {
  display: block; position: absolute; bottom: 60px; left: 13px; width: 18px; height: 30px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #FFFDE8 0 22%, #FFD45C 45%, #FF9A1F 75%, rgba(255, 120, 0, 0) 100%);
  transform-origin: 50% 90%; animation: flicker 1.8s ease-in-out infinite;
}
.candle.lit .glow {
  display: block; position: absolute; bottom: 44px; left: -18px; width: 80px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 90, .38), rgba(255, 200, 90, 0) 70%);
  animation: glow 2.6s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); }
  25% { transform: scale(.94, 1.06) rotate(1.5deg); }
  50% { transform: scale(1.04, .96) rotate(-.5deg); }
  75% { transform: scale(.97, 1.04) rotate(1deg); }
}
@keyframes glow { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .candle.lit .flame, .candle.lit .glow { animation: none; } }

/* Tehillim by the letters of the name */
.names-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.names-head .subtitle { border: 0; padding: 0; }
.letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.letters span {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--secondary-container); color: var(--on-secondary-container); font-family: var(--serif); font-size: 19px; font-weight: 700;
}
.psalm-letter { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--outline-variant); }
.letter-title { font-family: var(--serif); font-size: 20px; line-height: 28px; font-weight: 700; color: var(--primary); margin: 0 0 4px; text-align: center; }

/* snackbar */
.toast {
  position: fixed; z-index: 60; inset-inline: 16px; bottom: calc(var(--bar-h) + var(--safe-b) + 12px);
  margin-inline: auto; max-width: 480px; padding: 12px 16px; border-radius: 8px;
  background: var(--on-surface); color: var(--surface); box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
  animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }