.growth-bridge { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:30px 0; padding:24px; border:1px solid var(--unified-line,#735044); border-radius:12px; background:var(--unified-surface,#261920); color:var(--unified-ink,#f5e7d3); }
.growth-bridge h2 { margin:3px 0 10px; font-size:clamp(20px,2.4vw,27px); line-height:1.25; text-wrap:balance; }
.growth-bridge p { margin:0 0 12px; max-width:68ch; line-height:1.65; }
.growth-eyebrow { color:var(--unified-accent,#f0b78e); font-size:11px; text-transform:uppercase; letter-spacing:.13em; }
.growth-bridge nav { display:flex; flex-wrap:wrap; gap:8px 20px; font-size:14px; }
.growth-bridge nav a,.growth-card-explain { color:var(--unified-accent,#f0b78e); text-underline-offset:4px; }
.growth-action,.growth-example-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:12px 18px; border:1px solid #d99975; border-radius:7px; background:var(--velvet-copper,linear-gradient(110deg,#bc7857,#efb486 48%,#bf7f5c)); color:#21141a; font-family:inherit; font-size:14px; font-weight:600; line-height:1.4; text-decoration:none; text-align:center; flex-shrink:0; cursor:pointer; }
.growth-action:hover,.growth-example-button:hover { background:#efb486; color:#21141a; }
.growth-bridge a:focus-visible,.growth-card-explain:focus-visible,.growth-context button:focus-visible,.growth-card-dialog button:focus-visible,.growth-card-dialog a:focus-visible { outline:2px solid #f0b78e; outline-offset:4px; }
.growth-home-help { margin:16px 0; padding:16px 18px; gap:18px; }
.growth-home-help h2 { font-size:19px; }
.growth-home-help p { font-size:14px; margin-bottom:8px; }
.growth-home-help .growth-eyebrow { font-size:10px; }
.growth-home-help nav { font-size:13px; }
.growth-home-help .growth-action { background:transparent; color:var(--unified-accent,#f0b78e); border-color:var(--unified-line,#735044); }
.growth-context { border-left:3px solid var(--unified-accent,#f0b78e); padding:12px 15px; margin-bottom:18px; background:var(--unified-surface,#261920); color:var(--unified-ink,#f5e7d3); font-size:14px; line-height:1.6; }
.growth-context p { margin:0 0 10px; }
.growth-context-actions { display:flex; flex-wrap:wrap; gap:8px; }
.growth-context-actions button + button { background:transparent; color:var(--unified-accent,#f0b78e); }
.growth-context-actions button + button:hover { background:#efb486; color:#21141a; }
.growth-context-actions + .growth-context-status { margin:0; }
.growth-context-actions + .growth-context-status:not(:empty) { margin-top:8px; }
.growth-context-status { color:var(--unified-muted,#d5bdb2); font-size:13px; }
.growth-card-explain { display:block; padding:10px 2px; min-height:44px; font-size:13px; text-align:center; line-height:1.5; }
.growth-card-dialog { width:min(660px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; padding:25px; border:1px solid var(--unified-line,#735044); border-radius:12px; background:var(--unified-surface,#261920); color:var(--unified-ink,#f5e7d3); box-shadow:0 24px 80px #050307b3; }
.growth-card-dialog::backdrop { background:#050307c7; }
.growth-dialog-heading { display:flex; justify-content:space-between; align-items:start; gap:18px; }
.growth-dialog-heading h2 { margin:0 0 8px; }
.growth-dialog-close { border:1px solid var(--unified-line,#735044); color:inherit; background:transparent; min-width:44px; min-height:44px; border-radius:7px; cursor:pointer; font-size:24px; }
.growth-card-dialog p { line-height:1.75; }
.growth-card-dialog h3 { font-size:16px; margin-top:22px; }
.growth-card-dialog a { color:var(--unified-accent,#f0b78e); text-underline-offset:4px; }
.growth-dialog-actions { display:flex; gap:15px; flex-wrap:wrap; align-items:center; margin-top:25px; }
@media(max-width:760px) { .growth-bridge { flex-direction:column; align-items:stretch; padding:19px; gap:17px; } .growth-home-help { padding:15px; } .growth-bridge .growth-action { align-self:start; } .growth-card-dialog { padding:19px; } }

.reading-formats .reading-format-body {
  align-items: end;
  background: radial-gradient(ellipse at 50% 30%, #4a2528, #23161d 78%);
  min-height: 150px;
  overflow: hidden;
  padding: 12px;
  position: relative;
  isolation: isolate;
}

.reading-format:has([value="celtic-cross"]) .reading-format-body {
  background: radial-gradient(ellipse at 50% 30%, #333554, #1c1827 78%);
}

.reading-formats .reading-format-body::after { top: 10px; right: 10px; background-color: #18121b; }
.reading-formats .reading-format input:checked + .reading-format-body {
  background: radial-gradient(ellipse at 45% 28%, #714735, #251821 80%);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.reading-format-body > span:last-child {
  padding-top: 15px;
  position: relative;
  text-shadow: 0 1px 5px #100811;
}
.reading-format-art {
  display: flex;
  justify-content: center;
  position: absolute;
  inset: 6px 14px 31px;
  z-index: -1;
  mask-image: linear-gradient(#000 62%, transparent);
}
.reading-format-art img,
.reading-invitation-art img {
  aspect-ratio: 3 / 5;
  border: 1px solid #d8a672;
  border-radius: 5px;
  height: auto;
  object-fit: cover;
  width: 31%;
}
.reading-format-art img:first-child,
.reading-invitation-art img:first-child { transform: rotate(-13deg) translate(5%, 5%); }
.reading-format-art img:last-child,
.reading-invitation-art img:last-child { transform: rotate(13deg) translate(-5%, 5%); }
.reading-format-art img:nth-child(2),
.reading-invitation-art img:nth-child(2) { z-index: 1; }

.reading-board {
  margin-block: 20px 28px;
  scroll-margin-top: 88px;
}
.reading-board .spread-header { margin-top: 0; }
#reading-result-title, #reading-format-start { scroll-margin-top: 88px; }
.reading-board #progress { margin-bottom: 12px; }
.reading-board .reading-reveal { margin: 18px auto 0; }
.reading-board .reading-reveal:not([hidden]) { display: flex; justify-content: center; width: min(100%, 330px); }
.reading-board:focus-visible, #reading-result-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.reading-board[data-reading-phase="pending"] .back .card-inner {
  position: relative;
  overflow: hidden;
  border-color: #d39769;
}
.reading-board[data-reading-phase="pending"] .back .card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 22%, #eea26818 38%, #ffb66a73 50%, #ef9f5420 62%, transparent 78%);
  opacity: .7;
}
@media (prefers-reduced-motion: no-preference) {
  .reading-board[data-reading-phase="pending"] .back .card-inner::after {
    animation: reading-lantern 2.6s ease-in-out infinite;
  }
  .reading-board[data-reading-phase="pending"] .card-wrap:nth-child(3n+2) .back .card-inner::after { animation-delay: .22s; }
  .reading-board[data-reading-phase="pending"] .card-wrap:nth-child(3n) .back .card-inner::after { animation-delay: .44s; }
}

.unified-hub .reading-board #cards[data-spread="celtic-cross"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.1vw, 13px);
}
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(1) { grid-area: 2 / 2; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(2) { grid-area: 2 / 3; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(3) { grid-area: 1 / 2; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(4) { grid-area: 3 / 2; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(5) { grid-area: 2 / 1; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(6) { grid-area: 2 / 4; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(7) { grid-area: 4 / 5; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(8) { grid-area: 3 / 5; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(9) { grid-area: 2 / 5; }
.reading-board #cards[data-spread="celtic-cross"] .card-wrap:nth-child(10) { grid-area: 1 / 5; }

.quick-answer {
  border: 1px solid var(--unified-line, #73555b);
  border-radius: 8px;
  margin: 10px 0;
}
.quick-answer summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  padding: 8px 14px;
}
.quick-answer summary::-webkit-details-marker { display: none; }
.quick-answer summary::after {
  color: var(--unified-accent, #bd783e);
  content: '+';
  flex: none;
  font-size: 1.25em;
}
.quick-answer[open] summary::after { content: '−'; }
.quick-answer p { margin: 0; padding: 0 14px 14px; }

.growth-bridge.reading-invitation {
  background: radial-gradient(ellipse at 12% 36%, #714235 0%, #442d36 36%, #251a2c 77%);
  border-color: #ba8158;
  display: grid;
  grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
  gap: 12px clamp(16px, 4vw, 45px);
  isolation: isolate;
  overflow: hidden;
}
.reading-invitation-art {
  align-items: center;
  display: flex;
  grid-row: 1 / span 2;
  justify-content: center;
  min-width: 0;
  padding: 10px 4px;
}
.reading-invitation-art img { box-shadow: 0 6px 16px #150b16a0; }
.reading-invitation-copy { align-self: center; }
.reading-invitation > .growth-action { grid-column: 2; }
.reading-invitation .growth-action {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
}

@media (max-width: 600px) {
  .reading-formats .reading-format-body { min-height: 128px; padding: 8px; }
  .reading-format-art { inset-inline: 7px; }
  .reading-board #cards[data-spread="celtic-cross"] .card-wrap { position: relative; }
  .reading-board #cards[data-spread="celtic-cross"] .card-wrap::after {
    background: #1b1523;
    border: 1px solid #b2825c;
    border-radius: 4px;
    color: #fff0db;
    content: attr(data-reading-position);
    font-size: 10px;
    line-height: 1;
    padding: 3px;
    pointer-events: none;
    position: absolute;
    right: 2px;
    top: 2px;
  }
  .reading-board #cards[data-spread="celtic-cross"] :is(.position-label, .card-number, .card-name, .card-bottom) {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    white-space: nowrap;
  }
  .reading-board #cards[data-spread="celtic-cross"] .tarot-card { padding: 3px; }
  .reading-board #cards[data-spread="celtic-cross"] .card-inner { justify-content: center; padding: 2px; }
  .reading-board #cards[data-spread="celtic-cross"] .growth-card-explain {
    font-size: 0;
    inset: 0;
    margin: 0;
    padding: 0;
    position: absolute;
  }
  .reading-board #cards[data-spread="celtic-cross"] .growth-card-explain::after {
    background: #1b1523;
    border: 1px solid #b2825c;
    border-radius: 4px;
    bottom: 3px;
    color: #fff0db;
    content: '↗';
    font-size: 11px;
    left: 3px;
    line-height: 1;
    padding: 3px;
    position: absolute;
  }
  .growth-bridge.reading-invitation { grid-template-columns: 1fr; gap: 12px; }
  .reading-invitation-art { grid-row: auto; width: min(70%, 155px); padding-block: 2px 5px; }
  .reading-invitation > .growth-action { grid-column: 1; }
}

@media (max-width: 360px) {
  .black-velvet .unified-masthead .unified-brand { font-size: 27px; gap: 6px; }
  .black-velvet .unified-masthead .unified-mark { width: 24px; height: 27px; }
}

.reading-formats:has(input[value="yes-no"]) .reading-format-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reading-format:has(input[value="yes-no"]) .reading-format-body {
  background: radial-gradient(ellipse at 50% 30%, #51452e, #241a24 78%);
}
.reading-format:has(input[value="yes-no"]) .reading-format-art img {
  transform: rotate(-6deg);
  width: min(56%, 73px);
}
.reading-format-guide { margin: 8px 0 0; font-size: .82rem; }
.reading-format-guide a { color: var(--unified-accent, #efb486); text-underline-offset: 3px; }
.reading-board #cards[data-spread="yes-no"] {
  grid-template-columns: minmax(0, 170px);
  justify-content: center;
}
#result[data-spread="yes-no"] .reading-lead {
  color: var(--unified-accent, #efb486);
  font: 700 clamp(1.55rem, 4vw, 2.1rem)/1.2 Georgia, serif;
}
#result[data-spread="yes-no"] .actions:empty,
#result[data-spread="yes-no"] .reflection:empty { display: none; }
.yes-no-help li { margin-bottom: .45rem; }
.yes-no-help h2:not(:first-child) { margin-top: 1rem; }
@media (max-width: 430px) {
  .reading-formats:has(input[value="yes-no"]) .reading-format-body small { font-size: .69rem; }
}
@media (max-width: 360px) {
  .reading-formats:has(input[value="yes-no"]) .reading-format-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading-format:has(input[value="yes-no"]) { grid-column: 1 / -1; }
}

.reading-board #cards[data-spread="weekly"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 14px);
  max-width: 780px;
  margin-inline: auto;
}

.reading-board #cards[data-spread="weekly"] .card-wrap { min-width: 0; }
.reading-board #cards[data-spread="weekly"] .position-label { font-size: .8rem; }
.reading-board #cards[data-spread="weekly"] .card-name { font-size: clamp(.72rem, 2vw, 1rem); }

@media (max-width: 620px) {
  .reading-board #cards[data-spread="weekly"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reading-board #cards[data-spread="weekly"] .card-bottom { display: none; }
}

@media (max-width: 360px) {
  .reading-board #cards[data-spread="weekly"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-formats:has(input[value="weekly"]) .reading-format:has(input[value="yes-no"]) { grid-column: auto; }
}

.reading-format-guide-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.reading-format-guide-row a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}

.reading-board #cards[data-spread="monthly"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 14px);
  max-width: 780px;
  margin-inline: auto;
}

.reading-board #cards[data-spread="monthly"] .card-wrap { min-width: 0; }
.reading-board #cards[data-spread="monthly"] .position-label { font-size: .8rem; }
.reading-board #cards[data-spread="monthly"] .card-name { font-size: clamp(.75rem, 2vw, 1rem); }
.reading-format-guide-row { flex-wrap: wrap; }

@media (max-width: 620px) {
  .reading-board #cards[data-spread="monthly"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-board #cards[data-spread="monthly"] .card-bottom { display: none; }
}

.history-dialogue-label { display: block; margin-top: .3rem; }
#saved-dialogue-heading { scroll-margin-top: 1.5rem; }
@media (max-width: 760px) {
  .unified-hub > .unified-reading-tools:has(#account-open:not([hidden]), #logout:not([hidden])) {
    display: flex;
    width: calc(100% - 32px);
    justify-content: flex-end;
  }
  .unified-hub > .unified-reading-tools > :is(#access-label, #connection) { display: none; }
}


.reading-board button.tarot-card.back { width: 100%; font: inherit; text-align: inherit; cursor: pointer; }
.reading-board button.tarot-card.back:disabled { opacity: 1; cursor: default; }
.reading-board button.tarot-card.back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#question, #draw-button { scroll-margin-top: 5rem; }
.reading-question-prompt:not(:empty) {
  margin: .7rem 0 0;
  padding: .55rem .7rem;
  border-inline-start: 2px solid var(--accent, #f0b78e);
  color: var(--text, #fff3e5);
  background: #f0b78e14;
  font-size: .9rem;
}
.reading-question-prompt:empty { margin: 0; }

.home-companion-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: calc(100% - 64px);
  max-width: 1420px;
  margin: 12px auto;
  padding: 10px 14px;
  border: 1px solid var(--velvet-border, var(--line));
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
}
.home-companion-art { display: block; width: 42px; height: auto; border-radius: 3px; }
.home-companion-copy h2 { margin: 0 0 3px; font: clamp(20px, 2vw, 24px)/1.15 Georgia, serif; }
.home-companion-copy p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.home-companion-action { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.home-companion-action small { color: var(--muted); font-size: .75rem; }
.home-companion-action .unified-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--velvet-border, var(--line));
  border-radius: 6px;
  background: var(--velvet-copper, var(--accent));
  color: #1d1217;
  font: 600 .875rem/1.15 Arial, sans-serif;
  text-decoration: none;
}
.home-companion-action .unified-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) {
  .home-companion-entry {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    width: calc(100% - 40px);
    margin-block: 8px;
    padding: 10px;
  }
  .home-companion-art { grid-row: span 2; }
  .home-companion-action { grid-column: 2; }
}
