/* ==========================================================================
   도깨비 점방 (신통방통 사주 & 비기) 고도화 스타일시트
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=East+Sea+Dokdo&family=Noto+Sans+KR:wght@400;500;700;900&family=Noto+Serif+KR:wght@400;600;700;900&display=swap');

:root {
  /* ========================================================================
     [PHASE 1D] DOKKAEBI DESIGN SYSTEM TOKENS
     ======================================================================== */
  /* Surfaces & Backgrounds */
  --dok-bg-0: #070a0f;
  --dok-bg-1: #0c1017;
  --dok-surface-1: #131922;
  --dok-surface-2: #1a2230;
  --dok-surface-glass: rgba(19, 25, 34, 0.88);
  --dok-surface-card: rgba(16, 22, 30, 0.85);

  /* Typography Colors */
  --dok-text-primary: #ede6d6;
  --dok-text-secondary: #c2cbd8;
  --dok-text-muted: #8391a5;
  --dok-text-dark: #0e1219;

  /* Accent Brand Colors */
  --dok-gold: #d4a853;
  --dok-gold-soft: #f7e4b2;
  --dok-gold-glow: rgba(212, 168, 83, 0.35);
  --dok-jade: #00d2b4;
  --dok-jade-soft: #80ffe9;
  --dok-jade-glow: rgba(0, 210, 180, 0.35);
  --dok-red: #d9383a;
  --dok-red-soft: #ff8587;
  --dok-red-glow: rgba(217, 56, 58, 0.35);

  /* Borders */
  --dok-border: #232c3d;
  --dok-border-strong: #354259;
  --dok-border-gold: rgba(212, 168, 83, 0.28);
  --dok-border-jade: rgba(0, 210, 180, 0.28);

  /* Border Radii */
  --dok-radius-xs: 4px;
  --dok-radius-sm: 8px;
  --dok-radius-md: 12px;
  --dok-radius-lg: 16px;
  --dok-radius-xl: 20px;
  --dok-radius-full: 9999px;

  /* Spacing Scale (4, 8, 16, 24, 32, 48px) */
  --dok-space-xs: 4px;
  --dok-space-sm: 8px;
  --dok-space-md: 16px;
  --dok-space-lg: 24px;
  --dok-space-xl: 32px;
  --dok-space-2xl: 48px;

  /* Elevation & Shadows */
  --dok-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --dok-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(212, 168, 83, 0.03);
  --dok-shadow-elevated: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 168, 83, 0.15);
  --dok-shadow-glow-gold: 0 0 24px rgba(212, 168, 83, 0.3);
  --dok-shadow-glow-jade: 0 0 24px rgba(0, 210, 180, 0.3);

  /* Transitions */
  --dok-transition-fast: 150ms ease;
  --dok-transition-normal: 250ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --dok-transition-slow: 400ms ease;

  /* Font Families */
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-calli: 'East Sea Dokdo', cursive;

  /* Legacy Backward-Compatibility Aliases */
  --bg: var(--dok-bg-1);
  --bg-card: var(--dok-surface-1);
  --bg-card-glass: var(--dok-surface-glass);
  --border: var(--dok-border);
  --border-gold: var(--dok-border-gold);
  --teal: var(--dok-jade);
  --teal-glow: var(--dok-jade-glow);
  --gold: var(--dok-gold);
  --gold-light: var(--dok-gold-soft);
  --red: var(--dok-red);
  --red-glow: var(--dok-red-glow);
  --text: var(--dok-text-primary);
  --text-dim: var(--dok-text-muted);
  --text-dark: var(--dok-text-dark);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #080c12;
  background-image: radial-gradient(circle at 50% 12%, #121c2a 0%, #080c12 80%);
  color: var(--text);
  font-family: var(--font-sans);
  position: relative;
  line-height: 1.7;
  touch-action: pan-y; /* 좌우 흔들림 방지 */
}

/* 도깨비 점방 방망이 전통 사랑방 배경 (레이어 최하단 z-index 0) */
.dok-hammer-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(180deg, 
    rgba(8, 12, 18, 0.72) 0%, 
    rgba(8, 12, 18, 0.38) 25%, 
    rgba(8, 12, 18, 0.55) 55%, 
    rgba(8, 12, 18, 0.9) 100%), 
    url('hammer-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0; /* 레이어 제일 뒤 */
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.dok-hammer-bg.hidden {
  opacity: 0;
}

/* 밤하늘 도깨비불 파티클 (배경 바로 위 z-index 1) */
#goblinParticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flame-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.6) 0%, rgba(0, 210, 180, 0) 70%);
  filter: blur(2px);
  animation: floatUp 9.5s infinite linear;
  pointer-events: none;
}

@keyframes floatUp {
  0% { transform: translateY(105vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.45; }
  80% { opacity: 0.45; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 14px 100px;
  position: relative;
  z-index: 10;
  overflow-x: hidden;
}

/* 상단 고정 네비게이션 헤더 */
.dok-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: 50px;
  background: rgba(12, 16, 23, 0.95);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.topbar-logo .emblem-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: #1a2332;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-calli);
  font-size: 16px;
  color: var(--teal);
}

.topbar-logo .logo-title {
  font-family: var(--font-calli);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(220, 179, 101, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-home:hover {
  background: rgba(220, 179, 101, 0.2);
  border-color: var(--gold);
}

/* [GLOBAL V2] 상단 헤더 계정 진입 버튼 & 모바일 최적화 */
.btn-header-account {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 14px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-account:hover {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-header-account.logged-in {
  background: rgba(212, 168, 83, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* [GLOBAL V2] 부드러운 가입 유도 카드 & 단건 심층 사주 버튼 */
.soft-signup-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-signup-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.15);
}

.btn-dok-single:hover {
  background: rgba(212, 168, 83, 0.2) !important;
  border-color: var(--gold-light) !important;
  transform: translateY(-1px);
}

@media (max-width: 400px) {
  .dok-topbar {
    padding: 0 8px;
  }
  .topbar-logo .logo-title {
    font-size: 16.5px;
  }
  .lang-switcher-row {
    gap: 2px;
  }
  .lang-chip-btn {
    padding: 2px 4px;
    font-size: 10px;
  }
  .btn-header-account {
    padding: 3px 6px;
    font-size: 10.5px;
  }
  .header-coin-badge {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
  }
  .btn-vip-header {
    padding: 4px 7px !important;
    font-size: 10.5px !important;
  }
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM & UTILITIES
   ========================================================================== */
.dok-display {
  font-family: var(--font-calli);
  font-size: clamp(26px, 6.5vw, 36px);
  color: var(--dok-gold-soft);
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 14px rgba(247, 228, 178, 0.25);
  word-break: keep-all;
}

.dok-heading-xl {
  font-family: var(--font-calli);
  font-size: clamp(22px, 5.5vw, 28px);
  color: var(--dok-gold-soft);
  line-height: 1.3;
  word-break: keep-all;
}

.dok-heading-lg {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--dok-gold-soft);
  line-height: 1.4;
  word-break: keep-all;
}

.dok-heading-md {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--dok-text-primary);
  line-height: 1.45;
  word-break: keep-all;
}

.dok-body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--dok-text-primary);
  line-height: 1.68;
  word-break: keep-all;
}

.dok-body-small {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--dok-text-secondary);
  line-height: 1.55;
  word-break: keep-all;
}

.dok-caption {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--dok-gold);
  text-transform: uppercase;
  font-weight: 700;
}

/* ==========================================================================
   PAGE HEADER SYSTEM
   ========================================================================== */
.dok-page-header {
  text-align: center;
  padding: 8px 4px 16px;
  margin-bottom: 8px;
  width: 100%;
}

.dok-page-kicker {
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--dok-gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.dok-page-title {
  font-family: var(--font-calli);
  font-size: clamp(26px, 6.5vw, 36px);
  color: var(--dok-gold-soft);
  text-shadow: 0 0 20px rgba(247, 228, 178, 0.28);
  line-height: 1.28;
  margin: 4px 0 8px;
  word-break: keep-all;
}

.dok-page-desc {
  font-size: 14px;
  color: var(--dok-text-muted);
  font-family: var(--font-sans);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
  word-break: keep-all;
}

/* ==========================================================================
   UNIFIED CARD SYSTEM
   ========================================================================== */
/* 1. Primary Card: 글래스모피즘 + 억제된 골드 보더 */
.dok-card {
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-lg);
  padding: 20px 16px;
  margin-bottom: 18px;
  position: relative;
  box-shadow: var(--dok-shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
  box-sizing: border-box;
}

.dok-card::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: calc(var(--dok-radius-lg) - 4px);
  pointer-events: none;
}

/* 2. Secondary Card: 차분한 서피스 카드 */
.dok-card-secondary {
  background: var(--dok-surface-1);
  border: 1px solid var(--dok-border);
  border-radius: var(--dok-radius-lg);
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: var(--dok-shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

/* 3. Interactive Card: 탭/호버 피드백 지원 */
.dok-card-interactive {
  cursor: pointer;
  transition: transform var(--dok-transition-fast), border-color var(--dok-transition-fast), box-shadow var(--dok-transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .dok-card-interactive:hover {
    transform: translateY(-2px);
    border-color: var(--dok-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 168, 83, 0.2);
  }
}

.dok-card-interactive:active {
  transform: scale(0.985);
}

/* 4. Empty State Card */
.dok-card-empty {
  background: rgba(12, 16, 23, 0.5);
  border: 1px dashed var(--dok-border-strong);
  border-radius: var(--dok-radius-lg);
  padding: 32px 20px;
  text-align: center;
  color: var(--dok-text-muted);
}

/* 재방문 손님 배너 */
.return-banner {
  background: linear-gradient(135deg, rgba(0, 210, 180, 0.12), rgba(220, 179, 101, 0.08));
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.return-banner p {
  font-size: 13px;
  color: var(--gold-light);
}

.return-banner button {
  padding: 6px 12px;
  background: var(--teal);
  color: var(--text-dark);
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}

/* 랜딩 히어로 (도깨비 단일 캐릭터 포트레이트) */
.hero-box {
  text-align: center;
  padding: 10px 4px;
  width: 100%;
}

/* 도깨비 캐릭터 전용 포트레이트 프레임 (CSS 백그라운드로 안전하게 크롭) */
.dok-hero-portrait-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 6px auto 18px;
}

.dok-hero-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 35px var(--teal-glow), 0 0 15px rgba(220, 179, 101, 0.4);
  background-color: #080c12;
  background-image: url('hero-bg.jpg');
  background-repeat: no-repeat;
  background-size: 270%;
  background-position: 51.5% 36.5%;
}

.dok-hero-portrait-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85), inset 0 0 15px var(--teal-glow);
  pointer-events: none;
}

.dok-hero-portrait-wrap .dok-emblem {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 2px solid var(--gold-light);
  background: rgba(14, 20, 30, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--teal-glow);
}

.dok-hero-portrait-wrap .dok-emblem span {
  font-family: var(--font-calli);
  font-size: 28px;
  color: var(--teal);
}

.kicker {
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--dok-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}

.main-title {
  font-family: var(--font-calli);
  font-size: clamp(26px, 6.5vw, 36px);
  color: var(--dok-gold-soft);
  text-shadow: 0 0 20px rgba(247, 228, 178, 0.28);
  line-height: 1.28;
  margin-bottom: 8px;
  word-break: keep-all;
}

.sub-title {
  font-size: 14.5px;
  color: var(--dok-text-muted);
  font-family: var(--font-sans);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 타이핑 커서 */
.typewriter-box {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--dok-gold-soft);
  min-height: 48px;
  margin-bottom: 20px;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--dok-jade);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dok-badge {
  font-size: 12px;
  color: var(--dok-gold-soft);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-full);
  padding: 6px 14px;
}

.btn-dok-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--dok-gold-soft) 0%, var(--dok-gold) 60%, #b88628 100%);
  border: none;
  border-radius: var(--dok-radius-md);
  color: var(--dok-text-dark);
  font-family: var(--font-calli);
  font-size: 24px;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.35);
  transition: transform var(--dok-transition-fast), box-shadow var(--dok-transition-fast);
  text-decoration: none;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .btn-dok-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 168, 83, 0.5);
  }
}

.btn-dok-main:active {
  transform: scale(0.985);
}

.btn-dok-main:focus-visible {
  outline: 2px solid var(--dok-gold);
  outline-offset: 3px;
}

.guarantee-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   2. 대화형 위저드
   ========================================================================== */
.wizard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

.wizard-step-indicator {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(220, 179, 101, 0.12);
  border: 1px solid rgba(220, 179, 101, 0.3);
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, var(--teal), var(--gold));
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--teal-glow);
}

.dok-dialog {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dok-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #182230;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-calli);
  font-size: 26px;
  color: var(--teal);
  box-shadow: 0 0 15px rgba(0, 210, 180, 0.2);
}

.dok-bubble {
  background: rgba(28, 37, 50, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: 4px 16px 16px 16px;
  padding: 16px 18px;
  color: var(--text);
  flex: 1;
}

.wizard-question-title {
  font-family: var(--font-calli);
  font-size: 20px;
  color: var(--gold-light);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.wizard-question-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

.wizard-input-label {
  display: block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.wizard-inline-error {
  color: #ff9e9e;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255, 75, 75, 0.12);
  border: 1px solid rgba(255, 75, 75, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.2s ease;
}

.dok-input-group {
  margin-bottom: 20px;
}

.dok-input {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-sans);
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.dok-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 15px var(--teal-glow);
}

.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.select-btn {
  padding: 14px 16px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-sizing: border-box;
}

.select-btn:hover {
  border-color: var(--gold);
}

.select-btn.selected {
  border-color: var(--gold);
  background: rgba(220, 179, 101, 0.15);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(220, 179, 101, 0.2);
}

.unknown-time-btn {
  width: 100%;
  margin-top: 12px;
  font-size: 13.5px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-dim);
}

.unknown-time-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* 12시진 그리드 */
.sijin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.sijin-card {
  padding: 12px 6px;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.sijin-card .han {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
}

.sijin-card .name {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 2px;
}

.sijin-card .range {
  font-size: 10px;
  color: var(--text-dim);
}

.sijin-card.selected {
  border-color: var(--teal);
  background: rgba(0, 210, 180, 0.12);
  box-shadow: 0 0 12px var(--teal-glow);
}

/* 고민 칩 */
.worry-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.worry-chip {
  padding: 14px 18px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.worry-chip:hover {
  border-color: rgba(220, 179, 101, 0.5);
}

.worry-chip.selected {
  border-color: var(--gold);
  background: rgba(220, 179, 101, 0.15);
  color: var(--gold-light);
  font-weight: 600;
}

.btn-dok-submit {
  min-height: 52px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   3. 책장 넘김형 챕터 (RPage) & 하단 네비게이션
   ========================================================================== */
.rpage {
  display: none;
  animation: fadeUp 0.45s ease;
}

.rpage.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
  font-family: var(--font-calli);
  font-size: 28px;
  color: var(--gold-light);
  white-space: nowrap;
}

.chapter-head::before,
.chapter-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

/* 챕터 봉투 (눌러서 펼치기 손맛) */
.ch-envelope {
  text-align: center;
  padding: 26px 16px;
  cursor: pointer;
  border: 1px dashed var(--border-gold);
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(220, 179, 101, 0.08), transparent 70%);
  transition: all 0.3s;
  margin-bottom: 16px;
}

.ch-envelope:hover {
  border-color: var(--gold);
  background: radial-gradient(ellipse at center, rgba(220, 179, 101, 0.15), transparent 70%);
}

.ch-envelope .ch-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.ch-envelope .ch-title {
  font-family: var(--font-calli);
  font-size: 24px;
  color: var(--gold-light);
}

.ch-envelope .ch-hint {
  font-size: 13px;
  color: var(--teal);
  margin-top: 6px;
  animation: pulse 1.8s infinite;
}

/* 하단 고정 책장 네비게이션 */
.rnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(12, 16, 23, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.rnav-toc {
  padding: 10px 14px;
  background: rgba(220, 179, 101, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.rnav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rnav-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.rnav-arrow.pulse {
  border-color: var(--gold);
  color: var(--gold);
  animation: arrowPulse 1.6s infinite;
}

@keyframes arrowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 179, 101, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(220, 179, 101, 0); }
}

.rnav-pos {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.rnav-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}

.rnav-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.rnav-dots .dot.on {
  background: var(--gold);
  width: 14px;
  border-radius: 3px;
}

/* 목차(TOC) 및 공통 모달 백드롭 */
.toc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.toc-backdrop.active {
  display: flex;
}

.toc-card {
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-xl);
  box-shadow: var(--dok-shadow-elevated);
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dok-border);
  font-family: var(--font-calli);
  font-size: 24px;
  color: var(--dok-gold-soft);
}

.toc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  min-height: 48px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
  font-size: 14.5px;
  color: var(--dok-text-primary);
  cursor: pointer;
  transition: background var(--dok-transition-fast);
}

.toc-item:hover {
  background: rgba(212, 168, 83, 0.08);
}

.toc-item.current {
  background: rgba(212, 168, 83, 0.15);
  color: var(--dok-gold-soft);
  font-weight: 700;
}

/* ==========================================================================
   4. 사주 4기둥 & 오행
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 20px;
}

.pillar-col {
  background: linear-gradient(180deg, #1f2a3a 0%, #111822 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 14px 4px;
  text-align: center;
}

.pillar-col.day-pillar {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(220, 179, 101, 0.25);
  background: linear-gradient(180deg, #2a384e 0%, #151e2c 100%);
}

.pillar-tag {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.pillar-stem {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-serif);
  color: var(--gold-light);
}

.pillar-divider {
  width: 20px;
  height: 1px;
  background: var(--border);
  margin: 6px auto;
}

.pillar-branch {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-serif);
  color: var(--teal);
}

.pillar-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 오행 바 */
.element-bars {
  display: flex;
  gap: 8px;
  height: 90px;
  align-items: flex-end;
  margin: 20px 0;
  padding: 0 6px;
}

.el-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.el-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.8s ease;
  min-height: 6px;
}

.el-col.wood .el-fill { background: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
.el-col.fire .el-fill { background: #e74c3c; box-shadow: 0 0 10px rgba(231, 76, 60, 0.4); }
.el-col.earth .el-fill { background: #f39c12; box-shadow: 0 0 10px rgba(243, 156, 18, 0.4); }
.el-col.metal .el-fill { background: #ecf0f1; box-shadow: 0 0 10px rgba(236, 240, 241, 0.4); }
.el-col.water .el-fill { background: #3498db; box-shadow: 0 0 10px rgba(52, 152, 219, 0.4); }

.el-lbl {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.el-val {
  font-size: 11px;
  color: var(--text-dim);
}

.story-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
}

.story-text b {
  color: var(--gold-light);
}

/* ==========================================================================
   5. 쌀점 & 엽전점 캔버스
   ========================================================================== */
.ritual-wrap {
  text-align: center;
  margin: 16px 0;
  position: relative;
}

.ritual-stage-container {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ritual-stage-container.waiting-action {
  animation: ritualBoardPulse 2.4s infinite ease-in-out;
}

@keyframes ritualBoardPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(212, 168, 83, 0.35), inset 0 0 25px rgba(212, 168, 83, 0.15);
    border-color: rgba(212, 168, 83, 0.65);
  }
  50% {
    box-shadow: 0 0 32px rgba(212, 168, 83, 0.6), inset 0 0 40px rgba(212, 168, 83, 0.3);
    border-color: rgba(255, 226, 150, 0.95);
  }
}

.rice-canvas,
.coin-canvas {
  width: 100%;
  height: 210px;
  display: block;
  background: radial-gradient(ellipse at center, #2e1d13 0%, #150c07 100%);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.coin-canvas {
  background: radial-gradient(ellipse at center, #23160e 0%, #120b07 100%);
}

.rice-canvas.ritual-done,
.coin-canvas.ritual-done {
  cursor: default;
}

/* 터치 유도 전용 CTA 레이어 */
.ritual-cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(14, 9, 6, 0.52);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 5;
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: auto;
}

.ritual-cta-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 첫 진입 및 터치 유도 펄스 링 */
.ritual-pulse-ring {
  position: absolute;
  width: 190px;
  height: 52px;
  border-radius: 30px;
  border: 2px solid rgba(255, 215, 120, 0.85);
  animation: ritualRippleAnim 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes ritualRippleAnim {
  0% { transform: scale(0.92); opacity: 0.95; }
  100% { transform: scale(1.48); opacity: 0; }
}

/* 중앙 메인 CTA 버튼/배지 */
.ritual-cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f5d179 0%, #d4a853 50%, #9e7323 100%);
  color: #170d05;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
  padding: 11px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 209, 121, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  animation: ritualBadgeBounce 2s infinite ease-in-out;
  z-index: 2;
}

@keyframes ritualBadgeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}

.ritual-cta-icon {
  font-size: 19px;
  display: inline-block;
  animation: ritualHandTap 1.2s infinite ease-in-out;
}

@keyframes ritualHandTap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ritual-cta-text {
  color: #150c05;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.ritual-cta-sub {
  color: #f7e0b5;
  font-size: 12.5px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.3px;
  z-index: 2;
  white-space: nowrap;
}

.ritual-guide {
  font-size: 13px;
  color: var(--gold);
  margin-top: 10px;
  animation: pulse 1.8s infinite;
  transition: all 0.3s ease;
}

.ritual-guide.completed {
  animation: none;
  color: #a3e3d4;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-ritual-retry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 12px;
  font-family: var(--font-serif);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-ritual-retry:hover {
  background: rgba(212, 168, 83, 0.25);
  transform: translateY(-1px);
}

.btn-ritual-retry:active {
  transform: translateY(1px);
}

/* 봉인 부적 두드려 깨기 */
.seal-box {
  width: 200px;
  height: 270px;
  margin: 24px auto;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
}

.seal-box.shake {
  animation: sealShake 0.3s;
}

@keyframes sealShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  75% { transform: translateX(5px) rotate(2deg); }
}

.seal-paper {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #9e1d1d, #630c0c);
  border: 3px solid var(--gold);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.seal-char {
  font-size: 100px;
  color: #f7e4b2;
  font-family: var(--font-calli);
  line-height: 1;
  text-shadow: 0 0 15px rgba(247, 228, 178, 0.4);
}

.seal-crack {
  position: absolute;
  background: rgba(255, 240, 200, 0.9);
  width: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.seal-crack.c1 { left: 35%; top: 10%; height: 50%; transform: rotate(15deg); }
.seal-crack.c2 { left: 65%; top: 30%; height: 60%; transform: rotate(-20deg); }
.seal-crack.c3 { left: 25%; top: 50%; height: 45%; transform: rotate(30deg); }
.seal-crack.c4 { left: 70%; top: 15%; height: 40%; transform: rotate(-10deg); }

.seal-box.crack1 .c1 { opacity: 1; }
.seal-box.crack2 .c1, .seal-box.crack2 .c2 { opacity: 1; }
.seal-box.crack3 .c1, .seal-box.crack3 .c2, .seal-box.crack3 .c3 { opacity: 1; }
.seal-box.crack4 .c1, .seal-box.crack4 .c2, .seal-box.crack4 .c3, .seal-box.crack4 .c4 { opacity: 1; }

/* 10년 대운 그래프 캔버스 */
.graph-canvas {
  width: 100%;
  height: 220px;
  background: rgba(21, 27, 36, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  margin: 14px 0;
  display: block;
}

/* 금기사항 체크리스트 */
.avoid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(220, 179, 101, 0.15);
  font-size: 14.5px;
  cursor: pointer;
}

.avoid-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.avoid-item input:checked + span {
  color: var(--text-dim);
  text-decoration: line-through;
}

/* 도깨비불 3D 파티클 & 캔버스 레이어: 텍스트 및 카드 레이어 뒤 (z-index: 1) 고정 */
#goblinFireCanvas,
#goblinParticles {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.container,
.app-screen,
.rpage,
.dok-card {
  position: relative;
  z-index: 10;
}

/* 결제 카드 & 모달 */
.paywall-card {
  background: linear-gradient(160deg, #241c12 0%, #17120a 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 0 30px rgba(220, 179, 101, 0.2);
}

.pay-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.og-price {
  font-size: 16px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.sale-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--gold-light);
}

.discount-tag {
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(220, 179, 101, 0.15);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: '•';
  color: var(--gold);
}

/* 로딩 화면 */
.loading-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.loading-screen.active {
  display: flex;
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(220, 179, 101, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--teal-glow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-calli);
  font-size: 32px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--font-serif);
}

/* 맞춤 부적 캔버스 */
.charm-canvas {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: inline-block;
}

/* ==========================================================================
   6. 5대 탭 하단 내비게이션 바 (Bottom Navigation)
   ========================================================================== */
.dok-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  min-height: 64px;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 16, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--dok-border-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1200;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.nav-tab-btn {
  flex: 1;
  min-width: 0;
  min-height: 48px; /* 터치 최소 영역 44px 이상 보장 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-size: 11.5px;
  gap: 2px;
  cursor: pointer;
  padding: 6px 2px;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-tab-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: 8px;
}

.nav-tab-btn .tab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-tab-btn .nav-tab-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  opacity: 0.65;
  filter: grayscale(0.2);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nav-tab-btn.active .nav-tab-img {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.65));
}

.nav-tab-btn .tab-label {
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.4px;
}

/* 활성 탭: 색상뿐만 아니라 스케일 + 금빛 인디케이터 점(dot)으로 접근성 준수 */
.nav-tab-btn.active {
  color: var(--gold-light);
  font-weight: 800;
}

.nav-tab-btn.active .tab-icon {
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 0 8px var(--gold));
}

.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px var(--gold);
}

/* 탭 전환 시 화면 컨테이너 하단 여백 확보 (모바일 안전영역 포함) */
.container {
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   7. 🔨 [도술 방망이] 뚝딱 & 스크래치 복권 화면
   ========================================================================== */
#screenHammer {
  position: relative;
  background: transparent;
  padding: 10px 4px 28px;
  margin-bottom: 24px;
  min-height: calc(100vh - 170px);
}

#screenHammer .daily-score-box,
#screenHammer .attendance-wrap {
  background: rgba(26, 16, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 83, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.hammer-hero-wrap {
  text-align: center;
  padding: 12px 10px 14px;
  position: relative;
}

.goblin-hammer-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 170px;
  height: 250px;
  margin: 0 auto;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
  .hammer-hero-wrap {
    padding: 6px 6px 10px;
  }
  .goblin-hammer-btn {
    width: 150px;
    height: 220px;
    transform: scale(0.86);
    transform-origin: top center;
    margin-bottom: -28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .club-assembly,
  .club-tassel-img,
  .aura-glow-circle,
  .aura-sparkle,
  #hammerTapInstruction {
    animation: none !important;
    transition: none !important;
  }
}

/* 🌟 대기 모드: 방망이 주위 황금빛 신기(神氣) 오라 일렁임 */
.club-aura-effect {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  pointer-events: none;
  z-index: 1;
}

.aura-glow-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 80, 0.55) 0%, rgba(212, 168, 83, 0.35) 45%, rgba(0, 210, 180, 0.15) 68%, transparent 78%);
  filter: blur(16px);
  animation: auraBreathe 3s ease-in-out infinite alternate;
}

.aura-sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff8bd;
  box-shadow: 0 0 12px 4px rgba(255, 230, 90, 0.95), 0 0 20px 8px rgba(212, 168, 83, 0.6);
  pointer-events: none;
}

.aura-sp1 {
  top: 20%;
  left: 15%;
  animation: sparkleFloat 2.6s ease-in-out infinite alternate;
}
.aura-sp2 {
  top: 32%;
  right: 12%;
  animation: sparkleFloat 3.4s ease-in-out 0.8s infinite alternate;
}
.aura-sp3 {
  bottom: 25%;
  left: 20%;
  animation: sparkleFloat 3.0s ease-in-out 1.5s infinite alternate;
}

@keyframes auraBreathe {
  0% {
    transform: scale(0.88);
    opacity: 0.6;
    filter: blur(14px) hue-rotate(0deg);
  }
  50% {
    opacity: 0.95;
    filter: blur(18px) hue-rotate(10deg);
  }
  100% {
    transform: scale(1.18);
    opacity: 0.75;
    filter: blur(22px) hue-rotate(-6deg);
  }
}

@keyframes sparkleFloat {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.3; }
  50% { transform: translate(8px, -14px) scale(1.3); opacity: 1; }
  100% { transform: translate(-6px, -24px) scale(0.5); opacity: 0.2; }
}

/* 🔨 방망이 본체 및 실뭉치 어셈블리 */
.club-assembly {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 75%;
  animation: clubIdleFloat 3.6s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.goblin-hammer-btn:active .club-assembly {
  transform: scale(0.94);
}

/* 방망이 본체 고화질 이미지 */
.club-body-img {
  width: 90px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.65)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7));
  user-select: none;
  pointer-events: none;
}

/* 🪢 손잡이 하단 링 고리에 매달린 황금 실뭉치 (기본 6시 방향) */
.club-tassel-anchor {
  position: absolute;
  top: 224px;
  left: 48%;
  transform: translateX(-50%);
  width: 36px;
  height: 72px;
  pointer-events: none;
  transform-origin: 50% 2px;
  z-index: 3;
}

.club-tassel-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: 50% 2px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  /* 기본 6시 방향(0deg)으로 늘어뜨려진 상태에서 부드러운 미풍 스윙 */
  animation: tasselIdleBreeze 3.6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

/* 대기 모드: 부유하는 방망이 */
@keyframes clubIdleFloat {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-7px) rotate(-1.5deg); }
  70% { transform: translateY(4px) rotate(1.2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* 대기 모드: 6시 방향 실뭉치의 살랑살랑 미풍 스윙 */
@keyframes tasselIdleBreeze {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(4.5deg); }
  70% { transform: rotate(-3.5deg); }
  100% { transform: rotate(0deg); }
}

/* ⚡ 타격 모드: 방망이 풀스윙 타격 */
.club-assembly.strike {
  animation: clubStrike 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes clubStrike {
  0% { transform: rotate(0deg) translateY(0) scale(1); }
  30% { transform: rotate(-38deg) translateY(-28px) scale(1.1); }
  65% { transform: rotate(24deg) translateY(18px) scale(0.96); }
  82% { transform: rotate(-7deg) translateY(-4px) scale(1.02); }
  100% { transform: rotate(0deg) translateY(0) scale(1); }
}

/* 🌊 타격 모드: 실뭉치의 역동적 물리 관성 스윙 */
.club-tassel-img.strike {
  animation: tasselStrikeInertia 0.9s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes tasselStrikeInertia {
  0% { transform: rotate(0deg); }
  28% { transform: rotate(48deg) scaleY(0.95); } /* 방망이 뒤로 젖혀질 때 반대 방향 팽팽 */
  65% { transform: rotate(-58deg) scaleY(1.1); } /* 쾅! 내려칠 때 앞으로 강력하게 흩날림 */
  78% { transform: rotate(26deg); }             /* 1차 반동 */
  88% { transform: rotate(-10deg); }            /* 2차 반동 */
  100% { transform: rotate(0deg); }             /* 6시 방향 정위치 안착 */
}

.hammer-sparks {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 235, 100, 0.95) 0%, rgba(212, 168, 83, 0.7) 35%, rgba(0, 210, 180, 0.4) 55%, transparent 72%);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 5;
}

.hammer-sparks.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.35);
}

.daily-score-box {
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 20px 16px;
  margin: 16px 0;
  text-align: center;
}

.daily-score-num {
  font-family: var(--font-calli);
  font-size: 52px;
  color: var(--gold-light);
  line-height: 1;
  margin: 8px 0;
  text-shadow: 0 0 15px rgba(212, 168, 83, 0.5);
}

.scratch-card-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 160px;
  margin: 18px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-gold);
}

.scratch-under-content {
  position: absolute;
  inset: 0;
  background: #1c1109;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
}

.lotto-ball-row {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}

.lotto-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
  color: #1a0f05;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.scratch-cover-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}

/* ==========================================================================
   8. 👥 [둔갑 궁합] 화면
   ========================================================================== */
.relation-chip-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.rel-chip-btn {
  flex: 1;
  min-width: 70px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: var(--dok-surface-1);
  border: 1px solid var(--dok-border);
  border-radius: var(--dok-radius-full);
  color: var(--dok-text-muted);
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dok-transition-fast);
  box-sizing: border-box;
}

.rel-chip-btn:hover {
  border-color: var(--dok-border-gold);
  color: var(--dok-text-primary);
}

.rel-chip-btn.active {
  background: rgba(212, 168, 83, 0.16);
  border-color: var(--dok-gold);
  color: var(--dok-gold-soft);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.25);
}

.match-result-card {
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-lg);
  padding: 22px 18px;
  margin-top: 20px;
  text-align: center;
  box-shadow: var(--dok-shadow-card);
}

.beast-avatar {
  font-size: 64px;
  margin: 8px 0;
  filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.4));
}

.hogu-meter-track {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.hogu-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2b4, #ffb830, #ff4d4f);
  border-radius: 10px;
  transition: width 0.8s ease;
}

/* ==========================================================================
   9. 💬 [도점주 사랑방] 팩폭 메신저 화면
   ========================================================================== */
.container.chat-mode {
  padding-top: 54px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#screenChat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

#screenChat .dok-page-header {
  flex-shrink: 0;
  padding: 2px 0 6px;
  margin-bottom: 2px;
}

.chat-window {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-lg);
  box-shadow: var(--dok-shadow-card);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.chat-messages-box {
  flex: 1;
  min-height: 0;
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 5;
  -webkit-overflow-scrolling: touch;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  position: relative;
  z-index: 10;
}

.chat-msg.dojumju {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dok-surface-2);
  border: 1.5px solid var(--dok-jade);
  box-shadow: 0 0 10px var(--dok-jade-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.msg-sender-name {
  font-size: 11px;
  color: var(--dok-gold);
  margin-bottom: 4px;
  font-weight: 700;
}

.msg-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
  font-family: var(--font-sans);
  word-break: break-word;
  position: relative;
  z-index: 10;
}

.chat-msg.dojumju .msg-bubble {
  background: rgba(22, 29, 39, 0.95);
  color: var(--dok-text-primary);
  border: 1px solid rgba(0, 210, 180, 0.25);
  border-top-left-radius: 4px;
  line-height: 1.68;
}

.chat-msg.dojumju .msg-bubble b {
  color: var(--dok-gold-soft);
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.chat-spacer {
  height: 10px;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(212, 168, 83, 0.12));
  color: var(--dok-gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-top-right-radius: 4px;
  line-height: 1.55;
}

.msg-time {
  font-size: 10px;
  color: var(--dok-text-muted);
  align-self: flex-end;
  margin: 0 4px;
}

.chat-quick-chips {
  padding: 8px 10px;
  background: rgba(10, 14, 20, 0.75);
  border-top: 1px solid var(--dok-border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  position: relative;
  z-index: 12;
}

.chat-chip {
  min-height: 36px;
  padding: 6px 12px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-full);
  color: var(--dok-gold-soft);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: all var(--dok-transition-fast);
}

.chat-chip:hover {
  background: rgba(212, 168, 83, 0.22);
  border-color: var(--dok-gold);
}

.chat-input-bar {
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  background: var(--dok-surface-1);
  border-top: 1px solid var(--dok-border-gold);
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}

.chat-input-bar textarea {
  flex: 1;
  min-height: 44px;
  max-height: 96px;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid var(--dok-border);
  border-radius: var(--dok-radius-md);
  padding: 10px 14px;
  color: var(--dok-text-primary);
  font-size: 14.5px;
  line-height: 1.4;
  outline: none;
  resize: none;
  font-family: var(--font-sans);
  transition: border-color var(--dok-transition-fast), box-shadow var(--dok-transition-fast);
}

.chat-input-bar textarea:focus {
  border-color: var(--dok-gold);
  box-shadow: 0 0 10px var(--dok-gold-glow);
}

.chat-input-bar button {
  min-height: 44px;
  min-width: 64px;
  background: linear-gradient(135deg, var(--dok-gold-soft), var(--dok-gold));
  border: none;
  border-radius: var(--dok-radius-md);
  color: var(--dok-text-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dok-transition-fast), opacity var(--dok-transition-fast);
  flex-shrink: 0;
}

.chat-input-bar button:active {
  transform: scale(0.96);
}

/* 타이핑 애니메이션 */
.typing-bubble .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 3px;
  animation: typingDot 1.2s infinite;
}
.typing-bubble .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   10. 🎴 [부적 도감] 컬렉션 & 배경화면 모달
   ========================================================================== */
.charm-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.charm-card {
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-md);
  padding: 16px 12px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform var(--dok-transition-fast), border-color var(--dok-transition-fast), box-shadow var(--dok-transition-fast);
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .charm-card:hover {
    transform: translateY(-2px);
    border-color: var(--dok-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 12px rgba(212, 168, 83, 0.2);
  }
}

.charm-card:active {
  transform: scale(0.98);
}

.charm-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10.5px;
  background: rgba(0, 210, 180, 0.12);
  border: 1px solid var(--dok-jade);
  color: var(--dok-jade);
  padding: 2px 7px;
  border-radius: 4px;
}

.charm-card-preview {
  width: 84px;
  height: 130px;
  background: transparent;
  border: none;
  margin: 16px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.goblin-charm-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
  visibility: visible;
  opacity: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

.charm-card:hover .goblin-charm-image {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 14px rgba(212, 168, 83, 0.4));
}

.charm-card.locked .goblin-charm-image {
  filter: brightness(0.4) blur(1.5px) grayscale(0.35);
  opacity: 0.75;
}

.charm-card-lock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 10, 8, 0.88);
  border: 1px solid var(--dok-gold, #d4a853);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--dok-gold-light, #f7e4b2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 2;
}

.charm-card-hanja {
  font-family: var(--font-calli);
  font-size: 16px;
  color: #fceabb;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

.charm-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.charm-card-status {
  font-size: 11px;
  color: var(--text-dim);
}

.charm-card.locked {
  filter: grayscale(0.6);
  opacity: 0.75;
}

/* ==========================================================================
   11. VIP 멤버십 특화 스타일
   ========================================================================== */
.vip-card-banner {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(0, 210, 180, 0.15));
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vip-badge-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff4d4f, #f5222d);
  color: #fff;
  font-weight: 900;
  font-size: 11.5px;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(245, 34, 45, 0.5);
}

.vip-price-tag {
  font-size: 38px;
  font-weight: 900;
  color: var(--gold-light);
  font-family: var(--font-calli);
}

.vip-price-sub {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-top: -4px;
}

/* ==========================================================================
   PHASE 1B: 정돈된 프리미엄 랜딩 (Hero & Core Experiences)
   ========================================================================== */
.landing-hero-card {
  position: relative;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  background: radial-gradient(ellipse at 50% 15%, rgba(42, 26, 16, 0.85) 0%, rgba(14, 8, 4, 0.98) 100%);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), inset 0 0 25px rgba(212, 168, 83, 0.06);
  overflow: hidden;
}

.landing-hero-aura {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 180px;
  background: radial-gradient(circle, rgba(163, 227, 212, 0.16) 0%, rgba(212, 168, 83, 0.08) 50%, transparent 80%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 0;
}

/* 상단 탑바 (브랜드 태그 & 언어 선택) */
.landing-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 4px;
}

.landing-brand-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--dok-gold, #d4a853);
  text-transform: uppercase;
}

.landing-lang-selector {
  position: relative;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px; /* 최소 터치 타깃 44px 준수 */
  min-width: 58px;
  padding: 6px 12px;
  background: rgba(18, 24, 34, 0.88);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 18px;
  color: var(--dok-gold-soft, #f5d77f);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lang-selector-btn:hover {
  background: rgba(28, 38, 54, 0.95);
  border-color: var(--dok-gold, #d4a853);
}

.lang-selector-btn:focus-visible {
  outline: 2px solid var(--dok-teal, #2dd4bf);
  outline-offset: 2px;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(14, 20, 30, 0.96);
  border: 1px solid var(--dok-border-gold, rgba(212, 168, 83, 0.4));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  min-width: 110px;
  padding: 4px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-dropdown-menu[hidden] {
  display: none;
}

.lang-menu-item {
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--dok-text, #e2d9cd);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu-item:hover,
.lang-menu-item:focus-visible {
  background: rgba(212, 168, 83, 0.15);
  color: var(--dok-gold-light, #f7e4b2);
  outline: none;
}

.lang-menu-item.active {
  color: var(--dok-gold, #d4a853);
  font-weight: 800;
}

/* 상단 고정 헤더 언어 칩 버튼 */
.lang-switcher-row {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--dok-border);
  border-radius: 12px;
  padding: 2px 4px;
  align-items: center;
}

.lang-chip-btn {
  background: none;
  border: none;
  color: var(--dok-text-muted, #8e8e93);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  line-height: 1.1;
}

.lang-chip-btn:hover {
  color: #fff;
}

.lang-chip-btn.active {
  color: var(--dok-gold-soft, #ffd166);
  background: rgba(212, 175, 55, 0.22);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.25);
}

/* 중앙: 도깨비 비주얼 영역 & 대사 말풍선 */
.dok-hero-visual-area {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 10px;
}

.landing-hero-card .dok-hero-portrait-wrap {
  width: 155px;
  height: 155px;
  margin: 0 auto 8px;
}

@media (min-width: 768px) {
  .landing-hero-card .dok-hero-portrait-wrap {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
  }
}

.dok-speech-container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0 6px;
  padding: 0 8px;
}

.dok-speech-bubble {
  position: relative;
  background: rgba(14, 20, 30, 0.92);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 16px;
  padding: 7px 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(45, 212, 191, 0.15);
  max-width: 290px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dok-speech-bubble.bubble-active {
  opacity: 1;
  transform: translateY(0);
}

.dok-speech-bubble.bubble-fadeout {
  opacity: 0;
  transform: translateY(-4px);
}

.dok-speech-horn {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(212, 168, 83, 0.7);
  line-height: 1;
}

.dok-speech-text {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dok-gold-soft, #f5d77f);
  letter-spacing: -0.2px;
  word-break: keep-all;
  line-height: 1.4;
}

.dok-typewriter-cursor {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--dok-gold, #d4a853);
  margin-left: 2px;
  vertical-align: baseline;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.dok-typewriter-cursor.cursor-hidden {
  opacity: 0;
  visibility: hidden;
}

/* 하단 내비게이션 숨김 상태 및 컨테이너 패딩 보정 */
.dok-bottom-nav.nav-hidden {
  display: none !important;
}

.container.container-no-bottom-nav {
  padding-bottom: 24px !important;
}

@media (prefers-reduced-motion: reduce) {
  .dok-speech-bubble {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


.landing-hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-calli);
  font-size: clamp(24px, 6.5vw, 34px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.32;
  margin: 6px 0 10px;
  text-shadow: 0 2px 14px rgba(247, 228, 178, 0.25);
  word-break: keep-all;
}

.landing-hero-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #c8bdb2;
  line-height: 1.55;
  margin: 0 auto 18px;
  max-width: 320px;
  word-break: keep-all;
}

.landing-cta-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.btn-landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  min-height: 52px; /* 48px 이상 터치 타깃 보장 */
  padding: 12px 24px;
  background: linear-gradient(135deg, #e5be6b 0%, #c19232 100%);
  color: #150c05;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(193, 146, 50, 0.45), 0 0 15px rgba(247, 228, 178, 0.3);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-landing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 146, 50, 0.55), 0 0 20px rgba(247, 228, 178, 0.4);
}

.btn-landing-cta:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(193, 146, 50, 0.4);
}

.btn-landing-cta:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.btn-cta-text {
  letter-spacing: -0.2px;
}

.btn-cta-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-landing-cta:hover .btn-cta-arrow {
  transform: translateX(4px);
}

.landing-reassurance {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #8e8072;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.reassurance-icon {
  font-size: 11px;
}

/* 4대 비기 카드 그리드 섹션 */
.landing-features-section {
  max-width: 520px;
  margin: 32px auto 0;
  padding: 0 4px;
}

.landing-features-header {
  text-align: center;
  margin-bottom: 16px;
}

.features-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.features-title {
  font-family: var(--font-calli);
  font-size: 20px;
  color: var(--gold-light);
  margin: 0;
  letter-spacing: -0.3px;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 500px) {
  .landing-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: rgba(22, 14, 8, 0.88);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 14px;
  padding: 15px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.2s;
  text-align: left;
}

.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.45);
  transform: translateY(-2px);
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.feature-icon {
  font-size: 20px;
  line-height: 1;
}

.feature-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(46, 125, 114, 0.18);
  border: 1px solid rgba(46, 125, 114, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.feature-name {
  font-family: var(--font-calli);
  font-size: 16.5px;
  color: var(--gold-light);
  margin: 0 0 4px;
}

.feature-desc {
  font-size: 12px;
  color: #a89c90;
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
}

.landing-footer-action {
  text-align: center;
  margin-top: 22px;
  padding-bottom: 12px;
}

.btn-landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 28px;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-landing-secondary:hover {
  background: rgba(212, 168, 83, 0.22);
  border-color: var(--gold);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .landing-hero-card {
    padding: 28px 24px 34px;
    max-width: 560px;
  }
  .landing-hero-title {
    font-size: 38px;
  }
  .landing-hero-subtitle {
    font-size: 15px;
    max-width: 380px;
  }
}

/* ==========================================================================
   MOTION ACCESSIBILITY (PREFERS-REDUCED-MOTION)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #goblinParticles {
    display: none !important;
  }
}

/* ==========================================================================
   GLOBAL ACCESSIBILITY & FOCUS STATES
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--dok-gold);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
.select-btn:focus-visible,
.worry-chip:focus-visible {
  outline: 2px solid var(--dok-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   DESKTOP SCREEN POLISH (CENTERING & AMBIENT SPACE)
   ========================================================================== */
@media (min-width: 1024px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    max-width: 520px;
    padding-top: 64px;
    margin: 0 auto;
  }

  .dok-topbar {
    max-width: 520px;
  }

  .dok-bottom-nav {
    max-width: 520px;
    border-radius: 16px 16px 0 0;
  }
}

/* ==========================================================================
   [PHASE 2] DAILY CORE LOOP COMPONENT STYLES
   ========================================================================== */
.today-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.today-date-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dok-gold-soft);
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-full);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.today-streak-badge {
  font-size: 12px;
  font-weight: 800;
  color: #ff8587;
  background: rgba(217, 56, 58, 0.12);
  border: 1px solid rgba(217, 56, 58, 0.35);
  border-radius: var(--dok-radius-full);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulse 2s infinite;
}

.today-hero-card {
  text-align: center;
  padding: 24px 18px 20px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(26, 34, 48, 0.85) 0%, rgba(16, 22, 30, 0.95) 100%);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-lg);
  box-shadow: var(--dok-shadow-card);
  position: relative;
  overflow: hidden;
}

.today-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px auto 14px;
}

.today-score-num {
  font-family: var(--font-calli);
  font-size: clamp(48px, 12vw, 68px);
  color: var(--dok-gold-soft);
  line-height: 1;
  text-shadow: 0 0 25px rgba(247, 228, 178, 0.35);
}

.today-score-unit {
  font-size: 20px;
  font-family: var(--font-serif);
  color: var(--dok-gold);
  margin-left: 2px;
}

.today-hero-proverb {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--dok-gold-soft);
  margin-bottom: 8px;
  word-break: keep-all;
}

.today-hero-message {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--dok-text-primary);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
  word-break: keep-all;
}

/* 실천 가이드 듀얼 카드 그리드 */
.today-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 480px) {
  .today-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.today-action-card {
  background: var(--dok-surface-card);
  border-radius: var(--dok-radius-md);
  padding: 16px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.today-action-card.lucky {
  border: 1px solid var(--dok-border-jade);
  box-shadow: 0 4px 16px rgba(0, 210, 180, 0.08);
}

.today-action-card.defense {
  border: 1px solid rgba(217, 56, 58, 0.3);
  box-shadow: 0 4px 16px rgba(217, 56, 58, 0.08);
}

.today-action-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.today-action-card.lucky .today-action-tag {
  color: var(--dok-jade);
}

.today-action-card.defense .today-action-tag {
  color: #ff8587;
}

.today-action-text {
  font-size: 13.5px;
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--dok-text-primary);
  word-break: keep-all;
}

/* 저녁 피드백 (Daily Check-in) 4단계 */
.today-feedback-card {
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border-gold);
  border-radius: var(--dok-radius-lg);
  padding: 20px 16px;
  margin-bottom: 18px;
  text-align: center;
}

.today-feedback-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--dok-gold-soft);
  margin-bottom: 4px;
}

.today-feedback-sub {
  font-size: 12.5px;
  color: var(--dok-text-muted);
  margin-bottom: 14px;
}

.feedback-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feedback-chip-btn {
  min-height: 48px;
  padding: 10px 8px;
  background: var(--dok-surface-1);
  border: 1px solid var(--dok-border);
  border-radius: var(--dok-radius-md);
  color: var(--dok-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--dok-transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.feedback-chip-btn:hover {
  border-color: var(--dok-border-gold);
  color: var(--dok-text-primary);
}

.feedback-chip-btn.selected {
  background: rgba(212, 168, 83, 0.18);
  border-color: var(--dok-gold);
  color: var(--dok-gold-soft);
  font-weight: 800;
  box-shadow: 0 0 12px var(--dok-gold-glow);
}

.feedback-reward-toast {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(0, 210, 180, 0.12);
  border: 1px solid var(--dok-border-jade);
  border-radius: var(--dok-radius-sm);
  color: var(--dok-jade);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: fadeUp 0.3s ease;
}

/* 최근 7일 기록 및 패턴 요약 리포트 */
.today-history-card {
  background: var(--dok-surface-card);
  border: 1px solid var(--dok-border);
  border-radius: var(--dok-radius-lg);
  padding: 20px 16px;
  margin-bottom: 24px;
}

.today-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.today-history-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dok-gold-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.today-history-free-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--dok-jade);
  background: rgba(0, 210, 180, 0.12);
  border: 1px solid var(--dok-border-jade);
  padding: 2px 6px;
  border-radius: 4px;
}

.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.history-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--dok-border);
  border-radius: var(--dok-radius-sm);
  font-size: 13px;
}

.history-item-date {
  font-weight: 700;
  color: var(--dok-text-muted);
  width: 50px;
}

.history-item-score {
  font-family: var(--font-calli);
  font-size: 18px;
  color: var(--dok-gold-soft);
  width: 50px;
  text-align: center;
}

.history-item-desc {
  flex: 1;
  color: var(--dok-text-primary);
  font-size: 12.5px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-feedback {
  font-size: 14px;
  min-width: 24px;
  text-align: right;
}

.today-pattern-box {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(0, 210, 180, 0.05));
  border: 1px dashed var(--dok-border-gold);
  border-radius: var(--dok-radius-md);
  padding: 12px 14px;
  text-align: left;
}

.today-pattern-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--dok-gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.today-pattern-text {
  font-size: 12.5px;
  color: var(--dok-text-secondary);
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}

/* ==============================================================================
   [PHASE 2-R] TODAY SPECIAL EVENT & STREAK REWARD STYLING
   ============================================================================== */

.today-special-event-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 24, 46, 0.95), rgba(20, 16, 32, 0.95));
  border: 1px solid rgba(212, 168, 83, 0.32);
  border-radius: var(--dok-radius-lg, 16px);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(212, 168, 83, 0.15);
  animation: fadeUp 0.35s ease-out;
  text-align: left;
}

.today-special-event-card:hover {
  border-color: rgba(212, 168, 83, 0.48);
}

.special-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.special-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dok-gold, #d4a853);
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}

.special-event-weekday-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--dok-jade, #00d2b4);
  background: rgba(0, 210, 180, 0.1);
  border-radius: 6px;
  padding: 2px 7px;
}

.special-event-title {
  font-family: var(--font-calli, inherit);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.special-event-desc {
  font-size: 13px;
  color: #c9c3ba;
  line-height: 1.5;
  margin: 0 0 12px 0;
  word-break: keep-all;
}

.special-event-actions {
  display: flex;
  gap: 8px;
}

.btn-special-event-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #d4a853, #b8862d);
  color: #120e18;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--dok-radius-md, 10px);
  padding: 9px 16px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-special-event-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e0b865, #c99637);
}

.btn-special-event-cta:active {
  transform: scale(0.98);
}

.special-event-inline-detail {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(212, 168, 83, 0.3);
  border-radius: 10px;
  animation: fadeUp 0.25s ease-out;
}

.detail-row {
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 700;
  color: var(--dok-gold, #d4a853);
  margin-right: 6px;
}

.detail-val {
  color: #eae5de;
}

/* 연속 방문 스트릭 보상 카드 */
.today-streak-reward-card {
  background: linear-gradient(135deg, rgba(45, 30, 20, 0.95), rgba(35, 20, 15, 0.95));
  border: 1px solid rgba(255, 200, 80, 0.45);
  border-radius: var(--dok-radius-lg, 16px);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(255, 180, 50, 0.15);
  animation: fadeUp 0.35s ease-out;
  text-align: left;
}

.streak-reward-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd269;
}

.streak-reward-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.streak-reward-desc {
  font-size: 12.5px;
  color: #d6cbc0;
  margin: 0 0 10px;
  line-height: 1.45;
}

.btn-streak-reward-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #201005;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: var(--dok-radius-md, 10px);
  padding: 8px 16px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.35);
  transition: transform 0.15s ease;
}

.btn-streak-reward-claim:hover {
  transform: translateY(-1px);
}

/* 모달 공통 스타일 */
.dok-event-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dok-event-modal.active {
  opacity: 1;
  visibility: visible;
}

.dok-event-modal-content {
  background: linear-gradient(135deg, #1f192b, #151120);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--dok-radius-xl, 20px);
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: left;
  animation: modalScale 0.25s ease-out;
}

.dok-event-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dok-event-modal-title {
  font-family: var(--font-calli, inherit);
  font-size: 18px;
  font-weight: 700;
  color: var(--dok-gold, #d4a853);
  margin: 0;
}

.dok-event-modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dok-event-modal-body {
  font-size: 13.5px;
  color: #ddd;
  line-height: 1.6;
}

.dok-event-modal-body .modal-highlight-box {
  background: rgba(212, 168, 83, 0.08);
  border-left: 3px solid var(--dok-gold, #d4a853);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  font-size: 13px;
  color: #eeddbb;
}

/* ====================================================================
   [PHASE 3] 바이럴 & 소셜 루프 스타일 (공유 카드, 초대, 궁합)
   ==================================================================== */

/* TODAY 운세 공유 버튼 */
.today-share-cta-wrap {
  margin: 14px 0 18px;
  display: flex;
  justify-content: center;
}

.btn-today-share {
  width: 100%;
  max-width: 480px;
  min-height: 48px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(124, 77, 255, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  color: #f7e7be;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-today-share:hover,
.btn-today-share:active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(124, 77, 255, 0.25));
  border-color: rgba(212, 175, 55, 0.75);
  transform: translateY(-1px);
}

/* 특별 이벤트 및 보상 카드 공유 버튼 */
.btn-special-event-share,
.btn-streak-reward-share {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.btn-special-event-share:hover,
.btn-streak-reward-share:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

/* 둔갑궁합 상단 초대 배너 */
.match-invite-banner-card {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.6), rgba(15, 25, 45, 0.7));
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.match-invite-banner-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.match-invite-banner-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: #d8b4fe;
  margin: 0;
}

.match-invite-banner-card p {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 12px;
}

.btn-match-invite-create {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  transition: opacity 0.2s ease;
}

.btn-match-invite-create:hover {
  opacity: 0.9;
}

/* 공유 모달 다이얼로그 */
.share-modal-dialog {
  max-width: 440px !important;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.share-modal-body {
  overflow-y: auto;
  text-align: center;
}

.share-modal-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 12px;
}

.share-card-preview-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: #090b14;
}

.share-modal-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.share-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.btn-share-modal-action {
  flex: 1;
  min-height: 46px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-share-modal-action.btn-save {
  background: linear-gradient(135deg, #d4af37, #aa8212);
  color: #0d0f18;
  border: none;
}

.btn-share-modal-action.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-share-modal-action:hover {
  transform: translateY(-1px);
}

/* 💌 초대 진입 화면 (screenInviteEntry) */
.invite-entry-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
}

.invite-entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 77, 255, 0.18);
  border: 1px solid rgba(124, 77, 255, 0.4);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  color: #d8b4fe;
  font-weight: 700;
  margin-bottom: 12px;
}

.invite-entry-title {
  font-family: var(--font-calli, inherit);
  font-size: 24px;
  color: #f7e7be;
  margin: 0 0 8px;
}

.invite-entry-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px;
}

.invite-form-box {
  background: rgba(20, 24, 38, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.invite-form-box .form-group {
  margin-bottom: 14px;
}

.invite-form-box label {
  display: block;
  font-size: 12.5px;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 6px;
}

.invite-error-icon {
  font-size: 54px;
  margin-bottom: 14px;
}

.invite-error-title {
  font-size: 20px;
  color: #f87171;
  margin: 0 0 8px;
}

.invite-error-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* 범용 토스트 알림 */
.dok-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 20, 30, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #f7e7be;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.dok-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   [PHASE 7] PWA Install Banner & Safe Area Optimizations
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(24, 14, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 8500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(212, 168, 83, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUpFade 0.4s ease forwards;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-icon {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle, #24140b, #0e0603);
  border: 1.5px solid var(--gold, #d4a853);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light, #f5d77f);
  font-size: 22px;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.3);
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light, #fbe8a6);
  margin-bottom: 2px;
  line-height: 1.3;
}

.pwa-banner-desc {
  font-size: 12px;
  color: var(--text-dim, #b8a088);
  line-height: 1.4;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-pwa-dismiss {
  background: none;
  border: none;
  color: var(--text-dim, #b8a088);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s;
}

.btn-pwa-dismiss:hover {
  color: var(--text-light, #f5ecd7);
}

.btn-pwa-install {
  background: linear-gradient(135deg, #d4a853, #9e7323);
  color: #120a06;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(212, 168, 83, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-pwa-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.5);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Standalone PWA Safe-Area inset support */
@media all and (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .dok-topbar {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
  .dok-bottom-nav {
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   11. 📜 글로벌 법적 고지 푸터 & 문서 모달 (Legal Footer & Modal)
   ========================================================================== */
.dok-global-footer {
  width: 100%;
  background: linear-gradient(180deg, rgba(18, 10, 6, 0.95) 0%, #0d0704 100%);
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--dok-text-muted, #8391a5);
  font-size: 12px;
  line-height: 1.6;
  padding: 32px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  text-align: center;
  position: relative;
  z-index: 10;
}

.dok-global-footer a,
.dok-global-footer a:link,
.dok-global-footer a:visited {
  color: var(--dok-text-secondary, #c2cbd8);
  text-decoration: none;
}

.dok-footer-inner {
  max-width: 680px;
  margin: 0 auto;
}

.dok-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 8px;
  margin-bottom: 18px;
}

/* 법적 고지 링크: 브라우저 기본 파랑/보라 제거 & DOKKAEBI 디자인 토큰 일원화 */
.dok-footer-link,
.dok-footer-link:link,
.dok-footer-link:visited {
  color: var(--dok-text-secondary, #c2cbd8);
  text-decoration: none;
  font-size: 12.5px;
  padding: 6px 4px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dok-transition-fast, 150ms ease), text-decoration-color var(--dok-transition-fast, 150ms ease);
  -webkit-tap-highlight-color: transparent;
}

.dok-footer-link:hover {
  color: var(--dok-gold-soft, #f7e4b2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dok-footer-link:focus-visible {
  color: var(--dok-gold-soft, #f7e4b2);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 2px solid var(--dok-gold, #d4a853);
  outline-offset: 2px;
  border-radius: 2px;
}

.dok-footer-link:active {
  color: var(--dok-gold, #d4a853);
}

.dok-footer-link-highlight,
.dok-footer-link-highlight:link,
.dok-footer-link-highlight:visited {
  color: var(--dok-gold, #d4a853);
  font-weight: 700;
}

.dok-footer-link-highlight:hover,
.dok-footer-link-highlight:focus-visible {
  color: var(--dok-gold-soft, #f7e4b2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dok-footer-link-highlight:active {
  color: #ffffff;
}

.dok-footer-divider {
  color: rgba(212, 168, 83, 0.3);
  user-select: none;
}

/* 사업자 정보 아코디언 — 외곽 박스/테두리 제거 및 내추럴 텍스트 컨트롤 */
.dok-footer-biz-wrap {
  margin: 10px auto 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  max-width: 640px;
}

.dok-footer-biz-toggle {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--dok-text-muted, #8391a5);
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: color var(--dok-transition-fast, 150ms ease), text-decoration-color var(--dok-transition-fast, 150ms ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(131, 145, 165, 0.3);
}

.dok-footer-biz-toggle:hover {
  background: transparent;
  color: var(--dok-gold-soft, #f7e4b2);
  text-decoration-color: var(--dok-gold-soft, #f7e4b2);
}

.dok-footer-biz-toggle:focus-visible {
  outline: 2px solid var(--dok-gold, #d4a853);
  outline-offset: 2px;
  border-radius: 4px;
}

.dok-footer-biz-toggle:active {
  color: var(--dok-gold, #d4a853);
}

.dok-footer-biz-content {
  padding: 10px 8px 0;
  border: none;
  background: transparent;
  text-align: center;
}

.dok-footer-biz-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dok-text-muted, #8391a5);
}

.dok-footer-biz-grid > div {
  display: inline-block;
  white-space: normal;
  word-break: keep-all;
}

.dok-footer-biz-grid a,
.dok-footer-biz-grid a:link,
.dok-footer-biz-grid a:visited {
  color: var(--dok-text-secondary, #c2cbd8);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(194, 203, 216, 0.4);
  transition: color var(--dok-transition-fast, 150ms ease);
}

.dok-footer-biz-grid a:hover,
.dok-footer-biz-grid a:focus-visible {
  color: var(--dok-gold-soft, #f7e4b2);
  text-decoration-color: var(--dok-gold-soft, #f7e4b2);
}

.dok-footer-biz-grid a:active {
  color: var(--dok-gold, #d4a853);
}

.dok-footer-disclaimer {
  font-size: 11px;
  color: #887462;
  margin: 14px 0 10px;
  line-height: 1.5;
  word-break: keep-all;
}

.dok-footer-copyright {
  font-size: 11px;
  color: #6d5b4d;
  letter-spacing: 0.3px;
}

/* 법적 문서 모달 */
.dok-legal-modal-content {
  max-width: 620px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.dok-legal-tabs-bar {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(212, 168, 83, 0.2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dok-legal-tabs-bar::-webkit-scrollbar {
  display: none;
}

.dok-legal-tab-btn {
  background: none;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 16px;
  color: #b8a088;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.dok-legal-tab-btn.active {
  background: linear-gradient(135deg, #d4a853, #9e7323);
  color: #120a06;
  border-color: #d4a853;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(212, 168, 83, 0.3);
}

.dok-legal-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #e2d7c5;
  text-align: left;
  word-break: keep-all;
}

.dok-legal-modal-body h3.legal-doc-title {
  font-family: var(--font-calli);
  color: var(--gold-light, #fbe8a6);
  font-size: 18px;
  margin: 0 0 4px;
}

.dok-legal-modal-body p.legal-meta {
  font-size: 11px;
  color: #8c7866;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
  padding-bottom: 8px;
}

.dok-legal-modal-body h4 {
  color: var(--gold, #d4a853);
  font-size: 14px;
  margin: 16px 0 6px;
}

.dok-legal-modal-body ol,
.dok-legal-modal-body ul {
  padding-left: 20px;
  margin: 8px 0;
}

.dok-legal-modal-body li {
  margin-bottom: 6px;
}

.dok-legal-modal-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   [RETENTION V3] 컴팩트 리텐션 카드 & 부적 진행도 스타일
   ========================================================================== */

.today-retention-card {
  background: rgba(22, 19, 15, 0.78);
  border: 1px solid rgba(212, 168, 83, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  box-sizing: border-box;
  animation: fadeUp 0.4s ease;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.today-retention-card:hover {
  border-color: rgba(212, 168, 83, 0.45);
}

.retention-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.retention-badge-icon {
  font-size: 14.5px;
  line-height: 1;
}

.retention-card-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--dok-gold, #d4a853);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.retention-fraction {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--dok-jade, #00d2b4);
  background: rgba(0, 210, 180, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(0, 210, 180, 0.3);
}

.retention-action-arrow {
  margin-left: auto;
  color: var(--dok-gold, #d4a853);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.today-retention-card:hover .retention-action-arrow {
  transform: translateX(3px);
}

.retention-progress-bar-wrap {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 7px 0 5px;
}

.retention-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dok-jade, #00d2b4), var(--dok-gold, #d4a853));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.retention-hint-text {
  font-size: 11px;
  color: #9e9383;
  line-height: 1.4;
}

/* 1. 오늘 한 가지 */
.today-one-action-card {
  border-left: 3.5px solid var(--dok-gold, #d4a853);
  background: linear-gradient(135deg, rgba(32, 26, 18, 0.85), rgba(20, 17, 13, 0.8));
}

.today-one-action-text {
  font-size: 13px;
  color: #f7f2e9;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 2px;
}

/* 2. 부적 진행도 */
.today-charm-progress-card {
  border-left: 3.5px solid var(--dok-jade, #00d2b4);
  cursor: pointer;
}

.today-charm-progress-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 210, 180, 0.15);
}

.retention-charm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retention-charm-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.retention-status-pill {
  font-size: 10.5px;
  color: var(--dok-gold, #d4a853);
  font-weight: 600;
}

/* 3. 누적 패턴 */
.today-pattern-milestone-card {
  border-left: 3.5px solid #4a9eff;
}

.today-pattern-milestone-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.today-pattern-milestone-desc {
  font-size: 12px;
  color: #d8cfc0;
  line-height: 1.5;
  margin-top: 4px;
}

/* 4. 오늘 추천 1개 */
.today-recommendation-card {
  border-left: 3.5px solid #ffaa44;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(34, 25, 17, 0.85), rgba(20, 16, 13, 0.8));
}

.today-recommendation-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(255, 170, 68, 0.15);
}

.today-rec-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffd89b;
  margin-bottom: 2px;
}

.today-rec-desc {
  font-size: 12px;
  color: #bdae9c;
  line-height: 1.4;
}

/* 5. 내일 예고 */
.today-tomorrow-preview-card {
  border-left: 3.5px solid #b388ff;
  background: linear-gradient(135deg, rgba(28, 20, 38, 0.85), rgba(18, 14, 24, 0.8));
}

.today-tomorrow-desc {
  font-size: 12.5px;
  color: #e5d7f8;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 2px;
}

/* 컬렉션 화면 locked 카드 진행도 바 */
.charm-card-progress-wrap {
  width: 100%;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.charm-card-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.charm-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dok-jade, #00d2b4), var(--dok-gold, #d4a853));
  border-radius: 2px;
}

.charm-card-progress-hint {
  font-size: 9.5px;
  color: #9e9383;
  line-height: 1.3;
}

