:root {
  --bg: #090617;
  --panel: rgba(18, 14, 34, 0.68);
  --panel-strong: rgba(20, 15, 38, 0.88);
  --paper: #f5e8dc;
  --paper-ink: #422637;
  --ink: #fff4e6;
  --muted: rgba(255, 232, 211, 0.68);
  --line: rgba(244, 205, 154, 0.22);
  --gold: #d9a45c;
  --rose: #e8b6c8;
  --violet: #8d75d6;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 52% 8%, rgba(141, 117, 214, 0.18), transparent 32%),
    radial-gradient(circle at 18% 72%, rgba(217, 164, 92, 0.16), transparent 28%),
    var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(9, 6, 23, 0.92), rgba(9, 6, 23, 0.62), rgba(9, 6, 23, 0.9)),
    url("./assets/dorothy-reader.png") center / cover no-repeat;
  filter: saturate(0.86) brightness(0.55);
  animation: imageDrift 18s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 6, 23, 0.3) 0%, rgba(9, 6, 23, 0.98) 82%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px);
}

@keyframes imageDrift {
  0%, 100% { transform: scale(1.04) translate(0, 0); }
  35% { transform: scale(1.06) translate(-0.6%, 0.4%); }
  70% { transform: scale(1.05) translate(0.5%, -0.4%); }
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 6, 23, 0.54);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff4e6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.brand::first-letter {
  color: var(--gold);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.topbar a:not(.brand),
.sign-in {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 232, 211, 0.78);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  transition: color 160ms ease;
}

.topbar a:not(.brand)::after,
.sign-in::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 92, 0.85), transparent);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.topbar a:not(.brand):hover,
.sign-in:hover,
.topbar a.active {
  color: #fff4e6;
}

.topbar a:not(.brand):hover::after,
.sign-in:hover::after,
.topbar a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.view {
  display: none;
  min-height: 100vh;
  padding: 94px clamp(16px, 4vw, 52px) 56px;
}

.view.active {
  display: block;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  width: min(100%, 1180px);
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 74px) clamp(18px, 4vw, 42px) 26px;
  overflow: hidden;
  border: 1px solid rgba(244, 205, 154, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(9, 8, 22, 0.92), rgba(17, 16, 38, 0.66), rgba(10, 9, 22, 0.9)),
    url("./assets/dorothy-reader.png") center / cover no-repeat;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 15%, rgba(255, 244, 230, 0.18), transparent 10%),
    radial-gradient(circle at 50% 78%, rgba(217, 164, 92, 0.23), transparent 28%),
    linear-gradient(180deg, rgba(9, 6, 23, 0.08), rgba(9, 6, 23, 0.72));
}

.veil {
  position: absolute;
  inset: 10% -7% -5%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 244, 230, 0.08), transparent 34%),
    radial-gradient(circle, rgba(217, 164, 92, 0.14), transparent 58%);
  filter: blur(8px);
}

.oracle-panel,
.draw-panel,
.plan-hero,
.offer-card,
.subscriptions article {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.oracle-panel {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 13px;
  color: #fff3dd;
  font-size: clamp(50px, 7vw, 78px);
  line-height: 0.98;
  text-shadow: 0 2px 28px rgba(217, 164, 92, 0.18);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.hero-copy,
.bubble-answer p,
.plan-hero p,
.plans-head p,
.subscriptions p,
.offer-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  margin-bottom: 18px;
  color: rgba(255, 232, 211, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
}

.question-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 12px 0 16px;
}

.question-prompts button {
  min-height: 34px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 244, 230, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  animation: promptPulse 4s ease-in-out infinite;
}

.question-prompts button:nth-child(2) {
  animation-delay: 1.2s;
}

.question-prompts button:nth-child(3) {
  animation-delay: 2.1s;
}

.question-prompts button:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 182, 200, 0.55);
  background: rgba(232, 182, 200, 0.14);
}

@keyframes promptPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 182, 200, 0); }
  48% { box-shadow: 0 0 28px rgba(232, 182, 200, 0.16); }
}

.question-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper-ink);
}

.question-card::before {
  content: none;
}

.reading-mode-tabs {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 2px;
  padding: 5px;
  border: 1px solid rgba(244, 205, 154, 0.22);
  border-radius: 999px;
  background: rgba(20, 17, 38, 0.48);
}

.reading-mode-tabs button {
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 244, 234, 0.76);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.reading-mode-tabs button.selected {
  color: #fffaf1;
  border-color: rgba(217, 164, 92, 0.58);
  background: linear-gradient(135deg, rgba(72, 48, 88, 0.82), rgba(183, 124, 47, 0.38));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.corner {
  position: absolute;
  color: rgba(162, 48, 78, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  display: none;
}

.corner.top {
  top: 12px;
  left: 14px;
}

.corner.bottom {
  right: 14px;
  bottom: 12px;
  transform: rotate(180deg);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  display: none;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 65, 82, 0.24), transparent);
}

.divider span,
.question-card label {
  color: rgba(66, 38, 55, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-card label {
  display: none;
}

textarea {
  grid-column: 1;
  width: 100%;
  min-height: 60px;
  height: 60px;
  resize: none;
  outline: 0;
  padding: 18px 26px;
  border: 1px solid rgba(217, 164, 92, 0.5);
  border-radius: 999px;
  color: var(--paper-ink);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(244, 232, 219, 0.96));
  box-shadow:
    0 14px 38px rgba(217, 164, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

textarea:focus {
  border-color: rgba(217, 164, 92, 0.72);
  box-shadow: 0 0 0 4px rgba(217, 164, 92, 0.14);
}

.focus-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.focus-pills button {
  position: relative;
  min-height: 42px;
  padding: 9px 18px 9px 42px;
  border: 1px solid rgba(244, 205, 154, 0.25);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(20, 17, 38, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.focus-pills button::before {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--gold);
  font-size: 18px;
  transform: translateY(-50%);
}

.focus-pills button:nth-child(1)::before { content: "♡"; }
.focus-pills button:nth-child(2)::before { content: "♙"; }
.focus-pills button:nth-child(3)::before { content: "▣"; }
.focus-pills button:nth-child(4)::before { content: "❋"; }

.focus-pills button:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 164, 92, 0.52);
  background: rgba(39, 31, 66, 0.68);
}

.focus-pills button.selected {
  color: #fff5e8;
  border-color: rgba(217, 164, 92, 0.65);
  background: linear-gradient(135deg, rgba(54, 39, 74, 0.92), rgba(99, 72, 117, 0.56));
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(217, 164, 92, 0.12), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.draw-btn {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 54px;
  min-height: 54px;
  margin-top: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: #fff9ef;
  background: linear-gradient(135deg, #a96f31, #d9a45c 52%, #8d5b2a);
  box-shadow: 0 12px 34px rgba(91, 51, 20, 0.34);
  font-weight: 800;
  font-size: 0;
}

.draw-btn::before {
  content: "✦";
  position: relative;
  z-index: 1;
  font-size: 21px;
}

.draw-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: buttonShine 3.2s ease-in-out infinite;
}

@keyframes buttonShine {
  100% { transform: translateX(120%); }
}

.draw-panel {
  position: relative;
  z-index: 1;
  min-height: 430px;
  margin-top: 28px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid rgba(244, 205, 154, 0.18);
  background: transparent;
  box-shadow: none;
}

.draw-copy {
  margin-bottom: 14px;
  text-align: center;
}

.draw-copy h2 {
  margin-bottom: 6px;
  color: #f7dfb8;
  font-size: 24px;
}

.draw-copy p {
  margin-bottom: 0;
  color: rgba(255, 232, 211, 0.78);
  font-size: 13px;
}

.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 330px);
  gap: 24px;
  align-items: stretch;
}

.card-zone {
  position: relative;
  min-height: 298px;
  padding: 20px;
  border: 1px solid rgba(244, 205, 154, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 58%, rgba(217, 164, 92, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 30%, rgba(255, 244, 230, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 64%, rgba(217, 164, 92, 0.26) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 98%, rgba(217, 164, 92, 0.22), transparent 44%),
    rgba(10, 9, 22, 0.34);
}

.card-zone::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  height: 150px;
  pointer-events: none;
  border: 1px solid rgba(217, 164, 92, 0.24);
  border-radius: 50%;
  transform: perspective(600px) rotateX(62deg);
  box-shadow:
    inset 0 0 0 20px rgba(217, 164, 92, 0.025),
    0 0 35px rgba(217, 164, 92, 0.08);
}

.ritual-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: absolute;
  inset: 18px;
  z-index: 4;
  min-height: 92px;
  margin-bottom: 0;
  border: 1px solid rgba(244, 205, 154, 0.14);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(9, 6, 23, 0.76);
}

.ritual-loader.active {
  display: flex;
}

.timer-ring {
  position: relative;
  width: 72px;
  height: 72px;
}

.timer-ring svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.timer-ring circle {
  fill: none;
  stroke-width: 4;
}

.track {
  stroke: rgba(255, 255, 255, 0.12);
}

.fill {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms linear;
}

.timer-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.spread {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 156px));
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  min-height: 258px;
  padding: 18px 0 28px;
}

.tarot-slot {
  perspective: 900px;
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
}

.tarot-slot:nth-child(1) { --tilt: -5deg; }
.tarot-slot:nth-child(2) { --tilt: 0deg; }
.tarot-slot:nth-child(3) { --tilt: 5deg; }

.spread.dealt .tarot-slot {
  opacity: 0;
  transform: translateY(28px) rotate(var(--tilt, 0deg));
  animation: dealIn 650ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.spread.dealt .tarot-slot:nth-child(2) { animation-delay: 140ms; }
.spread.dealt .tarot-slot:nth-child(3) { animation-delay: 280ms; }

@keyframes dealIn {
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
}

.flip {
  position: relative;
  aspect-ratio: 0.66;
  transform-style: preserve-3d;
  transition: transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tarot-slot.flipped .flip {
  transform: rotateY(180deg);
}

.card-back,
.card-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 11px;
  backface-visibility: hidden;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(9, 6, 23, 0.9);
}

.card-back {
  border: 2px solid rgba(218, 166, 92, 0.86);
  background:
    radial-gradient(circle at 50% 54%, transparent 0 29px, rgba(217, 164, 92, 0.42) 30px 31px, transparent 32px 46px, rgba(217, 164, 92, 0.24) 47px 48px, transparent 49px),
    conic-gradient(from 0deg at 50% 54%, transparent 0 8deg, rgba(217, 164, 92, 0.28) 8deg 10deg, transparent 10deg 45deg, rgba(217, 164, 92, 0.22) 45deg 47deg, transparent 47deg 90deg),
    radial-gradient(circle at 25% 18%, rgba(217, 164, 92, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 24%, rgba(255, 244, 230, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 72%, rgba(217, 164, 92, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 78%, rgba(255, 244, 230, 0.44) 0 1px, transparent 2px),
    linear-gradient(145deg, rgba(24, 28, 62, 0.98), rgba(11, 14, 40, 1) 54%, rgba(21, 22, 50, 0.98));
}

.card-back::before {
  content: "☾";
  position: absolute;
  inset: 9px;
  display: grid;
  place-items: start center;
  border: 1px solid rgba(244, 205, 154, 0.56);
  border-radius: 8px;
  color: var(--gold);
  padding-top: 7px;
  font-size: 21px;
  box-shadow:
    inset 0 0 0 4px rgba(217, 164, 92, 0.08),
    inset 0 0 0 9px rgba(9, 6, 23, 0.18);
}

.card-back::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 68px;
  text-shadow:
    0 0 18px rgba(217, 164, 92, 0.45),
    0 0 0 #251b18;
}

.card-front {
  display: block;
  padding: 0;
  transform: rotateY(180deg);
  border: 2px solid rgba(255, 244, 230, 0.26);
  color: #fff9ef;
  text-align: center;
  background: linear-gradient(145deg, #48315f, #19162f 55%, #8b5e32);
}

.card-front::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  border: 1px solid rgba(255, 244, 230, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.card-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front.is-reversed img {
  transform: rotate(180deg);
}

.card-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 38px 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(10, 7, 22, 0.9));
}

.card-front span {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.card-front small {
  position: relative;
  color: rgba(255, 244, 230, 0.68);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}

.chat-answer,
.locked-reading {
  border: 1px solid rgba(217, 164, 92, 0.35);
  border-radius: 18px;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 50% 14px, rgba(217, 164, 92, 0.2), transparent 34px),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 232, 220, 0.98));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), inset 0 0 0 6px rgba(217, 164, 92, 0.06);
}

.chat-answer {
  min-height: 250px;
  padding: 18px;
  border-color: rgba(124, 76, 36, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 164, 92, 0.16), transparent 24%),
    linear-gradient(180deg, #fff4df, #f5e3c8);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.dorothy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 8px;
}

.dorothy-head img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 2px solid #171219;
  border-radius: 50%;
  background: #050505;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.dorothy-head .eyebrow {
  margin-bottom: 2px;
  color: #9a6830;
}

.dorothy-head strong {
  color: #2a1824;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.bubble-answer {
  position: relative;
  padding: 18px 20px;
  border: 0;
  border-top: 1px solid rgba(217, 164, 92, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bubble-answer::before {
  content: "☾";
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: -8px auto 8px;
  border: 0;
  color: #b77c2f;
  background: transparent;
  font-size: 18px;
  text-align: center;
  transform: none;
}

.bubble-answer h2 {
  margin-bottom: 12px;
  color: #321d2b;
  font-size: clamp(24px, 2.4vw, 30px);
  text-align: center;
}

.bubble-answer p {
  color: rgba(45, 29, 41, 0.82);
  line-height: 1.62;
}

.bubble-answer p:last-child {
  margin-bottom: 0;
}

.dorothy-chat-shell {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(124, 76, 36, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 238, 0.72);
}

.saved-chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
}

.saved-message {
  max-width: 92%;
  padding: 13px 15px;
  border: 1px solid rgba(124, 76, 36, 0.16);
  border-radius: 18px;
  color: #40264f;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(83, 49, 20, 0.08);
  user-select: none;
}

.saved-message.doro {
  justify-self: start;
  border-bottom-left-radius: 7px;
  background: #fffaf0;
}

.saved-message.user {
  justify-self: end;
  border-bottom-right-radius: 7px;
  color: #fffaf1;
  background: linear-gradient(135deg, #3f2a55, #7a5b86);
}

.saved-message p {
  margin: 0;
  line-height: 1.58;
}

.chat-retention-note {
  margin: 0;
  padding: 9px 10px 0;
  border-top: 1px solid rgba(124, 76, 36, 0.12);
  color: rgba(64, 38, 79, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.premium-chat-shell {
  position: relative;
}

.premium-locked-message {
  position: relative;
  max-width: 100%;
  min-height: 248px;
  overflow: hidden;
}

.locked-chat-copy {
  display: grid;
  gap: 12px;
  filter: blur(3.5px);
  opacity: 0.62;
  user-select: none;
}

.locked-chat-copy p {
  margin: 0;
  color: rgba(64, 38, 79, 0.82);
  line-height: 1.65;
}

.chat-unlock-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 250, 240, 0.56), rgba(255, 250, 240, 0.82) 54%, rgba(245, 226, 203, 0.9));
  text-align: center;
}

.chat-unlock-layer strong {
  color: #321d2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.chat-unlock-layer span {
  max-width: 260px;
  color: rgba(64, 38, 79, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.chat-unlock-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff9ef;
  background: linear-gradient(135deg, #a96f31, #d9a45c);
  box-shadow: 0 14px 28px rgba(116, 70, 30, 0.22);
  font-weight: 900;
}

.direct-answer {
  padding: 14px 16px;
  border: 1px solid rgba(66, 38, 55, 0.1);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.72);
}

.tarot-guidance {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 164, 92, 0.22);
}

.card-guidance-panel {
  width: min(100%, 760px);
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(217, 164, 92, 0.35);
  border-radius: 18px;
  color: #f7ebd8;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 164, 92, 0.14), transparent 34%),
    rgba(17, 14, 35, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  animation: softRise 520ms ease both;
}

.card-guidance-panel .tarot-guidance {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.card-guidance-panel .tarot-guidance span {
  color: #f1cc7a;
}

.card-guidance-panel .tarot-guidance p {
  line-height: 1.65;
}

.card-guidance-panel .unlock-hook {
  margin-top: 8px;
  color: #ffe9bc;
  font-weight: 700;
}

.tarot-guidance span {
  color: #9a6830;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tarot-guidance p {
  margin: 0;
}

.locked-reading {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
}

.locked-blur {
  padding: 22px;
  filter: blur(5px);
  opacity: 0.46;
  user-select: none;
}

.unlock-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(245, 232, 220, 0.25), rgba(245, 232, 220, 0.96));
  text-align: center;
}

.unlock-layer span,
.unlock-layer small {
  color: rgba(66, 38, 55, 0.62);
}

.unlock-layer button,
.draw-link {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff9ef;
  background: linear-gradient(135deg, #a96f31, #d9a45c);
  font-weight: 800;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
  padding: 18px 18px 0;
  border-top: 1px solid rgba(244, 205, 154, 0.16);
}

.trust-row span {
  position: relative;
  min-height: 50px;
  padding-left: 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trust-row span::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

.trust-row span:nth-child(1)::before { content: "♙"; }
.trust-row span:nth-child(2)::before { content: "✶"; }
.trust-row span:nth-child(3)::before { content: "☾"; }
.trust-row span:nth-child(4)::before { content: "♡"; }

.trust-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.plan-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto 28px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(245, 232, 220, 0.92);
  color: var(--paper-ink);
}

.plan-hero .eyebrow,
.plans .eyebrow,
.subscriptions .eyebrow {
  color: #a86d32;
}

.plan-hero img,
.guide-strip img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.draw-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

.guide-strip,
.plans,
.subscriptions {
  width: min(100%, 1180px);
  margin: 0 auto 28px;
}

.guide-strip img {
  height: auto;
  object-fit: contain;
}

.legal-view {
  background:
    radial-gradient(circle at 20% 12%, rgba(217, 164, 92, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(141, 117, 214, 0.14), transparent 26%);
}

.legal-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(244, 205, 154, 0.22);
  border-radius: 22px;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 164, 92, 0.16), transparent 24%),
    rgba(250, 241, 231, 0.96);
  box-shadow: var(--shadow);
}

.legal-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: #8a5a2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.legal-back::before {
  content: "←";
  margin-right: 8px;
}

.legal-shell h1,
.legal-shell h2,
.legal-shell h3 {
  color: #422637;
}

.legal-updated {
  margin-bottom: 28px;
  color: rgba(66, 38, 55, 0.56);
  font-size: 13px;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.legal-content h3 {
  margin: 10px 0 0;
  font-size: 18px;
}

.legal-content p {
  margin: 0;
  color: rgba(66, 38, 55, 0.74);
  line-height: 1.72;
}

.plans-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.subscriptions article p,
.offer-card p {
  color: rgba(66, 38, 55, 0.72);
}

.plans-head h2 {
  color: var(--ink);
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 16px;
}

.offer-card,
.subscriptions article {
  padding: 22px;
  background: rgba(245, 232, 220, 0.94);
  color: var(--paper-ink);
}

.offer-card.featured {
  transform: translateY(-8px);
  border-color: rgba(217, 164, 92, 0.72);
}

.offer-card span,
.subscriptions span {
  color: rgba(66, 38, 55, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-card strong,
.subscriptions strong {
  display: block;
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.offer-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 16px 0;
  color: rgba(66, 38, 55, 0.76);
  line-height: 1.45;
}

.offer-card .exclusion {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(66, 38, 55, 0.12);
  color: #7a394a;
  font-weight: 800;
}

.billing-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.billing-options a {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(66, 38, 55, 0.14);
  border-radius: 14px;
  color: #422637;
  background: rgba(255, 250, 244, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.billing-options a:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 124, 47, 0.5);
  box-shadow: 0 16px 38px rgba(66, 38, 55, 0.12);
}

.billing-options strong {
  margin: 0;
  font-size: 24px;
}

.billing-options small {
  color: rgba(66, 38, 55, 0.62);
  font-weight: 700;
}

.room-link,
.checkout-link,
.plus-actions button,
.moon-btn,
.soft-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.room-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: #fffaf0;
  background: linear-gradient(135deg, #a96f31, #d9a45c);
}

.checkout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  color: #fffaf0;
  background: linear-gradient(135deg, #8a5a2a, #d9a45c);
  box-shadow: 0 16px 34px rgba(169, 111, 49, 0.22);
}

.secondary-link {
  justify-content: center;
  width: 100%;
  color: #422637;
  border: 1px solid rgba(66, 38, 55, 0.14);
  background: rgba(255, 250, 244, 0.64);
  box-shadow: none;
}

.subscriptions article:first-child p {
  color: rgba(66, 38, 55, 0.74);
}

.subscriptions {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 16px;
}

.plus-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 16px;
  width: min(100%, 1180px);
  margin: 0 auto 28px;
}

.plus-card,
.boundary-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper-ink);
  background: rgba(245, 232, 220, 0.94);
  box-shadow: var(--shadow);
}

.plus-card h2,
.boundary-card h2 {
  color: var(--paper-ink);
}

.policy-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1180px);
  margin: 4px auto 28px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(255, 244, 234, 0.16);
  color: rgba(255, 244, 234, 0.68);
}

.policy-footer strong {
  display: block;
  margin-bottom: 6px;
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.policy-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 244, 234, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.policy-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 440px;
}

.policy-footer a {
  color: rgba(255, 244, 234, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
  transition: color 160ms ease;
}

.policy-footer a:hover {
  color: #f1cc7a;
}

.quota-lines {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.quota-lines p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(66, 38, 55, 0.12);
  border-radius: 12px;
  color: rgba(66, 38, 55, 0.72);
  background: rgba(255, 255, 255, 0.5);
}

.quota-lines strong {
  color: #422637;
  font-size: 20px;
}

.plus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plus-actions button {
  border: 1px solid rgba(66, 38, 55, 0.16);
  color: #422637;
  background: #fffaf4;
}

.boundary-card p {
  color: rgba(66, 38, 55, 0.74);
  line-height: 1.65;
}

.room-view {
  background:
    radial-gradient(circle at 18% 16%, rgba(178, 126, 255, 0.28), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(238, 209, 143, 0.16), transparent 18%),
    radial-gradient(circle at 48% 82%, rgba(92, 64, 178, 0.32), transparent 30%),
    linear-gradient(180deg, #090317, #17102f 46%, #24153d);
  color: #fff4ea;
}

.dream-room {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  min-height: min(820px, calc(100vh - 120px));
  padding: clamp(16px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 28%, rgba(255, 230, 177, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(217, 199, 255, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 62%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 78%, rgba(255, 230, 177, 0.18) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(35, 22, 67, 0.86), rgba(19, 12, 42, 0.78)),
    repeating-linear-gradient(115deg, rgba(217, 199, 255, 0.055) 0 1px, transparent 1px 88px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.violet-planet {
  position: absolute;
  top: 12%;
  right: clamp(12px, 5vw, 70px);
  width: clamp(140px, 22vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 0 6px),
    radial-gradient(circle at 38% 34%, #f5e9ff, #b999ff 34%, #6b4bc0 58%, rgba(30, 18, 70, 0.2) 74%),
    linear-gradient(135deg, rgba(168, 128, 255, 0.2), rgba(20, 10, 54, 0));
  box-shadow: 0 0 70px rgba(174, 132, 255, 0.55), inset -28px -22px 46px rgba(26, 13, 62, 0.42);
  opacity: 0.8;
}

.room-view .moon-orb {
  display: none;
}

.dream-room::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(194, 169, 255, 0.22), transparent 30%),
    radial-gradient(circle at 75% 78%, rgba(242, 218, 162, 0.15), transparent 28%),
    radial-gradient(circle at 28% 64%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.moon-orb {
  position: absolute;
  top: 44px;
  right: 9%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, #fff7df, #d7c6ff 44%, #7760bb 66%, rgba(119, 96, 187, 0.08));
  box-shadow: 0 0 80px rgba(194, 169, 255, 0.48);
}

.room-shell-top,
.room-dream-cover,
.room-main-cards,
.room-middle-grid,
.room-lower-grid,
.room-grid,
.room-compose,
.final-summary-card {
  position: relative;
  z-index: 1;
}

.room-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

.room-stage {
  display: none;
}

.room-stage.active {
  display: grid;
  animation: roomReveal 0.55s ease both;
}

.immersive-room-call {
  position: relative;
  z-index: 1;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  gap: 16px;
  min-height: min(760px, calc(100vh - 170px));
}

.room-call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(14, 8, 35, 0.34);
  backdrop-filter: blur(18px);
}

.call-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-identity img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(241, 204, 122, 0.42);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.room-call-top h1 {
  margin: 0;
  color: #fff7ec;
  font-size: clamp(24px, 4vw, 42px);
}

.room-call-top > span {
  padding: 8px 12px;
  border: 1px solid rgba(241, 204, 122, 0.22);
  border-radius: 999px;
  color: rgba(255, 244, 234, 0.82);
  background: rgba(255, 255, 255, 0.07);
}

@keyframes roomReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.room-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.room-shell-top h1 {
  margin-bottom: 0;
  color: #fff7ec;
  font-size: clamp(28px, 4vw, 44px);
}

.room-shell-top > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(209, 178, 104, 0.28);
  border-radius: 999px;
  color: rgba(255, 244, 234, 0.86);
  background: rgba(255, 255, 255, 0.08);
}

.room-dream-cover {
  position: relative;
  display: block;
  min-height: 0;
  margin-bottom: 18px;
  overflow: hidden;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.2), transparent 12%),
    radial-gradient(circle at 64% 48%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 28% 20%, rgba(194, 169, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(54, 33, 96, 0.86), rgba(18, 10, 42, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 48px rgba(0, 0, 0, 0.18);
}

.room-dream-cover::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 58%, rgba(255, 255, 255, 0.22), transparent 25%),
    radial-gradient(ellipse at 45% 76%, rgba(255, 255, 255, 0.1), transparent 34%);
  filter: blur(12px);
}

.room-dream-cover h2 {
  color: #fff7ec;
  font-size: clamp(22px, 3vw, 30px);
}

.room-dream-cover p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 244, 234, 0.78);
  line-height: 1.65;
}

.doro-room-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(209, 178, 104, 0.24);
  border-radius: 22px;
  text-align: center;
  background: rgba(12, 7, 30, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.doro-room-card img {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 136px;
  border: 2px solid rgba(209, 178, 104, 0.45);
  border-radius: 50%;
  background: #050505;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), 0 0 30px rgba(194, 169, 255, 0.18);
}

.doro-room-card h3 {
  margin: 0;
  color: #fff7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.doro-room-card p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 244, 234, 0.74);
}

.event-case-card {
  position: relative;
  z-index: 1;
}

.event-case-card h2 {
  margin-bottom: 12px;
}

.event-case-form {
  display: grid;
  gap: 12px;
}

.single-case-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.event-case-form label,
.checkin-card label {
  display: grid;
  gap: 7px;
  color: #f1cc7a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-case-form input,
.event-case-form textarea,
.checkin-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  outline: 0;
  color: #fff7ec;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.event-case-form input {
  min-height: 42px;
  padding: 0 13px;
}

.event-case-form textarea,
.checkin-card textarea {
  min-height: 72px;
  height: 72px;
  padding: 12px 13px;
  resize: vertical;
}

.single-case-form textarea {
  min-height: 96px;
  height: 96px;
}

.private-chat-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(173, 151, 210, 0.2);
  border-radius: 24px;
  background: rgba(18, 11, 42, 0.54);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.chat-thread {
  display: grid;
  gap: 14px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.immersive-thread {
  align-content: end;
  max-height: none;
  min-height: 420px;
  padding: clamp(10px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 5, 28, 0.12), rgba(11, 5, 28, 0.34));
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(86%, 720px);
  animation: bubbleIn 0.64s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.soft-arrival {
  animation-delay: 0.18s;
}

.delayed-card {
  opacity: 0;
  animation: bubbleIn 0.72s cubic-bezier(0.2, 0.85, 0.2, 1) 0.95s both;
}

.chat-message p {
  margin: 0;
  padding: 13px 15px;
  border-radius: 20px 20px 20px 8px;
  line-height: 1.55;
}

.chat-message.doro {
  justify-self: start;
}

.chat-message.doro img {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(241, 204, 122, 0.45);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.chat-message.doro p {
  color: #2c183d;
  background: rgba(255, 251, 244, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.chat-message.user {
  justify-self: end;
}

.chat-message.user p {
  color: #fffdf8;
  background: linear-gradient(135deg, rgba(132, 95, 215, 0.76), rgba(177, 126, 206, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px 20px 8px 20px;
}

.card-message {
  max-width: min(92%, 760px);
}

.card-message > img {
  margin-top: 6px;
}

.chat-collection-card {
  position: relative;
  width: min(100%, 620px);
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(193, 139, 55, 0.66);
  border-radius: 22px;
  color: #352044;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 232, 0.7)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.95), transparent 26%),
    repeating-linear-gradient(105deg, rgba(154, 114, 56, 0.035) 0 1px, transparent 1px 9px),
    #fbf5e9;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.56) inset,
    0 0 0 5px rgba(193, 139, 55, 0.12) inset;
  animation: letterFloatIn 0.62s ease both;
}

.chat-collection-card::before,
.chat-collection-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.chat-collection-card::before {
  inset: 9px;
  border: 1px solid rgba(193, 139, 55, 0.38);
  border-radius: 17px;
  background:
    linear-gradient(90deg, transparent 0 26px, rgba(193, 139, 55, 0.35) 26px 27px, transparent 27px calc(100% - 27px), rgba(193, 139, 55, 0.35) calc(100% - 27px) calc(100% - 26px), transparent calc(100% - 26px)),
    linear-gradient(0deg, transparent 0 26px, rgba(193, 139, 55, 0.35) 26px 27px, transparent 27px calc(100% - 27px), rgba(193, 139, 55, 0.35) calc(100% - 27px) calc(100% - 26px), transparent calc(100% - 26px));
}

.chat-collection-card::after {
  top: 13px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(193, 139, 55, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 42%, transparent 0 10px, rgba(193, 139, 55, 0.66) 11px 12px, transparent 13px),
    radial-gradient(circle at 44% 48%, rgba(193, 139, 55, 0.24), transparent 58%);
}

.chat-collection-card h2 {
  position: relative;
  z-index: 1;
  color: #40264f;
  font-size: 26px;
}

.chat-collection-card .eyebrow {
  position: relative;
  z-index: 1;
  color: #b17a24;
}

.chat-collection-card p,
.chat-collection-card label,
.chat-collection-card .insight-sections {
  position: relative;
  z-index: 1;
}

.chat-collection-card textarea {
  position: relative;
  z-index: 1;
  color: #3c244f;
  border-color: rgba(177, 122, 36, 0.24);
  background: rgba(255, 255, 255, 0.66);
}

.chat-collection-card .moon-btn,
.chat-collection-card .soft-btn {
  position: relative;
  z-index: 1;
}

.inline-tarot-card-body,
.inline-insight-card-body,
.inline-lock-card-body,
.inline-checkin-card-body,
.inline-room-paywall-card-body {
  padding: 24px;
}

.inline-insight-card-body {
  border-color: rgba(205, 150, 55, 0.5);
  background:
    radial-gradient(circle at 92% 4%, rgba(240, 207, 132, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 236, 0.76));
}

.doro-long-bubble {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(177, 122, 36, 0.22);
  border-radius: 24px 24px 24px 8px;
  color: #40264f;
  background:
    radial-gradient(circle at 96% 0%, rgba(218, 174, 91, 0.13), transparent 24%),
    rgba(255, 252, 246, 0.82);
  box-shadow: 0 16px 42px rgba(83, 49, 20, 0.12);
}

.doro-long-bubble p {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
}

.doro-long-bubble p:first-child {
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
}

.inline-room-paywall-card-body {
  border-color: rgba(205, 150, 55, 0.8);
  background:
    radial-gradient(circle at 88% 12%, rgba(240, 207, 132, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 234, 0.82)),
    repeating-linear-gradient(105deg, rgba(154, 114, 56, 0.04) 0 1px, transparent 1px 8px),
    #fffaf0;
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 0 6px rgba(193, 139, 55, 0.15) inset;
  animation: interpretationSlideOpen 0.74s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.locked-interpretation-panel {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(64, 38, 79, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8), transparent 34%),
    rgba(255, 255, 255, 0.58);
  animation: interpretationSlideOpen 0.82s cubic-bezier(0.2, 0.85, 0.2, 1) 0.12s both;
}

.locked-interpretation-content {
  display: grid;
  gap: 14px;
  padding: 24px;
  filter: blur(5px);
  transform: scale(1.012);
  user-select: none;
}

.locked-interpretation-content p {
  max-width: 760px;
  margin: 0;
  color: #40264f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.72;
}

.locked-interpretation-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  color: #40264f;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 252, 246, 0.9), rgba(255, 252, 246, 0.62) 44%, rgba(255, 252, 246, 0.18));
}

.locked-interpretation-overlay strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(177, 122, 36, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  font-size: 28px;
  box-shadow: 0 14px 36px rgba(83, 49, 20, 0.18);
}

.locked-interpretation-overlay span {
  max-width: 420px;
  color: rgba(64, 38, 79, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
}

.overlay-paywall-link {
  width: min(100%, 360px);
  min-height: 54px;
  margin-top: 6px;
  color: #fffdf8;
  text-decoration: none;
  font: 800 16px/1.1 Inter, system-ui, sans-serif;
  box-shadow:
    0 18px 42px rgba(67, 36, 19, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.room-paywall-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(64, 38, 79, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.room-paywall-summary span {
  color: rgba(64, 38, 79, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.room-paywall-summary strong {
  color: #40264f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.room-paywall-summary small {
  color: rgba(64, 38, 79, 0.68);
  line-height: 1.45;
}

.room-paywall-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

@keyframes letterFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(8deg) scale(0.985);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.982);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes interpretationSlideOpen {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(18px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    max-height: 680px;
    transform: translateY(0);
    filter: blur(0);
  }
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.room-input-dock {
  display: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(13, 7, 33, 0.46);
  backdrop-filter: blur(18px);
}

.room-input-dock.active {
  display: grid;
  animation: roomReveal 0.36s ease both;
}

.chat-compose textarea {
  min-height: 54px;
  height: 54px;
  padding: 15px 16px;
  border: 1px solid rgba(173, 151, 210, 0.26);
  border-radius: 18px;
  color: #fff7ec;
  background: rgba(16, 10, 34, 0.62);
  resize: none;
  outline: 0;
}

.chat-compose textarea:disabled {
  opacity: 0.58;
  cursor: wait;
}

.event-case-form input:focus,
.event-case-form textarea:focus,
.checkin-card textarea:focus,
.room-compose textarea:focus {
  border-color: rgba(241, 204, 122, 0.58);
  box-shadow: 0 0 0 4px rgba(115, 83, 199, 0.18);
}

.constellation-lines {
  position: absolute;
  top: 30px;
  right: 120px;
  width: 230px;
  height: 120px;
  opacity: 0.62;
  background:
    linear-gradient(28deg, transparent 49%, rgba(241, 204, 122, 0.45) 50%, transparent 51%),
    linear-gradient(-18deg, transparent 49%, rgba(217, 199, 255, 0.35) 50%, transparent 51%),
    radial-gradient(circle at 12% 72%, #f1cc7a 0 2px, transparent 3px),
    radial-gradient(circle at 46% 28%, #fff7ec 0 2px, transparent 3px),
    radial-gradient(circle at 76% 58%, #d9c7ff 0 2px, transparent 3px);
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-meta span,
.room-status-card small {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(173, 151, 210, 0.24);
  border-radius: 999px;
  color: rgba(255, 244, 234, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.room-main-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
  opacity: 0.72;
}

.context-strip,
.chat-room-note,
.state-sink,
.immersive-day-flow {
  display: none !important;
}

.room-middle-grid,
.room-lower-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.day-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.day-step {
  display: none;
}

.day-step.revealed {
  display: grid;
  animation: roomReveal 0.5s ease both;
}

.room-middle-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.18fr);
}

.room-lower-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.room-main-cards article,
.dream-card,
.room-compose,
.final-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.day-flow .dream-card {
  border-radius: 26px;
  background: rgba(255, 251, 244, 0.1);
}

.day-flow .tarot-guide-card,
.day-flow .insight-card,
.day-flow .checkin-card,
.day-flow .room-lock-card {
  position: relative;
  margin-left: 48px;
}

.day-flow .tarot-guide-card::before,
.day-flow .insight-card::before,
.day-flow .checkin-card::before,
.day-flow .room-lock-card::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(241, 204, 122, 0.45);
  border-radius: 50%;
  background: url("./assets/dorothy-avatar.png") center 18% / cover, #050505;
}

.room-lock-card {
  border-color: rgba(241, 204, 122, 0.24);
  background:
    radial-gradient(circle at 88% 16%, rgba(241, 204, 122, 0.18), transparent 20%),
    rgba(255, 251, 244, 0.1);
}

.room-lock-card h2 {
  margin-bottom: 8px;
}

.room-lock-card p {
  max-width: 560px;
}

.room-main-cards article {
  padding: 18px;
}

.room-main-cards span,
.dream-card .eyebrow,
.final-summary-card .eyebrow,
.room-compose .eyebrow {
  color: #f1cc7a;
}

.room-main-cards strong {
  display: block;
  margin-top: 9px;
  color: #fff7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.18;
}

.dream-card {
  padding: 18px;
}

.dream-card h2,
.final-summary-card h2 {
  color: #fff7ec;
  font-size: clamp(22px, 3vw, 30px);
}

.dream-card p,
.final-summary-card li span,
.room-compose textarea {
  color: rgba(255, 244, 234, 0.74);
  line-height: 1.65;
}

.checkin-card {
  display: grid;
  gap: 12px;
}

.checkin-card h2 {
  margin-bottom: 0;
}

.insight-sections {
  display: grid;
  gap: 10px;
}

.insight-sections section {
  padding: 12px 13px;
  border: 1px solid rgba(177, 122, 36, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 247, 229, 0.28));
}

.insight-sections span {
  display: block;
  margin-bottom: 5px;
  color: #a36f22;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-sections p {
  color: #40264f;
  margin: 0;
}

.tarot-guide-card {
  display: grid;
  gap: 12px;
}

.single-tarot-card {
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 0.66;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(177, 122, 36, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 44%, rgba(177, 122, 36, 0.16), transparent 28%),
    repeating-linear-gradient(135deg, rgba(177, 122, 36, 0.05) 0 1px, transparent 1px 8px),
    rgba(255, 252, 246, 0.74);
  box-shadow: 0 16px 34px rgba(83, 49, 20, 0.18);
}

.single-tarot-card.is-drawing {
  overflow: visible;
}

.three-card-spread {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 520px);
  aspect-ratio: auto;
  gap: 14px;
  padding: 14px;
  border-color: rgba(177, 122, 36, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.75), transparent 35%),
    rgba(255, 252, 246, 0.42);
}

.one-card-spread {
  width: 150px;
}

.drawn-mini-card {
  display: grid;
  gap: 8px;
  margin: 0;
  opacity: 0;
  transform: translateY(18px) rotate(-2deg) scale(0.96);
  animation: cardRise 0.62s ease both;
  animation-delay: var(--flip-delay, 0ms);
}

.drawn-mini-card.revealed {
  opacity: 1;
}

.mini-card-front-face {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  aspect-ratio: 0.66;
  overflow: hidden;
  border: 1px solid rgba(177, 122, 36, 0.52);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(160deg, #fffaf0, #ead8b6);
  box-shadow: 0 12px 24px rgba(83, 49, 20, 0.2);
}

.mini-card-front-face img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card-name {
  grid-area: 1 / 1;
  z-index: 1;
  width: 100%;
  padding: 9px 7px;
  color: #6e4617;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.88));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}

.drawn-mini-card.is-reversed .mini-card-front-face img {
  transform: rotate(180deg);
}

.mini-card-back-face,
.three-card-spread .mini-card-back {
  width: 100%;
  aspect-ratio: 0.66;
  border: 1px solid rgba(177, 122, 36, 0.48);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 24px, rgba(177, 122, 36, 0.36) 25px 26px, transparent 27px 42px, rgba(177, 122, 36, 0.2) 43px 44px, transparent 45px),
    conic-gradient(from 0deg at 50% 52%, transparent 0 12deg, rgba(177, 122, 36, 0.28) 12deg 14deg, transparent 14deg 45deg, rgba(177, 122, 36, 0.18) 45deg 47deg, transparent 47deg 90deg),
    radial-gradient(circle at 26% 18%, rgba(177, 122, 36, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255, 252, 246, 0.9) 0 1px, transparent 2px),
    linear-gradient(145deg, #1b1743, #0f1230 52%, #211a4a);
  box-shadow: 0 12px 24px rgba(83, 49, 20, 0.2);
}

.mini-card-back-face {
  display: grid;
  place-items: center;
}

.mini-card-back-face span,
.mini-card-back {
  color: #d8aa5f;
  text-shadow: 0 0 16px rgba(217, 164, 92, 0.5);
}

.three-card-spread .mini-card-back {
  display: grid;
  place-items: center;
  animation: miniCardBreath 3.2s ease-in-out infinite;
}

.three-card-spread .mini-card-back:nth-child(2) {
  animation-delay: 0.28s;
}

.three-card-spread .mini-card-back:nth-child(3) {
  animation-delay: 0.56s;
}

.drawn-mini-card figcaption {
  color: #8e6123;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(16px) rotateY(20deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateY(0);
  }
}

@keyframes miniFlipReveal {
  0% {
    transform: translateY(16px) rotateY(0deg) scale(0.96);
    filter: brightness(0.9) blur(1px);
  }

  42% {
    transform: translateY(-6px) rotateY(0deg) scale(1.02);
    filter: brightness(1.18) blur(0);
  }

  100% {
    transform: translateY(0) rotateY(180deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes miniCardBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 24px rgba(83, 49, 20, 0.2), 0 0 0 rgba(217, 164, 92, 0);
  }

  48% {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 18px 34px rgba(83, 49, 20, 0.24), 0 0 34px rgba(217, 164, 92, 0.18);
  }
}

.single-tarot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-tarot-card span,
.mini-card-back {
  color: #b17a24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-align: center;
}

.room-status-card {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(173, 151, 210, 0.18);
}

.room-status-card span {
  color: rgba(255, 244, 234, 0.86);
  font-weight: 800;
}

.timeline-card ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-card li {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid rgba(209, 178, 104, 0.46);
  color: rgba(255, 244, 234, 0.76);
}

.timeline-card li span {
  color: #f1cc7a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arc-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.arc-flow span {
  padding: 10px 14px;
  border: 1px solid rgba(173, 151, 210, 0.28);
  border-radius: 999px;
  color: rgba(255, 244, 234, 0.84);
  background: rgba(255, 255, 255, 0.08);
}

.arc-flow span:not(:last-child)::after {
  content: "→";
  margin-left: 12px;
  color: rgba(241, 204, 122, 0.72);
}

.arc-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.moon-btn {
  border: 1px solid rgba(155, 124, 53, 0.22);
  color: #fffdf8;
  background: linear-gradient(135deg, #7353c7, #d2b46d);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.soft-btn {
  border: 1px solid rgba(173, 151, 210, 0.26);
  color: rgba(255, 244, 234, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.room-compose {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  margin-top: 16px;
  padding: 22px;
}

.compact-compose {
  grid-template-columns: 1fr;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.room-compose textarea {
  width: 100%;
  min-height: 132px;
  height: 132px;
  padding: 18px;
  border: 1px solid rgba(173, 151, 210, 0.26);
  border-radius: 18px;
  color: #fff7ec;
  background: rgba(16, 10, 34, 0.54);
  box-shadow: none;
}

.room-actions {
  display: grid;
  align-content: center;
  gap: 10px;
}

.compact-compose .room-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-thread {
  max-height: 300px;
  padding: 8px;
  border: 1px solid rgba(173, 151, 210, 0.16);
  border-radius: 18px;
  background: rgba(10, 6, 28, 0.28);
}

.daily-summary-inline {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(173, 151, 210, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.daily-summary-inline p,
.daily-summary-inline dd {
  color: rgba(255, 244, 234, 0.74);
}

.daily-summary-inline dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.daily-summary-inline dt {
  color: #f1cc7a;
  font-weight: 800;
}

.daily-summary-inline dd {
  margin: 0;
}

.final-summary-card {
  display: none;
  margin-top: 16px;
  padding: 24px;
  border-color: rgba(209, 178, 104, 0.42);
  background:
    radial-gradient(circle at 94% 8%, rgba(244, 221, 169, 0.18), transparent 18%),
    rgba(31, 21, 61, 0.68);
}

.final-summary-card.expanded {
  display: block;
}

.hidden-control {
  display: none;
}

.summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.final-summary-body {
  display: none;
  margin-top: 18px;
}

.final-summary-card.expanded .final-summary-body {
  display: block;
}

.final-summary-body ol {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.final-summary-body li strong {
  display: block;
  color: #fff7ec;
  margin-bottom: 4px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.drawer.open {
  display: flex;
}

.drawer-card {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid rgba(244, 205, 154, 0.26);
  border-radius: 14px;
  color: var(--paper-ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.drawer-card .draw-btn {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 15px;
}

.drawer-card .draw-btn::before {
  content: none;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(66, 38, 55, 0.14);
  border-radius: 50%;
  color: var(--paper-ink);
  background: transparent;
  font-size: 22px;
}

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(66, 38, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
  .home-hero,
  .plan-hero,
  .subscriptions,
  .plus-dashboard,
  .room-focus-panel,
  .room-grid,
  .ritual-input {
    grid-template-columns: 1fr;
  }

  .reading-grid {
    grid-template-columns: 1fr;
  }

  .room-dream-cover,
  .event-case-form,
  .room-middle-grid,
  .room-lower-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-footer {
    display: grid;
  }

  .policy-footer nav {
    justify-content: flex-start;
    max-width: none;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-summary-card,
  .insight-card {
    grid-column: auto;
    grid-row: auto;
  }

  .summary-head {
    display: grid;
  }

  .summary-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px;
  }

  .brand {
    font-size: 22px;
  }

  .topbar nav {
    gap: 12px;
  }

  .topbar a:not(.brand),
  .sign-in {
    padding: 0;
    font-size: 12px;
  }

  .view {
    padding: 82px 14px 38px;
  }

  .home-hero {
    padding: 34px 14px 18px;
    border-radius: 18px;
  }

  h1 {
    font-size: 44px;
  }

  .question-card {
    grid-template-columns: 1fr 50px;
  }

  textarea {
    height: 54px;
    min-height: 54px;
    padding: 16px 18px;
    font-size: 14px;
  }

  .question-card .draw-btn {
    width: 50px;
    min-height: 50px;
  }

  .draw-panel {
    min-height: 540px;
  }

  .spread {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 10px;
  }

  .card-front span {
    font-size: 16px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .billing-options {
    grid-template-columns: 1fr;
  }

  .offer-card.featured {
    transform: none;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .room-hero {
    grid-template-columns: 1fr;
  }

  .room-hero img {
    width: 72px;
    height: 72px;
  }

  .dream-room {
    padding: 18px;
    border-radius: 22px;
  }

  .moon-orb {
    width: 86px;
    height: 86px;
    right: 18px;
  }

  .room-shell-top {
    display: grid;
  }

  .room-dream-cover {
    padding: 18px;
  }

  .doro-room-card {
    justify-items: start;
    text-align: left;
  }

  .event-case-form label:last-child {
    grid-column: auto;
  }

  .plus-actions,
  .room-actions,
  .summary-actions {
    display: grid;
  }
}

/* ── Plan page: Night Room promo strip ── */
.room-promo-strip {
  padding: 64px 24px;
  background: linear-gradient(160deg, #1a0f2e 0%, #0d0818 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.room-promo-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.room-promo-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(160, 100, 255, 0.25);
}

.room-promo-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-promo-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f0e6ff;
  margin: 0;
}

.room-promo-text p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.room-promo-link {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 24px;
  background: rgba(160, 100, 255, 0.18);
  border: 1px solid rgba(160, 100, 255, 0.4);
  border-radius: 40px;
  color: #d4aaff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.room-promo-link:hover {
  background: rgba(160, 100, 255, 0.3);
  border-color: rgba(160, 100, 255, 0.65);
}

@media (max-width: 600px) {
  .room-promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .room-promo-avatar {
    width: 72px;
    height: 72px;
  }
}
