/* ============================================
   The Holy Rosary - Elegant Dark Theme
   (Inspired by traditional Rosary infographic aesthetic)
   ============================================ */

:root {
  /* Deep navy dark theme - elegant and respectful */
  --bg: #0a1f3d;
  --surface: #112a4a;
  --surface-alt: #1a3659;
  --surface-elevated: #234a72;

  /* Light, readable text on dark */
  --text: #f2f0e9;
  --text-light: #d4d0c4;
  --text-muted: #a39e8f;

  /* Subtle borders for dark surfaces */
  --border: #2a4a72;
  --border-light: #3a5a82;

  /* Prayer-type specific accent colors (from infographic guidance) */
  --prayer-sign: #1e3a6e;
  --prayer-creed: #1e3a6e;
  --prayer-ourfather: #1e88e5;
  --prayer-hailmary: #9c27b0;
  --prayer-glory: #4a90d9;
  --prayer-fatima: #2e7d32;
  --prayer-hailholyqueen: #d81b60;
  --prayer-closing: #1e3a6e;

  /* Special / mystery accents */
  --mystery-purple: #7b3fa0;
  --mystery-purple-light: #9c5cc9;

  /* Legacy / fallback accents (kept for compatibility) */
  --accent: #1e88e5;
  --accent-light: #5fa3e8;
  --accent-warm: #c2185b;
  --rose: #c2185b;
  --sage: #4a8f5a;

  /* Prayer text area */
  --prayer-text: #f2f0e9;

  /* Enhanced shadows for depth on dark */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.38);

  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 200ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 1.75rem; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.65rem; margin: 0 0 0.4rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.6rem; }
h4 { font-size: 1.1rem; margin: 0 0 0.35rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #7eb9f0;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rosary-icon {
  color: var(--accent-light);
  display: flex;
  align-items: center;
}

.header-text h1 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 1.65rem;
  font-size: 0.95rem;
}

.header-nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-light);
}

@media (max-width: 640px) {
  .header-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .header-text h1 {
    font-size: 1.25rem;
  }
}

/* ============================================
   Development Notice Banner (top of page)
   Respectful, warm, fits dark elegant theme
   ============================================ */
.dev-notice {
  background: #0f284d;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 110; /* Above sticky header */
}

.dev-notice-content {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.dev-notice-content p {
  margin: 0 0 0.2rem;
}

.dev-notice-content p:last-child {
  margin-bottom: 0;
}

.dev-notice-follow {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dev-notice .x-link {
  color: #c5a3e8;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.dev-notice .x-link:hover {
  color: #d9c1f0;
  text-decoration: underline;
}

.dev-notice .x-icon {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 3px;
  opacity: 0.9;
}

.dev-notice-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  opacity: 0.75;
  transition: all 150ms ease;
  border-radius: 4px;
  flex-shrink: 0;
}

.dev-notice-close:hover {
  color: #e8b4b4;
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 600px) {
  .dev-notice {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }
  .dev-notice-content p {
    margin-bottom: 0.1rem;
  }
  .dev-notice-close {
    font-size: 1rem;
    padding: 0.2rem 0.35rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-alt);
  border-color: var(--accent-light);
}

.btn-nav {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.btn-nav:hover {
  background-color: var(--surface-elevated);
  border-color: var(--accent-light);
}

.btn-next {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-next:hover {
  background-color: #1565c0;
  border-color: #1565c0;
}

.btn-recite {
  background-color: var(--prayer-hailmary);
  color: white;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.btn-recite:hover {
  background-color: #7b1fa2;
}

.btn-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn-close:hover {
  color: var(--prayer-hailholyqueen);
  border-color: var(--prayer-hailholyqueen);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.1rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
  color: #f8f6f0;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .hero h2 { font-size: 1.7rem; }
}

/* Instructions */
.instructions {
  padding-bottom: 2rem;
}

.instructions-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  box-shadow: var(--shadow-soft);
}

.instructions-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.35rem;
  text-align: center;
  color: var(--text-light);
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.instruction-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  background: var(--surface-elevated);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.4rem;
}

/* Prayer Cards (Reference) */
.prayers-section {
  padding: 2rem 0 3rem;
}

.prayer-list {
  display: grid;
  gap: 1rem;
}

.prayer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 5px solid var(--border-light);
}

.prayer-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

/* Prayer-type specific left accent borders (elegant & readable) */
.prayer-card[data-prayer-type="sign"],
.prayer-card[data-prayer-type="creed"],
.prayer-card[data-prayer-type="closing"] {
  border-left-color: var(--prayer-sign);
}

.prayer-card[data-prayer-type="ourfather"] {
  border-left-color: var(--prayer-ourfather);
}

.prayer-card[data-prayer-type="hailmary"] {
  border-left-color: var(--prayer-hailmary);
}

.prayer-card[data-prayer-type="glory"] {
  border-left-color: var(--prayer-glory);
}

.prayer-card[data-prayer-type="fatima"] {
  border-left-color: var(--prayer-fatima);
}

.prayer-card[data-prayer-type="hailholyqueen"] {
  border-left-color: var(--prayer-hailholyqueen);
}

.prayer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.prayer-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
}

.prayer-note {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  background: var(--surface-elevated);
  color: var(--text-light);
  border-radius: 999px;
  white-space: nowrap;
}

.prayer-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--prayer-text);
  margin: 0;
}

.prayer-text-small {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 0.6rem;
  font-style: italic;
}

/* V. and R. labels for consistent prayer formatting (infographic style) */
.versicle,
.response {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-light);
  font-size: 0.92em;
  margin-right: 0.35rem;
  white-space: nowrap;
}

/* Concluding prayers divider */
.prayer-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.prayer-divider::before,
.prayer-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.prayer-divider span {
  white-space: nowrap;
}

/* Mysteries Section */
.mysteries-section {
  padding: 2rem 0 3.5rem;
  background: #0d2344;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mystery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.tab-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 0.55rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-button:hover {
  border-color: var(--mystery-purple-light);
  color: var(--text);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--mystery-purple), #9c27b0);
  color: white;
  border-color: var(--mystery-purple);
  box-shadow: 0 2px 10px rgba(123, 63, 160, 0.4);
}

.mystery-panel {
  display: none;
}

.mystery-panel.active {
  display: block;
}

.mystery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mystery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--mystery-purple);
}

.mystery-item h4 {
  color: var(--mystery-purple-light);
  margin-bottom: 0.4rem;
}

.mystery-item p {
  font-size: 0.925rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

.mystery-num {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1.35rem;
  text-align: center;
  background: var(--surface-elevated);
  color: var(--mystery-purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 0.55rem;
}

/* Guided Section */
.guided-section {
  padding: 2.5rem 0 4rem;
}

.guided-container {
  max-width: 760px;
  margin: 0 auto;
}

.mystery-choice {
  text-align: center;
  margin-bottom: 1.25rem;
}

.mystery-choice h4 {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.mystery-choice-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

@media (max-width: 620px) {
  .mystery-choice-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mystery-choice-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.mystery-choice-btn:hover {
  border-color: var(--mystery-purple-light);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.mystery-choice-btn.active {
  border-color: var(--mystery-purple);
  background: var(--surface-elevated);
}

.mystery-choice-btn .mystery-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
}

.mystery-choice-btn .mystery-day {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Prayer Viewer - Elegant dark elevated card */
.prayer-viewer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Dynamic accent border on the viewer based on current prayer type */
.prayer-viewer[data-prayer-type="sign"],
.prayer-viewer[data-prayer-type="creed"],
.prayer-viewer[data-prayer-type="closing"] {
  border-left: 6px solid var(--prayer-sign);
}
.prayer-viewer[data-prayer-type="ourfather"] {
  border-left: 6px solid var(--prayer-ourfather);
}
.prayer-viewer[data-prayer-type="hailmary"] {
  border-left: 6px solid var(--prayer-hailmary);
}
.prayer-viewer[data-prayer-type="glory"] {
  border-left: 6px solid var(--prayer-glory);
}
.prayer-viewer[data-prayer-type="fatima"] {
  border-left: 6px solid var(--prayer-fatima);
}
.prayer-viewer[data-prayer-type="hailholyqueen"] {
  border-left: 6px solid var(--prayer-hailholyqueen);
}
.prayer-viewer[data-prayer-type="mystery"] {
  border-left: 6px solid var(--mystery-purple);
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.35rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--mystery-purple));
  transition: width 280ms ease;
  border-radius: 999px;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.prayer-display {
  padding: 2rem 1.85rem 2.1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.prayer-meta {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.prayer-phase {
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  background: var(--surface-elevated);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.prayer-decade {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 0.15rem;
  font-weight: 500;
}

.prayer-title {
  font-size: 1.45rem;
  margin: 0 0 1.15rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

/* Large readable prayer text container - gets type-specific left accent */
.prayer-text-container {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.8rem;
  flex: 1;
  border-left: 4px solid var(--border-light);
  transition: border-color 200ms ease;
}

/* Dynamic accent on the prayer text block */
.prayer-viewer[data-prayer-type="ourfather"] .prayer-text-container { border-left-color: var(--prayer-ourfather); }
.prayer-viewer[data-prayer-type="hailmary"] .prayer-text-container { border-left-color: var(--prayer-hailmary); }
.prayer-viewer[data-prayer-type="glory"] .prayer-text-container { border-left-color: var(--prayer-glory); }
.prayer-viewer[data-prayer-type="fatima"] .prayer-text-container { border-left-color: var(--prayer-fatima); }
.prayer-viewer[data-prayer-type="hailholyqueen"] .prayer-text-container { border-left-color: var(--prayer-hailholyqueen); }
.prayer-viewer[data-prayer-type="sign"],
.prayer-viewer[data-prayer-type="creed"],
.prayer-viewer[data-prayer-type="closing"] .prayer-text-container { border-left-color: var(--prayer-sign); }

.prayer-text-large {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--prayer-text);
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}

.prayer-text-large .prayer-line {
  display: block;
}

/* Mystery Announcement Card - Purple themed */
.mystery-display {
  margin-bottom: 1.3rem;
}

.mystery-card {
  background: linear-gradient(145deg, #1f2f55, #162a4a);
  border: 1px solid var(--border);
  border-left: 6px solid var(--mystery-purple);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.55rem;
}

.mystery-card h4 {
  font-size: 1.35rem;
  color: #c5a3e8;
  margin: 0.2rem 0 0.55rem;
}

.mystery-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.mystery-number {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--mystery-purple-light);
  text-transform: uppercase;
}

/* Decade Counter */
.decade-counter {
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.counter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.counter-value {
  font-weight: 600;
  color: var(--prayer-hailmary);
  font-size: 1rem;
}

.bead-row {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.bead {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bead.filled {
  background: var(--prayer-hailmary);
  border-color: var(--prayer-hailmary);
  box-shadow: 0 1px 4px rgba(156, 39, 176, 0.5);
}

.bead:hover {
  transform: scale(1.1);
  border-color: var(--prayer-hailmary);
}

/* Smaller, distinct beads for the three introductory Hail Marys */
.bead.bead-intro {
  width: 18px;
  height: 18px;
  border-width: 1.5px;
}

.bead-row.intro-beads {
  gap: 0.55rem;
}

.counter-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.35rem;
}

/* Calm, respectful instruction for the start of each Hail Mary decade */
.hail-decade-instruction {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.5rem;
  opacity: 0.92;
}

/* Viewer Controls */
.viewer-controls {
  display: flex;
  gap: 0.75rem;
  padding: 1.05rem 1.35rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.viewer-controls .btn-nav {
  flex: 1;
}

/* Guided prompt */
.guided-prompt {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   New Landing / Intro Screen for Guided Rosary
   Elegant, respectful, dark Catholic aesthetic
   ============================================ */
.guided-landing {
  text-align: center;
  padding: 2.75rem 1.25rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}

.landing-content {
  max-width: 460px;
  margin: 0 auto;
}

.landing-icon {
  margin-bottom: 1.1rem;
  color: #c9a66b; /* Warm, elegant gold tone that complements the navy theme */
  opacity: 0.95;
  display: inline-block;
}

.landing-icon svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.landing-title {
  font-size: 2.05rem;
  margin: 0 0 0.45rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.landing-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 0 0 1.65rem;
  line-height: 1.45;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.btn-landing {
  font-size: 1.08rem;
  padding: 0.95rem 2.4rem;
  min-width: 210px;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35);
}

.btn-landing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 136, 229, 0.45);
}

.landing-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
  opacity: 0.85;
  font-style: italic;
}

@media (max-width: 520px) {
  .landing-title {
    font-size: 1.75rem;
  }
  .landing-subtitle {
    font-size: 0.98rem;
  }
  .btn-landing {
    width: 100%;
    padding: 0.95rem 1.5rem;
  }
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-small {
  font-size: 0.8rem;
  margin-top: 0.45rem;
  opacity: 0.75;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .prayer-text-large {
    font-size: 1.08rem;
    line-height: 1.7;
  }
  
  .prayer-display {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  
  .prayer-title {
    font-size: 1.25rem;
  }
  
  .viewer-controls {
    flex-direction: column;
  }
}

/* Subtle focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Print styles (for those who want to print) */
@media print {
  .site-header,
  .hero-actions,
  .viewer-controls,
  .mystery-choice,
  .btn,
  .guided-prompt {
    display: none !important;
  }
  .prayer-text-large {
    font-size: 13pt;
  }
}

/* Shake animation (for gentle reminder on decade counter) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.shake {
  animation: shake 380ms ease;
}

/* Decade complete state */
.bead-row.complete {
  opacity: 0.95;
}

.decade-complete-note {
  text-align: center;
  color: #7bb57b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================
   Thank You screen (shown briefly after clicking Finish Rosary)
   ============================================ */
.thank-you-screen {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #112a4a 0%, #0a1f3d 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.thank-you-content {
  max-width: 360px;
}

.thank-you-icon {
  font-size: 2.75rem;
  color: #c5a3e8;
  margin-bottom: 0.9rem;
  display: block;
}

.thank-you-message {
  font-size: 1.22rem;
  line-height: 1.7;
  color: #f2f0e9;
  font-style: italic;
  margin: 0;
}

/* Make the Finish button on the final step stand out */
.btn-finish {
  background-color: #7b3fa0 !important;
  border-color: #7b3fa0 !important;
  font-weight: 600;
}

.btn-finish:hover {
  background-color: #9c27b0 !important;
  border-color: #9c27b0 !important;
  transform: translateY(-1px);
}