/* A large, cinematic card reveal, kept within the app's blue / charcoal palette. */
.result-page:has(.reading-experience) {
  max-width: 1120px;
}
.reading-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 34px;
  --cinema-width: 276px;
  --slide-step: 258px;
}
.reading-experience:focus {
  outline: none;
}
.reading-experience:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 8px;
  border-radius: 24px;
}
.reveal-visual {
  min-width: 0;
  padding-bottom: 18px;
  overflow: hidden;
  border-radius: 28px;
  background: #16181f;
  background: linear-gradient(180deg, #1b202b 0%, #181b24 70%, #1c1e27 100%);
  box-shadow: inset 0 1px 0 #c8deff0a;
}
.reveal-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(var(--cinema-width) * 1.5 + 128px);
  perspective: 1200px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.reveal-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.reveal-glow {
  width: 480px;
  height: 480px;
  max-width: 120%;
  position: absolute;
  left: 50%;
  top: 43%;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    #3182f644,
    #3182f615 43%,
    transparent 70%
  );
}
.reveal-ring {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid #64a8ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.reveal-particle {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 3px;
  height: 7px;
  border-radius: 3px;
  opacity: 0;
  background: #9ec8ff;
  box-shadow: 0 0 9px #64a8ff99;
}
.reveal-particle:nth-child(3n) {
  width: 4px;
  height: 4px;
  background: #e4efff;
}
.reveal-slides {
  position: absolute;
  inset: 0;
  perspective: 1400px;
}
.reveal-slide {
  position: absolute;
  left: 50%;
  top: 28px;
  width: var(--cinema-width);
  margin: 0;
  opacity: 0;
  transform: translateX(calc(-50% + var(--slide-offset, 0) * var(--slide-step)))
    scale(var(--slide-scale, 1)) rotateY(var(--slide-turn, 0deg));
  transform-origin: 50% 42%;
  transition:
    transform 760ms cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 550ms ease,
    filter 650ms ease;
  filter: brightness(0.5) saturate(0.65);
  pointer-events: none;
}
.reveal-slide.is-adjacent {
  opacity: 0.47;
}
.reveal-slide.is-active {
  opacity: 1;
  filter: none;
  transform: translateX(-50%) scale(1) rotateY(0);
  pointer-events: auto;
}
.cinema-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  perspective: 1200px;
  position: relative;
  filter: drop-shadow(0 22px 28px #0008);
}
.cinema-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}
.cinema-card-front,
.cinema-card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  background: #202027;
  box-shadow: 0 0 0 1px #c5dcff20;
}
.cinema-card-front {
  transform: rotateY(0deg) translateZ(1px);
}
.cinema-card-back {
  transform: rotateY(180deg) translateZ(1px);
}
.cinema-card-front img,
.cinema-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
.cinema-card-name {
  position: absolute;
  bottom: 8.5%;
  left: 12%;
  width: 76%;
  padding: 4px 0;
  text-align: center;
  background: #202027;
  color: #e5e8eb;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.cinema-caption {
  padding-top: 20px;
  text-align: center;
  transition: opacity 250ms ease;
}
.reveal-slide:not(.is-active) .cinema-caption {
  opacity: 0;
  visibility: hidden;
}
.cinema-caption .result-position {
  color: var(--blue-text);
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 4px;
  text-align: center;
}
.cinema-caption h2 {
  font-size: 25px;
  line-height: 34px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.cinema-caption .english {
  color: #8b95a1;
  margin-top: 3px;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.12em;
}
.reveal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 5;
}
.reveal-controls[hidden] {
  display: none;
}
.reveal-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff09;
  color: #d1d6db;
}
.reveal-controls > button svg {
  width: 20px;
  height: 20px;
}
.reveal-controls [data-result-prev] svg {
  transform: rotate(180deg);
}
.reveal-controls > button:hover:not(:disabled) {
  background: #3182f62b;
  color: #fff;
}
.reveal-controls > button:disabled {
  opacity: 0.25;
}
.reveal-dots {
  display: flex;
  align-items: center;
}
.reveal-dots button {
  width: 32px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
}
.reveal-dots button::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: #4e5968;
  transition:
    width 300ms var(--ease),
    background 200ms ease;
}
.reveal-dots button span {
  display: none;
}
.reveal-dots button.is-active::before {
  width: 22px;
  background: #64a8ff;
}
.reveal-status {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 18px;
  color: #8b95a1;
  margin-top: 2px;
}
.reveal-help {
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #8b95a1;
  margin-top: 4px;
}
.reading-experience[data-card-count="1"] .reveal-controls,
.reading-experience[data-card-count="1"] .reveal-status,
.reading-experience[data-card-count="1"] .reveal-help {
  display: none;
}
.reading-copy-wrap {
  min-width: 0;
  padding: 16px 8px 16px 0;
}
.reading-copy[hidden] {
  display: none;
}
.reading-kicker {
  display: block;
  color: var(--blue-text);
  font-size: 13px;
  line-height: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}
.reading-card-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 20px;
}
.reading-card-label strong {
  color: #f2f4f6;
  font-size: 17px;
  line-height: 25px;
}
.reading-card-label span {
  color: #8b95a1;
  font-size: 12px;
  line-height: 20px;
}
.reading-copy h3 {
  max-width: 18em;
  color: #f2f4f6;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  font-weight: 700;
  text-wrap: pretty;
}
.reading-origin {
  margin-bottom: 26px;
}
.reading-origin summary {
  width: fit-content;
  color: #8b95a1;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}
.reading-origin summary:hover {
  color: #b0b8c1;
}
.reading-origin p {
  color: #8b95a1;
  font-size: 13px;
  line-height: 1.8;
  margin: 10px 0 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.reading-context h4 {
  font-size: 13px;
  line-height: 21px;
  font-weight: 600;
  color: #d1d6db;
  margin: 0 0 8px;
}
.reading-message {
  color: #b0b8c1;
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.reading-example {
  border-left: 2px solid #3b4658;
  padding-left: 14px;
  margin-top: 17px;
}
.reading-example span {
  display: block;
  color: #8b95a1;
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 4px;
}
.reading-example p {
  color: #b0b8c1;
  font-size: 14px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.reading-advice {
  border-radius: 18px;
  background: #242a36;
  padding: 22px;
  margin-top: 24px;
}
.reading-reflection {
  border-top: 1px solid #364052;
  margin-top: 16px;
  padding-top: 14px;
}
.reading-reflection span {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: #8b95a1;
  margin-bottom: 6px;
}
.reading-advice .reading-reflection p {
  font-size: 14px;
}
.reading-advice strong {
  display: block;
  color: #64a8ff;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.reading-advice p {
  color: #d1d6db;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (min-width: 1100px) {
  .reading-experience {
    --cinema-width: 294px;
    --slide-step: 274px;
    gap: 46px;
  }
}
@media (max-width: 760px) {
  .reading-experience {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    --cinema-width: min(236px, calc(100vw - 108px));
    --slide-step: min(225px, calc(100vw - 80px));
  }
  .reveal-visual {
    margin-inline: -8px;
    border-radius: 24px;
    padding-bottom: 16px;
  }
  .reveal-stage {
    height: calc(var(--cinema-width) * 1.5 + 123px);
  }
  .reveal-slide {
    top: 24px;
  }
  .cinema-card-front,
  .cinema-card-back {
    border-radius: 15px;
  }
  .cinema-card-name {
    font-size: 11px;
    padding: 3px 0;
  }
  .cinema-caption {
    padding-top: 18px;
  }
  .cinema-caption h2 {
    font-size: 24px;
    line-height: 33px;
  }
  .reveal-controls {
    gap: 20px;
  }
  .reading-copy-wrap {
    padding: 32px 2px 8px;
  }
  .reading-copy h3 {
    font-size: 24px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .reading-message {
    font-size: 16px;
    line-height: 1.85;
  }
  .reading-kicker {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .reading-advice {
    padding: 20px;
    margin-top: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reading-experience *,
  .reading-experience *::before {
    animation: none !important;
    transition: none !important;
  }
}
.reading-experience.is-reduced-motion *,
.reading-experience.is-reduced-motion *::before {
  transition: none !important;
}
