.divination-section {
  position: relative;
  z-index: 32;
  padding: clamp(46px, 5vw, 75px) 0 clamp(90px, 10vw, 150px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(105, 39, 111, .08), transparent 35%),
    #f7f4ee;
  color: #17130f;
  scroll-margin-top: 92px;
}

.divination-section__intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
}

.divination-section__intro h2 {
  max-width: 13ch;
  margin: 0;
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(42px, 6.3vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.divination-section__intro p {
  margin: 50px 0 0;
  color: rgba(23, 19, 15, .68);
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.45;
  letter-spacing: .025em;
}

.divination-ready {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  height: 56px;
  margin-top: 28px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: #0a0908;
  box-shadow: 0 12px 30px rgba(13, 12, 11, .16), inset 0 1px rgba(255, 255, 255, .16);
  color: #fff;
  font: 500 16px/1 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, .61, .36, 1), background .25s ease;
}

.divination-ready:hover,
.divination-ready:focus-visible {
  background: #211a20;
  transform: translateY(-2px);
}

.divination-ready:focus-visible {
  outline: 2px solid #17130f;
  outline-offset: 3px;
}

.divination-section.is-started .divination-ready {
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  pointer-events: none;
}

.divination-table {
  position: relative;
  width: min(88vw, 1448px);
  aspect-ratio: 1448 / 1086;
  margin: clamp(22px, 3vw, 42px) auto 0;
  filter: drop-shadow(0 30px 48px rgba(35, 12, 31, .24));
}

.divination-table__cloth {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.divination-table__surface {
  position: absolute;
  inset: 8.2% 6.2% 9%;
  overflow: hidden;
  border-radius: 3.4%;
  perspective: 1200px;
}

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

.tarot-deck {
  position: absolute;
  top: 10%;
  right: 5%;
  left: 5%;
  height: 38%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.divination-section.is-started .tarot-deck {
  opacity: 1;
}

.divination-section.is-dealt .tarot-deck {
  pointer-events: auto;
}

.tarot-deck-card,
.tarot-flight-card,
.tarot-reading-card {
  width: clamp(64px, 6.6vw, 100px);
  aspect-ratio: 300 / 527;
  border: 0;
  border-radius: clamp(3px, .45vw, 7px);
  background: transparent;
  box-shadow: 0 7px 16px rgba(8, 0, 7, .38);
  transform-style: preserve-3d;
}

.tarot-deck-card {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0;
  cursor: pointer;
  transition:
    left .9s cubic-bezier(.22, .61, .36, 1),
    top .9s cubic-bezier(.22, .61, .36, 1),
    transform .9s cubic-bezier(.22, .61, .36, 1),
    opacity .25s ease,
    filter .25s ease;
  will-change: left, top, transform;
}

.divination-section.is-dealt .tarot-deck-card:hover,
.divination-section.is-dealt .tarot-deck-card:focus-visible {
  z-index: 200 !important;
  filter: brightness(1.12) drop-shadow(0 12px 12px rgba(0, 0, 0, .3));
  outline: 2px solid rgba(246, 207, 102, .95);
  outline-offset: 2px;
}

.tarot-deck-card.is-picked {
  opacity: 0;
  pointer-events: none;
}

.tarot-card__inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform .82s cubic-bezier(.2, .75, .25, 1);
}

.tarot-card__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

.tarot-reading-card.is-reversed .tarot-card__face--front {
  transform: rotateY(180deg) rotateZ(180deg);
}

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

.tarot-flight-card {
  position: absolute;
  z-index: 300;
  margin: 0;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
}

.divination-reading-cta {
  position: absolute;
  top: calc(55% - 20px);
  left: 50%;
  z-index: 160;
  display: inline-flex;
  min-width: 184px;
  height: 56px;
  padding: 0 30px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(13, 12, 11, .16);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(13, 12, 11, .14);
  color: #0d0c0b;
  font: 500 16px/1 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: .025em;
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, -42%) scale(.9);
  pointer-events: none;
  cursor: pointer;
  transition:
    opacity .65s cubic-bezier(.22, .61, .36, 1),
    transform .75s cubic-bezier(.22, .61, .36, 1),
    background .25s ease;
}

.divination-reading-cta > span {
  position: relative;
  z-index: 1;
}

.divination-reading-cta:hover,
.divination-reading-cta:focus-visible {
  background: #f7f4ee;
}

.divination-reading-cta:focus-visible {
  outline: 2px solid #0d0c0b;
  outline-offset: 3px;
}

.divination-section.is-reading-ready .divination-reading-cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.tarot-spread {
  position: absolute;
  right: 9%;
  bottom: calc(6% + 30px);
  left: 9%;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 5vw, 84px);
  align-items: end;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}

.divination-section.is-started .tarot-spread {
  opacity: 1;
  transform: translateY(0);
}

.tarot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.tarot-slot__mount {
  position: relative;
  width: clamp(88px, 10vw, 142px);
  aspect-ratio: 300 / 527;
  border: 1px solid rgba(241, 202, 98, .45);
  border-radius: clamp(4px, .55vw, 8px);
  background: rgba(29, 6, 24, .18);
  box-shadow: inset 0 0 28px rgba(4, 0, 3, .2);
}

.tarot-slot__mount::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(244, 207, 113, .44);
  font-size: clamp(16px, 2.2vw, 30px);
  transform: translate(-50%, -50%);
}

.tarot-reading-card {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  box-shadow: 0 13px 24px rgba(4, 0, 3, .48), 0 0 28px rgba(238, 188, 75, .2);
  transition: opacity .16s ease;
}

.tarot-reading-card.is-visible {
  opacity: 1;
}

.divination-section.is-complete .tarot-slot__mount {
  border-color: rgba(250, 215, 126, .72);
  box-shadow: inset 0 0 20px rgba(4, 0, 3, .16), 0 0 24px rgba(243, 199, 93, .12);
}

@media (max-width: 760px) {
  .divination-section {
    padding-top: 37px;
    scroll-margin-top: 76px;
  }

  .divination-section__intro h2 {
    max-width: 11ch;
    font-size: clamp(36px, 11vw, 54px);
  }

  .divination-section__intro p {
    margin-top: 50px;
    font-size: 17px;
  }

  .divination-ready {
    min-width: 154px;
    height: 48px;
    padding: 0 26px;
    font-size: 14px;
  }

  .divination-table {
    width: calc(100vw - 12px);
    margin-top: 19px;
  }

  .divination-table__surface {
    inset: 8.5% 5.5% 9.5%;
  }

  .tarot-deck {
    top: 9%;
    right: 4%;
    left: 4%;
    height: 43%;
  }

  .tarot-deck-card,
  .tarot-flight-card {
    width: clamp(34px, 10vw, 44px);
  }

  .tarot-spread {
    right: 7%;
    bottom: 4.5%;
    left: 7%;
    gap: 13px;
  }

  .divination-reading-cta {
    top: calc(50% - 24px);
    min-width: 128px;
    height: 38px;
    padding: 0 18px;
    gap: 6px;
    font-size: 12.5px;
  }

  .divination-reading-cta .google-mark {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .tarot-slot__mount {
    width: clamp(54px, 16vw, 68px);
    transform: scale(.8);
    transform-origin: 50% 50%;
  }

  .tarot-reading-card {
    box-shadow: 0 5px 10px rgba(4, 0, 3, .32), 0 0 12px rgba(238, 188, 75, .12);
  }

}

@media (max-width: 420px) {
  .divination-section__intro {
    padding: 0 18px;
  }

  .divination-section__intro h2 {
    font-size: clamp(32px, 10.5vw, 44px);
  }

  .divination-section__intro p {
    font-size: 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .divination-ready,
  .divination-reading-cta,
  .tarot-deck-card,
  .tarot-card__inner,
  .tarot-spread {
    transition-duration: .01ms !important;
  }
}
