/* ============================================================
   피그미다람쥐 모프 테스트 - style.css
   pygmytest.com
   ============================================================ */


/* ============================================================
   1. CSS 변수 (디자인 토큰)
   색상, 그림자 등 전역 변수 정의
   ============================================================ */
:root {
  --cream: #FFF8F0;           /* 전체 배경 크림색 */
  --warm-white: #FFFCF7;      /* 카드 내부 흰색 */
  --brown-deep: #3D1F0A;      /* 메인 텍스트, 버튼 배경 */
  --brown-mid: #7B4521;       /* 서브 텍스트, 강조 */
  --brown-light: #C4885A;     /* 보조 텍스트, 라벨 */
  --acorn: #E8A44A;           /* 포인트 컬러 (도토리 주황) */
  --leaf: #5A8A3C;            /* 자연 계열 초록 */
  --leaf-light: #8BBF6A;      /* 밝은 초록 */
  --sky: #7AB8D4;             /* 하늘색 */
  --blush: #E8897A;           /* 분홍 계열 */
  --shadow: rgba(61, 31, 10, 0.12); /* 공통 박스 그림자 */
}


/* ============================================================
   2. 리셋 & 기본 레이아웃
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--brown-deep);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 36px; /* 하단 고정 저작권 바 높이만큼 여백 */
}

/* 배경 그라데이션 오버레이 (분위기용) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(232, 164, 74, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(90, 138, 60, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(196, 136, 90, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* 배경 도토리·다람쥐 이모지 패턴 (아주 연하게) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='20' font-size='10' opacity='0.04'%3E🐿%3C/text%3E%3Ctext x='35' y='45' font-size='8' opacity='0.04'%3E🌰%3C/text%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* 컨텐츠 최대 너비 (모바일 최적화: 480px) */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 40px;
  position: relative;
  z-index: 1;
}


/* ============================================================
   3. 헤더 & 시작 화면
   ============================================================ */
.header {
  text-align: center;
  padding: 40px 0 20px;
}

/* 상단 뱃지 (ex. "Pygmy Squirrel Morph Test") */
.header-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--acorn), var(--brown-light));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* 메인 타이틀 */
.header h1 {
  font-family: 'Gaegu', cursive;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

/* 타이틀 내 강조 텍스트 (형광펜 효과) */
.header h1 em {
  font-style: normal;
  color: var(--brown-mid);
  position: relative;
}
.header h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(232, 164, 74, 0.3);
  z-index: -1;
  border-radius: 4px;
}

/* 부제목 */
.header-sub {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 참여자 수 카운터 뱃지 */
.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid rgba(232, 164, 74, 0.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-mid);
  box-shadow: 0 2px 8px var(--shadow);
}

/* 불꽃 이모지 흔들림 애니메이션 */
.counter-badge .fire {
  animation: flicker 1.5s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.15) rotate(5deg); }
}


/* ============================================================
   4. 모프 미리보기 그리드 (시작 화면)
   ============================================================ */
.morph-intro {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid rgba(196, 136, 90, 0.15);
}

.morph-intro-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--brown-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

/* 3열 그리드로 모프 칩 나열 */
.morph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.morph-chip {
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--brown-mid);
  border: 1px solid rgba(196, 136, 90, 0.15);
  transition: all 0.2s;
}
.morph-chip .emoji {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}


/* ============================================================
   5. 시작 버튼
   ============================================================ */
.start-section {
  text-align: center;
  margin: 24px 0;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brown-mid) 0%, var(--brown-deep) 100%);
  color: white;
  border: none;
  border-radius: 18px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Gaegu', cursive;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(61, 31, 10, 0.3), 0 2px 4px rgba(61, 31, 10, 0.2);
  transform: translateY(0);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* 버튼 상단 광택 레이어 */
.btn-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

/* 호버/탭 시 살짝 떠오르는 효과 */
.btn-start:hover,
.btn-start:active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(61, 31, 10, 0.35);
}

/* 버튼 안 다람쥐 이모지 통통 튀는 효과 */
.btn-start .squirrel {
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}


/* ============================================================
   6. 퀴즈 화면
   ============================================================ */
#quiz-section {
  display: none; /* JS로 제어 */
}

/* 진행도 래퍼 */
.progress-wrap {
  margin-bottom: 24px;
}

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

.progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brown-light);
  letter-spacing: 0.5px;
}

.progress-count {
  font-family: 'Gaegu', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown-mid);
}

/* 프로그레스 바 트랙 */
.progress-bar {
  height: 8px;
  background: rgba(196, 136, 90, 0.2);
  border-radius: 8px;
  overflow: visible; /* 도토리 이모지가 바깥으로 나와도 잘리지 않게 */
}

/* 프로그레스 채움 (JS로 width 조절) */
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--acorn), var(--blush));
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* 프로그레스 끝에 도토리 이모지 */
.progress-fill::after {
  content: '🌰';
  position: absolute;
  right: -10px;            /* 이모지 크기에 맞게 위치 조정 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;         /* 바 높이(8px)에 비해 크게 해서 눈에 잘 띄게 */
  line-height: 1;
}

/* 질문 카드 */
.question-card {
  background: white;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px var(--shadow), 0 2px 8px rgba(61,31,10,0.06);
  border: 1px solid rgba(196, 136, 90, 0.12);
  margin-bottom: 20px;
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 질문 카드 등장 애니메이션 */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 질문 번호 (Q1, Q2...) */
.question-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--acorn);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* 질문 본문 */
.question-text {
  font-family: 'Gaegu', cursive;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brown-deep);
  margin-bottom: 24px;
}

/* 답변 버튼 목록 */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 답변 버튼 기본 스타일 */
.option-btn {
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--brown-deep);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

/* 답변 버튼 왼쪽 포인트 바 (호버/선택 시 표시) */
.option-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--acorn), var(--blush));
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 4px 0 0 4px;
}

/* 호버 시 강조 */
.option-btn:hover {
  border-color: var(--acorn);
  background: rgba(232, 164, 74, 0.06);
  transform: translateX(4px);
}
.option-btn:hover::before {
  opacity: 1;
}

/* 선택된 답변 */
.option-btn.selected {
  border-color: var(--brown-mid);
  background: linear-gradient(135deg, rgba(232, 164, 74, 0.1), rgba(196, 136, 90, 0.08));
  transform: translateX(4px);
}
.option-btn.selected::before {
  opacity: 1;
}


/* ============================================================
   7. 결과 화면
   ============================================================ */
#result-section {
  display: none; /* JS로 제어 */
}

/* 결과 카드 전체 */
.result-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 48px var(--shadow);
  margin-bottom: 20px;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 결과 카드 등장 애니메이션 */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* 결과 카드 상단 헤더 영역 (모프별 배경색은 JS로 설정) */
.result-header {
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
}

/* 결과 모프 이모지 (크게, 흔들림 애니메이션) */
.result-emoji-big {
  font-size: 72px;
  display: block;
  margin-bottom: 8px;
  animation: wiggle 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(61,31,10,0.15));
}

/* 결과 화면 상단 아이콘 이미지 (이모지 대체) */
.result-icon-img {
  width: 80px;       /* 현재 이모지(72px)와 비슷한 크기 */
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
  pointer-events: none;
  -webkit-user-drag: none;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  25%       { transform: rotate(5deg) scale(1.05); }
  75%       { transform: rotate(-3deg) scale(1.02); }
}

/* "당신의 피그미다람쥐 모프" 라벨 */
.result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 8px;
}

/* 모프 이름 (한국어) */
.result-name {
  font-family: 'Gaegu', cursive;
  font-size: 38px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 4px;
}

/* 모프 이름 (영어) */
.result-name-en {
  font-size: 13px;
  color: var(--brown-light);
  font-weight: 500;
  margin-bottom: 16px;
}

/* 모프 한 줄 태그라인 뱃지 */
.result-tagline {
  display: inline-block;
  background: linear-gradient(135deg, var(--acorn), var(--blush));
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
}

/* 결과 카드 하단 본문 */
.result-body {
  padding: 0 28px 28px;
}

/* 섹션 소제목 (모프 설명, 특징, 해설...) */
.result-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin: 20px 0 10px;
}

/* 결과 설명 본문 */
.result-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--brown-deep);
}

/* 특징 키워드 칩들 */
.trait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.trait-chip {
  background: var(--cream);
  border: 1px solid rgba(196, 136, 90, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-mid);
}

/* 궁합 박스 (살짝 컬러 배경) */
.compatibility-box {
  background: linear-gradient(135deg, rgba(232, 164, 74, 0.08), rgba(90, 138, 60, 0.06));
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(232, 164, 74, 0.2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--brown-deep);
  margin-top: 10px;
}


/* ============================================================
   8. 공유 섹션
   ============================================================ */
.share-section {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 16px;
  text-align: center;
}

.share-title {
  font-family: 'Gaegu', cursive;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.share-sub {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 18px;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 카카오 공유 버튼 (카카오 브랜드 컬러 #FEE500) */
.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FEE500;
  color: #3C1E1E;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}
.btn-kakao:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.5);
}

/* 링크 복사 버튼 */
.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cream);
  color: var(--brown-mid);
  border: 1.5px solid rgba(196, 136, 90, 0.3);
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy:hover {
  border-color: var(--brown-light);
  background: white;
}


/* ============================================================
   9. CTA 카드 (카카오방 / 인스타 / 스마트스토어)
   ============================================================ */
.cta-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* CTA 카드 공통 */
.cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: 18px;
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid transparent;
  transition: all 0.25s;
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

/* 카카오 카드 */
.cta-card.kakao { border-color: rgba(254, 229, 0, 0.4); }
.cta-card.kakao:hover { border-color: #FEE500; background: rgba(254, 229, 0, 0.04); }

/* 인스타 카드 */
.cta-card.insta { border-color: rgba(225, 48, 108, 0.2); }
.cta-card.insta:hover { border-color: rgba(225, 48, 108, 0.4); background: rgba(225, 48, 108, 0.02); }

/* 스마트스토어 카드 */
.cta-card.store { border-color: rgba(3, 199, 90, 0.25); }
.cta-card.store:hover { border-color: rgba(3, 199, 90, 0.5); background: rgba(3, 199, 90, 0.02); }

/* CTA 아이콘 박스 */
.cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cta-card.kakao .cta-icon { background: #FEE500; }
.cta-card.insta .cta-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cta-card.store .cta-icon { background: #03C75A; }

/* CTA 텍스트 영역 */
.cta-text    { flex: 1; }
.cta-label   { font-size: 15px; font-weight: 700; color: var(--brown-deep); margin-bottom: 2px; }
.cta-desc    { font-size: 12px; color: var(--brown-light); }
.cta-arrow   { font-size: 16px; color: var(--brown-light); flex-shrink: 0; }


/* ============================================================
   10. 다시 테스트 버튼
   ============================================================ */
.btn-retry {
  display: block;
  width: 100%;
  background: none;
  border: 2px dashed rgba(196, 136, 90, 0.4);
  border-radius: 16px;
  padding: 16px;
  font-size: 15px;
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  color: var(--brown-light);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  text-align: center;
}
.btn-retry:hover {
  border-color: var(--brown-light);
  color: var(--brown-mid);
  background: rgba(196, 136, 90, 0.05);
}


/* ============================================================
   11. 로딩 화면
   ============================================================ */
#loading-section {
  display: none; /* JS로 제어 */
  text-align: center;
  padding: 60px 20px;
}

/* 로딩 이모지 흔들기 */
.loading-emoji {
  font-size: 56px;
  display: block;
  margin-bottom: 20px;
  animation: spinBounce 1s ease-in-out infinite;
}
@keyframes spinBounce {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(-15deg) scale(1.1); }
  75%  { transform: rotate(15deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

.loading-text {
  font-family: 'Gaegu', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 13px;
  color: var(--brown-light);
}

/* 로딩 점 애니메이션 */
.loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--acorn);
  border-radius: 50%;
  margin: 16px 4px 0;
  animation: dot 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1; }
}


/* ============================================================
   12. 푸터
   ============================================================ */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 11px;
  color: rgba(123, 69, 33, 0.4);
  line-height: 1.8;
}


/* ============================================================
   13. 토스트 알림 (복사 완료 등)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px); /* 기본은 화면 아래 숨김 */
  background: var(--brown-deep);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(61,31,10,0.3);
}

/* .show 클래스 추가 시 화면에 표시 */
.toast.show {
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   14. 후킹 멘트 블록 (결과 화면 하단 랜덤 출력)
   ============================================================ */
.hook-message {
  background: white;
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1.5px solid rgba(232, 164, 74, 0.25);
  text-align: center;
  animation: slideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 아이콘 이모지 */
.hook-message .hook-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

/* 메인 후킹 문구 */
.hook-message .hook-text {
  font-family: 'Gaegu', cursive;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.5;
  margin-bottom: 6px;
}

/* 보조 설명 문구 */
.hook-message .hook-sub {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* CTA 버튼 */
.hook-message .hook-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(61, 31, 10, 0.12);
}
.hook-message .hook-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 31, 10, 0.18);
}


/* ============================================================
   15. 결과 모프 이미지
   - JS에서 morph.image URL로 동적 삽입
   - 실제 사진 교체 시 script.js MORPHS 배열의 image 값만 바꾸면 됩니다
   ============================================================ */
.res-image {
  margin: 4px 0 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  /* 이미지 없을 때 최소 높이 없음 - JS에서 숨김 처리 */
}

/* 이미지 태그 자체 스타일 */
.res-image img {
  width: 100%;
  height: 280px;           /* 높이 늘려서 사진 상단 글씨 잘림 방지 */
  object-fit: cover;       /* 비율 유지하며 꽉 채우기 */
  object-position: center 30%; /* 이미지를 위쪽 기준으로 잘라서 글씨 포함 */
  display: block;
  border-radius: 16px 16px 0 0;
}

/* 이미지 하단 캡션 (임시 안내 문구) */
.res-image-caption {
  font-size: 11px;
  color: var(--brown-light);
  text-align: center;
  padding: 8px;
  background: var(--cream);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(196, 136, 90, 0.1);
}


/* ============================================================
   16. 모프 그리드 아이콘 이미지 스타일
   - 시작 화면 9가지 모프 미리보기 칩의 일러스트 이미지
   ============================================================ */

/* 이미지 있을 때 칩 레이아웃 조정 */
.morph-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  gap: 4px;
  background: white;
}

/* 이미지 고정 컨테이너 - 모든 칩 동일한 크기 박스 */
.morph-chip-img-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 일러스트 아이콘 이미지 - 박스 안에서 비율 유지하며 최대 크기로 */
.morph-chip-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* 모프 이름 텍스트 */
.morph-chip-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--brown-mid);
  text-align: center;
  line-height: 1.3;
}


/* ============================================================
   17. 이미지 보호
   - 이미지 선택, 드래그 방지
   ============================================================ */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;  /* 이미지 직접 클릭/드래그 차단 */
}

/* 단, CTA 카드 링크는 클릭 가능하게 유지 */
a img, button img {
  pointer-events: auto;
}


/* ============================================================
   18. 하단 고정 저작권 바
   - 페이지 스크롤과 관계없이 항상 하단에 고정 표시
   ============================================================ */
.copyright-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(61, 31, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
  z-index: 9998;
  letter-spacing: 0.2px;
}
