/* =========================
   Tarot Harmony Main Page
   ========================= */

:root {
  --background: #070707;
  --background-soft: #0d0d0d;
  --panel: rgba(18, 18, 18, 0.88);
  --panel-strong: #111111;
  --gold: #d7a74c;
  --gold-light: #f3cf7a;
  --gold-dark: #8d6426;
  --text: #f6f0e7;
  --text-soft: #c8beb0;
  --line: rgba(215, 167, 76, 0.42);
  --line-soft: rgba(215, 167, 76, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-large: 28px;
  --radius-medium: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    "Noto Serif KR",
    "Nanum Myeongjo",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(167, 119, 42, 0.1), transparent 28%),
    linear-gradient(180deg, #090909 0%, #050505 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {

  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border: 1px solid rgba(215, 167, 76, 0.55);

}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255, 224, 151, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 8%, rgba(255, 224, 151, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 85% 24%, rgba(255, 224, 151, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 38% 30%, rgba(255, 224, 151, 0.5) 0 1px, transparent 1.4px),
    radial-gradient(circle at 12% 52%, rgba(255, 224, 151, 0.4) 0 1px, transparent 1.4px);
  background-size: 260px 260px, 310px 310px, 420px 420px, 370px 370px, 450px 450px;
}

/* Header */

.site-header {
  padding-top: 80px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 56px 24px 24px;
}

.brand {
  gap: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.brand-logo {
  width: clamp(180px, 20vw, 260px);
  height: clamp(180px, 20vw, 260px);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-text strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand-text span {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.28em;
}

.decorative-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dotted rgba(215, 167, 76, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-left {
  top: -250px;
  left: -180px;
}

.orbit-right {
  top: -250px;
  right: -180px;
}

/* Common layout */

main {
  position: relative;
  z-index: 1;
}

.hero-section,
.rating-section,
.review-section,
.how-to-section,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

/* Hero */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 64px;
  text-align: center;
}

.eyebrow {
  width: 100%;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  letter-spacing: clamp(0.08em, 0.55vw, 0.3em);
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-section h1 {
  width: 100%;
  max-width: 1180px;
  margin: 0;
  font-size: clamp(1.45rem, 4.1vw, 3.4rem);
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: center;
  text-shadow: 0 5px 24px rgba(255, 255, 255, 0.04);
}

.hero-description {
  max-width: 680px;
  margin: 22px 0 34px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  line-height: 1.75;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: min(100%, 520px);
  min-height: 82px;
  padding: 20px 32px;
  color: #16110a;
  font-size: clamp(1.3rem, 3.3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  background:
    linear-gradient(180deg, #f5d88c 0%, #d9a741 48%, #b77d21 100%);
  border: 1px solid #ffe2a0;
  border-radius: 999px;
  box-shadow:
    0 15px 45px rgba(216, 163, 64, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 20px 60px rgba(216, 163, 64, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid rgba(243, 207, 122, 0.7);
  outline-offset: 4px;
}

.button-sparkle {
  font-size: 0.9em;
}

.button-guide {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Rating */

.rating-section {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 20px 44px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.rating-stars {
  color: var(--gold-light);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.08em;
}

.rating-score-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.rating-score {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
}

.rating-title {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.rating-count {
  margin: 0;
  color: var(--text-soft);
}

/* Section heading */

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  text-align: center;
}

.heading-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Reviews */

.review-section {
  padding: 72px 0 78px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.review-card {
  position: relative;
  min-height: 280px;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.96));
  border: 1px solid rgba(215, 167, 76, 0.44);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
}

.review-card::after {
  content: "✦";
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: rgba(215, 167, 76, 0.2);
  font-size: 3rem;
}

.review-card .stars {
  margin-bottom: 22px;
  color: var(--gold-light);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.review-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.9;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.secondary-button {
  display: block;
  margin: 32px auto 0;
  padding: 13px 22px;
  color: var(--gold-light);
  font: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.secondary-button:hover {
  color: #171109;
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* How to */

.how-to-section {
  padding: 44px 0 88px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.step-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.step-icon {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.76);
  box-shadow: inset 0 0 30px rgba(215, 167, 76, 0.05);
}

.step-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.step-card h3 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
  font-weight: 500;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.step-arrow {
  color: var(--gold);
  font-size: 2rem;
}

/* Footer */

.site-footer {
  position: relative;
  padding: 58px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 48px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.footer-brand-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.footer-brand span,
.footer-brand p,
.footer-column p {
  color: var(--text-soft);
}

.footer-brand p {
  margin: 24px 0 0;
  line-height: 1.9;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-column a,
.footer-column p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.footer-column a {
  color: var(--text-soft);
  transition: color 150ms ease;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  padding-top: 24px;
  color: #91877a;
  font-size: 0.8rem;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.7;
}

.back-to-top {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--gold-light);
  background: rgba(11, 11, 11, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* Responsive */

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

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

  .step-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    border: 0;
  }

  .site-header {
    padding-top: 34px;
  }

  .brand-logo {
    width: 82px;
    height: 82px;
  }

  .brand-text strong {
    font-size: 1.85rem;
  }

  .hero-section,
  .rating-section,
  .review-section,
  .how-to-section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero-section {
    padding-top: 32px;
  }

  .eyebrow {
    font-size: clamp(0.68rem, 3.2vw, 0.82rem);
    letter-spacing: clamp(0.04em, 0.8vw, 0.14em);
  }

  .hero-section h1 {
    font-size: clamp(0.86rem, 4.4vw, 1.35rem);
    letter-spacing: -0.02em;
  }

  .primary-button {
    min-height: 68px;
    padding-inline: 22px;
  }

  .review-card {
    min-height: auto;
    padding: 26px 22px;
  }

  .review-meta {
    flex-direction: column;
    gap: 8px;
  }

  .section-heading {
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
  }

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

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


@media (max-width: 390px) {
  .hero-section h1 {
    font-size: clamp(0.76rem, 4.15vw, 1rem);
    letter-spacing: -0.035em;
  }

  .eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.03em;
  }
}


/* =========================
   Sub pages
   ========================= */

.subpage-body {
  min-height: 100vh;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.subpage-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.subpage-brand strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.06em;
}

.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.subpage-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.subpage-nav a:hover {
  color: var(--gold-light);
}

.subpage-main {
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto;
  padding: 72px 0 100px;
}

.subpage-hero {
  margin-bottom: 46px;
  text-align: center;
}

.subpage-hero .eyebrow {
  margin-bottom: 14px;
}

.subpage-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.35;
}

.subpage-hero p {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.content-panel {
  padding: 34px;
  background: linear-gradient(145deg, rgba(18,18,18,.96), rgba(10,10,10,.96));
  border: 1px solid rgba(215,167,76,.38);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
}

.content-panel + .content-panel {
  margin-top: 24px;
}

.content-panel h2,
.content-panel h3 {
  color: var(--gold-light);
  font-weight: 500;
}

.content-panel h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
}

.content-panel h3 {
  margin: 26px 0 12px;
  font-size: 1.16rem;
}

.content-panel p,
.content-panel li {
  color: var(--text-soft);
  line-height: 1.9;
}

.content-panel ul,
.content-panel ol {
  padding-left: 1.3rem;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.zodiac-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--text);
  background: rgba(14,14,14,.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.zodiac-card:hover,
.zodiac-card.is-selected {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  background: rgba(215,167,76,.08);
}

.zodiac-symbol {
  color: var(--gold-light);
  font-size: 2rem;
}

.zodiac-card span:last-child {
  font-size: 1rem;
}

.fake-flow {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.fake-flow .primary-button {
  width: min(100%, 420px);
  min-height: 66px;
  margin: 0 auto;
  font-size: 1.25rem;
}

.placeholder-note {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--text-soft);
  background: rgba(215,167,76,.06);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}

.accordion-item {
  border-top: 1px solid var(--line-soft);
}

.accordion-item:first-child {
  border-top: 0;
}

.accordion-button {
  width: 100%;
  padding: 20px 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.accordion-answer {
  display: none;
  padding: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.8;
}

.accordion-item.is-open .accordion-answer {
  display: block;
}

.subpage-footer {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 28px 0 42px;
  color: #91877a;
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 800px) {
  .subpage-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .subpage-nav {
    justify-content: flex-start;
  }

  .zodiac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .subpage-main {
    padding-top: 48px;
  }

  .content-panel {
    padding: 24px 20px;
  }

  .zodiac-card {
    min-height: 125px;
  }
}


/* =========================
   Inquiry price modal
   ========================= */

body.modal-open {
  overflow: hidden;
}

.inquiry-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.inquiry-modal.is-open {
  display: flex;
}

.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.inquiry-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: 34px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 167, 76, 0.13), transparent 34%),
    linear-gradient(145deg, #151515, #090909);
  border: 1px solid rgba(215, 167, 76, 0.62);
  border-radius: 26px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.inquiry-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-light);
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.inquiry-modal-header {
  padding: 10px 34px 26px;
  text-align: center;
}

.inquiry-modal-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.inquiry-modal-header h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}

.inquiry-modal-header > p:last-child {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.event-price-card {
  padding: 26px;
  text-align: center;
  background: linear-gradient(145deg, rgba(215,167,76,.15), rgba(215,167,76,.035));
  border: 1px solid var(--gold);
  border-radius: 20px;
}

.event-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: #171009;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gold-light);
  border-radius: 999px;
}

.event-price-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 500;
}

.event-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.event-price-row del {
  color: #9a8f82;
}

.event-price-row strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.event-price-card > p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.price-list-wrap,
.operation-info {
  margin-top: 24px;
}

.price-list-wrap h3,
.operation-info h3 {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 1.12rem;
  font-weight: 500;
}

.price-list {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--line-soft);
}

.price-item:first-child {
  border-top: 0;
}

.price-item span {
  color: var(--text);
}

.price-item small {
  color: var(--text-soft);
}

.price-item strong {
  color: var(--gold-light);
  white-space: nowrap;
}

.operation-info {
  padding: 20px;
  background: rgba(255,255,255,.025);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}

.operation-info p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.operation-info strong {
  display: inline-block;
  min-width: 68px;
  color: var(--text);
}

.kakao-inquiry-button {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 15px 22px;
  color: #171009;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(180deg, #f5d88c, #d8a440);
  border: 1px solid #ffe4a1;
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(215, 167, 76, 0.2);
}

.modal-small-note {
  margin: 12px 0 0;
  color: #8f8578;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 560px) {
  .inquiry-modal {
    align-items: flex-end;
    padding: 0;
  }

  .inquiry-modal-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 28px 20px 24px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .inquiry-modal-header {
    padding-inline: 26px;
  }

  .price-item {
    grid-template-columns: 1fr auto;
  }

  .price-item small {
    grid-row: 2;
    grid-column: 1;
  }

  .price-item strong {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}


/* v9: Event table and zodiac date ranges */

.event-price-table {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.event-price-head,
.event-price-line {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(88px, .7fr) minmax(88px, .7fr);
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
}

.event-price-head {
  color: var(--gold-light);
  font-weight: 700;
  background: rgba(215, 167, 76, 0.08);
}

.event-price-head span:nth-child(2),
.event-price-head span:nth-child(3),
.event-price-line span:nth-child(2),
.event-price-line strong {
  text-align: right;
}

.event-price-line {
  color: var(--text-soft);
  border-top: 1px solid var(--line-soft);
}

.event-price-line strong {
  color: var(--gold-light);
  white-space: nowrap;
}

.zodiac-period {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}

@media (max-width: 560px) {
  .event-price-head,
  .event-price-line {
    grid-template-columns: minmax(0, 1.2fr) minmax(72px, .72fr) minmax(72px, .72fr);
    gap: 8px;
    padding: 13px 12px;
    font-size: 0.88rem;
  }

  .zodiac-period {
    font-size: 0.72rem;
  }
}


/* =========================
   v10 Card draw and result
   ========================= */

.draw-page-main {
  width: min(calc(100% - 28px), 1280px);
}

.draw-status {
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 1.1rem;
  text-align: center;
}

.draw-status strong {
  color: var(--gold-light);
  font-size: 1.7rem;
}

.selected-card-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto 44px;
}

.selected-slot {
  display: flex;
  aspect-ratio: 2 / 3.25;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  color: var(--text-soft);
  background: rgba(255,255,255,.025);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.selected-slot img {
  width: 100%;
  height: calc(100% - 42px);
  object-fit: cover;
}

.selected-slot.has-card {
  border-style: solid;
  border-color: var(--gold);
}

.selected-slot span {
  padding: 0 8px 12px;
  font-size: .84rem;
}

.card-deck-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(58px, 1fr));
  gap: 10px;
}

.tarot-back-card {
  position: relative;
  padding: 0;
  aspect-ratio: 2 / 3.25;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(215,167,76,.25);
  border-radius: 7px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.tarot-back-card:hover {
  z-index: 2;
  transform: translateY(-8px) scale(1.04);
  border-color: var(--gold-light);
}

.tarot-back-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-back-card.is-picked {
  opacity: .16;
  transform: scale(.9);
}

.draw-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.draw-actions .secondary-button {
  margin: 0;
}

.result-open-button {
  width: min(100%, 340px);
  min-height: 64px;
  border: 0;
  cursor: pointer;
}

.result-open-button:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.8);
}

.result-main {
  width: min(calc(100% - 28px), 1120px);
  margin: 0 auto;
  padding: 54px 0 90px;
}

.result-capture {
  padding: 50px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215,167,76,.12), transparent 30%),
    linear-gradient(160deg, #13100c, #070707 44%, #050505);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.result-title-area {
  text-align: center;
}

.result-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.result-title-area > p {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .15em;
}

.result-title-area h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  word-break: keep-all;
}

.result-title-area time {
  color: var(--text-soft);
}

.result-section {
  margin-top: 54px;
}

.result-section > h2 {
  margin: 0 0 24px;
  color: var(--gold-light);
  text-align: center;
  font-weight: 500;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 860px;
  margin: 0 auto;
}

.result-card-item {
  margin: 0;
  text-align: center;
}

.result-card-item img {
  width: 100%;
  aspect-ratio: 2 / 3.25;
  object-fit: cover;
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
}

.result-card-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.result-card-item figcaption span,
.result-card-item figcaption small {
  color: var(--text-soft);
}

.result-card-item figcaption strong {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.fortune-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 54px;
}

.fortune-card {
  padding: 28px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.fortune-card.full-width {
  grid-column: 1 / -1;
}

.fortune-card h2 {
  margin: 0 0 15px;
  color: var(--gold-light);
  font-size: 1.3rem;
  font-weight: 500;
}

.fortune-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.95;
}

.advice-card {
  border-color: rgba(215,167,76,.55);
  background: rgba(215,167,76,.055);
}

.result-disclaimer {
  margin: 34px 0 0;
  color: #91877a;
  font-size: .82rem;
  text-align: center;
  line-height: 1.7;
}

.result-page-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.result-page-actions .primary-button {
  width: min(100%, 370px);
  min-height: 66px;
  border: 0;
  cursor: pointer;
}

.result-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 60px;
}

.header-action-button {
  padding: 10px 14px;
  color: var(--gold-light);
  font: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .card-deck-grid {
    grid-template-columns: repeat(5, minmax(62px, 1fr));
  }
}

@media (max-width: 780px) {
  .card-deck-grid {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .result-capture {
    padding: 34px 24px;
  }

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

  .fortune-card.full-width {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .selected-card-slots {
    gap: 10px;
  }

  .selected-slot {
    min-height: 150px;
  }

  .card-deck-grid {
    grid-template-columns: repeat(4, minmax(54px, 1fr));
    gap: 9px;
  }

  .result-cards {
    gap: 10px;
  }

  .result-card-item figcaption small {
    display: none;
  }

  .result-card-item figcaption strong {
    font-size: .86rem;
  }
}


/* =========================
   v14 Mystical constellation background
   ========================= */

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 92, 38, 0.12), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(80, 95, 150, 0.09), transparent 24%),
    radial-gradient(circle at 82% 28%, rgba(94, 70, 134, 0.08), transparent 26%),
    linear-gradient(180deg, #080808 0%, #040404 56%, #020202 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 230, 165, 0.95) 0 1px, transparent 1.7px),
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 38% 18%, rgba(236, 216, 165, 0.82) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 57% 9%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 73% 22%, rgba(244, 218, 153, 0.9) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 91% 14%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.7px),
    radial-gradient(circle at 14% 61%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 31% 74%, rgba(241, 210, 139, 0.84) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 62% 66%, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 79%, rgba(246, 217, 150, 0.82) 0 1.2px, transparent 1.9px);
  background-size:
    260px 260px,
    330px 330px,
    410px 410px,
    290px 290px,
    470px 470px,
    360px 360px,
    420px 420px,
    520px 520px,
    380px 380px,
    560px 560px;
  animation: starDrift 42s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-repeat: repeat;
  background-size: 720px 520px;
  background-position: center top;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='520' viewBox='0 0 720 520'%3E%3Cg fill='none' stroke='%23d7a74c' stroke-opacity='.42' stroke-width='1'%3E%3Cpath d='M62 118 L135 74 L214 128 L285 82 L365 142'/%3E%3Cpath d='M430 82 L492 126 L560 92 L642 146'/%3E%3Cpath d='M92 342 L170 286 L250 334 L326 278 L398 330'/%3E%3Cpath d='M450 350 L525 292 L610 340'/%3E%3C/g%3E%3Cg fill='%23f3cf7a' fill-opacity='.82'%3E%3Ccircle cx='62' cy='118' r='2.2'/%3E%3Ccircle cx='135' cy='74' r='2.8'/%3E%3Ccircle cx='214' cy='128' r='2.2'/%3E%3Ccircle cx='285' cy='82' r='2.6'/%3E%3Ccircle cx='365' cy='142' r='2.2'/%3E%3Ccircle cx='430' cy='82' r='2.2'/%3E%3Ccircle cx='492' cy='126' r='2.8'/%3E%3Ccircle cx='560' cy='92' r='2.2'/%3E%3Ccircle cx='642' cy='146' r='2.6'/%3E%3Ccircle cx='92' cy='342' r='2.2'/%3E%3Ccircle cx='170' cy='286' r='2.8'/%3E%3Ccircle cx='250' cy='334' r='2.2'/%3E%3Ccircle cx='326' cy='278' r='2.6'/%3E%3Ccircle cx='398' cy='330' r='2.2'/%3E%3Ccircle cx='450' cy='350' r='2.2'/%3E%3Ccircle cx='525' cy='292' r='2.8'/%3E%3Ccircle cx='610' cy='340' r='2.3'/%3E%3C/g%3E%3C/svg%3E");
  animation: constellationFloat 70s linear infinite;
}

.page-shell,
.subpage-body,
.result-page,
.card-draw-page {
  background: transparent;
}

.hero-section::before,
.subpage-hero::before,
.result-title-area::before {
  content: "✦";
  display: block;
  margin-bottom: 16px;
  color: rgba(243, 207, 122, 0.72);
  font-size: 1.15rem;
  text-shadow:
    0 0 14px rgba(243, 207, 122, 0.44),
    32px 10px 0 rgba(243, 207, 122, 0.14),
    -32px 10px 0 rgba(243, 207, 122, 0.14);
}

.content-panel,
.review-card,
.fortune-card,
.result-capture,
.inquiry-modal-dialog {
  backdrop-filter: blur(7px);
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-55px, 35px, 0);
  }
}

@keyframes constellationFloat {
  from {
    background-position: center 0;
  }

  to {
    background-position: calc(50% + 90px) 520px;
  }
}

@media (max-width: 640px) {
  body::before {
    opacity: 0.42;
    animation-duration: 58s;
  }

  body::after {
    opacity: 0.14;
    background-size: 560px 405px;
    animation-duration: 92s;
  }

  .hero-section::before,
  .subpage-hero::before,
  .result-title-area::before {
    margin-bottom: 12px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}


/* =========================
   v15 Apply mystical background to every page
   ========================= */

html,
body {
  min-height: 100%;
  background-color: #030303;
}

body,
body.subpage-body,
body.card-draw-page,
body.result-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -5%, rgba(181, 132, 54, 0.15), transparent 30%),
    radial-gradient(circle at 14% 22%, rgba(73, 87, 145, 0.10), transparent 25%),
    radial-gradient(circle at 86% 30%, rgba(97, 71, 142, 0.09), transparent 27%),
    linear-gradient(180deg, #090909 0%, #050505 48%, #020202 100%) !important;
  background-attachment: fixed;
}

.page-shell,
main,
.site-header,
.site-footer,
.subpage-header,
.subpage-main,
.subpage-footer,
.result-main,
.draw-page-main {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

body::before,
body.subpage-body::before,
body.card-draw-page::before,
body.result-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255,230,165,.95) 0 1px, transparent 1.7px),
    radial-gradient(circle at 22% 30%, rgba(255,255,255,.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 38% 18%, rgba(236,216,165,.82) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 57% 9%, rgba(255,255,255,.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 73% 22%, rgba(244,218,153,.9) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 91% 14%, rgba(255,255,255,.75) 0 1px, transparent 1.7px),
    radial-gradient(circle at 14% 61%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 31% 74%, rgba(241,210,139,.84) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 62% 66%, rgba(255,255,255,.68) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 79%, rgba(246,217,150,.82) 0 1.2px, transparent 1.9px);
  background-size:
    260px 260px,
    330px 330px,
    410px 410px,
    290px 290px,
    470px 470px,
    360px 360px,
    420px 420px,
    520px 520px,
    380px 380px,
    560px 560px;
  animation: starDrift 42s linear infinite;
}

body::after,
body.subpage-body::after,
body.card-draw-page::after,
body.result-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.24;
  background-repeat: repeat;
  background-size: 720px 520px;
  background-position: center top;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='520' viewBox='0 0 720 520'%3E%3Cg fill='none' stroke='%23d7a74c' stroke-opacity='.42' stroke-width='1'%3E%3Cpath d='M62 118 L135 74 L214 128 L285 82 L365 142'/%3E%3Cpath d='M430 82 L492 126 L560 92 L642 146'/%3E%3Cpath d='M92 342 L170 286 L250 334 L326 278 L398 330'/%3E%3Cpath d='M450 350 L525 292 L610 340'/%3E%3C/g%3E%3Cg fill='%23f3cf7a' fill-opacity='.82'%3E%3Ccircle cx='62' cy='118' r='2.2'/%3E%3Ccircle cx='135' cy='74' r='2.8'/%3E%3Ccircle cx='214' cy='128' r='2.2'/%3E%3Ccircle cx='285' cy='82' r='2.6'/%3E%3Ccircle cx='365' cy='142' r='2.2'/%3E%3Ccircle cx='430' cy='82' r='2.2'/%3E%3Ccircle cx='492' cy='126' r='2.8'/%3E%3Ccircle cx='560' cy='92' r='2.2'/%3E%3Ccircle cx='642' cy='146' r='2.6'/%3E%3Ccircle cx='92' cy='342' r='2.2'/%3E%3Ccircle cx='170' cy='286' r='2.8'/%3E%3Ccircle cx='250' cy='334' r='2.2'/%3E%3Ccircle cx='326' cy='278' r='2.6'/%3E%3Ccircle cx='398' cy='330' r='2.2'/%3E%3Ccircle cx='450' cy='350' r='2.2'/%3E%3Ccircle cx='525' cy='292' r='2.8'/%3E%3Ccircle cx='610' cy='340' r='2.3'/%3E%3C/g%3E%3C/svg%3E");
  animation: constellationFloat 70s linear infinite;
}

@media (max-width: 640px) {
  body,
  body.subpage-body,
  body.card-draw-page,
  body.result-page {
    background-attachment: scroll;
  }

  body::before,
  body.subpage-body::before,
  body.card-draw-page::before,
  body.result-page::before {
    opacity: 0.42;
  }

  body::after,
  body.subpage-body::after,
  body.card-draw-page::after,
  body.result-page::after {
    opacity: 0.15;
    background-size: 560px 405px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  body.subpage-body::before,
  body.subpage-body::after,
  body.card-draw-page::before,
  body.card-draw-page::after,
  body.result-page::before,
  body.result-page::after {
    animation: none !important;
  }
}


/* v17 Result action cleanup */

.result-page-actions {
  justify-content: center;
}

.result-contact-button {
  min-width: 220px;
  padding: 14px 24px;
}


/* =========================
   v18 Tarot guide board
   ========================= */

.tarot-guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 58px;
  margin-top: 18px;
  padding: 14px 26px;
  color: var(--gold-light);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 0 22px rgba(215, 167, 76, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tarot-guide-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  background: rgba(215, 167, 76, 0.08);
}

.tarot-guide-main {
  width: min(calc(100% - 30px), 1180px);
}

.tarot-board-section {
  padding: 30px;
  background: rgba(8, 8, 8, 0.65);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(8px);
}

.tarot-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.tarot-board-header > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tarot-board-header strong {
  color: var(--gold-light);
  font-size: 1.3rem;
}

.tarot-board-header span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.tarot-board-header select {
  min-width: 170px;
  padding: 11px 38px 11px 14px;
  color: var(--text);
  font: inherit;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tarot-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.tarot-post-card {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18,18,18,.96), rgba(8,8,8,.96));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  transition: transform 180ms ease, border-color 180ms ease;
}

.tarot-post-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.tarot-post-link {
  display: block;
  height: 100%;
}

.tarot-post-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0c0c0c;
}

.tarot-post-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-post-number {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #171009;
  font-size: .72rem;
  font-weight: 800;
  background: var(--gold-light);
  border-radius: 999px;
}

.tarot-post-content {
  padding: 20px;
}

.tarot-post-content p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .76rem;
  letter-spacing: .08em;
}

.tarot-post-content h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 500;
}

.tarot-post-content > span {
  display: block;
  margin-top: 7px;
  color: var(--text-soft);
  font-family: Georgia, "Times New Roman", serif;
}

.tarot-post-content small {
  display: block;
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--text-soft);
  font: inherit;
  background: rgba(10,10,10,.8);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  cursor: pointer;
}

.pagination button:hover,
.pagination button.is-active {
  color: #171009;
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.pagination button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.tarot-detail-main {
  width: min(calc(100% - 30px), 1120px);
}

.tarot-detail-frame {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 50px;
  padding: 46px;
  background:
    radial-gradient(circle at 15% 10%, rgba(215,167,76,.11), transparent 28%),
    rgba(8,8,8,.74);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.tarot-detail-image-wrap {
  position: sticky;
  top: 110px;
  align-self: start;
}

.tarot-detail-image-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3.25;
  object-fit: cover;
  border: 1px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0,0,0,.45);
}

.tarot-detail-content > h1 {
  margin: 8px 0 6px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.tarot-detail-en {
  margin: 0 0 34px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.tarot-detail-content section {
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.tarot-detail-content section h2 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 1.24rem;
  font-weight: 500;
}

.tarot-detail-content section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.tarot-detail-advice {
  padding: 24px !important;
  background: rgba(215,167,76,.055);
  border: 1px solid rgba(215,167,76,.42) !important;
  border-radius: 16px;
}

.tarot-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.tarot-detail-actions .secondary-button {
  margin: 0;
}

.tarot-detail-horoscope {
  width: min(100%, 280px);
  min-height: 58px;
  font-size: 1rem;
}

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

  .tarot-detail-frame {
    grid-template-columns: 1fr;
  }

  .tarot-detail-image-wrap {
    position: static;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .tarot-board-section {
    padding: 20px 16px;
  }

  .tarot-board-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tarot-board-header select {
    width: 100%;
  }

  .tarot-post-grid {
    gap: 12px;
  }

  .tarot-post-content {
    padding: 15px;
  }

  .tarot-post-content h2 {
    font-size: 1.02rem;
  }

  .tarot-post-content > span {
    font-size: .82rem;
  }

  .tarot-post-content small {
    display: none;
  }

  .tarot-detail-frame {
    gap: 30px;
    padding: 26px 20px;
  }
}


/* =========================
   v19 Tarot spread guide
   ========================= */

.spread-post-preview {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(215,167,76,.13), transparent 38%),
    linear-gradient(145deg, #12100c, #070707);
}

.spread-preview {
  position: relative;
  width: 82%;
  height: 82%;
}

.spread-preview span {
  position: absolute;
  display: grid;
  width: 27%;
  aspect-ratio: 2 / 3.1;
  place-items: center;
  color: var(--gold-light);
  font-size: .82rem;
  background: rgba(8,8,8,.94);
  border: 1px solid rgba(215,167,76,.65);
  border-radius: 5px;
  box-shadow: 0 5px 13px rgba(0,0,0,.38);
}

/* Small preview layouts */
.spread-one-card span:nth-child(1) { left: 36.5%; top: 20%; }

.spread-three-card-time span:nth-child(1),
.spread-situation-obstacle-advice span:nth-child(1) { left: 2%; top: 26%; }
.spread-three-card-time span:nth-child(2),
.spread-situation-obstacle-advice span:nth-child(2) { left: 36.5%; top: 26%; }
.spread-three-card-time span:nth-child(3),
.spread-situation-obstacle-advice span:nth-child(3) { right: 2%; top: 26%; }

.spread-five-card-cross span:nth-child(1) { left: 36.5%; top: 30%; }
.spread-five-card-cross span:nth-child(2) { left: 36.5%; top: 0; }
.spread-five-card-cross span:nth-child(3) { left: 2%; top: 30%; }
.spread-five-card-cross span:nth-child(4) { right: 2%; top: 30%; }
.spread-five-card-cross span:nth-child(5) { left: 36.5%; bottom: 0; }

.spread-relationship span:nth-child(1) { left: 2%; top: 5%; }
.spread-relationship span:nth-child(2) { right: 2%; top: 5%; }
.spread-relationship span:nth-child(3) { left: 36.5%; top: 30%; }
.spread-relationship span:nth-child(4) { left: 2%; bottom: 0; }
.spread-relationship span:nth-child(5) { right: 2%; bottom: 0; }

.spread-choice-ab span { width: 21%; }
.spread-choice-ab span:nth-child(1) { left: 39.5%; top: 0; }
.spread-choice-ab span:nth-child(2) { left: 4%; top: 30%; }
.spread-choice-ab span:nth-child(3) { left: 4%; bottom: 0; }
.spread-choice-ab span:nth-child(4) { left: 27%; bottom: 0; }
.spread-choice-ab span:nth-child(5) { right: 4%; top: 30%; }
.spread-choice-ab span:nth-child(6) { right: 4%; bottom: 0; }
.spread-choice-ab span:nth-child(7) { right: 27%; bottom: 0; }

.spread-celtic-cross span { width: 17%; font-size: .68rem; }
.spread-celtic-cross span:nth-child(1) { left: 24%; top: 34%; }
.spread-celtic-cross span:nth-child(2) { left: 24%; top: 34%; transform: rotate(90deg); }
.spread-celtic-cross span:nth-child(3) { left: 24%; top: 3%; }
.spread-celtic-cross span:nth-child(4) { left: 24%; bottom: 3%; }
.spread-celtic-cross span:nth-child(5) { left: 2%; top: 34%; }
.spread-celtic-cross span:nth-child(6) { left: 46%; top: 34%; }
.spread-celtic-cross span:nth-child(7) { right: 2%; bottom: 0; }
.spread-celtic-cross span:nth-child(8) { right: 2%; bottom: 24%; }
.spread-celtic-cross span:nth-child(9) { right: 2%; top: 24%; }
.spread-celtic-cross span:nth-child(10) { right: 2%; top: 0; }

.spread-detail-main {
  width: min(calc(100% - 30px), 1120px);
}

.spread-detail-frame {
  padding: 48px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215,167,76,.10), transparent 27%),
    rgba(7,7,7,.75);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.spread-detail-header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.spread-detail-header h1 {
  margin: 10px 0 5px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.spread-detail-header > p:last-child {
  margin: 24px 0 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.spread-board,
.spread-position-section,
.spread-reading-section,
.spread-tip-section {
  margin-top: 38px;
}

.spread-board > h2,
.spread-position-section > h2,
.spread-reading-section > h2,
.spread-tip-section > h2 {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 1.45rem;
  font-weight: 500;
}

.spread-large-preview {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(215,167,76,.09), transparent 38%),
    rgba(255,255,255,.018);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
}

.spread-layout-card {
  position: absolute;
  display: flex;
  width: 120px;
  aspect-ratio: 2 / 3.1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(145deg, #17130e, #080808);
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}

.spread-layout-card strong {
  color: var(--gold-light);
  font-size: 1.4rem;
}

.spread-layout-card span {
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.35;
}

/* Large layouts */
.spread-layout-one-card .spread-layout-card:nth-child(1) {
  left: calc(50% - 60px); top: 90px;
}

.spread-layout-three-card-time .spread-layout-card:nth-child(1),
.spread-layout-situation-obstacle-advice .spread-layout-card:nth-child(1) {
  left: calc(25% - 60px); top: 120px;
}
.spread-layout-three-card-time .spread-layout-card:nth-child(2),
.spread-layout-situation-obstacle-advice .spread-layout-card:nth-child(2) {
  left: calc(50% - 60px); top: 120px;
}
.spread-layout-three-card-time .spread-layout-card:nth-child(3),
.spread-layout-situation-obstacle-advice .spread-layout-card:nth-child(3) {
  left: calc(75% - 60px); top: 120px;
}

.spread-layout-five-card-cross .spread-layout-card:nth-child(1) {
  left: calc(50% - 60px); top: 175px;
}
.spread-layout-five-card-cross .spread-layout-card:nth-child(2) {
  left: calc(50% - 60px); top: 15px;
}
.spread-layout-five-card-cross .spread-layout-card:nth-child(3) {
  left: calc(28% - 60px); top: 175px;
}
.spread-layout-five-card-cross .spread-layout-card:nth-child(4) {
  left: calc(72% - 60px); top: 175px;
}
.spread-layout-five-card-cross .spread-layout-card:nth-child(5) {
  left: calc(50% - 60px); bottom: 15px;
}

.spread-layout-relationship .spread-layout-card:nth-child(1) {
  left: calc(25% - 60px); top: 35px;
}
.spread-layout-relationship .spread-layout-card:nth-child(2) {
  left: calc(75% - 60px); top: 35px;
}
.spread-layout-relationship .spread-layout-card:nth-child(3) {
  left: calc(50% - 60px); top: 175px;
}
.spread-layout-relationship .spread-layout-card:nth-child(4) {
  left: calc(25% - 60px); bottom: 20px;
}
.spread-layout-relationship .spread-layout-card:nth-child(5) {
  left: calc(75% - 60px); bottom: 20px;
}

.spread-layout-choice-ab .spread-layout-card { width: 92px; }
.spread-layout-choice-ab .spread-layout-card:nth-child(1) {
  left: calc(50% - 46px); top: 15px;
}
.spread-layout-choice-ab .spread-layout-card:nth-child(2) {
  left: calc(18% - 46px); top: 155px;
}
.spread-layout-choice-ab .spread-layout-card:nth-child(3) {
  left: calc(18% - 46px); bottom: 15px;
}
.spread-layout-choice-ab .spread-layout-card:nth-child(4) {
  left: calc(34% - 46px); bottom: 15px;
}
.spread-layout-choice-ab .spread-layout-card:nth-child(5) {
  left: calc(82% - 46px); top: 155px;
}
.spread-layout-choice-ab .spread-layout-card:nth-child(6) {
  left: calc(82% - 46px); bottom: 15px;
}
.spread-layout-choice-ab .spread-layout-card:nth-child(7) {
  left: calc(66% - 46px); bottom: 15px;
}

.spread-layout-celtic-cross .spread-layout-card {
  width: 72px;
  border-radius: 7px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(1) {
  left: 28%; top: 185px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(2) {
  left: 28%; top: 185px; transform: rotate(90deg);
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(3) {
  left: 28%; top: 15px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(4) {
  left: 28%; bottom: 15px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(5) {
  left: 10%; top: 185px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(6) {
  left: 46%; top: 185px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(7) {
  right: 8%; bottom: 10px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(8) {
  right: 8%; bottom: 135px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(9) {
  right: 8%; top: 135px;
}
.spread-layout-celtic-cross .spread-layout-card:nth-child(10) {
  right: 8%; top: 10px;
}

.spread-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spread-position-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
}

.spread-position-card > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #171009;
  font-weight: 800;
  background: var(--gold-light);
  border-radius: 50%;
}

.spread-position-card h3 {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 1.08rem;
  font-weight: 500;
}

.spread-position-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.spread-reading-section ol {
  margin: 0;
  padding: 25px 25px 25px 48px;
  color: var(--text-soft);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.spread-reading-section li {
  padding: 7px 0;
  line-height: 1.75;
}

.spread-tip-section {
  padding: 24px;
  background: rgba(215,167,76,.06);
  border: 1px solid rgba(215,167,76,.42);
  border-radius: 16px;
}

.spread-tip-section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

@media (max-width: 760px) {
  .spread-detail-frame {
    padding: 30px 20px;
  }

  .spread-large-preview {
    min-height: 430px;
    overflow-x: auto;
  }

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

  .spread-layout-card {
    width: 88px;
    font-size: .78rem;
  }

  .spread-layout-card span {
    font-size: .68rem;
  }

  .spread-layout-one-card .spread-layout-card:nth-child(1) {
    left: calc(50% - 44px);
  }
}


/* =========================
   v20 AdSense-ready layout
   ========================= */

.ad-section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1100px);
  margin: 56px auto;
  padding: 0;
  clear: both;
}

.ad-slot {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 140px;
  place-items: center;
  overflow: hidden;
  background: rgba(7, 7, 7, 0.56);
  border: 1px solid rgba(215, 167, 76, 0.13);
  border-radius: 14px;
  backdrop-filter: blur(5px);
}

.ad-slot[data-ad-format="horizontal"] {
  min-height: 120px;
}

.ad-label {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  padding: 2px 7px;
  color: #7e766b;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.ad-placeholder {
  color: #746c62;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  text-align: center;
}

/* Before approval, keep layout visible but understated. */
.adsense-preview-mode .ad-slot {
  min-height: 92px;
  border-style: dashed;
}

.adsense-preview-mode .ad-placeholder {
  opacity: 0.7;
}

/* Never visually merge ads with buttons, navigation, cards, or pagination. */
.primary-button + .ad-section,
.secondary-button + .ad-section,
.pagination + .ad-section,
.draw-actions + .ad-section,
.result-page-actions + .ad-section {
  margin-top: 72px;
}

.ad-section + .primary-button,
.ad-section + .secondary-button,
.ad-section + .result-page-actions,
.ad-section + .pagination,
.ad-section + .card-deck-grid {
  margin-top: 72px;
}

.ad-slot .adsbygoogle {
  width: 100%;
  min-height: inherit;
}

@media (max-width: 640px) {
  .ad-section {
    width: min(calc(100% - 28px), 1100px);
    margin-block: 44px;
  }

  .ad-slot,
  .ad-slot[data-ad-format="horizontal"] {
    min-height: 110px;
  }

  .adsense-preview-mode .ad-slot {
    min-height: 80px;
  }
}


/* =========================
   v21 Multilingual site
   ========================= */
.header-tools{display:flex;align-items:flex-end;flex-direction:column;gap:12px}
.home-tools{position:absolute;top:22px;right:28px;z-index:8}
.language-switcher{display:inline-flex;gap:5px;padding:5px;background:rgba(7,7,7,.72);border:1px solid var(--line-soft);border-radius:999px;backdrop-filter:blur(8px)}
.language-switcher a{display:grid;min-width:34px;height:30px;place-items:center;color:var(--text-soft);font:700 .72rem Arial,sans-serif;border-radius:999px}
.language-switcher a:hover,.language-switcher a.is-active{color:#171009;background:var(--gold-light)}
.language-gateway{display:grid;min-height:100vh;place-items:center;padding:28px}
.language-gateway-panel{width:min(100%,850px);padding:54px;text-align:center;background:rgba(7,7,7,.72);border:1px solid var(--line);border-radius:30px;backdrop-filter:blur(10px)}
.language-gateway-panel>img{width:180px;height:180px;object-fit:contain;margin:0 auto 22px}
.language-gateway-panel h1{margin:0;color:var(--gold-light);font:500 clamp(2rem,6vw,4.2rem) Georgia,serif;letter-spacing:.09em}
.language-gateway-panel p{color:var(--text-soft)}
.language-card-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:36px}
.language-card{display:flex;min-height:110px;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:rgba(255,255,255,.025);border:1px solid var(--line-soft);border-radius:16px;transition:.16s}
.language-card:hover{transform:translateY(-4px);border-color:var(--gold)}
.language-card strong{color:var(--text);font-size:1.05rem}.language-card span{color:var(--gold)}
.multilingual-header{flex-wrap:wrap}
@media(max-width:800px){.header-tools{width:100%;align-items:flex-start}.home-tools{position:static;align-items:center;margin-bottom:14px}.language-card-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.language-gateway-panel{padding:36px 20px}.language-card-grid{grid-template-columns:1fr}.language-switcher{max-width:100%;overflow-x:auto}}


/* =========================
   v23 Final spread articles
   ========================= */
.spread-article-section{margin-top:34px;padding:28px;background:rgba(255,255,255,.025);border:1px solid var(--line-soft);border-radius:18px}
.spread-article-section h2{margin:0 0 18px;color:var(--gold-light);font-size:1.4rem;font-weight:500}
.spread-article-section p,.spread-article-section li{color:var(--text-soft);line-height:1.9}
.spread-article-section ul{margin:0;padding-left:1.3rem}
.spread-summary-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:34px}
.spread-summary-card>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;background:rgba(215,167,76,.055);border:1px solid rgba(215,167,76,.35);border-radius:14px}
.spread-summary-card strong{color:var(--gold-light)}.spread-summary-card span{color:var(--text-soft);text-align:right}
@media(max-width:640px){.spread-summary-card{grid-template-columns:1fr}.spread-article-section{padding:22px 18px}}


/* =========================
   v24 consultation pages
   ========================= */

.consultation-main {
  width: min(calc(100% - 30px), 980px);
}

.consultation-hero-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(215,167,76,.14), transparent 34%),
    rgba(8,8,8,.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(8px);
}

.consultation-symbol {
  display: grid;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  place-items: center;
  color: var(--gold-light);
  font-size: 3rem;
  background: rgba(215,167,76,.07);
  border: 1px solid rgba(215,167,76,.45);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(215,167,76,.12);
}

.consultation-hero-card h2,
.consultation-section h2 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-weight: 500;
}

.consultation-hero-card p,
.consultation-section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.consultation-section {
  margin-top: 26px;
  padding: 30px;
  background: rgba(8,8,8,.68);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.consultation-info-list {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.consultation-info-row {
  display: grid;
  grid-template-columns: minmax(120px,.45fr) 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
}

.consultation-info-row:first-child {
  border-top: 0;
}

.consultation-info-row strong {
  color: var(--gold-light);
}

.consultation-info-row span {
  color: var(--text-soft);
}

.consultation-notice {
  margin-top: 18px !important;
  padding: 16px 18px;
  background: rgba(215,167,76,.055);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}

.consultation-price-section > .eyebrow {
  margin-bottom: 10px;
}

.consultation-price-head,
.consultation-price-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 110px 110px;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}

.consultation-price-head {
  margin-top: 22px;
  color: var(--gold-light);
  font-size: .82rem;
  text-align: right;
  background: rgba(215,167,76,.07);
  border: 1px solid var(--line-soft);
  border-radius: 14px 14px 0 0;
}

.consultation-price-list {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.consultation-price-row {
  border-top: 1px solid var(--line-soft);
}

.consultation-price-row:first-child {
  border-top: 0;
}

.consultation-price-row span {
  color: var(--text);
}

.consultation-price-row del {
  color: #82786e;
  text-align: right;
}

.consultation-price-row strong {
  color: var(--gold-light);
  text-align: right;
}

.consultation-book-button {
  width: min(100%, 430px);
  min-height: 64px;
  margin: 30px auto 0;
}

.consultation-language-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 22px 24px;
  color: var(--text-soft);
  background: rgba(215,167,76,.055);
  border: 1px solid rgba(215,167,76,.38);
  border-radius: 16px;
}

.consultation-language-note span {
  color: var(--gold-light);
  font-size: 1.3rem;
}

.consultation-language-note p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 700px) {
  .consultation-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .consultation-info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .consultation-price-head,
  .consultation-price-row {
    grid-template-columns: minmax(0,1fr) 80px 80px;
    padding-inline: 12px;
    font-size: .86rem;
  }

  .spread-detail-consultation-layout {
    min-width: 720px;
  }

  .spread-large-preview {
    overflow-x: auto;
  }
}


/* =========================
   v25 Korean result inquiry
   ========================= */

.korean-result-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.result-inquiry-button {
  width: min(100%, 390px);
  min-height: 66px;
  border: 1px solid #ffe4a1;
  cursor: pointer;
  box-shadow:
    0 14px 35px rgba(215, 167, 76, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.result-inquiry-button:hover {
  transform: translateY(-2px);
}

.result-inquiry-button:focus-visible {
  outline: 3px solid rgba(243, 207, 122, 0.38);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .korean-result-actions {
    margin-top: 26px;
  }

  .result-inquiry-button {
    width: 100%;
  }
}


/* =========================
   v26 Final numbered spread diagrams
   ========================= */

.spread-post-preview {
  position: relative;
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  padding: 22px 15px 42px;
  background:
    radial-gradient(circle at 50% 42%, rgba(215,167,76,.13), transparent 38%),
    linear-gradient(155deg, rgba(24,19,12,.98), rgba(6,6,6,.99));
}

.spread-number-diagram {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 215px;
}

.spread-diagram-box {
  position: absolute;
  display: flex;
  width: 23%;
  aspect-ratio: 2 / 2.85;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 7px 5px;
  overflow: hidden;
  color: var(--gold-light);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(23,18,11,.98), rgba(7,7,7,.98));
  border: 1px solid rgba(243,207,122,.74);
  border-radius: 7px;
  box-shadow:
    0 9px 20px rgba(0,0,0,.45),
    inset 0 0 15px rgba(215,167,76,.035);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.spread-diagram-box::before,
.spread-diagram-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(243,207,122,.48);
}

.spread-diagram-box::before {
  top: 4px;
  left: 4px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.spread-diagram-box::after {
  right: 4px;
  bottom: 4px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.spread-diagram-box:hover,
.spread-diagram-box:focus-visible {
  z-index: 20;
  transform: translateY(-4px) scale(1.05);
  border-color: #ffe7a9;
  box-shadow:
    0 14px 26px rgba(0,0,0,.58),
    0 0 24px rgba(215,167,76,.16);
  outline: none;
}

.spread-diagram-box strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #171009;
  font: 800 .88rem Arial, sans-serif;
  background: var(--gold-light);
  border-radius: 50%;
}

.spread-diagram-box small {
  width: 100%;
  overflow: hidden;
  color: #e3d8c6;
  font-size: clamp(.55rem, .75vw, .72rem);
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spread-thumbnail-meta {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a99e8e;
  font: 600 .66rem Arial, sans-serif;
  letter-spacing: .04em;
}

/* One Card */
.spread-layout-one-card-guidance .spread-diagram-box-1 {
  left: 38.5%;
  top: 10%;
}

/* Three-card horizontal diagrams */
.spread-layout-past-present-future .spread-diagram-box-1,
.spread-layout-situation-challenge-advice .spread-diagram-box-1,
.spread-layout-yes-no .spread-diagram-box-1 {
  left: 5%;
  top: 19%;
}

.spread-layout-past-present-future .spread-diagram-box-2,
.spread-layout-situation-challenge-advice .spread-diagram-box-2,
.spread-layout-yes-no .spread-diagram-box-2 {
  left: 38.5%;
  top: 19%;
}

.spread-layout-past-present-future .spread-diagram-box-3,
.spread-layout-situation-challenge-advice .spread-diagram-box-3,
.spread-layout-yes-no .spread-diagram-box-3 {
  right: 5%;
  top: 19%;
}

/* Relationship: two people, central bond, challenge, direction */
.spread-layout-love-relationship .spread-diagram-box {
  width: 21%;
}
.spread-layout-love-relationship .spread-diagram-box-1 { left: 5%; top: 0; }
.spread-layout-love-relationship .spread-diagram-box-2 { right: 5%; top: 0; }
.spread-layout-love-relationship .spread-diagram-box-3 { left: 39.5%; top: 24%; }
.spread-layout-love-relationship .spread-diagram-box-4 { left: 5%; bottom: 0; }
.spread-layout-love-relationship .spread-diagram-box-5 { right: 5%; bottom: 0; }

/* Five-card cross */
.spread-layout-career-money .spread-diagram-box,
.spread-layout-decision .spread-diagram-box {
  width: 20%;
}
.spread-layout-career-money .spread-diagram-box-1,
.spread-layout-decision .spread-diagram-box-1 {
  left: 40%;
  top: 26%;
}
.spread-layout-career-money .spread-diagram-box-2,
.spread-layout-decision .spread-diagram-box-2 {
  left: 6%;
  top: 26%;
}
.spread-layout-career-money .spread-diagram-box-3,
.spread-layout-decision .spread-diagram-box-3 {
  right: 6%;
  top: 26%;
}
.spread-layout-career-money .spread-diagram-box-4,
.spread-layout-decision .spread-diagram-box-4 {
  left: 40%;
  top: 0;
}
.spread-layout-career-money .spread-diagram-box-5,
.spread-layout-decision .spread-diagram-box-5 {
  left: 40%;
  bottom: 0;
}

/* Monthly Outlook */
.spread-layout-monthly-outlook .spread-diagram-box {
  width: 17.5%;
}
.spread-layout-monthly-outlook .spread-diagram-box-1 { left: 1%; top: 0; }
.spread-layout-monthly-outlook .spread-diagram-box-2 { left: 27.5%; top: 0; }
.spread-layout-monthly-outlook .spread-diagram-box-3 { right: 27.5%; top: 0; }
.spread-layout-monthly-outlook .spread-diagram-box-4 { right: 1%; top: 0; }
.spread-layout-monthly-outlook .spread-diagram-box-5 { left: 27.5%; bottom: 0; }
.spread-layout-monthly-outlook .spread-diagram-box-6 { right: 27.5%; bottom: 0; }

/* Horseshoe */
.spread-layout-horseshoe .spread-diagram-box {
  width: 15.5%;
}
.spread-layout-horseshoe .spread-diagram-box-1 { left: 0; bottom: 0; transform: rotate(-9deg); }
.spread-layout-horseshoe .spread-diagram-box-2 { left: 14%; top: 28%; transform: rotate(-6deg); }
.spread-layout-horseshoe .spread-diagram-box-3 { left: 28%; top: 4%; transform: rotate(-3deg); }
.spread-layout-horseshoe .spread-diagram-box-4 { left: 42.25%; top: 0; }
.spread-layout-horseshoe .spread-diagram-box-5 { right: 28%; top: 4%; transform: rotate(3deg); }
.spread-layout-horseshoe .spread-diagram-box-6 { right: 14%; top: 28%; transform: rotate(6deg); }
.spread-layout-horseshoe .spread-diagram-box-7 { right: 0; bottom: 0; transform: rotate(9deg); }

/* Celtic Cross */
.spread-layout-celtic-cross .spread-diagram-box {
  width: 12.5%;
  padding-inline: 2px;
}
.spread-layout-celtic-cross .spread-diagram-box strong {
  width: 23px;
  height: 23px;
  font-size: .7rem;
}
.spread-layout-celtic-cross .spread-diagram-box small {
  font-size: .48rem;
}
.spread-layout-celtic-cross .spread-diagram-box-1 { left: 24%; top: 34%; }
.spread-layout-celtic-cross .spread-diagram-box-2 {
  left: 24%;
  top: 34%;
  z-index: 3;
  transform: rotate(90deg);
}
.spread-layout-celtic-cross .spread-diagram-box-2 strong,
.spread-layout-celtic-cross .spread-diagram-box-2 small {
  transform: rotate(-90deg);
}
.spread-layout-celtic-cross .spread-diagram-box-3 { left: 24%; top: 0; }
.spread-layout-celtic-cross .spread-diagram-box-4 { left: 24%; bottom: 0; }
.spread-layout-celtic-cross .spread-diagram-box-5 { left: 5%; top: 34%; }
.spread-layout-celtic-cross .spread-diagram-box-6 { left: 43%; top: 34%; }
.spread-layout-celtic-cross .spread-diagram-box-7 { right: 2%; bottom: 0; }
.spread-layout-celtic-cross .spread-diagram-box-8 { right: 2%; bottom: 25.5%; }
.spread-layout-celtic-cross .spread-diagram-box-9 { right: 2%; top: 25.5%; }
.spread-layout-celtic-cross .spread-diagram-box-10 { right: 2%; top: 0; }

/* Detailed article diagram */
.spread-detail-number-diagram {
  min-height: 680px;
  padding: 24px;
  overflow: hidden;
}

.spread-detail-number-diagram .spread-diagram-box {
  width: 132px;
  min-height: 190px;
  aspect-ratio: auto;
  padding: 16px 10px;
  animation: spreadBoxEnter .42s ease both;
  animation-delay: calc(var(--spread-order, 0) * .07s);
}

.spread-detail-number-diagram .spread-diagram-box strong {
  width: 44px;
  height: 44px;
  font-size: 1.12rem;
}

.spread-detail-number-diagram .spread-diagram-box span {
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1.35;
}

.spread-detail-number-diagram .spread-diagram-box small {
  display: block;
  overflow: visible;
  color: var(--text-soft);
  font-size: .72rem;
  line-height: 1.55;
  text-overflow: clip;
  white-space: normal;
}

.spread-detail-number-diagram.spread-layout-one-card-guidance .spread-diagram-box-1 {
  left: calc(50% - 66px);
  top: 110px;
}

.spread-detail-number-diagram.spread-layout-past-present-future .spread-diagram-box-1,
.spread-detail-number-diagram.spread-layout-situation-challenge-advice .spread-diagram-box-1,
.spread-detail-number-diagram.spread-layout-yes-no .spread-diagram-box-1 {
  left: 9%;
  top: 180px;
}
.spread-detail-number-diagram.spread-layout-past-present-future .spread-diagram-box-2,
.spread-detail-number-diagram.spread-layout-situation-challenge-advice .spread-diagram-box-2,
.spread-detail-number-diagram.spread-layout-yes-no .spread-diagram-box-2 {
  left: calc(50% - 66px);
  top: 180px;
}
.spread-detail-number-diagram.spread-layout-past-present-future .spread-diagram-box-3,
.spread-detail-number-diagram.spread-layout-situation-challenge-advice .spread-diagram-box-3,
.spread-detail-number-diagram.spread-layout-yes-no .spread-diagram-box-3 {
  right: 9%;
  top: 180px;
}

.spread-detail-number-diagram.spread-layout-love-relationship .spread-diagram-box-1 { left: 10%; top: 35px; }
.spread-detail-number-diagram.spread-layout-love-relationship .spread-diagram-box-2 { right: 10%; top: 35px; }
.spread-detail-number-diagram.spread-layout-love-relationship .spread-diagram-box-3 { left: calc(50% - 66px); top: 235px; }
.spread-detail-number-diagram.spread-layout-love-relationship .spread-diagram-box-4 { left: 10%; bottom: 25px; }
.spread-detail-number-diagram.spread-layout-love-relationship .spread-diagram-box-5 { right: 10%; bottom: 25px; }

.spread-detail-number-diagram.spread-layout-career-money .spread-diagram-box-1,
.spread-detail-number-diagram.spread-layout-decision .spread-diagram-box-1 {
  left: calc(50% - 66px); top: 235px;
}
.spread-detail-number-diagram.spread-layout-career-money .spread-diagram-box-2,
.spread-detail-number-diagram.spread-layout-decision .spread-diagram-box-2 {
  left: 8%; top: 235px;
}
.spread-detail-number-diagram.spread-layout-career-money .spread-diagram-box-3,
.spread-detail-number-diagram.spread-layout-decision .spread-diagram-box-3 {
  right: 8%; top: 235px;
}
.spread-detail-number-diagram.spread-layout-career-money .spread-diagram-box-4,
.spread-detail-number-diagram.spread-layout-decision .spread-diagram-box-4 {
  left: calc(50% - 66px); top: 20px;
}
.spread-detail-number-diagram.spread-layout-career-money .spread-diagram-box-5,
.spread-detail-number-diagram.spread-layout-decision .spread-diagram-box-5 {
  left: calc(50% - 66px); bottom: 20px;
}

.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box {
  width: 118px;
  min-height: 176px;
}
.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box-1 { left: 1%; top: 45px; }
.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box-2 { left: 25%; top: 45px; }
.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box-3 { right: 25%; top: 45px; }
.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box-4 { right: 1%; top: 45px; }
.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box-5 { left: 25%; bottom: 35px; }
.spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box-6 { right: 25%; bottom: 35px; }

.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box {
  width: 108px;
  min-height: 168px;
}
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-1 { left: 0; bottom: 25px; transform: rotate(-9deg); }
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-2 { left: 14%; top: 290px; transform: rotate(-6deg); }
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-3 { left: 28%; top: 100px; transform: rotate(-3deg); }
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-4 { left: calc(50% - 54px); top: 45px; }
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-5 { right: 28%; top: 100px; transform: rotate(3deg); }
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-6 { right: 14%; top: 290px; transform: rotate(6deg); }
.spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box-7 { right: 0; bottom: 25px; transform: rotate(9deg); }

.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box {
  width: 94px;
  min-height: 148px;
  padding: 9px 5px;
}
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box strong {
  width: 30px;
  height: 30px;
  font-size: .82rem;
}
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box span {
  font-size: .72rem;
}
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box small {
  font-size: .59rem;
}
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-1 { left: 24%; top: 260px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-2 {
  left: 24%; top: 260px; z-index: 3; transform: rotate(90deg);
}
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-2 strong,
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-2 span,
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-2 small {
  transform: rotate(-90deg);
}
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-3 { left: 24%; top: 25px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-4 { left: 24%; bottom: 25px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-5 { left: 7%; top: 260px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-6 { left: 41%; top: 260px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-7 { right: 3%; bottom: 10px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-8 { right: 3%; bottom: 175px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-9 { right: 3%; top: 175px; }
.spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box-10 { right: 3%; top: 10px; }

@keyframes spreadBoxEnter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.96);
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .spread-detail-number-diagram {
    display: grid;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    overflow: visible;
  }

  .spread-detail-number-diagram .spread-diagram-box,
  .spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box,
  .spread-detail-number-diagram.spread-layout-monthly-outlook .spread-diagram-box,
  .spread-detail-number-diagram.spread-layout-horseshoe .spread-diagram-box {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: grid;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    grid-template-columns: 46px minmax(100px,.5fr) 1fr;
    gap: 12px;
    padding: 16px;
    transform: none !important;
  }

  .spread-detail-number-diagram .spread-diagram-box strong,
  .spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box strong {
    grid-row: 1 / 3;
    align-self: center;
  }

  .spread-detail-number-diagram .spread-diagram-box span,
  .spread-detail-number-diagram .spread-diagram-box small,
  .spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box span,
  .spread-detail-number-diagram.spread-layout-celtic-cross .spread-diagram-box small {
    transform: none !important;
    text-align: left;
  }
}


/* =========================
   v27.1 education content
   ========================= */
.education-post-preview{display:flex;min-height:260px;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:28px;text-align:center;background:radial-gradient(circle at center,rgba(215,167,76,.15),transparent 35%),linear-gradient(145deg,#171109,#060606)}
.education-preview-symbol{color:var(--gold-light);font-size:2rem;text-shadow:0 0 20px rgba(215,167,76,.35)}
.education-post-preview strong{color:var(--text);font-size:1.15rem;line-height:1.45}.education-post-preview small{color:var(--gold);font-family:Georgia,serif}
.education-main{width:min(calc(100% - 30px),980px)}.education-article{padding:46px;background:rgba(7,7,7,.76);border:1px solid var(--line);border-radius:28px;backdrop-filter:blur(9px)}
.education-article-header{text-align:center}.education-article-header h1{margin:10px 0 6px;font-size:clamp(2.1rem,5vw,3.8rem);font-weight:500}.education-article-header>p:last-child{max-width:760px;margin:24px auto 0;color:var(--text-soft);line-height:1.9}
.education-toc,.education-intro,.education-content-section,.education-tips,.education-faq{margin-top:30px;padding:26px;background:rgba(255,255,255,.025);border:1px solid var(--line-soft);border-radius:17px}
.education-toc h2,.education-content-section h2,.education-tips h2,.education-faq h2{margin:0 0 16px;color:var(--gold-light);font-size:1.35rem;font-weight:500}
.education-toc ol,.education-tips ul{margin:0;padding-left:1.4rem}.education-toc li,.education-tips li{padding:5px 0;color:var(--text-soft);line-height:1.7}.education-toc a:hover{color:var(--gold-light)}
.education-intro p,.education-content-section p,.education-faq p{margin:0;color:var(--text-soft);line-height:1.95}.education-faq details{padding:16px 0;border-top:1px solid var(--line-soft)}.education-faq details:first-child{border-top:0}.education-faq summary{color:var(--text);cursor:pointer;font-weight:700}.education-faq details p{padding-top:12px}
@media(max-width:640px){.education-article{padding:28px 18px}.education-toc,.education-intro,.education-content-section,.education-tips,.education-faq{padding:20px 17px}}
