/* === FORTUNA — Mystical Night Sky === */

:root {
  --night-deep:   #0b0820;
  --night:        #1a1340;
  --night-mid:    #2a1f5a;
  --night-soft:   #3d2d75;
  --purple:       #6b4fa8;
  --purple-soft:  #b8a3d9;
  --gold:         #d4b85c;
  --gold-soft:    #e6cf8c;
  --ivory:        #f7f1e6;
  --ivory-warm:   #efe5d2;
  --text-light:   #ece4f6;
  --text-mid:     #b8aed0;
  --text-dark:    #2d1a4a;
  --text-card:    #4a3b6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--night-deep);
  min-height: 100vh;
  font-family: 'Noto Serif KR', 'Cormorant Garamond', serif;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === Cosmic background — layered === */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(107, 79, 168, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(58, 35, 112, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 0%, var(--night-mid) 0%, var(--night) 35%, var(--night-deep) 80%);
  pointer-events: none;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 23% 42%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 38% 8%, rgba(230,207,140,0.9), transparent),
    radial-gradient(0.8px 0.8px at 47% 65%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.2px 1.2px at 55% 22%, rgba(184,163,217,0.8), transparent),
    radial-gradient(1px 1px at 64% 48%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.4px 1.4px at 73% 12%, rgba(230,207,140,0.85), transparent),
    radial-gradient(0.9px 0.9px at 82% 58%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.2px 1.2px at 91% 33%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 5% 78%, rgba(184,163,217,0.7), transparent),
    radial-gradient(1.3px 1.3px at 18% 88%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 33% 95%, rgba(230,207,140,0.8), transparent),
    radial-gradient(0.9px 0.9px at 58% 82%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.2px 1.2px at 76% 92%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 88% 75%, rgba(184,163,217,0.65), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

/* === Layout === */
.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* === Header === */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(184, 163, 217, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-light);
}

.brand-logo,
.brand-logo-img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(212, 184, 92, 0.5));
  object-fit: contain;
}

.brand-text { line-height: 1.15; }
.brand-text .name {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-soft);
}
.brand-text .tag {
  font-family: 'Noto Serif KR', serif;
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--gold-soft); }
.nav a.active {
  color: var(--gold-soft);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.cta-group { display: flex; gap: 10px; }
.btn-ghost,
.btn-outline {
  padding: 9px 18px;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(184, 163, 217, 0.4);
  background: transparent;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
}
.btn-outline {
  background: rgba(212, 184, 92, 0.15);
  border-color: rgba(212, 184, 92, 0.5);
  color: var(--gold-soft);
}
.btn-ghost:hover { border-color: var(--purple-soft); color: var(--gold-soft); }
.btn-outline:hover { background: rgba(212, 184, 92, 0.25); }

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: var(--purple-soft);
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: "✧ "; color: var(--gold); }
.hero-eyebrow::after  { content: " ✧"; color: var(--gold); }

.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ivory);
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-soft);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--night-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: none;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 3px;
  box-shadow: 0 6px 24px rgba(212, 184, 92, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 184, 92, 0.5); }
.hero-cta .arrow { font-size: 18px; }

/* === Hero visual (right side) === */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illust {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(184, 163, 217, 0.35)) drop-shadow(0 0 80px rgba(107, 79, 168, 0.3));
  animation: float-gentle 6s ease-in-out infinite alternate;
}
@keyframes float-gentle {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

.zodiac-wheel {
  width: 90%;
  height: 90%;
  position: relative;
  animation: spin-slow 90s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.moon-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--ivory-warm) 0%, var(--gold-soft) 45%, var(--gold) 75%, transparent 90%);
  box-shadow:
    0 0 60px rgba(230, 207, 140, 0.6),
    0 0 120px rgba(212, 184, 92, 0.35);
}
.moon-center::after {
  content: "";
  position: absolute;
  top: 18%; left: 32%;
  width: 65%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--night-deep) 30%, transparent 70%);
}
.moon-face {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Floating cards (right of moon) */
.float-cards {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: -20px;
}
.float-card {
  width: 80px;
  height: 130px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #3d2d75 0%, #1a1340 100%);
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 36px;
  margin-left: -28px;
  position: relative;
}
.float-card:first-child { margin-left: 0; transform: rotate(-12deg); }
.float-card:nth-child(2) { transform: translateY(-18px) rotate(0deg); z-index: 2; width: 92px; height: 150px; }
.float-card:nth-child(3) { transform: rotate(12deg); }

.float-card svg {
  width: 50%;
  height: 50%;
}

.float-card .card-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,184,92,0.5);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
}
.float-card .card-star {
  font-size: 24px;
  color: var(--gold-soft);
}
.float-card .card-mountains svg {
  width: 60px;
  height: auto;
}
.float-card .card-name {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  color: var(--gold-soft);
  letter-spacing: 1.5px;
}

/* === Crystal ball === */
.crystal-ball {
  position: absolute;
  bottom: 12%;
  right: 6%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.6) 0%, rgba(184, 163, 217, 0.85) 25%, rgba(107, 79, 168, 0.85) 60%, rgba(45, 26, 74, 0.95) 100%);
  box-shadow:
    inset -8px -10px 18px rgba(45, 26, 74, 0.7),
    inset 4px 6px 12px rgba(255, 255, 255, 0.3),
    0 8px 24px rgba(107, 79, 168, 0.6),
    0 0 40px rgba(184, 163, 217, 0.5);
}
.crystal-ball::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 184, 92, 0.5), transparent 70%);
  filter: blur(2px);
}

/* === Candle === */
.candle {
  position: absolute;
  bottom: 5%;
  right: 20%;
  width: 22px;
  height: 70px;
}
.candle .wax {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(180deg, #f0e5d0 0%, #d4c4a0 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: inset -3px 0 4px rgba(80, 50, 20, 0.25), 0 2px 6px rgba(0,0,0,0.4);
}
.candle .wick {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 6px;
  background: #2a1810;
}
.candle .flame {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 70%, #fff5c0 0%, #f5b94a 45%, #d44a1a 90%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  box-shadow: 0 0 20px rgba(245, 185, 74, 0.7), 0 0 40px rgba(245, 185, 74, 0.4);
  animation: flicker 1.5s ease-in-out infinite alternate;
  filter: blur(0.3px);
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scaleY(1) scaleX(1); }
  50%  { transform: translateX(-50%) scaleY(1.08) scaleX(0.95); }
  100% { transform: translateX(-50%) scaleY(0.95) scaleX(1.05); }
}

/* === Crystal cluster === */
.crystal-cluster {
  position: absolute;
  bottom: 14%;
  right: 28%;
  width: 50px;
  height: 60px;
}
.crystal {
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, rgba(184, 163, 217, 0.8) 0%, rgba(107, 79, 168, 0.95) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
  box-shadow: 0 0 10px rgba(184, 163, 217, 0.6);
}
.crystal.c1 { left: 0; width: 14px; height: 36px; }
.crystal.c2 { left: 14px; width: 18px; height: 50px; background: linear-gradient(180deg, rgba(216, 199, 240, 0.9), rgba(140, 110, 200, 0.95)); }
.crystal.c3 { left: 32px; width: 16px; height: 42px; }

/* === Leaves === */
.leaves {
  position: absolute;
  width: 100px;
  height: 160px;
  bottom: 0;
  pointer-events: none;
}
.leaves-left  { left: -10px; transform: scaleX(-1) rotate(8deg); }
.leaves-right { right: -10px; transform: rotate(8deg); }

/* === Shooting stars === */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-soft);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-soft);
}
.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(to left, rgba(230, 207, 140, 0.9), transparent);
  transform: translateY(-50%);
}
.shooting-star.s1 {
  top: 10%; right: 18%;
  animation: shoot 6s ease-out infinite;
}
.shooting-star.s2 {
  top: 22%; left: 10%;
  animation: shoot 8s ease-out infinite 3s;
}
@keyframes shoot {
  0% { transform: translate(40px, -40px); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translate(-60px, 60px); opacity: 1; }
  100% { transform: translate(-100px, 100px); opacity: 0; }
}

/* === Section dividers === */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
}
.section-title h2 {
  font-family: 'Cinzel', serif;
  font-size: 30px;
  letter-spacing: 6px;
  color: var(--ivory);
  font-weight: 500;
}
.section-title h2::before,
.section-title h2::after {
  content: " ✦ ";
  color: var(--gold);
  margin: 0 20px;
  font-size: 18px;
}

/* === Service cards (3 columns) === */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 20px 0 80px;
}

.service-card {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  border-radius: 14px;
  padding: 36px 28px 32px;
  text-decoration: none;
  color: var(--text-card);
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
  border: 1px solid rgba(212, 184, 92, 0.3);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(212, 184, 92, 0.25), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-illust {
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 216, 245, 0.95) 0%, rgba(200, 180, 232, 0.9) 60%, rgba(154, 126, 204, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 -8px 20px rgba(60, 35, 110, 0.2),
    0 8px 24px rgba(107, 79, 168, 0.4),
    0 0 0 1px rgba(212, 184, 92, 0.35);
}
.service-illust img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(45, 26, 74, 0.25));
  transition: transform 0.35s ease;
}
.service-card:hover .service-illust img {
  transform: scale(1.06) rotate(-1.5deg);
}

.service-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.service-card p {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-card);
  margin-bottom: 24px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: var(--text-dark);
  background: transparent;
  border: 1px solid rgba(60, 35, 110, 0.35);
  border-radius: 30px;
  text-decoration: none;
  letter-spacing: 2px;
  transition: background 0.18s, border-color 0.18s;
}
.service-card:hover .service-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night-deep);
}

/* === Features (4 columns) === */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 40px 0 100px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 8px;
}
.feature-icon,
.feature-icon-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 184, 92, 0.35));
}
.feature-text h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 6px;
  letter-spacing: 2px;
}
.feature-text p {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* === Footer === */
.footer {
  border-top: 1px solid rgba(184, 163, 217, 0.15);
  padding: 36px 0;
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 2px;
}
.footer .sig {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  color: var(--gold-soft);
  letter-spacing: 6px;
}

/* === Sub-page panel === */
.panel {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 60px auto 80px;
  padding: 56px 64px 64px;
  background: linear-gradient(180deg, rgba(247, 241, 230, 0.96) 0%, rgba(239, 229, 210, 0.96) 100%);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--text-dark);
  border: 1px solid rgba(212, 184, 92, 0.35);
}

.panel .back {
  display: inline-block;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: var(--text-card);
  text-decoration: none;
  margin-bottom: 28px;
  letter-spacing: 2px;
}
.panel .back:hover { color: var(--purple); }

.panel-title {
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 12px;
  margin-bottom: 8px;
  padding-left: 12px;
}
.panel-title-sub {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--purple);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.panel-lead {
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-card);
  margin-bottom: 36px;
  font-style: italic;
}

.divider-line {
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  margin: 28px 0;
  letter-spacing: 10px;
}

/* === Form === */
.form-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 24px;
}
.input-group { flex: 1 1 300px; }
.input-group label {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  color: var(--text-card);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(107, 79, 168, 0.35);
  border-radius: 6px;
  outline: none;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 184, 92, 0.2);
}

.btn-divine {
  display: block;
  width: 320px;
  margin: 28px auto 0;
  padding: 16px;
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--night-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 8px;
  box-shadow: 0 8px 24px rgba(212, 184, 92, 0.4);
  padding-left: 24px;
  transition: transform 0.18s;
}
.btn-divine:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-divine:active { transform: translateY(0); }

/* === Result === */
.result {
  margin-top: 40px;
  padding: 36px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(247, 241, 230, 0.5));
  border: 1px solid rgba(107, 79, 168, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 16px rgba(60, 35, 110, 0.1);
}
.result h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: 4px;
  padding-left: 4px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(107, 79, 168, 0.15);
}
.result-line .k { color: var(--purple); letter-spacing: 2px; font-size: 13px; }
.result-line .v { color: var(--text-dark); font-weight: 700; }
.result-text {
  margin-top: 18px;
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  line-height: 2;
  color: var(--text-card);
  text-indent: 1em;
}
.note {
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 12px;
  color: var(--purple);
  margin: 16px 0;
  letter-spacing: 2px;
  font-style: italic;
}

/* === Tarot === */
.tarot-deck {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.tarot-slot {
  width: 170px;
  height: 260px;
  perspective: 1200px;
  cursor: pointer;
}
.tarot-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.tarot-card.flipped { transform: rotateY(180deg); }
.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}
.tarot-back {
  background:
    radial-gradient(circle at 50% 50%, var(--night-mid) 0%, var(--night-deep) 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  font-size: 48px;
}
.tarot-back::after {
  content: "✦";
  position: absolute;
  font-size: 18px;
  color: var(--gold);
}
.tarot-front {
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse at 50% 30%, var(--ivory) 0%, var(--ivory-warm) 100%);
  border: 2px solid var(--gold);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: var(--text-dark);
}
.tarot-front .num {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 3px;
}
.tarot-front .glyph {
  font-size: 64px;
  color: var(--night);
  text-shadow: 0 0 10px rgba(212, 184, 92, 0.5);
  line-height: 1;
}
.tarot-front .name {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}
.tarot-front .reversed-tag {
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 3px;
  margin-top: 4px;
}
.tarot-slot-label {
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: var(--text-mid);
  letter-spacing: 4px;
  margin-top: 16px;
  padding-left: 4px;
}
.tarot-meaning {
  margin-top: 22px;
  padding: 16px 8px;
  border-top: 1px solid rgba(107, 79, 168, 0.2);
}
.tarot-meaning h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.tarot-meaning p {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-card);
}

/* === Zodiac grid === */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.zodiac-cell {
  text-align: center;
  padding: 16px 8px;
  border: 1px solid rgba(107, 79, 168, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
}
.zodiac-cell .sym { font-size: 26px; color: var(--night); }
.zodiac-cell .nm {
  font-family: 'Noto Serif KR', serif;
  font-size: 12px;
  color: var(--text-card);
  margin-top: 6px;
}

.hidden { display: none !important; }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 42px; }
  .services { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .moon-center { width: 110px; height: 110px; }
  .panel { margin: 30px 16px; padding: 40px 28px; }
  .panel-title { font-size: 32px; letter-spacing: 8px; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page { padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .tarot-slot { width: 110px; height: 170px; }
  .tarot-front .glyph { font-size: 44px; }
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================== */
/* === Upgraded Fortune Result Card (saju / zodiac)       === */
/* ========================================================== */
.fortune-card {
  margin-top: 40px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f1e6 55%, #efe5d2 100%);
  border: 1px solid rgba(212, 184, 92, 0.5);
  border-radius: 18px;
  box-shadow: 0 12px 44px rgba(20, 12, 50, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  animation: fcIn 0.6s ease;
}
@keyframes fcIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.fc-hero {
  position: relative;
  text-align: center;
  padding: 40px 24px 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(107, 79, 168, 0.28), transparent 72%),
    linear-gradient(180deg, #1a1340 0%, #2a1f5a 100%);
  color: var(--gold-soft);
}
.fc-medallion { width: 196px; height: 196px; margin: 0 auto 18px; position: relative; }
.fc-medallion img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; display: block; }
.fc-medallion.saju {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 241, 230, 0.96) 58%, rgba(230, 207, 140, 0.55) 100%);
  box-shadow: 0 0 0 4px rgba(212, 184, 92, 0.65), 0 0 40px rgba(212, 184, 92, 0.5);
  padding: 6px;
}
.fc-medallion.zodiac {
  border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(212, 184, 92, 0.7), 0 0 36px rgba(120, 90, 200, 0.6);
  overflow: hidden;
}
.fc-medallion.zodiac img { border-radius: 12px; }

.fc-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 30px; font-weight: 900; letter-spacing: 6px;
  color: #fff; margin-bottom: 5px;
}
.fc-sub { font-size: 13px; letter-spacing: 2px; color: var(--purple-soft); }

.fc-score { margin: 22px auto 2px; width: 100px; height: 100px; }
.fc-score-ring {
  width: 100px; height: 100px; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(212, 184, 92, 0.45);
}
.fc-score-inner {
  width: 78px; height: 78px; border-radius: 50%;
  background: #1a1340; display: grid; place-items: center; align-content: center; line-height: 1;
}
.fc-score-num { font-family: 'Cinzel', serif; font-size: 30px; font-weight: 700; color: var(--gold-soft); }
.fc-score-lab { font-size: 9px; letter-spacing: 2px; color: var(--purple-soft); margin-top: 4px; text-transform: uppercase; }

.fc-headline {
  font-family: 'Noto Serif KR', serif; font-size: 19px; font-weight: 700;
  color: var(--text-dark); text-align: center; line-height: 1.6;
  padding: 30px 32px 4px;
}
.fc-body {
  font-family: 'Noto Serif KR', serif; font-size: 15.5px; line-height: 2;
  color: var(--text-card); text-align: center; padding: 10px 36px 4px;
}

.fc-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 28px 6px; }
.fc-cat {
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(107, 79, 168, 0.18);
  border-radius: 12px; padding: 16px 14px; text-align: center;
}
.fc-cat-ic { font-size: 23px; display: block; margin-bottom: 7px; }
.fc-cat-k { display: block; font-size: 13px; letter-spacing: 2px; color: var(--purple); margin-bottom: 5px; }
.fc-cat-stars { display: block; color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.fc-cat-com { display: block; font-size: 12.5px; color: var(--text-card); margin-top: 6px; line-height: 1.5; }

.fc-luck { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 20px 28px 4px; }
.fc-chip {
  background: linear-gradient(180deg, #fff8e6, #f0e2b8);
  border: 1px solid rgba(212, 184, 92, 0.6); border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; color: var(--text-dark);
}
.fc-chip b { color: var(--purple); font-weight: 700; margin-right: 7px; letter-spacing: 1px; }

.fc-pillar {
  margin: 24px 28px 0; padding: 20px 22px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(107, 79, 168, 0.12), transparent 80%);
  border: 1px dashed rgba(212, 184, 92, 0.6); border-radius: 12px;
}
.fc-pillar-label { font-size: 12px; letter-spacing: 3px; color: var(--purple); margin-bottom: 7px; }
.fc-pillar-val { font-family: 'Noto Serif KR', serif; font-size: 23px; font-weight: 900; color: var(--text-dark); }
.fc-pillar-sub { font-size: 14px; color: var(--text-card); margin-top: 9px; line-height: 1.7; }

.fc-tip { margin: 22px 28px 0; padding: 16px 20px; background: rgba(212, 184, 92, 0.13); border-left: 3px solid var(--gold); border-radius: 8px; }
.fc-tip-title { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; font-size: 15px; }
.fc-tip-body { font-size: 14px; color: var(--text-card); line-height: 1.7; }

.fc-date { text-align: center; font-size: 12px; color: var(--purple); letter-spacing: 2px; font-style: italic; padding: 22px 0 30px; }

@media (max-width: 640px) {
  .fc-cats { grid-template-columns: 1fr; }
  .fc-medallion { width: 156px; height: 156px; }
  .fc-title { font-size: 25px; letter-spacing: 4px; }
  .fc-headline { font-size: 17px; padding: 24px 22px 4px; }
  .fc-body { padding: 10px 22px 4px; }
}

/* === Result card: larger type + long web body (2026-06-21) === */
.fc-title    { font-size: 34px; letter-spacing: 7px; }
.fc-sub      { font-size: 15px; }
.fc-score    { width: 112px; height: 112px; }
.fc-score-ring { width: 112px; height: 112px; }
.fc-score-inner { width: 86px; height: 86px; }
.fc-score-num { font-size: 34px; }
.fc-score-lab { font-size: 11px; }
.fc-headline { font-size: 23px; line-height: 1.65; padding-top: 34px; }
.fc-body     { font-size: 17.5px; line-height: 2.05; }
.fc-body-long {
  text-align: left;
  font-size: 17px;
  line-height: 2.1;
  padding: 18px 38px 8px;
  color: var(--text-card);
}
.fc-cat      { padding: 18px 16px; }
.fc-cat-ic   { font-size: 28px; }
.fc-cat-k    { font-size: 15.5px; }
.fc-cat-stars { font-size: 19px; }
.fc-cat-com  { font-size: 15px; margin-top: 7px; }
.fc-chip     { font-size: 16px; padding: 10px 20px; }
.fc-pillar-label { font-size: 14px; }
.fc-pillar-val   { font-size: 27px; }
.fc-pillar-sub   { font-size: 16.5px; }
.fc-tip-title { font-size: 17px; }
.fc-tip-body  { font-size: 16px; line-height: 1.85; }
.fc-date     { font-size: 13.5px; padding-bottom: 34px; }
@media (max-width: 640px) {
  .fc-title { font-size: 27px; }
  .fc-headline { font-size: 20px; }
  .fc-body { font-size: 16.5px; }
  .fc-body-long { font-size: 16.5px; padding: 16px 22px 8px; }
}
