/*
 * Maison Oree — experience tarot et conversations.
 * Les composants prolongent volontairement les variables et la typographie du theme.
 */

:root {
  --oree-success: #2f684c;
  --oree-success-soft: #e9f0eb;
  --oree-busy: #9a611d;
  --oree-busy-soft: #f7ead8;
  --oree-offline: #98453e;
  --oree-offline-soft: #f8e9e6;
  --oree-danger: #9a4138;
  --oree-danger-soft: #f8ebe7;
  --oree-chat-viewport-height: 100dvh;
}

.interactive-page [hidden],
.oree-chat-app [hidden] {
  display: none !important;
}

.interactive-page button,
.oree-chat-app button,
.practitioner-actions .button,
.practitioner-actions .text-link {
  min-height: 44px;
}

.interactive-page button:focus-visible,
.oree-chat-app button:focus-visible,
.interactive-page textarea:focus-visible,
.oree-chat-app textarea:focus-visible,
.practitioner-actions a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Homepage teaser --------------------------------------------------------- */

.interactive-teaser {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 82% 28%, rgba(200, 157, 86, .13), transparent 28rem),
    linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
}

.interactive-teaser::before {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 84px 84px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}

.interactive-teaser-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
  align-items: center;
}

.interactive-teaser-grid > div:first-child {
  max-width: 720px;
}

.interactive-teaser .eyebrow {
  color: var(--gold-light);
}

.interactive-teaser h2 {
  max-width: 720px;
  font-size: clamp(2.65rem, 7vw, 4.8rem);
}

.interactive-teaser p:not(.eyebrow) {
  max-width: 650px;
  color: #c4cecc;
}

.interactive-teaser .button {
  margin-top: 10px;
}

.interactive-teaser-grid > div:first-child > small {
  display: block;
  margin-top: 17px;
  color: #98a6a7;
  font-size: .7rem;
  line-height: 1.55;
}

.teaser-deck {
  position: relative;
  width: min(78vw, 330px);
  aspect-ratio: 1 / .8;
  margin: 5px auto 20px;
}

.teaser-deck span {
  position: absolute;
  top: 8%;
  left: 50%;
  display: block;
  width: 38%;
  aspect-ratio: 5 / 8;
  background:
    radial-gradient(circle at center, var(--gold-light) 0 3px, transparent 4px),
    radial-gradient(circle at center, transparent 0 24%, rgba(230,201,141,.75) 25% 26%, transparent 27%),
    linear-gradient(135deg, transparent 48%, rgba(230,201,141,.45) 49% 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(230,201,141,.45) 49% 51%, transparent 52%),
    var(--night-3);
  border: 1px solid rgba(230, 201, 141, .72);
  box-shadow: inset 0 0 0 8px var(--night-3), inset 0 0 0 9px rgba(230,201,141,.28), 0 22px 55px rgba(0,0,0,.28);
  transform-origin: 50% 92%;
}

.teaser-deck span:nth-child(1) { transform: translateX(-90%) rotate(-13deg); }
.teaser-deck span:nth-child(2) { z-index: 2; transform: translateX(-50%) translateY(-8%) rotate(0); }
.teaser-deck span:nth-child(3) { transform: translateX(-10%) rotate(13deg); }

/* Practitioner availability and contact --------------------------------- */

.practitioner-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 7px 20px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  font-weight: 760;
}

.practitioner-status small {
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,.26);
  color: rgba(255,255,255,.78);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.practitioner-status.availability-available {
  background: rgba(47, 104, 76, .96);
  border-color: rgba(212, 241, 224, .7);
}

.practitioner-status.availability-available::before {
  background: #d8f1e2;
  box-shadow: 0 0 0 3px rgba(216,241,226,.18);
}

.practitioner-status.availability-busy {
  background: rgba(154, 97, 29, .96);
  border-color: rgba(255, 229, 188, .72);
}

.practitioner-status.availability-busy::before {
  background: #ffe2b3;
  box-shadow: 0 0 0 3px rgba(255,226,179,.16);
}

.practitioner-status.availability-offline {
  background: rgba(152, 69, 62, .96);
  border-color: rgba(255, 218, 213, .7);
}

.practitioner-status.availability-offline::before {
  background: #ffdad5;
}

.practitioner-actions {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.practitioner-actions.is-compact {
  margin-top: 18px;
  justify-content: space-between;
}

.practitioner-actions.is-compact .text-link {
  min-width: 0;
  font-size: .68rem;
}

.practitioner-actions .button {
  white-space: nowrap;
}

.button.button-disabled {
  color: #707a7d;
  background: #e8e8e3;
  border-color: #d4d7d5;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.button.availability-button {
  justify-content: center;
  font-weight: 760;
}

.button.availability-button-available {
  color: #fff;
  background: var(--oree-success);
  border-color: var(--oree-success);
  box-shadow: 0 12px 28px rgba(47, 104, 76, .2);
}

.button.availability-button-available:hover {
  color: #fff;
  background: #25583f;
  border-color: #25583f;
  box-shadow: 0 15px 32px rgba(47, 104, 76, .28);
}

.button.availability-button-busy.button-disabled {
  color: #fff;
  background: var(--oree-busy);
  border-color: var(--oree-busy);
  box-shadow: none;
  opacity: .92;
}

.button.availability-button-offline.button-disabled {
  color: #fff;
  background: var(--oree-offline);
  border-color: var(--oree-offline);
  box-shadow: none;
  opacity: .92;
}

.profile-contact-summary {
  max-width: 640px;
  margin: 26px 0 30px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
}

.profile-contact-summary > div {
  display: flex;
  margin-bottom: 13px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.profile-contact-summary > div small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-contact-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
}

.profile-contact-summary b {
  color: var(--ink);
}

.availability-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--oree-offline);
}

.availability-dot.availability-available {
  background: var(--oree-success);
  box-shadow: 0 0 0 4px var(--oree-success-soft);
}

.availability-dot.availability-busy {
  background: var(--oree-busy);
  box-shadow: 0 0 0 4px var(--oree-busy-soft);
}

.availability-dot.availability-offline {
  background: var(--oree-offline);
  box-shadow: 0 0 0 4px var(--oree-offline-soft);
}

/* Interactive reading ---------------------------------------------------- */

.oree-interactive-page {
  background:
    radial-gradient(circle at 90% 5%, rgba(200,157,86,.09), transparent 28rem),
    var(--ivory);
}

.oree-interactive-page .page-shell {
  width: min(100%, 1320px);
  padding-top: 0;
}

.oree-interactive-page .breadcrumbs {
  width: min(calc(100% - 32px), 1200px);
  margin: 26px auto 18px;
}

.oree-interactive-page .page-content {
  min-width: 0;
}

.interactive-page {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
  padding: 38px 0 20px;
}

.interactive-intro {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.interactive-intro h1 {
  margin-bottom: 19px;
  font-size: clamp(3.15rem, 12vw, 6.5rem);
}

.interactive-intro > p:not(.eyebrow) {
  max-width: 730px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1rem;
}

.interactive-intro .demo-notice {
  max-width: 780px;
  margin: 25px auto 0;
  text-align: left;
}

.interactive-progress {
  display: grid;
  width: min(100%, 940px);
  margin: 0 auto 22px;
  grid-template-columns: repeat(4, 1fr);
}

.interactive-progress span {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8b9395;
  border-bottom: 1px solid var(--line);
  font-size: 0;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.interactive-progress span::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.interactive-progress b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .66rem;
}

.interactive-progress span.is-current,
.interactive-progress span.is-complete {
  color: var(--ink);
}

.interactive-progress span.is-current::after,
.interactive-progress span.is-complete::after {
  transform: scaleX(1);
}

.interactive-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(11,23,32,.09);
}

.interactive-stage::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at top right, rgba(230,201,141,.2), transparent 68%);
  content: "";
  pointer-events: none;
}

.interactive-step {
  position: relative;
  z-index: 1;
  padding: 38px 20px 42px;
}

.interactive-step > h2 {
  max-width: 800px;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.interactive-step .step-intro {
  margin-top: -4px;
  font-size: .94rem;
}

.theme-choices {
  display: grid;
  margin-top: 30px;
  gap: 12px;
}

.theme-choices button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 116px;
  padding: 18px 18px 18px 72px;
  align-content: center;
  color: var(--ink);
  background: rgba(251,248,241,.68);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.theme-choices button:hover,
.theme-choices button:focus-visible,
.theme-choices button.is-selected {
  background: #fbf3e3;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(200,157,86,.18);
  transform: translateY(-2px);
}

.theme-choices button > span {
  position: absolute;
  top: 50%;
  left: 19px;
  display: grid;
  width: 39px;
  height: 50px;
  place-items: center;
  color: var(--gold-dark);
  border: 1px solid rgba(142,104,47,.55);
  font-family: var(--serif);
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.theme-choices strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.theme-choices small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.45;
}

#interactive-question {
  display: block;
  width: 100%;
  min-height: 190px;
  margin-top: 26px;
  padding: 20px;
  resize: vertical;
  color: var(--ink);
  background: #faf7f0;
  border: 1px solid var(--line);
  border-radius: 0;
  line-height: 1.65;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#interactive-question:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(200,157,86,.12);
}

.interactive-page .field-meta {
  display: flex;
  padding: 9px 1px 0;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
}

.interactive-page .field-meta > span:last-child {
  flex: 0 0 auto;
}

.interactive-actions {
  display: flex;
  margin-top: 35px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.interactive-error {
  min-height: 1.35em;
  margin: 15px 0 0;
  color: var(--oree-danger);
  font-size: .79rem;
}

.selection-counter {
  display: inline-flex;
  min-height: 38px;
  margin: 6px 0 24px;
  padding: 8px 13px;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.selection-counter strong {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.tarot-deck-grid {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  perspective: 1200px;
}

.tarot-card-button {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 5 / 8;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
}

.tarot-card-button::after {
  position: absolute;
  z-index: -1;
  right: 15%;
  bottom: 2%;
  left: 15%;
  height: 12%;
  border-radius: 50%;
  background: rgba(11,23,32,.2);
  content: "";
  filter: blur(10px);
  opacity: 0;
  transition: opacity .25s ease;
}

.tarot-card-button:hover::after,
.tarot-card-button:focus-visible::after,
.tarot-card-button.is-revealed::after {
  opacity: .7;
}

.tarot-card-inner {
  position: absolute;
  inset: 0;
  display: grid;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.2,.68,.2,1);
}

.tarot-card-button:hover .tarot-card-inner,
.tarot-card-button:focus-visible .tarot-card-inner {
  transform: translateY(-5px) rotateZ(-.5deg);
}

.tarot-card-button.is-revealed .tarot-card-inner,
.tarot-card-button[aria-pressed="true"] .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-button.is-revealed:hover .tarot-card-inner,
.tarot-card-button.is-revealed:focus-visible .tarot-card-inner,
.tarot-card-button[aria-pressed="true"]:hover .tarot-card-inner,
.tarot-card-button[aria-pressed="true"]:focus-visible .tarot-card-inner {
  transform: translateY(-4px) rotateY(180deg);
}

.tarot-card-back,
.tarot-card-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(142,104,47,.8);
  box-shadow: 0 9px 22px rgba(11,23,32,.15);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tarot-card-back {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--gold-light) 0 2px, transparent 3px),
    radial-gradient(circle at center, transparent 0 22%, rgba(230,201,141,.82) 23% 24%, transparent 25% 37%, rgba(230,201,141,.32) 38% 39%, transparent 40%),
    repeating-conic-gradient(from 45deg at 50% 50%, rgba(230,201,141,.2) 0deg 10deg, transparent 10deg 20deg),
    var(--night-2);
  box-shadow: inset 0 0 0 6px var(--night-2), inset 0 0 0 7px rgba(230,201,141,.48), 0 9px 22px rgba(11,23,32,.15);
}

.tarot-card-back::before,
.tarot-card-back::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(230,201,141,.72);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.tarot-card-back::after {
  width: 24%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tarot-card-back .tarot-card-rosette {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(230,201,141,.55);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: .88rem;
}

.tarot-card-front {
  display: grid;
  padding: 13px 8px;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  color: #253b43;
  background:
    radial-gradient(circle at 50% 45%, rgba(230,201,141,.24), transparent 44%),
    #f5ead3;
  box-shadow: inset 0 0 0 6px #f5ead3, inset 0 0 0 7px rgba(142,104,47,.48), 0 9px 22px rgba(11,23,32,.15);
  text-align: center;
  transform: rotateY(180deg);
}

.tarot-card-front::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(142,104,47,.55);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.tarot-card-front > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tarot-face-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

.tarot-card-front small,
.tarot-card-front .card-number,
.tarot-card-front .card-roman,
.tarot-card-front .tarot-card-numeral {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: clamp(.55rem, 2.5vw, .72rem);
  letter-spacing: .08em;
}

.tarot-card-front strong,
.tarot-card-front .card-name,
.tarot-card-front .tarot-card-name {
  align-self: end;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(.65rem, 2.7vw, .95rem);
  font-weight: 500;
  line-height: 1.05;
}

.tarot-card-front .card-symbol,
.tarot-card-front .tarot-card-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  margin: auto;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.tarot-card-button.is-selected,
.tarot-card-button.is-revealed {
  cursor: default;
}

.tarot-card-button.is-loading {
  cursor: wait;
}

.tarot-card-button.is-loading .tarot-card-inner {
  opacity: .68;
}

.tarot-card-button.is-loading::before {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(230,201,141,.35);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  animation: oree-spin .8s linear infinite;
}

@keyframes oree-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.reading-result-cards {
  display: grid;
  margin-top: 28px;
  gap: 14px;
}

.reading-result-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 25px 22px 24px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: #faf6ed;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.reading-result-card::after {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(142,104,47,.52);
  content: "◇";
  font-family: var(--serif);
}

.reading-result-card > .tarot-face-content {
  width: 72px;
  min-height: 116px;
  padding: 9px 6px;
  color: #253b43;
  background: #f1e3c8;
  border: 1px solid rgba(142,104,47,.58);
  box-shadow: inset 0 0 0 4px #f1e3c8, inset 0 0 0 5px rgba(142,104,47,.34);
  text-align: center;
}

.reading-result-card > .tarot-face-content::before {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(142,104,47,.42);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.reading-result-card .tarot-card-numeral,
.reading-result-card .tarot-card-symbol,
.reading-result-card .tarot-card-name {
  position: relative;
  z-index: 1;
}

.reading-result-card .tarot-card-numeral {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: .56rem;
}

.reading-result-card .tarot-card-symbol {
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--serif);
}

.reading-result-card .tarot-card-name {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: .6rem;
  font-weight: 500;
  line-height: 1.05;
}

.reading-result-copy {
  min-width: 0;
}

.reading-result-card small,
.reading-result-card .reading-position {
  display: block;
  max-width: calc(100% - 26px);
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.reading-result-card h3,
.reading-result-card strong,
.reading-result-card .reading-card-name {
  display: block;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.12;
}

.reading-result-card p,
.reading-result-card .reading-card-text {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.62;
}

.reading-synthesis {
  margin-top: 18px;
  padding: 26px 23px;
  color: var(--ivory);
  background: var(--night-2);
}

.reading-synthesis h3 {
  margin-bottom: 9px;
  color: var(--gold-light);
}

.reading-synthesis p {
  max-width: 850px;
  margin-bottom: 16px;
  color: #d4dcda;
}

.reading-synthesis small {
  display: block;
  max-width: 880px;
  color: #99a8a8;
  font-size: .69rem;
  line-height: 1.55;
}

.reading-next {
  display: grid;
  margin: 16px 0 20px;
  padding: 25px 23px;
  gap: 18px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
}

.reading-next h3 {
  margin-bottom: 5px;
}

.reading-next p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

.reading-next .button {
  width: 100%;
}

/* Chat layout ------------------------------------------------------------ */

.oree-chat-page {
  overflow: hidden;
  background: var(--cream);
}

.oree-chat-page .site-main {
  min-height: 0;
}

.oree-chat-page .page-shell {
  width: 100%;
  max-width: none;
  height: calc(var(--oree-chat-viewport-height, var(--chat-viewport-height, 100dvh)) - 101px);
  min-height: 0;
  padding: 0;
}

.oree-chat-page .breadcrumbs,
.oree-chat-page .site-footer {
  display: none;
}

.oree-chat-page .page-content {
  min-height: 0;
  height: 100%;
}

.chat-page-shell {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}

.chat-context-panel {
  position: relative;
  max-height: min(33dvh, 245px);
  padding: 17px 18px;
  flex: 0 0 auto;
  overflow: auto;
  color: var(--ivory);
  background:
    radial-gradient(circle at 100% 0, rgba(200,157,86,.16), transparent 16rem),
    var(--night);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.chat-context-panel .eyebrow {
  margin-bottom: 7px;
  color: var(--gold-light);
  font-size: .6rem;
}

.chat-context-panel h1 {
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.chat-context-panel p {
  margin-bottom: 11px;
  color: #c1ccca;
  font-size: .76rem;
  line-height: 1.5;
}

.chat-context-empty {
  max-width: 620px;
}

.chat-context-question {
  margin: 10px 0 13px;
  padding: 11px 12px;
  color: #e7ecea;
  background: rgba(255,255,255,.045);
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: .88rem;
  line-height: 1.5;
}

.chat-context-question p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.chat-context-question small,
[data-chat-context] > small {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chat-context-cards,
.context-cards {
  display: block;
  margin: 10px 0 14px;
}

.chat-context-meta {
  display: flex;
  margin: 0 0 10px !important;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-context-meta span {
  padding: 5px 8px;
  color: #d9c59e;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(230,201,141,.18);
  font-size: .57rem;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chat-context-card-grid {
  display: grid;
  margin-top: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.context-card,
.chat-context-cards > span,
.context-cards > span {
  display: grid;
  min-width: 0;
  padding: 5px 8px;
  color: #e4d2ad;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(230,201,141,.22);
  font-family: var(--serif);
  font-size: .7rem;
  line-height: 1.3;
}

.context-card {
  min-height: 54px;
  align-content: center;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px;
}

.context-card-symbol {
  color: var(--gold-light);
  font-family: var(--serif);
  text-align: center;
}

.context-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.chat-trust {
  display: flex;
  margin-top: 11px;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-trust span {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 8px;
  align-items: center;
  color: #aebcba;
  border: 1px solid rgba(255,255,255,.1);
  font-size: .58rem;
  letter-spacing: .04em;
}

.chat-context-panel .demo-notice {
  margin: 12px 0 0;
  padding: 9px 10px;
  color: #dfccaa;
  background: rgba(230,201,141,.07);
  border-color: rgba(230,201,141,.25);
  font-size: .62rem;
  line-height: 1.45;
}

.chat-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  background: var(--ivory);
}

.chat-panel-header {
  position: relative;
  z-index: 4;
  display: grid;
  min-height: 70px;
  padding: 10px 13px;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(255,253,249,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 20px rgba(11,23,32,.035);
  backdrop-filter: blur(16px);
}

.chat-adviser-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  overflow: hidden;
  place-items: center;
  color: var(--gold-dark);
  background: var(--sand);
  border: 1px solid rgba(142,104,47,.25);
  border-radius: 50%;
  font-family: var(--serif);
}

.chat-adviser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-panel-header > div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.chat-panel-header small {
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.chat-panel-header strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel-header [data-chat-presence] {
  overflow: hidden;
  color: var(--muted);
  font-size: .57rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel-header [data-chat-presence]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: var(--oree-offline);
  border-radius: 50%;
  content: "";
}

.chat-panel-header [data-chat-presence].availability-available::before {
  background: var(--oree-success);
}

.chat-panel-header [data-chat-presence].availability-busy::before {
  background: var(--oree-busy);
}

.chat-panel-header > a {
  min-height: 44px;
  padding: 0 6px;
  align-content: center;
  color: var(--gold-dark);
  font-size: .61rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
}

.chat-panel-header > a:hover {
  color: var(--ink);
}

.chat-messages {
  display: flex;
  min-height: 0;
  padding: 18px 13px 26px;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 6%, rgba(230,201,141,.11), transparent 20rem),
    linear-gradient(rgba(255,255,255,.62), rgba(255,255,255,.62)),
    var(--cream);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-color: rgba(104,113,118,.38) transparent;
  scrollbar-width: thin;
}

.chat-welcome {
  display: grid;
  max-width: 520px;
  margin: auto;
  padding: 18px 20px;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  background: rgba(255,253,249,.88);
  border: 1px solid var(--line);
  box-shadow: 0 15px 35px rgba(11,23,32,.045);
  font-size: .78rem;
}

.chat-welcome > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold-dark);
  border: 1px solid rgba(142,104,47,.38);
  border-radius: 50%;
  font-family: var(--serif);
}

.chat-welcome p {
  margin: 0;
}

.chat-message {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  animation: oree-message-in .24s ease both;
}

.chat-message.message-operator,
.chat-message.message-adviser,
.chat-message.message-advisor,
.chat-message.message-practitioner {
  align-items: flex-start;
}

.chat-message.message-system,
.chat-message.type-system {
  align-items: center;
}

@keyframes oree-message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.chat-bubble {
  min-width: 0;
  max-width: min(84%, 620px);
  padding: 11px 13px;
  overflow-wrap: anywhere;
  color: var(--ivory);
  background: var(--night-2);
  border-radius: 14px 14px 3px 14px;
  box-shadow: 0 6px 18px rgba(11,23,32,.08);
  font-size: .86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message-operator .chat-bubble,
.message-adviser .chat-bubble,
.message-advisor .chat-bubble,
.message-practitioner .chat-bubble {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 3px;
}

.message-system .chat-bubble,
.type-system .chat-bubble {
  max-width: 92%;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: .68rem;
  text-align: center;
}

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

.message-meta {
  display: flex;
  min-height: 20px;
  margin-top: 3px;
  padding: 0 3px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .58rem;
}

.message-delivery[data-status="sending"],
.message-delivery.is-sending,
.chat-message.is-pending .message-delivery {
  color: var(--muted);
}

.message-delivery[data-status="sent"],
.message-delivery.is-sent,
.chat-message.is-sent .message-delivery {
  color: var(--oree-success);
}

.message-delivery[data-status="failed"],
.message-delivery.is-failed,
.chat-message.is-failed .message-delivery {
  color: var(--oree-danger);
}

.chat-message.is-failed .chat-bubble {
  box-shadow: 0 0 0 1px rgba(154,65,56,.25);
}

.message-retry,
.retry-message,
[data-retry-message] {
  min-height: 32px !important;
  padding: 2px 4px;
  color: var(--oree-danger);
  background: transparent;
  border: 0;
  font-size: .63rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.type-voice .chat-bubble,
.voice-message .chat-bubble {
  width: min(84%, 430px);
}

.chat-bubble audio,
.voice-message audio {
  display: block;
  width: 100%;
  min-width: 190px;
  height: 38px;
  margin: 2px 0 5px;
  accent-color: var(--gold-dark);
}

.message-transcript {
  margin-top: 8px;
  padding-top: 8px;
  color: inherit;
  border-top: 1px solid currentColor;
  border-top-color: rgba(104,113,118,.25);
  font-size: .73rem;
  line-height: 1.45;
  opacity: .82;
}

.message-transcript small {
  display: block;
  margin-bottom: 3px;
  font-size: .59rem;
  line-height: 1.4;
}

.message-transcript p {
  margin: 0;
}

.voice-preview {
  position: relative;
  z-index: 5;
  display: grid;
  padding: 12px 13px;
  gap: 9px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -9px 28px rgba(11,23,32,.05);
}

.voice-preview > div:first-child,
.voice-preview > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-preview strong {
  font-family: var(--serif);
  font-size: .96rem;
  font-weight: 500;
}

.voice-preview [data-voice-duration] {
  color: var(--gold-dark);
  font-size: .69rem;
  font-variant-numeric: tabular-nums;
}

.voice-preview audio {
  width: 100%;
  height: 38px;
  accent-color: var(--gold-dark);
}

.voice-preview .text-button,
.voice-preview .button {
  min-height: 40px;
}

.chat-status {
  position: relative;
  z-index: 5;
  min-height: 0;
  padding: 0 14px;
  color: var(--muted);
  background: var(--paper);
  font-size: .66rem;
  line-height: 1.5;
}

.chat-status:not(:empty) {
  min-height: 29px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: 1px solid var(--line);
}

.chat-status.is-error,
.chat-status[data-state="error"] {
  color: var(--oree-danger);
  background: var(--oree-danger-soft);
}

.chat-status.is-success,
.chat-status[data-state="success"] {
  color: var(--oree-success);
  background: var(--oree-success-soft);
}

.chat-status.is-loading,
.chat-status[data-state="loading"] {
  color: var(--gold-dark);
}

.chat-composer {
  position: relative;
  z-index: 6;
  display: grid;
  padding: 9px max(11px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(11px, env(safe-area-inset-left));
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: end;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.chat-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  max-height: 132px;
  padding: 11px 13px;
  resize: none;
  overflow-y: auto;
  color: var(--ink);
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: 3px;
  line-height: 1.45;
}

.chat-composer textarea:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(200,157,86,.11);
}

.chat-composer.is-disabled {
  opacity: .72;
}

.microphone-button,
.chat-send-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.microphone-button {
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--line);
}

.microphone-button > span {
  font-size: .55rem;
}

.microphone-button:hover {
  color: var(--night);
  border-color: var(--gold);
}

.is-recording .microphone-button,
.microphone-button.is-recording,
.microphone-button[aria-pressed="true"] {
  color: #fff;
  background: var(--oree-danger);
  border-color: var(--oree-danger);
  animation: oree-recording 1.5s ease-out infinite;
}

@keyframes oree-recording {
  0% { box-shadow: 0 0 0 0 rgba(154,65,56,.3); }
  70% { box-shadow: 0 0 0 9px rgba(154,65,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(154,65,56,0); }
}

.chat-send-button {
  color: var(--night);
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  font-size: 1.15rem;
}

.chat-send-button:hover {
  background: #efd9aa;
  transform: translateY(-1px);
}

.chat-send-button:disabled,
.microphone-button:disabled {
  color: #92999a;
  background: #e7e8e4;
  border-color: #d9dcda;
  cursor: not-allowed;
  transform: none;
}

/* Supplementary tarot inside the conversation -------------------------- */

.chat-message.type-card_offer,
.chat-message.type-card-offer,
.chat-message.type-card_reveal,
.chat-message.type-card-reveal {
  align-items: center;
}

.chat-message.type-card_offer .chat-bubble,
.chat-message.type-card-offer .chat-bubble,
.chat-message.type-card_reveal .chat-bubble,
.chat-message.type-card-reveal .chat-bubble {
  width: min(100%, 590px);
  max-width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-card-offer {
  width: min(100%, 590px);
  padding: 17px 15px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(142,104,47,.35);
  box-shadow: 0 15px 40px rgba(11,23,32,.08);
}

.chat-card-offer h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.chat-card-offer > p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .75rem;
}

.chat-offer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chat-offer-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  padding: 0;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  color: var(--gold-light);
  background:
    radial-gradient(circle at center, var(--gold-light) 0 2px, transparent 3px),
    radial-gradient(circle at center, transparent 0 22%, rgba(230,201,141,.7) 23% 24%, transparent 25%),
    var(--night-2);
  border: 1px solid rgba(142,104,47,.72);
  box-shadow: inset 0 0 0 5px var(--night-2), inset 0 0 0 6px rgba(230,201,141,.35);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.chat-offer-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(230,201,141,.7);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.chat-offer-card .tarot-card-rosette {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(230,201,141,.52);
  border-radius: 50%;
  font-family: var(--serif);
}

.chat-offer-card:hover,
.chat-offer-card:focus-visible {
  box-shadow: inset 0 0 0 5px var(--night-2), inset 0 0 0 6px var(--gold-light), 0 12px 25px rgba(11,23,32,.18);
  transform: translateY(-4px);
}

.chat-offer-card.is-selected,
.chat-offer-card[aria-pressed="true"] {
  border-color: var(--gold-light);
  box-shadow: inset 0 0 0 5px var(--night-2), inset 0 0 0 7px var(--gold-light), 0 12px 25px rgba(11,23,32,.16);
}

.chat-offer-card.is-loading::after {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(230,201,141,.35);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  animation: oree-spin .8s linear infinite;
}

.chat-card-reveal {
  display: grid;
  width: min(100%, 500px);
  padding: 18px;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  color: var(--ink);
  background: #faf6ed;
  border: 1px solid rgba(142,104,47,.32);
  border-left: 2px solid var(--gold);
}

.chat-card-reveal-symbol {
  display: grid;
  width: 62px;
  aspect-ratio: 5 / 7;
  grid-row: 1 / span 3;
  place-items: center;
  color: var(--gold-dark);
  background: #f1e3c8;
  border: 1px solid rgba(142,104,47,.62);
  box-shadow: inset 0 0 0 5px #f1e3c8, inset 0 0 0 6px rgba(142,104,47,.35);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.chat-card-reveal small {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-dark);
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chat-card-reveal strong,
.chat-card-reveal h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
}

.chat-card-reveal p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

/* Responsive ------------------------------------------------------------- */

@media (min-width: 520px) {
  .interactive-step {
    padding: 48px 36px 52px;
  }

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

  .tarot-deck-grid {
    gap: 14px;
  }

  .reading-next {
    padding: 28px;
  }

  .chat-panel-header {
    padding-inline: 18px;
  }

  .chat-messages {
    padding-inline: 20px;
  }

  .chat-composer,
  .voice-preview {
    padding-inline: 18px;
  }
}

@media (min-width: 720px) {
  .interactive-teaser-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr);
  }

  .interactive-progress span {
    justify-content: flex-start;
    font-size: .64rem;
  }

  .interactive-stage {
    min-height: 620px;
  }

  .interactive-step {
    padding: 60px 60px 66px;
  }

  .tarot-deck-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .tarot-card-front {
    padding: 15px 9px;
  }

  .reading-result-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reading-next {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reading-next .button {
    width: auto;
  }

  .oree-chat-page .page-shell {
    height: calc(var(--oree-chat-viewport-height, var(--chat-viewport-height, 100dvh)) - 116px);
  }

  .chat-bubble {
    max-width: min(72%, 620px);
  }

  .type-voice .chat-bubble,
  .voice-message .chat-bubble {
    width: min(72%, 430px);
  }
}

@media (min-width: 900px) {
  .oree-chat-page .page-shell {
    height: calc(var(--oree-chat-viewport-height, var(--chat-viewport-height, 100dvh)) - 116px);
  }

  .chat-page-shell {
    display: grid;
    grid-template-columns: minmax(285px, 350px) minmax(0, 1fr);
  }

  .chat-context-panel {
    max-height: none;
    padding: 38px 31px;
  }

  .chat-context-panel .eyebrow {
    margin-bottom: 14px;
    font-size: .65rem;
  }

  .chat-context-panel h1 {
    margin-bottom: 20px;
    font-size: 2.65rem;
  }

  .chat-context-panel p {
    font-size: .82rem;
  }

  .chat-context-question {
    margin-block: 20px;
    padding: 17px;
    font-size: 1.02rem;
  }

  .chat-trust {
    display: grid;
    margin-top: 25px;
  }

  .chat-trust span {
    min-height: 34px;
  }

  .chat-context-panel .demo-notice {
    margin-top: 25px;
    padding: 13px;
    font-size: .68rem;
  }

  .chat-panel-header {
    min-height: 80px;
    padding: 12px 25px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
  }

  .chat-adviser-avatar {
    width: 48px;
    height: 48px;
  }

  .chat-panel-header strong {
    font-size: 1.1rem;
  }

  .chat-panel-header > a {
    padding-inline: 12px;
    font-size: .68rem;
  }

  .chat-messages {
    padding: 28px clamp(28px, 5vw, 68px) 35px;
    gap: 15px;
  }

  .chat-bubble {
    padding: 13px 16px;
    font-size: .9rem;
  }

  .voice-preview {
    padding: 15px clamp(28px, 5vw, 68px);
    grid-template-columns: minmax(150px, .55fr) minmax(210px, 1fr) auto;
    align-items: center;
  }

  .voice-preview > div:last-child {
    justify-content: flex-end;
  }

  .chat-status {
    padding-inline: clamp(28px, 5vw, 68px);
  }

  .chat-composer {
    padding: 13px clamp(28px, 5vw, 68px) max(13px, env(safe-area-inset-bottom));
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .microphone-button,
  .chat-send-button {
    width: 48px;
    height: 48px;
  }

  .chat-composer textarea {
    min-height: 48px;
    padding: 12px 15px;
  }

  .chat-card-offer {
    padding: 21px;
  }
}

@media (min-width: 1180px) {
  .chat-page-shell {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  }

  .interactive-step {
    padding: 68px 72px 72px;
  }
}

@media (max-width: 719px) {
  .reading-result-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .reading-result-card > .reading-position,
  .reading-result-card > .reading-card-name,
  .reading-result-card > .reading-card-text {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .chat-card-reveal {
    padding: 16px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .chat-card-reveal-symbol {
    width: 46px;
    grid-row: auto;
  }

  .chat-card-reveal > div {
    grid-column: 2;
    min-width: 0;
  }

  .interactive-teaser .button,
  .interactive-actions .button {
    width: 100%;
  }

  .interactive-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .interactive-actions .text-button {
    align-self: flex-start;
  }

  .interactive-step[data-reading-step="3"] {
    padding-inline: 14px;
  }

  .oree-chat-page .preprod-bar {
    min-height: 31px;
    padding-inline: 8px;
  }

  .oree-chat-page .site-header {
    position: relative;
  }
}

@media (max-width: 899px) {
  .chat-context-panel {
    transition: max-height .2s ease, padding .2s ease;
  }

  .oree-chat-app:has(.chat-composer textarea:focus) .chat-context-panel {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .practitioner-card-body .practitioner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .practitioner-card-body .practitioner-actions > * {
    width: 100%;
  }

  .practitioner-card-body .practitioner-actions .text-link {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .interactive-intro h1 {
    font-size: 3rem;
  }

  .interactive-page {
    width: calc(100% - 24px);
  }

  .interactive-step {
    padding-inline: 16px;
  }

  .theme-choices button {
    min-height: 106px;
  }

  .tarot-deck-grid {
    gap: 7px;
  }

  .tarot-card-back {
    box-shadow: inset 0 0 0 4px var(--night-2), inset 0 0 0 5px rgba(230,201,141,.48), 0 7px 17px rgba(11,23,32,.14);
  }

  .tarot-card-front {
    padding: 10px 6px;
    box-shadow: inset 0 0 0 4px #f5ead3, inset 0 0 0 5px rgba(142,104,47,.48), 0 7px 17px rgba(11,23,32,.14);
  }

  .chat-panel-header > a {
    max-width: 68px;
    line-height: 1.25;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .type-voice .chat-bubble,
  .voice-message .chat-bubble {
    width: 90%;
  }

  .voice-preview > div:last-child {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .voice-preview > div:last-child > * {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card-inner {
    transition-duration: .01ms;
  }

  .tarot-card-button:hover .tarot-card-inner,
  .tarot-card-button:focus-visible .tarot-card-inner {
    transform: none;
  }

  .tarot-card-button.is-revealed .tarot-card-inner,
  .tarot-card-button[aria-pressed="true"] .tarot-card-inner,
  .tarot-card-button.is-revealed:hover .tarot-card-inner,
  .tarot-card-button.is-revealed:focus-visible .tarot-card-inner,
  .tarot-card-button[aria-pressed="true"]:hover .tarot-card-inner,
  .tarot-card-button[aria-pressed="true"]:focus-visible .tarot-card-inner {
    transform: rotateY(180deg);
  }

  .tarot-card-button.is-loading::before,
  .is-recording .microphone-button,
  .microphone-button.is-recording,
  .microphone-button[aria-pressed="true"],
  .chat-message {
    animation: none;
  }

  .chat-messages {
    scroll-behavior: auto;
  }
}
