:root {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0b0b0b;
  color: #e5e7eb;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem;
  gap: 1.5rem;
}

.page {
  padding: 1.5rem 1.5rem 3rem;
  width: min(960px, 100%);
  text-align: center;
  background: rgba(12, 12, 12, 0.7);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.title {
  margin: 0 0 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
}

.clock-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

svg#clock {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 60%);
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.15);
}

.center-label text {
  pointer-events: none;
}

.ring-path {
  transition: fill-opacity 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.ring-path.active {
  fill-opacity: 0.92 !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
}

.caption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.tooltip {
  position: absolute;
  pointer-events: none;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(15, 15, 15, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f8fafc;
  font-size: 0.85rem;
  line-height: 1.3;
  backdrop-filter: blur(6px);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip.visible {
  opacity: 1;
}

.drawer {
  width: min(320px, 90vw);
  background: rgba(17, 24, 39, 0.85);
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.45);
  padding: 1.5rem 1.25rem;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-subtitle {
  margin: 0.25rem 0 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.daily-guidance {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 0.8rem;
  text-align: left;
}

.guidance-heading {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
}

.guidance-day {
  margin: 0.4rem 0 0.25rem;
  font-weight: 600;
  color: #f8fafc;
}

.guidance-tone {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: #bfdbfe;
}

.guidance-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.guidance-list li {
  margin: 0;
  font-size: 0.83rem;
  color: #cbd5f5;
}

.psalm-summary {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.psalm-summary p {
  margin: 0.35rem 0;
}

.psalm-planet {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #facc15;
}

.psalm-focus {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.psalm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.psalm-list li {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.psalm-list li span {
  display: block;
  color: #9ca3af;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.psalm-text {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #cbd5f5;
  text-align: left;
  white-space: pre-wrap;
}

.psalm-text.loading {
  color: #93c5fd;
  font-style: italic;
}

.psalm-text.error {
  color: #fca5a5;
}

@media (max-width: 1100px) {
  .layout {
    flex-direction: column;
    align-items: stretch;
  }

  .drawer {
    position: static;
    width: auto;
    max-height: none;
  }
}
