/* =========================================================================
   오늘의 運命 — CINEMATIC THEME (SERIOUS / NOIR EDITION)
   레퍼런스: sajutight.me (TIGHT) — 니어블랙 · 크림슨 레드 · 타이트 산세리프
   index.css 뒤에 로드되어 비주얼 레이어를 재정의합니다.
   (JS 훅/클래스/ID 구조는 그대로 — 기능 100% 보존)
   ========================================================================= */

:root {
  --c-bg-0: #000000;      /* 완전 블랙 */
  --c-bg-1: #141417;      /* 패널 */
  --c-bg-2: #1c1c20;      /* 살짝 밝은 패널 */
  --c-red: #d81f2a;       /* 크림슨 (메인 강조) */
  --c-red-bright: #f0323f;
  --c-red-deep: #8f141c;
  --c-red-dim: rgba(216, 31, 42, 0.5);
  --c-text: #f3f3f5;      /* 본문 (쿨 화이트) */
  --c-dim: #a2a2ab;       /* 흐린 텍스트 */
  --c-mute: #66666f;      /* 더 흐린 텍스트 */
  --c-line: rgba(255, 255, 255, 0.08);       /* 뉴트럴 헤어라인 */
  --c-line-2: rgba(255, 255, 255, 0.14);
  --c-red-line: rgba(216, 31, 42, 0.35);
  --c-glass: rgba(255, 255, 255, 0.028);
  --c-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
            'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
}

/* ---------- 전역 무드 : 진지한 플랫 블랙 ---------- */
html { background: var(--c-bg-0); }

body {
  background: var(--c-bg-0) !important;
  color: var(--c-text);
  font-family: var(--c-sans) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* 고정 배경: 상단 미세 비네트 + 필름 그레인 (별/보라 없음) */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* 순수 플랫 블랙 — 그라데이션/비네트 없음 */
  background: var(--c-bg-0);
}

/* 별 캔버스는 사용 안 함 (진지한 톤) */
#cosmic-stars { display: none !important; }

/* 컨테이너: 투명 */
.container {
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}
/* 데스크톱: 양옆은 순수 검정. 경계선·그림자·halo 없음. */

/* ---------- 헤더: 로고 왼쪽 · 3줄버튼 오른쪽 (확실히 고정) ---------- */
.header {
  padding-left: 16px !important; padding-right: 16px !important;
  justify-content: space-between !important;
  pointer-events: none;   /* 투명 영역이 아래 칩 터치를 가로채지 않도록 */
}
.header .logo, .header .menu-btn, .header-account { pointer-events: auto; }
.header .logo { margin-right: auto; }
.header .menu-btn { margin-left: 8px; flex: none; }
.header-account { display: flex; align-items: center; gap: 9px; flex: none; }
.header-login {
  height: 36px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 7px;
  background: rgba(10, 10, 12, 0.68); color: #f3f3f5;
  font-family: var(--c-sans); font-size: 12px; font-weight: 750; letter-spacing: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer;
}
.header-login:hover { border-color: rgba(240, 50, 63, 0.5); background: rgba(34, 10, 14, 0.82); }
.header-login[hidden], .header-profile[hidden] { display: none; }
.header-profile { width: 38px; height: 38px; display: block; text-decoration: none; }
.header-profile-avatar {
  width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(240, 50, 63, 0.48); border-radius: 50%;
  background-color: #21171a; background-size: cover; background-position: center;
  color: #f5e5e6; font-family: var(--c-sans); font-size: 13px; font-weight: 800;
  box-shadow: 0 0 0 3px rgba(5, 5, 7, 0.45), 0 0 18px rgba(216, 31, 42, 0.2);
}
.header-profile:hover .header-profile-avatar { border-color: #f0323f; }
/* 헤더 이용권 배지 — 남은 복채/무제한 상태 */
.header-pass {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-family: var(--c-sans); font-size: 12.5px; font-weight: 800; letter-spacing: 0.2px;
  color: #ffd9a8; background: rgba(216, 130, 31, 0.12);
  border: 1px solid rgba(230, 170, 90, 0.42);
  box-shadow: 0 0 14px rgba(216, 130, 31, 0.12);
}
.header-pass:hover { border-color: #e6aa5a; background: rgba(216, 130, 31, 0.2); }
.header-pass[hidden], .sb-pass[hidden] { display: none !important; }   /* display 지정이 hidden 속성을 덮지 않게 */
@media (max-width: 430px) {
  .header .logo { gap: 6px; }
  .header .logo-img { width: 34px; height: 34px; }
  .header .logo-text { font-size: 16px; }
  .header .logo-han { font-size: 13px; }
  .header-login { height: 34px; padding: 0 10px; }
  .header-profile, .header-profile-avatar { width: 36px; height: 36px; }
}
@media (max-width: 350px) {
  .header .logo-han { display: none; }
}

/* ---------- 세련된 사이트 스크롤바 ---------- */
html { scroll-behavior: smooth; }
* { scrollbar-width: thin; scrollbar-color: rgba(216, 31, 42, 0.55) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(240, 50, 63, 0.6), rgba(143, 20, 28, 0.7));
  border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(240, 50, 63, 0.9), rgba(180, 25, 35, 0.9)); background-clip: padding-box; }
/* 가로 스크롤(레일/칩/카루셀)은 스크롤바 숨김 유지 */
.rail, .hero2-track, .chips, .rank-list, .rail-reviews { scrollbar-width: none; }
.rail::-webkit-scrollbar, .hero2-track::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; height: 0; }

.logo-text {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: 0.5px;
  color: #f3f3f5;
  display: inline-flex; align-items: baseline; gap: 5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.logo-han {
  font-family: 'Gowun Batang', serif;
  font-weight: 700; font-size: 16.5px;
  background: linear-gradient(180deg, #f0323f, #8f141c);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--c-red);
  text-shadow: 0 0 16px rgba(216, 31, 42, 0.4);
  letter-spacing: 1px;
}
.header.scrolled .logo-han { filter: brightness(1.1); }
.header.scrolled {
  background: rgba(8, 8, 10, 0.9) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}
.header.scrolled .logo-text { color: var(--c-text) !important; text-shadow: none !important; }
.header.scrolled .menu-btn span { background: var(--c-text) !important; box-shadow: none !important; }
/* 세련된 3줄(햄버거) 버튼 */
.menu-btn {
  width: 42px !important; height: 42px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center !important; justify-content: center !important;
  gap: 5px !important; padding: 0 !important;
  transition: background .2s, border-color .2s, transform .12s;
}
.menu-btn:hover { background: rgba(216, 31, 42, 0.16) !important; border-color: var(--c-red-line) !important; }
.menu-btn:active { transform: scale(0.92); }
.menu-btn span {
  background: #f3f3f5 !important;
  height: 2px !important; border-radius: 2px !important;
  box-shadow: none !important;
  transition: width .25s ease, background .2s;
}
.menu-btn span:nth-child(1) { width: 18px !important; }
.menu-btn span:nth-child(2) { width: 18px !important; }
.menu-btn span:nth-child(3) { width: 11px !important; }   /* 짧은 마지막 줄 = 포인트 */
.menu-btn:hover span { background: #fff !important; }
.menu-btn:hover span:nth-child(3) { width: 18px !important; }
.header.scrolled .menu-btn { background: rgba(255, 255, 255, 0.08) !important; }
.header.scrolled .menu-btn span { background: #f3f3f5 !important; }

/* =========================================================================
   HERO — 어둡고 무거운 시네마틱
   ========================================================================= */
.hero { height: 600px; }
.hero-slide { padding: 96px 26px 88px; background-position: center top; }

/* 무겁고 진한 어둠 : 하단으로 완전히 블랙 페이드 */
.slide-overlay {
  background:
    /* 하단 텍스트 뒤로 스며드는 핏빛 안개 (컨셉 강조) */
    radial-gradient(70% 45% at 26% 76%, rgba(120, 10, 16, 0.42), transparent 72%),
    /* 위·아래를 완전히 삼키는 어둠 — 형상만 남긴다 */
    linear-gradient(180deg, rgba(4, 4, 6, 0.92) 0%, rgba(4, 4, 6, 0.42) 24%, rgba(4, 4, 6, 0.55) 50%, rgba(4, 4, 6, 0.95) 78%, var(--c-bg-0) 100%),
    linear-gradient(90deg, rgba(4, 4, 6, 0.95) 0%, rgba(4, 4, 6, 0.55) 44%, rgba(4, 4, 6, 0.25) 100%),
    radial-gradient(135% 95% at 50% 40%, transparent 32%, rgba(4, 4, 6, 0.9) 100%) !important;
}
.slide-content { max-width: 82%; }

.hero-slide.active .slide-label { animation: cineUp 0.8s ease both 0.12s; }
.hero-slide.active .slide-title { animation: cineUp 0.9s ease both 0.24s; }
.hero-slide.active .slide-desc  { animation: cineUp 0.9s ease both 0.38s; }
.hero-slide.active .slide-cta   { animation: cineUp 0.9s ease both 0.5s; }
@keyframes cineUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-label {
  color: var(--c-red);
  font-family: var(--c-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: none;
  margin-bottom: 14px;
  padding-left: 30px;
  position: relative;
}
.slide-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 2px;
  background: var(--c-red);
}

.slide-title {
  font-family: var(--c-sans);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}
.slide-title .sub {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}
.slide-title .highlight {
  color: var(--c-red-bright);
  -webkit-text-fill-color: var(--c-red-bright);
  text-shadow: 0 0 34px rgba(240, 50, 63, 0.75), 0 0 8px rgba(255, 90, 100, 0.5);
}
.slide-desc {
  color: rgba(243, 243, 245, 0.72);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* CTA — 검정 위에서 확 튀는 밝은 크림슨 (강조는 밝게) */
.slide-cta {
  background: var(--c-red) !important;
  color: #fff !important;
  border: 1.5px solid var(--c-red-bright) !important;
  border-radius: 2px !important;
  padding: 15px 30px !important;
  font-family: var(--c-sans);
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 34px rgba(216, 31, 42, 0.45), 0 0 22px rgba(240, 50, 63, 0.35) !important;
  transition: all 0.3s ease !important;
  animation: ctaGlow 3.2s ease-in-out infinite;
}
.slide-cta:hover {
  background: var(--c-red-bright) !important;
  box-shadow: 0 14px 44px rgba(240, 50, 63, 0.6), 0 0 30px rgba(255, 90, 100, 0.4) !important;
  transform: translateY(-1px);
}
.slide-cta svg { color: #fff; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 10px 34px rgba(216, 31, 42, 0.4), 0 0 18px rgba(240, 50, 63, 0.28); }
  50% { box-shadow: 0 12px 40px rgba(216, 31, 42, 0.55), 0 0 30px rgba(240, 50, 63, 0.5); }
}

/* 슬라이더 컨트롤 */
.slider-dot { background: rgba(255, 255, 255, 0.22); }
.slider-dot.active { background: var(--c-red); box-shadow: 0 0 10px rgba(216, 31, 42, 0.6); }
.slider-nav {
  background: rgba(18, 18, 22, 0.6) !important;
  color: #fff !important;
  border: 1px solid var(--c-line) !important;
  backdrop-filter: blur(8px);
}
.slider-nav:hover { background: var(--c-red) !important; border-color: var(--c-red) !important; }

/* =========================================================================
   SECTION 공통 — 크림슨 포인트 제목
   ========================================================================= */
.section-best { margin-top: 6px; position: relative; z-index: 3; }
.section-header {
  flex-direction: column; align-items: center; text-align: center;
  gap: 6px; margin-bottom: 26px; padding-top: 22px;
}
.section-header .section-title,
.section-best .section-title,
.section-celebrities .section-title {
  font-family: var(--c-sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-header .section-title::before,
.section-header .section-title::after {
  content: '';
  width: 18px; height: 2px;
  background: var(--c-red);
  border-radius: 0;
}
.section-subtitle { color: var(--c-mute); letter-spacing: -0.01em; }
.view-all-link { color: var(--c-red) !important; font-weight: 700; }

/* =========================================================================
   월하 배너 — 무거운 다크 카드 + 실버 문 오브
   ========================================================================= */
.wolha-banner {
  background: linear-gradient(135deg, rgba(24, 24, 28, 0.8), rgba(12, 12, 15, 0.8)) !important;
  border: 1px solid var(--c-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
}
.wolha-banner::after {
  content: '';
  position: absolute; top: -60%; right: -15%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(216, 31, 42, 0.14), transparent 68%);
  pointer-events: none;
}
.wolha-banner-orb {
  background: radial-gradient(circle at 34% 30%, #f2f2f6, #b8b8c2 42%, #4a4a52 100%) !important;
  color: #1a1a1e !important;
  border-radius: 12px !important;
  box-shadow: 0 0 24px rgba(200, 200, 220, 0.2), inset 0 -6px 14px rgba(40, 40, 48, 0.5) !important;
}
.wolha-banner-badge {
  color: var(--c-red) !important;
  background: rgba(216, 31, 42, 0.1) !important;
  border: 1px solid var(--c-red-line);
}
.wolha-banner-title { color: var(--c-text) !important; font-family: var(--c-sans); font-weight: 700; }
.wolha-banner-desc { color: var(--c-dim) !important; }
.wolha-banner-arrow { color: var(--c-red) !important; }

/* =========================================================================
   퀵 BEST 그리드
   ========================================================================= */
.quick-best-card-icon {
  border: 1px solid var(--c-line);
  border-radius: 12px !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55) !important;
}
.quick-best-card-title { color: var(--c-dim) !important; font-family: var(--c-sans); font-weight: 600; }
.quick-best-card:active .quick-best-card-icon { box-shadow: 0 0 18px rgba(216, 31, 42, 0.35) !important; }

/* =========================================================================
   탭 네비게이션
   ========================================================================= */
.tab-nav { border-bottom: 1px solid var(--c-line) !important; }
.tab-btn { color: var(--c-mute) !important; font-family: var(--c-sans); font-weight: 600; letter-spacing: -0.01em; }
.tab-btn.active { color: var(--c-text) !important; font-weight: 800; }
.tab-btn.active::after {
  background: var(--c-red) !important;
  height: 2px !important;
  box-shadow: 0 0 8px rgba(216, 31, 42, 0.5);
}

/* =========================================================================
   메뉴 카드 (이미지 카드) — 시네마틱 포스터 톤
   ========================================================================= */
.image-card {
  background: var(--c-glass) !important;
  border: 1px solid var(--c-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s, border-color 0.35s !important;
}
.image-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-red-line) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.7), 0 0 26px rgba(216, 31, 42, 0.12) !important;
}
.card-image-wrapper { border-radius: 10px !important; }
.card-title { color: var(--c-text) !important; font-family: var(--c-sans); font-weight: 700; letter-spacing: -0.02em; }
.card-desc { color: var(--c-mute) !important; }

/* 배지 */
.card-badge { border-radius: 3px !important; letter-spacing: 0; font-weight: 800; }
.card-badge, .card-badge.hot {
  background: var(--c-red) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(216, 31, 42, 0.4);
}
.card-badge.new { background: #26262c !important; color: #d6d6de !important; box-shadow: none; }
.quick-best-badge.hot { background: var(--c-red) !important; color: #fff !important; }
.quick-best-badge.new { background: #26262c !important; color: #d6d6de !important; }

/* 카드 이미지 래퍼 배경 — 어두운 무채색 톤 */
.card-bg-blue   { background: linear-gradient(180deg, #16171c 0%, #0c0d11 100%) !important; }
.card-bg-red    { background: linear-gradient(180deg, #241115 0%, #14090b 100%) !important; }
.card-bg-purple { background: linear-gradient(180deg, #1a181f 0%, #100f14 100%) !important; }
.card-bg-orange { background: linear-gradient(180deg, #201812 0%, #120d09 100%) !important; }
.card-bg-green  { background: linear-gradient(180deg, #14191650 0%, #0c110e 100%) !important; }
.card-bg-gray   { background: linear-gradient(180deg, #17171b 0%, #0e0e11 100%) !important; }

.image-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent) !important;
}

/* =========================================================================
   유명인 사주 섹션 — 숨김 (요청)
   ========================================================================= */
.section-celebrities { display: none !important; }

/* =========================================================================
   유명인 사주 그리드
   ========================================================================= */
.celebrity-card {
  background: var(--c-glass) !important;
  border: 1px solid var(--c-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55) !important;
  transition: transform 0.32s ease, border-color 0.32s, box-shadow 0.32s !important;
}
.celebrity-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-red-line) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.7), 0 0 20px rgba(216, 31, 42, 0.1) !important;
}
.celebrity-image { background: linear-gradient(160deg, #17171c 0%, #0e0e12 100%) !important; }
.celebrity-image::after { background: linear-gradient(180deg, transparent 38%, rgba(6, 6, 8, 0.7) 100%) !important; }
.celebrity-name { color: var(--c-text) !important; font-family: var(--c-sans); font-weight: 700; }
.celebrity-title { color: var(--c-mute) !important; }

/* 더보기 */
.view-more-btn {
  background: transparent !important;
  border: 1px solid var(--c-line) !important;
  color: var(--c-dim) !important;
  border-radius: 2px !important;
  font-family: var(--c-sans);
  font-weight: 700;
  letter-spacing: 0;
}
.view-more-btn:hover {
  background: rgba(216, 31, 42, 0.08) !important;
  border-color: var(--c-red-line) !important;
  color: var(--c-red-bright) !important;
}

/* =========================================================================
   사이드바
   ========================================================================= */
.sidebar {
  background: linear-gradient(180deg, #0e0e12, #060608) !important;
  border-left: 1px solid var(--c-line) !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8) !important;
}
.sidebar-header, .sidebar-logo, .sidebar-auth { background: transparent !important; border-bottom: 1px solid var(--c-line) !important; }
.sidebar-title { color: var(--c-text) !important; font-family: var(--c-sans); font-weight: 800; letter-spacing: 1px; }
.close-btn { background: transparent !important; border: 1px solid var(--c-line) !important; color: var(--c-text) !important; }
.close-btn:hover { background: rgba(216, 31, 42, 0.12) !important; }
.sidebar-logo-text { color: var(--c-text) !important; font-family: var(--c-sans); font-weight: 700; }
.sidebar-menu a {
  color: var(--c-text) !important;
  border-bottom: 1px solid var(--c-line) !important;
  font-family: var(--c-sans); font-weight: 600; letter-spacing: -0.01em;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(216, 31, 42, 0.07) !important;
  color: var(--c-red-bright) !important;
}
.sidebar-menu .menu-icon { color: var(--c-mute) !important; }
.sidebar-menu a:hover .menu-icon, .sidebar-menu a.active .menu-icon { color: var(--c-red) !important; }
.sidebar-menu .menu-chat, .sidebar-menu .menu-chat .menu-icon { color: var(--c-red) !important; }
.menu-badge { background: var(--c-red) !important; }
.sidebar-overlay { background: rgba(2, 2, 4, 0.78) !important; backdrop-filter: blur(2px); }

/* =========================================================================
   사이드바 v2 — MY 신당 (프로필 + 마이 + 바로가기)
   ========================================================================= */
.sidebar { max-width: 340px !important; }

.sb-profile {
  margin: 18px 18px 6px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(216, 31, 42, 0.1), rgba(255, 255, 255, 0.02) 45%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; gap: 14px;
}
.sb-profile-row { display: flex; align-items: center; gap: 13px; }
/* 사이드바 이용권 상태 카드 */
.sb-pass {
  margin: 8px 18px 4px; padding: 13px 14px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(216, 130, 31, 0.14), rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid rgba(230, 170, 90, 0.32);
}
.sb-pass-seal {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; font-family: var(--c-serif, serif); font-size: 18px; font-weight: 700;
  color: #ffd9a8; background: rgba(216, 130, 31, 0.14);
  border: 1px solid rgba(230, 170, 90, 0.4);
}
.sb-pass-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sb-pass-info strong { font-family: var(--c-sans); font-size: 14.5px; font-weight: 800; color: #ffe6c4; }
.sb-pass-info span { font-family: var(--c-sans); font-size: 11.5px; color: rgba(255, 230, 196, 0.55); }
.sb-pass-add {
  flex: none; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  font-family: var(--c-sans); font-size: 12px; font-weight: 800;
  color: #1c1207; background: linear-gradient(160deg, #e6aa5a, #c8862a);
  border: none;
}
.sb-pass-add:hover { filter: brightness(1.08); }
.sb-profile-link { color: inherit; text-decoration: none; border-radius: 8px; }
.sb-profile-link:hover .sb-pinfo strong { color: #f3a0a6; }
.sb-avatar {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-size: 22px; color: #f4e9c8;
  background: radial-gradient(circle at 32% 28%, #3a3b42, #232428 70%);
  border: 1px solid rgba(240, 50, 63, 0.35);
  box-shadow: 0 0 18px rgba(216, 31, 42, 0.18);
}
.sb-pinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-pinfo strong {
  font-family: var(--c-sans);
  font-size: 16px; font-weight: 800; color: var(--c-text);
  letter-spacing: -0.02em;
}
.sb-pinfo span { font-size: 12px; color: var(--c-mute); letter-spacing: -0.01em; }
.sb-kakao {
  width: 100%; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(254,229,0,.26); border-radius: 7px;
  background: #171716; color: #f5db28;
  font-family: var(--c-sans);
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.sb-kakao:hover { filter: brightness(1.15); border-color: rgba(254,229,0,.45); }
.sb-kakao:active { transform: scale(0.98); }
.sb-kakao svg { width: 18px; height: 18px; }
.sb-auth-actions { display: grid; gap: 8px; }
.sb-google { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: #171719; color: #f1f1f3; font-family: var(--c-sans); font-size: 14px; font-weight: 800; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.sb-google:hover { border-color: rgba(223,179,91,.42); background: #1e1d20; }
.sb-google:active { transform: scale(.98); }
.sb-google[hidden] { display: none; }
.sb-google span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #d5d5d8; font: 800 13px/1 Arial, sans-serif; }
.sb-auth-reason { margin: 2px 2px 0; color: #85858d; font-size: 10.5px; font-weight: 550; line-height: 1.55; text-align: center; word-break: keep-all; }
.sb-idlogin { justify-self: center; padding: 1px 6px; border: 0; background: transparent; color: #6b6b73; font-family: var(--c-sans); font-size: 10.5px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sb-idlogin:hover { color: #9a9aa2; }
.sb-idlogin[hidden] { display: none; }
.sb-idform { display: grid; gap: 6px; }
.sb-idform[hidden] { display: none; }
.sb-idform input { height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: rgba(255,255,255,.04); color: #fff; font-family: var(--c-sans); font-size: 13px; font-weight: 600; outline: none; }
.sb-idform input:focus { border-color: rgba(223,179,91,.5); }
.sb-idform input::placeholder { color: rgba(255,255,255,.32); }
.sb-idform button { height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: #1e1d20; color: #f1f1f3; font-family: var(--c-sans); font-size: 13px; font-weight: 800; cursor: pointer; }
.sb-idform button:disabled { opacity: .55; cursor: wait; }

/* =========================================================================
   마이페이지
   ========================================================================= */
.mp-profile {
  display: flex; align-items: center; gap: 15px;
  padding: 18px 20px 22px; border-bottom: 1px solid var(--c-line);
}
.mp-avatar {
  width: 62px; height: 62px; flex: none; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(240, 50, 63, 0.42); border-radius: 50%; background: #21171a;
  color: #f7e9ea; font-size: 19px; font-weight: 800; box-shadow: 0 0 24px rgba(216, 31, 42, 0.16);
}
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-identity { min-width: 0; }
.mp-identity h2 { margin: 0 0 3px; color: #fff; font-family: var(--c-sans); font-size: 19px; letter-spacing: 0; }
.mp-identity p { max-width: 310px; margin: 0; overflow: hidden; color: #9b9ca3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mp-identity span { display: inline-block; margin-top: 7px; color: #d8b56b; font-size: 10px; font-weight: 750; }
.mp-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 20px 16px 12px; padding: 19px 18px;
  border: 1px solid rgba(223, 179, 91, 0.28); border-radius: 8px;
  background: radial-gradient(90% 120% at 0 0, rgba(216, 31, 42, 0.16), transparent 62%), #121014;
}
.mp-balance small { display: block; color: #9a9ba2; font-size: 11px; font-weight: 700; }
.mp-balance strong { display: block; margin: 3px 0; color: #fff; font-family: "Gowun Batang", serif; font-size: 27px; letter-spacing: 0; }
.mp-balance p { margin: 0; color: #a8a2a4; font-size: 11px; line-height: 1.5; word-break: keep-all; }
.mp-balance button {
  min-width: 78px; height: 38px; padding: 0 12px; border: 1px solid rgba(240, 50, 63, 0.48); border-radius: 6px;
  background: #351015; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
}
.mp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 20px; }
.mp-stats a {
  min-width: 0; padding: 15px; border: 1px solid var(--c-line); border-radius: 8px;
  background: #111014; color: #fff; text-decoration: none;
}
.mp-stats small, .mp-stats span { display: block; color: #85868d; font-size: 10.5px; }
.mp-stats strong { display: block; margin: 6px 0 8px; font-size: 23px; letter-spacing: 0; }
.mp-menu { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.mp-menu a, .mp-menu button {
  width: 100%; min-height: 68px; padding: 11px 20px; display: grid; grid-template-columns: 38px minmax(0,1fr) 18px; align-items: center; gap: 12px;
  border: 0; border-bottom: 1px solid var(--c-line); background: transparent; color: #fff; text-align: left; text-decoration: none; cursor: pointer;
}
.mp-menu a:last-child, .mp-menu button:last-child { border-bottom: 0; }
.mp-menu a:hover, .mp-menu button:hover { background: rgba(255,255,255,.03); }
.mp-menu-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(240,50,63,.22); border-radius: 50%; color: #e88188; font-family: "Gowun Batang",serif; font-size: 12px; }
.mp-menu span:nth-child(2) { min-width: 0; }
.mp-menu b, .mp-menu small { display: block; letter-spacing: 0; }
.mp-menu b { font-size: 13px; }
.mp-menu small { margin-top: 4px; color: #7f8087; font-size: 10.5px; }
.mp-menu i { color: #6f7077; font-size: 23px; font-style: normal; }
.mp-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.mp-account-row span { color: #696a71; font-size: 10.5px; line-height: 1.5; }
.mp-account-row button { flex: none; min-width: 100px; height: 46px; padding: 0 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); color: #cfd0d6; font-size: 13.5px; font-weight: 800; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.mp-account-row button:hover { border-color: rgba(240,50,63,.5); background: rgba(240,50,63,.1); color: #fff; }

/* ── 이용권(출입패) 티켓 팝업 — 마이페이지 ── */
.tfpass-modal { position: fixed; inset: 0; z-index: 4300; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.tfpass-modal.on { opacity: 1; visibility: visible; }
.tfpass-dim { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.tfpass-card { position: relative; z-index: 1; width: min(100%, 384px); max-height: 92vh; overflow-y: auto; padding: 18px 16px 16px; border: 1px solid rgba(223,179,91,.4); border-radius: 14px; background: radial-gradient(110% 60% at 50% 0, rgba(190,24,37,.2), transparent 70%), #0e0d10; box-shadow: 0 28px 90px rgba(0,0,0,.82), inset 0 1px 0 rgba(255,255,255,.05); transform: translateY(10px) scale(.985); transition: transform .24s ease; }
.tfpass-modal.on .tfpass-card { transform: none; }
.tfpass-x { position: absolute; top: 6px; right: 6px; z-index: 5; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.65); font: 300 27px/1 Arial; cursor: pointer; touch-action: manipulation; }

.tfpass-ticket { position: relative; overflow: hidden; margin: 8px 0 16px; padding: 20px 18px; border-radius: 12px; background: #17151a; border: 1px solid rgba(255,255,255,.08); }
.tfpass-ticket::before, .tfpass-ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #0e0d10; transform: translateY(-50%); }
.tfpass-ticket::before { left: -9px; } .tfpass-ticket::after { right: -9px; }
.tfpass-ticket.is-active { background: linear-gradient(135deg, #f8e0a2 0%, #e6b85f 48%, #cda049 100%); border-color: rgba(255,255,255,.4); box-shadow: 0 12px 34px rgba(216,130,31,.3), inset 0 1px 0 rgba(255,255,255,.55); }
.tfpass-seal { position: absolute; top: 12px; right: 14px; display: grid; place-items: center; padding: 5px 4px; border: 1.5px solid rgba(120,20,20,.45); border-radius: 5px; color: #7a1414; font: 800 11px/1 "Gowun Batang", serif; writing-mode: vertical-rl; letter-spacing: 2px; opacity: .5; }
.tfpass-tier { display: flex; align-items: baseline; gap: 9px; color: #241703; }
.tfpass-tier b { font: 900 32px/1 "Gowun Batang", serif; }
.tfpass-tier .han { font: 400 22px/1 "Gowun Batang", serif; opacity: .55; }
.tfpass-ticket .tfpass-plan-name { margin: 4px 0 0; font: 800 13px/1.4 var(--c-sans); color: #4a3208; }
.tfpass-ticket .tfpass-meta { margin-top: 13px; padding-top: 12px; border-top: 1px dashed rgba(90,50,8,.34); display: flex; justify-content: space-between; align-items: center; font: 700 12px/1 var(--c-sans); color: #5a3c0c; }
.tfpass-ticket .tfpass-dday { padding: 4px 11px; border-radius: 999px; background: rgba(122,20,20,.16); color: #7a1414; font-weight: 900; }
.tfpass-ticket.is-empty { text-align: left; }
.tfpass-ticket.is-empty .tfpass-tier { color: #efe7dc; }
.tfpass-ticket.is-empty .tfpass-tier b { font-size: 23px; }
.tfpass-ticket.is-empty small { display: block; margin-top: 8px; color: #8f8a86; font-size: 11.5px; }
.tfpass-ticket.is-empty .tfpass-seal { color: #b98f4a; border-color: rgba(185,143,74,.4); }

.tfpass-plans-h { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 2px 10px; color: #fff; font: 800 14px/1 var(--c-sans); }
.tfpass-plans-h span { color: #dfb35b; font-size: 11px; font-weight: 800; }
.tfpass-plans { display: grid; gap: 8px; }
.tfpass-plan { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.035); color: #fff; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.tfpass-plan:hover { border-color: rgba(223,179,91,.5); }
.tfpass-plan.is-sel { border-color: #e6aa5a; background: rgba(216,130,31,.14); }
.tfpass-plan-l b { display: block; font: 800 14px/1.2 var(--c-sans); }
.tfpass-plan-l small { display: block; margin-top: 3px; color: #a8a2a4; font-size: 11px; }
.tfpass-plan-r { text-align: right; white-space: nowrap; }
.tfpass-plan-r strong { display: block; font: 900 15px/1 var(--c-sans); }
.tfpass-plan-r s { color: #7c7680; font-size: 10.5px; }
.tfpass-plan-badge { position: absolute; top: -8px; left: 12px; padding: 2px 8px; border-radius: 999px; background: #d81f2a; color: #fff; font: 800 9px/1.5 var(--c-sans); }
.tfpass-cta { width: 100%; margin-top: 15px; height: 52px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #f0323f, #c11624); color: #fff; font: 900 15px/1 var(--c-sans); cursor: pointer; box-shadow: 0 8px 24px rgba(216,31,42,.34); }
.tfpass-cta:hover { filter: brightness(1.06); }
.tfpass-note { margin: 11px 0 2px; text-align: center; color: #8f8a86; font-size: 11px; }

/* 구매 복구(복구 코드) 모달 */
.tfpass-eyebrow { margin: 6px 42px 10px 0; color: #dfb35b; font: 850 9px/1.3 var(--c-sans); letter-spacing: 1px; }
.tfpass-h2 { margin: 0; color: #fff; font: 700 21px/1.45 "Gowun Batang", serif; }
.tfpass-desc { margin: 11px 0 16px; color: rgba(255,255,255,.6); font: 550 12.5px/1.75 var(--c-sans); word-break: keep-all; }
.tfpass-desc b { color: #ffd9a8; }
.tfpass-input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(255,255,255,.05); color: #fff; font: 800 19px/1 var(--c-sans); letter-spacing: 3px; text-align: center; text-transform: uppercase; }
.tfpass-input::placeholder { color: #6b666e; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.tfpass-input:focus { outline: none; border-color: #e6aa5a; background: rgba(216,130,31,.1); }
.tfpass-err { margin: 9px 0 0; color: #ff8a93; font: 700 12px/1.5 var(--c-sans); text-align: center; }
.tfpass-err[hidden] { display: none; }
.mp-login-view { padding: 54px 22px 30px; text-align: center; }
.mp-login-mark { width: 58px; height: 58px; margin: 0 auto 19px; display: grid; place-items: center; border: 1px solid rgba(240,50,63,.38); border-radius: 50%; color: #ef858c; font-family: "Gowun Batang",serif; font-size: 20px; }
.mp-login-view h2 { margin: 0; color: #fff; font-family: "Gowun Batang",serif; font-size: 22px; line-height: 1.45; letter-spacing: 0; }
.mp-login-view p { margin: 12px 0 24px; color: #8c8d94; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.mp-login-btn { width: 100%; max-width: 360px; height: 48px; margin: 0 auto 9px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; font-size: 13px; font-weight: 800; cursor: pointer; }
.mp-login-btn.kakao { border: 1px solid rgba(254,229,0,.28); background: #171716; color: #f5db28; }
.mp-login-btn.google { border: 1px solid rgba(255,255,255,.14); background: #171719; color: #f1f1f3; }
.mp-login-btn.google span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-family: Arial,sans-serif; }

.sb-menu { padding: 6px 18px 10px; }
.sb-label {
  font-family: var(--c-sans);
  font-size: 11.5px; font-weight: 700;
  color: var(--c-mute); letter-spacing: 0.4px;
  margin: 18px 4px 6px;
}
.sb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--c-text);
  transition: background 0.18s;
}
.sb-menu button.sb-item { width: 100%; border: 0; background: transparent; font-family: var(--c-sans); text-align: left; cursor: pointer; }
.sb-item:hover, .sb-item:active { background: rgba(255, 255, 255, 0.045); }
.sb-ico {
  width: 22px; height: 22px; flex: none;
  color: #9d9ea6;
  display: flex; align-items: center; justify-content: center;
}
.sb-ico svg { width: 21px; height: 21px; }
.sb-item:hover .sb-ico { color: var(--c-red-bright); }
.sb-txt {
  flex: 1; min-width: 0;
  font-family: var(--c-sans);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.02em;
}
.sb-chev { width: 16px; height: 16px; color: #55565c; flex: none; }
.sb-badge {
  flex: none;
  font-family: var(--c-sans);
  font-size: 9.5px; font-weight: 800;
  color: var(--c-red-bright);
  border: 1px solid rgba(240, 50, 63, 0.45);
  border-radius: 999px;
  padding: 2px 7px;
}
.sb-item.is-soon { cursor: default; }
.sb-item.is-soon .sb-txt, .sb-item.is-soon .sb-ico { opacity: 0.42; }
.sb-item.is-soon:hover { background: transparent; }
.sb-item.is-soon:hover .sb-ico { color: #9d9ea6; }
.sb-soon {
  flex: none;
  font-family: var(--c-sans);
  font-size: 9.5px; font-weight: 700;
  color: #6f7076;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px 7px;
}
.sb-ver {
  margin: auto 18px 0;
  padding: 16px 4px calc(env(safe-area-inset-bottom, 0px) + 18px);
  font-family: var(--c-sans);
  font-size: 11px; color: #55565c;
  border-top: 1px solid var(--c-line);
}

/* =========================================================================
   모달 (폼 / 결과 / 로딩 / 인트로)
   ========================================================================= */
.form-container, .result-container {
  background: linear-gradient(180deg, #121216, #0a0a0d) !important;
  border: 1px solid var(--c-line) !important;
  border-bottom: none !important;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.8) !important;
}
.form-container::before, .result-container::before, .intro-form-panel::before { background: rgba(255, 255, 255, 0.28) !important; }
.form-header { background: transparent !important; }
.form-header h2, .result-title, .intro-form-title { color: var(--c-text) !important; font-family: var(--c-sans) !important; font-weight: 800; }
.form-close, .intro-form-close { color: var(--c-mute) !important; }
.form-close:hover, .intro-form-close:hover { background: rgba(255, 255, 255, 0.06) !important; color: var(--c-text) !important; }
.form-label, .intro-form-panel .form-label { color: var(--c-dim) !important; }
.result-header { border-bottom: 1px solid var(--c-line) !important; }
.result-actions { background: transparent !important; border-top: 1px solid var(--c-line) !important; }
.result-content { color: var(--c-text) !important; }
.result-modal { background: rgba(2, 2, 4, 0.66) !important; }

.form-select, .intro-form-panel .form-select {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--c-line) !important;
  color: var(--c-text) !important;
}
.form-select:focus, .intro-form-panel .form-select:focus {
  border-color: var(--c-red) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(216, 31, 42, 0.16) !important;
}
.form-select option { background: #121216; color: var(--c-text); }
.toggle-group, .intro-form-panel .toggle-group { background: rgba(255, 255, 255, 0.04) !important; }
.toggle-btn, .intro-form-panel .toggle-btn { color: var(--c-mute) !important; }
.toggle-btn.active, .intro-form-panel .toggle-btn.active {
  background: var(--c-red) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(216, 31, 42, 0.35) !important;
}

.submit-btn, .intro-form-panel .submit-btn, .action-btn.primary {
  background: var(--c-red) !important;
  color: #fff !important;
  font-family: var(--c-sans) !important;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(216, 31, 42, 0.32) !important;
}
.submit-btn:hover, .intro-form-panel .submit-btn:hover, .action-btn.primary:hover { background: var(--c-red-bright) !important; }
.action-btn.secondary { background: rgba(255, 255, 255, 0.06) !important; color: var(--c-dim) !important; }

.intro-modal[data-type="saju"] .intro-cta,
.intro-modal[data-type="fortune"] .intro-cta,
.intro-modal[data-type="compatibility"] .intro-cta,
.intro-modal[data-type="tarot"] .intro-cta,
.intro-modal[data-type="lotto"] .intro-cta { background: var(--c-red) !important; color: #fff !important; }
.intro-title .highlight { color: var(--c-red) !important; }

.loading-modal { background: rgba(4, 4, 6, 0.95) !important; }
.loading-spinner {
  border: 2px solid rgba(216, 31, 42, 0.2) !important;
  border-top-color: var(--c-red) !important;
  box-shadow: 0 0 22px rgba(216, 31, 42, 0.28);
}
.loading-text { color: var(--c-text) !important; font-family: var(--c-sans) !important; letter-spacing: 1px; }
.loading-subtext { color: var(--c-red) !important; }

/* =========================================================================
   푸터
   ========================================================================= */
.footer {
  background: linear-gradient(180deg, transparent, rgba(8, 8, 11, 0.9)) !important;
  border-top: 1px solid var(--c-line) !important;
  color: var(--c-mute) !important;
}
.footer-info-item { color: var(--c-mute) !important; }
.footer-info-item::after { background: var(--c-line) !important; }
.footer-links a { color: var(--c-dim) !important; }
.footer-links a:hover { color: var(--c-red) !important; }
.copyright { color: var(--c-mute) !important; }

/* =========================================================================
   하단 네비
   ========================================================================= */
.bottom-nav {
  background: rgba(8, 8, 11, 0.92) !important;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.7) !important;
}
.bottom-nav-item {
  color: var(--c-mute) !important;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.bottom-nav-label {
  display: block; font-family: var(--c-sans);
  font-size: 10px; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
}
.bottom-nav-item.active { color: var(--c-red-bright) !important; }
.bottom-nav-item.active .bottom-nav-icon { filter: drop-shadow(0 0 8px rgba(240, 50, 63, 0.55)); }
/* 활성 표시: 아이콘 뒤 은은한 크림슨 pill */
.bottom-nav-item.active::before {
  content: ''; position: absolute; z-index: -1;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(216, 31, 42, 0.16);
}
/* 눌림: 부드러운 스케일만 (기존 파란색/이상한 상태 제거) */
.bottom-nav-item:active { transform: scale(0.92); background: transparent !important; color: var(--c-red-bright) !important; }

/* =========================================================================
   스크롤 리빌
   ========================================================================= */
.cine-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.8, 0.28, 1),
              transform 0.85s cubic-bezier(0.22, 0.8, 0.28, 1);
  will-change: opacity, transform;
}
.cine-reveal.cine-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .cine-reveal { opacity: 1 !important; transform: none !important; }
  .hero-slide.active .slide-label,
  .hero-slide.active .slide-title,
  .hero-slide.active .slide-desc,
  .hero-slide.active .slide-cta { animation: none !important; }
}

/* =========================================================================
   호러 연출 — 촛불 flicker · 붉은 기운 (모두 컬럼 내부에만, 양옆은 순수 블랙)
   ========================================================================= */

/* 히어로: 촛불처럼 어둠이 미세하게 흔들림 */
.hero-slide.active .slide-overlay {
  animation: candleFlicker 4.5s ease-in-out infinite;
}
@keyframes candleFlicker {
  0%, 100% { opacity: 1; }
  18% { opacity: 0.93; }
  32% { opacity: 0.98; }
  48% { opacity: 0.87; }
  60% { opacity: 0.96; }
  74% { opacity: 0.9; }
}

/* 캐릭터 이름에 스며드는 붉은 기운 */
.slide-title .highlight { animation: redBreath 3.6s ease-in-out infinite; }
@keyframes redBreath {
  0%, 100% { text-shadow: 0 0 30px rgba(240, 50, 63, 0.6), 0 0 6px rgba(255, 90, 100, 0.4); }
  50% { text-shadow: 0 0 56px rgba(240, 50, 63, 0.95), 0 0 14px rgba(255, 110, 120, 0.7); }
}

/* '자시의 신당' 제목 뒤로 번지는 핏빛 기운 */
.section-best .section-header { position: relative; }
.section-best .section-header::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 260px; height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(216, 31, 42, 0.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  animation: emberPulse 5s ease-in-out infinite;
}
@keyframes emberPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.section-best .section-subtitle {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #8a5560;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .slide-overlay,
  .slide-title .highlight,
  .section-best .section-header::before { animation: none !important; }
}

@media (max-width: 400px) {
  .hero { height: 540px; }
  .slide-title { font-size: 42px; }
  .section-header .section-title { font-size: 21px; }
}

/* =========================================================================
   넷플릭스 모바일식 포스터 열(rail)
   ========================================================================= */
.rail-block { margin: 0 -20px 26px; }
.rail-eyebrow, .eyebrow {
  font-family: var(--c-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #8e8f96;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.rail-eyebrow { padding: 0 20px; }
.rail-label {
  font-family: var(--c-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.03em;
  padding: 0 20px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.rail-category-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 8px;
  margin: 0 20px 14px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.rail-category-link > .rail-eyebrow,
.rail-category-link > .rail-label { grid-column: 1; padding: 0; margin: 0; letter-spacing: 0; }
.rail-category-link > .rail-eyebrow { grid-row: 1; margin-bottom: 5px; }
.rail-category-link > .rail-label { grid-row: 2; }
.rail-category-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  font: 400 24px/1 var(--c-sans);
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.rail-category-link:hover .rail-category-arrow,
.rail-category-link:focus-visible .rail-category-arrow { color: #fff; border-color: rgba(255,255,255,.34); transform: translateX(2px); }
.rail-category-link:focus-visible { outline: 1px solid rgba(255,255,255,.42); outline-offset: 6px; }
.shrine-head { padding: 20px 0 4px; }
.shrine-title {
  font-family: var(--c-sans);
  font-size: 23px;
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -0.03em;
}
.rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 20px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
@media (hover: hover) { .rail { cursor: grab; } }
/* 마우스 드래그 시 이미지 고스트/텍스트 선택 방지 */
.rail img, .hero2-img, .poster img, .rank-row img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.rail, .hero2-track { user-select: none; -webkit-user-select: none; }
.rail::-webkit-scrollbar { display: none; }

.poster-card, .rank-card { flex: 0 0 auto; scroll-snap-align: start; text-decoration: none; }

.poster {
  position: relative;
  width: 222px; height: 330px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-bg-1);
  border: 1px solid var(--c-line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  transition: transform .35s cubic-bezier(.25,.8,.25,1), border-color .35s, box-shadow .35s;
}
.poster-card:active .poster { transform: scale(0.97); }
@media (hover: hover) {
  .poster-card:hover .poster, .rank-card:hover .poster {
    transform: translateY(-4px);
    border-color: var(--c-red-line);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.7), 0 0 24px rgba(216, 31, 42, 0.14);
  }
}
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.poster-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(4, 4, 6, 0.35) 55%, rgba(4, 4, 6, 0.93) 100%);
  pointer-events: none;
}
.poster-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.poster-cap { left: 14px; right: 14px; bottom: 14px; }
.poster-cap strong {
  font-family: var(--c-sans);
  font-size: 16.5px; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
.poster-cap span:not(.poster-badge) {
  font-size: 12.5px; color: #c9c9d1; line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.poster-badge {
  align-self: flex-start;
  font-family: var(--c-sans);
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 3px;
  margin-bottom: 4px; letter-spacing: 0;
}
.poster-badge.hot { background: var(--c-red); color: #fff; box-shadow: 0 2px 10px rgba(216, 31, 42, 0.5); }
.poster-badge.new { background: #26262c; color: #dcdce4; }
.poster-badge.adult { background: #111; color: #fff; border: 1.5px solid var(--c-red); box-shadow: 0 0 10px rgba(216,31,42,0.5); font-weight: 900; }

/* 숫자 랭킹 세로 리스트 — 차트 스타일 (숫자 → 포스터 썸네일 → 텍스트) */
.rank-list { list-style: none; margin: 0; padding: 0 20px; counter-reset: rank; }
.rank-list li + li .rank-row { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.rank-row {
  display: flex; align-items: center; gap: 15px;
  padding: 13px 2px; text-decoration: none;
  transition: background 0.2s;
  border-radius: 10px;
}
.rank-row:active { background: rgba(255, 255, 255, 0.03); }
.rank-idx {
  order: -1;
  font-family: var(--c-sans);
  font-size: 25px; font-weight: 900; font-style: italic;
  color: #4a4b52;
  width: 28px; text-align: center; flex: none;
  letter-spacing: -0.08em;
  line-height: 1;
}
.rank-list li:first-child .rank-idx { color: var(--c-red-bright); text-shadow: 0 0 16px rgba(240, 50, 63, 0.35); }
.rank-list li:nth-child(2) .rank-idx,
.rank-list li:nth-child(3) .rank-idx { color: #8e8f96; }
.rank-row img {
  width: 56px; height: 74px; flex: none;
  border-radius: 12px; object-fit: cover;
  background: var(--c-bg-1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.rank-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-txt strong {
  font-family: var(--c-sans);
  font-size: 15px; font-weight: 800; color: var(--c-text);
  letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-txt span {
  font-size: 12px; color: #85868d; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 랭킹 배지 — 절제된 아웃라인 */
.rank-row .poster-badge {
  margin: 0; flex: none;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 10px; padding: 3px 8px;
  border-radius: 999px;
}
.rank-row .poster-badge.hot { border: 1px solid rgba(240, 50, 63, 0.55); color: var(--c-red-bright) !important; }
.rank-row .poster-badge.new { border: 1px solid rgba(255, 255, 255, 0.22); color: #c9c9d1 !important; }

@media (max-width: 400px) {
  .poster { width: 200px; height: 298px; }
}

/* =========================================================================
   후기 카드 (가로 스크롤)
   ========================================================================= */
.review-score {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px; font-weight: 800;
  color: #ffb43a;
  vertical-align: 2px;
  letter-spacing: 0;
}
.review-card {
  position: relative;
  flex: 0 0 auto;
  width: 272px;
  padding: 18px 18px 15px;
  border-radius: 18px;
  background: linear-gradient(165deg, #17181c 0%, #101013 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 11px;
  scroll-snap-align: start;
  overflow: hidden;
}
.review-card::before {           /* 은은한 인용부호 워터마크 */
  content: '❝';
  position: absolute;
  top: 4px; right: 14px;
  font-family: 'Gowun Batang', serif;
  font-size: 52px; line-height: 1;
  color: rgba(240, 50, 63, 0.14);
  pointer-events: none;
}
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review-stars { color: #ffb43a; font-size: 12px; letter-spacing: 2.5px; }
.review-date { font-family: var(--c-sans); font-size: 11px; color: #63646a; }
.review-text {
  font-family: var(--c-sans);
  font-size: 13.5px; line-height: 1.7; color: #d9d9df;
  font-weight: 500;
  letter-spacing: -0.015em; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 110px;
}
.review-card { width: 288px; }
.review-foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.review-avatar {
  width: 26px; height: 26px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #26272c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b9b9c1;
  font-family: var(--c-sans);
  font-size: 11.5px; font-weight: 800;
}
.review-foot strong { font-family: var(--c-sans); font-size: 12.5px; font-weight: 700; color: #a9aab1; }
.review-tag {
  margin-left: auto;
  font-family: var(--c-sans);
  font-size: 10.5px; font-weight: 800;
  color: var(--c-red-bright);
  padding: 3px 9px;
  border: 1px solid rgba(240, 50, 63, 0.38);
  border-radius: 999px;
}

/* 리뷰 카드 — 일간 아바타 + 구매수 + 시간 (sajutight 벤치마크) */
.review-head { display: flex; align-items: center; gap: 9px; }
.review-head .review-avatar {
  width: 36px; height: 36px;
  display: block;
  object-fit: cover;
  background: #18181b;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.36);
}
.review-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.review-who strong { font-family: var(--c-sans); font-size: 12.5px; font-weight: 700; color: #cfcfd6; white-space: nowrap; }
.review-id { color: #6a6b72; font-weight: 600; font-size: 11px; }
.review-meta { font-family: var(--c-sans); font-size: 10.5px; color: #6a6b72; font-weight: 500; white-space: nowrap; }
.review-head .review-stars { margin-left: auto; font-size: 11px; letter-spacing: 1.5px; }
.rail-reviews .review-tag { margin-left: 0; align-self: flex-start; margin-top: 1px; }

/* =========================================================================
   카테고리 전용 뷰 — 탭 클릭 시 위쪽 숨기고 해당 아이템 1열 풀폭 포스터
   ========================================================================= */
.cat-view { display: none; }
body.cat-mode .hero2,
body.cat-mode .shrine-head,
body.cat-mode .wolha-banner,
body.cat-mode .section-best { display: none !important; }
/* 2열 그리드 — 한 화면에 더 많이 (모든 화면 2열 고정) */
body.cat-mode #catView {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 14px 48px;
}
.cat-view-head { grid-column: 1 / -1; padding: 12px 4px 2px; animation: catHeadIn 0.34s ease both; }
.cat-poster {
  position: relative; display: block; margin: 0; width: 100%;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease;
  animation: catPop 0.42s cubic-bezier(0.22, 0.7, 0.28, 1) both;
}
.cat-poster img { width: 100%; height: auto; display: block; }
.cat-poster:active { transform: scale(0.97); }
.cat-empty { grid-column: 1 / -1; text-align: center; color: #7a7b82; padding: 64px 20px; font-family: var(--c-sans); }

/* 탭 전환 시 심플·인터랙티브한 등장 (스태거 페이드업) */
@keyframes catPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes catHeadIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.cat-poster:nth-child(2)  { animation-delay: 0.02s; }
.cat-poster:nth-child(3)  { animation-delay: 0.06s; }
.cat-poster:nth-child(4)  { animation-delay: 0.10s; }
.cat-poster:nth-child(5)  { animation-delay: 0.14s; }
.cat-poster:nth-child(6)  { animation-delay: 0.18s; }
.cat-poster:nth-child(7)  { animation-delay: 0.22s; }
.cat-poster:nth-child(8)  { animation-delay: 0.26s; }
.cat-poster:nth-child(9)  { animation-delay: 0.30s; }
.cat-poster:nth-child(n+10) { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .cat-poster, .cat-view-head { animation: none; }
}

/* 페이지 전체 가로 넘침(밀림) 방지 — clip은 sticky 헤더/칩을 깨지 않음 */
html, body { overflow-x: clip; max-width: 100%; }

/* 운명의 질문 — 인터랙티브 점사 추천 */
.deep-block { scroll-margin-top: 160px; }
.fate-picker {
  position: relative; overflow: hidden; margin-top: 5px; padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 4%, rgba(216, 31, 42, 0.18), transparent 34%),
    radial-gradient(circle at 5% 95%, rgba(241, 193, 91, 0.09), transparent 32%),
    linear-gradient(150deg, #171014 0%, #0e0c10 64%, #09090b 100%);
  border: 1px solid rgba(240, 50, 63, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}
.fate-picker::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.24;
  background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.2px);
  background-size: 42px 42px; mask-image: linear-gradient(135deg, #000, transparent 65%);
}
.fate-picker-intro { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fate-picker-spark {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  color: #f6ce78; font-size: 20px; background: rgba(240, 50, 63, 0.12);
  border: 1px solid rgba(246, 206, 120, 0.24); box-shadow: 0 0 20px rgba(216, 31, 42, 0.16);
}
.fate-picker-intro p { margin: 0; color: #aaaab2; font-family: var(--c-sans); font-size: 12.5px; line-height: 1.6; word-break: keep-all; }
.fate-picker-intro strong { color: #f1f1f3; font-weight: 700; }
.fate-question-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fate-question {
  appearance: none; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 72px;
  padding: 12px; border-radius: 16px; text-align: left; cursor: pointer;
  color: #f2f2f4; background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}
.fate-question-mark {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 13px;
  color: #efc66d; font-family: 'Gowun Batang', serif; font-size: 17px;
  background: linear-gradient(145deg, rgba(216, 31, 42, 0.18), rgba(246, 206, 120, 0.05));
  border: 1px solid rgba(246, 206, 120, 0.18);
}
.fate-question > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fate-question small { color: #85858d; font: 700 10px/1.2 var(--c-sans); letter-spacing: .03em; }
.fate-question strong { color: #ededf0; font: 700 13px/1.35 var(--c-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fate-question.is-selected {
  transform: translateY(-2px); background: rgba(216, 31, 42, 0.11);
  border-color: rgba(240, 50, 63, 0.48); box-shadow: 0 8px 24px rgba(216, 31, 42, 0.16);
}
.fate-question.is-selected .fate-question-mark { color: #ffe3a0; border-color: rgba(246, 206, 120, 0.44); box-shadow: 0 0 18px rgba(246, 206, 120, 0.14); }
.fate-question:active { transform: scale(.98); }
.fate-reading { display: none; align-items: center; justify-content: center; gap: 5px; height: 70px; color: #bdbdc4; }
.is-reading .fate-reading { display: flex; }
.fate-reading > span { width: 24px; height: 24px; margin-right: 4px; border-radius: 50%; border: 1px solid rgba(246,206,120,.28); box-shadow: inset 0 0 12px rgba(216,31,42,.25); animation: fatePulse .8s ease-in-out infinite alternate; }
.fate-reading p { margin: 0 5px 0 0; font: 600 12px/1 var(--c-sans); }
.fate-reading i { width: 3px; height: 3px; border-radius: 50%; background: #e9bd61; animation: fateDot .8s ease-in-out infinite alternate; }
.fate-reading i:nth-last-child(2) { animation-delay: .14s; }
.fate-reading i:last-child { animation-delay: .28s; }
.fate-match-result {
  position: relative; display: flex; gap: 16px; margin-top: 15px; padding: 14px;
  border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(246, 206, 120, .19);
  opacity: 0; transform: translateY(10px) scale(.985);
}
.fate-match-result[hidden] { display: none; }
.is-revealed .fate-match-result { animation: fateReveal .42s cubic-bezier(.2,.8,.2,1) forwards; }
.fate-match-poster { flex: none; width: 92px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 12px; background: #111; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.fate-match-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fate-match-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; }
.fate-match-kicker { margin-top: 2px; color: #efc66d; font: 800 10px/1.3 var(--c-sans); letter-spacing: .06em; }
.fate-match-copy h4 { margin: 5px 0 6px; color: #fff; font: 700 18px/1.3 'Gowun Batang', serif; }
.fate-match-copy p { margin: 0; color: #9d9da6; font: 400 11.5px/1.55 var(--c-sans); word-break: keep-all; }
.fate-match-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 9px 13px;
  border-radius: 999px; color: #fff; background: #cf1f2b; text-decoration: none; font: 800 11.5px/1 var(--c-sans);
  box-shadow: 0 6px 18px rgba(207, 31, 43, .25);
}
@media (hover: hover) {
  .fate-question:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); border-color: rgba(246,206,120,.24); }
  .fate-match-cta:hover { background: #e22a37; }
}
@keyframes fatePulse { to { transform: scale(1.16); box-shadow: inset 0 0 12px rgba(216,31,42,.3), 0 0 18px rgba(246,206,120,.2); } }
@keyframes fateDot { to { opacity: .3; transform: translateY(-3px); } }
@keyframes fateReveal { to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  .fate-picker { padding: 16px; }
  .fate-question-grid { gap: 8px; }
  .fate-question { min-height: 68px; padding: 10px 9px; gap: 8px; }
  .fate-question-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .fate-question strong { font-size: 12px; }
  .fate-match-result { gap: 13px; padding: 12px; }
  .fate-match-poster { width: 82px; }
  .fate-match-copy h4 { font-size: 16px; }
  .fate-match-copy p { font-size: 10.5px; line-height: 1.45; }
  .fate-match-cta { padding: 8px 11px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .fate-reading > span, .fate-reading i, .is-revealed .fate-match-result { animation: none; }
  .is-revealed .fate-match-result { opacity: 1; transform: none; }
}

/* =========================================================================
   카테고리 칩 (sticky pill nav)
   ========================================================================= */
.chips {
  position: sticky; top: 0; z-index: 95;
  display: flex; gap: 7px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;   /* iOS 관성 가로 스크롤 */
  touch-action: pan-x;                 /* 칩 위에선 가로 스와이프 우선 */
  padding: 72px 16px 12px;  /* 고정 헤더 아래 */
  margin: 0;
  background: linear-gradient(180deg, var(--c-bg-0) 72%, rgba(0, 0, 0, 0));
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 19px;
  border-radius: 999px;
  font-family: var(--c-sans);
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  color: #8f9098;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: color .22s, background .22s, box-shadow .22s, border-color .22s;
}
.chip.active {
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-deep));
  border-color: transparent;
  box-shadow: 0 5px 16px rgba(216, 31, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.chip:not(.active):hover { color: #e6e6ea; background: rgba(255, 255, 255, 0.08); }
.chip:active { transform: scale(0.95); }

/* =========================================================================
   Hero — 포스터 캐러셀 (TIGHT 스타일)
   ========================================================================= */
.hero2 { padding: 4px 0 6px; position: relative; }
.hero2-track {
  display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 7% 14px;
  scrollbar-width: none;
}
.hero2-track::-webkit-scrollbar { display: none; }
@media (hover: hover) { .hero2-track { cursor: grab; } }

.hero2-card {
  position: relative; flex: 0 0 auto;
  width: 86%;
  aspect-ratio: 26 / 39;
  border-radius: 26px; overflow: hidden;
  scroll-snap-align: center;
  background: var(--c-bg-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, filter;   /* 커버플로우 스케일/명도 */
}
.hero2-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero2-grad {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(72% 42% at 28% 88%, rgba(120, 10, 16, 0.38), transparent 72%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.3) 0%, transparent 26%, transparent 44%, rgba(10, 10, 12, 0.55) 66%, rgba(10, 10, 12, 0.96) 100%);
}
.hero2-counter {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-family: var(--c-sans);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
/* 포스터 타이포 — 아트에 새겨진 타이틀처럼 (중앙 하단) */
.hero2-body {
  position: absolute; left: 16px; right: 16px; bottom: 56px;
  z-index: 2; text-align: center;
}
.hero2-sub {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 6px;
  margin-top: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.hero2-title {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  font-size: 44px; font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: 2px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
}
.hero2-title em {
  font-style: normal; color: var(--c-red-bright);
  text-shadow: 0 0 34px rgba(240, 50, 63, 0.8), 0 4px 20px rgba(0, 0, 0, 0.8);
  animation: redBreath 3.6s ease-in-out infinite;
}

/* 화살표 — 포스터 하단 모서리 안쪽, 소형 (레퍼런스 동일: 36px, black/55, blur) */
.hero2-nav {
  position: absolute; bottom: 24px; z-index: 4;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; cursor: pointer;
  transition: background .2s, transform .15s;
}
.hero2-nav:hover { background: rgba(216, 31, 42, 0.85); }
.hero2-nav:active { transform: scale(0.9); }
/* 카드가 9%~91% 폭을 차지 → 카드 안쪽 모서리 12px */
.hero2-nav.prev { left: calc(9% + 12px); }
.hero2-nav.next { right: calc(9% + 12px); }
.hero2-nav svg { width: 17px; height: 17px; }

@media (max-width: 400px) {
  .hero2-title { font-size: 37px; }
  .hero2-sub { font-size: 12px; letter-spacing: 4px; }
}

/* =========================================================================
   하단 네비 — 떠 있는 pill 독 (TIGHT 스타일)
   ========================================================================= */
.bottom-nav {
  width: auto !important; max-width: none !important;
  left: 50% !important; transform: translateX(-50%) !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  height: 58px !important;
  padding: 0 10px;
  gap: 2px;
  border-radius: 999px !important;
  background: rgba(20, 21, 24, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55) !important;
}
.bottom-nav-item { flex: none !important; width: 64px; }
.bottom-nav-label { display: block !important; }
.bottom-nav-icon { width: 24px !important; height: 24px !important; }
/* 독 여백은 컨테이너가 아니라 푸터 내부에 — 푸터 아래 빈공간 방지 */
.container { padding-bottom: 0 !important; }

/* =========================================================================
   데스크톱: 태블릿 폭 프레임 (더 넓고 시원하게)
   ========================================================================= */
@media (min-width: 768px) {
  .container { max-width: 600px !important; }
  /* 헤더도 프레임(600px) 안에 꽉 채움 — 로고 왼쪽 끝, 3줄버튼 오른쪽 끝 */
  .header { max-width: 600px !important; left: 0 !important; right: 0 !important; margin: 0 auto !important; transform: none !important; }
  .chips { max-width: 600px; margin-left: auto; margin-right: auto; }
  #gateRoot { max-width: 600px !important; }
  body.gate-dark .chat-container { max-width: 600px !important; }
  .hero2-card { border-radius: 30px; }
  .hero2-title { font-size: 40px; }
  .section-header .section-title, .shrine-title { font-size: 26px; }
  .poster { width: 250px; height: 372px; }
}
@media (min-width: 1000px) {
  .container { max-width: 640px !important; }
  .header { max-width: 640px !important; }
}
.footer {
  margin-top: 36px !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px) !important;
}

/* ===== 넷플릭스 Top 10 스타일 랭킹 ===== */
.rank10 {
  display: flex; gap: 4px;
  overflow-x: auto; overflow-y: hidden;
  padding: 8px 16px 6px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rank10::-webkit-scrollbar { display: none; }
.rank10-item {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: flex-end;
  text-decoration: none;
  padding-top: 6px;
}
.rank10-num {
  position: relative; z-index: 1;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 128px; font-weight: 900; line-height: 0.78;
  letter-spacing: -0.08em;
  color: #0c0c10;
  -webkit-text-stroke: 2.5px rgba(240, 50, 63, 0.55);
  margin-right: -20px;
  margin-bottom: 44px;
  user-select: none;
}
.rank10-col { position: relative; z-index: 2; display: flex; flex-direction: column; }
.rank10-poster {
  position: relative;
  width: 138px; aspect-ratio: 2 / 3;
  border-radius: 11px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -10px 10px 26px rgba(0, 0, 0, 0.55);
  background: #131317;
  transition: transform 0.25s ease;
}
.rank10-item:active .rank10-poster { transform: scale(0.96); }
.rank10-poster img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.rank10-poster .poster-badge {
  position: absolute; top: 7px; right: 7px;
  font-size: 9.5px; padding: 3px 8px;
}
/* 랭킹 카드: 키워드 칩을 HOT 배지와 같은 크기·세로 위치로 (좌측 = 키워드, 우측 = HOT) */
.rank10-poster .poster-kw {
  top: 7px; left: 7px; bottom: auto;
  font-size: 12px; padding: 5px 11px;
}
/* 캐릭터 키워드 칩 — 포스터 상단 왼쪽 (어떤 키워드 컨텐츠인지 한눈에) */
.poster-kw {
  position: absolute; left: 9px; top: 9px; z-index: 2;
  padding: 7px 15px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 24, 10, 0.9), rgba(6, 5, 7, 0.9)); border: 1.5px solid rgba(240, 186, 104, 0.72);
  color: #ffe6b0; font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(232, 170, 90, 0.28);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.rank10-cap {
  display: flex; flex-direction: column; gap: 2px;
  width: 138px; margin-top: 8px;
  line-height: 1.35;
}
.rank10-cap strong {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 13.5px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank10-cap span {
  font-size: 11.5px; color: rgba(255, 255, 255, 0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rank10 { touch-action: pan-x pan-y; }
@media (hover: hover) { .rank10 { cursor: grab; } .rank10:active { cursor: grabbing; } }

/* 모바일 성능: 화면 밖 섹션 렌더링 스킵 */
.rail-block, .deep-block, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

/* 19금 코너 배지 (성인 콘텐츠 카드) */
.poster { position: relative; }
.poster-19 {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(216, 31, 42, .92); border: 1px solid rgba(255, 150, 160, .7);
  color: #fff; font-size: 12px; font-weight: 900; letter-spacing: -.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
