/* 별 헤는 밤바다의 재회운 타로 */

.feature-card--tarot-reunion { border-bottom: 3px solid #6fb7ff; }
.feature-card--tarot-reunion .feature-card__cta,
.feature-card--tarot-reunion .feature-card__launch {
  background: linear-gradient(135deg, #2f6fa5, #7db7e7);
  color: #f5fbff;
  box-shadow: 0 0 14px rgba(116, 176, 232, 0.35);
}

/* 밤바다·별 우주 배경 */
.tarot-reunion-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  z-index: 99999;
  display: none;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background:
    radial-gradient(ellipse 120% 100% at 50% 100%, rgba(15, 45, 85, 0.6), transparent 50%),
    radial-gradient(circle at 15% 22%, rgba(100, 180, 255, 0.18), transparent 40%),
    radial-gradient(circle at 72% 16%, rgba(255, 235, 180, 0.1), transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(30, 70, 120, 0.35), transparent 45%),
    linear-gradient(180deg, #050a18 0%, #08122a 25%, #0c1a38 50%, #0f2245 75%, #132a52 100%);
  backdrop-filter: blur(10px);
}
.tarot-reunion-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 15%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 60% 12%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 80% 18%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 10% 40%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90% 35%, rgba(255, 255, 255, 0.5), transparent);
  background-size: 200% 200%;
  opacity: 0.6;
  animation: reunionStarsFloat 20s ease-in-out infinite;
}
@keyframes reunionStarsFloat {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-2px); }
}
.tarot-reunion-overlay.is-open { display: block; animation: reunionOverlayIn .5s ease; }
@keyframes reunionOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tarot-reunion-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 100000;
}
.tarot-reunion-stars .star {
  position: absolute;
  border-radius: 50%;
  background: rgba(224, 244, 255, .95);
  box-shadow: 0 0 12px rgba(200, 231, 255, .85), 0 0 24px rgba(180, 220, 255, .4);
  animation: reunionStarTwinkle 4.2s ease-in-out infinite;
}
.tarot-reunion-stars .s1 { left: 9%; top: 13%; width: 3px; height: 3px; animation-delay: .1s; }
.tarot-reunion-stars .s2 { left: 18%; top: 9%; width: 2px; height: 2px; animation-delay: 1.1s; }
.tarot-reunion-stars .s3 { left: 34%; top: 16%; width: 4px; height: 4px; animation-delay: 1.8s; }
.tarot-reunion-stars .s4 { left: 51%; top: 10%; width: 3px; height: 3px; animation-delay: .6s; }
.tarot-reunion-stars .s5 { left: 68%; top: 14%; width: 2px; height: 2px; animation-delay: 2.2s; }
.tarot-reunion-stars .s6 { left: 83%; top: 8%; width: 3px; height: 3px; animation-delay: .9s; }
.tarot-reunion-stars .s7 { left: 76%; top: 28%; width: 2px; height: 2px; animation-delay: 2.8s; }
.tarot-reunion-stars .s8 { left: 25%; top: 30%; width: 4px; height: 4px; animation-delay: 1.5s; }
.tarot-reunion-stars .s9 { left: 42%; top: 24%; width: 3px; height: 3px; animation-delay: .3s; }
.tarot-reunion-stars .s10 { left: 60%; top: 20%; width: 2px; height: 2px; animation-delay: 2.5s; }
@keyframes reunionStarTwinkle {
  0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
  50% { transform: translateY(-6px) scale(1.4); opacity: 1; }
}

.tarot-reunion-lighthouse {
  position: fixed;
  right: 8%;
  bottom: 20%;
  width: 84px;
  height: 190px;
  z-index: 100001;
  pointer-events: none;
}
.tarot-reunion-lighthouse .tower {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 44px;
  height: 150px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #f0f5fc, #bccad9 68%, #8da0b5 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 10px 26px rgba(3, 8, 20, .5);
}
.tarot-reunion-lighthouse .lamp {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, .95) 0%, rgba(255, 194, 102, .82) 55%, rgba(255, 194, 102, 0) 72%);
  box-shadow: 0 0 22px rgba(255, 213, 125, .85);
}
.tarot-reunion-lighthouse .beam {
  position: absolute;
  left: 20px;
  top: 34px;
  width: min(52vw, 540px);
  height: 120px;
  transform-origin: 0 50%;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, rgba(255, 215, 138, .35), rgba(255, 215, 138, 0));
  clip-path: polygon(0 44%, 100% 0, 100% 100%);
  filter: blur(1px);
  animation: lighthouseSweep 6.2s ease-in-out infinite;
}
.tarot-reunion-lighthouse .water-reflection {
  position: absolute;
  left: -110px;
  bottom: -22px;
  width: 260px;
  height: 56px;
  background: radial-gradient(ellipse at center, rgba(255, 216, 140, .34), rgba(255, 216, 140, 0) 72%);
  animation: reflectionWave 3.8s ease-in-out infinite;
}
@keyframes lighthouseSweep {
  0%, 100% { transform: rotate(-6deg); opacity: .5; }
  50% { transform: rotate(8deg); opacity: .92; }
}
@keyframes reflectionWave {
  0%, 100% { transform: scaleX(.92); opacity: .38; }
  50% { transform: scaleX(1.08); opacity: .62; }
}

/* 밤바다 수평선·물결 느낌 (하단) */
.tarot-reunion-overlay::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 99998;
  pointer-events: none;
  background: linear-gradient(0deg,
    rgba(8, 25, 50, .5) 0%,
    rgba(15, 40, 75, .25) 25%,
    transparent 100%);
  mask-image: linear-gradient(0deg, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(0deg, black 0%, transparent 100%);
}

.tarot-reunion-shell {
  position: relative;
  max-width: 1040px;
  margin: 38px auto;
  padding: 24px 16px 42px;
  z-index: 100002;
}
.tarot-reunion-panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(160, 210, 255, .3);
  backdrop-filter: blur(16px);
  background:
    linear-gradient(160deg, rgba(6, 22, 48, .85), rgba(8, 32, 62, .82)),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(80, 150, 255, .08), transparent 50%);
  box-shadow:
    0 0 48px rgba(60, 140, 220, .15),
    0 24px 72px rgba(2, 12, 28, .6),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 32px;
}
.tarot-reunion-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 255, .2) 30%, rgba(120, 180, 255, .25) 50%, rgba(120, 180, 255, .2) 70%, transparent);
  opacity: 0.8;
}
.tarot-reunion-panel.ritual-burst { animation: reunionBurst .9s ease; }
@keyframes reunionBurst {
  0% { box-shadow: 0 0 38px rgba(98, 172, 230, .2), 0 22px 70px rgba(4,14,32,.55); }
  40% { box-shadow: 0 0 68px rgba(153, 208, 255, .6), 0 22px 70px rgba(4,14,32,.55); }
  100% { box-shadow: 0 0 38px rgba(98, 172, 230, .2), 0 22px 70px rgba(4,14,32,.55); }
}

.tarot-reunion-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(203, 230, 255, .45);
  background: rgba(24, 55, 92, .6);
  color: #eef7ff;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarot-reunion-stage { display: none; }
.tarot-reunion-stage.is-active { display: block; animation: reunionFadeUp .45s ease; }
@keyframes reunionFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tarot-reunion-hero {
  border-radius: 18px;
  padding: 30px 26px 34px;
  background:
    linear-gradient(160deg, rgba(20, 55, 100, .4), rgba(15, 40, 75, .35)),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(100, 170, 255, .12), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(160, 210, 255, .25), 0 4px 24px rgba(0, 20, 50, .2);
}
.tarot-reunion-title {
  margin: 0;
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: 34px;
  line-height: 1.2;
  color: #f2f9ff;
  text-shadow: 0 3px 18px rgba(33, 112, 184, .35);
}
.tarot-reunion-subtitle {
  margin-top: 14px;
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(234, 246, 255, .94);
}
/* 밤바다 명상 — 톤앤매너: 등대·별·고요한 바다 */
.tarot-reunion-meditation-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tarot-reunion-meditation-btn {
  border: 1px solid rgba(180, 220, 255, .5);
  background: linear-gradient(160deg, rgba(25, 65, 110, .7), rgba(15, 45, 85, .8));
  color: #e8f4ff;
  border-radius: 14px;
  padding: 10px 20px;
  font-size: 15px;
  font-family: "Noto Serif KR", "Georgia", serif;
  cursor: pointer;
  transition: opacity .3s ease, background .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 16px rgba(10, 40, 80, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tarot-reunion-meditation-btn:hover {
  background: linear-gradient(160deg, rgba(35, 85, 135, .75), rgba(22, 55, 95, .85));
  box-shadow: 0 6px 22px rgba(80, 160, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.tarot-reunion-meditation-guide {
  width: 100%;
  max-width: 320px;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 45, 85, .6), rgba(8, 28, 55, .7));
  border: 1px solid rgba(160, 210, 255, .3);
  box-shadow: 0 8px 32px rgba(0, 20, 50, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.tarot-reunion-meditation-guide.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tarot-reunion-breath-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid rgba(180, 220, 255, .5);
  background: radial-gradient(circle at 30% 30%, rgba(120, 180, 255, .2), transparent 60%);
  box-shadow: 0 0 24px rgba(100, 170, 255, .25);
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
}
.tarot-reunion-meditation-guide.breath-in .tarot-reunion-breath-circle {
  animation: reunionBreathIn 4s ease-in-out forwards;
}
.tarot-reunion-meditation-guide.breath-hold .tarot-reunion-breath-circle {
  transform: scale(1.35);
  border-color: rgba(200, 230, 255, .6);
  opacity: 0.95;
}
.tarot-reunion-meditation-guide.breath-out .tarot-reunion-breath-circle {
  animation: reunionBreathOut 4s ease-in-out forwards;
}
@keyframes reunionBreathIn {
  0% { transform: scale(0.75); opacity: 0.7; border-color: rgba(160, 210, 255, .4); }
  100% { transform: scale(1.35); opacity: 0.95; border-color: rgba(200, 230, 255, .6); }
}
@keyframes reunionBreathOut {
  0% { transform: scale(1.35); opacity: 0.95; border-color: rgba(200, 230, 255, .6); }
  100% { transform: scale(0.75); opacity: 0.7; border-color: rgba(160, 210, 255, .4); }
}
/* 명상 가이드 문구 — 부드러운 화이트/실버, 그림자, 타이핑 커서 */
.tarot-reunion-breath-text {
  margin: 0 0 6px;
  min-height: 2.8em;
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(248, 252, 255, 0.96);
  font-style: italic;
  text-shadow:
    0 1px 2px rgba(0, 15, 35, 0.5),
    0 0 20px rgba(200, 225, 255, 0.15),
    0 2px 4px rgba(0, 20, 50, 0.35);
  letter-spacing: 0.02em;
}
.tarot-reunion-breath-text::after {
  content: "|";
  display: inline;
  margin-left: 2px;
  color: rgba(220, 238, 255, 0.9);
  font-style: normal;
  animation: reunionTypingCursor 0.9s step-end infinite;
}
.tarot-reunion-breath-text.tarot-reunion-typing-done::after {
  display: none;
}
@keyframes reunionTypingCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.tarot-reunion-breath-count {
  display: block;
  font-size: 12px;
  color: rgba(212, 228, 248, 0.88);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 15, 40, 0.4);
}
.tarot-reunion-invoke-wrap { margin-top: 20px; text-align: center; }
.tarot-reunion-btn {
  display: inline-block;
  border-radius: 14px;
  padding: 14px 26px;
  border: 1px solid rgba(219, 236, 255, .45);
  background: linear-gradient(135deg, #3e7fb5, #79b4e3);
  color: #f5fbff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 50, 86, .35);
}
.tarot-reunion-btn--invoke {
  font-size: 16px;
  padding: 16px 34px;
  animation: reunionBtnPulse 2.8s ease-in-out infinite;
}
@keyframes reunionBtnPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(14,50,86,.35); }
  50% { box-shadow: 0 0 25px rgba(146, 204, 250, .7), 0 10px 24px rgba(14,50,86,.35); }
}
.tarot-reunion-btn--subtle {
  background: rgba(255, 255, 255, .12);
  color: #e4f4ff;
}

/* 카드 여는 화면(Draw Stage) — 모바일 스크롤 보장 */
#tarotReunionDrawStage {
  padding-bottom: env(safe-area-inset-bottom, 24px);
}
.tarot-reunion-draw-header {
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: 1.16rem;
  color: #edf8ff;
  text-align: center;
  margin-bottom: 10px;
}
.tarot-reunion-spread-guide {
  text-align: center;
  color: rgba(227, 242, 255, .96);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.tarot-reunion-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .tarot-reunion-card-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}
@media (max-width: 640px) {
  .tarot-reunion-card-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 14px;
  }
}

.tarot-reunion-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  perspective: 900px;
}
.tarot-reunion-slot.label-bottom { justify-content: flex-start; }
.tarot-reunion-slot.label-top { justify-content: flex-start; }
.tarot-reunion-slot-label {
  text-align: center;
  font-size: .8rem;
  line-height: 1.35;
  color: rgba(229, 244, 255, .97);
  font-family: "Noto Serif KR", "Georgia", serif;
}
.tarot-reunion-slot.guide-next::before {
  content: "✦";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 233, 182, .98);
  text-shadow: 0 0 14px rgba(255, 223, 133, .95);
  animation: reunionNextGlow 1.7s ease-in-out infinite;
}
@keyframes reunionNextGlow {
  0%, 100% { opacity: .48; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-3px); }
}

.tarot-reunion-slot.is-lit .tarot-reunion-card {
  box-shadow: 0 0 30px rgba(255, 214, 130, .45), 0 10px 22px rgba(11, 41, 77, .45);
}
.lighthouse-beam {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 180px;
  height: 76px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 216, 131, .46), rgba(255, 216, 131, 0) 72%);
  pointer-events: none;
  animation: beamFlash 1s ease forwards;
}
@keyframes beamFlash {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.tarot-reunion-card {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease, filter .3s ease;
}
.tarot-reunion-card:hover:not(.flipped) {
  filter: brightness(1.06);
}
.tarot-reunion-card.flipped {
  transform: rotateY(180deg);
  box-shadow: 0 0 28px rgba(132, 199, 255, .65), 0 12px 24px rgba(7, 34, 64, .45);
}
.tarot-reunion-card.flipped-static {
  transform: none;
  box-shadow: 0 0 28px rgba(132, 199, 255, .65), 0 12px 24px rgba(7, 34, 64, .45);
}

.tarot-reunion-card-back,
.tarot-reunion-card-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(221, 236, 255, .52);
}
.tarot-reunion-card-back {
  background:
    radial-gradient(circle at 40% 30%, rgba(210, 231, 255, .1), transparent 42%),
    linear-gradient(160deg, rgba(23, 53, 93, .96), rgba(14, 36, 69, .95));
}
.tarot-reunion-card-back::before {
  content: "✧";
  font-size: 1.8rem;
  color: rgba(214, 231, 255, .7);
  text-shadow: 0 0 16px rgba(230, 239, 255, .4);
}
.tarot-reunion-card-back::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  border: 1px solid rgba(214, 229, 247, .45);
  background-image:
    radial-gradient(circle at 24% 20%, rgba(214, 228, 245, .28) 0 2px, transparent 2px),
    radial-gradient(circle at 68% 70%, rgba(214, 228, 245, .2) 0 1.5px, transparent 2px),
    conic-gradient(from 0deg, rgba(218, 232, 247, .15), rgba(218, 232, 247, 0), rgba(218, 232, 247, .15));
  opacity: .8;
}
.tarot-reunion-card-front {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(244, 250, 255, .95), rgba(223, 240, 255, .96));
  padding: 8px;
  opacity: 0;
  animation: none;
}
.tarot-reunion-card.flipped .tarot-reunion-card-front {
  animation: seaMistReveal .95s ease forwards;
}
.tarot-reunion-card.flipped-static .tarot-reunion-card-front {
  transform: none;
  -webkit-transform: none;
  opacity: 1;
  animation: none;
}
@keyframes seaMistReveal {
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}
.tarot-reunion-card-front .tarot-reunion-face-img {
  width: 100%;
  height: 100%;
  flex: 1;
  object-fit: contain;
  border-radius: 8px;
}
.tarot-reunion-card-front[data-reversed="1"] .tarot-reunion-face-img {
  transform: rotate(180deg);
}
.tarot-reunion-card-name {
  margin-top: 6px;
  font-size: .72rem;
  color: #345476;
  font-weight: 600;
  text-align: center;
}

.reunion-ripple-wave {
  position: absolute;
  inset: 35% 35%;
  border-radius: 999px;
  border: 2px solid rgba(181, 223, 255, .95);
  box-shadow: 0 0 20px rgba(141, 205, 255, .8);
  pointer-events: none;
  animation: reunionRipple .9s ease-out forwards;
}
@keyframes reunionRipple {
  from { transform: scale(.15); opacity: 1; }
  to { transform: scale(3.2); opacity: 0; }
}

.tarot-reunion-final-wrap { text-align: center; margin-top: 8px; }
.tarot-reunion-final-btn {
  border-radius: 14px;
  padding: 14px 32px;
  border: 1px solid rgba(218, 236, 255, .5);
  background: linear-gradient(135deg, #4483b9, #83bbe8);
  color: #f5fbff;
  font-weight: 700;
  cursor: pointer;
}
.tarot-reunion-final-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tarot-reunion-reading-title {
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: 1.3rem;
  text-align: center;
  color: #edf8ff;
}
.tarot-reunion-reading-header {
  margin-bottom: 36px;
  position: relative;
}
/* 결과 헤더 주변 애니메이션 별 */
.tarot-reunion-result-stars {
  position: absolute;
  inset: -8px -20px -24px;
  pointer-events: none;
  overflow: visible;
}
.tarot-reunion-result-stars .result-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 240, 200, .9);
  box-shadow: 0 0 12px rgba(255, 230, 160, .85);
  animation: resultStarTwinkle 3s ease-in-out infinite;
}
.tarot-reunion-result-stars .rs1 { left: 12%; top: 20%; animation-delay: 0s; }
.tarot-reunion-result-stars .rs2 { left: 28%; top: 8%; animation-delay: .5s; }
.tarot-reunion-result-stars .rs3 { left: 72%; top: 12%; animation-delay: 1s; }
.tarot-reunion-result-stars .rs4 { left: 88%; top: 24%; animation-delay: 1.5s; }
.tarot-reunion-result-stars .rs5 { left: 8%; top: 60%; animation-delay: .3s; }
.tarot-reunion-result-stars .rs6 { left: 92%; top: 55%; animation-delay: .8s; }
@keyframes resultStarTwinkle {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* 5카드 리딩 결과 — 카드 그리드 (결과 스테이지) */
.tarot-reunion-result-cards {
  display: none;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 22px 16px 18px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(145, 205, 255, .2), transparent 58%),
    radial-gradient(circle at 12% 18%, rgba(210, 236, 255, .12), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255, 232, 188, .11), transparent 34%),
    linear-gradient(180deg, rgba(10, 34, 65, .55), rgba(7, 25, 50, .46));
  border: 1px solid rgba(168, 216, 255, .3);
  box-shadow:
    0 10px 30px rgba(0, 18, 44, .4),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(120, 180, 235, .14);
}
.tarot-reunion-result-cards--visible {
  display: flex;
  animation: reunionResultCardsIn .6s ease;
}
@keyframes reunionResultCardsIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tarot-reunion-result-card-wrap {
  flex: 0 0 auto;
  position: relative;
}
.tarot-reunion-result-card-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 72%;
  height: 76%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(140, 205, 255, .25), rgba(140, 205, 255, 0) 68%);
  filter: blur(9px);
  pointer-events: none;
  opacity: .65;
}
.tarot-reunion-result-card {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 236, 255, .54);
  box-shadow:
    0 8px 20px rgba(4, 20, 44, .45),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(2px);
}
.tarot-reunion-result-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(235, 246, 255, .8);
  box-shadow: 0 12px 26px rgba(95, 180, 255, .26), 0 6px 18px rgba(5, 24, 52, .38);
}
.tarot-reunion-result-card-front {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(244, 250, 255, .98), rgba(223, 240, 255, .98));
  padding: 4px;
}
.tarot-reunion-result-card-front[data-reversed="1"] .tarot-reunion-face-img {
  transform: rotate(180deg);
}
.tarot-reunion-result-card-front .tarot-reunion-face-img {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
  border-radius: 6px;
}
.tarot-reunion-result-card-name {
  font-size: .56rem;
  color: #31506f;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  margin-top: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 카드와 결과 텍스트 사이 구분선 — 등대 빛 + 별 애니메이션 */
.tarot-reunion-result-divider {
  position: relative;
  height: 56px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 등대 아이콘 (CSS 순수) */
.tarot-reunion-result-divider .result-lighthouse-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 28px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.tarot-reunion-result-divider .result-lighthouse-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 8px;
  height: 20px;
  background: linear-gradient(180deg, #e8f0f8, #a8b8c8 60%, #7a8a9a);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
}
.tarot-reunion-result-divider .result-lighthouse-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,245,180,.95), rgba(255,210,100,.8));
  box-shadow: 0 0 12px rgba(255,220,140,.9);
  animation: lighthouseLampGlow 2s ease-in-out infinite;
}
@keyframes lighthouseLampGlow {
  0%, 100% { opacity: .85; box-shadow: 0 0 12px rgba(255,220,140,.9); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(255,235,180,1); }
}
/* 등대 빛 빔 애니메이션 */
.tarot-reunion-result-divider .result-lighthouse-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 4px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 220, 140, .15) 15%,
    rgba(255, 235, 180, .5) 50%,
    rgba(255, 220, 140, .15) 85%,
    transparent 100%);
  border-radius: 4px;
  animation: lighthouseGlowPulse 2.5s ease-in-out infinite;
}
/* 별 라인 */
.tarot-reunion-result-divider .result-star-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: transparent;
}
.tarot-reunion-result-divider .result-star-line::before,
.tarot-reunion-result-divider .result-star-line::after {
  content: "✦";
  position: absolute;
  font-size: .7rem;
  color: rgba(255, 245, 200, .95);
  text-shadow: 0 0 8px rgba(255, 230, 150, .9);
  top: 50%;
  transform: translateY(-50%);
  animation: resultStarTwinkle 2s ease-in-out infinite;
}
.tarot-reunion-result-divider .result-star-line::before {
  left: 10%;
  animation-delay: 0s;
}
.tarot-reunion-result-divider .result-star-line::after {
  right: 10%;
  left: auto;
  animation-delay: .7s;
}
@keyframes lighthouseGlowPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* 결과 텍스트 영역 — 카드와의 간격 (가시성 개선) */
.tarot-reunion-reading-content {
  max-height: 52vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
  margin-top: 0;
  position: relative;
  min-height: 360px;
  box-sizing: border-box;
}
#tarotReunionReadingContent[aria-busy="true"] {
  min-height: 360px;
}
#tarotReunionResultStage.tarot-reunion-result-stage-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: min(88vh, 720px);
  box-sizing: border-box;
}
.tarot-reading-skeleton--reunion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
  width: 100%;
}
.tarot-reading-skeleton--reunion .tarot-skel-line {
  display: block;
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(180, 220, 255, 0.08), rgba(140, 200, 255, 0.18), rgba(180, 220, 255, 0.08));
  background-size: 200% 100%;
  animation: cls-skel-shimmer 1.1s ease-in-out infinite;
}
.tarot-reading-skeleton--reunion .tarot-skel-line--title {
  height: 18px;
  width: 60%;
}
.tarot-reading-skeleton--reunion .tarot-skel-line--short {
  width: 70%;
}
@keyframes cls-skel-shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.tarot-reunion-section {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(233, 246, 255, .1);
  border: 1px solid rgba(202, 228, 250, .35);
  transition: box-shadow .3s ease;
}
.tarot-reunion-section--star-sea {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(140, 200, 255, .12), transparent 50%),
    linear-gradient(180deg, rgba(20, 55, 95, .25), rgba(10, 35, 65, .2));
  border: 1px solid rgba(170, 215, 255, .28);
  box-shadow: 0 2px 16px rgba(0, 15, 40, .2), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tarot-reunion-section--star-sea:hover {
  box-shadow: 0 4px 24px rgba(80, 160, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tarot-reunion-section--guidance {
  background: linear-gradient(145deg, rgba(255, 222, 164, .18), rgba(227, 245, 255, .18));
  border-color: rgba(255, 210, 140, .35);
}
.tarot-reunion-section--encouraging {
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(255, 235, 180, .2), transparent 60%),
    linear-gradient(160deg, rgba(40, 80, 130, .3), rgba(25, 55, 95, .25));
  border: 1px solid rgba(255, 225, 160, .4);
  box-shadow: 0 4px 28px rgba(255, 200, 100, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tarot-reunion-section-title {
  margin: 0 0 12px;
  color: #dcefff;
  font-weight: 700;
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0, 20, 50, .3);
}
.tarot-reunion-section-title::before {
  content: "✦ ";
  color: rgba(255, 222, 145, .92);
  text-shadow: 0 0 10px rgba(255, 214, 120, .55);
}
.tarot-reunion-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.tarot-reunion-section-head .tarot-reunion-section-title {
  margin: 0;
}
.tarot-reunion-inline-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(248, 221, 166, .5);
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 228, 170, .2), transparent 45%),
    linear-gradient(160deg, rgba(22, 52, 88, .52), rgba(15, 40, 70, .36));
  box-shadow:
    0 0 0 1px rgba(255, 244, 214, .06) inset,
    0 4px 14px rgba(255, 201, 102, .14),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.tarot-reunion-inline-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 232, 185, .8);
  box-shadow:
    0 6px 16px rgba(255, 198, 92, .2),
    0 0 20px rgba(255, 214, 126, .18),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}
.tarot-reunion-inline-card:focus-visible {
  outline: 2px solid rgba(255, 223, 158, .9);
  outline-offset: 2px;
}
.tarot-reunion-inline-card-thumb {
  width: 32px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 230, 184, .65);
  background: linear-gradient(160deg, rgba(244, 250, 255, .97), rgba(223, 240, 255, .95));
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0, 16, 38, .35);
}
.tarot-reunion-inline-card-front {
  width: 100%;
  height: 100%;
}
.tarot-reunion-inline-card-front .tarot-reunion-face-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tarot-reunion-inline-card-front[data-reversed="1"] .tarot-reunion-face-img {
  transform: rotate(180deg);
}
.tarot-reunion-inline-card-name {
  font-size: .74rem;
  color: #ffe1a8;
  font-weight: 600;
  line-height: 1.2;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(255, 201, 98, .2);
}
.tarot-reunion-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: none;
}
.tarot-reunion-lightbox.is-open {
  display: block;
}
.tarot-reunion-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(120, 190, 255, .2), transparent 40%),
    rgba(2, 9, 22, .78);
  backdrop-filter: blur(4px);
}
.tarot-reunion-lightbox-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 380px);
  border-radius: 18px;
  border: 1px solid rgba(180, 220, 255, .4);
  background: linear-gradient(165deg, rgba(8, 30, 58, .93), rgba(10, 38, 70, .9));
  box-shadow: 0 24px 56px rgba(0, 10, 28, .6), 0 0 26px rgba(115, 190, 255, .2);
  padding: 18px 16px 16px;
  animation: reunionLightboxIn .22s ease;
}
@keyframes reunionLightboxIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.tarot-reunion-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(210, 232, 255, .45);
  background: rgba(22, 54, 92, .7);
  color: #eaf6ff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.tarot-reunion-lightbox-card {
  width: 100%;
  max-width: 260px;
  margin: 10px auto 12px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(210, 232, 255, .5);
  background: linear-gradient(160deg, rgba(248, 253, 255, .98), rgba(225, 241, 255, .96));
}
.tarot-reunion-lightbox-card-front {
  width: 100%;
  height: 100%;
  padding: 8px;
}
.tarot-reunion-lightbox-card-front .tarot-reunion-face-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tarot-reunion-lightbox-card-front[data-reversed="1"] .tarot-reunion-face-img {
  transform: rotate(180deg);
}
.tarot-reunion-lightbox-name {
  margin: 0;
  text-align: center;
  color: #e5f4ff;
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: .95rem;
}
.tarot-reunion-section-text {
  margin: 0;
  color: #dfedf9;
  line-height: 1.78;
  font-size: .95rem;
  min-height: 1.4em;
}
.tarot-reunion-section-text::first-line {
  color: #fff2ce;
}
.tarot-reunion-typing-text {
  display: inline;
}
.tarot-reunion-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: rgba(255, 230, 160, .95);
  vertical-align: text-bottom;
  animation: reunionTypingBlink 1s step-end infinite;
}
.tarot-reunion-typing-text.is-typed + .tarot-reunion-typing-cursor {
  display: none;
}
@keyframes reunionTypingBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.tarot-reunion-advice-list {
  margin: 0;
  padding-left: 22px;
  color: #e9f7ff;
  line-height: 1.78;
}
.tarot-reunion-result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(180, 220, 255, .2);
}

/* 모바일: 오버레이 스크롤 컨테이너 확실히 동작 */
@media (max-width: 768px) {
  .tarot-reunion-overlay.is-open {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}

@media (max-width: 560px) {
  .tarot-reunion-panel { padding: 24px 16px; }
  .tarot-reunion-title { font-size: 27px; }
  .tarot-reunion-card { max-width: 126px; }
  .tarot-reunion-lighthouse { right: 3%; bottom: 24%; transform: scale(.85); }
  .tarot-reunion-reading-header { margin-bottom: 28px; }
  .tarot-reunion-result-cards { margin-bottom: 32px; padding: 14px 8px 12px; gap: 9px; }
  .tarot-reunion-result-divider { height: 44px; margin-bottom: 22px; }
  .tarot-reunion-result-card { width: 60px; }
  .tarot-reunion-result-card-name { font-size: .52rem; }
  .tarot-reunion-section { padding: 14px 16px; margin-bottom: 14px; }
  .tarot-reunion-inline-card-name { max-width: 94px; }
}

@media (max-width: 768px) {
  .tarot-reunion-lighthouse {
    display: none;
  }
  .tarot-reunion-shell {
    margin: 16px auto;
    padding: 14px 10px 22px;
  }
  .tarot-reunion-panel {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .tarot-reunion-hero {
    padding: 20px 14px 22px;
  }
  .tarot-reunion-title {
    font-size: 24px;
  }
  .tarot-reunion-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }
  .tarot-reunion-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tarot-reunion-card-grid .tarot-reunion-slot:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 160px;
  }
  .tarot-reunion-card {
    max-width: 146px;
  }
  .tarot-reunion-slot-label {
    min-height: 2.6em;
  }
  .tarot-reunion-btn--invoke,
  .tarot-reunion-final-btn,
  .tarot-reunion-btn {
    width: 100%;
  }
  .tarot-reunion-reading-content {
    max-height: 58dvh;
    padding-right: 2px;
  }
  .tarot-reunion-result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tarot-reunion-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .tarot-reunion-inline-card {
    align-self: flex-start;
  }
  .tarot-reunion-inline-card:hover {
    transform: none;
  }
  .tarot-reunion-lightbox-panel {
    width: min(92vw, 360px);
    padding: 16px 12px 14px;
  }
  .tarot-reunion-lightbox-card {
    max-width: 240px;
  }
}

@media (max-width: 420px) {
  .tarot-reunion-shell {
    padding: 10px 8px 18px;
  }
  .tarot-reunion-panel {
    padding: 16px 12px;
  }
  .tarot-reunion-card-grid {
    gap: 10px;
  }
  .tarot-reunion-card {
    max-width: 128px;
  }
  .tarot-reunion-slot-label {
    font-size: 0.74rem;
    min-height: 2.2em;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tarot-reunion-meditation-btn:hover,
  .tarot-reunion-btn:hover,
  .tarot-reunion-card:hover:not(.flipped),
  .tarot-reunion-result-card:hover {
    transform: none;
    box-shadow: inherit;
    filter: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .tarot-reunion-stars,
  .tarot-reunion-result-stars {
    display: none;
  }
}
