:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --card: #111111;
  --line: #333333;
  --text: #f5f0e6;
  --muted: #a8a29e;
  --amber: #f59e0b;
  --orange: #ea580c;
  --reversed: #b91c1c;
  --reversed-symbol: #b45309;
  --shadow: rgba(0, 0, 0, 0.52);
  --back-card: #1a1a1a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.08), transparent 28rem),
    var(--background);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: clamp(56px, 8vw, 96px);
  padding: clamp(48px, 7vw, 88px) 0 92px;
}

.hero {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  line-height: 0.95;
}

.tagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-style: italic;
  line-height: 1.25;
}

.intro {
  max-width: 590px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.ritual-button {
  margin-top: 30px;
  border: 0;
  border-radius: 2px;
  padding: 12px 32px;
  color: var(--background);
  background: var(--amber);
  font: 500 1rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.ritual-button:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

.microcopy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.question-offering {
  width: min(560px, 100%);
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(18px);
}

.question-offering.is-awake {
  animation: spread-rise 700ms ease forwards;
}

.question-prompt {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
}

.question-field {
  width: 100%;
}

.question-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--card);
  font: 1rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}

.question-field input:focus {
  outline: 1px solid var(--amber);
  border-color: var(--amber);
}

.question-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.question-offering .ritual-button {
  margin-top: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ritual-stage {
  display: grid;
  justify-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(18px);
}

.ritual-stage.is-awake {
  animation: spread-rise 700ms ease forwards;
}

.memory-line {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
}

.spread-preview {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  justify-content: center;
  gap: 2rem;
}

.spread-preview:not(.is-dealt) {
  visibility: hidden;
}

.shuffle-ritual {
  position: relative;
  width: 280px;
  height: 220px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
}

.shuffle-ritual.is-active {
  opacity: 1;
  visibility: visible;
}

.flame-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  box-shadow:
    0 0 24px rgba(245, 158, 11, 0.28),
    inset 0 0 18px rgba(234, 88, 12, 0.18);
}

.shuffle-ritual.is-active .flame-ring {
  animation: flame-swirl 850ms linear infinite;
}

.flame-card {
  position: absolute;
  width: 54px;
  height: 84px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow:
    inset 0 -12px 18px -16px rgba(245, 158, 11, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.35);
}

.shuffle-ritual.is-active .flame-card {
  animation: orbit 1.1s linear infinite;
}

.shuffle-ritual.is-active .flame-card:nth-of-type(2) {
  animation-delay: -0.36s;
}

.shuffle-ritual.is-active .flame-card:nth-of-type(3) {
  animation-delay: -0.72s;
}

.shuffle-ritual.is-active .flame-card:nth-of-type(4) {
  animation-delay: -0.18s;
}

.shuffle-ritual.is-active .flame-card:nth-of-type(5) {
  animation-delay: -0.54s;
}

.shuffle-ritual.is-active .flame-card:nth-of-type(6) {
  animation-delay: -0.9s;
}

.flame-core {
  position: relative;
  width: 122px;
  height: 164px;
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.62));
}

.flame-core span {
  position: absolute;
  bottom: 0;
  left: 50%;
  clip-path: polygon(50% 0%, 74% 22%, 92% 54%, 84% 82%, 62% 100%, 38% 100%, 16% 82%, 8% 54%, 26% 22%);
  transform-origin: center bottom;
}

.flame-core span:nth-child(1) {
  width: 98px;
  height: 150px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04), #f59e0b 28%, #ea580c 74%, #7c1d12 100%);
  transform: translateX(-50%) rotate(2deg);
}

.flame-core span:nth-child(2) {
  width: 74px;
  height: 126px;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.12), #ffd36d 18%, #f59e0b 60%, #ea580c 100%);
  transform: translateX(-68%) rotate(-10deg);
}

.flame-core span:nth-child(3) {
  width: 64px;
  height: 118px;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.12), #ffe2a8 16%, #f59e0b 56%, #ea580c 100%);
  transform: translateX(-28%) rotate(12deg);
}

.shuffle-ritual.is-active .flame-core span:nth-child(1) {
  animation: blaze-main 700ms ease-in-out infinite alternate;
}

.shuffle-ritual.is-active .flame-core span:nth-child(2) {
  animation: blaze-left 520ms ease-in-out infinite alternate;
}

.shuffle-ritual.is-active .flame-core span:nth-child(3) {
  animation: blaze-right 620ms ease-in-out infinite alternate;
}

.spread-preview .slot {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.spread-preview.is-dealt .slot {
  animation: deal-rise 520ms ease forwards;
}

.spread-preview.is-dealt .slot:nth-child(2) {
  animation-delay: 120ms;
}

.spread-preview.is-dealt .slot:nth-child(3) {
  animation-delay: 240ms;
}

.slot {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.slot-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tarot-card {
  position: relative;
  width: 200px;
  height: 320px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.tarot-card:disabled {
  cursor: default;
}

.card-face {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  backface-visibility: hidden;
  box-shadow:
    inset 0 -18px 24px -22px rgba(245, 158, 11, 0.8),
    0 24px 50px var(--shadow);
  animation: ember-pulse 2.8s ease-in-out infinite alternate;
  transition: transform 600ms ease;
}

.card-back {
  display: grid;
  place-items: center;
  border-color: rgba(245, 158, 11, 0.16);
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.08), transparent 44%),
    linear-gradient(160deg, #1b1b1b, var(--back-card));
  box-shadow:
    inset 0 -18px 24px -22px rgba(245, 158, 11, 0.82),
    0 0 0 1px rgba(245, 158, 11, 0.08),
    0 0 24px rgba(245, 158, 11, 0.12),
    0 24px 50px var(--shadow);
}

.card-front {
  transform: rotateY(180deg);
}

.tarot-card.is-flipped .card-back {
  transform: rotateY(180deg);
}

.tarot-card.is-flipped .card-front {
  transform: rotateY(360deg);
}

.back-sigil {
  width: 42px;
  height: 56px;
  opacity: 0.9;
}

.back-sigil svg {
  width: 100%;
  height: 100%;
  stroke: rgba(245, 158, 11, 0.4);
  stroke-width: 2.2;
}

.card-back .back-sigil {
  animation: sigil-breathe 2.2s ease-in-out infinite;
}

.card-direction {
  position: absolute;
  top: 22px;
  left: 50%;
  color: var(--amber);
  font-size: 0.95rem;
  transform: translateX(-50%);
}

.tarot-card.is-reversed .card-direction {
  color: var(--reversed);
}

.card-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  transform: translate(-50%, -52%);
}

.card-symbol svg {
  width: 100%;
  height: 100%;
  stroke: var(--amber);
}

.tarot-card.is-reversed .card-symbol svg {
  stroke: var(--reversed-symbol);
}

.card-name {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}

.card-name em {
  color: var(--reversed);
  font-style: normal;
}

.tarot-card.is-reversed.is-flipped .card-front {
  box-shadow:
    inset 0 -18px 24px -18px var(--reversed),
    0 24px 50px var(--shadow);
}

.keyword {
  min-height: 2.8rem;
  max-width: 220px;
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.45;
  text-align: center;
}

.cta-section {
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
}

.cta-lead {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
}

.cta-section .ritual-button {
  margin-top: 24px;
}

.loading-preview {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.free-reading,
.full-reading {
  width: min(760px, 100%);
  justify-self: center;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(17, 17, 17, 0.76);
  padding: clamp(22px, 4vw, 34px);
}

.free-reading p,
.full-reading p {
  color: var(--text);
  line-height: 1.8;
}

.reading-kicker {
  margin: 0 0 16px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
}

.free-reading p {
  margin: 0 0 16px;
}

.free-reading strong {
  color: var(--amber);
  font-weight: 600;
}

.reading-hook {
  margin-top: 22px;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}

.unlock-button {
  margin-top: 18px;
}

.full-reading h2,
.full-reading h3 {
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
}

.full-reading h2 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.full-reading h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.full-reading article + article {
  margin-top: 24px;
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
}

.payment-modal {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 30px;
}

.payment-modal h2 {
  margin: 0 34px 24px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.payment-intro {
  margin: -10px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.payment-modal label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.payment-modal label span {
  color: var(--muted);
  font-size: 0.82rem;
}

.payment-modal input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--card);
  font: inherit;
}

.payment-modal input:focus {
  outline: 1px solid var(--amber);
  border-color: var(--amber);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.payment-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--text);
}

.payment-summary span {
  color: var(--muted);
}

.modal-pay-button {
  width: 100%;
}

.payment-secure-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.purchase-disclaimer {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.about-link {
  position: fixed;
  right: 24px;
  bottom: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.about-link:hover {
  color: var(--text);
}

.closing-line {
  margin: 28px auto 36px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.library-footer-link {
  margin: -20px auto 34px;
  text-align: center;
}

.library-footer-link a,
.library-return a {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.library-footer-link a:hover,
.library-return a:hover,
.library-card a:hover,
.article-shell .back-link:hover {
  color: var(--text);
}

.homepage-about {
  width: min(760px, calc(100% - 32px));
  margin: -52px auto 22px;
}

.homepage-about article + article {
  margin-top: 34px;
}

.homepage-about h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.homepage-about p,
.homepage-about li {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.crisis-copy ul {
  margin: 0;
  padding-left: 18px;
}

.crisis-copy li + li {
  margin-top: 6px;
}

.about-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 0;
}

.library-page {
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.1), transparent 28rem),
    var(--background);
}

.library-shell,
.article-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.library-hero {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.library-hero p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-style: italic;
}

.library-grid {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}

.library-card {
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(17, 17, 17, 0.84);
  padding: clamp(20px, 4vw, 28px);
}

.library-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.library-card-meta span {
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 8px;
  color: var(--amber);
}

.library-card h2 {
  margin: 18px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.library-card a {
  color: var(--text);
  text-decoration: none;
}

.library-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.library-return {
  margin: 34px 0 0;
  text-align: center;
}

.article-shell {
  width: min(760px, calc(100% - 32px));
}

.flame-article header {
  margin-bottom: 42px;
}

.article-category {
  display: inline-block;
  margin: 0 0 18px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 8px;
  color: var(--amber);
  font-size: 0.76rem;
}

.flame-article h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.flame-article time {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.article-hook {
  margin: 28px 0 0;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
}

.flame-article section + section {
  margin-top: 34px;
}

.flame-article h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.flame-article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.flame-article section p + p {
  margin-top: 18px;
}

.article-return {
  margin-top: 42px;
}

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.about-section + .about-section {
  margin-top: 42px;
}

.about-section h1,
.about-section h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
}

.about-section h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.about-section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.about-section p,
.crisis-section li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.crisis-section ul {
  margin: 0;
  padding-left: 20px;
}

.crisis-section li + li {
  margin-top: 8px;
}

@keyframes ember-pulse {
  from {
    filter: brightness(0.96);
  }

  to {
    filter: brightness(1.04);
  }
}

@keyframes sigil-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
    filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0));
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.28));
  }
}

@keyframes spread-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flame-swirl {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(92px) rotate(0deg);
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

  to {
    transform: rotate(360deg) translateX(92px) rotate(-360deg);
    opacity: 0.45;
  }
}

@keyframes blaze-main {
  from {
    transform: translateX(-50%) rotate(2deg) scaleY(0.96);
  }

  to {
    transform: translateX(-50%) rotate(-3deg) scaleY(1.08);
  }
}

@keyframes blaze-left {
  from {
    transform: translateX(-68%) rotate(-10deg) scale(0.94, 0.96);
  }

  to {
    transform: translateX(-72%) rotate(-16deg) scale(1.04, 1.08);
  }
}

@keyframes blaze-right {
  from {
    transform: translateX(-28%) rotate(12deg) scale(0.94, 0.98);
  }

  to {
    transform: translateX(-24%) rotate(18deg) scale(1.04, 1.1);
  }
}

@keyframes deal-rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .page-shell {
    width: min(100% - 32px, 420px);
    gap: 52px;
    padding: 42px 0 84px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
  }

  .tagline {
    font-size: 1.35rem;
  }

  .intro {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .ritual-button {
    width: 100%;
  }

  .question-offering {
    width: 100%;
  }

  .payment-modal-backdrop {
    padding: 0;
  }

  .payment-modal {
    min-height: 100vh;
    width: 100%;
    display: grid;
    align-content: center;
    border: 0;
  }

  .spread-preview {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .slot {
    gap: 14px;
  }

  .keyword {
    max-width: 300px;
  }

  .closing-line {
    margin: 22px auto 18px;
  }

  .library-footer-link {
    margin: -4px auto 24px;
  }

  .homepage-about {
    margin: -12px auto 18px;
  }
}

.circle-page {
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.12), transparent 30rem),
    var(--background);
}

.circle-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.circle-hero {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.circle-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.circle-hero h1 {
  color: var(--amber);
}

.circle-hero p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-style: italic;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.benefits-grid article,
.archive-panel,
.weather-panel {
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(17, 17, 17, 0.84);
}

.benefits-grid article {
  padding: 22px;
}

.benefits-grid h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
}

.benefits-grid p,
.weather-panel p,
.archive-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.circle-action {
  display: grid;
  justify-items: center;
  margin-top: 34px;
}

.circle-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.circle-question-modal {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 30px;
}

.circle-question-modal h2 {
  margin: 0 34px 22px 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
}

.circle-question-modal .ritual-button {
  width: 100%;
  margin-top: 22px;
}

.circle-ritual {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-top: 54px;
  opacity: 0;
  transform: translateY(18px);
}

.circle-ritual.is-awake {
  animation: spread-rise 700ms ease forwards;
}

.circle-spread {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 24px;
}

.circle-spread:not(.is-dealt) {
  visibility: hidden;
}

.circle-spread .circle-slot {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.circle-spread.is-dealt .circle-slot {
  animation: deal-rise 520ms ease forwards;
}

.circle-spread.is-dealt .circle-slot:nth-child(2) {
  animation-delay: 120ms;
}

.circle-spread.is-dealt .circle-slot:nth-child(3) {
  animation-delay: 240ms;
}

.circle-slot {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.circle-slot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.circle-card {
  position: relative;
  width: 160px;
  height: 252px;
  border: 0;
  padding: 0;
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
}

.circle-card:disabled {
  cursor: default;
}

.circle-card-face {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.08), transparent 42%),
    linear-gradient(160deg, #1b1b1b, var(--back-card));
  backface-visibility: hidden;
  transition: transform 600ms ease;
  box-shadow:
    inset 0 -16px 22px -20px rgba(245, 158, 11, 0.8),
    0 0 24px rgba(245, 158, 11, 0.1),
    0 24px 50px var(--shadow);
}

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

.circle-card-front {
  background: var(--card);
  transform: rotateY(180deg);
}

.circle-card.is-flipped .circle-card-back {
  transform: rotateY(180deg);
}

.circle-card.is-flipped .circle-card-front {
  transform: rotateY(360deg);
}

.circle-card.is-reversed .circle-card-front {
  box-shadow:
    inset 0 -16px 22px -18px var(--reversed),
    0 24px 50px var(--shadow);
}

.circle-direction {
  position: absolute;
  top: 18px;
  left: 50%;
  color: var(--amber);
  transform: translateX(-50%);
}

.circle-card.is-reversed .circle-direction {
  color: var(--reversed);
}

.circle-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -54%);
}

.circle-symbol svg {
  width: 100%;
  height: 100%;
}

.circle-card.is-reversed .circle-symbol svg {
  stroke: var(--reversed-symbol);
}

.circle-name {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  color: var(--text);
  font-size: 0.82rem;
  text-align: center;
}

.circle-keyword {
  max-width: 180px;
  min-height: 2.5rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.circle-reading-actions {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: 34px;
  text-align: center;
}

.circle-reading-actions p {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
}

.circle-reading-actions .ritual-button {
  margin-top: 22px;
}

.circle-reading {
  margin: 34px auto 0;
}

.circle-columns {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  margin-top: 58px;
}

.archive-panel,
.weather-panel {
  padding: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.75rem;
}

.archive-list details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.archive-list details:first-child {
  border-top: 0;
  padding-top: 0;
}

.archive-list summary {
  cursor: pointer;
  list-style: none;
}

.archive-list summary::-webkit-details-marker {
  display: none;
}

.archive-list summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.archive-list summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 500;
}

.archive-list p {
  margin-top: 12px;
}

.weather-phase {
  margin-bottom: 12px !important;
  color: var(--amber) !important;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .circle-modal-backdrop {
    padding: 0;
  }

  .circle-question-modal {
    min-height: 100vh;
    width: 100%;
    display: grid;
    align-content: center;
    border: 0;
  }

  .circle-spread {
    grid-template-columns: 1fr;
  }
}
