@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:wght@300;400;500;600;700&family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --bg-sand: #fcf9f4;
  --surface-low: #f6f3ee;
  --surface-mid: #f0ede8;
  --surface-high: #ebe8e3;
  --surface-highest: #e5e2dd;
  --primary-terracotta: #7c2d12;
  --primary-dark: #5e1700;
  --secondary-rust: #9b4500;
  --accent-gold: #d97706;
  --text-charcoal: #1c1c19;
  --text-muted: #55423d;
  --outline-subtle: #dcc1b9;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --verse-font-size: 16px;
  --verse-line-height: 1.85;
}

.bible-verse-text {
  font-size: var(--verse-font-size) !important;
  line-height: var(--verse-line-height) !important;
  letter-spacing: -0.01em;
  transition: font-size 0.15s ease-out;
}

html, body {
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  overscroll-behavior: none !important;
  margin: 0;
  padding: 0;
  font-family: 'Literata', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.font-serif-title {
  font-family: 'EB Garamond', Georgia, serif;
}

.font-sans-ui {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phone-frame {
  height: 100dvh;
  max-height: 100dvh;
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Smartphone Mockup Frame Styling */
@media (min-width: 640px) {
  body {
    background: radial-gradient(circle at center, #24201c 0%, #121110 100%);
  }
  .phone-frame {
    height: min(840px, calc(100vh - 28px)) !important;
    max-height: 860px !important;
    box-shadow: 
      0 0 0 12px #2b2724,
      0 0 0 14px #3d3733,
      0 30px 80px rgba(0, 0, 0, 0.7);
  }
}

.verse-card {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.verse-card.card-pressing {
  transform: scale(0.985) !important;
  background-color: rgba(217, 119, 6, 0.14) !important;
  border-color: rgba(217, 119, 6, 0.5) !important;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.8s ease !important;
}

#app-toast {
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 8px 12px -6px rgba(0, 0, 0, 0.5);
}

.verse-container {
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-left: 3.5px solid transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217, 119, 6, 0.15);
}

.verse-container:active {
  background-color: rgba(217, 119, 6, 0.2) !important;
  transform: scale(0.99);
}

.verse-container:hover {
  background-color: rgba(124, 45, 18, 0.05);
}

.verse-highlight {
  background-color: rgba(217, 119, 6, 0.15) !important;
  border-left: 4px solid var(--accent-gold) !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.12);
}

.verse-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary-terracotta);
  font-size: 0.8em;
  margin-right: 6px;
  display: inline-block;
  user-select: none;
  opacity: 0.85;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(252, 249, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 193, 185, 0.4);
}

/* Custom Scrollbars */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--outline-subtle);
  border-radius: 9999px;
}

/* Mobile Touch Optimization */
button, a, input, select {
  touch-action: manipulation;
}

/* Fullscreen Artwork Modal & Player Modal Gestures */
#full-audio-modal {
  will-change: transform;
}

#artwork-fullscreen-modal {
  will-change: opacity, transform;
}

#player-modal-art-box {
  user-select: none;
  -webkit-user-select: none;
}

/* BGM Sound Card Active & Animated Equalizer */
.bgm-card-active {
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.12) 0%, rgba(217, 119, 6, 0.20) 100%) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25) !important;
  transform: translateY(-1px);
}

.bgm-card-active .bgm-card-icon-box {
  background-color: var(--accent-gold) !important;
  color: #ffffff !important;
}

@keyframes bgm-bar-dance {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

.bgm-eq-bar {
  animation: bgm-bar-dance 0.75s ease-in-out infinite alternate;
}
.bgm-eq-bar:nth-child(2) { animation-delay: 0.2s; }
.bgm-eq-bar:nth-child(3) { animation-delay: 0.4s; }

/* Support Timer Active Pulse */
.support-pulse-active {
  background-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scripture Alarm Day Chips */
.alarm-day-chip {
  background-color: var(--color-surface-container-low, #f3ede7);
  color: var(--color-on-surface-variant, #5c4e43);
  transition: all 0.15s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.alarm-day-chip:hover {
  background-color: var(--color-surface-container-high, #e5ded7);
}
.alarm-day-chip.alarm-day-chip-active {
  background-color: #6b4423 !important;
  color: #ffffff !important;
  border-color: #6b4423 !important;
  box-shadow: 0 1px 3px rgba(107, 68, 35, 0.3);
}


