/* Dream page: dark shell + readable status / errors (no light text on white card). */
.dream-page {
  background: radial-gradient(110% 70% at 50% 0%, rgba(72, 40, 120, 0.45), transparent 50%),
    linear-gradient(180deg, #100818 0%, #1a0f28 50%, #0c0614 100%);
  color: rgba(248, 242, 255, 0.94);
}

.dream-page .app-shell {
  background: transparent;
}

.dream-page .legal-card.dream-root {
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.5rem 1.35rem 2rem;
  background: linear-gradient(165deg, rgba(38, 22, 56, 0.94), rgba(18, 10, 30, 0.98));
  border: 1px solid rgba(255, 210, 150, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(248, 242, 255, 0.94);
}

.dream-page .section-heading--dream {
  margin-bottom: 0.5rem;
}

.dream-page-title {
  margin: 0 0 0.35rem;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.06em;
  color: #f4e4bc;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.dream-page .muted-copy {
  color: rgba(205, 190, 230, 0.9);
}

.dream-muse-figure {
  margin: 1rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.dream-muse-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 22rem);
  object-fit: cover;
  object-position: center 22%;
}

.dream-lead {
  margin-top: 0.35rem;
  line-height: 1.5;
}

.dream-form {
  margin-top: 1.25rem;
}

.dream-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: rgba(255, 228, 200, 0.92);
}

.dream-hint {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.dream-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 10rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 6, 24, 0.55);
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

.dream-submit-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f59e0b 100%);
  color: #0f0818;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.dream-submit-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.dream-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dream-status {
  margin-top: 0.85rem;
}

.dream-status:not(.visually-hidden) {
  clip: unset;
  height: auto;
  overflow: visible;
  position: static;
  white-space: normal;
  width: auto;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 160, 0.22);
  background: rgba(6, 4, 14, 0.72);
  color: rgba(255, 248, 240, 0.96);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dream-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 150, 150, 0.5);
  background: rgba(40, 12, 18, 0.85);
  color: #ffe4e6;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dream-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dream-meta {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.dream-meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.dream-meta-value {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.dream-rating-card {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: radial-gradient(120% 100% at 10% 0%, rgba(120, 60, 200, 0.28), rgba(24, 12, 40, 0.85));
  border: 1px solid rgba(196, 181, 253, 0.25);
  margin-bottom: 1.25rem;
}

.dream-rating-label {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.dream-rating-number {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2.75rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.25rem 0 0.75rem;
  background: linear-gradient(90deg, #c4b5fd, #fcd34d, #fbbf24);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.dream-rating-band {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.dream-rating-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #fcd34d);
  transition: width 0.45s ease-out;
}

.dream-rating-foot {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.dream-action-card {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.22);
  margin-bottom: 1.75rem;
}

.dream-action-heading {
  margin: 0 0 0.5rem;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #a7f3d0;
}

.dream-action-text {
  margin: 0;
  line-height: 1.58;
}

.dream-translate-row {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dream-translate-btn {
  flex: 0 0 auto;
}

.dream-lens-region-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
}

.dream-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.dream-tab {
  flex: 1 1 auto;
  min-width: min(100%, 8.5rem);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 20, 48, 0.6);
  color: inherit;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.dream-tab[aria-selected="true"] {
  border-color: rgba(196, 181, 253, 0.55);
  background: rgba(91, 33, 182, 0.45);
}

.dream-panel {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 4, 18, 0.45);
  min-height: 6rem;
}

.dream-panel-heading {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.dream-panel-body {
  line-height: 1.58;
  white-space: pre-wrap;
}

.dream-panel-body:empty::after {
  content: "(No text returned for this lens.)";
  opacity: 0.6;
}

.dream-disclaimer-card {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 220, 160, 0.12);
}

.dream-disclaimer-title {
  margin-top: 0;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: #f0d78c;
}

.dream-disclaimer-copy {
  margin-bottom: 0;
  line-height: 1.6;
  color: rgba(228, 218, 248, 0.92);
}

.dream-page .site-footer {
  color: rgba(198, 186, 220, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  margin-top: 2rem;
}
