html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.message-body {
  white-space: pre-wrap;
  word-break: break-word;
}

body {
  background: #f7f3ec;
}

/* ---- Verse feed ---- */
.verse-page {
  max-width: 720px;
  margin: 0 auto;
}

.notify-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  margin-bottom: 1.5rem;
  color: #6b5a48;
  box-shadow: 0 1px 4px rgba(80, 60, 30, 0.08);
}

.notify-dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #c4b8a8;
}

.notify-dot.on {
  background: #2e9e5b;
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.2);
}

.btn-verse {
  background: #8b6635;
  border-color: #8b6635;
  color: #fff;
}

.btn-verse:hover {
  background: #73532a;
  border-color: #73532a;
  color: #fff;
}

.verse-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-radius: 1.25rem;
  background: #fff;
  color: #3b2f24;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 4px 18px rgba(80, 60, 30, 0.08);
}

.verse-card::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(176, 137, 74, 0.15);
  pointer-events: none;
}

.verse-featured {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, #fffaf0 0%, #f6e6c8 55%, #e8c896 100%);
  box-shadow: 0 10px 30px rgba(139, 102, 53, 0.25);
}

.verse-featured::before {
  left: 50%;
  top: -1.25rem;
  transform: translateX(-50%);
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.7);
}

.verse-label {
  position: relative;
  margin-bottom: 0.75rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9a7444;
}

.verse-text {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.verse-featured .verse-text {
  font-size: 1.6rem;
  line-height: 1.5;
}

.verse-ref {
  font-weight: bold;
  letter-spacing: 0.03em;
  color: #7a5a32;
}

.verse-featured .verse-ref {
  font-size: 1.1rem;
}

.verse-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #8c7b6b;
}

.verse-featured .verse-meta {
  justify-content: center;
}

.verse-share {
  padding: 0;
  font-size: 0.8rem;
  color: #8b6635;
  text-decoration: none;
}

.verse-alarm {
  border-left: 6px solid #dc3545;
}

.verse-alarm .verse-label {
  color: #b02a37;
}

.verse-featured.verse-alarm {
  border-left: none;
  background: linear-gradient(160deg, #fff5f5 0%, #f9d4d7 60%, #f1a7ae 100%);
}

.section-heading {
  margin: 2rem 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c7b6b;
}

.verse-new {
  animation: verse-in 0.6s ease-out;
}

@keyframes verse-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
  .verse-featured {
    padding: 3.5rem 3rem 1.75rem;
  }

  .verse-featured .verse-text {
    font-size: 2rem;
  }
}

.alarm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #fff;
  animation: alarm-flash 0.9s infinite;
}

.alarm-overlay.d-none {
  display: none !important;
}

.alarm-box {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.alarm-label {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.3rem;
  margin-bottom: 1rem;
}

@keyframes alarm-flash {
  0%, 100% { background: #b02a37; }
  50% { background: #dc3545; }
}