/* [코드 절대 규칙]
1. 기존 합의 기능은 삭제/덮어쓰기/생략 금지 (사용자 요청 시에만 변경).
2. 변경은 '추가' 우선, 중복 제거는 사전 확인 후.
3. 코드 수정 시 전체 완전본 제공 (생략/축약 금지).
*/

/* =========================================================
   몽실몽실 심리테스트 style.css v2025.3 — 반응형 & 파스텔
   - Pretendard Variable 기준
   - 톤: 파스텔 / 라운디드 / 얇은 브라운 라인
   - 카테고리 테마: love / hobby / fun / mind
   - 확장: 에너지 테스트 배터리 그래픽 & 애니메이션
   ========================================================= */

/* ---------- 리셋 & 기본 ---------- */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
img { display:block; max-width:100%; height:auto; }

:root{
  --bg: #f7faf9;
  --card: #ffffff;
  --line: #5e493d22;       /* 얇은 브라운 */
  --text: #2b2b2b;
  --text-soft:#5e5e5e;

  /* 파스텔 팔레트 */
  --mint-100:#e9fbf4; --mint-200:#cff2e4; --mint-300:#a5e3c5; --mint-500:#67c5a1;
  --sky-100:#edf7ff;  --sky-200:#cfe9ff;  --sky-300:#a8d6ff; --sky-500:#6cb7f0;
  --lav-100:#f4eeff;  --lav-200:#e7dbff;  --lav-300:#cdbbfd; --lav-500:#9a8cf5;
  --iv-100:#fffdf7;   --iv-200:#fff5dc;   --iv-300:#ffe6a8;  --iv-500:#ffcf60;
  --rose-50:#fff1ea;  --rose-100:#ffe6e1; --rose-200:#ffd8c4; --rose-300:#ffba9d; --rose-500:#ff9468;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --radius: 18px;
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.65;
}

/* ---------- 공통 컴포넌트 ---------- */
header{
  padding: 22px 16px 10px;
  position: relative;
}
.logo{ display:flex; align-items:center; gap:10px; }
.logo img{ width: clamp(32px, 7vw, 44px); height:auto; }
.logo span{ font-weight:800; font-size: clamp(18px,4.8vw,26px); letter-spacing:-.2px; }
.subtitle{ color:var(--text-soft); margin:6px 0 14px; }

.cta{
  display:inline-block; border:none; border-radius:999px;
  padding:12px 18px; font-weight:700; cursor:pointer;
  background: var(--mint-300); color:#fff; box-shadow: var(--shadow);
  transition: transform .06s ease, filter .2s ease; margin: 2px 0 12px;
}
.cta:active{ transform: scale(.98); }

/* 상단 고정 메인 버튼 */
.top-main-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #5e493d;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all .25s ease;
}
.top-main-btn:hover {
  background: #f7f7f7;
  transform: translateY(-2px);
}

.scroll-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}

/* 좌우 화살표 버튼은 그대로 */
.nav-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow);
}

/* 🔴 여기가 핵심: 가로 스크롤 컨테이너 */
.scroll-tests{
  display:flex;
  flex-wrap:nowrap;         /* 한 줄로만 나열 (줄바꿈 방지) */
  overflow-x:auto;          /* 가로 스크롤만 허용 */
  overflow-y:hidden;        /* 세로 스크롤은 막기 */
  gap:8px;
  padding:6px 2px;

  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;  /* iOS 부드러운 스크롤 */
  touch-action: pan-x;                /* 손가락을 좌우로 움직였을 때만 가로 스크롤 */
  overscroll-behavior-inline: contain;
  scrollbar-width: none;              /* Firefox 스크롤바 숨기기 */
}
.scroll-tests::-webkit-scrollbar {
  display: none;                       /* WebKit 스크롤바 숨기기 */
}

/* 칩(버튼)은 가로로만 늘어나는 아이템 */
.test-chip{
  flex:0 0 auto;                       /* 줄바꿈 없이 가로로 쭉 나열 */
  border:none;
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  background:#fff;
  color:var(--text-soft);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}

/* 카드 그리드 */
main{
  display:grid; gap:16px; padding: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(12px,2.5vw,18px);
  display:flex; flex-direction:column; gap:10px;
  cursor: pointer;
}
.card .chip{
  display:inline-block; font-size:12px; color:#6b5b50; background:#fff;
  border:1px solid var(--line); border-radius:999px; padding:4px 10px; width:max-content;
}

/* 썸네일 영역: 사이즈 통일 */
.thumb-link { display:block; text-decoration: none; }
.card .anim{
  display:flex; justify-content:center; align-items:center;
  width:100%; min-height: 120px;
}
.card .anim img{
  width: clamp(88px, 18vw, 120px);
  height: auto;
  object-fit: contain;
  pointer-events: auto;
}
.card h3{ margin:2px 0 0; font-size: clamp(15px,2.8vw,18px); }
.card .desc{ color:var(--text-soft); margin: 2px 0 8px; }
.start{
  align-self:flex-start; border:none; border-radius:999px; padding:10px 14px;
  font-weight:800; background:var(--sky-300); color:#fff; cursor:pointer; box-shadow:var(--shadow);
  transition: transform .06s ease, filter .2s ease;
}
.start:active{ transform: scale(.98); }

footer{ padding: 24px 12px; text-align:center; color:var(--text-soft); }

/* ---------- 테스트 페이지 공통 ---------- */
.test{ max-width:900px; margin:0 auto; padding: 10px 12px 80px; }
.meta{ display:flex; align-items:center; gap:12px; margin:6px 0 10px; }
.meta #stepLabel{ font-weight:800; min-width: 64px; }
.bar{ flex:1; height:10px; background:#eef3f2; border-radius:999px; overflow:hidden; }
.bar span{ display:block; height:100%; width:0%; background:var(--mint-500); transition: width .25s ease; }

.card-q{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 14px; margin-top: 6px;
}
.q-text{ font-weight:800; margin: 2px 0 10px; }

/* 선택지 */
.choices{ margin-top: 6px; }
.choices .choice{
  width:100%; display:block; text-align:center;
  border-radius:14px; padding:14px; margin:8px 0;
  font-weight:700; border:1px solid var(--line);
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  transition: background .2s ease, transform .06s ease, color .2s ease, border-color .2s;
  color: var(--text-soft);
  background:#ffffff;
}
.choice:hover{ transform: scale(.995); }
.choice.selected{ outline:2px solid #0000; }

/* 내비 버튼 */
.navs{ display:flex; gap:8px; margin-top:10px; }
.ghost{
  background:#fff; color:var(--text-soft); border:1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 12px; padding:10px 12px; font-weight:700;
}

/* 결과 카드 */
.result-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 14px; margin-top:10px;
}
.result-hero{ display:flex; align-items:center; gap:12px; }
.result-hero img{ width: clamp(40px, 14vw, 72px); }
.result-title{ font-weight:900; font-size: clamp(18px, 4.5vw, 22px); }
.result-desc{ color:var(--text-soft); }

.pill{
  display:inline-block; background: var(--iv-100);
  border:1px solid var(--line); border-radius:999px;
  padding:6px 10px; font-weight:700; color:#6b5b50;
}
.mind-remind{ background: var(--mint-100); border:1px dashed var(--mint-300);
  border-radius:12px; padding:10px; }
.result-actions{ display:flex; gap:8px; margin-top:12px; }
.result-actions .start{ background: var(--mint-500); }
.result-actions .start:nth-child(2){ background: var(--sky-500); }

/* ---------- 카테고리 테마 ---------- */
/* 연애 */
.card-q.love .choice:nth-child(5n+1){ background: var(--rose-50); }
.card-q.love .choice:nth-child(5n+2){ background: var(--rose-200); }
.card-q.love .choice:nth-child(5n+3){ background: var(--rose-100); }
.card-q.love .choice:nth-child(5n+4){ background: #ffd1b5; }
.card-q.love .choice:nth-child(5n+5){ background: #f5e1dc; }
.card-q.love .choice.selected{ background: var(--rose-300); color:#fff; border-color: transparent; }

/* 취미(자립/에너지/성격) */
.card-q.hobby .choice:nth-child(5n+1){ background:#EAF8F1; }
.card-q.hobby .choice:nth-child(5n+2){ background:#FFFBE6; }
.card-q.hobby .choice:nth-child(5n+3){ background:#C8F1E3; }
.card-q.hobby .choice:nth-child(5n+4){ background:#FFF0B8; }
.card-q.hobby .choice:nth-child(5n+5){ background:#F7FFEC; }
.card-q.hobby .choice.selected{ background:#A5E3C5; color:#fff; border-color: transparent; }

/* 재미(동물/MBTI/날씨) */
.card-q.fun .choice:nth-child(5n+1){ background: var(--sky-100); }
.card-q.fun .choice:nth-child(5n+2){ background: var(--sky-200); }
.card-q.fun .choice:nth-child(5n+3){ background: var(--lav-100); }
.card-q.fun .choice:nth-child(5n+4){ background: var(--iv-300); }
.card-q.fun .choice:nth-child(5n+5){ background: #E2F3FF; }
.card-q.fun .choice.selected{ background: var(--sky-300); color:#fff; border-color: transparent; }

/* 심리건강(마음톡/감정vs논리) */
.card-q.mind .choice:nth-child(5n+1){ background:#E8F6F0; }
.card-q.mind .choice:nth-child(5n+2){ background:#D8EFE7; }
.card-q.mind .choice:nth-child(5n+3){ background:#F9F9F7; }
.card-q.mind .choice:nth-child(5n+4){ background:#C5E6D6; }
.card-q.mind .choice:nth-child(5n+5){ background:#E3F2EC; }
.card-q.mind .choice.selected{ background:#9DD8C4; color:#fff; border-color: transparent; }

/* ---------- 접근성 ---------- */
.choice{ outline-offset: 2px; }
.choice:focus-visible,
.start:focus-visible,
.nav-btn:focus-visible,
.test-chip:focus-visible,
.thumb-link:focus-visible{ outline: 3px solid #00000020; border-radius: 12px; }

/* ---------- 반응형 ---------- */
@media (max-width: 600px){
  header{ padding:16px 12px 8px; }
  .subtitle{ font-size:14px; }
  main{ grid-template-columns: 1fr; gap:12px; padding: 8px 10px; }
  .card .anim{ min-height: 104px; }
  .card h3{ font-size: 1.05rem; }
  .cta{ width:100%; font-size:16px; }
  footer{ font-size:13px; }
  .test{ padding: 8px 10px 80px; }
}

/* === 결과 히어로 이미지 확대 (동물 테스트 전용) === */
.result-hero.result-hero--big { align-items: center; }
.result-hero.result-hero--big .animal-hero {
  width: 96px; height: auto; image-rendering: -webkit-optimize-contrast; margin-right: 12px;
}
@media (min-width: 480px){
  .result-hero.result-hero--big .animal-hero { width: 110px; }
}

/* 그래프 오른쪽 상태 라벨 톤 다운 */
.state-meter .meter-label{ color: var(--text-soft); }

/* 여백 보강 */
.result-card .result-hero{ gap: 12px; }

/* 태블릿 카드 폭 보정 */
@media (min-width: 601px) and (max-width: 1024px){
  main{ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* =========================================================
   ⚡ [추가] 에너지 테스트 전용 배터리 그래픽
   - energy.js의 renderBattery()와 연동
   - 깜빡이는 애니메이션 포함
   ========================================================= */
.battery {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  margin:16px 0 12px;
}
.battery-pack {
  display:flex;
  gap:4px;
  padding:6px;
  border:2px solid var(--mint-500);
  border-radius:10px;
  background:#fff;
  position:relative;
  box-shadow:inset 0 0 4px rgba(0,0,0,0.05);
}
.battery-pack::after {
  content:'';
  position:absolute;
  right:-6px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:12px;
  border-radius:2px;
  background:var(--mint-500);
}
.batt-cell {
  width:28px;
  height:16px;
  border-radius:4px;
  background:#eef3f2;
  overflow:hidden;
  position:relative;
}
.batt-cell .fill {
  position:absolute;
  top:0;
  left:0;
  height:100%;
  background:var(--mint-500);
  transition:width 0.6s ease;
}
.batt-cell.blink .fill {
  animation:blinkFill 1.2s infinite ease-in-out;
}
@keyframes blinkFill {
  0%,100% {opacity:1;}
  50% {opacity:0.4;}
}
.percent-label {
  font-weight:700;
  font-size:0.9rem;
  color:var(--mint-700,#3ca774);
  margin-top:6px;
}
/* === 자립 지수 체크: 미터 보조 스타일 (추가) === */
.state-meter .meter-dim{ opacity:.7; }

/* =========================================================
   몽실몽실 심리테스트 style.css v2025.3 — 추가형 확장 전용 (스코프)
   ========================================================= */
body.v2025-3 {

  /* ---------- 확장용 변수 ---------- */
  --line: #5e493d22;
  --text-soft: #5e5e5e;

  --mint-100:#e9fbf4; --mint-200:#cff2e4; --mint-300:#a5e3c5; --mint-500:#67c5a1;
  --sky-100:#edf7ff;  --sky-200:#cfe9ff;  --sky-300:#a8d6ff; --sky-500:#6cb7f0;
  --lav-100:#f4eeff;  --lav-200:#e7dbff;  --lav-300:#cdbbfd; --lav-500:#9a8cf5;
  --iv-100:#fffdf7;   --iv-200:#fff5dc;   --iv-300:#ffe6a8;  --iv-500:#ffcf60;
  --rose-50:#fff1ea;  --rose-100:#ffe6e1; --rose-200:#ffd8c4; --rose-300:#ffba9d; --rose-500:#ff9468;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --radius: 18px;

  /* ---------- 확장 버튼 (기존 top-main-btn 영향 X) ---------- */
  .top-main-btn.v2025-3 {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    background: #fff;
    color: #5e493d;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all .25s ease;
  }
  .top-main-btn.v2025-3:hover {
    background: #f7f7f7;
    transform: translateY(-2px);
  }

  /* ---------- 확장용 카드 레이아웃 ---------- */
  main.v2025-3 {
    display: grid;
    gap: 16px;
    padding: 12px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .card.v2025-3 {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(12px,2.5vw,18px);
  }

  /* ---------- 추가 테마 확장 ---------- */
  .card-q.love .choice.selected{ background: var(--rose-300); color:#fff; border-color: transparent; }
  .card-q.hobby .choice.selected{ background:#A5E3C5; color:#fff; border-color: transparent; }
  .card-q.fun .choice.selected{ background: var(--sky-300); color:#fff; border-color: transparent; }
  .card-q.mind .choice.selected{ background:#9DD8C4; color:#fff; border-color: transparent; }

  /* ---------- 결과 카드 확장 ---------- */
  .result-card.v2025-3 {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  /* ---------- 추가: 배터리 그래픽 (에너지 테스트용) ---------- */
  .battery {
    display:flex; align-items:center; justify-content:center; flex-direction:column;
    margin:16px 0 12px;
  }
  .battery-pack {
    display:flex; gap:4px; padding:6px;
    border:2px solid var(--mint-500);
    border-radius:10px; background:#fff; position:relative;
    box-shadow:inset 0 0 4px rgba(0,0,0,0.05);
  }
  .battery-pack::after {
    content:''; position:absolute; right:-6px; top:50%;
    transform:translateY(-50%);
    width:4px; height:12px; border-radius:2px; background:var(--mint-500);
  }
  .batt-cell {
    width:28px; height:16px; border-radius:4px; background:#eef3f2;
    overflow:hidden; position:relative;
  }
  .batt-cell .fill {
    position:absolute; top:0; left:0; height:100%;
    background:var(--mint-500);
    transition:width 0.6s ease;
  }
  .batt-cell.blink .fill { animation: blinkFill 1.2s infinite ease-in-out; }
  @keyframes blinkFill { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
  .percent-label {
    font-weight:700; font-size:0.9rem;
    color:var(--mint-700,#3ca774); margin-top:6px;
  }

  /* ---------- 추가: 자립 지수 미터 ---------- */
  .state-meter .meter-dim { opacity:.7; }
}

/* ---------- 스코프 끝 ---------- */


/* ===== PLANT 전용 추가(스코프) — 전역 충돌 방지 ===== */
#plant-app .choices .choice{
  background:#fff;
  border:1px solid #e9e6e2;
  color:#4a3c33;
  border-radius:14px;
  transition:background .2s, border-color .2s, box-shadow .2s, color .2s;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
#plant-app .choices .choice:hover{
  background:#fffdf7; border-color:#e1d8cf;
}
#plant-app .card .choices .choice.selected{
  background:linear-gradient(0deg,#fff9ea,#ffffff);
  border-color:#e6cfa4;
  color:#3a2f28;
  box-shadow:0 6px 16px rgba(0,0,0,.08), inset 0 0 0 999px rgba(255,207,96,.06);
}

/* 마음 리마인드 가독성 */
#plant-app .mind-remind{
  background:#fff;border:1px solid #eadfd7;border-radius:14px;
  padding:10px 12px;line-height:1.6;margin-top:8px
}
#plant-app .remind-list{display:grid;gap:8px;margin-top:6px}
#plant-app .remind-item{display:flex;gap:8px;align-items:flex-start}
#plant-app .remind-bullet{width:8px;height:8px;border-radius:999px;background:#e7dbff;margin-top:7px}
#plant-app .remind-text{font-size:14px;color:#4a3c33}

/* 감정← | →논리 분할 그래프 */
#plant-app .split-meter{margin:12px 0 6px}
#plant-app .split-meter .labels{display:flex;justify-content:space-between;font-size:13px;color:#6b5a50;margin-bottom:6px}
#plant-app .split-meter .bar{position:relative;height:14px;background:#e9eef2;border-radius:999px;overflow:hidden}
#plant-app .split-meter .left,#plant-app .split-meter .right{position:absolute;top:0;height:100%}
#plant-app .split-meter .left{left:0;background:linear-gradient(90deg,#ffd9e1,#fff9ea)}
#plant-app .split-meter .right{right:0;background:linear-gradient(90deg,#e6dcff,#cfe9ff)}
#plant-app .split-meter .center-line{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#d9dfe4;opacity:.9}
#plant-app .split-meter .perc{display:flex;justify-content:space-between;font-size:12px;color:#6b5a50;margin-top:6px}
#plant-app .split-meter .hint{font-size:12px;color:#6b5a50;margin-top:6px}

/* (선택) mind 테마 톤 */
#plant-app .card.mind .choices .choice:nth-child(5n+1){ background:#E8F6F0; }
#plant-app .card.mind .choices .choice:nth-child(5n+2){ background:#D8EFE7; }
#plant-app .card.mind .choices .choice:nth-child(5n+3){ background:#F9F9F7; }
#plant-app .card.mind .choices .choice:nth-child(5n+4){ background:#C5E6D6; }
#plant-app .card.mind .choices .choice:nth-child(5n+5){ background:#E3F2EC; }
/* ===== PLANT 전용(감정vs논리) — 카테고리 색 적용 스코프 ===== */
/* 선택 전: 카테고리 색 / 선택 시: 하이라이트가 덮어씀 */
#plant-app .card.mind .choices .choice:nth-child(5n+1):not(.selected){ background:#E8F6F0 !important; }
#plant-app .card.mind .choices .choice:nth-child(5n+2):not(.selected){ background:#D8EFE7 !important; }
#plant-app .card.mind .choices .choice:nth-child(5n+3):not(.selected){ background:#F9F9F7 !important; }
#plant-app .card.mind .choices .choice:nth-child(5n+4):not(.selected){ background:#C5E6D6 !important; }
#plant-app .card.mind .choices .choice:nth-child(5n+5):not(.selected){ background:#E3F2EC !important; }

/* (참고) 향후 다른 테스트에 재사용할 4카테고리 템플릿 — 지금은 plant만 쓰임 */
#plant-app .card.love  .choices .choice:nth-child(5n+1):not(.selected){ background:#FFF1EA !important; }
#plant-app .card.love  .choices .choice:nth-child(5n+2):not(.selected){ background:#FFE6E1 !important; }
#plant-app .card.love  .choices .choice:nth-child(5n+3):not(.selected){ background:#FFD8C4 !important; }
#plant-app .card.love  .choices .choice:nth-child(5n+4):not(.selected){ background:#FFD1B5 !important; }
#plant-app .card.love  .choices .choice:nth-child(5n+5):not(.selected){ background:#F5E1DC !important; }

#plant-app .card.hobby .choices .choice:nth-child(5n+1):not(.selected){ background:#EAF8F1 !important; }
#plant-app .card.hobby .choices .choice:nth-child(5n+2):not(.selected){ background:#FFFBE6 !important; }
#plant-app .card.hobby .choices .choice:nth-child(5n+3):not(.selected){ background:#C8F1E3 !important; }
#plant-app .card.hobby .choices .choice:nth-child(5n+4):not(.selected){ background:#FFF0B8 !important; }
#plant-app .card.hobby .choices .choice:nth-child(5n+5):not(.selected){ background:#F7FFEC !important; }

#plant-app .card.fun   .choices .choice:nth-child(5n+1):not(.selected){ background:#EDF7FF !important; }
#plant-app .card.fun   .choices .choice:nth-child(5n+2):not(.selected){ background:#CFE9FF !important; }
#plant-app .card.fun   .choices .choice:nth-child(5n+3):not(.selected){ background:#F4EEFF !important; }
#plant-app .card.fun   .choices .choice:nth-child(5n+4):not(.selected){ background:#FFE6A8 !important; }
#plant-app .card.fun   .choices .choice:nth-child(5n+5):not(.selected){ background:#E2F3FF !important; }

/* 선택 시 하이라이트 — 기존 규칙 유지 + 우선순위 강화 */
#plant-app .card .choices .choice.selected{
  background: linear-gradient(0deg,#fff9ea,#ffffff) !important;
  border-color:#e6cfa4 !important;
  color:#3a2f28 !important;
  box-shadow:0 6px 16px rgba(0,0,0,.08), inset 0 0 0 999px rgba(255,207,96,.06);
}

/* 기본 스타일 보정(흰 배경이 테마를 덮지 않도록) */
#plant-app .choices .choice{
  border:1px solid #e9e6e2;
  color:#4a3c33;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
#plant-app .choices .choice:hover{ background:#fffdf7; border-color:#e1d8cf; }
/* style.css 맨 아래 */
@import url('theme.css?v=2025.3');


/* ===== relation 3종 공통 보조 스타일 — 추가형 확장 (v2025.4) ===== */
body.v2025-4 { /* 스코프 토큰 */ }

.result-wrap{
  margin:16px 0 10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fffefb;
  box-shadow:var(--shadow);
}

.result-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background:#fff; border:1px solid var(--line); font-weight:700;
  color:#5e493d; font-size:.9rem;
}

.result-gauge{
  margin-top:10px; height:12px; border-radius:999px; background:#f1e8dd; overflow:hidden; position:relative;
}
.result-gauge .fill{
  position:absolute; top:0; left:0; height:100%; width:0%;
  background: linear-gradient(90deg, #69d27a, #ffd34f 50%, #ff7a7a);
  transition: width .5s ease;
}

.result-quote{
  margin:10px 0 6px; font-style:italic; color:#6a5a4f;
}
.result-desc{ color:var(--text-soft); line-height:1.7; }

.result-pills{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.result-pill{
  padding:6px 10px; border:1px solid var(--line); border-radius:999px;
  background:#faf7f1; font-size:.8rem; color:#6b5b50; white-space:nowrap;
}

.result-actions{ display:flex; gap:8px; margin-top:12px; }
.result-actions .btn{
  border:none; border-radius:999px; padding:8px 14px; cursor:pointer;
  background:#f3e6d9; color:#5e493d; font-weight:600;
}
.result-actions .btn:hover{ filter:brightness(0.98); }

/* 질문 카드 */
.test-card{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:14px;
  box-shadow:var(--shadow); margin:10px 0;
}
.test-q{ font-weight:700; color:#4a3c33; margin-bottom:8px; }
.choices{ display:grid; gap:8px; }
.choice{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background:#fff; border:1px solid #e9e6e2; border-radius:14px; padding:10px 12px;
}
.choice button{
  border:none; border-radius:999px; padding:6px 10px; background:#f6f2eb; color:#5e493d; cursor:pointer;
}
.choice button:active{ transform:translateY(1px); }
.choice small{ color:#8a7a6a; }

.progress-row{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; color:#8a7a6a; }
.progressbar{ height:8px; border-radius:999px; background:#efe9e1; overflow:hidden;}
.progressbar > div{ height:100%; width:0%; background:#cfdce8; transition: width .3s ease; }

/* 반응형 */
@media (min-width: 960px){
  .test-layout{ max-width: 900px; margin: 0 auto; }
}
/* ===== relation-tests compat v2025.5 — 기존 단일 컬럼 UI로 정렬 ===== */
.test-page .top-main-btn { top: 12px; left: 12px; }

.test-page main.test-layout{
  max-width: 720px;        /* 기존 테스트 폭과 유사 */
  margin: 0 auto;
  padding: 84px 16px 72px;
}

.test-page .hero-wrap .logo img { width: 40px; height: 40px; }
.test-page .hero-wrap .subtitle { color: #8a7a6a; }

.test-page .test-card{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 8px 0 0;
}

.test-page .progress-row{ gap: 10px; margin-bottom: 8px; }
.test-page .progress-row > span{ color:#8a7a6a; font-size: .95rem; }
.test-page .progressbar{ height: 6px; background:#efeae3; border-radius: 999px; overflow: hidden; }
.test-page .progressbar > div{ background:#cfe7db; } /* 민트계열 */

.test-page .test-q{
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 800;
  margin: 14px 2px 12px;
  color:#5e493d;
  letter-spacing:-0.01em;
}

.test-page .choices{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-page .choice{
  padding: 0;
  background: transparent;
  border: 0;
}

.test-page .choice button{
  width: 100%;
  display: block;
  text-align: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d8e8de;
  background: #eaf7f0;          /* 기존 파스텔 민트 */
  color: #3b5847;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.test-page .choice button:active { transform: translateY(1px); }
.test-page .choice small{ display: none; } /* 점수 숫자 숨김 — 기존 규칙 유지 */

/* 결과 카드도 기존 톤으로 */
.test-page .result-wrap{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.test-page .result-badge{
  background:#fff; border:1px solid var(--line); color:#5e493d;
}
.test-page .result-gauge{ height: 10px; background:#f4ede5; }
.test-page .result-gauge .fill{
  background: linear-gradient(90deg,#69d27a,#ffd34f 50%,#ff7a7a);
}
.test-page .result-pill{
  background:#faf7f1; border-color:#e8ddd1; color:#6b5b50;
}

/* 큰 화면에서도 단일 컬럼 유지 */
@media (min-width:1024px){
  .test-page main.test-layout{ max-width: 760px; }
}


/* =======================================================
 * ☁️ 진행 구름 트랙 (공통 사용 가능)
 * - stepLabel 아래, 진행 바와 별도로 구름 이동
 * ======================================================= */

.meta {
  position: relative;
}

/* 구름 트랙 전체 */
.cloud-track {
  position: relative;
  margin-top: 8px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* 바위/바닥 라인 */
.cloud-rock {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e4ded8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* 구름 아이콘 */
.cloud-icon {
  position: absolute;
  bottom: 10px;
  left: 35%; /* 기본 위치 - 35% 지점 */
  transform: translateX(-50%);
  font-size: 1.3rem;
  transition: left 0.35s ease-out, transform 0.35s ease-out;
}

/* 살짝 떠 있는 느낌 */
.cloud-icon::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  filter: blur(2px);
}

/* 결과에서 ☀️일 때 살짝 더 위로 */
.cloud-icon.is-sun {
  transform: translateX(-50%) translateY(-3px);
}
