/* =====================================================================
   ENHANCEMENTS · v2 (2026-09)
   - 히어로 CTA 위계 강화 (pulse + 소셜 티커 + 미니 리뷰)
   - 04↔05 시네마틱 인터루드 (풀블리드 命)
   - 오행 인터랙티브 (탭·자동순환·상생/상극 강조)
   ===================================================================== */

/* ============ 1. HERO — LIVE TICKER + PULSE ============ */

/* CTA 맥동 링 */
.cta-btn.cta-selfie{ position: relative; overflow: visible; }
.cta-pulse{
  position: absolute; inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(232,199,126,0.55);
  pointer-events: none;
  animation: ctaPulse 2.4s ease-out infinite;
  opacity: 0;
}
.cta-pulse::after{
  content:''; position: absolute; inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(232,199,126,0.35);
  animation: ctaPulse 2.4s ease-out infinite;
  animation-delay: 0.6s;
  opacity: 0;
}
@keyframes ctaPulse{
  0%   { transform: scale(0.96); opacity: 0.9; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.10); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .cta-pulse, .cta-pulse::after{ animation: none; opacity: 0; }
}

/* 실시간 티커 */
.live-ticker{
  margin: 14px auto 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,199,126,0.24);
  backdrop-filter: blur(6px);
  font-size: 13px; color: #EADFC4; letter-spacing: 0.2px;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
}
.lt-pulse{
  width: 8px; height: 8px; border-radius: 50%;
  background: #6BD98A; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(107,217,138,0.55);
  animation: dotPulse 1.6s ease-out infinite;
}
@keyframes dotPulse{
  0%   { box-shadow: 0 0 0 0 rgba(107,217,138,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(107,217,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,217,138,0); }
}
.lt-txt b{ color: #FBF7EC; font-weight: 700; font-variant-numeric: tabular-nums; }
.lt-sep{ margin: 0 6px; color: rgba(232,199,126,0.4); }
.lt-star{ color: #E8C77E; font-weight: 600; letter-spacing: 0; }
.lt-mute{ color: #9A8FB0; margin-left: 6px; font-size: 12px; }
@media (max-width: 480px){
  .live-ticker{ font-size: 12px; padding: 7px 12px 7px 10px; gap: 8px; }
  .lt-mute{ display: none; }
}

/* 히어로 미니 리뷰 스트립 */
.hero-reviews{
  margin: 18px -20px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hr-track{
  display: flex; gap: 10px;
  width: max-content;
  animation: hrScroll 32s linear infinite;
}
.hero-reviews:hover .hr-track{ animation-play-state: paused; }
@keyframes hrScroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .hr-track{ animation: none; }
}
.hr-card{
  flex: 0 0 auto;
  min-width: 220px; max-width: 260px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(232,199,126,0.16);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'Pretendard Variable', sans-serif;
}
.hr-stars{
  color: #E8C77E; font-size: 11px; letter-spacing: 1px;
}
.hr-body{
  color: #EADFC4; font-size: 13px; line-height: 1.4;
  margin: 0;
}
.hr-who{
  color: #9A8FB0; font-size: 11px; letter-spacing: 0.3px;
}

/* ============ 2. CINEMATIC INTERLUDE · 命 ============ */

.cinema-interlude{
  position: relative;
  min-height: 92vh;
  padding: 100px 24px;
  background:
    radial-gradient(ellipse at 50% 30%, #1a0f34 0%, #0A0614 55%, #050308 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
.ci-stars{
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, #E8C77E 100%, transparent),
    radial-gradient(1px 1px at 82% 15%, #FBF7EC 100%, transparent),
    radial-gradient(1.5px 1.5px at 65% 42%, #E8C77E 100%, transparent),
    radial-gradient(1px 1px at 28% 68%, #FBF7EC 100%, transparent),
    radial-gradient(1px 1px at 90% 75%, #E8C77E 100%, transparent),
    radial-gradient(1.5px 1.5px at 15% 88%, #FBF7EC 100%, transparent),
    radial-gradient(1px 1px at 45% 25%, #E8C77E 100%, transparent),
    radial-gradient(1px 1px at 72% 88%, #FBF7EC 100%, transparent);
  opacity: 0.5;
  animation: ciTwinkle 4s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes ciTwinkle{
  from{ opacity: 0.35; }
  to  { opacity: 0.75; }
}
.ci-vignette{
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,6,20,0.6) 80%, rgba(5,3,8,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}
.ci-orbit{
  position: absolute;
  top: 50%; left: 50%;
  width: min(120vw, 900px);
  height: min(120vw, 900px);
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: ciOrbit 60s linear infinite;
  opacity: 0.8;
}
@keyframes ciOrbit{
  from{ transform: translate(-50%,-50%) rotate(0); }
  to  { transform: translate(-50%,-50%) rotate(360deg); }
}
.ci-center{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.ci-eyebrow{
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Noto Serif KR', serif;
  font-size: 13px; letter-spacing: 8px;
  color: #E8C77E;
  opacity: 0.75;
  margin-bottom: 28px;
  text-transform: none;
}
.ci-tick{
  width: 28px; height: 1px;
  background: linear-gradient(to right, transparent, #E8C77E, transparent);
}
.ci-hanja{
  font-family: 'Noto Serif TC', 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: clamp(180px, 32vw, 340px);
  line-height: 0.95;
  color: #FBF7EC;
  margin: 0 0 20px;
  text-shadow:
    0 0 40px rgba(232,199,126,0.35),
    0 0 80px rgba(179,58,58,0.18);
  background: linear-gradient(180deg, #FBF7EC 0%, #E8C77E 55%, #B8893D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ciHanjaIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  letter-spacing: -8px;
}
@keyframes ciHanjaIn{
  from{ opacity: 0; transform: scale(0.85); filter: blur(8px); }
  to  { opacity: 1; transform: scale(1);    filter: blur(0); }
}
.ci-headline{
  font-family: 'Fraunces', 'Noto Serif KR', serif;
  font-weight: 500;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.4;
  color: #FBF7EC;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.ci-headline em{
  font-style: italic;
  font-weight: 600;
  color: #E8C77E;
  background: linear-gradient(180deg, #F4E5B8, #E8C77E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ci-sub{
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 15px; line-height: 1.7;
  color: #C7BCD9;
  margin: 0 0 40px;
}
.ci-sub-mute{ color: #8B7FA6; font-size: 14px; }

.ci-eight{
  display: inline-flex;
  gap: 6px;
  padding: 14px 22px;
  border-top: 1px solid rgba(232,199,126,0.2);
  border-bottom: 1px solid rgba(232,199,126,0.2);
  background: rgba(232,199,126,0.03);
}
.ci-g{
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 22px;
  color: #E8C77E;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232,199,126,0.2);
  border-radius: 3px;
  background: rgba(10,6,20,0.4);
  opacity: 0;
  animation: ciGlyphIn 0.6s ease-out both;
  animation-delay: calc(1s + var(--d));
}
@keyframes ciGlyphIn{
  from{ opacity: 0; transform: translateY(8px); }
  to  { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px){
  .cinema-interlude{ padding: 80px 16px; min-height: 80vh; }
  .ci-eight{ padding: 10px 12px; gap: 4px; }
  .ci-g{ width: 28px; height: 28px; font-size: 18px; }
  .ci-eyebrow{ letter-spacing: 5px; font-size: 12px; }
}

/* ============ 3. WU-XING INTERACTIVE ============ */

.wu-xing--interactive{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 8px;
}
@media (min-width: 720px){
  .wu-xing--interactive{
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
  }
}
.wx-stage{
  position: relative;
}
.wu-xing--interactive .wu-xing-svg{
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: block;
}
.wx-node{
  cursor: pointer;
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wx-node:hover,
.wx-node:focus-visible{ outline: none; }
.wx-node:hover .wx-halo,
.wx-node:focus-visible .wx-halo,
.wx-node.is-active .wx-halo{
  opacity: 0.35 !important;
  animation: wxHalo 1.4s ease-out infinite;
}
@keyframes wxHalo{
  0%   { opacity: 0.4; r: 30; }
  100% { opacity: 0;   r: 46; }
}
.wx-node.is-active .wx-circle{
  filter: drop-shadow(0 0 12px currentColor);
}
.wx-node.is-dim{
  opacity: 0.35;
  transition: opacity 0.4s;
}

/* 상생 호 강조 */
.wx-sheng-arc{
  transition: opacity 0.35s, stroke-width 0.35s, stroke 0.35s;
}
.wx-sheng-arc.is-glow{
  stroke: #E8C77E;
  stroke-width: 2.6;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(232,199,126,0.75));
  stroke-dasharray: 200;
  animation: wxShengFlow 1.4s linear infinite;
}
@keyframes wxShengFlow{
  from{ stroke-dashoffset: 200; }
  to  { stroke-dashoffset: 0; }
}
.wx-sheng-arc.is-dim{ opacity: 0.15; }

/* 상극 선 강조 */
.wx-keg-line{
  transition: opacity 0.35s, stroke-width 0.35s;
}
.wx-keg-line.is-glow{
  opacity: 0.85;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(179,58,58,0.7));
  animation: wxKegShake 0.4s ease-in-out 2;
}
@keyframes wxKegShake{
  0%,100%{ stroke-dashoffset: 0; }
  50%    { stroke-dashoffset: 6; }
}

/* 힌트 바 */
.wx-hint{
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 12.5px;
  color: rgba(251,247,236,0.65);
}
.wx-hint-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: #E8C77E;
  animation: dotBlink 1.4s ease-in-out infinite;
}
@keyframes dotBlink{
  0%,100%{ opacity: 0.3; }
  50%    { opacity: 1; }
}
.wx-hint-txt b{ color: #E8C77E; font-weight: 600; }
.wx-auto-btn{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(232,199,126,0.08);
  border: 1px solid rgba(232,199,126,0.25);
  border-radius: 999px;
  color: #E8C77E;
  font-family: inherit; font-size: 11px; letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}
.wx-auto-btn:hover{ background: rgba(232,199,126,0.15); }
.wx-auto-btn[aria-pressed="false"]{
  color: rgba(232,199,126,0.5);
}
.wx-auto-btn[aria-pressed="false"] .wx-auto-dot{ background: rgba(232,199,126,0.35); animation: none; }
.wx-auto-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: #6BD98A;
  animation: dotBlink 1.4s ease-in-out infinite;
}

/* 우측 설명 패널 */
.wx-panel{
  position: relative;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(232,199,126,0.05), rgba(232,199,126,0.015));
  border: 1px solid rgba(232,199,126,0.2);
  border-radius: 8px;
  min-height: 240px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.wx-panel::before{
  content:''; position: absolute; inset: 0;
  background: var(--wx-panel-tint, transparent);
  opacity: 0.08;
  transition: background 0.5s;
  pointer-events: none;
}
.wx-panel[data-el="wood"]  { --wx-panel-tint: #3F7D4F; }
.wx-panel[data-el="fire"]  { --wx-panel-tint: #B33A3A; }
.wx-panel[data-el="earth"] { --wx-panel-tint: #B08050; }
.wx-panel[data-el="metal"] { --wx-panel-tint: #8B8677; }
.wx-panel[data-el="water"] { --wx-panel-tint: #25324D; }

.wx-panel-head{
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(232,199,126,0.2);
  position: relative;
}
.wx-p-han{
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--wx-panel-tint, #E8C77E);
  min-width: 60px; text-align: center;
  text-shadow: 0 0 20px color-mix(in oklab, var(--wx-panel-tint) 40%, transparent);
  transition: color 0.4s, text-shadow 0.4s;
}
.wx-p-title{
  display: flex; flex-direction: column; gap: 2px;
}
.wx-p-name{
  font-family: 'Noto Serif KR', serif;
  font-weight: 700; font-size: 18px;
  color: #FBF7EC;
}
.wx-p-name em{
  font-style: normal; font-weight: 400;
  color: rgba(251,247,236,0.4);
  font-size: 12px; letter-spacing: 2px;
  margin-left: 4px;
}
.wx-p-arch{
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  color: rgba(232,199,126,0.75);
}
.wx-panel-body{ position: relative; }
.wx-p-desc{
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px; line-height: 1.65;
  color: #D9CFEB;
  margin: 0 0 18px;
}
.wx-flow{
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  background: rgba(10,6,20,0.3);
  border-radius: 6px;
  border: 1px solid rgba(232,199,126,0.1);
}
.wx-flow-row{
  display: flex; align-items: center; gap: 12px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
}
.wx-flow-lb{
  font-family: 'Noto Serif TC', serif;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  min-width: 44px; text-align: center;
  font-weight: 600;
}
.wx-flow-sheng .wx-flow-lb{
  color: #6BD98A;
  background: rgba(107,217,138,0.1);
  border: 1px solid rgba(107,217,138,0.3);
}
.wx-flow-keg .wx-flow-lb{
  color: #E88B8B;
  background: rgba(179,58,58,0.1);
  border: 1px solid rgba(179,58,58,0.3);
}
.wx-flow-txt{ color: #EADFC4; }
.wx-flow-txt b{
  font-family: 'Noto Serif TC', serif;
  color: #E8C77E;
  font-weight: 700;
  margin: 0 2px;
}
.wx-caption{
  text-align: center;
  margin-top: 20px !important;
}

/* 패널 전환 애니 */
.wx-panel.is-flip .wx-p-han,
.wx-panel.is-flip .wx-p-name,
.wx-panel.is-flip .wx-p-arch,
.wx-panel.is-flip .wx-p-desc,
.wx-panel.is-flip .wx-flow{
  animation: wxPanelIn 0.5s ease-out both;
}
@keyframes wxPanelIn{
  from{ opacity: 0; transform: translateY(6px); }
  to  { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px){
  .wx-panel{ padding: 18px 16px; min-height: 0; }
  .wx-p-han{ font-size: 44px; min-width: 48px; }
  .wx-p-name{ font-size: 16px; }
}
