/* Prayer Meditation only; the approved app and Bible styles remain independent. */
#screenPrayerMeditation {
  --meditation-cream:#fffaf1;
  --meditation-glow:rgba(218,168,103,.2);
  scroll-margin-top:180px;
}
#screenPrayerMeditation [hidden] { display:none !important; }
.meditation-shell { width:min(100%,640px); margin-inline:auto; }
#screenPrayerMeditation .meditation-exit {
  position:absolute; z-index:3; top:11px; right:11px; display:grid; place-items:center;
  width:44px; min-height:44px; margin:0; padding:0; border:1px solid transparent; border-radius:50%;
  color:#75583e; background:rgba(255,252,246,.52); box-shadow:none;
  font:400 1.55rem/1 Georgia,'Times New Roman',serif;
}
#screenPrayerMeditation .meditation-exit:hover { border-color:rgba(140,85,43,.2); background:rgba(255,252,246,.9); }
.meditation-panel {
  position:relative; isolation:isolate; display:flex; flex-direction:column;
  min-height:min(720px,calc(100vh - 190px));
  padding:clamp(26px,6vw,48px) clamp(20px,6vw,50px) 24px; overflow:hidden;
  border:1px solid rgba(183,137,82,.28); border-radius:18px;
  background:
    radial-gradient(ellipse at 50% -5%,rgba(255,242,203,.92),transparent 46%),
    radial-gradient(circle at 8% 86%,rgba(152,105,61,.06),transparent 38%),
    repeating-linear-gradient(98deg,rgba(108,78,48,.018) 0 1px,transparent 1px 7px),
    linear-gradient(180deg,#fffdf8 0%,#f9f0e3 100%);
  box-shadow:0 22px 52px rgba(58,41,27,.15),inset 0 1px rgba(255,255,255,.9);
}
.meditation-panel::before {
  content:""; position:absolute; z-index:-1; inset:10px; border:1px solid rgba(184,121,58,.16);
  border-radius:12px; pointer-events:none;
}
.meditation-panel::after {
  content:""; position:absolute; z-index:-1; top:-90px; left:50%; width:310px; height:210px;
  transform:translateX(-50%); border-radius:50%; background:var(--meditation-glow); filter:blur(28px); pointer-events:none;
}
#screenPrayerMeditation .eyebrow { margin-bottom:8px; text-align:center; letter-spacing:.12em; }
.meditation-panel h2 {
  margin:0; color:#3b2a1d; font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(2rem,6vw,2.75rem); font-weight:500; letter-spacing:-.025em; text-align:center;
}
.meditation-panel h2::after {
  content:""; display:block; width:38px; height:1px; margin:16px auto 0;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.meditation-context {
  max-width:46ch; margin:14px auto 20px; color:#786758; font-size:.82rem; font-weight:700;
  line-height:1.5; text-align:center;
}
.meditation-progress {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; width:min(100%,350px);
  margin:0 auto 24px; padding:0; list-style:none;
}
.meditation-progress li {
  display:grid; justify-items:center; gap:7px; color:#9b8c7d; font-size:.68rem; letter-spacing:.035em;
  transition:color .18s ease;
}
.meditation-progress li span {
  width:6px; height:6px; border-radius:50%; background:#d8c7b2;
  box-shadow:0 0 0 0 transparent; transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.meditation-progress li[aria-current="step"] { color:#6d4312; font-weight:800; }
.meditation-progress li[aria-current="step"] span {
  transform:scale(1.45); background:var(--gold); box-shadow:0 0 0 4px rgba(184,121,58,.12);
}
.meditation-artwork {
  position:relative; flex:none; width:100%; aspect-ratio:8/3; max-height:190px; margin:0 auto 26px;
  overflow:hidden; border:1px solid rgba(151,101,54,.2); border-radius:13px;
  background-image:url("prayer-meditation-art.webp");
  background-position:center; background-repeat:no-repeat; background-size:cover;
  box-shadow:inset 0 0 35px rgba(61,43,27,.13),0 8px 24px rgba(73,48,29,.08);
}
.meditation-body { display:grid; align-content:center; flex:1 0 auto; min-height:390px; }
.meditation-guidance,.meditation-reflection {
  max-width:36ch; margin:0 auto; color:#35291f; font:normal clamp(1.2rem,3.2vw,1.42rem)/1.8 Georgia,'Times New Roman',serif;
  text-align:center; text-wrap:balance;
}
.meditation-closing { max-width:31ch; font-size:clamp(1.3rem,3.6vw,1.55rem); }
.meditation-prayer { max-width:45ch; margin:auto; text-align:center; }
.meditation-prayer::before {
  content:""; display:block; width:24px; height:18px; margin:0 auto 18px;
  background:linear-gradient(135deg,transparent 45%,rgba(184,121,58,.45) 46% 54%,transparent 55%),linear-gradient(45deg,transparent 45%,rgba(184,121,58,.45) 46% 54%,transparent 55%);
}
.meditation-prayer h3 {
  margin:0 0 16px; color:#7a4a25; font-size:.86rem; line-height:1.4; letter-spacing:.09em; text-transform:uppercase;
}
.meditation-focus-title {
  margin:0 0 20px; color:#75491f; font-size:clamp(.9rem,2.3vw,1.04rem); line-height:1.45;
  letter-spacing:.11em; text-align:center; text-transform:uppercase;
}
.meditation-prayer p {
  margin:0; color:#30261f; white-space:pre-line;
  font:normal clamp(1.16rem,3vw,1.36rem)/1.82 Georgia,'Times New Roman',serif;
}
.meditation-scripture {
  position:relative; max-width:48ch; margin:28px auto 0; padding:4px clamp(10px,4vw,28px);
  border:0; color:#392d22; background:transparent;
  font:italic clamp(.94rem,2.3vw,1.08rem)/1.65 Georgia,'Times New Roman',serif; text-align:center;
}
.meditation-scripture::before,.meditation-scripture::after {
  content:""; display:block; width:52px; height:1px; margin:0 auto 18px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.meditation-scripture::after { margin:18px auto 0; }
.meditation-scripture cite {
  display:block; margin-top:13px; color:#7d6a59; font:700 .78rem/1.45 Arial,Helvetica,sans-serif; font-style:normal;
}
.meditation-reflection { max-width:38ch; font-size:clamp(1.08rem,2.8vw,1.25rem); }
.meditation-stay {
  margin:30px 0 0; color:#8a7968; font:italic .9rem/1.5 Georgia,'Times New Roman',serif; text-align:center;
}
.meditation-controls {
  display:grid; grid-template-columns:52px minmax(0,1fr) 52px; align-items:center; gap:8px;
  max-width:410px; margin:clamp(32px,7vw,54px) auto 0; padding-top:16px;
  border-top:1px solid rgba(140,85,43,.14);
}
#screenPrayerMeditation button.meditation-arrow {
  display:grid; place-items:center; width:46px; min-height:46px; padding:0;
  border:1px solid rgba(140,85,43,.22); border-radius:50%; color:#765237;
  background:rgba(255,253,248,.52); box-shadow:0 4px 14px rgba(70,45,26,.06);
  font-size:1.35rem; font-weight:400;
}
#screenPrayerMeditation button.meditation-arrow:hover { background:rgba(255,250,241,.96); border-color:rgba(140,85,43,.42); }
.meditation-arrow-space { width:46px; height:46px; }
.meditation-control-center { color:#99897a; font-size:.72rem; line-height:1.35; text-align:center; }
#screenPrayerMeditation button.meditation-return {
  min-height:44px; padding:9px 16px; border:1px solid rgba(140,85,43,.3); border-radius:999px;
  color:#5f3c1f; background:rgba(255,250,241,.8); box-shadow:0 5px 16px rgba(70,45,26,.07);
}
.meditation-status { min-height:1.3em; margin:10px 0 0; color:var(--muted); font-size:.85rem; text-align:center; }
.meditation-enter-forward { animation:meditation-forward .22s ease-out both; }
.meditation-enter-backward { animation:meditation-backward .22s ease-out both; }
@keyframes meditation-forward { from { opacity:0; transform:translateX(10px); } to { opacity:1; transform:none; } }
@keyframes meditation-backward { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:none; } }

.prayer-card {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px;
  width:100%; min-height:64px; color:var(--ink); font:inherit; text-align:left; cursor:pointer;
}
.prayer-card .date { color:var(--wood); }
.prayer-card-hint { color:var(--gold); font-size:.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.prayer-card:focus-visible,#screenPrayerMeditation button:focus-visible,#screenPrayerMeditation input:focus-visible {
  outline:3px solid var(--wood); outline-offset:3px;
}
@media (min-width:700px) {
  .meditation-shell {
    position:relative; left:50%; width:min(640px,calc(100vw - 64px)); max-width:none; transform:translateX(-50%);
  }
  .meditation-panel { min-height:780px; }
  .meditation-body { min-height:390px; }
}
@media (max-width:420px) {
  .meditation-panel { min-height:660px; padding:25px 17px 20px; border-radius:14px; }
  .meditation-progress { margin-bottom:20px; }
  .meditation-progress li { font-size:.61rem; }
  .meditation-artwork { margin-bottom:22px; }
  .meditation-body { min-height:390px; }
  .meditation-prayer p { line-height:1.72; }
  .meditation-control-center { font-size:.66rem; }
  .prayer-card { grid-template-columns:1fr; gap:5px; }
}
@media (max-width:340px) {
  .meditation-progress li { font-size:0; }
  .meditation-progress li[aria-current="step"] { font-size:.66rem; }
  .meditation-progress { align-items:start; }
}
@media (prefers-reduced-motion:reduce) {
  #screenPrayerMeditation * { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
