/* Round 173 - the Verse of the Moment card and its small dialogs, in the Bible Study look (dark purple, gold). Used by
 * /verse-of-the-moment/ and by the pop-up over Read. The card takes its two colours from the VOM card it belongs to (--kv-c1, --kv-c2),
 * is only as tall as its words, sits in the middle of the screen, and grows with a longer verse. */
#kvom-root [hidden] { display: none !important; }
#kvom-root .kv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.kvom-open { overflow: hidden; }

.modal-backdrop.kvom { display: none; position: fixed; inset: 0; z-index: 2000; padding: 16px; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
  align-items: center; justify-content: center; background: rgba(8, 3, 18, .72); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.modal-backdrop.kvom.active { display: flex; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .modal-backdrop.kvom.active { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
#praynote-modal, #profile-modal, #feedback-modal { z-index: 2100; }

/* ---- the verse card ---- */
#v-card { --kv-c1: #0d9488; --kv-c2: #042f2e; position: relative; overflow: hidden; margin: auto; width: 100%; max-width: 600px; box-sizing: border-box;
  border-radius: 26px; padding: 28px 32px 30px; color: #fff; border: 1px solid rgba(255, 215, 94, .45);
  background: linear-gradient(160deg, var(--kv-c1), var(--kv-c2) 85%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .65), 0 2px 0 rgba(255, 255, 255, .2) inset; display: block; }
#v-card::before { content: ""; position: absolute; right: -54px; top: -64px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none; }
#v-card::after { content: ""; position: absolute; left: -40px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; background: rgba(0, 0, 0, .12); pointer-events: none; }
#v-card > * { position: relative; z-index: 1; }
#v-card.lit #v-text { animation: kv-focus .6s ease-out both; }
@keyframes kv-focus { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { #v-card.lit #v-text { animation: none; } }
#v-back { position: absolute; top: 8px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; opacity: .9; }
#v-back:hover, #v-back:focus-visible { background: rgba(255, 255, 255, .16); opacity: 1; }
#v-category-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; padding-right: 40px; }
#v-status-label { font-size: 18px; font-weight: 700; margin: 2px 40px 16px 0; line-height: 1.25; }
#v-text { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.45; margin: 0 0 12px; overflow: visible; }
#v-ref { font-size: 14px; opacity: .92; font-weight: 600; }
.most-liked-badge { display: inline-block; background: #ffd75e; color: #1a0d2e; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.verse-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.verse-actions button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .18); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.verse-actions button:hover { background: rgba(255, 255, 255, .28); }
.verse-actions button.primary { background: #fff; color: #1a0d2e; font-weight: 700; }
.verse-actions button.primary:hover { background: #fff6d6; }
.verse-actions button.liked { background: #ffd75e; color: #1a0d2e; font-weight: 700; }
.verse-actions button:focus-visible, #v-back:focus-visible { outline: 3px solid #ffd75e; outline-offset: 2px; }
.like-count { font-size: inherit; }
#v-msg { margin-top: 12px; font-size: 13px; min-height: 0; opacity: .95; }
#v-msg:empty { display: none; }
@media (max-width: 480px) {
  .modal-backdrop.kvom { padding: 12px; }
  #v-card { padding: 24px 20px 24px; border-radius: 24px; }
  #v-text { font-size: 22px; }
  .verse-actions { gap: 8px; }
  .verse-actions button { flex: 1 1 calc(33% - 8px); padding: 0 12px; min-height: 50px; }
  .verse-actions button.primary { flex: 1 1 100%; }
}

/* ---- the small dialogs (pray, sign in, feedback) ---- */
.modal-backdrop.kvom > .modal { position: relative; margin: auto; width: 100%; max-width: 420px; box-sizing: border-box; padding: 24px 22px; border-radius: 20px;
  background: #231640; color: #f4eeff; border: 1px solid rgba(255, 215, 94, .35); box-shadow: 0 24px 64px rgba(0, 0, 0, .6); }
.modal-backdrop.kvom .modal h3 { margin: 0 34px 12px 0; font: 700 19px Georgia, "Times New Roman", serif; color: #ffd75e; }
.modal-backdrop.kvom .modal h4 { margin: 0 0 8px; font-size: 14px; }
.modal-backdrop.kvom .modal label { display: block; font-size: 13px; margin: 6px 0 4px; color: #c4b8dc; }
.modal-backdrop.kvom .modal textarea, .modal-backdrop.kvom .modal input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid rgba(255, 215, 94, .35); border-radius: 12px; background: #1d1033; color: #f4eeff; font: inherit; font-size: 16px; margin-bottom: 10px; }
.modal-backdrop.kvom .modal textarea { min-height: 96px; resize: vertical; }
.modal-backdrop.kvom .modal .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-backdrop.kvom .modal button, .modal-backdrop.kvom .modal a.primary { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 215, 94, .45); background: #1d1033; color: #f4eeff; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.modal-backdrop.kvom .modal button.primary, .modal-backdrop.kvom .modal a.primary { background: linear-gradient(90deg, #e6b93a, #ffd75e); color: #1a0d2e; border-color: transparent; font-weight: 700; }
.modal-backdrop.kvom .modal .close-x { position: absolute; top: 8px; right: 8px; min-height: 44px; min-width: 44px; padding: 0; justify-content: center; border: 0; background: transparent; font-size: 26px; color: #c4b8dc; }
.modal-backdrop.kvom .modal .msg { font-size: 13px; margin-top: 8px; color: #ffd75e; }
.modal-backdrop.kvom .pn-hint { font-size: 14px; color: #c4b8dc; margin: 0 0 12px; }
#pn-verse { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #ffd75e; background: #1d1033; font-size: 14px; line-height: 1.55; border-radius: 0 10px 10px 0; }
#pn-verse cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: #c4b8dc; }
#pn-past { margin-top: 18px; border-top: 1px solid rgba(255, 215, 94, .25); padding-top: 12px; }
#pn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#pn-list li { background: #1d1033; border: 1px solid rgba(255, 215, 94, .2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
#pn-list .when { display: block; font-size: 12px; color: #c4b8dc; margin-bottom: 3px; }
#pn-list .answered { color: #8ce99a; font-weight: 700; font-size: 12px; }
#pn-list .pn-actions { margin-top: 6px; display: flex; gap: 8px; }
#pn-list button { font-size: 12px; min-height: 36px; padding: 0 10px; }
#pn-msg { font-size: 13px; margin-top: 8px; }
#pn-msg.ok { color: #8ce99a; } #pn-msg.err { color: #ffa8a8; }

/* ---- Read: highlights that lead to a card (bible-research/vom-read.js) ---- */
.vom-w { border-bottom: 2px dotted #ffd75e; color: #fff6d6; cursor: pointer; border-radius: 2px; }
.vom-w:hover, .vom-w:focus-visible { background: rgba(255, 215, 94, .22); outline: 0; }
.vom-w:focus-visible { box-shadow: 0 0 0 2px #ffd75e; }
sup.vom-vn { background: #ffd75e; color: #1a0d2e; font-weight: 700; border-radius: 999px; padding: 1px 7px; cursor: pointer; font-size: .75em; }
sup.vom-vn:hover, sup.vom-vn:focus-visible { background: #fff6d6; outline: 0; box-shadow: 0 0 0 2px #ffd75e; }
.vom-hl { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.vom-sw { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 215, 94, .5); border-radius: 12px; background: #1d1033; color: #f4eeff; font: inherit; font-size: 14px; cursor: pointer; }
.vom-sw:hover { border-color: #ffd75e; }
.vom-sw:focus-visible { outline: 3px solid #ffd75e; outline-offset: 2px; }
.vom-track { flex: none; width: 38px; height: 22px; border-radius: 999px; position: relative; background: #5b4a80; transition: background .15s; }
.vom-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #1a0d2e; transition: left .15s; }
.vom-sw[aria-checked="true"] .vom-track { background: #ffd75e; }
.vom-sw[aria-checked="true"] .vom-knob { left: 19px; }
@media (prefers-reduced-motion: reduce) { .vom-track, .vom-knob { transition: none; } }
