@import url("fonts.css");

@font-face {
  font-family: "Absolute Beauty Script";
  src: url("Absolute Beauty Script Regular/Absolute Beauty Script Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html { overflow-x: hidden; }

.personal-reading-body {
  min-height: 100%;
  overflow-x: hidden;
  color: #f2f1ef;
  background-color: #232526;
  background-image: url("New Web Materials/Background-Reading-anthracite-v2.jpg?revision=2");
  background-image: image-set(
    url("New Web Materials/background-reading-3793-anthracite-v2.webp?revision=2") type("image/webp"),
    url("New Web Materials/Background-Reading-anthracite-v2.jpg?revision=2") type("image/jpeg")
  );
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.personal-reading-page [hidden] { display: none !important; }

.personal-reading-page {
  display: flex;
  width: 100%;
  min-height: max(100vh, 145.53vw);
  padding: 0 24px 24px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.personal-reading-logo {
  position: relative;
  z-index: 9;
  display: block;
  width: min(38vw, 600px);
  margin: -34px auto -92px;
  text-decoration: none;
}

.personal-reading-logo img { display: block; width: 100%; height: auto; }

.question-ritual {
  width: 100%;
  margin-top: calc(53.3vw - min(38vw, 600px) + 126px);
}

.paper-stage {
  position: relative;
  width: min(34vw, 650px);
  aspect-ratio: 2059 / 2328;
  margin: 0 auto;
}

.paper-frame,
.burn-layer,
.burn-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-frame { pointer-events: none; }

.paper-question {
  position: absolute;
  z-index: 2;
  top: 16%;
  left: 15%;
  width: 70%;
  height: 68%;
  padding: 8% 3%;
  overflow: hidden;
  resize: none;
  border: 0;
  outline: 0;
  color: #292522;
  background: transparent;
  caret-color: #292522;
  font-family: "Absolute Beauty Script", cursive;
  font-size: var(--question-size, 38px);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
}

.paper-question::placeholder { color: rgba(41, 37, 34, .62); opacity: 1; }
.paper-question:focus::placeholder { opacity: .3; transition: opacity 180ms ease; }

.burn-layer {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--burn-duration, 500ms) cubic-bezier(.4, 0, .2, 1);
}

.burn-layer p {
  position: absolute;
  inset: 0;
  display: flex;
  margin: 0;
  padding: 24% 17% 18%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #292522;
  font-family: "Absolute Beauty Script", cursive;
  font-size: var(--question-size, 38px);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-mask: var(--paper-mask) center / contain no-repeat;
  mask: var(--paper-mask) center / contain no-repeat;
}

.paper-stage.is-burning .paper-frame,
.paper-stage.is-burning .paper-question { opacity: 0; }
.paper-stage.is-burning .paper-question { pointer-events: none; }
.burn-layer.is-visible { opacity: 1; }

.burn-smoke {
  position: absolute;
  z-index: 5;
  inset: 8% 4% 10%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.burn-smoke i {
  position: absolute;
  bottom: 18%;
  left: 28%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 225, 231, .32), rgba(184, 195, 209, 0) 70%);
  filter: blur(5px);
  transform: translate3d(0, 0, 0) scale(.65);
}

.burn-smoke i:nth-child(2) { bottom: 35%; left: 55%; width: 18%; animation-delay: 150ms; }
.burn-smoke i:nth-child(3) { bottom: 54%; left: 38%; width: 15%; animation-delay: 300ms; }
.paper-stage.is-burning .burn-smoke { opacity: 1; transition: opacity 220ms ease; }
.paper-stage.is-burning .burn-smoke i { animation: smoke-drift 1.05s ease-out infinite; }

@keyframes smoke-drift {
  0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.55); }
  28% { opacity: .58; }
  100% { opacity: 0; transform: translate3d(10px, -34px, 0) scale(1.15); }
}

.reading-error {
  min-height: 20px;
  margin: 8px auto 0;
  color: #f0c7bf;
  font-size: 13px;
}

.personal-reading-actions { margin-top: 24vw; }

.personal-ask,
.personal-gift {
  display: block;
  position: relative;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
  box-shadow: none;
  cursor: pointer;
}

.personal-ask {
  width: 280px;
  height: 58px;
}

.personal-ask img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 350px;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.personal-gift {
  width: 170px;
  margin-top: 3px;
}

.personal-gift img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.burn-complete {
  position: fixed;
  z-index: 12;
  top: 50%;
  left: 50%;
  margin: 0;
  opacity: 0;
  font-family: "Neue Haas Grotesk Display Pro", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .08em;
  transform: translate(-50%, -50%);
  transition: opacity 500ms ease;
  white-space: nowrap;
}
.burn-complete.is-visible { opacity: 1; }
.burn-complete.is-fading-out { opacity: 0; }

.reading-deck-link {
  position: absolute;
  z-index: 8;
  top: 3.8vw;
  right: 4.5vw;
  width: min(24vw, 460px);
  height: min(6vw, 92px);
  overflow: visible;
}

.reading-deck-link img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 190%;
  height: auto;
  transform: translate(-50%, -50%);
}

.reading-result {
  width: 100%;
  padding: 0 0 clamp(90px, 10vw, 180px);
}

.reading-spread {
  display: grid;
  width: min(82vw, 1100px);
  margin: 0 auto;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(22px, 5vw, 78px);
}

.reading-card {
  --reading-card-radius: 7px;
  border-radius: var(--reading-card-radius);
  overflow: hidden;
  background: transparent;
  margin: 0;
  opacity: 0;
  animation: reading-card-arrive 520ms ease-out forwards;
}

.reading-card:nth-child(2) { animation-delay: 120ms; }
.reading-card:nth-child(3) { animation-delay: 220ms; }
.reading-card-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 12;
  border-radius: inherit;
  overflow: hidden;
  object-fit: contain;
}
.reading-card-minor .reading-card-media { aspect-ratio: auto; }
.reading-card-media.is-reversed { transform: rotate(180deg); }

@keyframes reading-card-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reading-interpretation {
  width: min(calc(100% - 48px), 860px);
  margin: clamp(90px, 10vw, 160px) auto 0;
  font-family: "Neue Haas Grotesk Display Pro", sans-serif;
  text-align: center;
}

.reading-interpretation .reading-result-heading,
.reading-interpretation h2 {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 500;
  letter-spacing: .035em;
}

.reading-interpretation .reading-result-heading { margin-top: 54px; }
.reading-interpretation h2:not(:first-child) { margin-top: 54px; }
.reading-interpretation p {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  text-align: justify;
}
.reading-question-recap { text-align: center !important; }

.reading-result-visible {
  background-image: url("New Web Materials/Background-anthracite-v2.jpg?revision=2");
  background-image: image-set(
    url("New Web Materials/background-home-3840-anthracite-v2.webp?revision=2") type("image/webp"),
    url("New Web Materials/Background-anthracite-v2.jpg?revision=2") type("image/jpeg")
  );
  background-size: cover;
}

.reading-preparing {
  background-image: url("New Web Materials/Background-anthracite-v2.jpg?revision=2");
  background-image: image-set(
    url("New Web Materials/background-home-3840-anthracite-v2.webp?revision=2") type("image/webp"),
    url("New Web Materials/Background-anthracite-v2.jpg?revision=2") type("image/jpeg")
  );
  background-size: cover;
}

.personal-reading-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 90px;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 42px);
}

.personal-reading-footer a { color: inherit; font-size: 11px; text-decoration: none; white-space: nowrap; }

.reading-modal {
  width: min(calc(100% - 32px), 390px);
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #171717;
  border-radius: 0;
  color: #111;
  background: #fff;
}

.reading-modal::backdrop { background: rgba(2, 7, 36, .62); }

.modal-card {
  position: relative;
  display: grid;
  padding: 34px 32px 30px;
  gap: 18px;
  text-align: center;
}

.modal-card h2 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.modal-card p { margin: 0; font-size: 14px; line-height: 1.45; }
.modal-card strong { font-size: 17px; font-weight: 500; }

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
}

.modal-primary,
.development-payment {
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid #111;
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.modal-primary { color: #fff; background: #111; }
.development-payment { color: #111; background: #fff; font-size: 10px; letter-spacing: .03em; }
.modal-primary:disabled,
.development-payment:disabled { opacity: .45; cursor: default; }

.reading-legal-consent {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: start;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.4;
}
.reading-legal-consent input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: #111; }
.checkout-legal-links { display: flex; justify-content: center; gap: 7px; font-size: 11px !important; }
.checkout-legal-links a { color: inherit; text-underline-offset: 2px; }

.gift-form { gap: 13px; text-align: left; }
.gift-form h2,
.gift-form > p,
.gift-form > strong { text-align: center; }
.gift-form label { display: grid; gap: 5px; font-size: 12px; }
.gift-form input,
.gift-form textarea { width: 100%; padding: 8px 9px; border: 1px solid #777; border-radius: 0; background: #fff; font: inherit; font-size: 13px; }
.gift-form textarea { min-height: 62px; resize: vertical; }
.modal-error { min-height: 17px; color: #7a1919; font-size: 12px !important; text-align: center; }
.gift-purchase-result { text-align: center; }
.gift-private-link { display: block; margin-top: 8px; overflow-wrap: anywhere; color: #111; font-size: 12px; }

@media (hover: hover) and (pointer: fine) {
  .personal-reading-logo img,
  .personal-ask,
  .personal-gift { transition: transform 250ms cubic-bezier(.22, .61, .36, 1); }
  .personal-reading-logo:hover img { transform: scale(1.035); }
  .personal-ask:hover,
  .personal-gift:hover { transform: scale(1.045); }
}

@media (max-width: 600px) {
  .personal-reading-body {
    position: relative;
    isolation: isolate;
    background: #232526;
  }
  .personal-reading-body::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: #232526;
    background-image: url("New Web Materials/Background-Reading-anthracite-v2.jpg?revision=2");
    background-image: image-set(
      url("New Web Materials/background-reading-900-anthracite-v2.webp?revision=2") type("image/webp"),
      url("New Web Materials/Background-Reading-anthracite-v2.jpg?revision=2") type("image/jpeg")
    );
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    content: "";
    pointer-events: none;
  }
  .personal-reading-body.reading-preparing::before,
  .personal-reading-body.reading-result-visible::before {
    background-image: url("New Web Materials/Background-anthracite-v2.jpg?revision=2");
    background-image: image-set(
      url("New Web Materials/background-home-900-anthracite-v2.webp?revision=2") type("image/webp"),
      url("New Web Materials/Background-anthracite-v2.jpg?revision=2") type("image/jpeg")
    );
  }
  .personal-reading-page { min-height: 100svh; padding: 0 16px 18px; }
  .personal-reading-logo { width: min(48vw, 220px); margin: 0 auto; }
  .question-ritual {
    position: relative;
    display: flex;
    width: min(86vw, 520px);
    aspect-ratio: .855;
    margin-top: 78px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: transparent;
  }
  .paper-stage {
    position: relative;
    width: 62%;
    margin: 0;
  }
  .paper-stage .burn-layer,
  .paper-stage .burn-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
  }
  .reading-error {
    position: absolute;
    right: 16px;
    bottom: 8px;
    left: 16px;
  }
  .paper-question,
  .burn-layer p { --question-size: 29px; line-height: 1.18; }
  .personal-reading-actions { margin-top: 62px; }
  .personal-ask { width: 240px; height: 50px; }
  .personal-ask img { width: 300px; }
  .personal-gift { width: 150px; margin-top: 26px; }
  .reading-deck-link { top: 18px; right: 15px; width: 150px; height: 44px; }
  .reading-deck-link img { width: 120%; }
  .has-reading-result .personal-reading-logo { width: min(48vw, 220px); margin-bottom: 54px; }
  .reading-result { padding-bottom: 80px; }
  .reading-spread {
    width: min(calc(100% - 16px), 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 24px;
    align-items: start;
  }
  .reading-card { --reading-card-radius: 5px; }
  .reading-card-minor { width: 100%; max-width: 145px; justify-self: end; animation-name: reading-card-side-mobile; }
  .reading-card-minor:last-child { justify-self: start; }
  .reading-card-major { grid-column: 1 / -1; grid-row: 1; width: 76%; max-width: 320px; justify-self: center; animation-name: reading-card-major-mobile; }
  .reading-interpretation {
    width: min(calc(100% - 64px), 560px);
    margin-top: 60px;
  }
  .reading-interpretation .reading-result-heading,
  .reading-interpretation h2 { font-size: 15px; }
  .reading-interpretation .reading-result-heading,
  .reading-interpretation h2:not(:first-child) { margin-top: 46px; }
  .reading-interpretation p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    text-align: justify;
  }
  .reading-question-recap { text-align: center !important; }
  .personal-reading-footer { padding-top: 70px; gap: 10px 14px; }
  .personal-reading-footer a { font-size: 9px; }
  .modal-card { padding: 32px 22px 24px; }
  .reading-legal-consent { font-size: 11px; }
}

@keyframes reading-card-side-mobile {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reading-card-major-mobile {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 601px) and (max-width: 1200px) {
  .personal-reading-body {
    background-image: url("New Web Materials/Background-Reading-anthracite-v2.jpg?revision=2");
    background-image: image-set(
      url("New Web Materials/background-reading-1800-anthracite-v2.webp?revision=2") type("image/webp"),
      url("New Web Materials/Background-Reading-anthracite-v2.jpg?revision=2") type("image/jpeg")
    );
  }
  .reading-result-visible {
    background-image: url("New Web Materials/Background-anthracite-v2.jpg?revision=2");
    background-image: image-set(
      url("New Web Materials/background-home-1800-anthracite-v2.webp?revision=2") type("image/webp"),
      url("New Web Materials/Background-anthracite-v2.jpg?revision=2") type("image/jpeg")
    );
  }
  .reading-preparing {
    background-image: url("New Web Materials/Background-anthracite-v2.jpg?revision=2");
    background-image: image-set(
      url("New Web Materials/background-home-1800-anthracite-v2.webp?revision=2") type("image/webp"),
      url("New Web Materials/Background-anthracite-v2.jpg?revision=2") type("image/jpeg")
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .personal-reading-logo img,
  .personal-ask,
  .personal-gift,
  .burn-layer,
  .burn-complete { transition: none !important; }
  .burn-smoke i,
  .reading-card { animation: none !important; opacity: 1; transform: none; }
}

/* Paid retry controls share the existing preparation message position. */
.burn-complete.has-paid-retry {
  width: min(90vw, 520px);
  white-space: normal;
  line-height: 1.6;
}
.reading-retry {
  position: fixed;
  z-index: 13;
  top: calc(50% + 85px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 48px);
}

.reading-card-major { cursor: pointer; touch-action: manipulation; }
.reading-card-major video { pointer-events: none; background: transparent; }
.reading-card-major video::-webkit-media-controls,
.reading-card-major video::-webkit-media-controls-start-playback-button { display: none !important; }
.reading-card-major:focus-visible { outline: 2px solid #f2f1ef; outline-offset: 5px; }

@media (min-width: 601px) {
  /* Clip only the navigation artwork's transparent canvas, keeping its lettering in place. */
  .reading-deck-link { overflow: hidden; }
}
