:root {
  --bg-charcoal: #121110;
  --surface-ash: #1c1a18;
  --surface-oak: #24201c;
  --surface-cloth: #151311;
  --border-tarnished: #3d352b;
  --text-vellum: #e8dfd1;
  --text-muted: #a69b8d;
  --ember-gold: #c9a24d;
  --ember-soft: rgba(201, 162, 77, 0.35);
  --ember-glow: rgba(201, 162, 77, 0.16);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-charcoal);
  color: var(--text-vellum);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 0.75rem 1.25rem 4rem;
}

.reading-room {
  max-width: 1080px;
  margin: 0 auto;
}

.room-header {
  text-align: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-tarnished);
  padding-bottom: 1rem;
}

.eyebrow {
  color: var(--ember-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.room-header h1 {
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.08rem;
}

.room-utility-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.credit-bar {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-ash);
  border: 1px solid var(--border-tarnished);
  padding: 0.42rem 1.05rem;
  font-size: 0.95rem;
}

.credit-bar strong {
  color: var(--ember-gold);
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--ember-gold);
}

.control-panel,
.tabletop-stage {
  background: var(--surface-ash);
  border: 1px solid var(--border-tarnished);
  padding: 1.85rem;
  margin-bottom: 2.25rem;
}

.control-group {
  margin-bottom: 1.65rem;
}

.group-label {
  display: block;
  color: var(--ember-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.spread-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choice-btn {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-tarnished);
  color: var(--text-vellum);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choice-btn small {
  display: block;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.choice-btn:hover {
  border-color: var(--ember-gold);
}

.choice-btn.active {
  border-color: var(--ember-gold);
  background: var(--surface-oak);
  box-shadow: inset 0 0 18px var(--ember-glow);
}

.intention-input {
  width: 100%;
  background: var(--bg-charcoal);
  border: 1px solid var(--border-tarnished);
  color: var(--text-vellum);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  padding: 0.8rem 1rem;
}

.intention-input:focus {
  outline: none;
  border-color: var(--ember-gold);
}

.ritual-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.primary-btn {
  background: var(--ember-gold);
  color: var(--bg-charcoal);
  border: 1px solid var(--ember-gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.65rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.primary-btn:hover {
  opacity: 0.9;
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.secondary-btn {
  background: var(--bg-charcoal);
  color: var(--text-vellum);
  border: 1px solid var(--border-tarnished);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.secondary-btn:hover {
  border-color: var(--ember-gold);
  color: var(--ember-gold);
}

.hidden {
  display: none !important;
}

/* --- Consulting the Threshold: Living Flame Thinking Loader --- */
@keyframes thresholdFlameFlicker {
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(-1deg); opacity: 0.94; }
  35% { transform: scaleY(1.09) scaleX(0.94) rotate(1.4deg); opacity: 1; }
  65% { transform: scaleY(0.95) scaleX(1.05) rotate(-1.6deg); opacity: 0.9; }
}

@keyframes thresholdSparkRise {
  0% { transform: translateY(6px) scale(0.6); opacity: 0; }
  30% { opacity: 0.95; }
  100% { transform: translateY(-20px) scale(1.1); opacity: 0; }
}

@keyframes thresholdShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}

.threshold-thinking-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  border-left: 3px solid var(--ember-gold);
  border-top: 1px solid rgba(212, 175, 106, 0.22);
  border-right: 1px solid rgba(212, 175, 106, 0.16);
  border-bottom: 1px solid rgba(212, 175, 106, 0.16);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, rgba(28, 22, 18, 0.92), rgba(14, 15, 22, 0.94));
  padding: 1.2rem 1.45rem;
  margin: 1rem 0 1.4rem;
  overflow: hidden;
}

.threshold-flame-wrap {
  position: relative;
  width: 38px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.threshold-flame-svg {
  width: 32px;
  height: 42px;
  transform-origin: 50% 88%;
  animation: thresholdFlameFlicker 1.75s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(232, 168, 73, 0.65));
}

.threshold-flame-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe199;
  box-shadow: 0 0 6px #e8a849;
  animation: thresholdSparkRise 2.1s ease-out infinite;
}

.threshold-thinking-body {
  flex: 1;
  min-width: 0;
}

.threshold-thinking-title {
  color: var(--ember-gold);
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
}

.threshold-thinking-sub {
  margin: 0 0 0.68rem 0;
  color: #e6dfd1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
}

.threshold-thinking-dots {
  display: inline-block;
  min-width: 2.2em;
  color: var(--ember-gold);
  letter-spacing: 0.16em;
  font-style: normal;
}

.threshold-shimmer-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(212, 175, 106, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.threshold-shimmer-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, #e8a849, #fff0c2, #e8a849, transparent);
  animation: thresholdShimmer 2.1s ease-in-out infinite;
}

/* --- Physics Tabletop --- */
#tabletop-stage,
#reading-stage {
  scroll-margin-top: 84px;
}

.table-header,
.spread-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.table-instruction {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
}

.selection-counter {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-tarnished);
  padding: 0.45rem 1rem;
  font-size: 1rem;
}

.selection-counter strong {
  color: var(--ember-gold);
}

.table-toolbar,
.spread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.cut-controls {
  background: var(--surface-oak);
  border: 1px solid var(--ember-gold);
  padding: 1rem 1.25rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cut-controls input[type="range"] {
  flex: 1 1 220px;
  accent-color: var(--ember-gold);
  cursor: pointer;
}

.cut-actions {
  display: flex;
  gap: 0.65rem;
}

/* --- 3D Reading Table Camera Stage --- */
.table-camera-stage {
  perspective: 1180px;
  perspective-origin: 50% 38%;
  padding: 0.2rem 0 1.85rem;
  overflow: visible;
}

.physics-table {
  position: relative;
  width: 100%;
  height: 490px;
  background-color: #22090d;
  background-image:
    radial-gradient(ellipse at 50% 48%, rgba(255, 210, 150, 0.03) 0%, rgba(8, 3, 5, 0.36) 85%),
    url("../images/velvet-table.jpg");
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(138, 102, 56, 0.65);
  border-radius: 10px;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.65),
    0 24px 46px rgba(0, 0, 0, 0.82),
    0 6px 0 #1f140d,
    0 8px 0 rgba(212, 175, 106, 0.22);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  transform-origin: center 55%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.9s ease;
}

.table-camera-stage.camera-angled .physics-table {
  transform: rotateX(19deg) scale(0.97);
}

.velvet-cloth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  display: block;
}

.spread-slot,
.celtic-cross-zone,
.celtic-staff-zone {
  position: relative;
  z-index: 2;
}

/* Rotationally Symmetrical Face-Down Card */
.table-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 124px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1b1714 0%, #27201a 50%, #1b1714 100%);
  border: 1px solid var(--ember-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  cursor: grab;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, opacity 0.25s ease;
}

.table-piece::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ember-soft);
  border-radius: 3px;
  pointer-events: none;
}

.table-piece::after {
  content: "✦";
  color: var(--ember-gold);
  font-size: 1.25rem;
  opacity: 0.75;
  pointer-events: none;
}

.table-piece.has-card-back::before,
.table-piece.has-card-back::after,
.flip-back.has-card-back::after {
  display: none;
}

.flip-back.has-card-back {
  padding: 0;
  overflow: hidden;
}

.table-piece.dragging {
  cursor: grabbing;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.85), 0 0 14px var(--ember-glow);
}

.physics-table.select-mode .table-piece {
  cursor: pointer;
}

.physics-table.select-mode .table-piece:hover {
  box-shadow: 0 0 18px var(--ember-soft), 0 8px 18px rgba(0, 0, 0, 0.8);
}

.table-piece.picked {
  opacity: 0;
  pointer-events: none;
}

/* Wooden Ogham Stave Appearance */
.table-piece.is-stave {
  width: 30px;
  height: 142px;
  border-radius: 14px;
  background: linear-gradient(90deg, #2d2118 0%, #4b3828 48%, #261b13 100%);
  border: 1px solid #8c6d46;
}

.table-piece.is-stave::before {
  inset: 14px 6px;
  border: none;
  border-top: 2px solid var(--ember-gold);
  border-bottom: 2px solid var(--ember-gold);
}

.table-piece.is-stave::after {
  content: "│";
  font-size: 1.1rem;
  opacity: 0.5;
}

/* --- Geometric Spread Board (Red Velvet Reading Table) --- */
.spread-board {
  background-color: #22090d;
  background-image:
    radial-gradient(ellipse at 50% 48%, rgba(255, 210, 150, 0.03) 0%, rgba(8, 3, 5, 0.36) 85%),
    url("../images/velvet-table.jpg");
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(138, 102, 56, 0.65);
  border-radius: 10px;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.65),
    0 24px 46px rgba(0, 0, 0, 0.82),
    0 6px 0 #1f140d,
    0 8px 0 rgba(212, 175, 106, 0.22);
  padding: 2.5rem 1.75rem;
  margin-bottom: 1rem;
  min-height: 360px;
  position: relative;
  transform-origin: center 52%;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.15s ease;
}

.table-camera-stage.camera-angled .spread-board {
  transform: rotateX(22deg) scale(0.95);
}

.table-camera-stage.camera-topdown .spread-board {
  transform: rotateX(0deg) scale(1);
  box-shadow:
    inset 0 0 55px rgba(0, 0, 0, 0.6),
    0 18px 36px rgba(0, 0, 0, 0.75);
}

/* Deal-In Card Settle Animation */
@keyframes dealCardOntoVelvet {
  0% {
    opacity: 0;
    transform: translateY(-34px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flip-container.deal-in {
  animation: dealCardOntoVelvet 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--deal-delay, 0ms);
}

.slot-label {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
}

@media (max-width: 720px) {
  .table-camera-stage.camera-angled .physics-table {
    transform: rotateX(12deg) scale(0.98);
  }

  .table-camera-stage.camera-angled .spread-board {
    transform: rotateX(14deg) scale(0.97);
  }
}

/* Spread Layouts */
.spread-board.layout-single {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spread-board.layout-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.spread-board.layout-cross {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-template-rows: repeat(3, auto);
  justify-content: center;
  gap: 1.25rem;
}

.spread-board.layout-mirror {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 180px));
  justify-content: center;
  gap: 1.5rem;
}

.spread-board.layout-celtic {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: center;
}

.celtic-cross-zone {
  position: relative;
  width: 100%;
  min-height: 540px;
}

.celtic-staff-zone {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
}

.spread-board.layout-wheel {
  position: relative;
  min-height: 680px;
}

/* 3D Flip Card Slot */
.spread-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 140px;
}

.slot-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember-gold);
  text-align: center;
  line-height: 1.25;
  min-height: 2.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flip-container {
  width: 126px;
  height: 196px;
  perspective: 900px;
  cursor: pointer;
}

.flip-container.is-stave-slot {
  width: 64px;
  height: 204px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.flip-container.revealed .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 6px;
  border: 1px solid var(--ember-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  text-align: center;
}

.flip-back {
  background: linear-gradient(135deg, #1b1714 0%, #27201a 50%, #1b1714 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.flip-back::after {
  content: "✦";
  color: var(--ember-gold);
  font-size: 1.6rem;
  opacity: 0.8;
}

.flip-front {
  background: var(--surface-oak);
  transform: rotateY(180deg);
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
}

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

.front-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.front-tag {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ember-gold);
}

.front-stone {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Crossing Card (Celtic Cross Card 2) */
.crossing-slot {
  z-index: 6;
}

.crossing-slot .flip-container {
  transform: rotate(90deg);
}

/* Detailed Interpretation Cards */
.drawn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.reading-card {
  background: var(--surface-ash);
  border: 1px solid var(--border-tarnished);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reading-card.highlight {
  border-color: var(--ember-gold);
  box-shadow: 0 0 18px var(--ember-glow);
}

.card-position {
  color: var(--ember-gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.orientation-tag {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

.card-caption {
  font-style: italic;
  color: var(--ember-gold);
  border-left: 2px solid var(--border-tarnished);
  padding-left: 0.75rem;
}

.card-meaning {
  font-size: 1.05rem;
}

.card-lore {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-tarnished);
  padding-top: 0.75rem;
}

.clarifier-box {
  background: var(--bg-charcoal);
  border: 1px dashed var(--ember-gold);
  padding: 0.85rem;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.clarifier-box strong {
  color: var(--ember-gold);
  display: block;
  margin-bottom: 0.2rem;
}

.card-footer-row {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.altar-anchor a {
  color: var(--ember-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--ember-gold);
}

.clarify-btn {
  background: none;
  border: 1px solid var(--border-tarnished);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.clarify-btn:hover {
  border-color: var(--ember-gold);
  color: var(--ember-gold);
}

.synthesis-box {
  background: var(--surface-oak);
  border: 1px solid var(--ember-gold);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.synthesis-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e8952d;
  margin-bottom: 0.45rem;
}

.depth-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: rgba(212, 175, 106, 0.08);
  border: 1px solid rgba(212, 175, 106, 0.42);
  border-radius: 4px;
  color: var(--ember-gold);
  font-family: var(--font-serif);
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.depth-toggle-btn:hover {
  background: rgba(232, 149, 45, 0.16);
  border-color: #e8952d;
  color: #f3d28e;
}

.depth-toggle-icon {
  font-size: 0.85rem;
  opacity: 0.9;
}

.card-depth-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.6rem;
}

.card-depth-drawer.hidden {
  display: none;
}

.clarifier-synthesis-inline {
  color: #f0b96b;
  font-style: italic;
}

.clarifier-synthesis-block {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(232, 149, 45, 0.08);
  border-left: 3px solid #e8952d;
  border-radius: 0 5px 5px 0;
}

.clarifier-synthesis-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e8952d;
  margin: 0 0 0.5rem 0;
}

.clarifier-synthesis-block p {
  color: #f3d29c;
  margin: 0.45rem 0 0 0;
  line-height: 1.65;
}

.clarifier-synthesis-block p:first-of-type {
  margin-top: 0;
}

/* Rare Card Convergence Banners */
.combo-convergence-card {
  margin: 1.15rem 0;
  padding: 1.25rem 1.45rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 106, 0.42);
  background: rgba(20, 17, 15, 0.85);
}

.combo-convergence-card.tier-triad {
  border-color: rgba(232, 149, 45, 0.58);
  background: linear-gradient(135deg, rgba(30, 21, 14, 0.92) 0%, rgba(18, 16, 20, 0.94) 100%);
  box-shadow: 0 0 22px rgba(232, 149, 45, 0.14);
}

.combo-convergence-card.tier-quad {
  border: 1px solid rgba(232, 149, 45, 0.82);
  background: linear-gradient(135deg, rgba(38, 24, 13, 0.95) 0%, rgba(20, 15, 19, 0.96) 100%);
  box-shadow: 0 0 30px rgba(232, 149, 45, 0.24);
}

.combo-convergence-card.tier-mythic {
  border: 2px solid #e8952d;
  background: radial-gradient(circle at 20% 20%, rgba(232, 149, 45, 0.2) 0%, rgba(24, 16, 14, 0.97) 65%);
  box-shadow: 0 0 38px rgba(232, 149, 45, 0.34), inset 0 0 24px rgba(232, 149, 45, 0.12);
}

.combo-rarity-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e8952d;
  margin-bottom: 0.4rem;
}

.combo-convergence-card.tier-mythic .combo-rarity-badge {
  color: #ffd180;
  text-shadow: 0 0 12px rgba(232, 149, 45, 0.6);
}

.combo-convergence-card.is-shadow-warning {
  border-color: rgba(206, 78, 66, 0.72);
  background: linear-gradient(135deg, rgba(38, 15, 16, 0.94) 0%, rgba(18, 13, 16, 0.96) 100%);
  box-shadow: 0 0 26px rgba(190, 56, 46, 0.22);
}

.combo-convergence-card.is-shadow-critical {
  border: 2px solid rgba(226, 86, 72, 0.92);
  background: radial-gradient(circle at 20% 20%, rgba(185, 48, 38, 0.24) 0%, rgba(22, 12, 14, 0.98) 65%);
  box-shadow: 0 0 38px rgba(210, 62, 50, 0.34), inset 0 0 24px rgba(200, 52, 42, 0.14);
}

.combo-convergence-card.is-shadow-warning .combo-rarity-badge {
  color: #f39a8e;
  text-shadow: 0 0 10px rgba(210, 62, 50, 0.45);
}

.combo-convergence-card.is-shadow-warning .combo-convergence-title {
  color: #f6c2b4;
}

.combo-convergence-title {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 600;
  color: #f3d28e;
  margin: 0 0 0.3rem 0;
  letter-spacing: 0.04em;
}

.combo-cards-list {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #c5b699;
  letter-spacing: 0.05em;
  margin: 0 0 0.65rem 0;
}

.combo-convergence-note {
  margin: 0;
  color: #eee3cf;
  line-height: 1.68;
}

/* Header Auto Clarifiers Switch */
.reading-options-bar {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1rem;
  background: rgba(14, 15, 20, 0.78);
  border: 1px solid rgba(212, 175, 106, 0.32);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.switch-toggle:hover {
  border-color: var(--ember-gold);
  box-shadow: 0 0 12px rgba(212, 175, 106, 0.16);
}

.switch-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(212, 175, 106, 0.38);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c7bca8;
  transition: transform 0.25s ease, background 0.25s ease;
}

.switch-toggle input:checked + .switch-track {
  background: rgba(232, 149, 45, 0.32);
  border-color: #e8952d;
}

.switch-toggle input:checked + .switch-track::after {
  transform: translateX(18px);
  background: #e8952d;
  box-shadow: 0 0 8px rgba(232, 149, 45, 0.65);
}

.switch-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-vellum);
}

/* Quick Focus Chips */
.focus-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.focus-chip-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.focus-chip {
  background: rgba(14, 15, 20, 0.72);
  border: 1px solid rgba(212, 175, 106, 0.28);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.focus-chip:hover,
.focus-chip.active {
  background: rgba(232, 149, 45, 0.14);
  border-color: #e8952d;
  color: #f0c987;
}

.intention-banner {
  margin: 0.4rem 0 1rem;
  padding: 0.75rem 1.05rem;
  background: rgba(232, 149, 45, 0.07);
  border-left: 2px solid #e8952d;
  color: #f0d7aa;
  font-style: italic;
  font-size: 1.05rem;
}

.intention-banner strong {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e8952d;
  margin-right: 0.5rem;
}

.synthesis-box h2 {
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember-gold);
  margin-bottom: 0.75rem;
}

.synthesis-box p + p {
  margin-top: 0.85rem;
}

/* Responsive Fallbacks for Complex Spreads */
@media (max-width: 820px) {
  .spread-board.layout-celtic {
    grid-template-columns: 1fr;
  }
  .celtic-cross-zone {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
  .celtic-cross-zone .spread-slot {
    position: static !important;
    transform: none !important;
  }
  .crossing-slot .flip-container {
    transform: none;
  }
  .celtic-staff-zone {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .spread-board.layout-wheel {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
  .spread-board.layout-wheel .spread-slot {
    position: static !important;
    transform: none !important;
  }
  .spread-board.layout-cross,
  .spread-board.layout-mirror {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.synthesis-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember-gold);
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
}

/* Card Zoom Lightbox Overlay */
.flip-container.revealed {
  cursor: pointer;
}

.detail-card-art img,
.clarifier-art-img {
  cursor: pointer;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.detail-card-art img:hover,
.clarifier-art-img:hover {
  box-shadow: 0 0 18px var(--ember-glow);
}

/* Organic wooden Ogham stave thumbnails in detail & clarifier panels */
.detail-card-art.is-stave-art img.detail-stave-thumb {
  height: 178px;
  width: auto;
  max-width: 84px;
  object-fit: contain;
  display: inline-block;
  border: none;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.72));
}

.detail-card-art.is-stave-art img.detail-stave-thumb:hover {
  box-shadow: none;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.52)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.72));
}

.clarifier-art-img.is-stave-thumb {
  height: 108px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  display: block;
  margin: 0.55rem 0 0.65rem 0.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.7));
}

.clarifier-art-img.is-stave-thumb:hover {
  box-shadow: none;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.52)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.7));
}

.card-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 76% 48%, rgba(232, 149, 45, 0.12) 0%, rgba(212, 175, 106, 0.04) 26%, rgba(8, 9, 13, 0) 56%),
    radial-gradient(circle at 50% 50%, rgba(232, 149, 45, 0.07) 0%, rgba(8, 9, 13, 0.93) 60%);
  background-color: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.card-zoom-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.card-zoom-stage {
  width: 100%;
  max-width: 1520px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(2rem, 4vw, 4.25rem);
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-zoom-overlay.is-open .card-zoom-stage {
  transform: scale(1);
}

.card-zoom-left {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-zoom-scene {
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-zoom-card {
  position: relative;
  height: min(78vh, 640px);
  aspect-ratio: 2 / 3;
  max-width: 86vw;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.card-zoom-reading {
  grid-column: 3;
  justify-self: start;
  width: 100%;
  max-width: 440px;
  max-height: min(76vh, 620px);
  overflow-y: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0.75rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  cursor: default;
  color: #efe2c8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.45s ease 0.1s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.card-zoom-overlay.is-open .card-zoom-reading {
  opacity: 1;
  transform: translateX(0);
}

.card-zoom-reading .card-position {
  color: #d4af6a;
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(232, 149, 45, 0.35), 0 1px 8px rgba(0, 0, 0, 0.9);
}

.card-zoom-reading .card-title {
  color: #e8952d;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(232, 149, 45, 0.42), 0 2px 12px rgba(0, 0, 0, 0.95);
}

.card-zoom-reading .orientation-tag {
  color: #c9b592;
}

.card-zoom-reading .card-caption {
  color: #f0c987;
  border-left: 2px solid rgba(232, 149, 45, 0.55);
  padding-left: 0.85rem;
  text-shadow: 0 0 12px rgba(232, 149, 45, 0.2), 0 1px 10px rgba(0, 0, 0, 0.9);
}

.card-zoom-reading .card-meaning {
  color: #f2e6d0;
  line-height: 1.7;
}

.card-zoom-reading .card-lore {
  color: #cbbda6;
  border-top: 1px solid rgba(212, 175, 106, 0.22);
  padding-top: 0.85rem;
  line-height: 1.65;
}

.card-zoom-reading .clarifier-box {
  background: rgba(232, 149, 45, 0.06);
  border: none;
  border-left: 2px solid rgba(232, 149, 45, 0.55);
  padding: 0.65rem 0 0.65rem 0.9rem;
}

.card-zoom-reading::-webkit-scrollbar {
  width: 4px;
}

.card-zoom-reading::-webkit-scrollbar-track {
  background: transparent;
}

.card-zoom-reading::-webkit-scrollbar-thumb {
  background: rgba(232, 149, 45, 0.28);
  border-radius: 3px;
}

@media (max-width: 1080px) {
  .card-zoom-stage {
    grid-template-columns: auto minmax(280px, 1fr);
    column-gap: 2.25rem;
  }

  .card-zoom-left {
    grid-column: 1;
  }

  .card-zoom-reading {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .card-zoom-overlay {
    align-items: flex-start;
    padding: 1.75rem 1.25rem;
  }

  .card-zoom-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    margin: auto 0;
  }

  .card-zoom-card {
    height: min(62vh, 460px);
  }

  .card-zoom-reading {
    max-width: 92vw;
    max-height: none;
    padding: 0;
  }
}

.card-zoom-card.is-dragging {
  cursor: grabbing;
}

.card-zoom-card.is-settling {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-zoom-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 106, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 106, 0.18);
  background: var(--surface-oak);
}

.card-zoom-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--sheen-x, 50%) var(--sheen-y, 35%),
    rgba(255, 224, 166, 0.22) 0%,
    rgba(255, 210, 140, 0.06) 38%,
    rgba(0, 0, 0, 0) 70%
  );
  opacity: var(--sheen-opacity, 0);
  transition: opacity 0.2s ease;
}

.card-zoom-face-front {
  transform: rotateY(0deg);
}

.card-zoom-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1b1714 0%, #27201a 50%, #1b1714 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-zoom-face-back.default-back::before {
  content: "✦";
  color: var(--ember-gold);
  font-size: 3.5rem;
  opacity: 0.8;
}

.card-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.card-zoom-fallback {
  width: 100%;
  height: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.card-zoom-fallback .front-title {
  font-size: 1.45rem;
}

.card-zoom-fallback .front-caption {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.5;
}

.card-zoom-meta {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-gold);
  text-align: center;
}


/* =========================================================================
   OGHAM WOODEN STAVES & DRAWSTRING POUCH RITUAL
   ========================================================================= */
.ogham-pouch-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1.25rem;
  gap: 1.25rem;
}

.ogham-gather-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ogham-gather-stave {
  position: absolute;
  width: 34px;
  height: 102px;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg)) scale(1);
  opacity: 0.95;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.72));
  transition: transform 0.68s cubic-bezier(0.22, 0.85, 0.3, 1) var(--gdelay, 0ms),
              opacity 0.52s ease var(--gdelay, 0ms);
}

.ogham-pouch-stage.is-gathered .ogham-gather-stave {
  transform: translate(0px, -48px) rotate(0deg) scale(0.28);
  opacity: 0;
}

.ogham-pouch-btn {
  position: relative;
  z-index: 6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.22s ease;
}

.ogham-pouch-btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.ogham-pouch-svg {
  width: 175px;
  height: 198px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.75));
}

.ogham-pouch-btn.is-shaking .ogham-pouch-svg {
  animation: oghamPouchShake 0.48s ease-in-out;
}

.ogham-pouch-btn.is-drawing .ogham-pouch-svg {
  animation: oghamPouchDraw 0.36s ease-out;
}

@keyframes oghamPouchShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  18% { transform: rotate(-9deg) translate(-6px, -3px) scale(1.03); }
  38% { transform: rotate(8deg) translate(6px, -5px) scale(1.04); }
  58% { transform: rotate(-7deg) translate(-4px, -2px) scale(1.02); }
  78% { transform: rotate(5deg) translate(4px, 0px) scale(1.01); }
}

@keyframes oghamPouchDraw {
  0% { transform: scale(1); }
  45% { transform: scale(1.05, 0.94) translateY(3px); }
  100% { transform: scale(1); }
}

.ogham-pouch-hint {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0ca86;
  background: rgba(14, 15, 20, 0.82);
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.ogham-drawn-tray {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  min-height: 126px;
  max-width: 92%;
  z-index: 6;
}

.ogham-tray-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  animation: oghamStaveEmerge 0.42s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

@keyframes oghamStaveEmerge {
  0% {
    opacity: 0;
    transform: translateY(-48px) scale(0.75);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ogham-tray-wood {
  width: 38px;
  height: 112px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.78));
}

.ogham-tray-wood.is-reversed svg {
  transform: rotate(180deg);
}

.ogham-tray-name {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  color: #ebd09d;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* Spread board carved wooden Ogham staves (no flat grey card boxes!) */
.flip-container.is-ogham-wood-stave {
  width: 74px;
  height: 222px;
  background: transparent;
}

.flip-container.is-ogham-wood-stave .flip-face {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.flip-container.is-ogham-wood-stave .ogham-wood-face {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.82)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.flip-container.is-ogham-wood-stave:hover .ogham-wood-face {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.88)) drop-shadow(0 0 14px rgba(232, 149, 45, 0.35));
}

.ogham-wood-face.is-reversed .ogham-stave-svg,
.ogham-zoom-wood.is-reversed .ogham-stave-svg {
  transform: rotate(180deg);
}

.ogham-stave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stave-slot-caption {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: #ebd09d;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* 3D Inspection Modal for Wooden Ogham Staves */
.card-zoom-scene.is-stave-zoom {
  width: min(170px, 44vw);
  height: min(510px, 76vh);
}

.card-zoom-face.is-stave-face {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.card-zoom-face.is-stave-face::after {
  display: none;
}

.ogham-zoom-wood {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.88)) drop-shadow(0 0 22px rgba(232, 149, 45, 0.22));
}

.ogham-photo-img {
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* =========================================================================
   ONCE-IN-AN-AGE EVENT: THE HIGH HOST OF THE TUATHA DE DANANN
   Whole-Page Illumination, Board Radiance & Sacred Proclamation Banner
   ========================================================================= */
body.mythic-convergence-active::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(242, 198, 92, 0.24) 0%, rgba(212, 165, 68, 0.1) 38%, rgba(10, 12, 16, 0) 76%),
    radial-gradient(circle at 50% 80%, rgba(232, 160, 56, 0.15) 0%, rgba(10, 12, 16, 0) 68%);
  animation: mythicPageRadiance 5.5s ease-in-out infinite alternate;
}

body.mythic-convergence-active.is-shadow-convergence::before {
  background:
    radial-gradient(circle at 50% 28%, rgba(196, 38, 48, 0.28) 0%, rgba(132, 20, 32, 0.14) 40%, rgba(10, 8, 10, 0) 78%),
    radial-gradient(circle at 50% 80%, rgba(176, 48, 28, 0.18) 0%, rgba(10, 8, 10, 0) 68%);
}

body.mythic-convergence-active .reading-room {
  position: relative;
  z-index: 1;
}

body.mythic-convergence-active .spread-board {
  border-color: rgba(242, 202, 104, 0.88) !important;
  box-shadow:
    0 0 38px rgba(232, 178, 72, 0.38),
    0 0 92px rgba(212, 152, 52, 0.24),
    inset 0 0 64px rgba(245, 206, 108, 0.22) !important;
  animation: mythicBoardPulse 4.6s ease-in-out infinite alternate;
}

body.mythic-convergence-active.is-shadow-convergence .spread-board {
  border-color: rgba(214, 68, 72, 0.88) !important;
  box-shadow:
    0 0 40px rgba(198, 38, 48, 0.44),
    0 0 96px rgba(136, 18, 28, 0.3),
    inset 0 0 64px rgba(210, 48, 52, 0.24) !important;
  animation: mythicShadowBoardPulse 4.2s ease-in-out infinite alternate;
}

body.mythic-convergence-active .flip-container.revealed {
  filter: drop-shadow(0 0 18px rgba(242, 202, 104, 0.65));
}

body.mythic-convergence-active.is-shadow-convergence .flip-container.revealed {
  filter: drop-shadow(0 0 20px rgba(214, 58, 62, 0.72));
}

.mythic-convergence-banner {
  position: relative;
  margin: 1.75rem 0 1.4rem;
  padding: 2rem 2.1rem;
  border-radius: 6px;
  border: 1px solid rgba(242, 202, 104, 0.74);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 198, 92, 0.16) 0%, rgba(20, 17, 13, 0.96) 65%);
  box-shadow:
    0 0 34px rgba(232, 178, 72, 0.24),
    inset 0 0 28px rgba(242, 198, 92, 0.08);
  text-align: center;
}

.mythic-convergence-banner.is-shadow {
  border-color: rgba(214, 68, 72, 0.78);
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 38, 48, 0.22) 0%, rgba(20, 11, 13, 0.97) 65%);
  box-shadow:
    0 0 36px rgba(196, 38, 48, 0.28),
    inset 0 0 28px rgba(196, 38, 48, 0.1);
}

.mythic-banner-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f2ca68;
  margin-bottom: 0.55rem;
}

.mythic-convergence-banner.is-shadow .mythic-banner-eyebrow {
  color: #ef8a88;
}

.mythic-banner-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 600;
  color: #fff3d2;
  letter-spacing: 0.04em;
  margin: 0 0 0.95rem;
}

.mythic-convergence-banner.is-shadow .mythic-banner-title {
  color: #fde1de;
}

.mythic-banner-lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.6;
  color: #f3e4c3;
  max-width: 780px;
  margin: 0 auto 0.95rem;
}

.mythic-banner-body {
  font-size: 0.96rem;
  line-height: 1.72;
  color: rgba(238, 232, 222, 0.9);
  max-width: 760px;
  margin: 0 auto 1.35rem;
}

.mythic-keyphrase {
  color: #f5cf72;
  letter-spacing: 0.04em;
}

.mythic-convergence-banner.is-shadow .mythic-keyphrase {
  color: #f79e9b;
}

.mythic-banner-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mythic-copy-btn {
  background: rgba(242, 202, 104, 0.14);
  border: 1px solid rgba(242, 202, 104, 0.6);
  color: #f7dfb0;
  padding: 0.65rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.mythic-copy-btn:hover {
  background: rgba(242, 202, 104, 0.25);
  box-shadow: 0 0 18px rgba(242, 202, 104, 0.35);
}

.mythic-convergence-banner.is-shadow .mythic-copy-btn {
  background: rgba(196, 38, 48, 0.18);
  border-color: rgba(214, 76, 80, 0.68);
  color: #fbd7d5;
}

.mythic-convergence-banner.is-shadow .mythic-copy-btn:hover {
  background: rgba(196, 38, 48, 0.32);
  box-shadow: 0 0 18px rgba(214, 58, 62, 0.42);
}

@keyframes mythicPageRadiance {
  0% { opacity: 0.75; }
  100% { opacity: 1; }
}

@keyframes mythicBoardPulse {
  0% {
    box-shadow:
      0 0 28px rgba(232, 178, 72, 0.3),
      0 0 72px rgba(212, 152, 52, 0.18),
      inset 0 0 50px rgba(245, 206, 108, 0.16);
  }
  100% {
    box-shadow:
      0 0 46px rgba(242, 198, 92, 0.48),
      0 0 110px rgba(212, 152, 52, 0.28),
      inset 0 0 74px rgba(245, 206, 108, 0.26);
  }
}

@keyframes mythicShadowBoardPulse {
  0% {
    box-shadow:
      0 0 30px rgba(198, 38, 48, 0.34),
      0 0 76px rgba(136, 18, 28, 0.22),
      inset 0 0 50px rgba(210, 48, 52, 0.18);
  }
  100% {
    box-shadow:
      0 0 48px rgba(218, 52, 58, 0.54),
      0 0 116px rgba(152, 22, 32, 0.34),
      inset 0 0 76px rgba(218, 52, 58, 0.28);
  }
}

/* Bespoke Custom Reading Layout for The High Host Convergence */
.mythic-custom-reading {
  padding: 0.4rem 0.2rem;
}

.mythic-custom-kicker {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f2ca68;
  margin: 0 0 0.45rem;
}

.mythic-custom-reading.is-shadow .mythic-custom-kicker {
  color: #ef8a88;
}

.mythic-custom-reading h2 {
  margin-top: 0;
  color: #fff2cf;
}

.mythic-custom-reading.is-shadow h2 {
  color: #fde0dd;
}

.mythic-custom-intention {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.18rem;
  color: rgba(242, 232, 212, 0.92);
  margin: 0.35rem 0 1.3rem;
}

.mythic-custom-callout {
  border-left: 3px solid #f2ca68;
  background: rgba(242, 202, 104, 0.08);
  padding: 1.25rem 1.45rem;
  margin: 0 0 1.65rem;
  border-radius: 0 4px 4px 0;
}

.mythic-custom-callout.is-shadow {
  border-left-color: #d9484e;
  background: rgba(196, 38, 48, 0.12);
}

.mythic-callout-label {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5cf72;
  font-weight: 600;
  margin: 0 0 0.55rem;
}

.mythic-custom-callout.is-shadow .mythic-callout-label {
  color: #f39592;
}

.mythic-voices-list {
  display: grid;
  gap: 0.95rem;
  margin: 0.85rem 0 1.65rem;
}

.mythic-voices-list p {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(212, 175, 106, 0.35);
}

.mythic-custom-reading.is-shadow .mythic-voices-list p {
  border-left-color: rgba(214, 68, 72, 0.42);
}

.mythic-clarifier-inline {
  display: inline;
  font-style: italic;
  color: #f3d796;
}

.mythic-custom-reading.is-shadow .mythic-clarifier-inline {
  color: #f2a9a6;
}

.mythic-clarifier-prompt {
  margin-top: 1.25rem;
  color: rgba(235, 222, 198, 0.82);
  font-size: 0.94rem;
}

/* Reading Keepsake PNG & Personal Grimoire Bar */
.reading-keepsake-bar {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(212, 175, 106, 0.24);
}

.keepsake-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.keepsake-btn {
  padding: 0.62rem 1.15rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.42);
  background: rgba(18, 17, 22, 0.78);
  color: #e6d5b2;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.keepsake-btn:hover {
  border-color: rgba(242, 198, 92, 0.8);
  background: rgba(232, 149, 45, 0.14);
}

.keepsake-btn.is-gold {
  background: linear-gradient(135deg, rgba(216, 162, 72, 0.24) 0%, rgba(184, 124, 36, 0.2) 100%);
  border-color: rgba(232, 184, 88, 0.68);
  color: #f9e6be;
}

.keepsake-btn.is-gold:hover {
  box-shadow: 0 0 18px rgba(232, 168, 72, 0.3);
}

.keepsake-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.grimoire-drawer {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 106, 0.28);
  background: rgba(12, 12, 16, 0.75);
}

.grimoire-drawer textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 106, 0.25);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  color: #efe5d1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  resize: vertical;
}

.grimoire-drawer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.7rem;
}

.grimoire-status {
  font-size: 0.88rem;
  color: #d9be89;
  font-style: italic;
}

/* "Altar Stones Drawn for Your Spread" Shop Bridge */
.spread-stones-bridge {
  margin-top: 2.4rem;
  padding: 2rem 1.85rem;
  border-radius: 8px;
  background: rgba(14, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 106, 0.28);
}

.bridge-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.6rem;
}

.bridge-eyebrow {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8a849;
  margin-bottom: 0.45rem;
}

.bridge-header h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  color: #f3dba0;
  margin: 0 0 0.45rem;
}

.bridge-header p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  color: #d4cbb9;
  margin: 0;
  line-height: 1.55;
}

.bridge-stone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
}

.bridge-stone-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 106, 0.24);
  background: rgba(18, 19, 25, 0.82);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bridge-stone-card:hover {
  border-color: #e8a849;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.52);
}

.bridge-stone-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d0e12;
}

.bridge-stone-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bridge-stone-card:hover .bridge-stone-img-wrap img {
  transform: scale(1.05);
}

.bridge-stone-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.22rem 0.55rem;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 3px;
  background: rgba(14, 15, 20, 0.85);
  color: #9e9688;
  border: 1px solid rgba(158, 150, 136, 0.3);
}

.bridge-stone-badge.is-instock {
  background: rgba(20, 26, 18, 0.9);
  color: #f2cf7c;
  border-color: rgba(232, 184, 88, 0.65);
}

.bridge-stone-info {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.bridge-stone-info h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.38rem;
  color: #f2daa2;
  margin: 0 0 0.35rem;
}

.bridge-stone-cards {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.96rem;
  font-style: italic;
  color: #c2b6a0;
  margin: 0 0 0.85rem;
  line-height: 1.4;
}

.bridge-stone-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(212, 175, 106, 0.14);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #e6c37a;
}

.bridge-stone-link {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.98rem;
  color: #d4af6a;
}

.bridge-stone-card:hover .bridge-stone-link {
  text-decoration: underline;
}


/* ============================================================================
   MULTI-STAGE RITUAL WIZARD, SWIRL-AWAY TRANSITION & GILDED UNLOCK GATE
   ============================================================================ */
.ritual-wizard-panel {
  position: relative;
  overflow: hidden;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.48s ease, filter 0.48s ease;
}

.ritual-wizard-panel.is-swirling-away {
  transform: scale(0.88) rotate(-2.5deg) translateY(-14px);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(212, 175, 106, 0.2);
}

.wizard-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wizard-crumb-btn {
  background: rgba(212, 175, 106, 0.08);
  border: 1px solid rgba(212, 175, 106, 0.28);
  color: #e6c989;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wizard-crumb-btn:hover {
  border-color: #e8a849;
  background: rgba(232, 168, 73, 0.18);
  color: #fff2cf;
}

.wizard-crumb-btn.is-current {
  border-color: #e8a849;
  background: rgba(232, 168, 73, 0.2);
  color: #fff2cf;
}

.wizard-crumb-sep {
  color: rgba(212, 175, 106, 0.45);
  font-size: 0.72rem;
}

.wizard-step-counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7aa92;
}

.wizard-step {
  display: none;
  animation: aeWizardReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wizard-step.is-active {
  display: block;
}

@keyframes aeWizardReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wizard-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  color: #f6e2b4;
  margin: 0.15rem 0 0.35rem;
}

.wizard-step-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  color: #cfc5b4;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.wizard-back-row {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wizard-back-link {
  background: transparent;
  border: 1px solid rgba(212, 175, 106, 0.3);
  color: #dcc38c;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wizard-back-link:hover {
  border-color: #e8a849;
  color: #fff0cb;
}

.spread-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(232, 168, 73, 0.14);
  border: 1px solid rgba(232, 168, 73, 0.42);
  color: #f6d58b;
}

.spread-price-pill.is-free {
  background: rgba(122, 232, 172, 0.12);
  border-color: rgba(122, 232, 172, 0.4);
  color: #9ff0c2;
}

.spread-mystic-meta {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #b7aa92;
}

.focus-guide-box {
  padding: 0.95rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 106, 0.24);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d8cfc0;
}

.focus-guide-box strong {
  color: #f4d898;
}

.ritual-sacred-note {
  margin: 0.75rem 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  color: #b7aa92;
  text-align: right;
}

/* Gilded Threshold Table Unlock Gate (Mirrors Birth Chart Gate) */
.div-unlock-gate {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 168, 73, 0.5);
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 168, 73, 0.15), transparent 64%), rgba(13, 14, 21, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.div-unlock-gate h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: #f6e2b4;
  margin: 0.25rem 0 0.55rem;
}

.div-unlock-gate-sub {
  max-width: 600px;
  margin: 0 auto 1.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #dad0bf;
}

.div-unlock-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto 1.45rem;
  text-align: left;
}

.div-unlock-perk {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 106, 0.24);
  background: rgba(255, 255, 255, 0.025);
}

.div-unlock-perk strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a849;
  margin-bottom: 0.25rem;
}

.div-unlock-perk span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.02rem;
  color: #e9e0d0;
  line-height: 1.4;
}

.div-unlock-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 152, 0.65);
  background: linear-gradient(135deg, #e7a743 0%, #c88324 100%);
  color: #131117;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(232, 168, 73, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.div-unlock-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(232, 168, 73, 0.4);
}

.div-unlock-wallet-row {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #d6c8ad;
}


/* ============================================================================
   THRESHOLD TABLE STEP 1 — EMBER COLLECTIONS STYLE VISUAL BACKDROP TILES
   ============================================================================ */
.tradition-showcase-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem !important;
}

@media (max-width: 820px) {
  .tradition-showcase-row {
    grid-template-columns: 1fr;
  }
}

.choice-btn.tradition-card-btn {
  position: relative;
  min-height: 225px;
  padding: 1.45rem 1.4rem 1.25rem !important;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 106, 0.28);
  background: #0d0e14;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease;
}

.choice-btn.tradition-card-btn:hover,
.choice-btn.tradition-card-btn.active {
  transform: translateY(-4px);
  border-color: rgba(232, 184, 88, 0.85);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.68), 0 0 26px rgba(232, 168, 73, 0.2);
}

.tradition-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.trad-fan-card {
  position: absolute;
  bottom: -24px;
  width: 44%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 106, 0.45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.85);
  opacity: 0.68;
  filter: saturate(0.85) brightness(0.82);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, filter 0.3s ease;
}

.trad-fan-card.is-left {
  left: 10%;
  transform: rotate(-14deg) translateY(14px);
}

.trad-fan-card.is-center {
  left: 29%;
  bottom: -14px;
  z-index: 2;
  opacity: 0.82;
  transform: rotate(-1deg) translateY(6px);
}

.trad-fan-card.is-right {
  right: 8%;
  transform: rotate(15deg) translateY(16px);
}

.choice-btn.tradition-card-btn:hover .trad-fan-card,
.choice-btn.tradition-card-btn.active .trad-fan-card {
  opacity: 0.92;
  filter: saturate(1) brightness(0.95);
}

.choice-btn.tradition-card-btn:hover .trad-fan-card.is-left {
  transform: rotate(-18deg) translate(-6px, 6px);
}

.choice-btn.tradition-card-btn:hover .trad-fan-card.is-center {
  transform: rotate(0deg) translateY(-4px) scale(1.03);
}

.choice-btn.tradition-card-btn:hover .trad-fan-card.is-right {
  transform: rotate(19deg) translate(6px, 8px);
}

.trad-ogham-svg {
  position: absolute;
  inset: auto 0 -10px 0;
  width: 100%;
  height: 82%;
  opacity: 0.78;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.choice-btn.tradition-card-btn:hover .trad-ogham-svg {
  transform: translateY(-5px) scale(1.04);
  opacity: 0.96;
}

.tradition-card-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 13, 19, 0.92) 0%,
    rgba(12, 13, 19, 0.74) 44%,
    rgba(12, 13, 19, 0.38) 78%,
    rgba(12, 13, 19, 0.72) 100%
  );
}

.tradition-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.tradition-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #f6e4bc;
  line-height: 1.15;
  margin-bottom: 0.32rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.tradition-card-btn small {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.05rem !important;
  color: #dfd6c4 !important;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.tradition-card-kicker {
  margin-top: auto;
  padding-top: 3.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8b858;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

@media (max-width: 820px) {
  .choice-btn.tradition-card-btn {
    min-height: 175px;
  }
  .tradition-card-kicker {
    padding-top: 2rem;
  }
}


/* ============================================================================
   THRESHOLD TABLE SPREAD SELECTION — GEOMETRIC CROW CARD-BACK BACKDROPS
   ============================================================================ */
.spread-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.05rem !important;
}

.choice-btn.spread-card-btn {
  position: relative;
  min-height: 235px;
  padding: 1.3rem 1.25rem 1.15rem !important;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 106, 0.28);
  background: #0d0e14;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  text-align: left;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease;
}

.choice-btn.spread-card-btn:hover,
.choice-btn.spread-card-btn.active {
  transform: translateY(-4px);
  border-color: rgba(232, 184, 88, 0.88);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.7), 0 0 24px rgba(232, 168, 73, 0.22);
}

.spread-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.spread-mini-card {
  position: absolute;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
  opacity: 0.62;
  filter: brightness(0.84);
  transition: opacity 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.spread-mini-stave {
  position: absolute;
  width: 14px !important;
  height: 76px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4b3522 0%, #261a10 55%, #160e08 100%);
  border: 1px solid rgba(232, 184, 88, 0.62);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.82), inset 0 0 0 1px rgba(246, 220, 156, 0.16);
  opacity: 0.68;
  transition: opacity 0.28s ease, border-color 0.28s ease;
}

.spread-mini-stave::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(246, 220, 156, 0.8), transparent);
}

.choice-btn.spread-card-btn:hover .spread-mini-card,
.choice-btn.spread-card-btn.active .spread-mini-card {
  opacity: 0.88;
  filter: brightness(1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.9), 0 0 12px rgba(232, 168, 73, 0.24);
}

.choice-btn.spread-card-btn:hover .spread-mini-stave,
.choice-btn.spread-card-btn.active .spread-mini-stave {
  opacity: 0.94;
  border-color: #f6dc9c;
}

.spread-card-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 13, 19, 0.9) 0%,
    rgba(12, 13, 19, 0.56) 44%,
    rgba(12, 13, 19, 0.52) 66%,
    rgba(12, 13, 19, 0.92) 100%
  );
}

.spread-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.spread-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.48rem;
  font-weight: 600;
  color: #f6e4bc;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.spread-card-btn small {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 0.98rem !important;
  color: #e2d8c5 !important;
  line-height: 1.38;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.spread-card-foot {
  margin-top: auto;
  padding-top: 3.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

@media (max-width: 640px) {
  .choice-btn.spread-card-btn {
    min-height: 195px;
  }
  .spread-card-foot {
    padding-top: 2rem;
  }
}

/* ============================================================================
   UNIFIED FORGOTTEN VERSE FRAMING FOR THE THRESHOLD TABLE (ORACLE/TAROT/OGHAM)
   ============================================================================ */
body {
  background-color: #090b10 !important;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 22%, rgba(36, 48, 64, 0.52) 0%, rgba(15, 19, 27, 0.75) 52%, rgba(7, 8, 12, 0.98) 100%) !important;
  background-attachment: fixed;
}

.room-header {
  max-width: 860px;
  margin: 0 auto 1.35rem;
  padding-bottom: 0.35rem;
  border-bottom: none;
}

.room-header .eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #d4a853;
  margin-bottom: 0.3rem;
}

.room-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #f3e1be;
  margin-bottom: 0.35rem;
}

.room-header .subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  color: #b4aa9a;
  max-width: 580px;
  margin: 0 auto;
}

.room-utility-row {
  margin-top: 1.05rem;
  gap: 0.65rem;
}

.room-utility-row .credit-bar,
.room-utility-row .switch-toggle,
.room-utility-row .sanctuary-sound-pill {
  border-radius: 999px;
  background: rgba(14, 11, 17, 0.76);
  border: 1px solid rgba(212, 168, 83, 0.22);
  backdrop-filter: blur(10px);
  padding: 0.38rem 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.76rem;
  color: #dcd3c4;
}

.room-utility-row .credit-bar strong {
  color: #e8b858;
}

.room-utility-row .text-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.76rem;
  text-decoration: none;
  font-weight: 500;
}

.ritual-wizard-panel {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  padding: 2.15rem 2.2rem;
  border-radius: 18px;
  background: rgba(14, 11, 16, 0.88);
  border: 1px solid rgba(212, 168, 83, 0.24);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
}

.ritual-wizard-panel .wizard-progress-bar {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.16);
}

.ritual-wizard-panel .group-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #d4a853;
  margin-bottom: 0.35rem;
}

.ritual-wizard-panel .wizard-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  color: #f3e1be;
  line-height: 1.12;
  margin: 0 0 0.45rem;
}

.ritual-wizard-panel .wizard-step-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #b5aa9a;
  line-height: 1.58;
  margin: 0 0 1.4rem;
}

/* Step 1: Tradition Buttons Shaped for the 860px Obsidian Frame */
.ritual-wizard-panel .tradition-showcase-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.ritual-wizard-panel .choice-btn.tradition-card-btn {
  min-height: 210px;
  padding: 1.2rem 1.15rem 1.05rem !important;
  border-radius: 12px;
  border-color: rgba(212, 168, 83, 0.24);
}

.ritual-wizard-panel .tradition-card-title {
  font-size: 1.45rem;
}

.ritual-wizard-panel .tradition-card-btn small {
  font-size: 0.94rem !important;
}

.ritual-wizard-panel .tradition-card-kicker {
  padding-top: 2.8rem;
  font-size: 0.62rem;
}

/* Step 2: Spread Buttons Shaped for a Balanced 4 Column Row Inside the 860px Frame */
.ritual-wizard-panel .spread-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
}

.ritual-wizard-panel .choice-btn.spread-card-btn {
  min-height: 218px;
  padding: 1.05rem 0.95rem 0.95rem !important;
  border-radius: 12px;
  border-color: rgba(212, 168, 83, 0.24);
}

.ritual-wizard-panel .spread-card-title {
  font-size: 1.24rem;
  line-height: 1.15;
}

.ritual-wizard-panel .spread-card-btn small {
  font-size: 0.84rem !important;
  line-height: 1.32;
}

.ritual-wizard-panel .spread-card-foot {
  padding-top: 2.6rem;
  gap: 0.3rem;
}

.ritual-wizard-panel .spread-cost-badge,
.ritual-wizard-panel .spread-tier-pill {
  font-size: 0.6rem !important;
  padding: 0.24rem 0.52rem !important;
  line-height: 1.25;
}

.ritual-wizard-panel .spread-mystic-note {
  font-size: 0.68rem !important;
  line-height: 1.3;
}

/* Step 4: Quiet Focus & Burnished Gold Pill CTA */
.ritual-wizard-panel .focus-guide-box {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 83, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
}

.ritual-wizard-panel .intention-input {
  border-radius: 10px;
  background: rgba(8, 7, 10, 0.78);
  border: 1px solid rgba(212, 168, 83, 0.28);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  padding: 0.82rem 1rem;
}

.ritual-wizard-panel .intention-input:focus {
  border-color: #d4a853;
}

.ritual-wizard-panel .wizard-back-link {
  border-radius: 999px;
}

.ritual-wizard-panel #begin-btn.primary-btn {
  border-radius: 999px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.78rem 1.85rem;
}

@media (max-width: 820px) {
  .ritual-wizard-panel {
    padding: 1.55rem 1.25rem;
    border-radius: 16px;
  }
  .ritual-wizard-panel .tradition-showcase-row {
    grid-template-columns: 1fr;
  }
  .ritual-wizard-panel .spread-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 500px) {
  .ritual-wizard-panel .spread-grid {
    grid-template-columns: 1fr !important;
  }
}
