/* ── Devotion Choice Widget ─────────────────────────────────────────────────── */

.devotion-choice-widget {
  margin: 0.75rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: var(--bg-surface);
}

/* Commander message header */
.dc-commander {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem 0.75rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.05));
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.dc-eye {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.8;
}

.dc-commander-text {
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--accent);
  font-weight: 500;
}

/* Choice buttons */
.dc-choices {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dc-choice-btn {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dc-choice-btn:last-child {
  border-bottom: none;
}

.dc-choice-btn:hover,
.dc-choice-btn:focus-visible {
  background: rgba(201, 168, 76, 0.07);
  outline: none;
}

.dc-choice-btn:active {
  background: rgba(201, 168, 76, 0.12);
}

.dc-choice-content {
  flex: 1;
  min-width: 0;
}

.dc-choice-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #e8e0d0);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-choice-tagline {
  font-size: 0.78rem;
  color: var(--text-muted, #8a7a6a);
  line-height: 1.3;
}

.dc-choice-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.dc-points {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.dc-proof-badge {
  font-size: 0.68rem;
  color: var(--text-muted, #8a7a6a);
  white-space: nowrap;
}

.dc-choice-arrow {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Selected state */
.dc-selected-header {
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.05));
}

.dc-selected-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.2rem;
}

.dc-selected-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #e8e0d0);
}

.dc-directive-context {
  font-size: 0.8rem;
  color: var(--text-muted, #8a7a6a);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.dc-form-actions {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.dc-go-btn {
  width: 100%;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.dc-skip-link {
  background: none;
  border: none;
  color: var(--text-muted, #8a7a6a);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.dc-skip-link:hover {
  color: var(--text-primary, #e8e0d0);
}

/* Completed state */
.dc-complete {
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.dc-complete-check {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.dc-complete-msg {
  font-size: 0.82rem;
  color: var(--text-muted, #8a7a6a);
  line-height: 1.4;
}

.dc-next-btn {
  width: 100%;
}

.dc-reaction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent, #c9a84c);
  font-style: italic;
  min-height: 1.4em;
  max-width: 90%;
  text-align: center;
  line-height: 1.4;
}

.dc-reaction-loading {
  opacity: 0.4;
  letter-spacing: 0.15em;
  font-style: normal;
}

.dc-reaction-text {
  opacity: 0.92;
}

/* Loading state */
.dc-loading {
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted, #8a7a6a);
}
.dc-retry-btn {
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  background: none;
  border: 1px solid var(--accent, #c9a84c);
  color: var(--accent, #c9a84c);
  border-radius: 4px;
  cursor: pointer;
}
.dc-retry-btn:hover { opacity: 0.8; }

/* Widget section label */
.dc-widget-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted, #8a7a6a);
  padding: 0.6rem 1rem 0.3rem;
  opacity: 0.7;
}

/* ── Mystery choice card ─────────────────────────────────────────────────────── */

.dc-choice-mystery {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.09), rgba(201, 168, 76, 0.03));
  border-left: 2px solid rgba(201, 168, 76, 0.45);
  position: relative;
}

.dc-choice-mystery:hover,
.dc-choice-mystery:focus-visible {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.07)) !important;
}

.dc-mystery-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.dc-mystery-hint-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-primary, #e8e0d0);
  line-height: 1.35;
}

.dc-mystery-bonus-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0.9;
}

/* ── Mystery reveal interstitial ─────────────────────────────────────────────── */

.dc-mystery-reveal {
  padding: 1.6rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  animation: dc-reveal-in 0.35s ease-out;
}

.dc-mystery-reveal-icon {
  font-size: 1.7rem;
  color: var(--accent);
  animation: dc-mystery-pulse 0.9s ease-in-out infinite alternate;
  margin-bottom: 0.15rem;
}

.dc-mystery-reveal-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
}

.dc-mystery-reveal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #e8e0d0);
  margin-top: 0.2rem;
}

.dc-mystery-reveal-tagline {
  font-size: 0.8rem;
  color: var(--text-muted, #8a7a6a);
  font-style: italic;
}

@keyframes dc-reveal-in {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes dc-mystery-pulse {
  from { transform: scale(1);    opacity: 0.65; }
  to   { transform: scale(1.18); opacity: 1; }
}

/* ── Mystery badges in selected / fulfilled states ───────────────────────────── */

.dc-mystery-selected-badge {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.35rem;
  opacity: 0.85;
}

.dc-mystery-complete-bonus {
  font-size: 0.78rem;
  color: var(--accent);
  font-style: italic;
  opacity: 0.85;
}

/* ── Override mode ───────────────────────────────────────────────────────────── */

.dc-override-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem 0.75rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.07));
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
}

.dc-override-message {
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--accent);
  font-weight: 600;
}

.dc-override-directive {
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dc-override-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 0.35rem;
}

.dc-override-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #e8e0d0);
  margin-bottom: 0.2rem;
}

.dc-override-tagline {
  font-size: 0.8rem;
  color: var(--text-muted, #8a7a6a);
  font-style: italic;
}

.dc-override-selected-badge {
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.65;
  font-style: italic;
  margin-top: 0.3rem;
}

/* Office mode overrides */
[data-theme="office"] .devotion-choice-widget {
  border-color: rgba(74, 111, 165, 0.2);
  background: var(--bg-surface);
}

[data-theme="office"] .dc-commander {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), transparent);
  border-bottom-color: rgba(74, 111, 165, 0.15);
}

[data-theme="office"] .dc-commander-text {
  color: var(--accent);
}

[data-theme="office"] .dc-choice-btn:hover {
  background: rgba(74, 111, 165, 0.07);
}

[data-theme="office"] .dc-choice-mystery {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.09), rgba(74, 111, 165, 0.03));
  border-left-color: rgba(74, 111, 165, 0.45);
}

[data-theme="office"] .dc-choice-mystery:hover {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.15), rgba(74, 111, 165, 0.07)) !important;
}

[data-theme="office"] .dc-override-header {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.16), rgba(74, 111, 165, 0.06));
  border-bottom-color: rgba(74, 111, 165, 0.28);
}

/* ── Oracle Card ─────────────────────────────────────────────────────────────── */

#oracle-card-widget {
  margin: 0.75rem 0 0;
}

.oracle-card {
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 100%);
  padding: 0.9rem 1rem;
  overflow: hidden;
}

.oracle-chapter-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.oracle-chapter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
}

.oracle-chapter-days {
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.55;
}

.oracle-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.oracle-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.oracle-card-theme {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.65;
}

.oracle-card-call {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.oracle-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-style: italic;
}

/* ── Vignettes ────────────────────────────────────────────────────────────────── */

.dc-vignette {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Fulfilled footer ────────────────────────────────────────────────────────── */

.dc-complete-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* Office mode overrides */
[data-theme="office"] .oracle-card {
  border-color: rgba(74, 111, 165, 0.3);
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.07) 0%, rgba(74, 111, 165, 0.02) 100%);
}

[data-theme="office"] .oracle-card-name,
[data-theme="office"] .oracle-card-theme {
  color: var(--accent);
}

[data-theme="office"] .dc-vignette {
  border-top-color: rgba(0, 0, 0, 0.08);
}
