/* =========================================================================
   자시(子時)의 신당 — 어드벤처/비주얼노벨 게이트 v3 스타일
   입장 애니메이션 · 잿불 파티클 · 타자기 대화창 · 아이들 카메라
   ========================================================================= */

:root {
  --g-bg: #000000;
  --g-red: #d81f2a;
  --g-red-bright: #f0323f;
  --g-red-deep: #8f141c;
  --g-sans: 'Gowun Batang', 'Noto Serif KR', serif;
  --g-serif: 'Gowun Batang', 'Noto Serif KR', serif;
}

#gateRoot {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0;
  margin-inline: auto;
  width: 100%; max-width: 480px;   /* 모바일 프레임: 데스크톱에선 가운데 480 컬럼 */
  z-index: 9990;
  background: var(--g-bg);
  font-family: var(--g-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 0 100vmax #000;  /* 컬럼 바깥은 검정으로 */
}
#gateRoot.gate-closing { opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
#gateRoot.gate-sting { animation: rootShake 0.55s ease; }
@keyframes rootShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}

/* ---------- 배경 (2겹 크로스페이드 + 살아있는 카메라) ---------- */
.gate-bg {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center 18%;
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 0.34s ease;
  will-change: transform, opacity, filter;
}
.gate-bg.on { opacity: 1; }
.gate-bg.is-blur { filter: brightness(0.5) blur(15px); transform: scale(1.16); }

/* 대화 중: 미세하게 숨쉬는 카메라 (영상 느낌) */
#gateRoot.gate-alive .gate-bg.on:not(.is-blur) {
  animation: gateKenburns 17s ease-in-out infinite;
}
@keyframes gateKenburns {
  0%, 100% { transform: scale(1.12) translateY(0); }
  50% { transform: scale(1.17) translateY(-1.1%); }
}

/* 입장 애니메이션: 어둠 속에서 신당 안으로 들어선다 */
#gateRoot.gate-entering .gate-bg.on {
  animation: gateDollyIn 2.05s cubic-bezier(0.2, 0.65, 0.25, 1) forwards;
}
@keyframes gateDollyIn {
  0% { transform: scale(1.0); filter: brightness(0.16) blur(5px); }
  55% { filter: brightness(0.5) blur(1.5px); }
  100% { transform: scale(1.12); filter: brightness(0.92) blur(0); }
}

/* 영상 레이어 (랜딩 캐릭터 · 인트로 · 의식) */
.gate-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
  background: #000;
}
.gate-video.on { opacity: 1; }
.gate-video.is-blur { filter: brightness(0.5) blur(14px); }
/* 입장(entering) 전용 영상 — 랜딩 위에 겹쳐 페이드인 → 풀재생.
   영상 자체에 카메라 푸시인이 있으므로 CSS 돌리인은 걸지 않는다(이중 줌·스톨 방지). */
.gate-video-intro { z-index: 2; }
/* 영상 → 이미지 전환: 길고 완만한 페이드아웃 (입장영상·스텝영상 공통) */
.gate-video.fadeslow, .gate-video-intro.fadeslow { transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
/* 입장영상 로딩 인디케이터 — 재생이 실제로 붙기 전 버퍼링 동안만 표시 */
.gate-vload { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.gate-vload.on { opacity: 1; }
.gate-vload .wt-loading-orb { width: 52px; height: 52px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55)); }

/* 처음 진입: 화면 눌러 소리 켜기 안내 */
.gate-soundhint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 20; display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 28px; border-radius: 999px;
  background: rgba(10, 7, 9, 0.42); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border: 1.5px solid rgba(240, 50, 63, 0.34);
  color: #fff; font-family: var(--g-sans);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(240, 50, 63, 0.06), 0 0 22px rgba(240, 50, 63, 0.22);
  animation: gshFloat 2.1s ease-in-out infinite;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.gate-soundhint svg { width: 22px; height: 22px; color: rgba(245, 70, 82, 1); filter: drop-shadow(0 0 6px rgba(240, 50, 63, 0.5)); }
.gate-soundhint.gone { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
.gate-soundhint-pulse { animation: gate-sh-pulse 1.9s ease-in-out infinite; }
@keyframes gate-sh-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 50, 63, 0.34); } 50% { box-shadow: 0 0 0 9px rgba(240, 50, 63, 0); } }
.gate-soundhint.gone.gate-soundhint-pulse { animation: none; }
#gateRoot.gate-sound-on .gate-soundhint,
#gateRoot.gate-launch .gate-soundhint,
#gateRoot.gate-ritual .gate-soundhint { display: none !important; opacity: 0 !important; pointer-events: none; }
@keyframes gshFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, calc(-50% - 4px)) scale(1.03); opacity: 1; }
}

/* 사운드 버튼 — 무채색 · 세련된 글라스 */
.gate-sound {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer; pointer-events: auto;
  transition: background .2s, border-color .2s, transform .12s, color .2s;
}
.gate-sound svg { width: 20px; height: 20px; }
.gate-sound .ic-on { display: none; }
#gateRoot.gate-sound-on .gate-sound .ic-off { display: none; }
#gateRoot.gate-sound-on .gate-sound .ic-on { display: block; }
#gateRoot.gate-sound-on .gate-sound { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.gate-sound:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.gate-sound:active { transform: translateY(-50%) scale(0.9); }

/* 상단 로고 — 홈페이지와 동일한 폰트 */
.gate-logo, .gate-logo:link, .gate-logo:visited, .gate-logo:hover, .gate-logo * { text-decoration: none !important; }
.gate-logo { font-family: var(--g-serif) !important; font-weight: 700; letter-spacing: 0.5px; display: inline-flex; align-items: baseline; gap: 5px; color: inherit; cursor: pointer; }
.gate-logo-han {
  font-family: var(--g-serif); font-weight: 700; font-size: 14px; letter-spacing: 1px;
  color: var(--g-red-bright); text-shadow: 0 0 14px rgba(216, 31, 42, 0.4);
}

.gate-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(85% 48% at 50% 104%, rgba(120, 10, 16, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.5) 0%, rgba(6, 6, 8, 0.02) 22%, rgba(6, 6, 8, 0.1) 46%, rgba(6, 6, 8, 0.72) 74%, rgba(6, 6, 8, 0.96) 100%);
}
#gateRoot.gate-ritual .gate-shade { animation: gateRitualPulse 1.6s ease-in-out infinite; }
@keyframes gateRitualPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

.gate-embers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gate-veil {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: #000; opacity: 0;
}
#gateRoot.gate-entering .gate-veil { animation: gateVeil 2s ease forwards; }
@keyframes gateVeil { 0% { opacity: 1; } 55% { opacity: 0.4; } 100% { opacity: 0; } }
.gate-flash {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%, rgba(216, 31, 42, 0.5), transparent 68%);
}
#gateRoot.gate-sting .gate-flash { animation: gateFlash 0.6s ease; }
@keyframes gateFlash { 0% { opacity: 0; } 14% { opacity: 0.85; } 100% { opacity: 0; } }

/* ---------- 상단 바 ---------- */
.gate-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  height: 58px; padding-top: env(safe-area-inset-top, 0px);
}
.gate-back {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; background: transparent; border: none; cursor: pointer;
}
.gate-back svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8)); }
.gate-logo {
  font-family: var(--g-sans);
  font-size: 16px; font-weight: 900; letter-spacing: 0.5px;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
/* 데스크탑 리딩화면: 본문이 480px 중앙 컬럼이므로 헤더 컨트롤(뒤로가기·사운드)도 컬럼 가장자리로 모은다 */
@media (min-width: 720px) {
  #gateRoot.gate-result-mode .gate-back { left: calc(50% - 240px + 6px); }
  #gateRoot.gate-result-mode .gate-sound { right: calc(50% - 240px + 6px); }
}

/* ---------- 랜딩 하단 (입장 전) ---------- */
.gate-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 9;
  /* 하단 여유를 넉넉히 — 모바일 브라우저 하단 툴바에 CTA가 가려 세로로 잘리는 것 방지 */
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 60px);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  transition: opacity 0.55s ease;
}
#gateRoot.gate-launch .gate-bottom { opacity: 0; pointer-events: none; }
.gate-role {
  color: var(--g-red-bright);
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(240, 50, 63, 0.5);
}
.gate-name {
  font-family: var(--g-serif);
  font-size: 42px; font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: 1px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.85);
  margin: -6px 0 2px;
}
.gate-bubble {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #f2f2f5; font-size: 13.5px; font-weight: 600;
  animation: gateBubble 3.2s ease-in-out infinite;
}
.gate-bubble.on { animation: none; }
@keyframes gateBubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.gate-cta {
  position: relative;
  width: 100%; max-width: 420px; height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(240, 90, 100, 0.5);
  background:
    radial-gradient(120% 160% at 50% 115%, rgba(216, 31, 42, 0.38), transparent 55%),
    linear-gradient(180deg, #34090e 0%, #1c0608 60%, #120405 100%);
  color: #fff; font-family: var(--g-serif);
  font-size: 20px; font-weight: 700; letter-spacing: 2.5px; cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(216, 31, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: gateCtaGlow 3s ease-in-out infinite;
  overflow: hidden;
}
.gate-cta::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid rgba(240, 90, 100, 0.4); border-radius: 13px;
  pointer-events: none;
}
/* 상단 하이라이트 — 촛불이 스치는 결 */
.gate-cta::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 195, 0.55), transparent);
  pointer-events: none;
}
.gate-cta:active { transform: scale(0.97); animation: none; }
.gate-offer-note {
  margin: -7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.gate-revisit {
  width: 100%; max-width: 420px;
}
.gate-revisit[hidden] { display: none; }
.gate-revisit-link {
  width: 100%; min-height: 56px; padding: 9px 12px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; align-items: center; gap: 10px;
  color: #f5f1ef; text-align: left; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px;
  background: rgba(7, 7, 9, 0.76);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.gate-revisit-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(226, 82, 91, 0.45); border-radius: 50%;
  color: #f28b91; font-family: var(--g-serif); font-size: 15px;
}
.gate-revisit-link span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.gate-revisit-link b { font-family: var(--g-serif); font-size: 14px; letter-spacing: 0; }
.gate-revisit-link small { color: rgba(255, 255, 255, 0.58); font-size: 11px; letter-spacing: 0; }
.gate-revisit-link svg { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.58); }
/* 숨쉬기 — 글로우와 함께 아주 살짝 부풀었다 가라앉는다 */
@keyframes gateCtaGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(216, 31, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(240, 90, 100, 0.42);
  }
  50% {
    transform: scale(1.014);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 34px rgba(216, 31, 42, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 120, 130, 0.7);
  }
}

/* =========================================================================
   스테이지 / 비주얼노벨 대화창
   ========================================================================= */
.gate-stage { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.gate-stage > * { pointer-events: auto; }

.vn { position: absolute; inset: 0; display: flex; align-items: flex-end; cursor: pointer; }
.vn-box {
  position: relative; width: 100%;
  padding: 26px 22px calc(env(safe-area-inset-bottom, 0px) + 26px);
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.5) 24%, rgba(5, 5, 7, 0.93) 62%);
  min-height: 210px;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.vn-box.on { opacity: 1; transform: none; }
.vn-name {
  display: inline-block; margin-bottom: 12px; padding: 6px 16px;
  background: var(--g-red); color: #fff;
  font-family: var(--g-sans); font-weight: 800; font-size: 14px; letter-spacing: 1px;
  border-radius: 9px 9px 9px 0;
  box-shadow: 0 4px 16px rgba(216, 31, 42, 0.42);
}
.vn-text {
  font-family: var(--g-serif);
  font-size: 19px; line-height: 1.72; color: #fff;
  white-space: pre-line; word-break: keep-all;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
  min-height: 58px;
}
.vn-narr .vn-text { font-style: italic; color: #eaeaee; }
.vn-next {
  position: absolute; right: 22px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  color: var(--g-red-bright); font-size: 15px; opacity: 0;
  animation: vnBlink 1.1s steps(2, jump-none) infinite;
}
.vn-next.on { opacity: 1; }
@keyframes vnBlink { 50% { opacity: 0.15; } }

.vn-choices { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.vn-choice {
  width: 100%; min-height: 54px; padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 14, 18, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-family: var(--g-sans);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-align: left;
  cursor: pointer;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s, border-color 0.2s;
}
.vn-choice { position: relative; padding-right: 44px; }
.vn-choice.on { opacity: 1; transform: none; animation: vnChoicePulse 2.6s ease-in-out 0.4s infinite; }
.vn-choice::after {
  content: '›'; position: absolute; right: 16px; top: 50%;
  transform: translateY(-52%);
  font-size: 21px; font-weight: 400; color: rgba(255, 125, 133, 0.9);
  animation: vnArrowNudge 1.6s ease-in-out infinite;
}
/* hover 취소는 진짜 hover 기기에서만 (터치의 sticky hover가 애니메이션을 죽이지 않게) */
@media (hover: hover) {
  .vn-choice:hover { background: rgba(216, 31, 42, 0.24); border-color: var(--g-red); animation: none; }
  .vn-choice:hover::after { transform: translateY(-52%) translateX(3px); animation: none; }
}
.vn-choice:active { transform: scale(0.97); }
/* VN 선택지 라인 아이콘 (이모지 대체) */
.vn-choice.has-ic { display: flex; align-items: center; gap: 11px; }
.vn-ic { flex: 0 0 auto; width: 22px; height: 22px; display: inline-flex; opacity: 0.82; }
.vn-ic svg { width: 100%; height: 100%; display: block; color: rgba(255, 210, 180, 0.92); }
@media (hover: hover) { .vn-choice:hover .vn-ic svg { color: #fff; } }
/* 심플: 테두리만 은은하게 숨쉬기 */
@keyframes vnChoicePulse {
  0%, 100% { border-color: rgba(255, 255, 255, 0.28); }
  50% { border-color: rgba(240, 90, 100, 0.75); }
}
@keyframes vnArrowNudge {
  0%, 100% { transform: translateY(-52%) translateX(0); opacity: 0.55; }
  50% { transform: translateY(-52%) translateX(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wt-marq-track, .wt-sticky { animation: none !important; }
}
.vn-go { text-align: center; opacity: 0; pointer-events: none; }
.vn-go.on { opacity: 1; pointer-events: auto; }
/* 꿈 해몽: 버튼을 숨기지 않고 흐리게 항상 노출(조건 미충족 시), 활성화되면 .on으로 살아난다 */
.vn-go.gate-dream-go:not(.on) { opacity: .4; pointer-events: none; animation: none; }
.gate-dream-hint { min-height: 16px; margin: 2px 0 0; text-align: center; font-size: 12.5px; color: rgba(170,139,229,.9); }

/* ---------- 입력 씬 (대화창 안) ---------- */
/* 필드가 많은 입력 씬(상대 궁합 등)은 하단 고정 박스가 뷰포트를 넘길 수 있다 → 내부 스크롤로 확인 버튼까지 항상 닿게 */
.vn-box.vn-input { max-height: calc(100% - 8px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.vn-box.vn-input::-webkit-scrollbar { width: 0; }
.vn-input .vn-text { font-family: var(--g-sans); font-style: normal; font-weight: 800; font-size: 23px; letter-spacing: -0.02em; margin-bottom: 16px; }
.gate-input-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gate-date {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-family: var(--g-sans); font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 0.5px;
  padding: 6px 0; border-bottom: 2px solid rgba(255, 255, 255, 0.25); border-radius: 0;
  transition: border-color 0.3s;
}
.gate-date:focus { border-bottom-color: var(--g-red-bright); }
.gate-date::placeholder { color: rgba(255, 255, 255, 0.28); }
/* 상대 생시 등 select — 드롭다운 목록이 항상 읽히게 (다크 팝업 + 명시적 옵션 색) */
select.gate-date {
  font-size: 17px; font-weight: 600; color: #f2f2f6;
  color-scheme: dark; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
  padding-right: 24px;
}
select.gate-date option { color: #f2f2f6; background: #17171c; }

/* ---------- 사진 입력 씬 (클라이언트 전용) ---------- */
.gate-photo-drop { display: flex; align-items: center; justify-content: center; position: relative;
  width: 100%; min-height: 180px; margin: 6px 0 12px; border-radius: 16px; cursor: pointer;
  border: 2px dashed rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); overflow: hidden; transition: border-color .25s, background .25s; }
.gate-photo-drop:hover { border-color: var(--g-red-bright); background: rgba(255,255,255,0.08); }
.gate-photo-ph { font-family: var(--g-sans); font-weight: 700; font-size: 16px; color: rgba(255,255,255,0.7); }
.gate-photo-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-photo-note { font-size: 12.5px; color: rgba(255,255,255,0.6); text-align: center; margin: 0 0 14px; line-height: 1.5; }
.gate-dream-in {
  width: 100%; box-sizing: border-box; margin: 4px 0 12px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05); color: #f2f2f5;
  min-height: 154px; max-height: 34vh; font-family: var(--g-sans); font-size: 15px; line-height: 1.7; resize: vertical; outline: none;
  transition: border-color 0.15s;
}
.gate-dream-in::placeholder { color: rgba(255, 255, 255, 0.35); }
.gate-dream-in:focus { border-color: var(--g-red-bright); }
.gate-dream-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 1px 9px;
  color: rgba(255,255,255,.62); font-family: var(--g-sans); font-size: 12px; }
.gate-dream-count { color: rgba(255,255,255,.4); font-weight: 600; }
.gate-dream-feelings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 13px; }
.gate-dream-feeling { min-height: 38px; padding: 7px 5px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px;
  background: rgba(255,255,255,.045); color: rgba(255,255,255,.7); font-family: var(--g-sans); font-size: 12px; cursor: pointer; }
.gate-dream-feeling.active { border-color: rgba(170,139,229,.8); background: rgba(112,76,177,.28); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(210,190,255,.12), 0 0 18px rgba(96,59,166,.22); }
@media (max-width: 480px) {
  .gate-dream-feelings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate-dream-in { min-height: 132px; max-height: 27vh; }
}
.gate-photo-note b { color: rgba(255,255,255,0.85); }
/* 촬영 / 앨범 선택 버튼 (폰) */
.gate-photo-pick { display: flex; gap: 9px; margin: 12px 0 10px; }
.gate-photo-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 48px; border-radius: 12px; cursor: pointer;
  font-family: var(--g-sans); font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.22);
}
.gate-photo-btn span { font-size: 17px; }
.gate-photo-shoot { background: rgba(216, 31, 42, 0.18); border-color: rgba(240, 50, 63, 0.5); }
.gate-photo-btn:active { transform: scale(0.97); }
/* 사진 종류 검증 상태 */
.gate-photo-verify { display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 10px 0 4px; padding: 10px 12px; border-radius: 11px; text-align: center;
  font-family: var(--g-sans); font-size: 13px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.gate-photo-verify.checking { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); }
.gate-photo-verify.ok { color: #9be7b0; background: rgba(60, 190, 110, 0.12); border: 1px solid rgba(60, 190, 110, 0.35); }
.gate-photo-verify.bad { color: #ffb0b6; background: rgba(240, 50, 63, 0.12); border: 1px solid rgba(240, 50, 63, 0.4); }
.gate-photo-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: wtOrb 0.9s linear infinite; display: inline-block; }
.gate-photo-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.gate-photo-skip { background: none; border: 0; color: rgba(255,255,255,0.5); font-size: 13px; cursor: pointer; padding: 4px; }
.gate-pgender { margin-top: 14px; }
.gate-pills { display: flex; gap: 8px; flex: none; }
.gate-pill {
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75); font-family: var(--g-sans);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(6px); transition: all 0.2s;
}
.gate-pill.active { background: #fff; color: #111; border-color: #fff; }
.gate-pills-big { width: 100%; margin-bottom: 4px; }
.gate-pills-big .gate-pill { flex: 1; height: 60px; font-size: 17px; font-weight: 800; }
.gate-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.gate-hour {
  height: 46px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(6px); color: rgba(255, 255, 255, 0.75);
  font-family: var(--g-sans); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all 0.18s;
}
.gate-hour.active { background: var(--g-red); color: #fff; border-color: var(--g-red-bright); box-shadow: 0 4px 16px rgba(216, 31, 42, 0.4); }

/* ---------- 의식 연출 ---------- */
.gate-scene {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 24px calc(env(safe-area-inset-bottom, 0px) + 40px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.gate-scene.on { opacity: 1; transform: none; }
.gate-bell {
  font-size: 46px; line-height: 1;
  filter: drop-shadow(0 0 18px rgba(216, 31, 42, 0.7));
  animation: gateBell 0.9s ease-in-out infinite; transform-origin: top center; margin-bottom: 4px;
}
@keyframes gateBell { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.gate-line {
  font-family: var(--g-serif); font-size: 20px; line-height: 1.7; color: #efeff3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); white-space: pre-line; word-break: keep-all;
  opacity: 0; transform: translateY(12px);
}
.gate-line.on { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s ease; }

.gate-oracle { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-oracle-panel { width: min(520px, 100%); text-align: center; }
.gate-oracle-kicker { margin: 0 0 8px; color: var(--g-red-bright); font-family: var(--g-sans); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.gate-oracle h2 { margin: 0; font-family: var(--g-serif); font-size: clamp(24px, 7vw, 38px); line-height: 1.25; text-shadow: 0 3px 22px rgba(0,0,0,.8); }
.gate-oracle-note { margin: 12px auto 20px; max-width: 360px; color: rgba(255,255,255,.72); font-family: var(--g-sans); font-size: 14px; line-height: 1.6; }
.gate-oracle-object { position: relative; min-height: 124px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 18px; }

/* 카드·룬·화투: 사용자가 직접 세 장을 고르는 공통 선택 의식 */
.gate-oracle-pick { align-items: flex-start; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 68px) 14px calc(env(safe-area-inset-bottom, 0px) + 28px); background: radial-gradient(85% 42% at 50% 34%, rgba(216,31,42,.1), transparent 70%), linear-gradient(180deg, rgba(9,9,11,.9), #000 76%); scrollbar-width: none; }
.gate-oracle-pick::-webkit-scrollbar { display: none; }
.gate-oracle-pick .gate-oracle-panel { max-width: 430px; }
.gate-oracle-pick .gate-oracle-kicker { margin-bottom: 5px; color: var(--g-red-bright); font-size: 10px; letter-spacing: .14em; }
.gate-oracle-pick h2 { color: #fff; font-size: clamp(24px, 6.8vw, 32px); }
.gate-oracle-pick .gate-oracle-note { margin: 6px auto 12px; color: rgba(255,255,255,.58); font-size: 12px; }
.gate-pick-progress { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 auto 10px; color: rgba(255,255,255,.36); font: 800 10px/1 var(--g-sans); }
.gate-pick-progress i { width: 30px; height: 1px; background: rgba(255,255,255,.14); }
.gate-pick-progress span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.gate-pick-progress span.is-current { color: #fff; border-color: var(--g-red-bright); box-shadow: 0 0 14px rgba(216,31,42,.3); }
.gate-pick-progress span.is-done { color: #fff; background: var(--g-red); border-color: var(--g-red); }
.gate-hidden-deck { display: grid; grid-template-columns: repeat(5, minmax(0, 58px)); justify-content: center; gap: 7px; width: 100%; margin: 0 auto 14px; perspective: 900px; }
.gate-hidden-card { width: 100%; aspect-ratio: 9 / 14; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; perspective: 500px; transition: transform .18s ease, opacity .25s ease; }
.gate-hidden-card > span { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; background: linear-gradient(145deg, #252529, #080809 68%); color: rgba(255,255,255,.76); box-shadow: 0 8px 18px rgba(0,0,0,.48), inset 0 0 0 4px #0d0d0f, inset 0 0 0 5px rgba(240,50,63,.3); transition: transform .5s cubic-bezier(.2,.75,.2,1), filter .2s; }
.gate-hidden-card > span::before, .gate-hidden-card > span::after { content: ''; position: absolute; width: 68%; aspect-ratio: 1; border: 1px solid rgba(240,50,63,.3); transform: rotate(45deg); }
.gate-hidden-card > span::after { width: 38%; border-color: rgba(255,255,255,.18); }
.gate-hidden-card b { position: relative; z-index: 1; font: 700 clamp(16px, 5vw, 23px)/1 var(--g-serif); text-shadow: 0 0 12px rgba(240,50,63,.5); }
.gate-hidden-card i { position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.07); }
.gate-hidden-card:hover { transform: translateY(-5px); }
.gate-hidden-card:focus-visible { outline: 2px solid #ff6973; outline-offset: 3px; }
.gate-hidden-card.is-picked { opacity: .12; transform: scale(.9); pointer-events: none; }
.gate-pick-tarot .gate-hidden-card > span { border-color: rgba(221,184,111,.52); background: radial-gradient(circle at 50% 42%, rgba(114,35,54,.28), transparent 38%), linear-gradient(145deg, #17131c, #050507 72%); color: #e8c780; box-shadow: 0 8px 20px rgba(0,0,0,.58), inset 0 0 0 3px #09080b, inset 0 0 0 4px rgba(221,184,111,.38), inset 0 0 24px rgba(126,36,56,.18); }
.gate-pick-tarot .gate-hidden-card > span::before { width: 62%; border-color: rgba(221,184,111,.5); transform: rotate(45deg); }
.gate-pick-tarot .gate-hidden-card > span::after { width: 34%; border-color: rgba(240,50,63,.42); transform: rotate(45deg); }
.gate-pick-tarot .gate-hidden-card b { color: #f0d394; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(20px, 6vw, 29px); text-shadow: 0 0 13px rgba(222,183,102,.5); }
.gate-pick-tarot .gate-hidden-card i { border-color: rgba(221,184,111,.15); }
.gate-picked-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 360px); margin: 0 auto 8px; }
.gate-picked-slot { position: relative; display: grid; grid-template-rows: auto 1fr auto; place-items: center; min-height: 126px; padding: 9px 4px 8px; overflow: hidden; border: 1px dashed rgba(255,255,255,.16); border-radius: 5px; background: rgba(255,255,255,.018); color: rgba(255,255,255,.28); font-family: var(--g-sans); }
.gate-picked-slot > span { font: 800 10px/1 var(--g-sans); letter-spacing: .05em; }
.gate-picked-slot > em { align-self: end; font: 700 10px/1.2 var(--g-sans); color: inherit; font-style: normal; white-space: nowrap; }
.gate-picked-slot.is-open { grid-template-rows: auto 1fr auto auto auto; border-style: solid; border-color: rgba(240,50,63,.42); background: linear-gradient(180deg, rgba(216,31,42,.12), rgba(255,255,255,.035)); color: rgba(255,255,255,.62); box-shadow: inset 0 0 24px rgba(216,31,42,.06), 0 8px 22px rgba(0,0,0,.3); animation: gateCardReveal .56s cubic-bezier(.2,.75,.2,1) both; }
.gate-picked-slot.is-open > span { color: #ff747e; }
.gate-picked-slot > b { display: grid; place-items: center; font: 700 31px/1 var(--g-serif); color: #fff; text-shadow: 0 0 18px rgba(240,50,63,.38); transition: transform .4s ease; }
.gate-picked-slot > b.is-reversed { transform: rotate(180deg); }
.gate-picked-slot > strong { max-width: 100%; overflow: hidden; color: #fff; font: 800 12px/1.25 var(--g-sans); text-overflow: ellipsis; white-space: nowrap; }
.gate-picked-slot > small { max-width: 100%; overflow: hidden; color: rgba(255,255,255,.5); font: 600 9px/1.25 var(--g-sans); text-overflow: ellipsis; white-space: nowrap; }
.gate-picked-slot.is-open > em { color: rgba(255,255,255,.72); }
.gate-pick-tarot .gate-picked-slot.is-open { border-color: rgba(221,184,111,.48); background: radial-gradient(circle at 50% 32%, rgba(125,38,57,.22), transparent 48%), linear-gradient(180deg, #17131c, #09080b); box-shadow: inset 0 0 0 3px rgba(0,0,0,.4), inset 0 0 0 4px rgba(221,184,111,.14), 0 8px 22px rgba(0,0,0,.38); }
.gate-pick-tarot .gate-picked-slot.is-open > span { color: #dfbd77; font-family: 'Cormorant Garamond', Georgia, serif; }
.gate-pick-tarot .gate-picked-slot > b { color: #f0d394; text-shadow: 0 0 18px rgba(222,183,102,.38); }
.gate-pick-status { min-height: 18px; margin: 0 0 8px; color: rgba(255,255,255,.66); font: 600 12px/1.5 var(--g-sans); }
.gate-pick-finish { width: min(100%, 360px); min-height: 52px; border: 1px solid rgba(240,50,63,.7); border-radius: 5px; background: linear-gradient(180deg, #242426, #0b0b0d); color: #fff; font: 800 14px/1.2 var(--g-sans); box-shadow: 0 10px 26px rgba(0,0,0,.38); cursor: pointer; }
.gate-pick-finish:disabled { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.28); cursor: default; }
.gate-pick-rune .gate-hidden-card { aspect-ratio: 4 / 5; border-radius: 45% 38% 42% 35%; }
.gate-pick-rune .gate-hidden-card > span { border-radius: 45% 38% 42% 35%; background: linear-gradient(145deg, #303034, #09090a); }
.gate-pick-rune .gate-hidden-card > span::before, .gate-pick-rune .gate-hidden-card > span::after { border-radius: 50%; }
.gate-pick-hwatu .gate-hidden-card > span { background: linear-gradient(145deg, #2b1114, #080809 70%); }
@keyframes gateCardReveal { 0% { opacity: 0; transform: translateY(-18px) rotateY(88deg); } 100% { opacity: 1; transform: none; } }
.wt-oracle-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: min(100%, 360px); margin: 16px auto 0; }
.wt-oracle-picks > div { display: grid; place-items: center; min-width: 0; min-height: 76px; padding: 8px 3px; border: 1px solid rgba(240,50,63,.28); border-radius: 4px; background: rgba(255,255,255,.035); font-family: var(--g-sans); }
.wt-oracle-picks i { color: #ff6973; font: 800 9px/1 var(--g-sans); font-style: normal; }
.wt-oracle-picks b { max-width: 100%; margin: 5px 0 3px; overflow: hidden; color: #fff; font: 800 15px/1.1 var(--g-sans); text-overflow: ellipsis; white-space: nowrap; }
.wt-oracle-picks span { color: rgba(255,255,255,.62); font: 700 10px/1.2 var(--g-sans); }
.wt-oracle-picks em { margin-top: 5px; color: rgba(255,255,255,.38); font: 600 9px/1.2 var(--g-sans); font-style: normal; white-space: nowrap; }

/* 윷점: 아케이드 버튼 대신 어두운 마루 위의 던짐 의식 */
.gate-oracle-yut { align-items: flex-start; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 70px) 18px calc(env(safe-area-inset-bottom, 0px) + 28px); background: radial-gradient(90% 50% at 50% 42%, rgba(216,31,42,.09), transparent 68%), linear-gradient(180deg, rgba(8,8,10,.82), #000 72%); scrollbar-width: none; }
.gate-oracle-yut::-webkit-scrollbar { display: none; }
.gate-oracle-yut .gate-oracle-panel { max-width: 430px; }
.gate-yut-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 12px; color: rgba(255,255,255,.38); font: 800 11px/1 var(--g-sans); letter-spacing: .08em; }
.gate-yut-progress i { width: 34px; height: 1px; background: rgba(255,255,255,.14); }
.gate-yut-progress span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.gate-yut-progress span.is-current { color: #fff; border-color: var(--g-red-bright); box-shadow: 0 0 16px rgba(216,31,42,.34); }
.gate-yut-progress span.is-done { color: #fff; background: var(--g-red); border-color: var(--g-red); }
.gate-oracle-yut .gate-oracle-kicker { color: var(--g-red-bright); font-size: 11px; letter-spacing: .12em; }
.gate-oracle-yut h2 { font-size: clamp(25px, 7vw, 34px); color: #fff; }
.gate-oracle-yut .gate-oracle-note { margin: 7px auto 10px; color: rgba(255,255,255,.68); font-family: var(--g-sans); font-size: 13px; }
.gate-yut-board { position: relative; overflow: hidden; min-height: 236px; margin: 0 auto 14px; padding: 30px 20px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: linear-gradient(145deg, #171719, #050506 72%); box-shadow: inset 0 0 0 5px rgba(255,255,255,.018), inset 0 0 50px rgba(0,0,0,.82), 0 22px 52px rgba(0,0,0,.68); }
.gate-yut-board::before, .gate-yut-board::after { content: ''; position: absolute; inset: 11px; pointer-events: none; border: 1px solid rgba(255,255,255,.09); }
.gate-yut-board::after { inset: 50% 16px auto; height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(240,50,63,.32), transparent); }
.gate-yut-board-title { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.42); font: 700 12px/1 var(--g-serif); letter-spacing: .3em; }
.gate-yut-track { position: absolute; inset: 18px 16px 26px; pointer-events: none; }
.gate-yut-track::before, .gate-yut-track::after { content: ''; position: absolute; inset: 11% 10%; border: 1px solid rgba(255,255,255,.14); transform: rotate(45deg); }
.gate-yut-track::after { transform: rotate(-45deg); }
.gate-yut-node { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: #111; box-shadow: 0 0 0 2px rgba(0,0,0,.44); }
.gate-yut-node.is-start { width: 12px; height: 12px; border-color: #ff6973; background: #9f1720; }
.gate-yut-token { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: grid; place-items: center; width: 26px; height: 26px; transform: translate(-50%,-50%); border: 1px solid #ff7881; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ff7c85, #d81f2a 52%, #640b12); color: #fff; font: 800 12px/1 var(--g-sans); box-shadow: 0 0 0 3px rgba(0,0,0,.72), 0 5px 14px rgba(0,0,0,.6); transition: left .11s linear, top .11s linear, transform .16s ease; }
.gate-yut-token.is-moving { transform: translate(-50%,-50%) scale(1.16); box-shadow: 0 0 0 3px rgba(0,0,0,.72), 0 0 22px rgba(240,50,63,.58); }
.gate-oracle-yut .gate-oracle-object { z-index: 1; min-height: 156px; gap: 3px; margin: 0; }
.gate-yut-stick { position: relative; width: 27px; height: 120px; border-radius: 16px; background: linear-gradient(90deg,#09090a 0%,#2b2b2e 20%,#77777c 49%,#242427 76%,#050506); box-shadow: 0 15px 26px rgba(0,0,0,.68), inset 0 0 0 1px rgba(255,255,255,.18); transform: translateX(var(--x)) rotate(var(--r)); transition: transform .55s cubic-bezier(.2,.78,.24,1), filter .4s; }
.gate-yut-stick::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 1px; background: rgba(255,255,255,.13); }
.gate-yut-stick b { display: block; width: 7px; height: 72px; margin: 23px auto 0; border-radius: 99px; background: #d81f2a; opacity: .18; box-shadow: 0 0 8px rgba(240,50,63,.38), inset 1px 0 rgba(255,255,255,.18); }
.gate-yut-stick.down b { opacity: .96; }
.gate-oracle-object.is-rolling .gate-yut-stick { animation: gateYutToss .72s cubic-bezier(.2,.68,.26,1) both; }
.gate-oracle-object.is-rolling .gate-yut-stick:nth-child(2) { animation-delay: .04s; }
.gate-oracle-object.is-rolling .gate-yut-stick:nth-child(3) { animation-delay: .09s; }
.gate-oracle-object.is-rolling .gate-yut-stick:nth-child(4) { animation-delay: .14s; }
.gate-yut-board-note { position: relative; z-index: 1; display: block; color: rgba(255,255,255,.5); font: 600 12px/1.4 var(--g-sans); letter-spacing: 0; }
.gate-oracle-yut .gate-oracle-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-height: 104px; margin: 4px 0 16px; gap: 8px; }
.gate-oracle-yut .gate-yut-result { display: grid; grid-template-rows: auto 1fr auto; place-items: center; min-width: 0; min-height: 100px; padding: 10px 4px 9px; color: #fff; font-family: var(--g-sans); border: 1px solid rgba(255,255,255,.16); border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 18px rgba(0,0,0,.34); }
.gate-yut-result i { font: 800 12px/1 var(--g-sans); color: #ff6973; font-style: normal; }
.gate-yut-result b { align-self: center; font: 800 27px/1 var(--g-sans); color: #fff; text-shadow: 0 0 16px rgba(240,50,63,.28); }
.gate-yut-result em { font: 700 12px/1.2 var(--g-sans); color: rgba(255,255,255,.68); font-style: normal; white-space: nowrap; }
.gate-yut-throw { position: relative; width: min(100%, 360px); min-height: 58px; padding: 15px 22px; overflow: hidden; border: 1px solid rgba(240,50,63,.72); border-radius: 5px; background: linear-gradient(180deg, #242426, #0d0d0f); color: #fff; font: 800 14px/1.25 var(--g-sans); letter-spacing: 0; box-shadow: inset 0 1px rgba(255,255,255,.1), 0 12px 28px rgba(0,0,0,.42), 0 0 18px rgba(216,31,42,.1); cursor: grab; touch-action: none; transition: transform .18s ease, filter .18s ease, opacity .2s; }
.gate-yut-throw::before { content: '↑'; display: inline-block; margin-right: 9px; color: #ff6973; font: 800 20px/0 var(--g-sans); vertical-align: -2px; }
.gate-yut-throw::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.gate-yut-throw:hover { filter: brightness(1.11); }
.gate-yut-throw.is-grabbed { cursor: grabbing; transform: translateY(-7px); filter: brightness(1.16); }
.gate-yut-throw.is-thrown { animation: gateThrowRelease .66s cubic-bezier(.2,.72,.2,1) both; }
.gate-yut-throw:disabled { opacity: .68; cursor: wait; }
.gate-yut-piece-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: min(100%, 360px); margin: 0 auto 10px; }
.gate-yut-piece { min-height: 54px; padding: 7px 4px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background: rgba(255,255,255,.025); color: rgba(255,255,255,.58); font-family: var(--g-sans); font-weight: 700; cursor: pointer; transition: background .18s, border-color .18s, transform .18s, color .18s; }
.gate-yut-piece b { display: block; margin-bottom: 3px; color: rgba(255,255,255,.58); font: 700 16px/1 var(--g-serif); }
.gate-yut-piece span { font-size: 11px; }
.gate-yut-piece:hover, .gate-yut-piece.is-selected { border-color: rgba(240,50,63,.78); background: rgba(216,31,42,.16); color: #fff; }
.gate-yut-piece.is-selected { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.gate-yut-piece.is-selected b { color: #ff6973; }
/* 주령구점: 검은 칠기 상 위에서 직접 굴리는 십사면 주령구 */
.gate-oracle-dice { align-items: flex-start; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 68px) 16px calc(env(safe-area-inset-bottom, 0px) + 28px); background: radial-gradient(72% 38% at 50% 37%, rgba(151,96,42,.13), transparent 76%), linear-gradient(180deg, rgba(8,8,10,.94), #020203 74%); scrollbar-width: none; }
.gate-oracle-dice::-webkit-scrollbar { display: none; }
.gate-oracle-dice .gate-oracle-panel { width: min(430px, 100%); }
.gate-oracle-dice .gate-oracle-kicker { margin-bottom: 5px; color: #bd8b51; font: 700 11px/1 var(--g-serif); }
.gate-oracle-dice h2 { color: #f5f0e7; font-size: clamp(25px, 7vw, 34px); }
.gate-oracle-dice .gate-oracle-note { margin: 7px auto 12px; color: rgba(245,240,231,.58); font-size: 12px; }
.gate-dice-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 12px; color: rgba(245,240,231,.3); font: 800 10px/1 var(--g-sans); }
.gate-dice-progress i { width: 38px; height: 1px; background: rgba(189,139,81,.2); }
.gate-dice-progress span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(245,240,231,.14); border-radius: 50%; transition: color .25s, border-color .25s, background .25s, box-shadow .25s; }
.gate-dice-progress span.is-current { color: #f4d3a4; border-color: rgba(205,151,83,.7); box-shadow: 0 0 18px rgba(170,101,38,.22); }
.gate-dice-progress span.is-done { color: #130c06; border-color: #c5965e; background: #c5965e; }
.gate-dice-board { position: relative; min-height: 268px; margin: 0 auto 12px; padding: 38px 18px 18px; overflow: hidden; border: 1px solid rgba(210,168,111,.22); border-radius: 6px; background: radial-gradient(ellipse at 50% 70%, rgba(133,75,33,.16), transparent 42%), linear-gradient(145deg, #151315, #050506 72%); box-shadow: inset 0 0 0 4px rgba(255,255,255,.015), inset 0 -38px 70px rgba(0,0,0,.58), 0 22px 56px rgba(0,0,0,.62); }
.gate-dice-board::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(205,151,83,.1); pointer-events: none; }
.gate-dice-board::after { content: ''; position: absolute; left: 9%; right: 9%; bottom: 42px; height: 30px; border: 1px solid rgba(205,151,83,.12); border-width: 1px 0 0; border-radius: 50%; transform: perspective(120px) rotateX(66deg); pointer-events: none; }
.gate-dice-board-title { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); color: rgba(222,186,137,.58); font: 700 10px/1 var(--g-serif); white-space: nowrap; }
.gate-dice-board-note { position: relative; z-index: 2; display: block; min-height: 17px; color: rgba(245,240,231,.62); font: 600 12px/1.4 var(--g-sans); }
.gate-oracle-dice .gate-oracle-object { z-index: 2; min-height: 174px; margin: 0; cursor: grab; touch-action: none; outline: none; transform: translate(var(--drag-x, 0), var(--drag-y, 0)); transition: transform .16s ease; }
.gate-oracle-dice .gate-oracle-object:focus-visible { outline: 1px solid rgba(222,186,137,.7); outline-offset: -7px; }
.gate-oracle-dice .gate-oracle-object.is-grabbed { cursor: grabbing; transition: none; }
.gate-oracle-dice .gate-oracle-object.is-complete { cursor: default; }
.gate-dice-shadow { position: absolute; left: 50%; bottom: 19px; width: 118px; height: 25px; border-radius: 50%; background: rgba(0,0,0,.76); filter: blur(7px); transform: translateX(-50%); transition: transform .25s, opacity .25s; }
.gate-dice-face { position: relative; display: grid; grid-template-rows: 1fr auto; place-items: center; width: 134px; height: 134px; padding: 30px 20px 25px; overflow: hidden; clip-path: polygon(26% 3%,74% 3%,96% 27%,91% 72%,72% 96%,28% 96%,9% 72%,4% 27%); color: #24170c; background: linear-gradient(145deg, #e5c798 0%, #ad7c46 42%, #6f4525 100%); font-family: var(--g-serif); box-shadow: 0 22px 38px rgba(0,0,0,.58); transform: perspective(500px) rotateX(12deg) rotateY(-14deg); transform-style: preserve-3d; }
.gate-dice-face::before { content: ''; position: absolute; inset: 7px; clip-path: inherit; border: 1px solid rgba(255,239,205,.42); background: radial-gradient(circle at 37% 26%, rgba(255,246,218,.42), transparent 28%), linear-gradient(150deg, rgba(255,255,255,.09), rgba(55,24,8,.16)); }
.gate-dice-face::after { content: ''; position: absolute; inset: 18% 20%; border: 1px solid rgba(83,46,21,.4); transform: rotate(45deg); box-shadow: 0 0 0 18px rgba(79,42,18,.035); }
.gate-dice-face > i { position: absolute; z-index: 1; width: 52%; height: 1px; background: rgba(74,39,17,.35); transform-origin: center; }
.gate-dice-face > i:nth-child(1) { top: 25%; left: 4%; transform: rotate(29deg); }
.gate-dice-face > i:nth-child(2) { top: 25%; right: 4%; transform: rotate(-29deg); }
.gate-dice-face > i:nth-child(3) { top: 65%; left: 3%; transform: rotate(-26deg); }
.gate-dice-face > i:nth-child(4) { top: 65%; right: 3%; transform: rotate(26deg); }
.gate-dice-face > i:nth-child(5) { top: 48%; left: -2%; transform: rotate(90deg); }
.gate-dice-face > i:nth-child(6) { top: 48%; right: -2%; transform: rotate(90deg); }
.gate-dice-face b { position: relative; z-index: 3; align-self: end; color: #2b190b; font: 700 38px/1 var(--g-serif); text-shadow: 0 1px rgba(255,239,205,.5); }
.gate-dice-face em { position: relative; z-index: 3; align-self: start; max-width: 92px; margin-top: 7px; overflow: hidden; color: rgba(52,29,12,.76); font: 800 10px/1.2 var(--g-sans); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.gate-dice-cast-note { position: relative; z-index: 2; display: block; color: rgba(245,240,231,.38); font: 600 10px/1.4 var(--g-sans); }
.gate-oracle-object.is-rolling { pointer-events: none; }
.gate-oracle-object.is-rolling .gate-dice-face { animation: gateDiceRoll 1.02s cubic-bezier(.16,.68,.2,1) both; }
.gate-oracle-object.is-rolling .gate-dice-shadow { animation: gateDiceShadow 1.02s ease both; }
.gate-oracle-dice .gate-oracle-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-height: 106px; gap: 7px; margin: 0 0 12px; }
.gate-dice-result { display: grid !important; grid-template-rows: auto auto 1fr auto; place-items: center; min-width: 0; min-height: 104px; gap: 0 !important; padding: 9px 4px 8px !important; border: 1px solid rgba(245,240,231,.1) !important; border-radius: 4px !important; background: rgba(255,255,255,.018) !important; color: rgba(245,240,231,.2) !important; font-family: var(--g-sans); transition: border-color .35s, background .35s, transform .35s; }
.gate-dice-result i { color: rgba(205,151,83,.4); font: 800 9px/1 var(--g-sans); font-style: normal; }
.gate-dice-result em { margin-top: 5px; color: rgba(245,240,231,.38); font: 700 10px/1 var(--g-sans); font-style: normal; }
.gate-dice-result b { align-self: center; max-width: 100%; overflow: hidden; color: inherit !important; font: 800 15px/1.2 var(--g-sans); text-overflow: ellipsis; white-space: nowrap; }
.gate-dice-result small { color: rgba(245,240,231,.25); font: 600 9px/1 var(--g-sans); white-space: nowrap; }
.gate-dice-result.is-filled { border-color: rgba(205,151,83,.34) !important; background: linear-gradient(180deg, rgba(178,118,57,.1), rgba(255,255,255,.025)) !important; color: #f5f0e7 !important; box-shadow: inset 0 1px rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.25); animation: gateDiceResultIn .5s cubic-bezier(.2,.75,.2,1) both; }
.gate-dice-result.is-filled i { color: #d5a76d; }
.gate-dice-result.is-filled em { color: rgba(245,240,231,.62); }
.gate-dice-result.is-filled small { color: rgba(245,240,231,.38); }
.gate-oracle-dice .gate-oracle-btn { width: min(100%, 360px); min-height: 56px; border: 1px solid rgba(205,151,83,.58); border-radius: 5px; background: linear-gradient(180deg, #242021, #0d0b0c); color: #f8f2e9; font: 800 14px/1.2 var(--g-sans); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 28px rgba(0,0,0,.4); }
.gate-oracle-dice .gate-oracle-btn::before { content: '具'; margin-right: 9px; color: #d5a76d; font-family: var(--g-serif); }
.gate-oracle-results { min-height: 58px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gate-oracle-results span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 999px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); font-family: var(--g-sans); font-size: 13px; }
.gate-oracle-results b { color: rgba(255,219,150,.9); font-weight: 800; }
.gate-oracle-btn[disabled] { opacity: .6; cursor: wait; }
@keyframes gateYutToss {
  0% { transform: translateX(var(--x)) translateY(18px) rotate(var(--r)); filter: brightness(.9); }
  46% { transform: translateX(calc(var(--x) * -1)) translateY(-74px) rotate(calc(var(--r) + 280deg)); filter: brightness(1.2); }
  100% { transform: translateX(var(--x)) translateY(0) rotate(calc(var(--r) + 540deg)); filter: brightness(1); }
}
@keyframes gateThrowRelease { 0% { transform: translateY(0); } 44% { transform: translateY(-16px); opacity: .82; } 100% { transform: translateY(0); } }
@keyframes gateDiceRoll {
  0% { transform: perspective(500px) translateY(0) rotateX(12deg) rotateY(-14deg) rotateZ(0) scale(1); filter: brightness(.9); }
  38% { transform: perspective(500px) translateY(-68px) rotateX(calc(var(--dice-rx) * .56)) rotateY(calc(var(--dice-ry) * .56)) rotateZ(95deg) scale(1.06); filter: brightness(1.18); }
  76% { transform: perspective(500px) translateY(3px) rotateX(var(--dice-rx)) rotateY(var(--dice-ry)) rotateZ(180deg) scale(.98); }
  88% { transform: perspective(500px) translateY(-10px) rotateX(calc(var(--dice-rx) + 18deg)) rotateY(calc(var(--dice-ry) + 12deg)) rotateZ(190deg) scale(1.01); }
  100% { transform: perspective(500px) translateY(0) rotateX(12deg) rotateY(-14deg) rotateZ(0) scale(1); filter: brightness(1); }
}
@keyframes gateDiceShadow { 0%,100% { opacity: 1; transform: translateX(-50%) scale(1); } 38% { opacity: .3; transform: translateX(-50%) scale(.62); } 78% { opacity: 1; transform: translateX(-50%) scale(1.12); } }
@keyframes gateDiceResultIn { 0% { opacity: .25; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }

@media (max-height: 720px) {
  .gate-oracle-dice { padding-top: calc(env(safe-area-inset-top, 0px) + 56px); }
  .gate-oracle-dice .gate-oracle-note { display: none; }
  .gate-dice-board { min-height: 235px; }
  .gate-oracle-dice .gate-oracle-object { min-height: 150px; }
  .gate-dice-face { width: 118px; height: 118px; padding: 27px 18px 22px; }
}

/* =========================================================================
   결과 시트 — 사주 + 복채 + 후기
   ========================================================================= */
.gate-scene-full {
  top: 0; bottom: 0;
  /* 좌우 패딩 0 → 이미지/영상 패널 풀블리드 (텍스트 블록은 각자 여백 보유) */
  padding: calc(env(safe-area-inset-top, 0px) + 64px) 0 calc(env(safe-area-inset-bottom, 0px) + 30px);
  overflow-y: auto; overflow-x: hidden; justify-content: flex-start; -webkit-overflow-scrolling: touch;
}
/* flex 컨테이너에서 max-content로 부풀지 않게 (마퀴 등 넓은 자식 대비) */
.gate-scene-full > .wt-head, .gate-scene-full > .wt-body { width: 100%; }
.gate-result { width: 100%; max-width: 480px; text-align: left; }
.gate-result-head { text-align: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.gate-result-eyebrow { font-family: var(--g-serif); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.5px; margin-bottom: 6px; }
.gate-result-birth { font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.5px; }
.gate-loadtxt { text-align: center; padding: 60px 0; font-family: var(--g-serif); color: rgba(255, 255, 255, 0.6); font-size: 15px; animation: gateRitualPulse 1.4s ease-in-out infinite; }
.gate-read p { font-family: var(--g-sans); font-size: 14.5px; line-height: 1.85; color: #e8e8ec; letter-spacing: -0.01em; word-break: keep-all; margin-bottom: 14px; white-space: pre-line; }
.gate-lockwrap { position: relative; }
.gate-locked {
  filter: blur(7px); opacity: 0.55; max-height: 340px; overflow: hidden;
  mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  transition: filter 0.7s ease, opacity 0.7s ease; user-select: none; pointer-events: none;
}
.gate-lockwrap.gate-unlocked .gate-locked { filter: blur(0); opacity: 1; max-height: none; mask-image: none; -webkit-mask-image: none; }
.gate-paywall { position: absolute; left: 0; right: 0; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity 0.5s; }
.gate-lockwrap.gate-unlocked .gate-paywall { opacity: 0; pointer-events: none; }
.gate-unlock { height: 62px !important; font-size: 17px !important; max-width: 340px; }
.gate-review-label { margin: 26px 0 12px; font-family: var(--g-sans); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.5); text-align: center; letter-spacing: 1px; }
.gate-reviews { display: flex; flex-direction: column; gap: 10px; }
.gate-review { background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 13px 15px; }
.gate-review-stars { color: #ffb43a; font-size: 11px; letter-spacing: 2px; }
.gate-review p { font-family: var(--g-sans); font-size: 13px; line-height: 1.6; color: #d6d6dc; margin: 6px 0 7px; word-break: keep-all; }
.gate-review-name { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.gate-final-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0 10px; }
.gate-choice.gate-more { max-width: 420px; text-align: center; height: 58px; border-radius: 999px; }
.gate-skip { background: none; border: none; cursor: pointer; color: rgba(255, 255, 255, 0.55); font-family: var(--g-sans); font-size: 13.5px; font-weight: 600; padding: 6px 10px; text-decoration: none; }

/* =========================================================================
   웹툰식 사주 결과 (풀블리드 패널 · 말풍선 · 큰 대사 · 오행/기둥)
   ========================================================================= */
#gateRoot.gate-result-mode .gate-embers { opacity: 0.5; }
/* 결과 모드: 상단 바에 배경 넣어 겹침 방지 (뒤로가기 유지) */
#gateRoot.gate-result-mode .gate-top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 40%, transparent);
  pointer-events: none;
}
#gateRoot.gate-result-mode .gate-back,
#gateRoot.gate-result-mode .gate-logo,
#gateRoot.gate-result-mode .gate-sound { pointer-events: auto; }
.wt-head {
  position: relative; z-index: 1;
  padding: calc(env(safe-area-inset-top, 0px) + 70px) 20px 18px;
  text-align: center;
}
.wt-head-eyebrow { font-family: var(--g-serif); font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.wt-head-birth { font-family: var(--g-sans); font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: 4px; }
.wt-body { position: relative; }
.wt { display: block; padding-bottom: 20px; }

/* 스크롤 폴리시: 스크롤바 숨김 + 부드럽게 */
#wtScroll { scrollbar-width: none; overscroll-behavior: contain; }
#wtScroll::-webkit-scrollbar { display: none; }

/* 상단 진행률 바 */
.wt-progress {
  position: absolute; top: 0; left: 0; right: 0; z-index: 9;
  height: 3px; background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.wt-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--g-red), var(--g-red-bright));
  box-shadow: 0 0 10px rgba(240, 50, 63, 0.6);
}

/* 생년월일 자동채움 힌트 */
.gate-prefill-hint { font-family: var(--g-sans); font-size: 12.5px; color: var(--g-red-bright); margin: 4px 0 12px; opacity: 0.92; }
/* 생년월일 오류 안내 */
.gate-date-err {
  display: none; font-family: var(--g-serif); font-size: 14px; line-height: 1.5;
  color: #ff8d95; margin: 2px 0 10px; word-break: keep-all;
}
.gate-date-err.on { display: block; animation: gateErrIn 0.3s ease; }
@keyframes gateErrIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 리빌 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.8, 0.28, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 캐릭터 패널 */
.wt-panel { position: relative; margin: 0 0 6px; }
.wt-img {
  position: relative;
  width: 100%; aspect-ratio: 3 / 4;
  background-size: cover; background-position: center 12%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
}
/* 하단 텍스트(.wt-line) 가독성 스크림 — 밝은 이미지에서도 글자가 뜨게. .wt-line은 형제라 위에 남는다 */
.wt-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.35) 66%, rgba(0, 0, 0, 0.82) 100%);
}
.wt-panel-tall .wt-img { aspect-ratio: 3 / 4.4; }

/* 고유 사진을 모두 쓴 뒤에는 반복 사진 대신 의도된 텍스트 장면으로 이어간다. */
.wt-panel-noimg {
  min-height: 320px; margin: 22px 12px 28px; padding: 52px 24px 42px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate;
  border: 1px solid rgba(240, 50, 63, 0.18); border-radius: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 50, 63, 0.13), transparent 35%),
    linear-gradient(145deg, rgba(29, 17, 22, 0.94), rgba(7, 7, 12, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 52px rgba(0,0,0,0.28);
}
.wt-panel-tall.wt-panel-noimg { min-height: 380px; }
.wt-noimg-field {
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 28px 28px;
}
.wt-noimg-field::after {
  content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(240, 50, 63, 0.12); box-shadow: 0 0 70px rgba(240, 50, 63, 0.08);
}
.wt-noimg-field span { color: rgba(240, 50, 63, 0.2); font-size: 42px; }
.wt-panel-noimg .wt-bubble {
  position: relative; left: auto; top: auto; z-index: 1;
  max-width: 92%; margin: 0 auto 30px;
}
.wt-panel-noimg .wt-line {
  position: relative; left: auto; right: auto; bottom: auto; z-index: 1;
  max-width: 330px; padding: 0;
}

/* 시네마틱 와이드 씬 스트립 */
.wt-strip {
  width: 100%; aspect-ratio: 3 / 2.6; margin: 6px 0 10px;
  background-size: cover; background-position: center 22%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}

/* 인라인 영상 패널 (결과지에 살아있는 영상) */
.wt-panel-v { line-height: 0; }
.wt-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #05050a; }
.wt-panel-v .wt-video {
  aspect-ratio: 3 / 4;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 74%, transparent);
}
.wt-panel-tall.wt-panel-v .wt-video { aspect-ratio: 3 / 4.4; }
.wt-video-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 82% at 50% 32%, transparent 42%, rgba(0, 0, 0, 0.42) 100%);
}
/* 복채 직전 후킹 영상 — 사운드/자막 임팩트 */
.wt-panel-pay { position: relative; }
.wt-panel-pay .wt-video { aspect-ratio: 3 / 4.4; }
.wt-panel-pay .wt-line-pay {
  font-size: 1.34rem; font-weight: 700; line-height: 1.5;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: translateY(14px);
}
.wt-panel-pay.in .wt-line-pay { animation: payLineIn 0.9s cubic-bezier(.2,.7,.2,1) 0.35s forwards; }
@keyframes payLineIn { to { opacity: 1; transform: translateY(0); } }
.wt-panel-pay.in .wt-bubble { animation: payLineIn 0.7s ease 0.1s both; }
.wt-sound-toggle {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 14, 0.62); backdrop-filter: blur(6px);
  font-size: 18px; line-height: 1; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.wt-sound-toggle:hover { transform: scale(1.08); background: rgba(240, 50, 63, 0.55); }
.wt-panel-pay .wt-video[data-pay] { animation: payGlow 2.6s ease-in-out infinite; }
@keyframes payGlow { 0%,100% { filter: none; } 50% { filter: brightness(1.06) saturate(1.08); } }

.wt-strip-v { aspect-ratio: 16 / 11; background: none; }
.wt-strip-v .wt-video {
  aspect-ratio: 16 / 11;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

/* 결과 준비 로딩 — 회전하는 매듭 오브 */
.wt-loading { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 72px 0; }
.wt-loading-orb { position: relative; width: 64px; height: 64px; }
.wt-loading-orb i {
  position: absolute; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--g-red-bright);
  animation: wtOrb 1.5s linear infinite;
}
.wt-loading-orb i:nth-child(1) { inset: 0; }
.wt-loading-orb i:nth-child(2) { inset: 9px; border-top-color: rgba(240, 50, 63, 0.5); animation-duration: 2.2s; animation-direction: reverse; }
.wt-loading-orb i:nth-child(3) { inset: 18px; border-top-color: rgba(255, 255, 255, 0.65); animation-duration: 1.05s; }
.wt-loading .gate-loadtxt {
  padding: 0; min-height: 26px; animation: none;
  font-size: 16.5px; color: rgba(255, 255, 255, 0.8);
  opacity: 1; transition: opacity 0.28s ease, transform 0.28s ease;
}
.wt-loading .gate-loadtxt.swap { opacity: 0; transform: translateY(6px); }
.wt-loading-pct {
  font-family: var(--g-sans); font-size: 13px; font-weight: 800;
  color: var(--g-red-bright); letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(240, 50, 63, 0.5);
}
/* 결과 실패 시 재시도 (막다른 화면 방지) */
.wt-fail { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px 24px; }
.wt-retry {
  font-family: var(--g-sans); font-size: 14.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--g-red-bright, #f0323f), #b3121f);
  border: none; border-radius: 999px; padding: 13px 30px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(240, 50, 63, 0.35);
}
.wt-retry:active { transform: scale(0.96); }
/* 로딩 중엔 상단 진행바를 조금 도톰하게 */
@keyframes wtOrb { to { transform: rotate(360deg); } }

/* 구분선 */
.wt-div {
  display: flex; align-items: center; gap: 14px;
  padding: 40px 26px 24px;
}
.wt-div::before, .wt-div::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 50, 63, 0.5), transparent);
}
.wt-div span {
  font-family: var(--g-serif); font-size: 14px; font-weight: 700;
  color: var(--g-red-bright); letter-spacing: 2px; white-space: nowrap;
  text-shadow: 0 0 14px rgba(240, 50, 63, 0.4);
}

/* 여울 나레이션 카드 */
.wt-say {
  margin: 4px 22px 18px; padding: 16px 18px 16px 20px;
  border-left: 2px solid var(--g-red);
  background: linear-gradient(90deg, rgba(216, 31, 42, 0.1), rgba(255, 255, 255, 0.015));
  border-radius: 0 14px 14px 0;
}
.wt-say-name {
  display: inline-block; margin-bottom: 7px;
  font-family: var(--g-sans); font-size: 12px; font-weight: 800;
  color: var(--g-red-bright); letter-spacing: 1px;
}
.wt-say p {
  font-family: var(--g-serif); font-size: 16.5px; line-height: 1.75;
  color: #efeff3; word-break: keep-all;
}
.wt-say em, .wt-sub em { font-style: normal; color: var(--g-red-bright); }
.wt-sub { font-family: var(--g-sans); font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin-top: 12px; line-height: 1.6; }
.wt-bubble {
  position: absolute; left: 24px; top: 5%;   /* 얼굴(상단 중앙)을 가리지 않게 머리 위로 */
  padding: 12px 18px; border-radius: 22px;
  background: rgba(228, 228, 233, 0.92);
  color: #1a1a1e; font-family: var(--g-sans); font-size: 14.5px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.wt-line {
  position: absolute; left: 0; right: 0; bottom: 8%; z-index: 2;
  text-align: center; padding: 0 18px;
  font-family: var(--g-serif); font-size: 25px; font-weight: 700; line-height: 1.45;
  color: #fff; letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 3px 22px rgba(0, 0, 0, 0.9);
}
.wt-line em { font-style: normal; color: var(--g-red-bright); text-shadow: 0 0 26px rgba(240, 50, 63, 0.7); }

/* 큰 대사 단독 */
.wt-big { font-family: var(--g-serif); font-size: 23px; font-weight: 700; line-height: 1.5; color: #fff; text-align: center; letter-spacing: 0.5px; }
.wt-big em { font-style: normal; color: var(--g-red-bright); }
.wt-solo { padding: 46px 24px; }

.wt-block { padding: 18px 22px 30px; }
.wt-block .wt-big { margin-bottom: 18px; }

/* 사주 기둥 카드 */
.wt-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wt-pil {
  border: 1px solid; border-radius: 14px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: #1a1a1e;
}
.wt-pil-l { font-family: var(--g-sans); font-size: 11px; color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.wt-pil-g { font-family: var(--g-serif); font-size: 21px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.wt-pil-e { font-family: var(--g-serif); font-size: 15px; font-weight: 700; }

/* 오행 저울 */
.wt-ohaeng { display: flex; flex-direction: column; gap: 9px; }
.wt-oh { display: flex; align-items: center; gap: 12px; }
.wt-oh-n { font-family: var(--g-serif); font-size: 19px; font-weight: 700; width: 22px; text-align: center; }
.wt-oh-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wt-oh-bar i { display: block; height: 100%; border-radius: 999px; transition: width 1s ease 0.2s; }
.wt-oh-v { font-family: var(--g-sans); font-size: 13px; color: rgba(255, 255, 255, 0.55); width: 14px; }
.wt-oh-cap { margin-top: 16px; text-align: center; font-family: var(--g-sans); font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.wt-oh-cap b { font-weight: 800; }

/* 해석 섹션 */
.wt-sec { padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.wt-sec-t { font-family: var(--g-sans); font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.wt-sec-ic { display: inline-flex; width: 20px; height: 20px; flex: none; color: var(--g-red-bright, #f0323f); opacity: 0.92; }
.wt-sec-ic .ic { width: 100%; height: 100%; }
.wt-sec-b { font-family: var(--g-sans); font-size: 14.5px; line-height: 1.85; color: #dcdce2; word-break: keep-all; }

/* 복채 잠금 */
.wt-lockwrap { position: relative; }
.wt-locked { filter: blur(9px); opacity: 0.5; max-height: 300px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  transition: filter 0.8s ease, opacity 0.8s ease; pointer-events: none; user-select: none; }
.wt-lockwrap.wt-unlocked .wt-locked { filter: none; opacity: 1; max-height: none; -webkit-mask-image: none; mask-image: none; }
/* ===== 복채 잠금 CTA (크고 눈에 띄게) ===== */
.wt-paywall {
  /* 문서 흐름에 포함 (스크롤 높이에 반영) + 잠긴 내용 위로 겹쳐 올라오게 */
  position: relative; z-index: 2;
  margin: -252px 16px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 20px 28px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(216, 31, 42, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(20, 12, 13, 0.92), rgba(8, 6, 7, 0.96));
  border: 1px solid rgba(240, 50, 63, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(216, 31, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  transition: opacity 0.5s;
}
.wt-lockwrap.wt-unlocked .wt-paywall { opacity: 0; pointer-events: none; }

/* 봉인 도장 */
.wt-seal {
  width: 62px; height: 62px; margin-top: -50px; margin-bottom: 2px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e5443f, #a01620 70%, #6a0d14);
  border: 2px solid rgba(255, 180, 160, 0.5);
  box-shadow: 0 8px 24px rgba(216, 31, 42, 0.5), 0 0 30px rgba(240, 50, 63, 0.4);
  animation: sealPulse 2.2s ease-in-out infinite;
}
.wt-seal span { font-family: var(--g-serif); font-size: 30px; font-weight: 700; color: #fff2ee; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
@keyframes sealPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(216, 31, 42, 0.5), 0 0 26px rgba(240, 50, 63, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 8px 28px rgba(216, 31, 42, 0.6), 0 0 44px rgba(240, 50, 63, 0.6); }
}

.wt-paywall-badge {
  font-family: var(--g-sans); font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  color: #ffd9b0; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 120, 40, 0.14); border: 1px solid rgba(255, 150, 60, 0.4);
  animation: badgeBlink 1.6s steps(1) infinite;
}
@keyframes badgeBlink { 50% { opacity: 0.55; } }

.wt-paywall-title {
  font-family: var(--g-serif); font-size: 25px; font-weight: 700; line-height: 1.4;
  color: #fff; text-align: center; letter-spacing: 0.5px;
}
.wt-paywall-title em { font-style: normal; color: var(--g-red-bright); text-shadow: 0 0 24px rgba(240, 50, 63, 0.7); }

.wt-bubble-static {
  position: relative; left: 0; top: 0;
  background: rgba(228, 228, 233, 0.95); color: #1a1a1e;
  font-size: 13.5px; line-height: 1.45; text-align: center;
  border-radius: 16px; padding: 12px 16px;
}

/* 대형 CTA (2줄, 강한 발광 펄스) */
.wt-unlock {
  width: 100%; max-width: 400px; height: auto !important;
  min-height: 78px; padding: 14px 20px !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 16px !important;
  font-size: 19px !important;
  animation: unlockPulse 1.8s ease-in-out infinite;
}
.wt-unlock-main { font-family: var(--g-serif); font-size: 20px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; }
.wt-unlock-sub { font-family: var(--g-sans); font-size: 13.5px; font-weight: 700; letter-spacing: 0; color: rgba(255, 235, 230, 0.92); }
.wt-unlock-sub s { color: rgba(255, 210, 200, 0.6); }
.wt-unlock-sub b { color: #ffe08a; font-weight: 900; }
@keyframes unlockPulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 26px rgba(216, 31, 42, 0.3), 0 10px 30px rgba(216, 31, 42, 0.35), 0 0 24px rgba(240, 50, 63, 0.3); }
  50% { transform: scale(1.025); box-shadow: inset 0 0 34px rgba(216, 31, 42, 0.45), 0 14px 40px rgba(216, 31, 42, 0.5), 0 0 46px rgba(240, 50, 63, 0.55); }
}

.wt-paywall-sub { font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.55); text-align: center; }
.wt-paywall-sub em { font-style: normal; color: var(--g-red-bright); font-weight: 700; }

/* 잠긴 항목 리스트 (결제 상품 느낌) */
.wt-unlock-list { list-style: none; width: 100%; max-width: 400px; margin: 2px 0 2px; padding: 0; }
.wt-unlock-list li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 12px 11px 40px; position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.wt-unlock-list li::before {
  content: '🔒'; position: absolute; left: 8px; top: 12px; font-size: 15px; filter: grayscale(0.2);
}
.wt-unlock-list li.wt-li-pdf::before { content: '📄'; }
.wt-unlock-list li.wt-li-bujeok::before { content: '🧿'; }

/* 복채 → 전체풀이 이동 로딩 오버레이 */
.gate-payov {
  position: absolute; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(2, 1, 2, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.45s ease;
}
.gate-payov.on { opacity: 1; }
.gate-payov-t { font-family: var(--g-serif); font-size: 21px; font-weight: 700; color: #fff; }
.gate-payov-s { font-family: var(--g-sans); font-size: 13.5px; color: rgba(255, 255, 255, 0.6); animation: gateRitualPulse 1.4s ease-in-out infinite; }
.wt-unlock-list li b { font-family: var(--g-sans); font-size: 15px; font-weight: 800; color: #fff; }
.wt-unlock-list li span { font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

/* 가격 */
.wt-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 4px 0 2px; }
.wt-price-was { font-family: var(--g-sans); font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.wt-price-was s { color: rgba(255, 255, 255, 0.4); }
.wt-price-now { font-family: var(--g-sans); font-size: 16px; color: #fff; font-weight: 700; }
.wt-price-now b { color: #ffe08a; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }

/* PDF / 공유 액션 바 */
.wt-actions { display: flex; gap: 10px; padding: 8px 20px 4px; }
.wt-act {
  flex: 1; display: flex; align-items: center; gap: 11px;
  padding: 14px 14px; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.wt-act:hover { background: rgba(216, 31, 42, 0.14); border-color: var(--g-red-line); }
.wt-act:active { transform: scale(0.97); }
.wt-act-ico { font-size: 22px; flex: none; }
.wt-act span:last-child { display: flex; flex-direction: column; }
.wt-act b { font-family: var(--g-sans); font-size: 14.5px; font-weight: 800; color: #fff; }
.wt-act em { font-family: var(--g-sans); font-size: 11.5px; font-style: normal; color: rgba(255, 255, 255, 0.5); }

/* 토스트 */
.gate-toast {
  position: absolute; left: 50%; bottom: 90px; transform: translate(-50%, 12px);
  z-index: 20; padding: 12px 20px; border-radius: 999px; max-width: 86%;
  background: rgba(20, 14, 15, 0.94); border: 1px solid var(--g-red-line);
  color: #fff; font-family: var(--g-sans); font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.35s, transform 0.35s;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gate-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== 말풍선 — 크고 분위기 있게 (다크 글라스 + 크림슨 엣지) ===== */
.wt-bubble, .wt-bubble-static, .gate-bubble {
  font-family: var(--g-serif);
  color: #f4f2f3; font-weight: 500;
  background: linear-gradient(140deg, rgba(30, 17, 21, 0.94), rgba(13, 9, 11, 0.94)) !important;
  border: 1px solid rgba(240, 50, 63, 0.34) !important;
  /* backdrop-filter 제거: 배경이 사실상 불투명이라 시각차 없고, 웹툰 스크롤 잭의 주원인이었음 */
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 34px rgba(216, 31, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.wt-bubble {
  position: absolute; left: 20px; top: 4.5%;   /* 얼굴을 가리지 않게 최상단으로 */
  max-width: 78%;
  padding: 15px 22px 16px; border-radius: 20px;   /* 꼬리 없는 균일 라운드 */
  font-size: 18px; letter-spacing: -0.005em; line-height: 1.58;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.wt-bubble::before {   /* 인용 장식 */
  content: '\201C'; position: absolute; left: 11px; top: 2px;
  font-family: var(--g-serif); font-size: 30px; line-height: 1;
  color: rgba(240, 50, 63, 0.5);
}
.wt-bubble::after { content: none; }   /* 말풍선 꼬리 제거 */
.wt-bubble em { font-style: normal; color: var(--g-red-bright); font-weight: 700; }
.gate-bubble {
  font-size: 15.5px !important; padding: 13px 22px !important; letter-spacing: -0.005em;
}
.wt-bubble-static {
  position: relative; left: 0; top: 0;
  font-size: 15.5px; line-height: 1.6; text-align: center;
  padding: 15px 20px; border-radius: 16px;
}

/* ===== 명식 보드 (한자 타일 + 십성/십이운성/신살) ===== */
.wt-board {
  margin: 0 16px; padding: 18px 12px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-bd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.wt-bd-h {
  text-align: center; font-family: var(--g-sans); font-size: 12.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.65); padding-bottom: 2px;
}
.wt-bd-h.me { color: var(--g-red-bright); }
.wt-bd-tile {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid;
  font-family: var(--g-serif); font-size: 34px; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.45);
}
.wt-bd-none { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.wt-bd-line { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 8px; margin-bottom: 6px; }
.wt-bd-c { text-align: center; font-family: var(--g-sans); font-size: 13px; font-weight: 700; color: #e8e8ee; }
.wt-bd-c.hot { color: #ffb84d; text-shadow: 0 0 10px rgba(255, 160, 40, 0.45); }
/* ---- 행운 번호 색구간 보드 (만복·유나) ---- */
.wt-lt-head {
  font-family: var(--g-sans); font-size: 11.5px; line-height: 1.5; text-align: center;
  color: rgba(255, 255, 255, 0.48); margin-bottom: 13px; word-break: keep-all;
}
.wt-lt-head b { color: rgba(255, 255, 255, 0.78); font-weight: 700; }
.wt-lt-band {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 7px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09);
}
.wt-lt-band.main {
  border-color: rgba(255, 170, 80, 0.55);
  background: linear-gradient(90deg, rgba(255, 150, 50, 0.16), rgba(255, 150, 50, 0.04));
  box-shadow: 0 0 20px rgba(255, 150, 50, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.wt-lt-band.avoid { opacity: 0.58; }
.wt-lt-band.avoid .wt-lt-range, .wt-lt-band.avoid .wt-lt-color {
  text-decoration: line-through; text-decoration-color: rgba(255, 140, 130, 0.5);
}
.wt-lt-dot {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.wt-lt-band.main .wt-lt-dot { box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3), 0 0 12px 1px rgba(255, 180, 90, 0.55); }
.wt-lt-range { font-family: var(--g-serif); font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.82); width: 58px; }
.wt-lt-color { font-family: var(--g-sans); font-size: 12px; color: rgba(255, 255, 255, 0.5); flex: 1; font-weight: 400; }
.wt-lt-band u {
  text-decoration: none; font-family: var(--g-sans); font-size: 10.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.wt-lt-band u.hit { color: #ffca7a; background: rgba(255, 160, 60, 0.16); border: 1px solid rgba(255, 170, 80, 0.42); }
.wt-lt-band u.miss { color: #ff9b93; background: rgba(240, 90, 80, 0.12); border: 1px solid rgba(240, 90, 80, 0.32); }
.wt-lt-band u.lkx { color: rgba(255, 255, 255, 0.3); }

/* ---- 저승 명부 ---- */
.wt-mb {
  margin: 0 16px; padding: 16px 14px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-mb-row {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wt-mb-row:last-of-type { border-bottom: 0; }
.wt-mb-row span { font-family: var(--g-sans); font-size: 11.5px; color: rgba(255, 255, 255, 0.42); width: 82px; flex: 0 0 auto; }
.wt-mb-row b { font-family: var(--g-serif); font-size: 17px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.wt-mb-row i { font-style: normal; font-family: var(--g-sans); font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }
.wt-mb-row.hot b { color: #ff8b82; text-shadow: 0 0 12px rgba(240, 60, 50, 0.4); }
.wt-mb-row.hot span { color: rgba(255, 150, 140, 0.75); }

/* ---- 운명 노선도 (서벽) — 대운을 철도 구간으로 ---- */
.wt-route {
  position: relative; margin: 0 16px; padding: 18px 10px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-rt-line {
  position: absolute; left: 18px; right: 18px; top: 44px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 190, 90, 0.4), rgba(255, 255, 255, 0.1));
}
.wt-rt-row { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.wt-rt-st { text-align: center; }
.wt-rt-dot {
  display: block; width: 9px; height: 9px; margin: 18px auto 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3);
}
.wt-rt-st.past .wt-rt-dot { background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.35); }
.wt-rt-st.now .wt-rt-dot {
  background: #ffb04d; border-color: #ffca8a; width: 13px; height: 13px; margin-top: 16px;
  box-shadow: 0 0 14px 3px rgba(255, 150, 40, 0.6);
}
.wt-rt-age { display: block; font-family: var(--g-sans); font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.wt-rt-yr { display: block; font-family: var(--g-serif); font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.72); margin-top: 1px; }
.wt-rt-st.now .wt-rt-age, .wt-rt-st.now .wt-rt-yr { color: #ffca8a; }
.wt-rt-st u { display: block; text-decoration: none; margin-top: 3px; font-family: var(--g-sans); font-size: 8.5px; }
.wt-rt-st.now u { color: #ffb84d; font-weight: 700; }

/* ---- 투자성향 판정 보드 — 성향에 이름을 붙여 도장을 찍는다 ---- */
.wt-tuja {
  margin: 0 16px; padding: 20px 16px 12px; text-align: center;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-tuja-seal {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(240, 50, 63, 0.6); background: rgba(240, 50, 63, 0.12);
}
.wt-tuja-seal span { font-family: var(--g-serif); font-size: 32px; font-weight: 700; color: #ff8b82; }
.wt-tuja-seal.good { border-color: rgba(90, 200, 130, 0.6); background: rgba(90, 200, 130, 0.1); }
.wt-tuja-seal.good span { color: #7fdca6; }
.wt-tuja-seal.flat { border-color: rgba(255, 200, 120, 0.55); background: rgba(255, 190, 90, 0.1); }
.wt-tuja-seal.flat span { color: #ffca8a; }
.wt-tuja-seal.warn { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.wt-tuja-seal.warn span { color: rgba(255, 255, 255, 0.7); }
.wt-tuja-name { font-family: var(--g-serif); font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.wt-tuja-line {
  font-family: var(--g-sans); font-size: 13px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.68); margin: 0 0 14px; word-break: keep-all;
}
.wt-tuja-jae {
  padding: 12px 12px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
}
.wt-tuja-jae span {
  display: block; font-family: var(--g-sans); font-size: 10.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.4); margin-bottom: 3px;
}
.wt-tuja-jae b { display: block; font-family: var(--g-serif); font-size: 16px; color: #ffca8a; font-weight: 700; margin-bottom: 4px; }
.wt-tuja-jae i {
  display: block; font-style: normal; font-family: var(--g-sans); font-size: 12px;
  line-height: 1.55; color: rgba(255, 255, 255, 0.6); word-break: keep-all;
}
.wt-dk.good { color: #7fdca6; }
.wt-dk.bad { color: #ff8b82; }
.wt-dk.flat { color: rgba(255, 255, 255, 0.45); }

/* ---- 이름 소리오행 보드 — 글자 사이 상생/상극 사슬 ---- */
.wt-nmboard {
  margin: 0 16px; padding: 18px 12px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-nm-row { display: flex; align-items: center; justify-content: center; gap: 3px; flex-wrap: wrap; }
.wt-nm-cell {
  flex: 0 0 auto; width: 62px; padding: 10px 4px; border-radius: 12px; text-align: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.13);
}
.wt-nm-ch {
  display: block; font-family: var(--g-serif); font-size: 26px; font-weight: 700; color: #fff;
  line-height: 1.15; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.wt-nm-cho { display: block; font-family: var(--g-sans); font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.wt-nm-el { display: block; font-style: normal; font-family: var(--g-serif); font-size: 15px; font-weight: 700; margin-top: 3px; }
.wt-nm-eum {
  display: block; text-decoration: none; font-family: var(--g-sans); font-size: 8.5px;
  color: rgba(255, 255, 255, 0.32); margin-top: 2px; white-space: nowrap;
}
.wt-nm-link { flex: 0 0 auto; width: 26px; text-align: center; }
.wt-nm-link b { display: block; font-size: 14px; font-weight: 700; line-height: 1; }
.wt-nm-link span { display: block; font-family: var(--g-sans); font-size: 8px; margin-top: 3px; }
.wt-nm-link.good b, .wt-nm-link.good span { color: #7fdca6; }
.wt-nm-link.bad b, .wt-nm-link.bad span { color: #ff8b82; }
.wt-nm-link.flat b, .wt-nm-link.flat span { color: rgba(255, 255, 255, 0.3); }
.wt-nm-flow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--g-sans); font-size: 12px;
}
.wt-nm-flow span { color: rgba(255, 255, 255, 0.4); }
.wt-nm-flow b { font-family: var(--g-serif); font-size: 15px; color: #ffca8a; font-weight: 700; }
.wt-nm-flow i { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.42); }

/* ---- 신년 신수 보드 — 새해 간지 × 내 띠의 관계 ---- */
.wt-nyboard {
  margin: 0 16px; padding: 16px 14px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-ny-gz { text-align: center; padding-bottom: 14px; }
.wt-ny-gz b {
  display: block; font-family: var(--g-serif); font-size: 40px; font-weight: 700;
  color: #ffca8a; line-height: 1.1; text-shadow: 0 2px 14px rgba(255, 150, 50, 0.3);
}
.wt-ny-gz span { display: block; margin-top: 5px; font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.wt-ny-rel {
  padding: 13px 13px; border-radius: 13px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
}
.wt-ny-rel.good { border-color: rgba(90, 200, 130, 0.4); background: rgba(90, 200, 130, 0.07); }
.wt-ny-rel.bad { border-color: rgba(240, 80, 70, 0.42); background: rgba(240, 80, 70, 0.07); }
.wt-ny-rel.warn { border-color: rgba(255, 160, 60, 0.42); background: rgba(255, 150, 40, 0.07); }
.wt-ny-rel-k {
  display: block; font-family: var(--g-sans); font-size: 10.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.42); margin-bottom: 4px;
}
.wt-ny-rel b { display: block; font-family: var(--g-serif); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.wt-ny-rel b i { font-style: normal; font-size: 12px; opacity: 0.6; margin-left: 3px; }
.wt-ny-rel.good b { color: #7fdca6; }
.wt-ny-rel.bad b { color: #ff8b82; }
.wt-ny-rel.warn b { color: #ffca8a; }
.wt-ny-rel u {
  display: block; text-decoration: none; font-family: var(--g-sans); font-size: 12.5px;
  line-height: 1.6; color: rgba(255, 255, 255, 0.68); word-break: keep-all;
}
.wt-ny-sj {
  display: block; margin-top: 8px; font-style: normal;
  font-family: var(--g-sans); font-size: 11.5px; font-weight: 700; color: #ffb84d;
}

/* ---- 토정비결 괘 보드 — 상괘/하괘를 쌓아 64괘를 부른다 ---- */
.wt-gweboard {
  margin: 0 16px; padding: 16px 14px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-gwe-name { text-align: center; margin-bottom: 14px; }
.wt-gwe-name b { display: block; font-family: var(--g-serif); font-size: 23px; font-weight: 700; color: #ffca8a; }
.wt-gwe-name span { display: block; margin-top: 3px; font-family: var(--g-serif); font-size: 12.5px; color: rgba(255, 255, 255, 0.42); }
.wt-gwe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wt-gwe-col {
  padding: 13px 9px; border-radius: 13px; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
}
.wt-gwe-k {
  display: block; font-family: var(--g-sans); font-size: 10.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.4); margin-bottom: 6px; letter-spacing: 0.5px;
}
.wt-gwe-han {
  display: block; font-family: var(--g-serif); font-size: 32px; font-weight: 700;
  color: #fff; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.wt-gwe-sym { display: block; font-style: normal; font-family: var(--g-serif); font-size: 12.5px; color: #ffca8a; margin-top: 4px; }
.wt-gwe-line {
  display: block; text-decoration: none; margin-top: 6px;
  font-family: var(--g-sans); font-size: 11px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.55); word-break: keep-all;
}
.wt-gwe-meta {
  display: flex; justify-content: center; gap: 14px; margin-top: 13px; padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wt-gwe-meta span { font-family: var(--g-sans); font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.wt-gwe-meta b { color: rgba(255, 255, 255, 0.75); font-weight: 700; }
/* 열두 달 달거리 칸 */
.wt-months { margin: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wt-mon-cell {
  position: relative; padding: 11px 2px; border-radius: 10px; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.wt-mon-cell.now { border-color: rgba(255, 150, 60, 0.55); background: rgba(255, 140, 40, 0.1); }
.wt-mon-cell span {
  display: block; font-family: var(--g-serif); font-size: 13.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.75); margin-bottom: 3px;
}
.wt-mon-cell.now span { color: #ffca8a; }
.wt-mon-cell i { display: block; font-style: normal; font-family: var(--g-sans); font-size: 10px; }
.wt-mon-cell u {
  display: block; text-decoration: none; margin-top: 3px;
  font-family: var(--g-sans); font-size: 9px; color: #ffb84d;
}

/* ---- 체질 보드 (운동 계열 컨텐츠) — 넘치는 것 / 모자란 것 ---- */
.wt-chejil {
  margin: 0 16px; padding: 16px 14px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-chejil-tag {
  text-align: center; font-family: var(--g-serif); font-size: 15px; font-weight: 700;
  color: #ffca8a; margin: 0 0 14px; letter-spacing: 0.5px;
}
.wt-chejil-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wt-chejil-col {
  padding: 13px 11px; border-radius: 13px; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.wt-chejil-col.over { border-color: rgba(90, 200, 130, 0.3); }
.wt-chejil-col.under { border-color: rgba(240, 80, 70, 0.35); }
.wt-chejil-col span {
  display: block; font-family: var(--g-sans); font-size: 10.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.42); margin-bottom: 5px; letter-spacing: 0.5px;
}
.wt-chejil-col b { display: block; font-family: var(--g-serif); font-size: 19px; font-weight: 700; margin-bottom: 5px; }
.wt-chejil-col i {
  display: block; font-style: normal; font-family: var(--g-sans); font-size: 11.5px;
  line-height: 1.5; color: rgba(255, 255, 255, 0.6); word-break: keep-all;
}
.wt-chejil-risk {
  margin-top: 12px; padding: 11px 12px; border-radius: 11px; text-align: left;
  background: rgba(240, 50, 63, 0.08); border: 1px solid rgba(240, 50, 63, 0.24);
}
.wt-chejil-risk span {
  display: block; font-family: var(--g-sans); font-size: 10.5px; font-weight: 700;
  color: rgba(255, 160, 150, 0.75); margin-bottom: 3px;
}
.wt-chejil-risk b { font-family: var(--g-sans); font-size: 12.5px; font-weight: 400; line-height: 1.55; word-break: keep-all; }
/* 주간 루틴 칸 */
.wt-week { margin: 0 16px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wt-wk-cell {
  padding: 10px 2px; border-radius: 9px; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.wt-wk-cell.rest { background: rgba(255, 255, 255, 0.02); border-style: dashed; }
.wt-wk-cell span {
  display: block; font-family: var(--g-serif); font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, 0.72); margin-bottom: 4px;
}
.wt-wk-cell i { display: block; font-style: normal; font-family: var(--g-sans); font-size: 9.5px; }

/* ---- 오장 저울 보드 (건강 계열 컨텐츠) — 오행을 장부로 번역 ---- */
.wt-ojboard {
  margin: 0 16px; padding: 16px 14px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-oj-row { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.wt-oj-el { font-family: var(--g-serif); font-size: 18px; font-weight: 700; width: 18px; text-align: center; }
.wt-oj-nm {
  font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.72);
  width: 74px; display: flex; align-items: center; gap: 4px;
}
.wt-oj-tag {
  font-style: normal; font-family: var(--g-serif); font-size: 10px; font-weight: 700;
  padding: 1px 4px; border-radius: 4px; line-height: 1.4;
}
.wt-oj-tag.heo { color: #ff9b93; background: rgba(240, 80, 70, 0.16); border: 1px solid rgba(240, 80, 70, 0.4); }
.wt-oj-tag.sil { color: #7fdca6; background: rgba(90, 200, 130, 0.14); border: 1px solid rgba(90, 200, 130, 0.35); }
.wt-oj-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wt-oj-bar i { display: block; height: 100%; border-radius: 999px; transition: width 1s ease 0.2s; }
.wt-oj-v { font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.5); width: 12px; text-align: right; }
.wt-oj-row.is-weak .wt-oj-nm { color: #ffb0a8; font-weight: 700; }
.wt-oj-cap {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center; font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 255, 255, 0.6);
}
.wt-oj-cap b { font-weight: 800; }
.wt-oj-cap b.heo { color: #ff9b93; }
.wt-oj-cap b.sil { color: #7fdca6; }
/* 몸의 신호 → 장부 연결 카드 */
.wt-oj-sig {
  margin: 0 16px; padding: 18px 16px; border-radius: 16px; text-align: center;
  background: rgba(14, 10, 11, 0.9); border: 1px solid rgba(240, 50, 63, 0.28);
}
.wt-oj-sig-k {
  display: block; font-family: var(--g-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.4); margin-bottom: 5px;
}
.wt-oj-sig b { display: block; font-family: var(--g-serif); font-size: 16px; color: #fff; font-weight: 700; }
.wt-oj-sig b.hot { color: #ffb0a8; font-size: 18px; }
.wt-oj-sig-arrow { display: block; margin: 10px 0 12px; color: rgba(255, 255, 255, 0.25); font-size: 15px; }
.wt-oj-sig span.lkx { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.6; word-break: keep-all; }
.wt-oj-sig .lk-note { display: block; margin-top: 10px; }

/* ---- 십이신당 보드 (띠 계열 컨텐츠) — 열두 칸 중 내 띠에만 불이 붙는다 ---- */
.wt-ddiboard {
  margin: 0 16px; padding: 16px 12px 12px;
  border-radius: 18px; background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(240, 50, 63, 0.2);
}
.wt-ddi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.wt-ddi-cell {
  position: relative; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.wt-ddi-han { font-family: var(--g-serif); font-size: 21px; font-weight: 700; color: rgba(255, 255, 255, 0.32); }
.wt-ddi-nm { font-family: var(--g-sans); font-size: 10px; color: rgba(255, 255, 255, 0.28); }
.wt-ddi-cell.me {
  border-color: rgba(255, 150, 60, 0.65);
  background: radial-gradient(90% 80% at 50% 100%, rgba(255, 140, 40, 0.3), rgba(255, 255, 255, 0.04) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 18px rgba(255, 140, 40, 0.32);
}
.wt-ddi-cell.me .wt-ddi-han { color: #ffca8a; text-shadow: 0 0 12px rgba(255, 160, 50, 0.7); }
.wt-ddi-cell.me .wt-ddi-nm { color: rgba(255, 220, 180, 0.85); }
.wt-ddi-flame {
  position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: #ffb04d; box-shadow: 0 0 8px 2px rgba(255, 150, 40, 0.85);
  animation: wt-ddi-flicker 1.9s ease-in-out infinite;
}
@keyframes wt-ddi-flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.45; } 70% { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .wt-ddi-flame { animation: none; } }
.wt-ddi-me {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
  font-family: var(--g-sans); font-size: 13px;
}
.wt-ddi-me span { color: rgba(255, 255, 255, 0.4); }
.wt-ddi-me b { font-family: var(--g-serif); font-size: 15.5px; color: #ffca8a; font-weight: 700; }
.wt-ddi-now { font-style: normal; font-size: 11.5px; color: #ffb84d; }
/* 귀인 띠 · 상극 띠 */
.wt-ddi-rel { margin: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.wt-ddi-rel-row {
  padding: 14px 15px; border-radius: 14px; text-align: left;
  background: rgba(14, 10, 11, 0.9); border: 1px solid rgba(255, 255, 255, 0.1);
}
.wt-ddi-rel-row.good { border-color: rgba(90, 200, 130, 0.35); }
.wt-ddi-rel-row.bad { border-color: rgba(240, 80, 70, 0.4); }
.wt-ddi-rel-k {
  display: block; font-family: var(--g-sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.45); margin-bottom: 5px;
}
.wt-ddi-rel-k i { font-style: normal; font-family: var(--g-serif); opacity: 0.6; margin-left: 3px; }
.wt-ddi-rel-row b {
  display: block; font-family: var(--g-serif); font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.wt-ddi-rel-row.good b { color: #7fdca6; }
.wt-ddi-rel-row.bad b { color: #ff8b82; }
.wt-ddi-rel-row span.lkx { display: block; font-size: 12.5px; line-height: 1.6; word-break: keep-all; }

.wt-bd-legend { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }
.wt-bd-legend span { font-family: var(--g-sans); font-size: 10.5px; color: rgba(255, 255, 255, 0.35); letter-spacing: 1px; }
.wt-bd-detail {
  filter: blur(7px) saturate(.55); opacity: .3;
  user-select: none; pointer-events: none;
  transition: filter .8s ease, opacity .8s ease;
}
.wt-open .wt-bd-detail { filter: none; opacity: 1; user-select: auto; pointer-events: auto; }
.wt-bd-locknote {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 12px 0 2px; padding: 10px 8px 9px; border-radius: 10px;
  font-family: var(--g-sans); text-align: center;
  background: rgba(255, 144, 62, .07); border: 1px solid rgba(255, 157, 78, .18);
}
.wt-bd-locknote b { font-size: 10.5px; color: #ffc49b; }
.wt-bd-locknote span { font-size: 9px; line-height: 1.45; color: rgba(255, 220, 198, .52); word-break: keep-all; }
.wt-open .wt-bd-locknote { display: none; }

/* ===== 미니 오라클 (구슬점·매듭풀이·커피점·원한 태우기) ===== */
.gate-mini-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 18px auto 6px; min-height: 190px; justify-content: center; }
.gate-mini-cap { min-height: 22px; margin: 4px auto 14px; font-family: var(--g-sans); font-size: 13.5px; font-weight: 700; color: rgba(255,230,200,.85); text-align: center; word-break: keep-all; }
.gate-mini .gate-oracle-btn { opacity: .35; pointer-events: none; transition: opacity .3s; }
.gate-mini .gate-oracle-btn.on { opacity: 1; pointer-events: auto; }
/* 구슬점 */
.gm-bowl { position: relative; width: 148px; height: 110px; border: 0; cursor: pointer; background: transparent; }
.gm-bowl i { position: absolute; inset: 0; border-radius: 0 0 999px 999px / 0 0 150px 150px;
  background: radial-gradient(120% 90% at 50% -10%, #8a6020 0%, #d8a44a 34%, #6d4a17 78%, #4a3110 100%);
  border: 2px solid rgba(255,214,140,.5); border-top-width: 4px;
  box-shadow: inset 0 8px 18px rgba(0,0,0,.5), 0 14px 28px rgba(0,0,0,.55), 0 0 26px rgba(216,164,74,.22); }
.gm-bowl span { position: absolute; inset: 0; display: grid; place-items: center; font: 900 26px var(--g-sans); color: rgba(255,236,200,.85); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.gm-bowl.ring i { animation: gmRing .45s ease; }
.gm-bowl.done { cursor: default; }
@keyframes gmRing { 0% { transform: none; } 30% { transform: translateY(3px) scaleX(1.03); } 60% { transform: translateY(-2px); } 100% { transform: none; } }
.gm-tray { display: flex; gap: 9px; min-height: 34px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 300px; }
.gm-bead { width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #ffffff88 0%, transparent 42%), var(--bc, #fbc400);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.5);
  animation: gmPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes gmPop { from { transform: translateY(-46px) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
/* 매듭풀이 */
.gm-knot { position: relative; width: 150px; height: 150px; border: 0; cursor: pointer; background: transparent; --loose: 0; }
.gm-knot b { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--g-serif); font-weight: 700; color: #ffd9cf;
  font-size: calc(64px + var(--loose) * 10px); opacity: calc(1 - var(--loose) * .25);
  text-shadow: 0 0 calc(14px + var(--loose) * 26px) rgba(240,80,63,.65);
  transition: font-size .35s ease, opacity .35s ease; }
.gm-knot-rope { position: absolute; inset: 12px; border-radius: 50%; pointer-events: none;
  border: 3px dashed rgba(240,120,90,calc(.55 - var(--loose) * .35));
  transform: rotate(calc(var(--loose) * 160deg)) scale(calc(1 + var(--loose) * .18));
  transition: transform .4s ease, border-color .4s ease; }
.gm-knot.tug b { animation: gmTug .4s ease; }
@keyframes gmTug { 30% { transform: translateX(-4px) rotate(-3deg); } 60% { transform: translateX(3px) rotate(2deg); } }
.gm-knot.open b { color: #a9f0c0; text-shadow: 0 0 34px rgba(110,230,150,.8); animation: gmOpen .8s ease; }
.gm-knot.open .gm-knot-rope { border-style: solid; border-color: rgba(110,230,150,.35); }
@keyframes gmOpen { 0% { transform: scale(.85); } 55% { transform: scale(1.14); } 100% { transform: none; } }
/* 커피점 */
.gm-cup { position: relative; width: 158px; height: 158px; border: 0; cursor: pointer; border-radius: 50%; --spin: 0deg;
  background: radial-gradient(circle at 50% 44%, #2a1a10 0%, #1b110a 58%, #0f0a06 72%, #efe4d2 73%, #cdbfa8 86%, #b3a690 100%);
  box-shadow: 0 16px 34px rgba(0,0,0,.6), inset 0 0 0 3px rgba(255,236,200,.12); }
.gm-grounds { position: absolute; inset: 22%; border-radius: 50%; transform: rotate(var(--spin)); transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.gm-grounds u { position: absolute; border-radius: 60% 40% 55% 45%; background: rgba(120,78,42,.75); filter: blur(1px); }
.gm-grounds u:nth-child(1) { width: 34%; height: 26%; left: 8%; top: 12%; }
.gm-grounds u:nth-child(2) { width: 24%; height: 30%; right: 6%; top: 24%; }
.gm-grounds u:nth-child(3) { width: 30%; height: 22%; left: 22%; bottom: 8%; }
.gm-grounds u:nth-child(4) { width: 18%; height: 18%; right: 20%; bottom: 20%; }
.gm-cup.swirl .gm-grounds u { filter: blur(3px); }
.gm-cup.settle .gm-grounds { opacity: .28; filter: blur(2px); }
.gm-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--g-serif); font-size: 30px; font-weight: 700;
  color: #ffdfae; text-shadow: 0 0 18px rgba(216,164,74,.75); opacity: 0; transform: scale(.6); transition: opacity .7s ease .15s, transform .7s ease .15s; font-style: normal; }
.gm-cup.settle .gm-mark { opacity: 1; transform: none; }
/* 원한 태우기 */
.gm-paper { position: relative; width: min(78vw, 300px); min-height: 108px; padding: 22px 18px; --burn: 0;
  display: grid; place-items: center; border-radius: 6px;
  background: linear-gradient(175deg, #efe6d2, #d9cbae); border: 1px solid rgba(90,60,20,.4);
  box-shadow: 0 12px 26px rgba(0,0,0,.55);
  clip-path: inset(calc(var(--burn) * 96%) 0 0 0 round 6px);
  transition: clip-path .1s linear; }
.gm-paper span { font-family: var(--g-serif); font-size: 15.5px; font-weight: 700; line-height: 1.6; color: #4a3418; text-align: center; word-break: keep-all; }
.gm-paper .gm-flame { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: calc(18px + var(--burn) * 22px);
  font-style: normal; opacity: calc(.25 + var(--burn) * .75); filter: drop-shadow(0 0 12px rgba(255,120,40,.8)); transition: font-size .1s linear; }
.gm-paper.ash { clip-path: inset(100% 0 0 0); }
.gm-paper.ash::after { content: '…'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: rgba(255,255,255,.3); }
.gm-holdbtn { padding: 13px 26px; border-radius: 999px; border: 1px solid rgba(240,120,63,.5); cursor: pointer;
  background: rgba(216,60,31,.16); color: #ffc9a8; font: 800 14px var(--g-sans);
  -webkit-user-select: none; user-select: none; touch-action: none; }
@media (prefers-reduced-motion: reduce) { .gm-bead, .gm-bowl.ring i, .gm-knot.tug b, .gm-knot.open b { animation: none; } }
/* 결과 헤더 미니 오라클 배지 */
.wt-oracle-mini { margin: 10px auto 0; max-width: 320px; padding: 10px 14px; border-radius: 12px; text-align: center;
  background: rgba(216,130,31,.1); border: 1px solid rgba(230,170,90,.32);
  font-family: var(--g-sans); font-size: 11.5px; line-height: 1.6; color: rgba(255,229,200,.8); word-break: keep-all; }
.wt-oracle-mini b { color: #ffd98f; font-weight: 800; margin-right: 6px; }

/* ===== 한자 마퀴 인터스티셜 ===== */
.wt-marq { position: relative; overflow: hidden; padding: 34px 0 26px; }
.wt-marq-track {
  display: flex; gap: 34px; width: max-content;
  animation: wtMarq 16s linear infinite;
}
.wt-marq-track b {
  font-family: var(--g-serif); font-size: 64px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(216, 31, 42, 0.55);
  text-shadow: 0 0 34px rgba(216, 31, 42, 0.25);
  white-space: nowrap;
}
.wt-marq-track b:nth-child(odd) { color: rgba(216, 31, 42, 0.28); -webkit-text-stroke: 0; }
@keyframes wtMarq { to { transform: translateX(-50%); } }
.wt-marq-sub { text-align: center; font-family: var(--g-sans); font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; }

/* ===== 모자이크 잠금 텍스트 (복채 해제 시 공개) =====
   filter:blur는 요소마다 합성 레이어를 만들어 스크롤 잭의 주원인이었다.
   텍스트는 color:transparent + text-shadow 블러로 대체 → 레이어/래스터 비용 0. */
.lkx {
  color: transparent !important;
  text-shadow: 0 0 8px rgba(222, 224, 232, 0.5);
  user-select: none; pointer-events: none;
  opacity: 0.92;
  transition: color 0.9s ease, text-shadow 0.9s ease, opacity 0.9s ease;
}
.wt-open .lkx { color: inherit !important; text-shadow: none; opacity: 1; user-select: auto; pointer-events: auto; }
/* 배경/도형이 있는 잠금 요소(바·구슬·타일)는 글자기법이 안 통하므로 가벼운 blur 유지 */
.dl-bar.lkx, .wt-ball.lkx, .dl-field-bar.lkx, .dl-tile b.lkx, .wt-wmetric i.lkx, .wt-mbti-track.lkx {
  color: transparent !important; text-shadow: none;
  filter: blur(7px) saturate(0.6); opacity: 0.9;
  transition: filter 0.8s ease, opacity 0.8s ease;
}
.wt-open .dl-bar.lkx, .wt-open .wt-ball.lkx, .wt-open .dl-field-bar.lkx, .wt-open .dl-tile b.lkx, .wt-open .wt-wmetric i.lkx, .wt-open .wt-mbti-track.lkx { filter: none; }
/* 잠금 안내 칩 */
.lk-note {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--g-sans); font-style: normal; font-size: 10.5px; font-weight: 800;
  color: #ffc9a3; letter-spacing: 0.3px;
  padding: 3px 9px; border-radius: 999px; margin-top: 6px;
  background: rgba(255, 130, 40, 0.13); border: 1px solid rgba(255, 150, 60, 0.4);
  white-space: nowrap;
}
.wt-open .lk-note { display: none; }
/* 카드 본문 부분 잠금 */
.wt-sec-b .lkx { display: inline; }
.wt-destiny-note { margin-top: 14px; text-align: center; }
.wt-destiny-note .lk-note { font-size: 11.5px; padding: 6px 14px; }

/* ===== 재물 그래프 ===== */
.wt-wchart {
  margin: 12px 16px; padding: 18px 16px 14px;
  border-radius: 18px;
  background: radial-gradient(130% 100% at 50% 0%, rgba(216, 31, 42, 0.14), transparent 55%), rgba(12, 9, 10, 0.72);
  border: 1px solid rgba(240, 50, 63, 0.3);
}
.wt-wchart-t { font-family: var(--g-sans); font-size: 14.5px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.wt-wchart-basis {
  margin: 0 0 7px; font-family: var(--g-sans); font-size: 10.5px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.43); word-break: keep-all;
}
.wt-wchart-svg { width: 100%; height: auto; display: block; }
.wt-wmetrics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px;
  margin-top: 8px; padding: 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--g-sans);
}
.wt-wmetric > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.wt-wmetric span { font-size: 11px; color: rgba(255, 255, 255, 0.66); }
.wt-wmetric b { font-size: 11px; color: #fff; }
.wt-wmetric i { display: block; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.wt-wmetric i em { display: block; height: 100%; border-radius: inherit; }
.wt-wchart-tags { display: flex; gap: 8px; margin-top: 12px; }
.wt-wtag {
  flex: 1; padding: 10px 11px; border-radius: 12px;
  font-family: var(--g-sans); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.wt-wtag b { display: block; font-size: 12px; margin-bottom: 5px; }
.wt-wtag.bad b { color: #ff8d95; }
.wt-wtag.good b { color: #ffd34d; }
.wt-wtag span { display: block; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); word-break: keep-all; }
@media (max-width: 370px) {
  .wt-wchart { margin-right: 10px; margin-left: 10px; padding-right: 12px; padding-left: 12px; }
  .wt-wchart-tags { flex-direction: column; }
}

/* ===== 운명의 상대 카드 ===== */
.wt-destiny {
  margin: 14px 22px; padding: 26px 20px 22px;
  border-radius: 20px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(150, 12, 24, 0.55), rgba(52, 6, 10, 0.9) 58%, rgba(20, 4, 6, 0.98)),
    #180406;
  border: 1px solid rgba(240, 50, 63, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(216, 31, 42, 0.2);
}
.wt-destiny::before {
  content: '緣'; position: absolute; right: -14px; bottom: -26px;
  font-family: var(--g-serif); font-size: 130px; color: rgba(255, 255, 255, 0.05); pointer-events: none;
}
.wt-destiny-t { font-family: var(--g-serif); font-size: 20px; font-weight: 700; color: #ffe9ea; line-height: 1.45; margin-bottom: 16px; }
.wt-destiny-t em { font-style: normal; color: #ffb1a6; }
.wt-destiny-face {
  width: 168px; height: 208px; margin: 0 auto 18px;
  border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #2a3140 0%, #1a1f2a 55%, #10131b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
/* 티저 — 실제 초상을 아주 흐릿하게 살짝 비친다(누군지 못 알아볼 정도, 궁금증만) */
.wt-destiny-peek {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(15px) brightness(0.7) saturate(0.9); transform: scale(1.12);
  opacity: 0.9;
}
.wt-destiny-face i {
  position: absolute; inset: 0;
  background: radial-gradient(72% 56% at 50% 42%, transparent 28%, rgba(12, 14, 20, 0.62) 100%);
}
.wt-destiny-face.filled { background: #10131b; }
.wt-destiny-face.filled .wt-destiny-peek { display: none; }
.wt-destiny-face.filled i { display: none; }
.wt-destiny-face.filled img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dpReveal 0.9s ease both; }
@keyframes dpReveal { from { opacity: 0; filter: blur(14px); transform: scale(1.04); } to { opacity: 1; filter: none; transform: none; } }

/* ===== 행운의 수 (로또볼) ===== */
/* ══ 오늘의 운세 전용 심플 포맷 ══ */
.wt-daily { padding-top: calc(env(safe-area-inset-top, 0px) + 66px); }
/* 오늘의 운세 — 사이트 톤(다크·레드·골드). 캐릭터 말풍선(.wt-say) 사이에 놓이는 비주얼 블록. */
.dl-orbrow { display: flex; align-items: center; gap: 18px; margin: 2px 22px 18px; }
.dl-orb { position: relative; width: 116px; height: 116px; flex: none; }
.dl-orb svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.dl-orb-bg { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 8; }
.dl-orb-fg { fill: none; stroke: var(--g-red-bright); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; transition: stroke-dashoffset 1s ease; filter: drop-shadow(0 0 8px rgba(240,50,63,.65)); }
.dl-orb-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dl-orb-in b { font-family: var(--g-sans); font-size: 38px; font-weight: 900; color: #ffca8a; line-height: 1; text-shadow: 0 2px 12px rgba(255,150,50,.35); }
.dl-orb-in span { font-family: var(--g-sans); font-size: 11.5px; font-weight: 700; color: var(--g-red-bright); margin-top: 3px; }
.dl-orb-cap { font-family: var(--g-serif); font-size: 17px; line-height: 1.5; color: #fff; }
.dl-orb-cap span { display: block; margin-top: 6px; font-family: var(--g-sans); font-size: 12px; color: rgba(255,255,255,.45); }
/* 총평 나머지(블러 해제형) — 말풍선 아래 이어지는 유료 문단 */
.dl-say-more { margin: -12px 22px 18px; padding: 0 2px; }
.dl-say-more p { font-family: var(--g-serif); font-size: 16px; line-height: 1.75; color: #efeff3; word-break: keep-all; }
.dl-oneline { margin: 18px 20px; padding: 18px 20px; border-radius: 16px; position: relative;
  background: rgba(255,255,255,.05); border: 1px solid rgba(120,180,210,.28);
  font-family: var(--g-serif); font-size: 16px; line-height: 1.6; color: #eaf6fb; text-align: center; word-break: keep-all; }
.dl-q { color: rgba(240,80,90,.55); font-size: 22px; font-family: var(--g-serif); }
.dl-qr { margin-left: 2px; }
.dl-block { margin: 4px 22px 20px; padding: 16px 16px 14px; border-radius: 16px; background: rgba(16,12,14,.6); border: 1px solid rgba(240,50,63,.18); }
.dl-note { margin-top: 12px; }
/* 분야별 오늘 운 */
.dl-fields { display: flex; flex-direction: column; gap: 14px; }
.dl-field-h { display: flex; align-items: center; gap: 8px; }
.dl-field-ic { flex: none; width: 15px; height: 15px; color: var(--g-red-bright); }
.dl-field-ic svg { width: 100%; height: 100%; display: block; }
.dl-field-l { flex: none; width: 48px; font-family: var(--g-sans); font-size: 12.5px; font-weight: 700; color: #e8d8c4; }
.dl-field-bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.09); overflow: hidden; }
.dl-field-bar em { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg,#8f141c,var(--g-red-bright)); }
.dl-field-s { flex: none; width: 26px; text-align: right; font-family: var(--g-sans); font-size: 12px; font-weight: 800; color: #ffca8a; }
.dl-field-b { margin-top: 6px; padding-left: 23px; font-family: var(--g-serif); font-size: 14px; line-height: 1.7; color: #e7e2dc; word-break: keep-all; }
/* 오늘의 행동 지침 */
.dl-acts { display: flex; flex-direction: column; gap: 10px; }
.dl-act { padding: 12px 14px; border-radius: 12px; }
.dl-act.do { background: rgba(90,160,120,.12); border: 1px solid rgba(120,200,150,.3); }
.dl-act.dont { background: rgba(200,90,90,.1); border: 1px solid rgba(220,110,110,.28); }
.dl-act-t { font-family: var(--g-sans); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.dl-act.do .dl-act-t { color: #96e0b0; } .dl-act.dont .dl-act-t { color: #f0a5a5; }
.dl-act ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dl-act li { position: relative; padding-left: 14px; font-family: var(--g-serif); font-size: 14px; line-height: 1.6; color: #dceaf1; word-break: keep-all; }
.dl-act li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; }
.dl-act.do li::before { background: #96e0b0; } .dl-act.dont li::before { background: #f0a5a5; }
.dl-slots { display: flex; flex-direction: column; gap: 11px; }
.dl-slot { display: flex; align-items: center; gap: 11px; }
.dl-slot-l { flex: none; width: 34px; font-family: var(--g-sans); font-size: 13px; font-weight: 700; color: #e8d8c4; }
.dl-bar { flex: 1; height: 9px; border-radius: 5px; background: rgba(255,255,255,.09); overflow: hidden; }
.dl-bar em { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#8f141c,var(--g-red-bright)); }
.dl-slot-s { flex: none; width: 30px; text-align: right; font-family: var(--g-sans); font-size: 13px; font-weight: 800; color: #ffca8a; }
.dl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(240,50,63,.18); }
.dl-tile span { font-family: var(--g-sans); font-size: 11px; color: rgba(255,255,255,.5); }
.dl-tile b { font-family: var(--g-serif); font-size: 16px; color: #ffca8a; }
.dl-pt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
.dl-pt.good { background: rgba(90,160,120,.14); border: 1px solid rgba(120,200,150,.35); }
.dl-pt.bad { background: rgba(200,90,90,.12); border: 1px solid rgba(220,110,110,.32); }
.dl-pt b { font-family: var(--g-sans); font-size: 12px; font-weight: 800; }
.dl-pt.good b { color: #96e0b0; } .dl-pt.bad b { color: #f0a5a5; }
.dl-pt span { font-family: var(--g-sans); font-size: 13.5px; color: #efeae4; line-height: 1.5; }
.dl-done { text-align: center; padding: 20px; }
.dl-done-t { font-family: var(--g-serif); font-size: 18px; color: #fff; margin-bottom: 6px; }
.dl-done-s { font-family: var(--g-sans); font-size: 13px; color: rgba(255,255,255,.55); }
.wt-paywall-daily { border-color: rgba(240,50,63,.4); }

/* MBTI 검사 결과 카드 — 사이트 톤(먹빛·붉은 등불·금박) */
.wt-mbti { margin: 18px 20px 26px; padding: 0; border-radius: 24px; text-align: left; position: relative; overflow: hidden;
  font-family: var(--g-sans); color: #f6ecdf;
  background:
    radial-gradient(100% 42% at 50% 0%, rgba(216,31,42,.2), transparent 72%),
    linear-gradient(165deg, rgba(37,23,24,.97), rgba(16,12,12,.98));
  border: 1px solid rgba(223,179,91,.36);
  box-shadow: 0 18px 52px rgba(70,18,22,.35), inset 0 1px 0 rgba(255,236,214,.1); }
.wt-mbti::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 24px 24px; }
.wt-mbti-head { min-height: 58px; padding: 17px 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; border-bottom: 1px solid rgba(223,179,91,.16); }
.wt-mbti-cap { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.wt-mbti-cap span { font-size: 9px; font-weight: 800; letter-spacing: 2.2px; color: rgba(223,179,91,.55); }
.wt-mbti-cap b { font-size: 12px; font-weight: 700; letter-spacing: -.1px; color: rgba(255,236,214,.85); }
.wt-mbti-seal { flex: none; padding: 5px 8px 4px; border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: 1.2px;
  color: #ffd98f; border: 1px solid rgba(223,179,91,.35); background: rgba(216,130,31,.12); }
.wt-mbti-hero { position: relative; padding: 24px 20px 22px; text-align: center; }
.wt-mbti-type { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.wt-mbti-type span { display: flex; align-items: center; justify-content: center; width: 50px; height: 58px; border-radius: 12px;
  font-size: 32px; font-weight: 900; line-height: 1; color: #fff2e2;
  background: linear-gradient(155deg, rgba(216,31,42,.32), rgba(120,20,26,.12));
  border: 1px solid rgba(240,90,80,.42);
  text-shadow: 0 0 20px rgba(240,50,63,.55); box-shadow: inset 0 1px 0 rgba(255,236,214,.14), 0 8px 20px rgba(100,20,26,.2); }
.wt-mbti-title { display: block; margin-bottom: 6px; font-family: var(--g-serif); font-size: 20px; line-height: 1.35; color: #ffe9d3; }
.wt-mbti-desc { max-width: 310px; margin: 0 auto; font-size: 12px; line-height: 1.65; color: rgba(255,231,205,.66); word-break: keep-all; }
.wt-mbti-meta { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.wt-mbti-meta span { padding: 5px 9px; border-radius: 999px; font-size: 9.5px; color: rgba(255,229,200,.7);
  background: rgba(223,179,91,.08); border: 1px solid rgba(223,179,91,.16); }
.wt-mbti-meta b { color: #ffe1b5; }
.wt-mbti-section-head { margin: 0 20px; padding: 15px 0 10px; display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid rgba(223,179,91,.15); }
.wt-mbti-section-head b { font-size: 12.5px; color: rgba(255,240,222,.92); }
.wt-mbti-section-head span { font-size: 8.5px; color: rgba(228,196,150,.42); }
.wt-mbti-axes { display: flex; flex-direction: column; gap: 16px; margin: 0 20px 18px; }
.wt-mbti-ax { display: block; }
.wt-mbti-axis-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; line-height: 1; }
.wt-mbti-axis-label span { font-size: 10px; font-weight: 700; color: rgba(240,220,195,.54); }
.wt-mbti-axis-label small { font-size: 8px; letter-spacing: 1px; color: rgba(228,196,150,.32); }
.wt-mbti-axis-values { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.wt-mbti-axis-values > span { width: 48%; display: flex; align-items: baseline; gap: 5px; color: rgba(235,215,190,.42); }
.wt-mbti-axis-values > span:last-child { justify-content: flex-end; }
.wt-mbti-axis-values b { font-size: 16px; font-weight: 900; color: inherit; }
.wt-mbti-axis-values small { font-size: 9.5px; color: inherit; }
.wt-mbti-axis-values em { margin-left: auto; font-size: 11px; font-weight: 800; font-style: normal; color: inherit; }
.wt-mbti-axis-values > span:last-child em { margin: 0; }
.wt-mbti-axis-values > span.is-on { color: #ffe6c4; }
.wt-mbti-axis-values > span.is-on b { text-shadow: 0 0 14px rgba(240,150,60,.55); }
.wt-mbti-track { display: flex; width: 100%; height: 7px; position: relative; overflow: visible; border-radius: 99px;
  background: rgba(255,255,255,.055); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.wt-mbti-track i, .wt-mbti-track em { display: block; height: 100%; font-style: normal; }
.wt-mbti-track i { border-radius: 99px 0 0 99px; background: linear-gradient(90deg, rgba(160,64,32,.45), #dfb35b); }
.wt-mbti-track em { border-radius: 0 99px 99px 0; background: linear-gradient(90deg, #dfb35b, rgba(160,64,32,.45)); }
.wt-mbti-track u { position: absolute; top: 50%; width: 2px; height: 13px; transform: translate(-1px,-50%); border-radius: 2px;
  background: #ffd98f; box-shadow: 0 0 8px rgba(255,200,120,.8); text-decoration: none; }
.wt-mbti-note { margin: 0 20px 18px; padding: 11px 12px; border-radius: 10px; font-size: 9.5px; line-height: 1.55;
  color: rgba(235,215,190,.5); background: rgba(255,255,255,.025); border: 1px solid rgba(223,179,91,.12); word-break: keep-all; }
.wt-mbti-note b { color: rgba(255,231,200,.75); }
.wt-mbti-next { position: relative; padding: 16px 20px 18px; text-align: center;
  background: linear-gradient(90deg, rgba(216,31,42,.13), rgba(223,179,91,.16), rgba(216,31,42,.13));
  border-top: 1px solid rgba(223,179,91,.2); }
.wt-mbti-next span { display: block; margin-bottom: 6px; font-size: 8.5px; font-weight: 900; letter-spacing: 1.4px; color: #dfb35b; }
.wt-mbti-next p { margin: 0; font-size: 11.5px; line-height: 1.65; color: rgba(255,229,205,.68); word-break: keep-all; }
.wt-mbti-next b { color: #ffe6c4; }
.wt-generic-preview.is-mbti-hidden { display: none; }

/* MBTI 전용 무료 리딩 — 한 문장 판정 + 잠긴 분석 목차 (먹빛·금박 톤) */
.wt-mbti-preview { margin: 0 20px 28px; overflow: hidden; border-radius: 20px; font-family: var(--g-sans);
  color: #f6ecdc; background: linear-gradient(160deg, rgba(33,22,21,.96), rgba(14,11,11,.98));
  border: 1px solid rgba(223,179,91,.28); box-shadow: 0 16px 38px rgba(65,20,20,.3); }
.wt-mbti-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px;
  border-bottom: 1px solid rgba(223,179,91,.14); }
.wt-mbti-preview-head span { font-size: 8px; font-weight: 900; letter-spacing: 1.5px; color: #dfb35b; }
.wt-mbti-preview-head b { font-size: 11px; color: rgba(250,232,208,.78); }
.wt-mbti-verdict { position: relative; margin: 0; padding: 21px 18px 19px 31px; font-family: var(--g-serif); font-size: 16px;
  font-weight: 650; line-height: 1.72; color: #f8ecd9; word-break: keep-all; }
.wt-mbti-verdict::before { content: '“'; position: absolute; left: 14px; top: 13px; font-size: 31px; line-height: 1; color: rgba(223,179,91,.5); }
.wt-mbti-cross { margin: 0 16px 17px; padding: 13px 14px; border-radius: 12px; font-size: 12px; line-height: 1.75;
  color: rgba(250,232,206,.78); background: rgba(216,31,42,.06); border: 1px solid rgba(223,179,91,.16);
  border-left: 3px solid rgba(223,179,91,.5); word-break: keep-all; }
.wt-mbti-evidence { display: grid; grid-template-columns: 1fr 18px 1.35fr; align-items: center; gap: 7px; margin: 0 16px 19px; padding: 13px;
  border-radius: 12px; background: rgba(223,179,91,.06); border: 1px solid rgba(223,179,91,.14); }
.wt-mbti-evidence > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wt-mbti-evidence > span:last-child { text-align: right; }
.wt-mbti-evidence small { font-size: 8.5px; color: rgba(233,209,175,.5); }
.wt-mbti-evidence b { overflow: hidden; font-size: 11.5px; color: #ffe4bd; white-space: nowrap; text-overflow: ellipsis; }
.wt-mbti-evidence i { font-size: 12px; font-style: normal; text-align: center; color: rgba(228,196,150,.4); }
.wt-mbti-lock-title { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 10px;
  border-top: 1px solid rgba(223,179,91,.14); }
.wt-mbti-lock-title b { font-size: 11.5px; color: rgba(252,238,218,.9); }
.wt-mbti-lock-title span { font-size: 8.5px; color: rgba(228,196,150,.46); }
.wt-mbti-lock-list { list-style: none; margin: 0; padding: 0 16px 13px; }
.wt-mbti-lock-list li { min-height: 55px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px;
  border-top: 1px solid rgba(255,255,255,.045); }
.wt-mbti-lock-list li:first-child { border-top: 0; }
.wt-mbti-lock-list em { font-size: 9px; font-style: normal; font-weight: 800; color: rgba(223,179,91,.6); }
.wt-mbti-lock-list span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wt-mbti-lock-list b { font-size: 11px; color: rgba(250,235,212,.8); }
.wt-mbti-lock-list small { overflow: hidden; font-size: 8.5px; color: rgba(230,210,185,.42); white-space: nowrap; text-overflow: ellipsis; }
.wt-mbti-lock-list u { padding: 3px 5px; border-radius: 4px; font-size: 6.5px; font-weight: 900; letter-spacing: .7px; text-decoration: none;
  color: rgba(255,190,120,.55); background: rgba(216,130,31,.1); border: 1px solid rgba(223,179,91,.16); }
.wt-mbti-preview-note { margin: 0; padding: 12px 16px 14px; font-size: 8.5px; line-height: 1.55; text-align: center;
  color: rgba(230,210,185,.44); background: rgba(255,255,255,.018); border-top: 1px solid rgba(223,179,91,.12); word-break: keep-all; }

/* 결제 후 MBTI 전체 리딩 */
.wt-mbti-paid { margin: 0 14px; padding: 6px 0 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(216,31,42,.06), transparent 36%); }
.wt-mbti-paid .wt-div { padding-top: 30px; }
.wt-mbti-paid .wt-div span { color: #dfb35b; text-shadow: 0 0 14px rgba(223,179,91,.35); }
.wt-mbti-paid .wt-div::before, .wt-mbti-paid .wt-div::after {
  background: linear-gradient(90deg, transparent, rgba(223,179,91,.42), transparent); }
.wt-mbti-paid .wt-sec { margin: 0 8px 10px; padding: 18px; border: 1px solid rgba(223,179,91,.14); border-radius: 14px;
  background: rgba(255,255,255,.025); }
.wt-mbti-paid .wt-sec-t { color: #ffeed8; }
.wt-mbti-paid .wt-sec-ic { color: #dfb35b; }
.wt-mbti-paid .wt-sec-b { color: rgba(245,228,205,.78); white-space: pre-line; }
@media (max-width: 360px) {
  .wt-mbti { margin-left: 14px; margin-right: 14px; }
  .wt-mbti-head, .wt-mbti-hero { padding-left: 16px; padding-right: 16px; }
  .wt-mbti-type span { width: 45px; height: 54px; font-size: 29px; }
  .wt-mbti-section-head, .wt-mbti-axes, .wt-mbti-note { margin-left: 16px; margin-right: 16px; }
  .wt-mbti-preview { margin-left: 14px; margin-right: 14px; }
  .wt-mbti-verdict { font-size: 15px; }
}
/* MBTI 문항 진행 표시 */
.vn-prog { font-family: var(--g-sans); font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.5); margin-bottom: 8px; text-align: center; }
.mbti-prog { display: flex; align-items: center; gap: 8px; max-width: 320px; margin: 0 auto 16px; }
.mbti-prog span { font-family: var(--g-sans); font-size: 11px; font-weight: 800; color: rgba(255,220,180,.8); }
.mbti-prog i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.mbti-prog em { display: block; height: 100%; background: linear-gradient(90deg,#b0762a,#dfb35b); transition: width .35s ease; }
.mbti-scene { font-family: var(--g-sans); font-size: 13px; color: rgba(245,225,200,.62); text-align: center; margin-bottom: 6px; font-style: italic; word-break: keep-all; }
.mbti-q { font-family: var(--g-serif); font-size: 20px; line-height: 1.5; text-align: center; margin-bottom: 20px; word-break: keep-all; }
.mbti-qico { display: inline-flex; margin-bottom: 8px; color: #ecc98a; }
.mbti-qico .ic { width: 32px; height: 32px; }
.mbti-cards { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; width: 100%; }
.mbti-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.055); border: 1.5px solid rgba(150,120,210,.32);
  color: #efeaff; font-family: var(--g-sans); text-align: left; transition: transform .18s, border-color .18s, background .18s, opacity .25s; }
.mbti-card:hover { border-color: rgba(180,150,240,.6); background: rgba(150,120,210,.14); transform: translateY(-2px); }
.mbti-card:hover .mbti-card-ico { color: #d9c7ff; border-color: rgba(180,150,240,.5); }
.mbti-card.sel { border-color: #b79cf0; background: rgba(150,120,210,.28); transform: scale(1.02); box-shadow: 0 8px 26px rgba(120,90,180,.4); }
.mbti-card.sel .mbti-card-ico { color: #efeaff; background: rgba(150,120,210,.3); border-color: #b79cf0; }
.mbti-card.dim { opacity: .4; transform: scale(.97); }
.mbti-card-ico { flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(150,120,210,.22); color: #b8a4e8; transition: color .18s, border-color .18s, background .18s; }
.mbti-card-ico .ic { width: 26px; height: 26px; }
.mbti-card-ico i { font-style: normal; opacity: .5; }
.mbti-card-t { flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.4; }

.wt-lotto { margin: 12px 20px; padding: 20px 16px 18px; border-radius: 14px; text-align: center;
  background: rgba(20, 14, 8, 0.66); border: 1px solid rgba(230, 170, 90, 0.32); }
.wt-lotto-t { font-family: var(--g-serif); font-size: 17px; font-weight: 700; color: #ffe6c4; margin-bottom: 6px; }
.wt-lotto-sub { font-family: var(--g-sans); font-size: 11.5px; color: rgba(255, 230, 196, 0.55); margin-bottom: 14px; }
.wt-lotto-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.wt-lotto-row { display: flex; align-items: center; gap: 10px; justify-content: center; }
.wt-lotto-lb { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-family: var(--g-sans); font-size: 12px; font-weight: 800; color: #ffe6c4;
  background: rgba(216, 130, 31, 0.18); border: 1px solid rgba(230, 170, 90, 0.4); }
.wt-lotto-balls { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.wt-ball {
  flex: none; width: clamp(28px, 8vw, 40px); height: clamp(28px, 8vw, 40px); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--g-sans); font-size: clamp(12.5px, 3.6vw, 16.5px); font-weight: 800; color: #1a1206;
  background: radial-gradient(circle at 32% 28%, #fff8 0%, transparent 42%), var(--bc, #fbc400);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.45);
}
/* 로또 배지 — 이게 '로또 번호'임을 분명히 */
.wt-lotto-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px;
  padding: 4px 13px; border-radius: 999px;
  background: rgba(216, 130, 31, 0.16); border: 1px solid rgba(230, 170, 90, 0.45);
  color: #ffd98f; font-family: var(--g-sans); font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
}
.rt .wt-lotto-badge, .book .wt-lotto-badge { background: rgba(200, 140, 42, 0.12); color: #8a6020; }
.wt-ball-plus { font-family: var(--g-sans); font-size: 18px; font-weight: 800; color: rgba(255, 230, 196, 0.6); margin: 0 2px; }
.wt-lotto .wt-destiny-note { margin-top: 14px; }
/* 티저 — 다섯 게임(A~E) 모두 노출, 게임마다 일부 수만 공개 */
.wt-lotto-why {
  margin: 0 auto 14px; padding: 9px 12px; max-width: 300px; border-radius: 10px;
  font-family: var(--g-sans); font-size: 11.5px; line-height: 1.55;
  color: rgba(255, 230, 196, 0.66); word-break: keep-all;
  background: rgba(216, 130, 31, 0.08); border: 1px solid rgba(230, 170, 90, 0.2);
}
.wt-lotto-why b { font-weight: 800; color: #ffe6c4; }
.wt-lotto-why b.sil { color: #7fdca6; }
.wt-lotto-list.teaser { gap: 9px; }
.wt-lotto-list.teaser .wt-lotto-row { padding: 3px 0; }
.wt-lotto .wt-bd-locknote { margin-top: 15px; }
/* 명서(밝은 종이)용 톤 */
.rt .wt-lotto, .book .wt-lotto { background: rgba(230, 170, 90, 0.08); border-color: rgba(160, 110, 40, 0.3); }
.rt .wt-lotto-t, .book .wt-lotto-t { color: #6a4a1a; }
.rt .wt-lotto-sub, .book .wt-lotto-sub { color: #9a8062; }

/* ===== 유저가 올린 사진 (판독 중 프레임) — 무료 구간 신뢰 ===== */
.wt-userphoto { margin: 8px 20px 4px; text-align: center; }
.wt-userphoto-frame {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1/1;
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 210, 160, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.wt-userphoto-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-userphoto-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,0) 60%, rgba(0,0,0,0.35)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.06) 3px 4px);
  mix-blend-mode: multiply;
}
.wt-userphoto-scan {
  position: absolute; left: 0; right: 0; height: 26%; top: -26%;
  background: linear-gradient(180deg, transparent, rgba(255, 200, 120, 0.28), transparent);
  box-shadow: 0 0 22px rgba(255, 190, 100, 0.5);
  animation: wtScan 2.6s ease-in-out infinite;
}
@keyframes wtScan { 0% { top: -26%; } 55% { top: 100%; } 100% { top: 100%; } }
.wt-userphoto-cap { margin-top: 11px; font-family: var(--g-sans); font-size: 12.5px; color: rgba(255, 225, 200, 0.7); }

/* ===== 관상도 (업로드 사진 실제 분석) ===== */
.wt-gwansang { margin: 8px 20px 20px; padding: 18px; border-radius: 14px;
  background: rgba(14, 11, 12, 0.62); border: 1px solid rgba(255, 210, 160, 0.22); text-align: center; }
.wt-gwansang-t { font-family: var(--g-serif); font-size: 17px; font-weight: 700; color: #ffe9d6; letter-spacing: 1px; margin-bottom: 14px; }
.wt-gwansang-t em { font-style: normal; color: #e3b877; font-size: 14px; margin-left: 6px; }
.wt-gwansang-img { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1/1;
  border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #1c1a1e, #101013);
  border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; }
.wt-gwansang-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dpReveal 0.9s ease both; }
.wt-gwansang-load { position: relative; width: 46px; height: 46px; }
.wt-gwansang-load i { position: absolute; border-radius: 50%; border: 2px solid transparent;
  border-top-color: rgba(227, 184, 119, 0.85); animation: wtOrb 1.4s linear infinite; }
.wt-gwansang-load i:nth-child(1) { inset: 0; }
.wt-gwansang-load i:nth-child(2) { inset: 7px; border-top-color: rgba(240, 120, 80, 0.5); animation-duration: 2s; animation-direction: reverse; }
.wt-gwansang-load i:nth-child(3) { inset: 14px; border-top-color: rgba(255, 255, 255, 0.6); animation-duration: 1s; }
.wt-gwansang-cap { margin-top: 12px; font-family: var(--g-sans); font-size: 12.5px; color: #c9b8a8; line-height: 1.55; }
.wt-destiny-rows { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.wt-drow { display: flex; align-items: center; gap: 12px; }
.wt-dk {
  flex-shrink: 0; width: 88px; text-align: center;
  font-family: var(--g-sans); font-size: 12.5px; font-weight: 800; color: #ffdede;
  padding: 7px 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.16);
}
.wt-dv { font-family: var(--g-sans); font-size: 14.5px; color: #fff; font-weight: 700; min-width: 0; }
.wt-dv b { font-weight: 800; }
.wt-dv i { font-style: normal; }

/* ===== 챕터 목차 ===== */
.wt-chapter {
  position: relative; margin: 12px 20px; padding: 20px 20px 18px;
  border-radius: 6px;
  background: rgba(12, 9, 10, 0.6);
  border: 1px solid rgba(240, 50, 63, 0.35);
  outline: 1px solid rgba(240, 50, 63, 0.14); outline-offset: 5px;
}
.wt-ch-no { font-family: var(--g-serif); font-size: 14px; color: var(--g-red-bright); letter-spacing: 6px; margin-bottom: 8px; }
.wt-ch-t { font-family: var(--g-serif); font-size: 17.5px; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 12px; word-break: keep-all; }
.wt-ch-list { list-style: none; margin: 0; padding: 0; }
.wt-ch-list li {
  position: relative; padding: 7px 0 7px 18px;
  font-family: var(--g-sans); font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08); word-break: keep-all;
}
.wt-ch-list li:last-child { border-bottom: none; }
.wt-ch-list li::before { content: '•'; position: absolute; left: 4px; color: var(--g-red-bright); }
.wt-ch-lock { position: absolute; right: 14px; top: 14px; font-size: 15px; opacity: 0.8; }

/* ===== 가격 스택 ===== */
.wt-pricestack { width: 100%; max-width: 400px; margin: 4px 0 2px; }
.wt-ps-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 4px; font-family: var(--g-sans); font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.wt-ps-row s { color: rgba(255, 255, 255, 0.45); }
.wt-ps-row.dc { color: #ffb1a6; }
.wt-ps-row.dc b { color: #ff8d95; font-weight: 800; }
.wt-ps-row.final { border-bottom: none; padding-top: 10px; color: #fff; font-weight: 700; font-size: 15px; }
.wt-ps-row.final b { color: #ffe08a; font-size: 27px; font-weight: 900; letter-spacing: -0.02em; }

/* 결과 맨 아래 브랜드 표기 */
.wt-brand-foot {
  text-align: center; padding: 26px 0 8px;
  font-family: var(--g-serif); font-size: 12px; font-weight: 700;
  color: rgba(255, 255, 255, 0.3); letter-spacing: 2px;
}
.wt-brand-foot em { font-style: normal; color: rgba(216, 31, 42, 0.55); font-size: 10.5px; margin-left: 3px; }

/* ===== 할인 소멸 팝업 ===== */
.gate-dcpop {
  position: absolute; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 1, 2, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s ease; padding: 24px;
}
.gate-dcpop.on { opacity: 1; }
.gate-dcpop-box {
  position: relative; width: 100%; max-width: 340px;
  padding: 30px 22px 22px; border-radius: 22px; text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(216, 31, 42, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(24, 12, 14, 0.98), rgba(9, 6, 7, 0.99));
  border: 1px solid rgba(240, 50, 63, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 44px rgba(216, 31, 42, 0.25);
  transform: translateY(10px) scale(0.97); transition: transform 0.35s ease;
}
.gate-dcpop.on .gate-dcpop-box { transform: none; }
.gate-dcpop-x {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.45); font-size: 24px; line-height: 1;
}
.gate-dcpop-badge {
  display: inline-block; font-family: var(--g-sans); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.5px; color: #ffd9b0; padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 130, 40, 0.13); border: 1px solid rgba(255, 150, 60, 0.4);
}
.gate-dcpop-t {
  font-family: var(--g-serif); font-size: 25px; font-weight: 700; line-height: 1.4;
  color: #fff; margin: 14px 0 10px;
}
.gate-dcpop-t em { font-style: normal; color: var(--g-red-bright); text-shadow: 0 0 22px rgba(240, 50, 63, 0.6); }
.gate-dcpop-s { font-family: var(--g-sans); font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); word-break: keep-all; }
.gate-dcpop-timer {
  margin: 16px 0 14px; font-family: var(--g-sans); font-variant-numeric: tabular-nums;
  font-size: 34px; font-weight: 900; color: #ffe08a; letter-spacing: 1px;
  text-shadow: 0 0 22px rgba(255, 190, 60, 0.4);
}
.gate-dcpop-timer em { font-style: normal; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.5); margin-left: 4px; }
.gate-dcpop-go { height: 56px !important; font-size: 16px !important; letter-spacing: 0 !important; border-radius: 14px !important; }
.gate-dcpop-later {
  margin-top: 12px; border: none; background: none; cursor: pointer;
  font-family: var(--g-sans); font-size: 13px; color: rgba(255, 255, 255, 0.45);
}

/* ===== 상시 하단 CTA ===== */
.wt-sticky {
  position: absolute; left: 12px; right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  z-index: 30; height: 66px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #a3121f, #7c0e19);
  border: 1px solid rgba(255, 120, 130, 0.65);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.68), 0 0 32px rgba(216, 31, 42, 0.46), inset 0 0 0 3px rgba(0, 0, 0, 0.25), inset 0 0 0 4px rgba(255, 140, 150, 0.38);
  color: #fff; font-family: var(--g-serif); font-size: 19px; font-weight: 800; letter-spacing: 0.5px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: gateCtaGlow 2.8s ease-in-out infinite;
}
.wt-sticky.on { opacity: 1; transform: none; pointer-events: auto; }

/* 상세 리포트 발급 카드 */
.wt-report {
  margin: 26px 20px 4px; padding: 24px 20px 20px;
  border-radius: 20px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(216, 31, 42, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(24, 16, 17, 0.92), rgba(10, 8, 9, 0.96));
  border: 1px solid rgba(240, 50, 63, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(216, 31, 42, 0.12);
}
.wt-report-badge {
  display: inline-block; font-family: var(--g-sans); font-size: 11px; font-weight: 800;
  letter-spacing: 2px; color: #ffd9b0; padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 120, 40, 0.13); border: 1px solid rgba(255, 150, 60, 0.35);
}
.wt-report-t {
  font-family: var(--g-serif); font-size: 21px; font-weight: 700; color: #fff;
  margin: 12px 0 10px;
}
.wt-report-s {
  font-family: var(--g-sans); font-size: 13.5px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.66); word-break: keep-all; margin-bottom: 16px;
}
.wt-report-s em { font-style: normal; color: var(--g-red-bright); font-weight: 700; }
.wt-report-s b { color: #fff; font-weight: 800; }
/* 명서 = 핵심 소장물: 카드 자체를 더 크고 화려하게 */
.wt-report-hero {
  position: relative; margin: 30px 16px 6px; padding: 30px 22px 22px;
  border: 1.5px solid rgba(255, 170, 70, 0.5);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255, 150, 50, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(30, 20, 14, 0.95), rgba(12, 9, 8, 0.97));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(230, 150, 60, 0.16);
}
.wt-report-ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--g-sans); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; white-space: nowrap;
  color: #1a1206; padding: 5px 16px; border-radius: 999px;
  background: linear-gradient(90deg, #ffce6a, #ff9a3d);
  box-shadow: 0 4px 14px rgba(255, 150, 50, 0.4);
}
.wt-report-hero .wt-report-badge { font-size: 12px; color: #ffe1b0; background: rgba(255, 150, 60, 0.16); border-color: rgba(255, 175, 80, 0.5); }
.wt-report-hero .wt-report-t { font-size: 24px; margin-top: 14px; }
/* 명서 목차 미리보기 — 안에 뭐가 있는지 강조 */
.wt-report-toc { list-style: none; margin: 4px 0 20px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 9px; }
.wt-report-toc li {
  position: relative; padding: 11px 14px 11px 40px; border-radius: 11px;
  font-family: var(--g-sans); font-size: 13.5px; line-height: 1.45; color: rgba(255, 240, 225, 0.82);
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 170, 70, 0.18); word-break: keep-all;
}
.wt-report-toc li b { color: #ffd9a8; font-weight: 800; }
.wt-report-toc li::before {
  content: '📖'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 15px;
}
/* 큰 CTA — 2줄(메인+서브) */
.gate-cta-lg { height: auto !important; min-height: 78px; padding: 16px 20px !important; border-radius: 18px !important;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; line-height: 1.2;
  box-shadow: 0 14px 40px rgba(216, 31, 42, 0.4), 0 0 30px rgba(255, 150, 60, 0.25), inset 0 0 0 2px rgba(255, 200, 130, 0.35);
  animation: gateCtaGlow 2.6s ease-in-out infinite; }
.gate-cta-lg .wt-cta-main { font-family: var(--g-serif); font-size: 23px; font-weight: 800; letter-spacing: 0.5px; }
.gate-cta-lg .wt-cta-sub { font-family: var(--g-sans); font-size: 13px; font-weight: 700; opacity: 0.95; letter-spacing: 0; }
.wt-open-report { height: 56px; font-size: 16.5px; letter-spacing: 0; border-radius: 14px; }
.wt-report-mail { display: flex; gap: 8px; margin-top: 12px; }
.wt-mail-in {
  flex: 1; min-width: 0; height: 48px; padding: 0 15px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06); color: #fff;
  font-family: var(--g-sans); font-size: 14.5px; outline: none;
}
.wt-mail-in::placeholder { color: rgba(255, 255, 255, 0.35); }
.wt-mail-in:focus { border-color: rgba(240, 50, 63, 0.6); background: rgba(255, 255, 255, 0.09); }
.wt-mail-go {
  flex-shrink: 0; height: 48px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(240, 50, 63, 0.55);
  background: rgba(216, 31, 42, 0.2); color: #fff;
  font-family: var(--g-sans); font-size: 14px; font-weight: 800; cursor: pointer;
  transition: background 0.2s;
}
.wt-mail-go:hover { background: rgba(216, 31, 42, 0.38); }
.wt-mail-go:disabled { opacity: 0.55; }
.wt-report-hint { font-family: var(--g-sans); font-size: 11.5px; color: rgba(255, 255, 255, 0.4); margin-top: 9px; }

/* 통계 */
.wt-stats { display: flex; justify-content: center; gap: 10px; padding: 30px 20px 10px; }
.wt-stats > div { flex: 1; max-width: 120px; text-align: center; padding: 16px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.wt-stats b { display: block; font-family: var(--g-sans); font-size: 20px; font-weight: 900; color: var(--g-red-bright); letter-spacing: -0.02em; }
.wt-stats span { font-family: var(--g-sans); font-size: 11px; color: rgba(255, 255, 255, 0.55); }

/* 후기 */
.wt-review-label { text-align: center; font-family: var(--g-sans); font-size: 15px; font-weight: 800; color: #fff; margin: 26px 0 14px; }
.wt-reviews { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.wt-review { background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px 16px; }
.wt-review-stars { color: #ffb43a; font-size: 12px; letter-spacing: 2px; }
.wt-review p { font-family: var(--g-sans); font-size: 13.5px; line-height: 1.6; color: #dcdce2; margin: 7px 0; word-break: keep-all; }
.wt-review-name { font-family: var(--g-sans); font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }

.wt-final { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 24px calc(env(safe-area-inset-bottom, 0px) + 40px); }
.wt-more { max-width: 380px; height: 58px; border-radius: 999px; text-align: center; }

/* ---------- 챗 페이지 다크 패치 + 모바일 프레임 ---------- */
body.gate-dark {
  --primary: #d81f2a; --primary-dark: #a01620;
  --primary-soft: #241012; --primary-border: #47181d; --page-bg: #000000;
  background: #000 !important;
}
/* 챗 셸도 480 컬럼 밖은 검정 (일관된 모바일 프레임) */
body.gate-dark .chat-container { box-shadow: 0 0 0 100vmax #000; }

/* =========================================================================
   챗을 어드벤처(VN) 다크 스타일로 리스킨 (gate-dark 페이지에서만)
   ========================================================================= */
body.gate-dark { background: #000 !important; }
body.gate-dark .chat-container { background: #08070a !important; }

/* 히어로 — 캐릭터 이미지 + 어둠 */
body.gate-dark .wolha-hero {
  background:
    linear-gradient(180deg, rgba(6,6,9,0.35) 0%, transparent 30%, rgba(6,6,9,0.45) 62%, rgba(8,7,10,0.98) 100%),
    var(--char-img, linear-gradient(165deg, #1a1420, #0c0a10)) !important;
  background-size: cover !important;
  background-position: center 22% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.gate-dark .wolha, body.gate-dark .wolha-float, body.gate-dark .orb, body.gate-dark .orb-halo,
body.gate-dark .moon-halo, body.gate-dark .eye { display: none !important; }
body.gate-dark .chat-input button {
  background: linear-gradient(135deg, #d81f2a, #a01620) !important;
  box-shadow: 0 3px 10px rgba(216, 31, 42, 0.4) !important;
}
body.gate-dark .status-dot { background: #d81f2a !important; }

body.gate-dark .chat-topbar { background: linear-gradient(180deg, rgba(0,0,0,0.8), transparent) !important; }
body.gate-dark .topbar-name, body.gate-dark .topbar-name em { color: #fff !important; }
body.gate-dark .topbar-status { color: rgba(255,255,255,0.6) !important; }
body.gate-dark .topbar-btn { background: rgba(255,255,255,0.12) !important; }
body.gate-dark .topbar-btn svg { fill: #fff !important; }

/* 메시지 영역 */
body.gate-dark .chat-messages { background: #08070a !important; }
body.gate-dark .quick-replies { background: #08070a !important; }

/* 말풍선 — VN 스타일 */
body.gate-dark .msg-bot .bubble {
  background: rgba(18, 12, 14, 0.92) !important;
  border: 1px solid rgba(240, 50, 63, 0.4) !important;
  color: #ececf0 !important;
  border-top-left-radius: 6px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), 0 0 16px rgba(216,31,42,0.12) !important;
  font-family: var(--g-serif);
  font-size: 15.5px !important;
}
body.gate-dark .msg-user .bubble {
  background: linear-gradient(135deg, #d81f2a, #a01620) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(216,31,42,0.4) !important;
}
body.gate-dark .msg-avatar {
  background: radial-gradient(circle at 34% 30%, #f2f2f6, #b8b8c2 42%, #4a4a52) !important;
  color: #1a1a1e !important; box-shadow: 0 0 14px rgba(240,50,63,0.3) !important;
}

/* 칩 */
body.gate-dark .chip {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(240,50,63,0.35) !important;
  color: #f0d9dc !important;
}
body.gate-dark .chip:hover { background: rgba(216,31,42,0.18) !important; }

/* 입력창 */
body.gate-dark .chat-input, body.gate-dark [class*="composer"], body.gate-dark [class*="input-bar"] {
  background: #0c0a0e !important; border-top: 1px solid rgba(255,255,255,0.08) !important;
}
body.gate-dark .chat-input input, body.gate-dark textarea {
  background: rgba(255,255,255,0.05) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
body.gate-dark .chat-input input::placeholder { color: rgba(255,255,255,0.35) !important; }

/* 사주 카드 (챗 내부) */
body.gate-dark .saju-card { background: rgba(255,255,255,0.04) !important; border: 1px solid rgba(240,50,63,0.3) !important; }
body.gate-dark .saju-card-title, body.gate-dark .pillar-char { color: #fff !important; }
body.gate-dark .pillar-label { color: rgba(255,255,255,0.5) !important; }
body.gate-dark .typing-dots span { background: rgba(240,50,63,0.6) !important; }

@media (prefers-reduced-motion: reduce) {
  .gate-bg, #gateRoot.gate-entering .gate-bg.on, #gateRoot.gate-alive .gate-bg.on { animation: none !important; }
  .gate-bubble, .gate-cta, .gate-bell { animation: none !important; }
}

/* ── 무제한 출입패 (구독) ── */
.wt-pass-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 210, 130, .4);
  color: rgba(255, 217, 176, .9); font-size: 12.5px; font-weight: 600;
  text-decoration: none; max-width: 340px;
}
.wt-pass-link b { color: #ffd34d; font-weight: 800; }
.wt-pass-link span { color: rgba(255, 217, 176, .6); font-weight: 800; }
.wt-pass-on {
  display: none; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 0; padding: 11px 16px; border-radius: 999px; max-width: 320px;
  background: rgba(214, 148, 32, .13); border: 1px solid rgba(255, 190, 80, .5);
  color: #ffe6b8; font-size: 12.5px; font-weight: 800;
}
body.has-pass .wt-pass-link { display: none; }
body.has-pass .wt-pass-on { display: flex; }

/* 복채/출입패 선택 바텀시트 (하단 슬라이드업) */
.gate-paysheet-wrap { position: fixed; inset: 0; z-index: 120; }
/* checkout.js 결제 모달·토스트는 신당 프레임(#gateRoot z-index 9990) 위에 떠야 한다 — ID 셀렉터로 주입 CSS(4200/5000)를 이긴다 */
#tfCheckout { z-index: 99999; }
#tfCheckoutToast { z-index: 99999; }
.gate-paysheet-dim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0);
  transition: background 0.34s ease;
}
.gate-paysheet-wrap.on .gate-paysheet-dim { background: rgba(0, 0, 0, 0.6); }
.gate-paysheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 460px; margin: 0 auto; max-height: 82vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #16141d, #0b0a10);
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(.2,.8,.2,1);
}
.gate-paysheet-wrap.on .gate-paysheet { transform: translateY(0); }
.gate-paysheet-handle { width: 38px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); margin: 9px auto 6px; flex: none; }
/* 긴급성 배너 */
.gate-sheet-urgent {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 2px 16px 2px; padding: 8px 12px; border-radius: 9px;
  background: rgba(240, 50, 63, 0.08); border: 1px solid rgba(240, 50, 63, 0.22);
  color: rgba(255, 155, 161, 0.92); font-size: 11.5px; font-weight: 600;
}
.gate-sheet-urgent b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.gate-sheet-assurance {
  background: rgba(73, 170, 121, 0.08); border-color: rgba(103, 205, 153, 0.24);
  color: rgba(192, 237, 214, 0.9);
}
.gsu-check {
  width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%;
  background: rgba(103, 205, 153, 0.16); color: #9de0bd; font-size: 11px; font-weight: 900;
}
.gsu-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-red-bright); animation: gsuPulse 1.2s ease-in-out infinite; }
@keyframes gsuPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.gate-paysheet-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gate-paysheet-t { font-family: var(--g-serif); font-size: 17px; font-weight: 700; color: #fff; text-align: center; margin: 10px 0 14px; }
.gate-paysheet-t em { font-style: normal; color: var(--g-red-bright); }
/* 상품 카드 리스트 (컴팩트 가로형) */
.gps-cards { padding: 0 18px; }
.gps-cards-primary .gps-card { margin-bottom: 0; }
.gps-card {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 9px; border-radius: 13px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, background 0.15s;
}
.gps-card[aria-current="true"] { border-color: var(--g-red-bright); background: rgba(240, 50, 63, 0.09); }
.gps-card.hot { border-color: rgba(255, 190, 80, 0.4); }
.gps-card.hot[aria-current="true"] { border-color: var(--g-red-bright); }
.gps-radio { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); position: relative; }
.gps-card[aria-current="true"] .gps-radio { border-color: var(--g-red-bright); }
.gps-card[aria-current="true"] .gps-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--g-red-bright); }
.gps-body { flex: 1; min-width: 0; }
.gps-head { display: flex; align-items: center; gap: 7px; }
.gps-name { font-size: 14.5px; font-weight: 800; color: #fff; }
.gps-badge { padding: 1.5px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; background: #d69420; color: #1a1206; }
.gps-badge.free { background: var(--g-red-bright); color: #fff; }
.gps-badge.best { background: linear-gradient(90deg, #ffb648, #ff7a3d); color: #1a1206; }
.gps-badge.plain { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.74); }
.gps-desc { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); margin-top: 3px; line-height: 1.4; }
.gps-price { flex: none; text-align: right; line-height: 1.2; }
.gps-price b { display: block; font-size: 16.5px; font-weight: 800; color: #fff; }
.gps-price s { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.gps-price em { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: #e6bf7a; margin-top: 1px; }
.gps-price.simple b { font-size: 18px; }
/* 재리딩 무료 안내 배너 */
.gps-reissue-note { margin: 12px 18px 2px; padding: 10px 13px; border: 1px solid rgba(230, 191, 122, 0.32); background: rgba(230, 191, 122, 0.08); border-radius: 12px; font-size: 12px; font-weight: 700; color: #efd9ad; line-height: 1.5; }
.gps-reissue-note b { color: #f4c978; }
.gps-reissue-note span { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.55); }
.gps-more { margin: 0 18px 2px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.gps-more summary {
  padding: 11px 2px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: rgba(255, 255, 255, 0.62); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none;
}
.gps-more summary::-webkit-details-marker { display: none; }
.gps-more summary::after { content: '＋'; color: rgba(255, 255, 255, 0.42); font-size: 15px; }
.gps-more[open] summary::after { content: '－'; }
.gps-more summary span { margin-left: auto; color: rgba(255, 255, 255, 0.38); font-size: 10px; font-weight: 600; }
.gps-cards-more { padding: 2px 0 0; }
.gps-more > .gate-plan-detail { padding: 5px 2px 2px; }
/* 얇은 스크롤바 */
.gate-paysheet-scroll::-webkit-scrollbar { width: 4px; }
.gate-paysheet-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 4px; }
.gate-paysheet-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
/* 선택 상품 상세 */
.gate-plan-detail { padding: 14px 20px 4px; }
.gate-plan-desc { font-size: 13px; color: #cfcfd6; margin-bottom: 10px; }
.gate-plan-bul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.gate-plan-bul li { position: relative; padding-left: 22px; font-size: 13px; color: #e6e6ec; line-height: 1.45; }
.gate-plan-bul li::before {
  content: ''; position: absolute; left: 3px; top: 5px; width: 9px; height: 5px;
  border-left: 2px solid var(--g-red-bright); border-bottom: 2px solid var(--g-red-bright); transform: rotate(-45deg);
}
.gate-plan-pay-row {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 11px 11px 0 0;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-bottom: none;
}
.gate-plan-pay-row > span:first-child { font-size: 13px; color: rgba(255, 255, 255, 0.62); display: flex; flex-direction: column; }
.gate-plan-pay-row em { font-style: normal; font-size: 11px; color: rgba(255, 210, 130, 0.8); margin-top: 2px; }
.gate-plan-pay-row .gpp-num { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.gate-plan-pay-row .gpp-num b { font-size: 20px; font-weight: 800; color: #fff; }
.gate-plan-pay-row .gpp-num s { font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.gate-plan-save {
  padding: 8px 14px; border-radius: 0 0 11px 11px; font-size: 11.5px; font-weight: 700; color: #e6bf7a;
  background: rgba(214, 148, 32, 0.1); border: 1px solid rgba(255, 190, 80, 0.22); border-top: none;
  text-align: center; letter-spacing: 0.01em;
}
.gate-plan-save b { color: #ffe0a3; }
/* 후기(사회적 증거) */
.gate-sheet-revs { padding: 18px 20px 4px; }
.gsr-eyebrow { font-family: var(--g-serif); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.45); margin-bottom: 9px; }
.gate-sheet-rev { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; margin-bottom: 7px; border-radius: 11px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.05); }
.gsr-star { color: #d6a94b; font-size: 10.5px; letter-spacing: 1.5px; }
.gate-sheet-rev p { font-size: 12.5px; color: #cfcfd6; line-height: 1.5; }
.gate-sheet-rev b { color: rgba(255, 255, 255, 0.42); font-weight: 700; }
/* 신뢰 배지 */
.gate-sheet-trust { display: flex; justify-content: center; align-items: center; margin-bottom: 11px; }
.gate-sheet-trust span { font-size: 11px; color: rgba(255, 255, 255, 0.42); font-weight: 600; }
.gate-sheet-trust span:not(:last-child)::after { content: '·'; margin: 0 9px; color: rgba(255, 255, 255, 0.2); }
/* 하단 고정 결제 */
.gate-paysheet-actions {
  flex: none; padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b0a10;
}
.gate-sheet-pay { width: 100%; margin-bottom: 6px; }
.gate-sheet-pay .wt-unlock-main { display: block; }
.gate-sheet-pay .wt-unlock-sub { display: block; font-size: 12px; opacity: 0.85; margin-top: 2px; }
.gate-sheet-close {
  display: block; width: 100%; padding: 9px; cursor: pointer;
  background: none; border: none; color: rgba(255, 255, 255, 0.42); font-size: 13px; font-weight: 600;
}

/* ── 점술 방식 보드 (타로/화투/룬/교신/처방) ── */
.wt-mboard { display: flex; gap: 10px; margin-bottom: 14px; }
.wt-mcard {
  flex: 1; aspect-ratio: 2 / 3.1; border-radius: 12px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(216, 31, 42, .16), transparent 60%),
    linear-gradient(165deg, #17090b, #0b0507);
  border: 1px solid rgba(240, 50, 63, .45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 150, 150, .1);
  padding: 10px 6px;
}
.wt-mcard.rev { border-color: rgba(255, 176, 56, .55); }
.wt-mcard.latin .wt-mc-glyph {
  font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.wt-mc-pos {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; color: #ffe9ea;
  background: linear-gradient(180deg, #a3121f, #7c0e19); border: 1px solid rgba(255, 130, 140, .6);
}
.wt-mc-glyph { font-family: 'Gowun Batang', serif; font-size: 30px; font-weight: 700; color: #f0666f; line-height: 1; }
.wt-mc-name { font-family: 'Gowun Batang', serif; font-size: 12px; font-weight: 700; color: #fff; text-align: center; line-height: 1.35; word-break: keep-all; padding: 0 4px; }
.wt-mc-rev { font-size: 9.5px; font-weight: 800; color: #ffd34d; letter-spacing: 1px; }
.wt-mmeans { display: flex; flex-direction: column; gap: 8px; }
.wt-mmean {
  padding: 11px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09);
}
.wt-mmean b { display: block; font-size: 12px; color: #ff8d95; margin-bottom: 4px; }
.wt-mmean span { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .8); word-break: keep-all; }

/* ── 19금 성인 인증 게이트 ── */
.gate-adult {
  position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .26s; padding: 24px;
}
.gate-adult.on { opacity: 1; }
.ga-box {
  width: 100%; max-width: 340px; text-align: center; padding: 30px 22px 22px; border-radius: 20px; position: relative;
  background: radial-gradient(130% 90% at 50% 0%, rgba(216, 31, 42, .2), transparent 60%), #100a0b;
  border: 1px solid rgba(240, 50, 63, .5); box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}
.ga-seal {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 14px;
  border-radius: 50%; background: linear-gradient(180deg, #d81f2a, #7c0e19); border: 2px solid rgba(255, 130, 140, .7);
  color: #fff; font-family: 'Gowun Batang', serif; font-size: 22px; font-weight: 800; letter-spacing: -1px;
  box-shadow: 0 0 20px rgba(216, 31, 42, .5);
}
.ga-t { font-family: 'Gowun Batang', serif; font-size: 19px; font-weight: 700; color: #fff; }
.ga-s { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .62); word-break: keep-all; }
.ga-s b { color: #ff8d95; }
.ga-form { margin-top: 18px; }
.ga-label { font-size: 11.5px; color: rgba(255, 255, 255, .5); margin-bottom: 8px; }
.ga-row { display: flex; gap: 8px; }
.ga-in {
  flex: 1; min-width: 0; height: 46px; text-align: center; border-radius: 11px; font-size: 15px; font-family: inherit;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; outline: none;
}
.ga-in.ga-y { flex: 1.6; }
.ga-in:focus { border-color: rgba(240, 50, 63, .6); }
.ga-in::placeholder { color: rgba(255, 255, 255, .32); }
.ga-in::-webkit-outer-spin-button, .ga-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ga-go {
  width: 100%; height: 50px; margin-top: 12px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(255, 120, 130, .6);
  background: linear-gradient(180deg, #a3121f, #7c0e19); color: #fff; font-family: 'Gowun Batang', serif; font-size: 15.5px; font-weight: 700;
}
.ga-go:disabled { opacity: .6; }
.ga-login {
  width: 100%; height: 50px; margin-top: 18px; border-radius: 12px; cursor: pointer; border: none;
  background: #fee500; color: #191600; font-size: 15px; font-weight: 800;
}
.ga-pass {
  width: 100%; height: 52px; border-radius: 12px; cursor: pointer; border: none;
  background: linear-gradient(180deg, #3d8bff, #2f6ede); color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(47, 110, 222, .35);
}
.ga-pass:disabled { opacity: .6; }
.ga-or { margin: 12px 0 4px; font-size: 11.5px; color: rgba(255, 255, 255, .38); position: relative; }
.ga-err { min-height: 16px; margin-top: 9px; font-size: 12px; color: #ff8d95; }
.ga-cancel {
  margin-top: 10px; background: none; border: none; color: rgba(255, 255, 255, .45); font-size: 12.5px; cursor: pointer; font-family: inherit;
}
/* 랜딩의 19금 배지 */
.gate-adult-badge {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 50%; transform: translateX(-50%); z-index: 12;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px;
  background: rgba(216, 31, 42, .16); border: 1px solid rgba(240, 50, 63, .55); color: #ff8d95;
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px; backdrop-filter: blur(4px);
}
.gate-adult-badge b { color: #fff; }

/* ===== 방탈출 HUD (묘안 흉가) ===== */
.gate-eschud {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 66px); left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 7px 15px; border-radius: 999px; pointer-events: none;
  background: rgba(10, 14, 12, 0.72); border: 1px solid rgba(120, 200, 160, 0.28);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 20px rgba(60, 160, 110, 0.14);
  opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease;
  font-family: var(--g-serif); white-space: nowrap;
}
.gate-eschud.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.gate-eschud b { font-size: 13px; font-weight: 700; color: #cfe8da; letter-spacing: 0.4px; }
.gate-eschud .esc-keys { display: inline-flex; gap: 1px; }
.gate-eschud .esc-keys i { font-size: 12px; font-style: normal; filter: grayscale(1) brightness(0.5); transition: filter 0.4s ease; }
.gate-eschud .esc-keys i.on { filter: none; text-shadow: 0 0 8px rgba(230, 200, 90, 0.7); }
/* 장면 전환 스팅어 — 은은한 전체 밝기 블룸(세로 빛줄기 없음) */
.gate-dooropen::after {
  content: ''; position: absolute; inset: 0; z-index: 30; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(255, 255, 250, 0.28), transparent 70%);
  animation: doorBloom 0.75s ease forwards;
}
@keyframes doorBloom {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== 자유입력(ask) 씬 칩 ===== */
.gate-ask-in { font-size: 19px; }
.gate-ask-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; justify-content: center; }
.gate-ask-chip {
  padding: 7px 13px; border-radius: 999px; font-family: var(--g-sans); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16); cursor: pointer; transition: all 0.2s;
}
.gate-ask-chip:hover, .gate-ask-chip:active { background: rgba(240,50,63,0.16); border-color: rgba(240,50,63,0.45); color: #fff; }
/* 선택 전용 ask(연애 상태 등) — 칩이 곧 선택지: 한 줄에 하나씩(1열) 카드 */
.gate-ask-chips.sel-mode { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 8px; }
.gate-ask-chips.sel-mode .gate-ask-chip {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 14px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 700; text-align: left;
  color: rgba(255, 255, 255, 0.88); background: rgba(14, 14, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gate-ask-chips.sel-mode .gate-ask-ic {
  flex: 0 0 auto; width: 27px; text-align: center;
  font-size: 20px; line-height: 1;
  filter: saturate(1.05) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.gate-ask-chips.sel-mode .gate-ask-tx { flex: 1; min-width: 0; word-break: keep-all; }
.gate-ask-chips.sel-mode .gate-ask-chip.sel .gate-ask-ic { transform: scale(1.08); }
.gate-ask-chip.sel {
  background: rgba(216, 31, 42, 0.26); border-color: var(--g-red); color: #fff;
  box-shadow: 0 0 18px rgba(240, 50, 63, 0.28);
}
/* skip: 버튼이 아니라 은은한 텍스트 링크 (버튼 2개가 어긋나 보이던 문제 해결) */
.gate-ask-actions { margin-top: 14px; }
.gate-ask-actions .gate-ask-skip {
  background: none; border: none; cursor: pointer; padding: 8px 12px;
  font-family: var(--g-sans); font-size: 13.5px; color: rgba(255, 255, 255, 0.45);
  text-decoration: underline; text-underline-offset: 3px;
}
.gate-ask-actions .gate-ask-skip:hover { color: rgba(255, 255, 255, 0.72); }
