/* BASIC css start */
/* ============================================
   인터타로 - 난이도별 타로카드 가이드 (모바일)
   style.css
   ============================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css?family=Noto+Sans');

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

:root {
  --bg: #fdfaf4;
  --cream: #f6efe2;
  --cream-deep: #ebe1cb;
  --ink: #2d2418;
  --ink-soft: #5d5142;
  --muted: #8a7e6e;
  --line: #e8dfcf;
  --accent: #6b4e9c;
  --accent-soft: #ede5f7;
  --gold: #b8924f;

  --font-stack: 'Pretendard', 'Noto Sans', 'Nanum Gothic', "나눔 고딕",
                Dotum, AppleGothic, monospace, Corbel, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; font-family: var(--font-stack); }
button { font-family: var(--font-stack); cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, span, small,
input, select, textarea {
  font-family: var(--font-stack);
}

.page-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px 60px;
  overflow-x: hidden;
}

/* ============================================
   ✨ 등장 애니메이션
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.fade-up.delay-1 { animation-delay: 0.5s; }
.fade-up.delay-2 { animation-delay: 1.1s; }
.fade-up.delay-3 { animation-delay: 1.7s; }
.fade-up.delay-4 { animation-delay: 2.3s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   1. 히어로 (모바일 풀스크린)
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 22px 70px;
  background:
    radial-gradient(ellipse at 30% 20%, #f3eada 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, #f0e4f5 0%, transparent 55%),
    var(--bg);
  margin: 0 -18px;
  position: relative;
}
.hero-inner {
  max-width: 480px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2.5px;
  font-weight: 600;
  padding: 6px 16px;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.5;
  margin-bottom: 22px;
  color: var(--ink);
  word-break: keep-all;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin: 0 auto 38px;
  word-break: keep-all;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(107, 78, 156, 0.25);
}
.hero-cta:active {
  transform: translateY(1px);
}
.hero-cta .arrow { transition: transform 0.2s; }

/* 스크롤 유도 인디케이터 */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  width: 100%;
  margin: 80px auto 0;
  animation: fadeUp 1.4s ease forwards;
  animation-delay: 2.9s;
  opacity: 0;
}
.scroll-hint-text {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  text-align: center;
}
.scroll-hint-arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  position: relative;
  animation: scrollPulse 2s ease-in-out infinite;
  animation-delay: 3.3s;
  margin: 0 auto;
}
.scroll-hint-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================
   2. 3단계 가이드
   ============================================ */
.how-section {
  margin: 80px 0 70px;
}
.how-title {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  font-weight: 500;
  line-height: 1.45;
}
.how-title strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
  line-height: 1.4;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.how-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.how-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.how-step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  word-break: keep-all;
}

/* ============================================
   3. 추천 박스
   ============================================ */
.quick-pick {
  background: linear-gradient(135deg, #fff7e8 0%, #fef0f5 100%);
  border: 1px solid #f0e0c8;
  border-radius: 14px;
  padding: 26px 22px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.quick-pick .icon {
  font-size: 36px;
  flex-shrink: 0;
}
.quick-pick .text { width: 100%; }
.quick-pick h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.quick-pick p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
  word-break: keep-all;
}
.quick-pick a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

/* ============================================
   4. 섹션 인트로
   ============================================ */
.section-intro {
  text-align: center;
  margin-bottom: 36px;
}
.section-intro .small-tag {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}
.section-intro h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-intro p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

/* ============================================
   5. 난이도 섹션 & 배너
   ============================================ */
.level-section {
  margin-bottom: 60px;
  scroll-margin-top: 20px;
}
.level-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.level-banner::after {
  content: '';
  position: absolute;
  right: -25px;
  top: -25px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.level-emoji {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1;
}
.level-banner-text { flex: 1; z-index: 1; min-width: 0; }
.level-banner h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: #fff;
}
.level-stars {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 1px;
  font-weight: 500;
}
.level-banner p {
  font-size: 12.5px;
  opacity: 0.92;
  line-height: 1.55;
  word-break: keep-all;
}
.level-recommend {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.s-lv1 .level-banner { background: linear-gradient(135deg, #88b89e 0%, #5a9476 100%); }
.s-lv2 .level-banner { background: linear-gradient(135deg, #d9a978 0%, #b08055 100%); }
.s-lv3 .level-banner { background: linear-gradient(135deg, #9783b8 0%, #6b4e9c 100%); }
.s-lv4 .level-banner { background: linear-gradient(135deg, #4a3d5a 0%, #2c2440 100%); }

/* ============================================
   6. 슬라이더
   ============================================ */
.slider {
  position: relative;
  overflow: hidden;
  padding: 0 2px;
}
.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  padding: 6px 6px;
}

/* ============================================
   7. 상품 카드 (전체가 링크)
   ============================================ */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.1);
}
.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
  display: block;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-name {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: keep-all;
}
.product-name-en {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 18px;
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.product-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ============================================
   8. 슬라이더 화살표 & 점
   ============================================ */
.slider-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(60, 40, 20, 0.12);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.slider-btn.prev { left: 4px; }
.slider-btn.next { right: 4px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: none;
  padding: 0;
  transition: all 0.25s;
}
.dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

.see-all {
  text-align: right;
  margin-top: 16px;
}
.see-all a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   9. 하단 도움말 박스
   ============================================ */
.help-box {
  background: var(--cream);
  border-radius: 14px;
  padding: 32px 22px;
  text-align: center;
  margin-top: 36px;
}
.help-box .help-icon {
  font-size: 30px;
  margin-bottom: 12px;
}
.help-box h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.45;
}
.help-box p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 22px;
  word-break: keep-all;
}
.help-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.help-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   10. 작은 화면 보정 (360px 이하)
   ============================================ */
@media (max-width: 360px) {
  .hero h1 { font-size: 22px; }
  .hero-sub { font-size: 13.5px; }
  .level-banner h2 { font-size: 17px; }
  .level-emoji { font-size: 28px; }
  .product-name { font-size: 13.5px; min-height: 38px; }
  .product-price { font-size: 16.5px; }
}

/* ============================================
   8. 오라클 & 레노먼드 섹션 (모바일)
   ============================================ */
.extra-section {
  margin-bottom: 60px;
}
.extra-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5e4b8a 0%, #8b6dad 50%, #a87ca8 100%);
}
.extra-banner::before {
  content: '';
  position: absolute;
  left: -25px;
  bottom: -25px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.extra-banner::after {
  content: '';
  position: absolute;
  right: -25px;
  top: -25px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.extra-emoji {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1;
}
.extra-banner-text {
  flex: 1;
  z-index: 1;
  min-width: 0;
}
.extra-banner h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: #fff;
}
.extra-banner p {
  font-size: 12.5px;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: keep-all;
}
.extra-banner p strong {
  color: #fff;
  font-weight: 700;
}
.extra-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.extra-tag {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  backdrop-filter: blur(4px);
}

/* 두 개의 전체보기 링크 - 모바일 세로 정렬 */
.extra-see-all {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.extra-see-all a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 카드 안 카테고리 태그 (오라클/레노먼드 구분) */
.product-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.product-cat.cat-oracle {
  background: #ede5f7;
  color: #6b4e9c;
}
.product-cat.cat-lenormand {
  background: #e8f0e6;
  color: #4d7a52;
}
/* BASIC css end */

