/* =========================================================================
   오늘의 運命 — 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 { pointer-events: auto; }
.header .logo { margin-right: auto; }
.header .menu-btn { margin-left: auto; flex: 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-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: none; border-radius: 12px;
  background: #FEE500; color: #191600;
  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.04); }
.sb-kakao:active { transform: scale(0.98); }
.sb-kakao svg { width: 18px; height: 18px; }

.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-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;
}
.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: 30px; height: 30px; font-size: 15px;
  background: radial-gradient(circle at 30% 25%, #2c2d34, #16171b);
}
.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-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; margin-top: 4px;
  border-radius: 20px; text-decoration: none;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(216, 31, 42, 0.22), transparent 55%),
    linear-gradient(155deg, #1a1113 0%, #120e12 60%, #0c0b0e 100%);
  border: 1px solid rgba(240, 50, 63, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  position: relative; overflow: hidden;
}
.deep-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 150px; height: 150px; border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 50, 63, 0.18), transparent 70%);
  pointer-events: none;
}
.deep-orb {
  flex: none; width: 52px; height: 52px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #ffd76a;
  background: radial-gradient(circle at 35% 30%, #2a1c1e, #140f12);
  border: 1px solid rgba(255, 200, 90, 0.35);
  box-shadow: 0 0 18px rgba(255, 200, 90, 0.25), inset 0 0 12px rgba(255, 200, 90, 0.12);
  text-shadow: 0 0 12px rgba(255, 200, 90, 0.7);
}
.deep-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.deep-badge {
  align-self: flex-start; font-family: var(--c-sans);
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: var(--c-red); padding: 2px 8px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(216, 31, 42, 0.5);
}
.deep-title { font-family: 'Gowun Batang', serif; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.deep-desc { font-family: var(--c-sans); font-size: 12.5px; line-height: 1.55; color: #a9aab1; letter-spacing: -0.01em; word-break: keep-all; }
.deep-arrow { flex: none; width: 22px; height: 22px; color: var(--c-red-bright); }
.deep-card:active { transform: scale(0.99); }
/* 홈 유명인 사진 미리보기 레일 */
.rail-celeb { display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 4px; scroll-snap-type: x mandatory; }
.celeb-mini { flex: 0 0 auto; width: 84px; text-decoration: none; scroll-snap-align: start; text-align: center; }
.celeb-mini img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; object-position: center 18%;
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); background: #1a1a1f; }
.celeb-mini span { display: block; margin-top: 7px; font-family: var(--c-sans); font-size: 11.5px; font-weight: 600; color: #c2c3c9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.celeb-more { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.celeb-more .cm-arrow { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  border-radius: 18px; border: 1px dashed rgba(240, 50, 63, 0.5); color: var(--c-red-bright); font-size: 26px; }
.celeb-more span:last-child { color: var(--c-red-bright); }

/* =========================================================================
   카테고리 칩 (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-bottom: 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;
}
