@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Paperozi';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* =========================================
   기준: html 62.5% → 1rem = 10px
   ========================================= */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  /* Dark Mode Theme */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #CBD5E1;
  --color-accent: #7EC1FF;
  --color-accent-hover: #4DE9AB;
  --color-mint: #4DE9AB;
  --border-light: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(126, 193, 255, 0.5);
  --shadow-light: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 1.2rem 3.2rem rgba(77, 233, 171, 0.2);
  --shadow-glow: 0 0 2rem rgba(126, 193, 255, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Paperozi', sans-serif !important;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 20% 50%, rgba(126, 193, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(77, 233, 171, 0.05) 0%, transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Paperozi', sans-serif !important;
}

/* ── 타이포그래피 위계 ── */
h1,
h2 {
  font-family: 'Paperozi', sans-serif !important;
  font-weight: 700;
}

h3,
h4 {
  font-family: 'Paperozi', sans-serif !important;
  font-weight: 500;
}

p,
span,
li,
a,
label,
input,
textarea,
select {
  font-family: 'Paperozi', sans-serif !important;
  font-weight: 400;
}

article p,
.seo-article__body p,
.seo-article__body li,
.faq-answer,
.ingredient-desc,
.result-description,
.feature-card__desc,
.tool-card__desc,
.hero-subtitle {
  font-weight: 300;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.4rem;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 144rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.site-header__logo {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-shadow: 0 0 1rem rgba(96, 165, 250, 0.3);
}

/* —— Header Logo —— */
.site-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--color-accent);
}

.site-header__favicon {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-shadow: 0 0 1rem rgba(96, 165, 250, 0.3);
  white-space: nowrap;
}

/* —— GNB (Desktop Navigation with Dropdown) —— */
.gnb {
  display: flex;
  align-items: center;
}

.gnb__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* GNB 아이템 — 드롭다운 포지셔닝 기준 */
.gnb__item {
  position: relative;
}

/* GNB 버튼 */
.gnb__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.gnb__btn:hover,
.gnb__item--has-dropdown:hover>.gnb__btn {
  color: var(--color-accent);
  background: rgba(126, 193, 255, 0.08);
}

/* 화살표 아이콘 */
.gnb__arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: currentColor;
}

.gnb__item--has-dropdown:hover>.gnb__btn .gnb__arrow {
  transform: rotate(180deg);
}

/* 드롭다운 패널 */
.gnb__dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%) translateY(-0.6rem);
  min-width: 18rem;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  border: 0.1rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.2rem;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.5), 0 0 0 0.1rem rgba(126, 193, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 200;
}

/* 드롭다운과 버튼 사이의 투명한 가교 (숨바꼭질 버그 수정) */
.gnb__dropdown::before {
  content: '';
  position: absolute;
  top: -0.8rem;
  /* top: calc(100% + 0.8rem)의 간격을 메움 */
  left: 0;
  width: 100%;
  height: 0.8rem;
  background: transparent;
}

/* 드롭다운 열림 — hover */
.gnb__item--has-dropdown:hover>.gnb__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 드롭다운 링크 */
.gnb__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 0.8rem;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.gnb__dropdown-link:hover {
  color: var(--color-accent);
  background: rgba(126, 193, 255, 0.1);
}

/* 모바일에서 GNB 전체 숨김 */
@media (max-width: 768px) {
  .gnb {
    display: none;
  }
}

/* —— Mobile Menu (Slide-in Panel + Accordion) —— */

/* 딤 배경 */
.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu__backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* 슬라이드 패널 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  width: min(32rem, 88vw);
  height: 100dvh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  border-left: 0.1rem solid rgba(126, 193, 255, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overscroll-behavior: contain;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* 패널 내부 nav */
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 0 0 4rem;
}

/* 헤더 */
.mobile-menu__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 2rem;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.mobile-menu__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu__close:hover {
  color: var(--color-accent);
  background: rgba(126, 193, 255, 0.08);
}

/* 메뉴 리스트 */
.mobile-menu__list {
  margin: 0;
  padding: 1.2rem 0;
  list-style: none;
}

/* 아코디언 아이템 */
.mobile-menu__item {
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.07);
}

.mobile-menu__item:last-child {
  border-bottom: none;
}

/* 아코디언 버튼 */
.mobile-menu__accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu__accordion-btn:hover {
  color: var(--color-accent);
  background: rgba(126, 193, 255, 0.05);
}

.mobile-menu__accordion-btn[aria-expanded="true"] {
  color: var(--color-accent);
}

/* 아코디언 화살표 */
.mobile-menu__accordion-arrow {
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.25s ease;
}

.mobile-menu__accordion-btn[aria-expanded="true"] .mobile-menu__accordion-arrow {
  transform: rotate(180deg);
}

/* 서브 메뉴 (아코디언 패널) — JS(GSAP)로 제어 */
.mobile-menu__sub {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  height: 0;
  display: none;
  /* 초기 상태 */
}

.mobile-menu__sub.open {
  display: block;
}

.mobile-menu__sub-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2rem 1.1rem 3.2rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.mobile-menu__sub-link:hover {
  color: var(--color-accent);
  background: rgba(126, 193, 255, 0.06);
}

/* 단순 링크 아이템 */
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.mobile-menu__link:hover {
  color: var(--color-accent);
  background: rgba(126, 193, 255, 0.05);
}

/* PC에서 모바일 메뉴 완전 숨김 */
@media (min-width: 769px) {

  .mobile-menu,
  .mobile-menu__backdrop {
    display: none;
  }
}

/* —— Hero Section —— */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 94vh;
  background-color: #0F172A;
  /* Data Grid Pattern - Minimal & Professional */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 45px 45px;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* 스크롤 유도 레이아웃 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  /* 바닥에서 30px 위 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  /* 글자보다 위에 보이게 */
}

/* 마우스 모양 */
.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid #fff;
  /* 배경색에 따라 변경 가능 */
  border-radius: 15px;
  position: relative;
}

/* 마우스 휠 애니메이션 */
.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 20px;
  }
}

/* 아래 화살표 애니메이션 */
.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin: -5px;
  animation: scroll-arrow 1.6s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes scroll-arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}

/* ─── Hero Content ─── */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 0;
  /* Increased padding for spaciousness */
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  /* Increased gap from 2.4rem to 4rem (1.67x) */
  width: 100%;
  max-width: 100rem;
  padding-inline: clamp(3.6rem, 8vw, 12rem);
  /* Increased horizontal padding (1.5x) */
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0;
  /* Increased size for emphasis */
  font-size: clamp(5.6rem, 9vw, 8rem);
  /* Increased from 4.4rem-7.6rem to 5.6rem-9.6rem */
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

/* Mint Green Highlight for "1초" */
.highlight-mint {
  color: #4DE9AB;
  font-weight: 900;
}

.hero-subtitle {
  margin: 0;
  /* Increased size */
  font-size: clamp(2.2rem, 3vw, 3rem);
  /* Increased from 1.9rem-2.6rem to 2.2rem-3rem */
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.8),
    0 2px 18px rgba(0, 0, 0, 0.6);
  max-width: 70rem;
}

/* Hero CTA Button - Solid Gradient with Mint Glow */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 6.4rem;
  padding-inline: 4.8rem;
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0F172A;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  border-radius: 1.2rem;
  box-shadow:
    0 0 3rem rgba(77, 233, 171, 0.5),
    0 1rem 3rem rgba(126, 193, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.hero-cta-btn:hover {
  transform: translateY(-0.4rem) scale(1.02);
  box-shadow:
    0 0 4rem rgba(77, 233, 171, 0.7),
    0 1.4rem 4rem rgba(126, 193, 255, 0.4);
}

.hero-cta-btn:active {
  transform: translateY(-0.2rem) scale(1.01);
}

@media (max-width: 768px) {
  .hero-container {
    padding-inline: clamp(2.4rem, 6vw, 8rem);
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(4rem, 8vw, 6rem);
  }

  .hero-subtitle {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  }

  .hero-cta-btn {
    min-height: 5.6rem;
    padding-inline: 3.6rem;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    background-size: 35px 35px;
    /* Smaller grid on mobile */
  }

  .hero-container {
    gap: 2.4rem;
  }

  .hero-cta-btn {
    min-height: 5.2rem;
    padding-inline: 3.2rem;
    font-size: 1.7rem;
  }
}

/* —— SEO / Article Utilities —— */

/* 시각적으로 숨김, 스크린리더·검색봇은 읽음 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 목차 (Table of Contents) */
.toc {
  max-width: 86rem;
  margin: 3.2rem auto 0;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.toc__inner {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(126, 193, 255, 0.15);
  border-radius: 1.2rem;
  padding: 2rem 2.4rem;
}

.toc__label {
  margin: 0 0 2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.toc__list {
  margin: 0;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc__list li {
  padding-bottom: 1.2rem;
}

.toc__link {
  font-size: 1.4rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.toc__link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* 성분 ul/li 목록 */
.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-left: 0.4rem;
}

.ingredient-desc {
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* PC/모바일 줄바꿈 대응 수직 레이아웃 */
.ingredient-item--vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

/* 브랜드 강조색 */
.brand-highlight {
  color: var(--color-accent);
  font-weight: 700;
}

/* 본문 내 내부 링크 */
.intext-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.4rem;
  transition: all 0.3s ease;
}

/* Step 레이블 박스 (High-End Badge Design) */
.step-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 1.5rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}

/* 정보 레이블 박스 */
.info-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 1.5rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}

/* 인라인 레이블 (추천/기피 성분용) */
.label-inline {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.05em;
}

/* 설명 레이블과 본문 강제 줄바꿈 (PC 최적화) */
.article-label {
  display: block;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.intext-link:hover {
  color: var(--color-accent-hover);
}

/* 성분 정보 intro 텍스트 */
.ingredient-info__intro {
  margin: -1rem 0 2.4rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
}

/* 심화 조언 H3 */
.seo-section-h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 3.2rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(126, 193, 255, 0.15);
}

/* FAQ */
.faq-item {
  margin-bottom: 3.2rem;
  padding: 2.4rem;
  background: rgba(30, 41, 59, 0.5);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 1.2rem 1.2rem 0;
}

.faq-question {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1.2rem;
}

.faq-answer {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}


/* —— Feature Cards Section —— */
.feature-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
}

.feature-cards__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
  max-width: 120rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(31rem, 1fr));
  gap: 2.4rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.6rem 3rem;
  text-align: left;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  border: 0.2rem solid rgba(148, 163, 184, 0.1);
  border-radius: 1.6rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 18rem;
}

.feature-card:hover {
  transform: translateY(-0.8rem);
  box-shadow: var(--shadow-hover);
  border-color: rgba(126, 193, 255, 0.3);
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.1) 0%, rgba(77, 233, 171, 0.1) 100%);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:active {
  transform: translateY(-0.4rem) scale(1.01);
}

.feature-card__icon {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 0 1rem rgba(96, 165, 250, 0.3));
}

.feature-card__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.feature-card__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* —— Hero Tool Section —— */
.hero-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.hero-tool__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  width: 100%;
  max-width: 144rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
  align-items: center;
}

.hero-tool__content {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.hero-tool__title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: #2c2a29;
}

.hero-tool__subtitle {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(44, 42, 41, 0.65);
}

.hero-tool__form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  accent-color: #3276ff;
}

.checkbox-text {
  font-size: 1.6rem;
  font-weight: 500;
  color: #2c2a29;
}

.hero-tool__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding-inline: 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: #ffffff;
  background-color: #3276ff;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgba(50, 118, 255, 0.15);
  transition: all 0.3s ease;
}

.hero-tool__cta:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.4rem 3.2rem rgba(50, 118, 255, 0.25);
}

.hero-tool__cta:active {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 1.6rem rgba(50, 118, 255, 0.2);
}

.hero-tool__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(50, 118, 255, 0.08) 0%, rgba(255, 134, 169, 0.08) 100%);
  border-radius: 1.6rem;
}

.result-box.perfect {
  border: 2px solid #4DE9AB;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  animation: pulseCard 2s infinite;
}

.visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* —— Quick Tools Section —— */
.quick-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.quick-tools__container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 144rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.quick-tools__heading {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: #2c2a29;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 0.15rem solid rgba(44, 42, 41, 0.1);
  border-radius: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0.4rem 1.2rem rgba(50, 118, 255, 0.08);
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(126, 193, 255, 0.2);
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  border-color: transparent;
  color: #ffffff;
}

.tool-card:hover {
  transform: translateY(-0.6rem);
  border-color: transparent;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff0f5 100%);
  box-shadow: 0 1.2rem 3.2rem rgba(50, 118, 255, 0.15);
}

.tool-card:active {
  transform: translateY(-0.3rem);
}

.tool-card__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2c2a29;
}

.tool-card__desc {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(44, 42, 41, 0.65);
}

.tool-card__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  font-size: 1.3rem;
  font-weight: 600;
  color: #3276ff;
  transition: color 0.3s ease;
}

.tool-card:hover .tool-card__cta {
  color: #ff86a9;
}

/* —— Diagnosis Result —— */
.diagnosis-result {
  margin-top: 2.4rem;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skintype-recommendation {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  border: 2px solid #4DE9AB;
  border-radius: 1.2rem;
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(50, 118, 255, 0.08) 0%, rgba(255, 134, 169, 0.08) 100%);
  border: 0.15rem solid rgba(50, 118, 255, 0.2);
  border-radius: 1.2rem;
}

.result-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #F8FAFC;
}

.result-description {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  color: #F8FAFC;
}

.result-warning {
  margin: 0;
  padding: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.08);
  border-left: 0.4rem solid #d32f2f;
  border-radius: 0.4rem;
}

.homecare-cta {
  display: block;
  width: 100%;
  padding: 1.6rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #ffffff;
  border: none;
  border-radius: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.result-reset-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding-inline: 2.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: #ffffff;
  background-color: #ff86a9;
  border-radius: 0.8rem;
  box-shadow: 0 0.8rem 1.6rem rgba(255, 134, 169, 0.15);
  transition: all 0.3s ease;
}

.result-reset-btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1.2rem 2.4rem rgba(255, 134, 169, 0.25);
}

.result-reset-btn:active {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.6rem 1.2rem rgba(255, 134, 169, 0.2);
}

/* —— SEO Content Section —— */
.seo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.seo-content__container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.seo-content__title {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: #2c2a29;
}

.seo-content__body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.seo-content__body p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(44, 42, 41, 0.8);
  text-align: justify;
}

/* —— About Section —— */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding-block: clamp(6rem, 10vw, 10rem);
  margin-top: 4rem;
}

.about-text {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.9;
  text-align: center;
  color: var(--text-secondary);
  letter-spacing: 0.02rem;
  max-width: 80rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

/* —— Ingredient Page —— */
.ingredient-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.ingredient-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.ingredient-content {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
}

.ingredient-title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: #2c2a29;
}

.ingredient-subtitle {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(44, 42, 41, 0.65);
}

.ingredient-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.ingredient-textarea {
  width: 100%;
  min-height: 16rem;
  padding: 2rem;
  font-size: 1.6rem;
  font-family: inherit;
  line-height: 1.6;
  color: #2c2a29;
  background-color: #ffffff;
  border: 0.15rem solid rgba(44, 42, 41, 0.15);
  border-radius: 1.2rem;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-textarea:focus {
  outline: none;
  border-color: #3276ff;
  box-shadow: 0 0 0 0.3rem rgba(50, 118, 255, 0.1);
}

.ingredient-textarea::placeholder {
  color: rgba(44, 42, 41, 0.4);
}

.ingredient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding-inline: 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0F172A;
  background: linear-gradient(135deg, #3276ff 0%, #ff86a9 100%);
  border-radius: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.ingredient-btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1.2rem 3.2rem rgba(50, 118, 255, 0.25);
}

.ingredient-btn:active {
  transform: translateY(-0.1rem);
}

/* —— Result Area —— */
.result-area {
  display: none;
  animation: slideIn 0.4s ease;
}

.ingredient-result {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-safe {
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(50, 200, 100, 0.08) 0%, rgba(50, 200, 100, 0.04) 100%);
  border: 0.15rem solid rgba(50, 200, 100, 0.2);
  border-radius: 1.2rem;
}

.result-safe-text {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #F8FAFC;
}

.result-warning-header {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 134, 169, 0.1) 0%, rgba(255, 134, 169, 0.05) 100%);
  border: 0.15rem solid rgba(255, 134, 169, 0.2);
  border-radius: 1.2rem;
}

.result-warning-count {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ff86a9;
}

.result-ingredients {
  padding: 2.4rem;
  background-color: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  border: 0.15rem solid rgba(248, 250, 252, 0.1);
  border-radius: 1.2rem;
}

.result-ingredients-title {
  margin: 0 0 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #F8FAFC;
}

.result-ingredients-text {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #F8FAFC;
  word-break: break-word;
  white-space: pre-wrap;
}

.highlight-warning {
  background-color: #ff86a9;
  color: #ffffff;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
}

.result-warning-list {
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(255, 134, 169, 0.08) 0%, rgba(255, 134, 169, 0.04) 100%);
  border: 0.15rem solid rgba(255, 134, 169, 0.2);
  border-radius: 1.2rem;
}

.result-warning-list-title {
  margin: 0 0 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff86a9;
}

.warning-list {
  margin: 0;
  padding-left: 2rem;
  list-style: disc;
}

.warning-list li {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 0.8rem;
}

.result-reset-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding-inline: 2.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #3276ff 0%, #ff86a9 100%);
  border-radius: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.result-reset-btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2.4rem rgba(50, 118, 255, 0.2);
}

.result-reset-btn:active {
  transform: translateY(-0.1rem);
}

/* —— Ingredient SEO Content —— */
.ingredient-seo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.ingredient-seo__container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.ingredient-seo__title {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: #2c2a29;
}

.ingredient-seo__body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.ingredient-seo__body p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(44, 42, 41, 0.8);
  text-align: justify;
}

/* —— Footer —— */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 23, 42, 0.95);
  border-top: 0.1rem solid rgba(148, 163, 184, 0.1);
  padding-block: 2.4rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.footer-copyright {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.footer-link {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-divider {
  font-size: 1.3rem;
  color: rgba(148, 163, 184, 0.3);
}

/* —— Ad Banner —— */
.ad-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  padding: 4rem 2rem;
  background: transparent;
}

/* —— About Page Styles —— */

/* About Hero Section */
.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background-color: #0F172A;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 45px 45px;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.about-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
  text-align: center;
}

.about-hero__title {
  margin: 0;
  font-size: clamp(4rem, 7vw, 6.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

.about-hero__subtitle {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.8),
    0 2px 18px rgba(0, 0, 0, 0.6);
  max-width: 70rem;
}

/* Mission, Vision, Values Section */
.about-mvv {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
}

.about-mvv__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
  gap: 3.2rem;
  width: 100%;
  max-width: 120rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.mvv-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.2rem;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.6rem;
  transition: all 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-0.6rem);
  border-color: rgba(126, 193, 255, 0.3);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 1.2rem 3.2rem rgba(126, 193, 255, 0.1);
}

.mvv-card__title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mvv-card__content {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Core Values Section */
.about-values {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
  border-top: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.about-values__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
  max-width: 120rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.about-values__heading {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 700;
  text-align: center;
  color: #FFFFFF;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2.8rem;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.8rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  border: 0.15rem solid rgba(126, 193, 255, 0.2);
  border-radius: 1.6rem;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-0.8rem);
  border-color: rgba(126, 193, 255, 0.4);
  box-shadow: 0 1.6rem 4rem rgba(126, 193, 255, 0.15);
}

.value-card__icon {
  font-size: 4.8rem;
  line-height: 1;
}

.value-card__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.value-card__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* About Content Section */
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
  border-top: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.about-content__container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.about-content__title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  color: #FFFFFF;
}

.about-content__body {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.about-content__body p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
}

/* Operating Principles Section */
.about-principles {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
  border-top: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.about-principles__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.about-principles__title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  color: #FFFFFF;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2.4rem;
}

.principle-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
  background: rgba(30, 41, 59, 0.5);
  border-left: 0.4rem solid;
  border-image: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%) 1;
  border-radius: 0 1.2rem 1.2rem 0;
  transition: all 0.3s ease;
}

.principle-item:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateX(0.8rem);
}

.principle-item__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
}

.principle-item__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Contact Section */


/* Responsive Design */
@media (max-width: 768px) {
  .about-hero__title {
    font-size: clamp(3rem, 6vw, 4.8rem);
  }

  .about-hero__subtitle {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
  }

  .mvv-card {
    padding: 2.4rem;
  }

  .mvv-card__title {
    font-size: 1.8rem;
  }

  .mvv-card__content {
    font-size: 1.5rem;
  }

  .value-card {
    padding: 2.4rem;
  }

  .value-card__icon {
    font-size: 4rem;
  }

  .value-card__title {
    font-size: 1.8rem;
  }

  .value-card__desc {
    font-size: 1.4rem;
  }

  .about-content__body p {
    font-size: 1.5rem;
  }

  .principle-item {
    padding: 2rem;
  }

  .principle-item__title {
    font-size: 1.6rem;
  }

  .principle-item__desc {
    font-size: 1.4rem;
  }

  .about-contact__email {
    min-height: 5.2rem;
    padding-inline: 3.2rem;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    min-height: 50vh;
    background-size: 35px 35px;
  }

  .about-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }

  .about-hero__subtitle {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
  }

  .about-mvv__container {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .principles-list {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-contact__email {
    min-height: 4.8rem;
    padding-inline: 2.8rem;
    font-size: 1.5rem;
  }
}

/* —— Ingredient Page Styles —— */
#tool-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.ingredient-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
}

.ingredient-tool__container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.ingredient-tool__title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.ingredient-tool__subtitle {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* —— Policy Pages (Privacy & Terms) —— */

/* Policy Hero Section */
.policy-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  background-color: #0F172A;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 45px 45px;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
  padding-block: clamp(4rem, 6vw, 6rem);
}

.policy-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
  text-align: center;
}

.policy-hero__title {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

.policy-hero__subtitle {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Policy Content Section */
.policy-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
}

.policy-content__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

/* Policy Section */
.policy-section {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.policy-section__title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #FFFFFF;
  padding-bottom: 1.2rem;
  border-bottom: 0.15rem solid rgba(126, 193, 255, 0.2);
}

.policy-section__subtitle {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 1.2rem;
}

.policy-section__text {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
}

.policy-section__text--important {
  padding: 1.6rem;
  background: rgba(126, 193, 255, 0.08);
  border-left: 0.4rem solid #7EC1FF;
  border-radius: 0 0.8rem 0.8rem 0;
  color: #F1F5F9;
  font-weight: 500;
}

/* Policy List */
.policy-list {
  margin: 0;
  padding-left: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: disc;
}

.policy-list li {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Highlight Section */
.policy-section--highlight {
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  border: 0.15rem solid rgba(126, 193, 255, 0.2);
  border-radius: 1.2rem;
}

.policy-section--highlight .policy-section__title {
  border-bottom-color: rgba(126, 193, 255, 0.3);
  color: #FFFFFF;
}

/* Responsive Design for Policy Pages */
@media (max-width: 768px) {
  .policy-hero__title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }

  .policy-hero__subtitle {
    font-size: 1.4rem;
  }

  .policy-section__title {
    font-size: 2rem;
  }

  .policy-section__subtitle {
    font-size: 1.6rem;
  }

  .policy-section__text {
    font-size: 1.5rem;
  }

  .policy-list li {
    font-size: 1.5rem;
  }

  .policy-section--highlight {
    padding: 1.8rem;
  }
}

@media (max-width: 480px) {
  .policy-hero {
    min-height: 35vh;
    background-size: 35px 35px;
  }

  .policy-hero__title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }

  .policy-hero__subtitle {
    font-size: 1.3rem;
  }

  .policy-content__container {
    gap: 2.8rem;
  }

  .policy-section {
    gap: 1.2rem;
  }

  .policy-section__title {
    font-size: 1.8rem;
    padding-bottom: 0.8rem;
  }

  .policy-section__subtitle {
    font-size: 1.4rem;
    margin-top: 0.8rem;
  }

  .policy-section__text {
    font-size: 1.4rem;
  }

  .policy-list {
    padding-left: 1.8rem;
    gap: 0.8rem;
  }

  .policy-list li {
    font-size: 1.4rem;
  }

  .policy-section--highlight {
    padding: 1.4rem;
  }
}

.ingredient-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.ingredient-textarea {
  width: 100%;
  min-height: 16rem;
  padding: 2rem;
  font-size: 1.6rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 0.15rem solid rgba(148, 163, 184, 0.2);
  border-radius: 1.2rem;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.3rem rgba(96, 165, 250, 0.2);
}

.ingredient-textarea::placeholder {
  color: var(--text-secondary);
}

.ingredient-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding-inline: 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: #0F172A;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-mint) 100%);
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgba(96, 165, 250, 0.3);
  transition: all 0.3s ease;
}

.ingredient-btn:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.4rem 3.2rem rgba(96, 165, 250, 0.4);
}

.ingredient-btn:active {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 1.6rem rgba(96, 165, 250, 0.3);
}

.result-area {
  margin-top: 2.4rem;
}

.result-message {
  padding: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  border-radius: 1.2rem;
  animation: slideIn 0.4s ease;
}

.result-message.safe {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.15);
  border: 0.15rem solid rgba(74, 222, 128, 0.3);
}

.result-message.warning {
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.15);
  border: 0.15rem solid rgba(248, 113, 113, 0.3);
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem;
  background: rgba(30, 41, 59, 0.5);
  border: 0.15rem solid rgba(96, 165, 250, 0.3);
  border-radius: 1.2rem;
  animation: slideIn 0.4s ease;
}

.result-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-warning-count {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #f87171;
}

.result-ingredients {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-label {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-text {
  margin: 0;
  padding: 1.2rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-tertiary);
  background-color: rgba(15, 23, 42, 0.5);
  border-radius: 0.8rem;
  word-break: break-word;
}

.warning-highlight {
  color: #ffffff;
  background-color: #f87171;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
}

.result-warning-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.warning-list {
  margin: 0;
  padding-left: 2rem;
  font-size: 1.5rem;
  color: var(--text-tertiary);
}

.warning-list li {
  margin-bottom: 0.6rem;
  color: #f87171;
  font-weight: 600;
}

/* 위험도별 스타일 */
.risk-high {
  border-left: 0.4rem solid #FF6B6B;
  padding-left: 1.6rem;
  background: rgba(255, 107, 107, 0.08);
  /* #FF6B6B transparent overlay */
  border-radius: 0.8rem;
  padding: 1.6rem;
}

.risk-high .result-label {
  color: #FF6B6B;
}

.risk-medium {
  border-left: 0.4rem solid #fbbf24;
  padding-left: 1.6rem;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 0.8rem;
  padding: 1.6rem;
}

.risk-medium .result-label {
  color: #fbbf24;
}

.risk-low {
  border-left: 0.4rem solid #4ade80;
  padding-left: 1.6rem;
  background: rgba(74, 222, 128, 0.08);
  border-radius: 0.8rem;
  padding: 1.6rem;
}

.risk-low .result-label {
  color: #4ade80;
}

.warning-list .category {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 0.6rem;
}

.warning-list .desc {
  font-size: 1.4rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 0.4rem;
  display: inline-block;
}

.result-tip {
  margin-top: 1.6rem;
  padding: 1.6rem;
  background: rgba(96, 165, 250, 0.1);
  border-left: 0.4rem solid var(--color-accent);
  border-radius: 0.8rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* —— Ingredient Info Section —— */
.ingredient-info {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.ingredient-info__container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 144rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.ingredient-info__heading {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 2rem;
}

.info-cards-wrapper {
  padding: 2.4rem;
  background-color: transparent;
  border-radius: 1.2rem;
}

.info-cards-wrapper .info-cards {
  margin: 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
  background: var(--bg-card);
  border: 0.15rem solid rgba(148, 163, 184, 0.2);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-0.4rem);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 1.2rem 3.2rem rgba(96, 165, 250, 0.2);
}

.info-card__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.info-card__list {
  margin: 0;
  padding-left: 2rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.info-card__list li {
  margin-bottom: 0.8rem;
}

.info-card__content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 1.5rem;
  line-height: 1.6;
}

.ingredient-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: rgba(96, 165, 250, 0.2);
  color: var(--color-accent);
  font-weight: 700;
  border-radius: 2rem;
  white-space: nowrap;
}

.ingredient-arrow {
  color: var(--text-secondary);
  font-weight: 600;
}

.ingredient-desc {
  color: var(--text-tertiary);
  font-weight: 500;
}

.ingredient-tip {
  margin: 0;
  padding: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-accent);
  background-color: rgba(96, 165, 250, 0.1);
  border-left: 0.3rem solid var(--color-accent);
  border-radius: 0.4rem;
}

/* —— SEO Article —— */
.seo-article {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(4rem, 8vw, 8rem);
  border-top: 0.1rem solid rgba(148, 163, 184, 0.1);
  margin-top: 4rem;
}

.seo-article__container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.seo-article__title {
  margin: 0;
  font-size: clamp(2.8rem, 2.5vw, 3.6rem);
  font-weight: 600;
  color: var(--text-primary);
}

.seo-article__body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.seo-article__body p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-tertiary);
  text-align: justify;
}

.highlight-blue {
  color: var(--color-accent);
  font-weight: 700;
}

.highlight-pink {
  color: var(--color-mint);
  font-weight: 700;
}

.tip-box {
  margin-top: 2.4rem;
  padding: 2.4rem;
  background-color: rgba(96, 165, 250, 0.1);
  border: 0.15rem solid rgba(96, 165, 250, 0.3);
  border-radius: 1.2rem;
}

.tip-box__title {
  margin: 0 0 1.2rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
}

.tip-box__content {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-tertiary);
  text-align: justify;
}

/* —— Responsive Design —— */
@media (max-width: 768px) {
  .site-header {
    min-height: 5.6rem;
  }

  .site-header__logo {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card {
    padding: 3.2rem 2.8rem;
    min-height: 16rem;
  }

  .feature-card__icon {
    font-size: 3.6rem;
  }

  .feature-card__title {
    font-size: 1.9rem;
  }

  .feature-card__desc {
    font-size: 1.5rem;
  }

  .hero-tool__container {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .hero-tool__visual {
    display: none;
  }

  .hero-tool__title {
    font-size: 2rem;
  }

  .hero-tool__subtitle {
    font-size: 1.4rem;
  }

  .hero-tool__form {
    gap: 1.4rem;
  }

  .checkbox-label {
    gap: 1rem;
  }

  .checkbox-input {
    width: 2.2rem;
    height: 2.2rem;
  }

  .checkbox-text {
    font-size: 1.5rem;
  }

  .hero-tool__cta {
    width: 100%;
    min-height: 4.8rem;
    font-size: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .tool-card {
    padding: 2rem;
    gap: 1rem;
  }

  .tool-card__title {
    font-size: 1.6rem;
  }

  .tool-card__desc {
    font-size: 1.3rem;
  }

  .quick-tools__heading {
    font-size: 2rem;
  }

  .seo-content__title {
    font-size: 2rem;
  }

  .seo-content__body p {
    font-size: 1.5rem;
    text-align: left;
  }

  .about-text {
    font-size: 1.6rem;
  }

  .ingredient-title {
    font-size: 2rem;
  }

  .ingredient-subtitle {
    font-size: 1.4rem;
  }

  .ingredient-textarea {
    min-height: 14rem;
    padding: 1.6rem;
    font-size: 1.5rem;
  }

  .ingredient-btn {
    min-height: 4.8rem;
    font-size: 1.5rem;
  }

  .result-ingredients-text {
    font-size: 1.4rem;
  }

  .ingredient-seo__title {
    font-size: 2rem;
  }

  .ingredient-seo__body p {
    font-size: 1.5rem;
    text-align: left;
  }

  .footer-copyright {
    font-size: 1.2rem;
  }

  .footer-link {
    font-size: 1.2rem;
  }

  .footer-divider {
    font-size: 1.2rem;
  }

  .ingredient-tool__title {
    font-size: 2rem;
  }

  .ingredient-tool__subtitle {
    font-size: 1.4rem;
  }

  .ingredient-textarea {
    min-height: 14rem;
    padding: 1.6rem;
    font-size: 1.5rem;
  }

  .ingredient-btn {
    width: 100%;
    min-height: 4.8rem;
    font-size: 1.5rem;
  }

  .result-message {
    font-size: 1.6rem;
  }

  .result-box {
    padding: 2rem;
  }

  .result-title {
    font-size: 1.8rem;
  }

  .result-text {
    font-size: 1.4rem;
  }

  .warning-list {
    font-size: 1.4rem;
  }

  .ingredient-info__heading {
    font-size: 2rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .info-card {
    padding: 2rem;
  }

  .info-card__title {
    font-size: 1.6rem;
  }

  .info-card__list {
    font-size: 1.4rem;
  }

  .ingredient-item {
    font-size: 1.4rem;
  }

  .ingredient-badge {
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
  }

  .ingredient-tip {
    font-size: 1.3rem;
  }

  .seo-article__body p {
    font-size: 1.5rem;
    text-align: left;
  }

  .tip-box {
    padding: 2rem;
  }

  .tip-box__title {
    font-size: 1.6rem;
  }

  .tip-box__content {
    font-size: 1.5rem;
    text-align: left;
  }
}

.seo-article__title {
  font-size: 2rem;
}

.seo-article__body p {
  font-size: 1.5rem;
  text-align: left;
}


@media (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .site-header__logo {
    font-size: 1.2rem;
  }

  .feature-grid {
    gap: 1.8rem;
  }

  .feature-card {
    padding: 3rem 2.4rem;
    min-height: 15rem;
  }

  .feature-card__icon {
    font-size: 3.2rem;
  }

  .feature-card__title {
    font-size: 1.7rem;
  }

  .feature-card__desc {
    font-size: 1.4rem;
  }

  .hero-tool__title {
    font-size: 1.8rem;
  }

  .hero-tool__subtitle {
    font-size: 1.3rem;
  }

  .checkbox-text {
    font-size: 1.4rem;
  }

  .quick-tools__heading {
    font-size: 1.8rem;
  }

  .seo-content__title {
    font-size: 1.8rem;
  }

  .tool-card {
    padding: 1.6rem;
    gap: 0.8rem;
  }

  .tool-card__title {
    font-size: 1.5rem;
  }

  .tool-card__desc {
    font-size: 1.2rem;
  }

  .seo-content__body p {
    font-size: 1.4rem;
  }

  .about-text {
    font-size: 1.5rem;
  }

  .ingredient-title {
    font-size: 1.8rem;
  }

  .ingredient-subtitle {
    font-size: 1.3rem;
  }

  .ingredient-textarea {
    min-height: 12rem;
    padding: 1.4rem;
    font-size: 1.4rem;
  }

  .ingredient-btn {
    min-height: 4.4rem;
    font-size: 1.4rem;
  }

  .result-ingredients-text {
    font-size: 1.3rem;
  }

  .ingredient-seo__title {
    font-size: 1.8rem;
  }

  .ingredient-seo__body p {
    font-size: 1.4rem;
  }

  .footer-copyright {
    font-size: 1.1rem;
  }

  .footer-link {
    font-size: 1.1rem;
  }

  .footer-divider {
    font-size: 1.1rem;
  }
}


/* —— Compatibility Page Styles —— */
.compatibility-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
}

.compatibility-tool__container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.compatibility-tool__title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.compatibility-tool__subtitle {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.compatibility-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.select-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.compatibility-select {
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 0.15rem solid rgba(148, 163, 184, 0.2);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.compatibility-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.3rem rgba(96, 165, 250, 0.2);
}

.compatibility-select option {
  padding: 0.8rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.compatibility-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding-inline: 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-accent) 100%);
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgba(244, 114, 182, 0.3);
  transition: all 0.3s ease;
}

.compatibility-btn:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.4rem 3.2rem rgba(244, 114, 182, 0.4);
}

.compatibility-btn:active {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 1.6rem rgba(244, 114, 182, 0.3);
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem;
  border-radius: 1.2rem;
  animation: slideIn 0.4s ease;
}

.result-box.ingredient-msg.error {
  background: rgba(255, 107, 107, 0.1);
  color: #FF6B6B;
  border-left: 4px solid #FF6B6B;
}

.result-box.result-conflict {
  background: rgba(248, 113, 113, 0.15);
  border: 0.15rem solid rgba(248, 113, 113, 0.3);
}

.result-box.result-synergy {
  background: rgba(96, 165, 250, 0.15);
  border: 0.15rem solid rgba(96, 165, 250, 0.3);
}

.result-box.result-neutral {
  background: rgba(74, 222, 128, 0.15);
  border: 0.15rem solid rgba(74, 222, 128, 0.3);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.result-icon {
  font-size: 3.2rem;
}

.result-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-box.result-conflict .result-title {
  color: #f87171;
}

.result-box.result-synergy .result-title {
  color: var(--color-accent);
}

.result-box.result-neutral .result-title {
  color: #4ade80;
}

.result-ingredients {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-label {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.result-combo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.combo-badge {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: rgba(96, 165, 250, 0.2);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 2rem;
}

.combo-plus {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.result-advice {
  padding: 1.6rem;
  background-color: rgba(15, 23, 42, 0.5);
  border-radius: 0.8rem;
}

.advice-text {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.compatibility-info {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.compatibility-info__container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 144rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.compatibility-info__heading {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

/* —— Responsive Design for Compatibility —— */
@media (max-width: 768px) {
  .compatibility-tool__title {
    font-size: 2rem;
  }

  .compatibility-tool__subtitle {
    font-size: 1.4rem;
  }

  .select-label {
    font-size: 1.5rem;
  }

  .compatibility-select {
    padding: 1rem 1.2rem;
    font-size: 1.5rem;
  }

  .compatibility-btn {
    width: 100%;
    min-height: 4.8rem;
    font-size: 1.5rem;
  }

  .result-header {
    gap: 1rem;
  }

  .result-icon {
    font-size: 2.8rem;
  }

  .result-title {
    font-size: 1.8rem;
  }

  .combo-badge {
    padding: 0.6rem 1.2rem;
    font-size: 1.5rem;
  }

  .combo-plus {
    font-size: 1.6rem;
  }

  .advice-text {
    font-size: 1.5rem;
  }

  .compatibility-info__heading {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .compatibility-tool__title {
    font-size: 1.8rem;
  }

  .compatibility-tool__subtitle {
    font-size: 1.3rem;
  }

  .select-label {
    font-size: 1.4rem;
  }

  .compatibility-select {
    padding: 0.9rem 1rem;
    font-size: 1.4rem;
  }

  .result-icon {
    font-size: 2.4rem;
  }

  .result-title {
    font-size: 1.6rem;
  }

  .combo-badge {
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
  }

  .advice-text {
    font-size: 1.4rem;
  }

  .compatibility-info__heading {
    font-size: 1.8rem;
  }
}


/* —— Hamburger Menu —— */
.hamburger-menu {
  display: none;
  /* 기본 숨김 — 모바일 미디어쿼리에서 flex로 전환 */
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background-color: var(--color-accent);
  border-radius: 0.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 0.5rem rgba(96, 165, 250, 0.3);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.8rem, 0.8rem);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.7rem, -0.7rem);
}

/* —— Menu Overlay —— */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 100%;
  max-width: 100%;
  padding: clamp(2.4rem, 6vw, 4rem);
  animation: slideInMenu 0.4s ease;
}

@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateY(-2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.2);
}

.menu-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-close:hover {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 1.6rem 1.2rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.menu-link:hover {
  background-color: rgba(96, 165, 250, 0.1);
  color: var(--color-accent);
  transform: translateX(0.4rem);
}

.menu-link.current {
  background-color: rgba(96, 165, 250, 0.2);
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 0 1rem rgba(96, 165, 250, 0.2);
}

/* —— Responsive: Show Hamburger Menu —— */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .menu-nav {
    padding: clamp(2rem, 6vw, 3rem);
  }

  .menu-link {
    padding: 1.4rem 1rem;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .menu-title {
    font-size: 2rem;
  }

  .menu-close {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 2rem;
  }

  .menu-link {
    padding: 1.2rem 0.8rem;
    font-size: 1.5rem;
  }
}

/* —— Skin Type Check Page —— */
.skintype-form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-block: 2.4rem;
}

.skintype-question {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  border: 0.15rem solid rgba(248, 250, 252, 0.1);
  border-radius: 1.2rem;
  padding: 2.4rem;
  text-align: left;
}

.skintype-question__title {
  margin: 0 0 1.6rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #F8FAFC;
}

.skintype-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skintype-option {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem;
  background-color: rgba(15, 23, 42, 0.5);
  border: 0.15rem solid rgba(248, 250, 252, 0.1);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skintype-option:hover {
  background-color: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
}

.skintype-option input[type="radio"],
.skintype-option input[type="checkbox"] {
  width: 2.2rem;
  height: 2.2rem;
  accent-color: #60A5FA;
  cursor: pointer;
  flex-shrink: 0;
}

.skintype-option__text {
  font-size: 1.6rem;
  font-weight: 500;
  color: #F8FAFC;
}

.hidden {
  display: none !important;
}

/* —— Matching Check Glow Effect —— */
.matching-check-glow {
  border: 0.2rem solid #388868;
  box-shadow: 0 0 1.5rem rgba(77, 233, 171, 0.3), inset 0 0 1rem rgba(77, 233, 171, 0.2);
  transition: all 0.3s ease;
  position: relative;
  border-radius: 1.6rem;
  padding: 2.4rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(2rem);
  -webkit-backdrop-filter: blur(2rem);
  margin-bottom: 4rem;
}

.matching-check-glow:hover {
  box-shadow: 0 0 1.5rem rgba(77, 233, 171, 0.5), inset 0 0 1rem rgba(77, 233, 171, 0.3);
  border-color: #388868;
}

.matching-check-glow__title {
  color: rgb(77, 233, 171);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.matching-check-glow__desc {
  color: #F8FAFC;
  font-size: 1.6rem;
  margin-bottom: 2.4rem;
}

.matching-btn-group {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.matching-btn-primary {
  background: rgb(126, 193, 255);
  color: #0F172A;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.matching-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.8rem 1.6rem rgba(60, 114, 165, 0.3);
}

.matching-btn-secondary {
  background: transparent;
  border: 1px solid #7EC1FF;
  color: #7EC1FF;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.matching-btn-secondary:hover {
  background: rgba(96, 165, 250, 0.1);
}

/* —— Timeline Card UI —— */
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4.8rem;
}

.timeline-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-group__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.15);
}

.timeline-card {
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.6rem;
  padding: 3.2rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.6rem;
  background: linear-gradient(180deg, #7EC1FF 0%, #4DE9AB 100%);
}

.timeline-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.2rem 2.4rem rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
}

.timeline-card__step {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4DE9AB;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.timeline-card__title {
  font-size: 2rem;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 1.6rem;
}

.timeline-card__desc {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: #CBD5E1;
  margin: 0;
}

/* =========================================
   New UI Styles (Added via User Instructions)
   ========================================= */

/* Header Right Content */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  /* Space between location text and hamburger */
}

.current-location {
  font-size: 1.4rem;
  color: #94A3B8;
  opacity: 0.8;
  font-weight: 500;
}

/* Summary Cards (Infographic) */
.summary-cards {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.6rem;
  padding: 2.4rem;
  box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
}

.summary-card__emoji {
  font-size: 3.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.summary-card__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.summary-card__text {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Ingredient Analysis flex indent alignment */
.warning-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.warning-item__name {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.warning-item__desc {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--text-secondary);
}

.warning-bullet,
.desc-bullet {
  flex-shrink: 0;
  font-weight: bold;
}


/* —— Skintype Page Enhancements —— */

/* PC 환경에서 Step 박스와 레이블 강제 줄바꿈 */
@media (min-width: 769px) {
  .ingredient-item--vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .step-badge,
  .info-badge {
    display: block;
    width: fit-content;
  }
}

/* 모바일에서도 동일하게 적용 */
@media (max-width: 768px) {

  .step-badge,
  .info-badge {
    display: block;
    width: fit-content;
    margin-bottom: 0.8rem;
  }
}


/* —— Emergency Soothing Cards —— */
.emergency-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2.4rem;
  margin-top: 3.2rem;
}

.emergency-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.2rem 2.8rem;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
  border: 0.2rem solid rgba(126, 193, 255, 0.2);
  border-radius: 1.6rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
}

.emergency-card:hover {
  transform: translateY(-0.8rem);
  box-shadow: 0 1.2rem 3.2rem rgba(77, 233, 171, 0.2);
  border-color: rgba(126, 193, 255, 0.4);
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.1) 0%, rgba(77, 233, 171, 0.1) 100%);
}

.emergency-card__icon {
  font-size: 4.8rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 0 1rem rgba(96, 165, 250, 0.3));
}

.emergency-card__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: center;
}

.emergency-card__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: left;
}

.emergency-card__desc strong {
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .emergency-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .emergency-card {
    padding: 2.8rem 2.4rem;
  }

  .emergency-card__icon {
    font-size: 4rem;
  }

  .emergency-card__title {
    font-size: 1.8rem;
  }

  .emergency-card__desc {
    font-size: 1.4rem;
  }
}

/* —— Skin Type Diagnostic Form —— */
.skintype-form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
}

.skintype-question {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem;
  background: rgba(30, 41, 59, 0.4);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.2rem;
}

.question-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.4rem 1.5rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}

.skintype-question__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.skintype-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skintype-option-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem;
  background: rgba(15, 23, 42, 0.3);
  border: 0.15rem solid rgba(126, 193, 255, 0.2);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skintype-option-card:hover {
  border-color: var(--color-accent);
  background: rgba(126, 193, 255, 0.08);
  transform: translateX(0.4rem);
}

.skintype-option-card input[type="radio"] {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.skintype-option-card input[type="radio"]:checked+.option-label {
  color: var(--color-accent);
  font-weight: 700;
}

.option-label {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.skintype-option-card:has(input[type="radio"]:checked) {
  border-color: var(--color-accent);
  background: rgba(126, 193, 255, 0.12);
  box-shadow: 0 0 1rem rgba(126, 193, 255, 0.2);
}

/* Result Card Fade-in */
@keyframes fadeInResult {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-area:not(.hidden) {
  display: block;
  animation: fadeInResult 0.5s ease;
}

.result-area.hidden {
  display: none;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3.2rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.1) 0%, rgba(77, 233, 171, 0.1) 100%);
  border: 0.2rem solid rgba(126, 193, 255, 0.3);
  border-radius: 1.6rem;
  box-shadow: 0 0.8rem 3.2rem rgba(126, 193, 255, 0.15);
  animation: fadeInResult 0.6s ease;
}

.result-card__header {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.result-card__type {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.result-card__typename {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  opacity: 0.8;
  color: #7EC1FF;
  margin-top: 0.8rem;
}

.result-card__description {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.result-card__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem;
  background: rgba(15, 23, 42, 0.4);
  border-left: 0.4rem solid var(--color-accent);
  border-radius: 0.8rem;
}

.result-section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-section__text {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.result-tip-box {
  margin-top: 1.6rem;
  padding: 1.6rem;
  background: rgba(77, 233, 171, 0.1);
  border-left: 0.4rem solid var(--color-pink);
  border-radius: 0.8rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.result-disclaimer {
  margin-top: 2rem;
  padding: 1.2rem;
  font-size: 1.3rem;
  text-align: center;
  color: var(--text-secondary);
  opacity: 0.8;
  border-top: 0.1rem solid rgba(126, 193, 255, 0.15);
}

/* Button State */
.ingredient-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ingredient-btn:disabled:hover {
  transform: none;
  box-shadow: 0 1rem 2rem rgba(96, 165, 250, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .skintype-form {
    gap: 2.4rem;
  }

  .skintype-question {
    padding: 2rem;
    gap: 1.4rem;
  }

  .question-badge {
    font-size: 1.2rem;
    padding: 0.3rem 1.2rem;
  }

  .skintype-question__title {
    font-size: 1.6rem;
  }

  .skintype-options {
    gap: 1rem;
  }

  .skintype-option-card {
    padding: 1.4rem;
    gap: 1rem;
  }

  .option-label {
    font-size: 1.5rem;
  }

  .result-card {
    padding: 2.4rem;
    gap: 1.6rem;
  }

  .result-card__type {
    font-size: 2.2rem;
  }

  .result-card__description {
    font-size: 1.5rem;
  }

  .result-section {
    padding: 1.4rem;
    gap: 0.8rem;
  }

  .result-section__title {
    font-size: 1.4rem;
  }

  .result-section__text {
    font-size: 1.5rem;
  }

  .result-tip-box {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .skintype-question {
    padding: 1.6rem;
    gap: 1.2rem;
  }

  .question-badge {
    font-size: 1.1rem;
    padding: 0.3rem 1rem;
  }

  .skintype-question__title {
    font-size: 1.5rem;
  }

  .skintype-option-card {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .skintype-option-card input[type="radio"] {
    width: 1.8rem;
    height: 1.8rem;
  }

  .option-label {
    font-size: 1.4rem;
  }

  .result-card {
    padding: 2rem;
    gap: 1.4rem;
  }

  .result-card__type {
    font-size: 2rem;
  }

  .result-card__description {
    font-size: 1.4rem;
  }

  .result-section {
    padding: 1.2rem;
  }

  .result-section__title {
    font-size: 1.3rem;
  }

  .result-section__text {
    font-size: 1.4rem;
  }

  .result-tip-box {
    font-size: 1.3rem;
  }

  .result-disclaimer {
    font-size: 1.2rem;
  }
}


/* =========================================
   Interaction Card Tool — Shared Styles
   (d-1, soothing, trace pages)
   ========================================= */

/* 고민 선택 카드 그리드 */
.concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}

@media (max-width: 768px) {
  .concern-grid {
    grid-template-columns: 1fr;
  }
}

/* 개별 고민 카드 */
.concern-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2.8rem 2rem;
  background: rgba(15, 23, 42, 0.5);
  border: 0.2rem solid rgba(126, 193, 255, 0.2);
  border-radius: 1.6rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.concern-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.concern-card:hover::before,
.concern-card.is-active::before {
  opacity: 1;
}

.concern-card:hover {
  border-color: rgba(126, 193, 255, 0.5);
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 2.4rem rgba(126, 193, 255, 0.2);
}

.concern-card.is-active {
  border-color: #4DE9AB;
  box-shadow: 0 0 1.6rem rgba(77, 233, 171, 0.35);
}

.concern-card__icon {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 0 0.8rem rgba(126, 193, 255, 0.3));
}

.concern-card__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #F1F5F9;
  margin: 0;
  line-height: 1.4;
}

.concern-card__sub {
  font-size: 1.3rem;
  color: #94A3B8;
  margin: 0;
}

/* 블러 리빌 결과 영역 */
.prescription-area {
  margin-top: 3.2rem;
}

.prescription-area.hidden {
  display: none;
}

/* 처방전 카드 */
.prescription-card {
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  border: 0.2rem solid rgba(77, 233, 171, 0.35);
  border-radius: 1.6rem;
  padding: 3.2rem;
  animation: blurReveal 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blurReveal {
  from {
    opacity: 0;
    filter: blur(0.8rem);
    transform: translateY(1.2rem);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.prescription-card__header {
  margin-bottom: 2.4rem;
}

.prescription-card__catchphrase {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.6rem 0;
}

.prescription-card__typename {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #7EC1FF;
  opacity: 0.85;
  margin-top: 0.4rem;
}

.prescription-card__desc {
  font-size: 1.6rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin: 1.2rem 0 0 0;
}

/* 처방전 내부 섹션 그리드 */
.prescription-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .prescription-sections {
    grid-template-columns: 1fr;
  }
}

.prescription-section {
  background: rgba(15, 23, 42, 0.4);
  border-left: 0.3rem solid rgba(126, 193, 255, 0.4);
  border-radius: 0 1rem 1rem 0;
  padding: 1.6rem 2rem;
}

.prescription-section--warn {
  border-left-color: rgba(255, 107, 107, 0.6);
}

.prescription-section--tip {
  border-left-color: rgba(77, 233, 171, 0.6);
}

.prescription-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #7EC1FF;
  margin: 0 0 0.8rem 0;
}

.prescription-section--warn .prescription-section__title {
  color: #FF6B6B;
}

.prescription-section--tip .prescription-section__title {
  color: #4DE9AB;
}

.prescription-section__text {
  font-size: 1.45rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin: 0;
}

.prescription-disclaimer {
  margin-top: 2rem;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  font-size: 1.2rem;
  color: #64748B;
  line-height: 1.6;
}


/* =========================================
   Personal Color Page — 퍼스널 무드 팔레트
   ========================================= */

/* 진단 폼 */
.pc-form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

/* 질문 블록 */
.pc-question {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.8rem;
  background: rgba(30, 41, 59, 0.5);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.6rem;
  transition: border-color 0.3s ease;
}

.pc-question:focus-within {
  border-color: rgba(126, 193, 255, 0.35);
}

.pc-question__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* 컬러 칩 그리드 */
.pc-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.pc-chip-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* 컬러 칩 카드 */
.chip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 1.6rem;
  background: rgba(15, 23, 42, 0.5);
  border: 0.2rem solid rgba(148, 163, 184, 0.2);
  border-radius: 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.chip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.06) 0%, rgba(77, 233, 171, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chip-card:hover {
  border-color: rgba(126, 193, 255, 0.4);
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 2.4rem rgba(126, 193, 255, 0.15);
}

.chip-card:hover::before {
  opacity: 1;
}

/* 선택된 칩 — 브랜드 그라데이션 테두리 */
.chip-card.is-selected {
  border-color: transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 0.2rem transparent,
    inset 0 0 0 0.2rem transparent;
  outline: 0.25rem solid transparent;
  position: relative;
}

.chip-card.is-selected::after {
  content: '';
  position: absolute;
  inset: -0.2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  z-index: -1;
}

.chip-card.is-selected {
  border-color: transparent;
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 2.8rem rgba(77, 233, 171, 0.3);
}

/* 컬러 블록 */
.chip-card__color {
  width: 100%;
  height: 8rem;
  border-radius: 1rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.chip-card:hover .chip-card__color {
  transform: scale(1.03);
}

/* 칩 레이블 */
.chip-card__label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── 결과 영역 ── */
.pc-result-wrap {
  display: none;
  position: relative;
  margin-top: 3.2rem;
  border-radius: 1.6rem;
  overflow: hidden;
}

.pc-result-wrap.is-visible {
  display: block;
}

/* 블러 오버레이 */
.pc-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(15, 23, 42, 0.4);
  z-index: 2;
  border-radius: 1.6rem;
  transition: backdrop-filter 1.5s ease, opacity 1.5s ease;
}

.pc-blur-overlay.is-revealed {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
}

/* 결과 카드 */
.pc-result-card {
  padding: 3.2rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.08) 0%, rgba(77, 233, 171, 0.08) 100%);
  border: 0.2rem solid rgba(77, 233, 171, 0.3);
  border-radius: 1.6rem;
}

/* 결과 페르소나 */
.pc-result__persona {
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.pc-result__typename {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #7EC1FF;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

.pc-result__desc {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-tertiary);
}


.pc-swiper-hint {
  text-align: center;
  margin-top: 30px;
}

/* 컬러 팔레트 블록 */
.pc-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 0;
}

.pc-palette__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.pc-palette__color {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.2rem;
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-palette__color:hover {
  transform: scale(1.06);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.4);
}

.pc-palette__label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* 추천 그리드 */
.pc-recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

/* 추천 섹션 */
.pc-rec-section {
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.4);
  border-left: 0.3rem solid rgba(126, 193, 255, 0.5);
  border-radius: 0 1rem 1rem 0;
}

.pc-rec-section--tip {
  border-left-color: rgba(77, 233, 171, 0.6);
}

.pc-rec-section--warn {
  border-left-color: rgba(255, 107, 107, 0.6);
}

.pc-rec-section__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.pc-rec-section--tip .pc-rec-section__title {
  color: #4DE9AB;
}

.pc-rec-section--warn .pc-rec-section__title {
  color: #FF6B6B;
}

.pc-rec-section__text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* 면책 문구 */
.pc-disclaimer {
  margin: 0.8rem 0 0;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  font-size: 1.1rem;
  color: #64748B;
  line-height: 1.5;
  text-align: center;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .pc-question {
    padding: 2rem;
    gap: 1.4rem;
  }

  .pc-question__title {
    font-size: 1.6rem;
  }

  .pc-chip-grid {
    gap: 1.2rem;
  }

  .pc-chip-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .chip-card {
    padding: 1.6rem 1.2rem;
    gap: 1rem;
  }

  .chip-card__color {
    height: 6rem;
  }

  .chip-card__label {
    font-size: 1.3rem;
  }

  .pc-result-card {
    padding: 2.4rem;
  }

  .pc-palette {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .pc-recommend-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .pc-question {
    padding: 1.6rem;
  }

  .pc-question__title {
    font-size: 1.5rem;
  }

  .pc-chip-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .chip-card {
    padding: 1.2rem 0.8rem;
    gap: 0.8rem;
  }

  .chip-card__color {
    height: 5rem;
  }

  .chip-card__label {
    font-size: 1.2rem;
  }

  .pc-result-card {
    padding: 2rem;
  }

  .pc-palette {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .pc-result__persona {
    font-size: 2.2rem;
  }

  .pc-result__typename {
    font-size: 1.4rem;
  }

  .pc-result__desc {
    font-size: 1.5rem;
  }

  .pc-rec-section {
    padding: 1.4rem 1.6rem;
  }

  .pc-rec-section__title {
    font-size: 1.3rem;
  }

  .pc-rec-section__text {
    font-size: 1.35rem;
  }
}


/* 로더 영역 */
.wx-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 4.8rem 2rem;
  text-align: center;
}

.wx-loader__icon {
  font-size: 6.4rem;
  line-height: 1;
  animation: wxPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 1.6rem rgba(126, 193, 255, 0.4));
}

@keyframes wxPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.wx-loader__text {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.wx-loader__sub {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color 0.4s ease;
}

/* 점 애니메이션 */
.wx-dots::after {
  content: '';
  animation: wxDots 1.4s steps(4, end) infinite;
}

@keyframes wxDots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

/* 결과 래퍼 */
.wx-result-wrap {
  display: none;
  position: relative;
  margin-top: 3.2rem;
  border-radius: 1.6rem;
  overflow: hidden;
}

/* 블러 오버레이 */
.wx-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(15, 23, 42, 0.45);
  z-index: 2;
  border-radius: 1.6rem;
  transition: backdrop-filter 1.5s ease, opacity 1.5s ease;
}

.wx-blur-overlay.is-revealed {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
}

/* 결과 카드 */
.wx-result-card {
  padding: 3.6rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.07) 0%, rgba(77, 233, 171, 0.07) 100%);
  border: 0.2rem solid rgba(77, 233, 171, 0.25);
  border-radius: 1.6rem;
}

/* 월 레이블 */
.wx-result__month {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.5rem 1.6rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.06em;
}

/* 히어로 영역 */
.wx-result__hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wx-result__season-icon {
  font-size: 5.6rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1.2rem rgba(126, 193, 255, 0.35));
}

.wx-result__season-name {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.wx-result__alert {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.wx-alert--warn {
  color: #FCD34D;
}

.wx-alert--danger {
  color: #F87171;
}

/* 설명 텍스트 */
.wx-result__desc {
  margin: 0 0 2.8rem;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-tertiary);
}

/* 루틴 그리드 */
.wx-routine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2rem;
}

/* 루틴 스텝 */
.wx-routine-step {
  padding: 2rem;
  background: rgba(15, 23, 42, 0.45);
  border-left: 0.3rem solid rgba(126, 193, 255, 0.5);
  border-radius: 0 1.2rem 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.wx-routine-step__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.wx-routine-step__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.wx-routine-step__text {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-tertiary);
}

/* 하단 푸터 그리드 */
.wx-result__footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.wx-footer-section {
  padding: 1.8rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-left: 0.3rem solid rgba(126, 193, 255, 0.4);
  border-radius: 0 1rem 1rem 0;
}

.wx-footer-section--warn {
  border-left-color: rgba(248, 113, 113, 0.6);
}

.wx-footer-section--tip {
  border-left-color: rgba(77, 233, 171, 0.6);
}

.wx-footer-section__title {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}

.wx-footer-section--warn .wx-footer-section__title {
  color: #F87171;
}

.wx-footer-section--tip .wx-footer-section__title {
  color: #4DE9AB;
}

.wx-footer-section__text {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-tertiary);
}

/* 면책 문구 */
.wx-disclaimer {
  margin: 0;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  font-size: 1.2rem;
  color: #64748B;
  line-height: 1.6;
  text-align: center;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .wx-loader {
    padding: 3.6rem 1.6rem;
  }

  .wx-loader__icon {
    font-size: 5.6rem;
  }

  .wx-loader__text {
    font-size: 2rem;
  }

  .wx-result-card {
    padding: 2.4rem;
  }

  .wx-result__hero {
    gap: 1.6rem;
  }

  .wx-result__season-icon {
    font-size: 4.8rem;
  }

  .wx-routine-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .wx-result__footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .wx-loader__icon {
    font-size: 4.8rem;
  }

  .wx-loader__text {
    font-size: 1.8rem;
  }

  .wx-result-card {
    padding: 2rem;
  }

  .wx-result__hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .wx-result__season-icon {
    font-size: 4rem;
  }

  .wx-result__desc {
    font-size: 1.5rem;
  }

  .wx-routine-step {
    padding: 1.6rem;
  }

  .wx-routine-step__title {
    font-size: 1.5rem;
  }

  .wx-routine-step__text {
    font-size: 1.35rem;
  }

  .wx-footer-section {
    padding: 1.4rem 1.6rem;
  }

  .wx-footer-section__title {
    font-size: 1.3rem;
  }

  .wx-footer-section__text {
    font-size: 1.35rem;
  }
}


/* =========================================
   Personal Color — Swiper Card Stack
   ========================================= */

/* 결과 카드 컨테이너 재정의 (Swiper 래퍼) */
.pc-result-card {
  padding: 2.4rem 2.4rem 3.2rem;
  background: transparent;
  border: none;
}

/* Swiper 컨테이너 */
.pc-swiper {
  width: 90%;
  max-width: 480px;
  height: auto;
  min-height: 680px;
  margin: 0 auto;
  overflow: visible !important;
}

/* 개별 Swiper 슬라이드 */
.pc-swiper-slide {
  width: 100%;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  will-change: transform, opacity;
}

/* 카드 본체 */
.pc-swiper-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  background: #232836;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 상단 컬러 밴드 (약 18%) */
.pc-card__band {
  height: 18%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pc-card__band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pc-card__band-icon {
  font-size: 3.2rem;
}

.pc-card__band-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 계절별 컬러 적용 */
.is-spring .pc-card__band {
  background: linear-gradient(135deg, #FF6B6B 0%, #FA8072 100%);
}

.is-summer .pc-card__band {
  background: linear-gradient(135deg, #E879F9 0%, #FBCFE8 100%);
}

.is-autumn .pc-card__band {
  background: linear-gradient(135deg, #854D0E 0%, #A16207 100%);
}

.is-winter .pc-card__band {
  background: linear-gradient(135deg, #86198F 0%, #D946EF 100%);
}

/* 하단 콘텐츠 영역 (유동적 높이) */
.pc-card__content {
  flex: 1;
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  background: #232836;
  overflow: visible;
  /* 내부 스크롤 제거 */
}

.pc-card__content::-webkit-scrollbar {
  display: none;
}

/* 내부 타이포그래피 */
.pc-card__persona {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.4;
  text-align: center;
}

.pc-card__typename {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 0.4rem;
  text-align: center;
}

.pc-card__desc {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.7;
  color: #CBD5E1;
  text-align: center;
  word-break: keep-all;
}

/* 추천 섹션 박스 */
.pc-rec-section {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1.2rem;
  border-left: 3px solid rgba(126, 193, 255, 0.4);
}

.pc-rec-section__title {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #7EC1FF;
}

.pc-rec-section__text {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #CBD5E1;
}

/* 나의 톤 배지 */
.pc-card__match-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  color: #232836;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 0.8rem;
  z-index: 10;
}

/* 비활성 슬라이드 제어 */
.pc-swiper-slide:not(.swiper-slide-active) {
  pointer-events: none;
  opacity: 0.5;
}

/* 카드 헤더 */
.pc-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pc-card__persona {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.pc-card__typename {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  color: #7EC1FF;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
  word-break: keep-all;
}

.pc-card__desc {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-tertiary);
  word-break: keep-all;
}

/* 추천 그리드 (2열) */
.pc-card__recs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* 컬러 팔레트 블록 (2x2 중앙 정렬) */
.pc-palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 0 auto 0.8rem;
  width: fit-content;
}

.pc-palette__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.pc-palette__color {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 1.2rem;
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-palette__color:hover {
  transform: scale(1.06);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.4);
}

.pc-palette__label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #94A3B8;
  text-align: center;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .pc-swiper {
    width: 92%;
    min-height: 620px;
  }

  .pc-swiper-card {
    min-height: 620px;
  }

  .pc-card__content {
    padding: 1.8rem 2rem;
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .pc-swiper {
    width: 95%;
    min-height: 580px;
  }

  .pc-swiper-card {
    min-height: 580px;
  }

  .pc-card__band {
    min-height: 80px;
  }

  .pc-card__persona {
    font-size: 1.7rem;
  }

  .pc-card__desc,
  .pc-rec-section__text {
    font-size: 1.2rem;
  }
}

/* =========================================
   Article Readability Refactor (전체 서브페이지)
   ========================================= */

/* 본문 단락 줄간격 강화 */
.seo-article__body p,
.seo-article__body li {
  line-height: 1.9;
}

/* h2 소제목 여백 & 컬러 */
.seo-article__title {
  color: #7EC1FF !important;
  margin-bottom: 2.4rem;
}

/* h3 소제목 여백 & 컬러 */
.seo-section-h3 {
  margin-top: 3.2rem !important;
  margin-bottom: 1.4rem;
  color: #7EC1FF;
  font-size: 1.9rem;
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(126, 193, 255, 0.2);
}

/* 정보성 텍스트 블록 — 은은한 배경 라운드 박스 */
.seo-article__body p {
  padding: 1.4rem 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  margin: 0;
}

/* 리스트 아이템 박스 */
.ingredient-item.ingredient-item--vertical {
  padding: 1.6rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border-left: 0.3rem solid rgba(126, 193, 255, 0.25);
}

/* FAQ 아이템 가독성 */
.faq-answer {
  line-height: 1.9 !important;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.6rem;
}


/* =========================================
   Texture Layering Slider Page
   ========================================= */

/* 슬라이더 폼 */
.tx-form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

/* 슬라이더 그룹 */
.tx-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2.8rem;
  background: rgba(30, 41, 59, 0.5);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.6rem;
  transition: border-color 0.3s ease;
}

.tx-slider-group:focus-within {
  border-color: rgba(126, 193, 255, 0.4);
}

.tx-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.tx-slider-label {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tx-slider-value {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tx-slider-desc {
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

/* 슬라이더 트랙 래퍼 */
.tx-slider-track-wrap {
  position: relative;
  height: 0.8rem;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 10rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* 채워진 트랙 (그라데이션) */
.tx-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 10rem;
  background: linear-gradient(90deg, #7EC1FF 0%, #4DE9AB 100%);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* range input 기본 스타일 초기화 */
.tx-range {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2rem;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

/* 슬라이더 썸 — 커스텀 (WebKit) */
.tx-slider-track-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  box-shadow: 0 0 0.8rem rgba(126, 193, 255, 0.5), 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: left 0.05s linear, box-shadow 0.2s ease;
  /* left는 JS로 제어 */
  left: calc(var(--thumb-pct, 50%) - 1.2rem);
}

/* 슬라이더 양 끝 레이블 */
.tx-slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.8rem;
  opacity: 1;
}

.tx-slider-ends span {
  color: rgba(255, 255, 255, 0.8);
}

/* ── 결과 영역 ── */
.tx-result-wrap {
  display: none;
  position: relative;
  margin-top: 3.2rem;
  border-radius: 1.6rem;
  overflow: hidden;
}

.tx-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(15, 23, 42, 0.45);
  z-index: 2;
  border-radius: 1.6rem;
  transition: backdrop-filter 1.5s ease, opacity 1.5s ease;
}

.tx-blur-overlay.is-revealed {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
}

.tx-result-card {
  padding: 3.2rem;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.07) 0%, rgba(77, 233, 171, 0.07) 100%);
  border: 0.2rem solid rgba(77, 233, 171, 0.25);
  border-radius: 1.6rem;
}

/* 결과 헤더 */
.tx-result__header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.tx-result__icon {
  font-size: 5.6rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1.2rem rgba(126, 193, 255, 0.4));
}

.tx-result__title {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.tx-result__subtitle {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  color: #7EC1FF;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

/* 미터 바 (선택값 시각화) */
.tx-result__meters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.4rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 1.2rem;
}

.tx-meter {
  display: grid;
  grid-template-columns: 9rem 1fr 3.2rem;
  align-items: center;
  gap: 1.2rem;
}

.tx-meter__label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tx-meter__bar {
  height: 0.6rem;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 10rem;
  overflow: hidden;
}

.tx-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, #7EC1FF 0%, #4DE9AB 100%);
  border-radius: 10rem;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tx-meter__val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 결과 설명 */
.tx-result__desc {
  margin: 0 0 2.4rem;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-tertiary);
  padding: 1.6rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
}

/* 스텝 그리드 */
.tx-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.tx-step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-left: 0.3rem solid rgba(126, 193, 255, 0.5);
  border-radius: 0 1.2rem 1.2rem 0;
}

.tx-step__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.tx-step__name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #7EC1FF;
  line-height: 1.3;
}

.tx-step__text {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-tertiary);
}

/* 결과 푸터 */
.tx-result__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.tx-footer-box {
  padding: 1.8rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-left: 0.3rem solid rgba(126, 193, 255, 0.4);
  border-radius: 0 1rem 1rem 0;
}

.tx-footer-box--warn {
  border-left-color: rgba(248, 113, 113, 0.6);
}

.tx-footer-box--tip {
  border-left-color: rgba(77, 233, 171, 0.6);
}

.tx-footer-box__title {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}

.tx-footer-box--warn .tx-footer-box__title {
  color: #F87171;
}

.tx-footer-box--tip .tx-footer-box__title {
  color: #4DE9AB;
}

.tx-footer-box__text {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.tx-disclaimer {
  margin: 0;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  font-size: 1.2rem;
  color: #64748B;
  line-height: 1.6;
  text-align: center;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .tx-slider-group {
    padding: 2rem;
  }

  .tx-slider-label {
    font-size: 1.7rem;
    color: #ffffff;
  }

  .tx-result-card {
    padding: 2.4rem;
  }

  .tx-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .tx-result__footer {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .tx-meter {
    grid-template-columns: 8rem 1fr 2.8rem;
  }
}

@media (max-width: 480px) {
  .tx-slider-group {
    padding: 1.6rem;
  }

  .tx-slider-label {
    font-size: 1.6rem;
    color: #ffffff;
  }

  .tx-slider-value {
    font-size: 2rem;
  }

  .tx-result-card {
    padding: 2rem;
  }

  .tx-result__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .tx-result__icon {
    font-size: 4.4rem;
  }

  .tx-result__title {
    font-size: 2rem;
  }

  .tx-step {
    padding: 1.6rem;
  }

  .tx-step__name {
    font-size: 1.5rem;
  }

  .tx-step__text {
    font-size: 1.35rem;
  }

  .tx-footer-box {
    padding: 1.4rem 1.6rem;
  }
}


/* 카드 스테이지 — 3장 가로 정렬 */
.tarot-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3.2rem;
  padding: 4rem 0 2rem;
  perspective: 1200px;
}

/* 개별 카드 래퍼 */
.tarot-card {
  width: 25rem;
  height: 38rem;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease, opacity 0.6s ease;
}

/* 호버 시 살짝 떠오름 */
.tarot-card:hover:not(.tarot-card--flipped):not(.tarot-card--fade) {
  transform: translateY(-1.2rem) scale(1.03);
}

/* 카드 내부 (3D 컨테이너) */
.tarot-card__inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 뒤집힌 상태 */
.tarot-card--flipped .tarot-card__inner {
  transform: rotateY(180deg);
}

/* 선택 안 된 카드 페이드 아웃 */
.tarot-card--fade {
  opacity: 0.15;
  pointer-events: none;
  transform: scale(0.95);
}

/* 앞면 & 뒷면 공통 */
.tarot-card__back,
.tarot-card__front {
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* 뒷면 (기본 보이는 면) */
.tarot-card__back {
  background: linear-gradient(160deg, #0c1a2e 0%, #0f172a 60%, #0c1a2e 100%);
  border: 0.15rem solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* 뒷면 패턴 */
.tarot-card__back-pattern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem;
  text-align: center;
}

.tarot-card__back-icon {
  font-size: 2.4rem;
  color: rgba(167, 139, 250, 0.6);
  display: block;
}

.tarot-card__back-text {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* 앞면 (뒤집혔을 때 보이는 면) */
.tarot-card__front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #0c1a2e 0%, #0f172a 50%, #0c1a2e 100%);
  border: 0.15rem solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* 앞면 콘텐츠 */
.tarot-card__front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.tarot-front__emoji {
  font-size: 5.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 1.2rem rgba(126, 193, 255, 0.5));
}

.tarot-front__title {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #7EC1FF;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tarot-front__text {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: #E2E8F0;
  word-break: keep-all;
}

/* 다시하기 버튼 래퍼 */
.tarot-retry-wrap {
  text-align: center;
  margin-top: 3.2rem;
}

/* ── 기상 예보 알림 레이블 ── */
.forecast-alert-label {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

/* ── 기상 분석 보고서 블록 ── */
.forecast-report {
  margin-top: 4rem;
  border: 0.2rem solid rgba(56, 189, 248, 0.4);
  border-radius: 1.6rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  overflow: hidden;
  animation: forecastReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes forecastReveal {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forecast-report__header {
  padding: 2.4rem 3.2rem;
  border-bottom: 0.1rem solid rgba(56, 189, 248, 0.15);
  background: rgba(30, 41, 59, 0.5);
}

.forecast-report__badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.forecast-report__title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  word-break: keep-all;
}

.forecast-report__body {
  padding: 2.8rem 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.forecast-report__block {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.forecast-report__label {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 1rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.12);
}

.forecast-report__content {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-tertiary);
  word-break: keep-all;
}

/* 추천 성분 리스트 */
.forecast-ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.forecast-ingredient-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem 2rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 1rem;
  border-left: 0.3rem solid currentColor;
}

.forecast-ingredient-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.forecast-ingredient-desc {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-tertiary);
}

/* 루틴 리스트 */
.forecast-routine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: routine-counter;
}

.forecast-routine-item {
  counter-increment: routine-counter;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.8rem;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-tertiary);
  word-break: keep-all;
}

.forecast-routine-item::before {
  content: counter(routine-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* 반응형 */
@media (max-width: 768px) {

  .forecast-report__header,
  .forecast-report__body {
    padding: 2rem;
  }

  .forecast-report__title {
    font-size: 1.8rem;
  }

  .forecast-report__content {
    font-size: 1.4rem;
  }

  .forecast-ingredient-item {
    padding: 1.4rem 1.6rem;
  }
}

/* 인포그래픽 카드 그리드 (3가지 이유) */
.tarot-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin-top: 2.4rem;
}

.tarot-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.8rem 2.4rem;
  background: rgba(30, 41, 59, 0.5);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tarot-info-card:hover {
  border-color: rgba(126, 193, 255, 0.35);
  transform: translateY(-0.4rem);
}

.tarot-info-card__icon {
  font-size: 3.6rem;
  line-height: 1;
}

.tarot-info-card__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #7EC1FF;
  line-height: 1.3;
}

.tarot-info-card__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-tertiary);
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .tarot-stage {
    gap: 2rem;
  }

  .tarot-card {
    width: 20rem;
    height: 32rem;
  }

  .tarot-info-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

@media (max-width: 768px) {
  .tarot-stage {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2.4rem 2rem 2.4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* 스크롤바 숨김 */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tarot-stage::-webkit-scrollbar {
    display: none;
  }

  .tarot-card {
    min-width: 72vw;
    width: 72vw;
    height: 36rem;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .tarot-card__back-pattern {
    padding: 2rem;
    gap: 1.4rem;
  }

  .tarot-card__back-text {
    font-size: 1.4rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .tarot-card__back-icon {
    font-size: 2rem;
  }

  .tarot-card__front {
    padding: 2rem;
  }

  .tarot-card__front-content {
    gap: 1.2rem;
  }

  .tarot-front__emoji {
    font-size: 4.4rem;
  }

  .tarot-front__title {
    font-size: 1.6rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .tarot-front__text {
    font-size: 1.45rem;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .tarot-card {
    min-width: 78vw;
    width: 78vw;
    height: 32rem;
  }

  .tarot-card__back-text {
    font-size: 1.3rem;
  }

  .tarot-front__emoji {
    font-size: 3.8rem;
  }

  .tarot-front__title {
    font-size: 1.5rem;
  }

  .tarot-front__text {
    font-size: 1.35rem;
  }
}

@media (max-width: 400px) {
  .tarot-card {
    min-width: 82vw;
    width: 82vw;
    height: 30rem;
  }

  .tarot-card__back-text {
    font-size: 1.2rem;
  }

  .tarot-front__emoji {
    font-size: 3.4rem;
  }

  .tarot-front__title {
    font-size: 1.4rem;
  }

  .tarot-front__text {
    font-size: 1.3rem;
    line-height: 1.55;
  }
}

/* =========================================
   시크릿 글로우 미션 (Blur Cover)
   ========================================= */

/* 미션 카드 래퍼 */
.mission-card-wrap {
  position: relative;
  width: 100%;
  max-width: 56rem;
  min-height: 28rem;
  height: auto;
  margin: 3.2rem auto 0;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 0.8rem 4rem rgba(126, 193, 255, 0.2), 0 0.2rem 1.2rem rgba(0, 0, 0, 0.4);
}

/* 미션 결과 본체 */
.mission-result-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3.2rem 2.4rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 0.15rem solid rgba(126, 193, 255, 0.3);
  border-radius: 2rem;
  text-align: center;
  width: 100%;
  word-break: keep-all;
  line-height: 1.6;
}

/* 블러 덮개 */
.mission-blur-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2rem;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 2;
}

.mission-blur-cover.is-revealed {
  opacity: 0;
  visibility: hidden;
}

.mission-blur-cover__text {
  margin: 0;
  padding: 0 2.4rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.6;
  word-break: keep-all;
  text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.5);
}

.mission-result__tag {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.06em;
}

.mission-result__emoji {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 0 1rem rgba(126, 193, 255, 0.5));
}

.mission-result__title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.mission-result__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
}

.mission-result__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.mission-result__step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.mission-result__tip {
  margin: 0;
  font-size: 1.3rem;
  color: #7EC1FF;
  line-height: 1.6;
  font-style: italic;
}

/* 다시하기 버튼 래퍼 */
.scratch-retry-wrap {
  text-align: center;
  margin-top: 2.4rem;
}

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
  .mission-card-wrap {
    min-height: 20rem;
    height: auto;
  }

  .mission-result-body {
    padding: 2.4rem 1.6rem;
    gap: 1.2rem;
  }

  .mission-blur-cover__text {
    font-size: 1.5rem;
    padding: 0 1.6rem;
  }

  .mission-result__title {
    font-size: 1.9rem;
    word-break: keep-all;
    line-height: 1.5;
  }

  .mission-result__step {
    font-size: 1.3rem;
    line-height: 1.6;
    word-break: keep-all;
  }

  .mission-result__tip {
    font-size: 1.2rem;
    word-break: keep-all;
    line-height: 1.6;
  }
}

/* ── 결과 모달 ── */
.mission-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(0.6rem);
  -webkit-backdrop-filter: blur(0.6rem);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mission-modal-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.mission-modal {
  position: relative;
  width: 100%;
  max-width: 48rem;
  background: linear-gradient(160deg, #0d1b3e 0%, #0f172a 60%, #0d1b3e 100%);
  border: 0.15rem solid rgba(126, 193, 255, 0.4);
  border-radius: 2.4rem;
  padding: 4rem 3.2rem 3.2rem;
  box-shadow: 0 2.4rem 8rem rgba(0, 0, 0, 0.7), 0 0 4rem rgba(126, 193, 255, 0.12);
  transform: scale(0.8) translateY(3.2rem);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.mission-modal-overlay.is-active .mission-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.mission-modal__close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: #94A3B8;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.mission-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
}

.mission-modal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.mission-modal__tag {
  display: inline-block;
  padding: 0.5rem 1.6rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.06em;
}

.mission-modal__emoji {
  font-size: 6.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 1.6rem rgba(126, 193, 255, 0.5));
}

.mission-modal__title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mission-modal__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.mission-modal__step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
}

.mission-modal__step-num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.mission-modal__tip {
  margin: 0;
  font-size: 1.4rem;
  color: #7EC1FF;
  line-height: 1.7;
  font-style: italic;
  padding: 1.2rem 1.6rem;
  background: rgba(126, 193, 255, 0.06);
  border-radius: 1rem;
  width: 100%;
  text-align: left;
}

.mission-modal__btn {
  width: 100%;
  margin-top: 0.8rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%) !important;
  color: #0F172A !important;
  font-weight: 700;
}

/* ── 인포그래픽 카드 3개 ── */
.mission-detox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin-top: 2.4rem;
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

/* Contact Hero Section */
.contact-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(126, 193, 255, 0.15) 0%, rgba(77, 233, 171, 0.15) 100%);
  padding-block: clamp(6rem, 10vw, 10rem);
  min-height: 40rem;
}

.contact-hero__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 96rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
  text-align: center;
}

.contact-hero__title {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

.contact-hero__subtitle {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Contact Form Section */
.contact-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-block: clamp(6rem, 10vw, 10rem);
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 60rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

/* Contact Form */
.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-form-container p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.contact-form-container label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  display: block;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 0.15rem solid rgba(148, 163, 184, 0.2);
  border-radius: 0.8rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.3rem rgba(126, 193, 255, 0.2);
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: var(--text-secondary);
}

.contact-form-container textarea {
  resize: vertical;
  font-family: inherit;
}

.contact-form-container button {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding-inline: 4rem;
  margin-top: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: #0F172A;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-mint) 100%);
  border: none;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgba(126, 193, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-container button:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.4rem 3.2rem rgba(126, 193, 255, 0.4);
}

.contact-form-container button:active {
  transform: translateY(-0.2rem);
}

/* Contact Modal Styles */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.contact-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal__content {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: 1.6rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5);
  max-width: 50rem;
  width: 90%;
  animation: slideUp 0.3s ease;
  border: 0.1rem solid rgba(126, 193, 255, 0.2);
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem 2.4rem 1.6rem 2.4rem;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.contact-modal__title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-mint);
  letter-spacing: -0.02em;
}

.contact-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  transition: color 0.3s ease;
}

.contact-modal__close:hover {
  color: var(--color-accent);
}

.contact-modal__body {
  padding: 2.4rem;
  text-align: center;
}

.contact-modal__message {
  margin: 0 0 0.8rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.contact-modal__submessage {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-modal__footer {
  display: flex;
  justify-content: center;
  padding: 0 2.4rem 2.4rem 2.4rem;
}

.contact-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.8rem;
  padding-inline: 3.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: #0F172A;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-mint) 100%);
  border: none;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgba(126, 193, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal__btn:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.4rem 3.2rem rgba(126, 193, 255, 0.4);
}

.contact-modal__btn:active {
  transform: translateY(-0.2rem);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(2rem);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
  .contact-hero__title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
  }

  .contact-hero__subtitle {
    font-size: 1.4rem;
  }

  .contact-form-container {
    max-width: 100%;
  }

  .contact-form-container label {
    font-size: 1.3rem;
  }

  .contact-form-container input,
  .contact-form-container textarea {
    font-size: 1.3rem;
    padding: 1rem 1.4rem;
  }

  .contact-form-container button {
    width: 100%;
    min-height: 4.8rem;
    font-size: 1.4rem;
  }

  .contact-modal__content {
    max-width: 90%;
  }

  .contact-modal__header {
    padding: 2rem 2rem 1.4rem 2rem;
  }

  .contact-modal__title {
    font-size: 2rem;
  }

  .contact-modal__close {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.6rem;
  }

  .contact-modal__body {
    padding: 1.8rem;
  }

  .contact-modal__message {
    font-size: 1.6rem;
  }

  .contact-modal__submessage {
    font-size: 1.2rem;
  }

  .contact-modal__footer {
    padding: 0 1.8rem 1.8rem 1.8rem;
  }

  .contact-modal__btn {
    width: 100%;
    min-height: 4.4rem;
    font-size: 1.4rem;
  }
}

.mission-detox-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.8rem 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.mission-detox-card:hover {
  border-color: rgba(126, 193, 255, 0.35);
  transform: translateY(-0.4rem);
}

.mission-detox-card__icon {
  font-size: 3.6rem;
  line-height: 1;
}

.mission-detox-card__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #7EC1FF;
  line-height: 1.3;
}

.mission-detox-card__sub {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4DE9AB;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mission-detox-card__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* ── 스텝바 ── */
.mission-stepbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2.4rem;
  border-radius: 1.6rem;
  overflow: hidden;
}

.mission-stepbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.8rem 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  position: relative;
}

.mission-stepbar__item:first-child {
  border-radius: 1.6rem 0 0 1.6rem;
}

.mission-stepbar__item:last-child {
  border-radius: 0 1.6rem 1.6rem 0;
}

.mission-stepbar__circle {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-stepbar__content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mission-stepbar__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #7EC1FF;
  line-height: 1.2;
}

.mission-stepbar__desc {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* 화살표 구분자 */
.mission-stepbar__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #7EC1FF;
  background: rgba(126, 193, 255, 0.08);
  border-top: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-bottom: 0.15rem solid rgba(126, 193, 255, 0.15);
  flex-shrink: 0;
  min-width: 3.6rem;
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .mission-detox-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .mission-stepbar {
    flex-direction: column;
    border-radius: 1.6rem;
  }

  .mission-stepbar__item {
    border-radius: 0 !important;
    border: 0.15rem solid rgba(126, 193, 255, 0.15);
  }

  .mission-stepbar__item:first-child {
    border-radius: 1.6rem 1.6rem 0 0 !important;
  }

  .mission-stepbar__item:last-child {
    border-radius: 0 0 1.6rem 1.6rem !important;
  }

  .mission-stepbar__arrow {
    min-width: auto;
    min-height: 3.2rem;
    padding: 0.4rem 0;
    border: none;
    border-left: 0.15rem solid rgba(132, 204, 22, 0.15);
    border-right: 0.15rem solid rgba(132, 204, 22, 0.15);
    transform: rotate(90deg);
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .scratch-wrap {
    height: 22rem;
  }

  .mission-modal {
    padding: 3.2rem 2.4rem 2.4rem;
  }

  .mission-modal__emoji {
    font-size: 5.2rem;
  }

  .mission-modal__step {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .scratch-wrap {
    height: 18rem;
  }
}

/* =========================================
   index.html — 신규 피처 카드 (타로 + 미션)
   ========================================= */

/* 메인 피처 그리드에서 기상예보·미션 카드 강조 */
.feature-card--tarot {
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.feature-card--tarot:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
}

.feature-card--mission {
  background: linear-gradient(160deg, rgba(132, 204, 22, 0.1) 0%, rgba(251, 146, 60, 0.08) 100%) !important;
  border-color: rgba(132, 204, 22, 0.3) !important;
}

.feature-card--mission:hover {
  border-color: rgba(132, 204, 22, 0.6) !important;
}

/* =========================================
   전역 스크롤 리빌 애니메이션 (Reveal on Scroll)
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 딜레이 유틸리티 */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ── 버튼 전역 hover 인터랙션 강화 ── */
.hero-cta-btn,
.ingredient-btn,
.tool-btn,
.toc__link {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.25s ease;
}

.ingredient-btn:hover {
  transform: translateY(-0.3rem) scale(1.02);
  box-shadow: 0 0.8rem 2.4rem rgba(50, 118, 255, 0.3),
    0 0 1.2rem rgba(126, 193, 255, 0.2);
  filter: brightness(1.08);
}

.feature-card:hover {
  filter: brightness(1.04);
}

/* ── 헤더/히어로는 즉시 표시 (reveal 예외) ── */
.site-header.reveal,
.hero-section .reveal,
.hero-title,
.hero-subtitle,
.hero-cta-btn {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}


/* =========================================
   D-1 타임라인 페이지
   ========================================= */

/* ── 히어로 ── */
.d1-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background-color: #0F172A;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 45px 45px;
  border-bottom: 0.1rem solid rgba(148, 163, 184, 0.1);
  padding-block: clamp(4rem, 8vw, 8rem);
  text-align: center;
}

.d1-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  max-width: 80rem;
  padding-inline: clamp(2.4rem, 6vw, 10rem);
}

.d1-hero__eyebrow {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.d1-hero__title {
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.d1-hero__sub {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 60rem;
}

/* ── 타임라인 섹션 래퍼 ── */
.d1-timeline-section {
  padding-block: clamp(6rem, 10vw, 12rem);
  background-color: var(--bg-primary);
}

.d1-timeline__wrap {
  position: relative;
  max-width: 110rem;
  margin-inline: auto;
  padding-inline: clamp(2.4rem, 6vw, 6rem);
}

/* ── 세로 선 ── */
.d1-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.2rem;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(126, 193, 255, 0.25) 5%,
      rgba(126, 193, 255, 0.25) 95%,
      transparent 100%);
}

/* ── 타임라인 아이템 ── */
.d1-timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 8rem;
  width: 100%;
}

/* 좌측 배치 */
.d1-timeline__item[data-side="left"] {
  justify-content: flex-start;
  padding-right: calc(50% + 4rem);
}

/* 우측 배치 */
.d1-timeline__item[data-side="right"] {
  justify-content: flex-end;
  padding-left: calc(50% + 4rem);
}

/* ── 점(Dot) ── */
.d1-timeline__dot {
  position: absolute;
  top: 2.4rem;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #334155;
  border: 0.3rem solid #475569;
  transition:
    background 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  z-index: 2;
}

/* active 상태 — 글로우 */
.d1-timeline__item.active .d1-timeline__dot {
  background: #7EC1FF;
  border-color: #7EC1FF;
  box-shadow:
    0 0 0.8rem rgba(126, 193, 255, 0.9),
    0 0 2rem rgba(126, 193, 255, 0.6),
    0 0 4rem rgba(126, 193, 255, 0.3);
}

/* ── 카드 ── */
.d1-timeline__card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.8rem 3.2rem;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  border: 0.15rem solid rgba(126, 193, 255, 0.12);
  border-radius: 1.6rem;
  max-width: 46rem;
  width: 100%;

  /* 초기 숨김 상태 */
  opacity: 0;
  transform: translateY(3rem);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* active 상태 — 카드 등장 */
.d1-timeline__item.active .d1-timeline__card {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(126, 193, 255, 0.25);
  box-shadow: 0 0.8rem 3.2rem rgba(126, 193, 255, 0.08);
}

/* 우측 카드 딜레이 */
.d1-timeline__item[data-side="right"].active .d1-timeline__card {
  transition-delay: 0.1s;
}

.d1-timeline__time {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.d1-timeline__icon {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 0.8rem rgba(126, 193, 255, 0.3));
}

.d1-timeline__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.d1-timeline__desc {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

.d1-timeline__tips {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.d1-timeline__tips li {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* ── SOS 섹션 ── */
.d1-sos-section {
  padding-block: clamp(6rem, 10vw, 10rem);
  background: rgba(15, 23, 42, 0.95);
  border-top: 0.1rem solid rgba(148, 163, 184, 0.1);
}

.d1-sos__inner {
  max-width: 110rem;
  margin-inline: auto;
  padding-inline: clamp(2.4rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.d1-sos__title {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
}

.d1-sos__sub {
  margin: -2rem 0 0;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
}

.d1-sos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2.4rem;
}

.d1-sos__card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.8rem 2.4rem;
  background: rgba(30, 41, 59, 0.6);
  border: 0.15rem solid rgba(126, 193, 255, 0.15);
  border-radius: 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.d1-sos__card:hover {
  transform: translateY(-0.6rem);
  border-color: rgba(126, 193, 255, 0.35);
  box-shadow: 0 1.2rem 3.2rem rgba(126, 193, 255, 0.1);
}

.d1-sos__num {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.d1-sos__card-icon {
  font-size: 3.2rem;
  line-height: 1;
}

.d1-sos__card-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.d1-sos__card-desc {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── 모바일: 선 좌측, 콘텐츠 우측 ── */
@media (max-width: 768px) {
  .d1-timeline__line {
    left: 2rem;
    transform: none;
  }

  .d1-timeline__item[data-side="left"],
  .d1-timeline__item[data-side="right"] {
    justify-content: flex-end;
    padding-left: 5.6rem;
    padding-right: 0;
  }

  .d1-timeline__dot {
    left: 2rem;
    transform: translate(-50%, -50%);
  }

  .d1-timeline__card {
    max-width: 100%;
  }
}

/* ── 피부 비상 알람 섹션 래퍼 ── */
.ingredient-tool__container {
  max-width: 86rem;
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.4rem, 6vw, 6rem);
}

.ingredient-tool__title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
}

.ingredient-tool__subtitle {
  margin: 0 0 3.2rem;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
}


/* =========================================
   Soothing — 쿨링 버튼 & 리플 & 모달
   ========================================= */

/* 버튼 그리드 */
.cooling-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 80rem;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .cooling-btn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 둥근 버튼 */
.cooling-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2.8rem 1.6rem;
  background: rgba(30, 41, 59, 0.7);
  border: 0.15rem solid rgba(126, 193, 255, 0.2);
  border-radius: 5rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  font-family: 'Paperozi', sans-serif;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.cooling-btn:hover {
  transform: translateY(-0.4rem);
  border-color: rgba(126, 193, 255, 0.5);
  box-shadow: 0 0.8rem 2.4rem rgba(126, 193, 255, 0.2);
}

.cooling-btn:active {
  transform: scale(0.97);
}

.cooling-btn__icon {
  font-size: 3.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 0.6rem rgba(126, 193, 255, 0.4));
}

.cooling-btn__label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: keep-all;
}

.cooling-btn__time {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* 리플 */
.cooling-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(126, 193, 255, 0.35);
  transform: scale(0);
  animation: coolingRipple 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes coolingRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 모달 오버레이 */
.cooling-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 35, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cooling-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* 모달 박스 */
.cooling-modal {
  position: relative;
  width: 100%;
  max-width: 56rem;
  height: auto;
  background: rgba(20, 32, 54, 0.85);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: 0.15rem solid rgba(126, 193, 255, 0.25);
  border-radius: 3rem;
  padding: 4rem 3.6rem;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 4rem rgba(126, 193, 255, 0.15),
    0 2rem 6rem rgba(0, 0, 0, 0.5);
}

.cooling-modal-overlay.is-open .cooling-modal {
  transform: scale(1);
}

/* 닫기 버튼 */
.cooling-modal__close {
  position: absolute;
  top: 1.6rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0.4rem;
  transition: color 0.2s ease;
}

.cooling-modal__close:hover {
  color: var(--text-primary);
}

/* 모달 내부 콘텐츠 */
.cooling-modal__body {
  height: auto;
  word-break: keep-all;
  line-height: 1.6;
}

.cooling-modal__step-badge {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.4rem 1.6rem;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  color: #0F172A;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}

.cooling-modal__icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.2rem;
  display: block;
}

.cooling-modal__title {
  margin: 0 0 1.6rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: keep-all;
  line-height: 1.4;
}

.cooling-modal__desc {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  word-break: keep-all;
}

.cooling-modal__desc strong {
  color: var(--color-accent);
  font-weight: 600;
}

@media (max-width: 480px) {
  .cooling-modal {
    padding: 3.2rem 2.4rem;
    border-radius: 2.4rem;
  }

  .cooling-modal__title {
    font-size: 1.9rem;
  }

  .cooling-modal__desc {
    font-size: 1.45rem;
  }
}


/* =========================================
   Trace — 스포트라이트 마스킹 섹션
   ========================================= */

.trace-spotlight-section {
  position: relative;
  width: 100%;
  height: 52rem;
  overflow: hidden;
  cursor: none;
  user-select: none;
}

/* 어두운 오버레이 — 마스킹 적용 대상 */
.trace-spotlight__dark {
  position: absolute;
  inset: 0;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* mask-image는 JS에서 동적으로 설정 */
  mask-image: radial-gradient(circle at -999px -999px, transparent 0%, black 0%);
  -webkit-mask-image: radial-gradient(circle at -999px -999px, transparent 0%, black 0%);
  transition: mask-image 0.05s linear, -webkit-mask-image 0.05s linear;
}

.trace-spotlight__hint {
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(148, 163, 184, 0.35);
  letter-spacing: 0.12em;
  text-align: center;
  word-break: keep-all;
  line-height: 1.6;
  pointer-events: none;
}

/* 밝은 콘텐츠 레이어 — 항상 아래에 깔림 */
.trace-spotlight__bright {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.trace-spotlight__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding-inline: clamp(2.4rem, 6vw, 8rem);
  max-width: 72rem;
}

.trace-spotlight__eyebrow {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  word-break: keep-all;
  line-height: 1.6;
}

.trace-spotlight__title {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  text-shadow: 0 0 3rem rgba(126, 193, 255, 0.4);
  word-break: keep-all;
}

.trace-spotlight__desc {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: keep-all;
}

.trace-spotlight__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.trace-chip {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 10rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: keep-all;
  line-height: 1.6;
}

.trace-chip--red {
  background: rgba(239, 68, 68, 0.15);
  border: 0.15rem solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.trace-chip--brown {
  background: rgba(180, 120, 60, 0.15);
  border: 0.15rem solid rgba(180, 120, 60, 0.4);
  color: #D4A574;
}

.trace-chip--glow {
  background: rgba(126, 193, 255, 0.12);
  border: 0.15rem solid rgba(126, 193, 255, 0.35);
  color: var(--color-accent);
}

/* 모바일 안내 텍스트 */
.trace-spotlight__mobile-hint {
  display: none;
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: rgba(148, 163, 184, 0.5);
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  word-break: keep-all;
  line-height: 1.6;
}

/* 전체 보기 버튼 */
.trace-reveal-btn {
  position: absolute;
  bottom: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 1rem 2.8rem;
  background: transparent;
  border: 0.15rem solid rgba(126, 193, 255, 0.55);
  border-radius: 10rem;
  color: rgba(126, 193, 255, 0.85);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1.6;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.trace-reveal-btn:hover,
.trace-reveal-btn:focus-visible {
  background: rgba(126, 193, 255, 0.1);
  border-color: rgba(126, 193, 255, 0.9);
  color: #7EC1FF;
  outline: none;
}

/* is-all-revealed: 마스킹 해제 상태 */
.trace-spotlight-section.is-all-revealed .trace-spotlight__dark {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background: transparent !important;
  transition: background 0.4s ease;
}

.trace-spotlight-section.is-all-revealed .trace-spotlight__hint,
.trace-spotlight-section.is-all-revealed .trace-spotlight__mobile-hint {
  display: none;
}

.trace-spotlight-section.is-all-revealed .trace-reveal-btn {
  border-color: rgba(148, 163, 184, 0.5);
  color: rgba(148, 163, 184, 0.8);
}

@media (max-width: 768px) {
  .trace-spotlight-section {
    height: auto !important;
    min-height: 52rem;
    padding: 6rem 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
  }

  .trace-spotlight__bright {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .trace-spotlight__dark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  .trace-spotlight__content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    padding-bottom: 2rem;
  }

  .trace-spotlight__chips {
    flex-direction: column;
    width: 100%;
    max-width: 32rem;
    gap: 1.6rem;
    margin-bottom: 4rem;
    /* 버튼들과 '다시 숨기기' 사이의 명확한 간격 (40px) */
  }

  .trace-chip {
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    font-size: 1.5rem;
  }

  .trace-reveal-btn {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
    z-index: 10;
  }

  .trace-spotlight__hint {
    display: none;
  }

  .trace-spotlight__mobile-hint {
    display: block;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1.6rem;
  }

  /* 모바일 초기 상태: 스포트라이트 중앙에 살짝 보이게 */
  .trace-spotlight__dark {
    mask-image: radial-gradient(circle at 50% 50%, transparent 0%, black 14rem);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0%, black 14rem);
  }
}


/* =============================================
   성분 소개팅 (ingredient-match.html)
   ============================================= */

/* ── 페이지 래퍼 ── */
.match-page {
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.4rem, 6vw, 8rem);
}

/* ── 히어로 ── */
.match-hero {
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(2.4rem, 6vw, 10rem) clamp(3rem, 6vw, 5rem);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 45px 45px;
  border-bottom: 0.1rem solid var(--border-light);
}

.match-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.6rem;
  padding: 0.4rem 1.4rem;
  background: rgba(77, 233, 171, 0.12);
  border: 0.1rem solid rgba(77, 233, 171, 0.3);
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-mint);
  letter-spacing: 0.06em;
}

.match-hero__title {
  margin: 0 0 1.4rem;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.match-hero__title em {
  font-style: normal;
  color: var(--color-mint);
}

.match-hero__desc {
  margin: 0 auto;
  max-width: 56rem;
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── 성분 버튼 팔레트 ── */
.match-palette {
  padding: clamp(3.2rem, 6vw, 5rem) clamp(2.4rem, 6vw, 8rem) 0;
  max-width: 96rem;
  margin: 0 auto;
}

.match-palette__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-palette__label::before,
.match-palette__label::after {
  content: '';
  flex: 1;
  height: 0.1rem;
  background: var(--border-light);
}

.match-palette__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 480px) {
  .match-palette__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 성분 카드 버튼 */
.match-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2rem 1.2rem 1.6rem;
  background: rgba(30, 41, 59, 0.7);
  border: 0.15rem solid rgba(148, 163, 184, 0.12);
  border-radius: 1.6rem;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease,
    background 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
  overflow: hidden;
}

.match-chip::after {
  /* 선택 시 글로우 링 */
  content: '';
  position: absolute;
  inset: -0.2rem;
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #7EC1FF, #4DE9AB);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.22s ease;
}

.match-chip:hover {
  transform: translateY(-0.3rem);
  border-color: rgba(126, 193, 255, 0.35);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0.8rem 2rem rgba(126, 193, 255, 0.12);
}

.match-chip.is-selected {
  border-color: transparent;
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 1.6rem rgba(77, 233, 171, 0.25);
}

.match-chip.is-selected::after {
  opacity: 1;
}

.match-chip.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.match-chip__emoji {
  font-size: 3.2rem;
  line-height: 1;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.match-chip:hover .match-chip__emoji,
.match-chip.is-selected .match-chip__emoji {
  transform: scale(1.15);
}

.match-chip__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.3;
  transition: color 0.22s ease;
}

.match-chip.is-selected .match-chip__name {
  color: var(--color-mint);
}

.match-chip__sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.7;
}

/* ── 소개팅 테이블 (Drop Zone) ── */
.match-table-section {
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(3.2rem, 6vw, 5rem) clamp(2.4rem, 6vw, 8rem);
}

.match-table {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 6rem 1fr;
  align-items: center;
  gap: 0;
  background: rgba(20, 30, 50, 0.6);
  border: 0.15rem solid rgba(148, 163, 184, 0.1);
  border-radius: 2.4rem;
  padding: 3.2rem 2.4rem;
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  /* 카페 테이블 느낌 — 은은한 목재 그라디언트 오버레이 */
  box-shadow:
    0 0.4rem 2.4rem rgba(0, 0, 0, 0.35),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.04);
}

/* 테이블 중앙 하트 구분선 */
.match-table__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(148, 163, 184, 0.25);
  font-size: 2.4rem;
  user-select: none;
}

.match-table__divider-line {
  width: 0.1rem;
  height: 4rem;
  background: rgba(148, 163, 184, 0.15);
}

/* 소개팅 좌석 */
.match-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem;
  min-height: 20rem;
  border-radius: 1.6rem;
  border: 0.2rem dashed rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
  transition: border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  position: relative;
}

.match-seat:hover {
  border-color: rgba(126, 193, 255, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.match-seat.has-guest {
  border-style: solid;
  border-color: rgba(77, 233, 171, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

/* 좌석 라벨 */
.match-seat__label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 빈 좌석 힌트 */
.match-seat__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(148, 163, 184, 0.3);
  transition: opacity 0.25s ease;
}

.match-seat.has-guest .match-seat__empty {
  display: none;
}

.match-seat__empty-icon {
  font-size: 3.6rem;
  opacity: 0.4;
}

.match-seat__empty-text {
  font-size: 1.3rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

/* 착석한 성분 */
.match-seat__guest {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: seatIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.match-seat.has-guest .match-seat__guest {
  display: flex;
}

@keyframes seatIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(1rem);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.match-seat__guest-emoji {
  font-size: 4.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 1.2rem rgba(77, 233, 171, 0.4));
}

.match-seat__guest-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* 퇴장 버튼 */
.match-seat__remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  border: 0.1rem solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  color: #F87171;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}

.match-seat.has-guest .match-seat__remove {
  display: flex;
}

.match-seat__remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* 모바일 테이블 */
@media (max-width: 600px) {
  .match-table {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.6rem;
  }

  .match-table__divider {
    flex-direction: row;
    gap: 1.2rem;
  }

  .match-table__divider-line {
    width: 4rem;
    height: 0.1rem;
  }
}

/* ── 궁합 결과 보기 버튼 ── */
.match-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 0 clamp(2.4rem, 6vw, 8rem) clamp(3.2rem, 6vw, 5rem);
  max-width: 96rem;
  margin: 0 auto;
}

.match-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 4.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0F172A;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  border: none;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 0 2.4rem rgba(77, 233, 171, 0.3);
  opacity: 0.38;
  pointer-events: none;
}

.match-cta-btn.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.match-cta-btn.is-ready:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0 3.6rem rgba(77, 233, 171, 0.5);
}

.match-cta-btn.is-ready:active {
  transform: translateY(-0.1rem);
}

.match-cta-btn__icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.match-cta-btn.is-ready:hover .match-cta-btn__icon {
  transform: rotate(15deg) scale(1.1);
}

/* ── 결과 영역 ── */
.match-result-section {
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 clamp(2.4rem, 6vw, 8rem) clamp(4rem, 8vw, 8rem);
}

#result-area {
  /* 기본 숨김 — JS에서 .is-visible 추가 시 표시 */
  display: none;
}

#result-area.is-visible {
  display: block;
  animation: resultReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes resultReveal {
  from {
    opacity: 0;
    transform: translateY(2.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 결과 카드 헤더 */
.match-result__header {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 2.4rem 2.8rem;
  border-radius: 1.6rem 1.6rem 0 0;
  border-width: 0.15rem 0.15rem 0 0.15rem;
  border-style: solid;
}

.match-result__header--great {
  background: rgba(77, 233, 171, 0.1);
  border-color: rgba(77, 233, 171, 0.3);
}

.match-result__header--caution {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.match-result__header--avoid {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.match-result__header--neutral {
  background: rgba(126, 193, 255, 0.1);
  border-color: rgba(126, 193, 255, 0.3);
}

.match-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.match-result__badge--great {
  background: rgba(77, 233, 171, 0.2);
  color: #4DE9AB;
}

.match-result__badge--caution {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.match-result__badge--avoid {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.match-result__badge--neutral {
  background: rgba(126, 193, 255, 0.2);
  color: #7EC1FF;
}

.match-result__combo-name {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
}

/* 결과 본문 */
.match-result__body {
  padding: 2.8rem;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 0 0 1.6rem 1.6rem;
  border-width: 0 0.15rem 0.15rem 0.15rem;
  border-style: solid;
}

.match-result__body--great {
  border-color: rgba(77, 233, 171, 0.25);
}

.match-result__body--caution {
  border-color: rgba(245, 158, 11, 0.25);
}

.match-result__body--avoid {
  border-color: rgba(239, 68, 68, 0.25);
}

.match-result__body--neutral {
  border-color: rgba(126, 193, 255, 0.25);
}

/* 결과 섹션 블록 */
.match-result__block {
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 0.1rem solid var(--border-light);
}

.match-result__block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.match-result__block-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.match-result__block-text {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-tertiary);
}

.match-result__block-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.match-result__block-text em {
  color: var(--color-mint);
  font-style: normal;
  font-weight: 600;
}

/* 사용 타임라인 */
.match-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.match-timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--color-mint);
}

.match-timeline__time {
  flex-shrink: 0;
  padding: 0.3rem 0.9rem;
  background: rgba(77, 233, 171, 0.1);
  border-radius: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-mint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.match-timeline__desc {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* 다시하기 버튼 */
.match-reset-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3.2rem;
}

.match-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(30, 41, 59, 0.6);
  border: 0.15rem solid rgba(148, 163, 184, 0.18);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.match-reset-btn:hover {
  color: var(--text-primary);
  border-color: rgba(126, 193, 255, 0.35);
  background: rgba(30, 41, 59, 0.9);
}

/* ── 의료 면책 조항 ── */
.match-disclaimer {
  max-width: 96rem;
  margin: 0 auto 4rem;
  padding: 0 clamp(2.4rem, 6vw, 8rem);
}

.match-disclaimer__box {
  background: rgba(239, 68, 68, 0.07);
  border-left: 0.4rem solid #EF4444;
  border-radius: 0.8rem;
  padding: 1.8rem 2.4rem;
}

.match-disclaimer__title {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #EF4444;
}

.match-disclaimer__text {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-tertiary);
}


/* =============================================
   Ingredient Match — 성분 매칭 UI
   ============================================= */

/* ── 페이지 레이아웃 ── */
.im-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem) clamp(6rem, 10vw, 10rem);
}

/* ── 히어로 ── */
.im-hero {
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 5vw, 4rem) clamp(3.2rem, 6vw, 5rem);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  border-bottom: 0.1rem solid var(--border-light);
}

.im-hero__tag {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.4rem 1.2rem;
  background: rgba(77, 233, 171, 0.1);
  border: 0.1rem solid rgba(77, 233, 171, 0.25);
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-mint);
  letter-spacing: 0.06em;
}

.im-hero__title {
  margin: 0 0 1.2rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.im-hero__title em {
  font-style: normal;
  color: var(--color-mint);
}

.im-hero__desc {
  margin: 0 auto;
  max-width: 52rem;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── 성분 소스 카드 그리드 ── */
.im-source {
  margin-bottom: 3.6rem;
}

.im-source__heading {
  margin: 0 0 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.im-source__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .im-source__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 성분 카드 */
.ingredient-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.8rem 1rem 1.4rem;
  background: rgba(30, 41, 59, 0.7);
  border: 0.15rem solid rgba(148, 163, 184, 0.1);
  border-radius: 1.4rem;
  cursor: grab;
  user-select: none;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, opacity 0.18s ease;
  -webkit-user-drag: element;
}

.ingredient-card:hover {
  transform: translateY(-0.3rem);
  border-color: rgba(126, 193, 255, 0.3);
  box-shadow: 0 0.6rem 1.6rem rgba(126, 193, 255, 0.1);
}

.ingredient-card:active {
  cursor: grabbing;
}

.ingredient-card.is-dragging {
  opacity: 0.4;
  transform: scale(0.96);
}

.ingredient-card.is-used {
  opacity: 0.3;
  pointer-events: none;
}

.ingredient-card__icon {
  font-size: 2.8rem;
  line-height: 1;
  pointer-events: none;
}

.ingredient-card__nick {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
}

.ingredient-card__sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  pointer-events: none;
}

/* ── 매칭 테이블 ── */
.im-table {
  display: grid;
  grid-template-columns: 1fr 4.8rem 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 3.2rem;
  background: rgba(15, 23, 42, 0.5);
  border: 0.15rem solid rgba(148, 163, 184, 0.1);
  border-radius: 2rem;
  padding: 2.8rem 2rem;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

@media (max-width: 560px) {
  .im-table {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .im-table__sep {
    flex-direction: row;
  }

  .im-table__sep-line {
    width: 3.2rem;
    height: 0.1rem;
  }
}

/* 드롭 슬롯 */
.im-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 16rem;
  padding: 2rem 1.6rem;
  border: 0.2rem dashed rgba(148, 163, 184, 0.2);
  border-radius: 1.4rem;
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.im-slot__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 드래그 오버 상태 */
.im-slot.drag-over {
  border-color: rgba(77, 233, 171, 0.5);
  background: rgba(77, 233, 171, 0.05);
}

/* 슬롯에 성분이 채워진 상태 */
.im-slot.has-card {
  border-style: solid;
  border-color: rgba(77, 233, 171, 0.3);
  background: rgba(15, 23, 42, 0.55);
}

/* 슬롯 빈 힌트 */
.im-slot__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(148, 163, 184, 0.3);
  pointer-events: none;
}

.im-slot.has-card .im-slot__hint {
  display: none;
}

.im-slot__hint-icon {
  font-size: 2.8rem;
  opacity: 0.35;
}

.im-slot__hint-text {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
}

/* 슬롯 내 배치된 카드 미리보기 */
.im-slot__preview {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: imSlotIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.im-slot.has-card .im-slot__preview {
  display: flex;
}

@keyframes imSlotIn {
  from {
    opacity: 0;
    transform: scale(0.65) translateY(0.8rem);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.im-slot__preview-icon {
  font-size: 3.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 1rem rgba(77, 233, 171, 0.35));
}

.im-slot__preview-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* 슬롯 제거 버튼 */
.im-slot__remove {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(239, 68, 68, 0.15);
  border: 0.1rem solid rgba(239, 68, 68, 0.25);
  border-radius: 50%;
  color: #F87171;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s ease;
  z-index: 5;
}

.im-slot.has-card .im-slot__remove {
  display: flex;
}

.im-slot__remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* 테이블 중앙 구분 */
.im-table__sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(148, 163, 184, 0.2);
  user-select: none;
}

.im-table__sep-line {
  width: 0.1rem;
  height: 3.2rem;
  background: rgba(148, 163, 184, 0.12);
}

.im-table__sep-icon {
  font-size: 2rem;
  line-height: 1;
}

/* ── 분석 버튼 ── */
.im-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.im-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 4.4rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0F172A;
  background: linear-gradient(135deg, #7EC1FF 0%, #4DE9AB 100%);
  border: none;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
  box-shadow: 0 0 2rem rgba(77, 233, 171, 0.25);
  opacity: 0.35;
  pointer-events: none;
}

.im-cta__btn.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.im-cta__btn.is-ready:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0 3.2rem rgba(77, 233, 171, 0.45);
}

.im-cta__btn.is-ready:active {
  transform: translateY(-0.1rem);
}

.im-cta__btn-icon {
  font-size: 1.8rem;
  transition: transform 0.25s ease;
}

.im-cta__btn.is-ready:hover .im-cta__btn-icon {
  transform: rotate(12deg) scale(1.1);
}

/* ── 결과 리포트 ── */
#result-text {
  display: none;
}

#result-text.is-visible {
  display: block;
  animation: imResultIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes imResultIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 결과 헤더 */
.im-result__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 2.2rem 2.4rem;
  border-radius: 1.4rem 1.4rem 0 0;
  border-width: 0.15rem 0.15rem 0 0.15rem;
  border-style: solid;
}

.im-result__head--great {
  background: rgba(77, 233, 171, 0.08);
  border-color: rgba(77, 233, 171, 0.28);
}

.im-result__head--caution {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.28);
}

.im-result__head--avoid {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
}

.im-result__head--neutral {
  background: rgba(126, 193, 255, 0.08);
  border-color: rgba(126, 193, 255, 0.28);
}

.im-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1.1rem;
  border-radius: 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.im-result__badge--great {
  background: rgba(77, 233, 171, 0.18);
  color: #4DE9AB;
}

.im-result__badge--caution {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
}

.im-result__badge--avoid {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
}

.im-result__badge--neutral {
  background: rgba(126, 193, 255, 0.18);
  color: #7EC1FF;
}

.im-result__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
}

/* 결과 본문 */
.im-result__body {
  padding: 2.4rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0 0 1.4rem 1.4rem;
  border-width: 0 0.15rem 0.15rem 0.15rem;
  border-style: solid;
}

.im-result__body--great {
  border-color: rgba(77, 233, 171, 0.2);
}

.im-result__body--caution {
  border-color: rgba(245, 158, 11, 0.2);
}

.im-result__body--avoid {
  border-color: rgba(239, 68, 68, 0.2);
}

.im-result__body--neutral {
  border-color: rgba(126, 193, 255, 0.2);
}

/* 결과 블록 */
.im-result__block {
  padding-bottom: 2.2rem;
  margin-bottom: 2.2rem;
  border-bottom: 0.1rem solid var(--border-light);
}

.im-result__block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.im-result__block-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-accent);
}

.im-result__block-text {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-tertiary);
}

.im-result__block-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.im-result__block-text em {
  color: var(--color-mint);
  font-style: normal;
  font-weight: 600;
}

/* 사용 타임라인 */
.im-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.im-timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(30, 41, 59, 0.45);
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--color-mint);
}

.im-timeline__time {
  flex-shrink: 0;
  padding: 0.25rem 0.8rem;
  background: rgba(77, 233, 171, 0.1);
  border-radius: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-mint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.im-timeline__desc {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* 다시하기 */
.im-reset {
  display: none;
  justify-content: center;
  margin-top: 2.8rem;
}

.im-reset.is-visible {
  display: flex;
}

.im-reset__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(30, 41, 59, 0.55);
  border: 0.15rem solid rgba(148, 163, 184, 0.16);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.im-reset__btn:hover {
  color: var(--text-primary);
  border-color: rgba(126, 193, 255, 0.3);
  background: rgba(30, 41, 59, 0.85);
}

/* ── 면책 조항 ── */
.im-disclaimer {
  margin-top: 4.8rem;
  padding: 1.6rem 2rem;
  background: rgba(239, 68, 68, 0.06);
  border-left: 0.35rem solid #EF4444;
  border-radius: 0.8rem;
}

.im-disclaimer__title {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #EF4444;
}

.im-disclaimer__text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-tertiary);
}


/* ── match-logic 결과 면책 조항 ── */
.im-result__disclaimer {
  margin-top: 2rem;
  padding: 1.4rem 1.8rem;
  background: rgba(239, 68, 68, 0.07);
  border-left: 0.3rem solid #EF4444;
  border-radius: 0.6rem;
}

.im-result__disclaimer p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.im-result__disclaimer strong {
  color: #F87171;
  font-weight: 600;
}

/* ????????????????????????????????????????
   BALANCE GAME SECTION
   ???????????????????????????????????????? */
.bg-body {
  background-color: #0f172a;
  color: #f8fafc;
}

.bg-main {
  padding-top: 10rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-hero {
  padding: 6rem 2.4rem 4rem;
  text-align: center;
}

.bg-hero__tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(126, 193, 255, 0.1);
  color: var(--color-accent);
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.6rem;
}

.bg-hero__title {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 800;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.bg-hero__title em {
  font-style: normal;
  color: var(--color-accent);
  background: linear-gradient(135deg, #7ec1ff 0%, #4de9ab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bg-hero__desc {
  color: #94a3b8;
  font-size: 1.8rem;
  line-height: 1.6;
}

/* Progress Bar */
.bg-progress {
  width: 100%;
  max-width: 60rem;
  padding: 0 2.4rem;
  margin-bottom: 4rem;
}

.bg-progress__bar {
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bg-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #7ec1ff, #4de9ab);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-progress__text {
  display: block;
  text-align: right;
  font-size: 1.4rem;
  color: #64748b;
}

/* Game Area */
.bg-game {
  width: 100%;
  max-width: 120rem;
  padding: 0 2.4rem 8rem;
}

.bg-question {
  text-align: center;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 6rem;
  color: #fff;
}

.bg-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.bg-card {
  position: relative;
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 2.4rem;
  padding: 4rem 2rem;
  min-height: 40rem;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bg-card:hover {
  transform: translateY(-1rem);
  border-color: var(--color-accent);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bg-card__inner {
  position: relative;
  z-index: 2;
}

.bg-card__label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2rem;
}

.bg-card__text {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: #f8fafc;
}

.bg-vs {
  position: relative;
  z-index: 10;
}

.bg-vs__circle {
  width: 8rem;
  height: 8rem;
  background: #0f172a;
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(126, 193, 255, 0.3);
}

.bg-vs__text {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-accent);
  font-style: italic;
}

/* Result Area */
.bg-result {
  width: 100%;
  max-width: 80rem;
  padding: 0 2.4rem 8rem;
}

.bg-result__container {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3.2rem;
  padding: 6rem 4rem;
  text-align: center;
  backdrop-filter: blur(20px);
}

.bg-result__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #0f172a;
  padding: 0.6rem 1.6rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 2.4rem;
}

.bg-result__title {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.bg-result__summary {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 4rem;
}

.bg-result__actions {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
}

.bg-reset-btn,
.bg-home-btn {
  padding: 1.6rem 3.2rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bg-reset-btn {
  background: var(--color-accent);
  color: #0f172a;
  border: none;
}

.bg-home-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

@media (max-width: 768px) {
  .bg-cards {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .bg-vs {
    margin: -3rem 0;
  }

  .bg-card {
    min-height: 24rem;
  }
}

/* ????????????????????????????????????????
   BALANCE GAME RESULT UPGRADE
   ???????????????????????????????????????? */
.bg-result__container {
  padding: 4rem 2rem;
}

.bg-result__summary-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  padding: 4rem 3rem;
  border-radius: 3rem;
  margin-bottom: 4rem;
  border: 2px solid var(--color-accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(126, 193, 255, 0.1);
  text-align: center;
}

.bg-result__emoji {
  font-size: 6.4rem;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.bg-result__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.6rem;
  word-break: keep-all;
}

.bg-result__intro {
  font-size: 1.7rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 45rem;
  margin: 0 auto;
}

/* Expert Report Boxes */
.expert-report {
  text-align: left;
  margin-bottom: 4rem;
}

.report-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem;
  margin-bottom: 2.4rem;
  transition: transform 0.3s ease;
}

.report-box:hover {
  transform: translateX(10px);
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(126, 193, 255, 0.3);
}

.report-box__header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.report-box__icon {
  font-size: 2.4rem;
}

.report-box__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}

.report-box__content {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.report-list li::before {
  content: " ?";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* --- 밸런스 게임 결과 박스 디자인 --- */
#result-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 요약 모달 스타일 (모달 형태의 독립된 카드 느낌 강조) */
.result-summary-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  margin: 0 auto 50px auto;
  max-width: 600px;
  /* 카드가 너무 퍼지지 않게 중앙으로 모음 */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  /* 띄워져 있는 듯한 깊은 그림자 */
  position: relative;
  z-index: 10;
}

#result-title {
  font-size: 2.8rem;
  /* 28px */
  color: #7ec1ff;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
}

#result-desc {
  font-size: 1.6rem;
  /* 16px */
  color: #94a3b8;
  line-height: 1.7;
  word-break: keep-all;
}

/* 상세 리포트 박스 (하단 빈 깡통 예방용 긴 글 영역) */
#result-detail {
  margin-top: 20px;
}

.report-box {
  background: #1e293b;
  border-left: 5px solid #7ec1ff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.report-box:hover {
  transform: translateY(-5px);
}

.report-box h3 {
  font-size: 1.8rem;
  /* 18px */
  color: #f1f5f9;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.report-box p {
  font-size: 1.5rem;
  /* 15px */
  color: #cbd5e1;
  line-height: 1.8;
  word-break: keep-all;
}

/* =========================================
   피부 노화 시계 테스트 (Aging Clock)
   ========================================= */

/* Hero & Title */
.ac-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(circle at center, rgba(126, 193, 255, 0.1) 0%, transparent 60%);
}

.ac-hero__tag {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-mint);
  background: rgba(77, 233, 171, 0.15);
  border-radius: 2rem;
  margin-bottom: 1.6rem;
  letter-spacing: 0.05em;
}

.ac-hero__title {
  font-size: 4rem;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
  text-shadow: 0 0 1.6rem rgba(126, 193, 255, 0.4);
}

.ac-hero__title em {
  color: var(--color-accent);
  font-style: normal;
}

.ac-hero__desc {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Progress & Clock Visual */
.ac-progress {
  max-width: 80rem;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.ac-progress__container {
  background: var(--bg-card);
  border: 0.1rem solid var(--border-light);
  border-radius: 1.6rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ac-progress__bar {
  flex: 1;
  height: 0.8rem;
  background: rgba(148, 163, 184, 0.2);
  /* 트랙 배경색 추가 */
  border-radius: 0.4rem;
  /* 둥근 모서리 */
  overflow: hidden;
  /* 주석 제거 → 반드시 필요 */
}


.ac-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-mint), var(--color-accent));
  transition: width 0.4s ease;
}

.ac-progress__text {
  font-size: 1.4rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Game / Question Area */
.ac-game {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem 8rem;
}

.ac-game__container {
  background: rgba(30, 41, 59, 0.7);
  border: 0.1rem solid rgba(148, 163, 184, 0.2);
  border-radius: 2.4rem;
  padding: 4rem;
  text-align: center;
  box-shadow: var(--shadow-light);
}

.ac-question {
  font-size: 2.4rem;
  color: var(--text-primary);
  margin-bottom: 3.2rem;
  line-height: 1.5;
  min-height: 7.2rem;
}

.ac-options {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.ac-option-btn {
  width: 100%;
  padding: 2rem;
  background: var(--bg-card);
  border: 0.1rem solid var(--border-light);
  border-radius: 1.6rem;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.ac-option-btn:hover {
  background: rgba(126, 193, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--text-primary);
  transform: translateY(-0.2rem);
}

/* Result Area */
.ac-result {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem 8rem;
}

.ac-result__summary {
  background: rgba(30, 41, 59, 0.8);
  border: 0.1rem solid var(--color-accent);
  border-radius: 2.4rem;
  padding: 5rem 3rem;
  text-align: center;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-glow);
}

.ac-result__clock {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) 0%, rgba(30, 41, 59, 1) 0%);
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ac-result__clock::before {
  content: '';
  position: absolute;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: var(--bg-card);
}

.ac-result__age {
  position: relative;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ac-result__title {
  font-size: 2.8rem;
  color: var(--color-mint);
  margin-bottom: 2rem;
  font-weight: 700;
}

.ac-result__desc {
  font-size: 1.6rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.ac-report-box {
  background: rgba(15, 23, 42, 0.5);
  border-left: 0.4rem solid var(--color-accent);
  border-radius: 0.8rem;
  padding: 2.4rem;
  margin-bottom: 2.4rem;
}

.ac-report-box:last-child {
  margin-bottom: 0;
}

.ac-report-box h3 {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ac-report-box p {
  font-size: 1.5rem;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.ac-report-box ul {
  padding-left: 2rem;
  margin: 0;
}

.ac-report-box li {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  list-style-type: disc;
}

@media (max-width: 768px) {
  .ac-hero__title {
    font-size: 3.2rem;
  }

  .ac-question {
    font-size: 2rem;
  }

  .ac-game__container {
    padding: 3rem 2rem;
  }

  .ac-report-article {
    padding: 2.4rem 1.6rem;
  }
}

/* =========================================
   화장대 다이어트 시뮬레이터 (Skincare Diet)
   ========================================= */

.sd-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(circle at center, rgba(77, 233, 171, 0.1) 0%, transparent 60%);
}

.sd-hero__tag {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-mint);
  background: rgba(77, 233, 171, 0.15);
  border-radius: 2rem;
  margin-bottom: 1.6rem;
  letter-spacing: 0.05em;
}

.sd-hero__title {
  font-size: 4rem;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
  text-shadow: 0 0 1.6rem rgba(77, 233, 171, 0.3);
}

.sd-hero__desc {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 질문 컨테이너 */
.sd-game {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem 8rem;
}

.sd-game__container {
  background: rgba(30, 41, 59, 0.7);
  border: 0.1rem solid rgba(148, 163, 184, 0.2);
  border-radius: 2.4rem;
  padding: 4rem;
  box-shadow: var(--shadow-light);
}

.sd-step {
  display: none;
  /* JS로 제어 */
}

.sd-step.active {
  display: block;
}

.sd-question {
  font-size: 2.4rem;
  color: var(--text-primary);
  margin-bottom: 3.2rem;
  text-align: center;
}

/* 다중 선택 체크박스 커스텀 UI */
.sd-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.6rem;
  margin-bottom: 4rem;
}

.sd-checkbox-label {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 0.1rem solid var(--border-light);
  border-radius: 1.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sd-checkbox-label input[type="checkbox"] {
  display: none;
}

.sd-checkbox-text {
  font-size: 1.6rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  z-index: 2;
  transition: color 0.2s;
}

.sd-checkbox-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(77, 233, 171, 0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}

.sd-checkbox-label input[type="checkbox"]:checked+.sd-checkbox-text {
  color: var(--color-mint);
  font-weight: 700;
}

.sd-checkbox-label:has(input[type="checkbox"]:checked) {
  border-color: var(--color-mint);
}

.sd-checkbox-label:has(input[type="checkbox"]:checked)::before {
  transform: scaleX(1);
}

.sd-checkbox-label:hover {
  transform: translateY(-0.2rem);
  border-color: rgba(77, 233, 171, 0.5);
}

/* 하단 버튼 영역 */
.sd-actions {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.sd-btn {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  position: relative;
  z-index: 10;
  min-height: 4.8rem;
  touch-action: manipulation;
}

.sd-btn--primary {
  background: var(--color-mint);
  color: var(--bg-primary);
  box-shadow: 0 0 1rem rgba(77, 233, 171, 0.4);
}

.sd-btn--primary:hover {
  background: #3ec891;
  transform: translateY(-0.2rem);
}

.sd-btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 0.1rem solid var(--border-light);
}

.sd-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 결과 영역 (칼럼형 리포트) */
.sd-result {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem 8rem;
  display: none;
}

.sd-result__summary {
  text-align: center;
  margin-bottom: 4rem;
  padding: 4rem;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 2.4rem;
  border: 0.1rem solid var(--color-accent);
}

.sd-result__icon {
  font-size: 6rem;
  margin-bottom: 2rem;
}

.sd-result__title {
  font-size: 3.2rem;
  color: var(--color-mint);
  margin-bottom: 1.6rem;
}

.sd-report-article {
  background: var(--bg-card);
  padding: 5rem 4rem;
  border-radius: 2.4rem;
  border: 0.1rem solid var(--border-light);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
}

.sd-report-article h3 {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sd-report-article h3:first-child {
  margin-top: 0;
}

.sd-report-article p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.4rem;
  word-break: keep-all;
}

.sd-report-article strong {
  color: var(--color-mint);
  font-weight: 700;
  background: rgba(77, 233, 171, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
}

.sd-report-article ul {
  background: rgba(15, 23, 42, 0.5);
  border-left: 0.4rem solid var(--color-mint);
  padding: 2.4rem 2.4rem 2.4rem 4rem;
  border-radius: 0.8rem;
  margin-bottom: 3rem;
}

.sd-report-article li {
  font-size: 1.5rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 1rem;
  list-style-type: disc;
}

.sd-report-article li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .sd-hero__title {
    font-size: 3.2rem;
  }

  .sd-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .sd-report-article {
    padding: 3rem 2rem;
  }

  .sd-report-article h3 {
    font-size: 2rem;
  }
}

/* —— Face Mapper (얼굴 부위별 트러블 매퍼) —— */
.fm-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.fm-hero__title {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  color: var(--text-primary);
  margin-bottom: 1.6rem;
}

.fm-hero__subtitle {
  font-size: 1.8rem;
  color: var(--text-secondary);
}

.fm-mapper-section {
  padding: 0 0 8rem;
  display: flex;
  justify-content: center;
}

.fm-mapper-container {
  width: 100%;
  max-width: 80rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

/* Face Image Wrapper */
.fm-face-wrapper {
  position: relative;
  width: 30rem;
  height: 40rem;
  background-color: var(--bg-card);
  border-radius: 15rem 15rem 10rem 10rem;
  border: 0.2rem solid var(--border-light);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

/* Simulated Face Background */
.fm-face-base {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(126, 193, 255, 0.1) 0%, transparent 70%);
}

/* 레이저 스캔 라인 */
.fm-scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.3rem;
  background: linear-gradient(90deg, transparent 0%, rgba(77, 233, 171, 0.9) 30%, #4de9ab 50%, rgba(77, 233, 171, 0.9) 70%, transparent 100%);
  box-shadow: 0 0 1.2rem 0.4rem rgba(77, 233, 171, 0.6);
  pointer-events: none;
  z-index: 30;
  display: none;
  top: 0;
}

/* Clickable Areas */
.fm-area {
  position: absolute;
  background: rgba(77, 233, 171, 0.1);
  border: 0.2rem dashed rgba(77, 233, 171, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.fm-area:hover,
.fm-area.active {
  background: rgba(77, 233, 171, 0.3);
  border-color: rgba(77, 233, 171, 0.8);
  box-shadow: 0 0 1.5rem rgba(77, 233, 171, 0.5);
}

/* Positioning */
.fm-area--forehead {
  top: 15%;
  left: 20%;
  width: 60%;
  height: 20%;
  border-radius: 40%;
}

.fm-area--nose {
  top: 40%;
  left: 40%;
  width: 20%;
  height: 25%;
  border-radius: 30% 30% 40% 40%;
  z-index: 20;
  /* cheeks 가상 요소보다 위에 위치 */
}

.fm-area--cheeks {
  top: 45%;
  left: 15%;
  width: 70%;
  height: 20%;
  background: transparent;
  border: none;
  pointer-events: none;
  /* 중앙 투명 영역이 코 클릭을 막지 않도록 */
}

.fm-area--cheeks::before,
.fm-area--cheeks::after {
  content: '';
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  background: rgba(77, 233, 171, 0.1);
  border: 0.2rem dashed rgba(77, 233, 171, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: all;
  /* 가상 요소는 클릭 가능하게 복원 */
}

.fm-area--cheeks::before {
  left: 0;
}

.fm-area--cheeks::after {
  right: 0;
}

.fm-area--cheeks:hover::before,
.fm-area--cheeks:hover::after,
.fm-area--cheeks.active::before,
.fm-area--cheeks.active::after {
  background: rgba(77, 233, 171, 0.3);
  border-color: rgba(77, 233, 171, 0.8);
  box-shadow: 0 0 1.5rem rgba(77, 233, 171, 0.5);
}

.fm-area--chin {
  top: 75%;
  left: 30%;
  width: 40%;
  height: 15%;
  border-radius: 50%;
}

/* Result Report Area */
.fm-report {
  width: 100%;
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 1.6rem;
  border: 0.1rem solid var(--border-light);
  box-shadow: var(--shadow-light);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
}

.fm-report.visible {
  display: block;
}

.fm-report.show {
  opacity: 1;
  transform: translateY(0);
}

.fm-report h3 {
  font-size: 2.4rem;
  color: var(--color-mint);
  margin-bottom: 2rem;
  text-transform: capitalize;
}

.fm-report p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.fm-report p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .fm-face-wrapper {
    width: 24rem;
    height: 32rem;
  }

  .fm-report {
    padding: 2.4rem;
  }
}

/* Medical Disclaimer */
.medical-disclaimer {
  padding: 4rem 2rem;
  background-color: transparent;
  border-top: 0.1rem solid var(--border-light);
}

.disclaimer-container {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.medical-disclaimer p {
  font-size: 1.4rem;
  color: #94A3B8;
  line-height: 1.6;
  word-break: keep-all;
}