/* "Time with God": a slim bar that opens into a panel. Sticky only while a session runs. */

.god-timer {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 0 16px;
}

.god-timer[data-running="true"] {
  position: sticky;
  top: calc(68px + env(safe-area-inset-top));
  z-index: 34;
}

.god-timer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid rgba(116, 86, 155, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #2d3748;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.god-timer-bar-icon { font-size: 22px; line-height: 1; }

.god-timer-bar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.god-timer-bar-title { font-size: 15px; font-weight: 600; }

.god-timer-bar-sub {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.god-timer-bar-count {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
  color: #5b3f87;
}

.god-timer-chevron { flex: none; color: #8a94a6; transition: transform 180ms ease; }
.god-timer[data-open="true"] .god-timer-chevron { transform: rotate(180deg); }

.god-timer-panel {
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #f1eaf7;
  border: 1px solid rgba(116, 86, 155, 0.14);
}
.god-timer[data-open="false"] .god-timer-panel { display: none; }

.god-timer-desc {
  margin: 0 0 14px;
  font: 400 14px/1.55 'Inter', sans-serif;
  color: #4a5568;
}

.god-timer-setup {
  display: flex;
  gap: 10px;
}

.god-timer-select {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e0;
  border-radius: 14px;
  background: #fff;
  color: #2d3748;
  font: 400 16px 'Inter', sans-serif;
}

.god-timer-start {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: #74569b;
  color: #fff;
  font: 600 16px 'Inter', sans-serif;
  cursor: pointer;
}
.god-timer-start:active { background: #5b3f87; }
.god-timer-start:disabled { opacity: 0.6; }

.god-timer-running { text-align: center; }

.god-timer-countdown {
  margin: 0 0 6px;
  font: 500 clamp(40px, 12vw, 56px)/1 'Literata', Georgia, serif;
  font-variant-numeric: tabular-nums;
  color: #2d3748;
}

.god-timer-breath {
  margin: 10px auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: #e2eadc;
}
.god-timer-breath p {
  margin: 0;
  font: 500 clamp(18px, 5vw, 24px)/1.3 'Literata', Georgia, serif;
  color: #2d3748;
}

.god-timer-guidance {
  margin: 8px 0 0;
  font: 500 14px/1.4 'Inter', sans-serif;
  color: #4a5568;
}
