/* ─── Mystery Artwork ──────────────────────────────────── */

.mystery-art {
  margin-bottom: 1.5rem;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.mystery-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  max-height: 20rem;
  object-fit: contain;
  background: var(--parchment-rule);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mystery-art img.loaded {
  opacity: 1;
}

/* Block, not flex: the caption is prose. As a flex container every text node
   around <em> became its own flex item, so `gap` injected 8px inside the
   sentence and it rendered "The Crucifixion , 1340s". */
.mystery-art-caption {
  font-size: 0.625rem;
  color: var(--parchment-muted);
  text-align: center;
  padding: 0.5rem 0 0;
  font-style: italic;
}

.art-actions {
  display: inline-flex;
  gap: 0.25rem;
  font-style: normal;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.art-action-btn {
  background: var(--mary-glow);
  border: none;
  border-radius: 2px;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--mary);
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}

.art-action-btn:hover {
  background: var(--accent-fill);
  color: var(--mary-foreground);
}

/* ─── Decade Meditation ───────────────────────────────── */

.decade-meditation {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-style: italic;
  font-size: 0.875em;
  line-height: 1.75;
  color: var(--parchment-scripture);
  padding: 1rem 1.125rem;
  border-left: 2px solid var(--parchment-accent);
  background: var(--mary-soft);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.prayer-text-muted {
  opacity: 0.5;
  color: var(--parchment-faded);
  font-size: 0.875rem;
}

/* ─── Small Art (during decade) ────────────────────────── */

.mystery-art-small {
  margin-bottom: 1rem;
  max-height: 12rem;
  overflow: hidden;
  border-radius: 2px;
}

.mystery-art-small img {
  height: 12rem;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ─── Auth ────────────────────────────────────────────── */

.auth-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.auth-icon-btn:hover {
  color: var(--mary);
  background: var(--hover-overlay);
}

.auth-icon-btn.auth-signed-in {
  color: var(--mary);
}

.auth-btn-old {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mary);
  background: none;
  border: 1px solid var(--mary);
  border-radius: 2px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-btn:hover {
  background: var(--accent-fill);
  color: var(--mary-foreground);
}

/* ─── Intentions ──────────────────────────────────────── */

.intention-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
}

.intention-input:focus {
  border-color: var(--mary);
}

.intention-input::placeholder {
  color: var(--muted-foreground);
}

.intention-list {
  margin-top: 0.75rem;
}

.intention-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--foreground);
  line-height: 1.5;
}

.intention-item:last-child { border-bottom: none; }

.intention-icon {
  color: var(--mary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.intention-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  opacity: 0;
  transition: opacity 0.15s;
  padding: 0.25rem;
  flex-shrink: 0;
}

.intention-item:hover .intention-remove { opacity: 0.6; }
.intention-remove:hover { opacity: 1 !important; color: var(--foreground); }

.intention-meta {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* Completion screen */
.completion {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeIn 0.6s ease-out;
}

.completion-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--muted);
  border: 1.5px solid rgba(var(--mary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold);
}

.completion h2 {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 1.5rem;
  color: var(--parchment-ink);
  margin-bottom: 0.5rem;
}

.completion p {
  font-size: 0.875rem;
  color: var(--parchment-faded);
  max-width: 18rem;
  margin: 0 auto;
  line-height: 1.6;
}

.completion-prayer {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--parchment-ink);
  max-width: 20rem;
  margin: 1.5rem auto;
  line-height: 1.7;
  white-space: pre-line;
}

.completion-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  background: var(--accent-fill);
  color: var(--mary-foreground);
  font-size: 0.875rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.completion-btn:hover { opacity: 0.9; }

.completion-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.completion-actions .completion-btn {
  margin-top: 0;
  flex: 1;
  max-width: 10rem;
  justify-content: center;
}

.completion-btn-share {
  background: transparent;
  border: 1.5px solid var(--parchment-rule);
  color: var(--parchment-ink);
}

.completion-btn-share:hover {
  background: var(--hover-overlay);
}

.completion-btn-pray {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--parchment-faded);
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.completion-btn-pray:hover { color: var(--parchment-ink); }

/* ─── Prayer Nav ──────────────────────────────────────── */

.prayer-nav {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--parchment-rule);
  background: var(--parchment-bg);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 400;
  border: 1px solid var(--parchment-rule);
  background: transparent;
  color: var(--parchment-ink);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.nav-btn:hover { background: var(--hover-overlay); }

.nav-btn-primary {
  flex: 1;
  background: var(--accent-fill);
  color: var(--mary-foreground);
  border-color: var(--parchment-accent);
}

.nav-btn-primary:hover {
  opacity: 0.9;
  background: var(--accent-fill);
}

/* ═══════════════════════════════════════════════════════════
   Guide Screen
   ═══════════════════════════════════════════════════════════ */

#guide-screen.active {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.guide-body {
  flex: 1;
  padding: 2rem 1.5rem 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--parchment-bg);
  color: var(--parchment-ink);
}

.guide-step {
  margin-bottom: 2rem;
  animation: fadeIn 0.3s ease-out;
}

.guide-step-num {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 0.5625rem;
  font-weight: 400;
  color: var(--parchment-accent);
  margin-bottom: 0.375rem;
}

.guide-step h3 {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 1.125rem;
  color: var(--parchment-ink);
  margin-bottom: 0.5rem;
}

.guide-step p {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 0.9375rem;
  color: var(--parchment-scripture);
  line-height: 1.7;
}

.guide-step .prayer-text {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--mary-soft);
  border-radius: 2px;
}

/* ─── Mysteries Grid (Guide) ─────────────────────────── */

.mysteries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.mysteries-grid-set {
  padding: 0.75rem;
  background: var(--mary-soft);
  border-radius: 2px;
  border: 1px solid var(--parchment-rule);
}

.mysteries-grid-label {
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--parchment-accent);
  margin-bottom: 0.5rem;
}

.mysteries-grid-label span {
  font-weight: 400;
  opacity: 0.6;
  text-transform: none;
  letter-spacing: 0;
}

.mysteries-grid-list {
  margin: 0;
  padding-left: 1.125rem;
  font-family: 'Rosarivo', 'Rosarivo Fallback', Georgia, serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--parchment-ink);
}

.mysteries-grid-list li {
  margin-bottom: 0.125rem;
}

@media (max-width: 360px) {
  .mysteries-grid { grid-template-columns: 1fr; }
}

