/* ─────────────────────────────────────────────────────────────
 * 같이가개 — 나노바나나 & 스마트 화이트 라이트 시스템 (Google Design Aesthetic)
 *  · 메인 액센트: 나노 바나나 옐로우 (#FFE135, #F5C400, #FFF9D2)
 *  · 배경 및 크롬: 순백(#FFFFFF) & 소프트 클라우드(#F7F7F9)
 *  · 둥근 모서리 (18px ~ 24px) & 소프트 플로팅 섀도우
 *  · 가독성 높은 다크 텍스트 (#19191D) & 비브런트 배지
 * ───────────────────────────────────────────────────────────── */
:root {
  --banana: #FFE135;
  --banana-deep: #F5C400;
  --banana-soft: #FFF9D2;
  --banana-glow: rgba(255, 225, 53, 0.4);
  --banana-text: #7A5C00;

  --ink: #19191D;
  --ink-press: #08080A;
  --canvas: #FFFFFF;
  --cloud: #F8F8FA;
  --cloud-deep: #ECECED;
  --charcoal: #2D2D32;
  --mute: #6C6C75;
  --stone: #9B9BA3;
  --hairline: #E2E2E6;
  --hairline-soft: #EEEEF2;

  /* 의미색 — 판정과 가격 신호 */
  --ok: #007D48;      --ok-bg: #EEF6F1;
  --cond: #8A5A00;    --cond-bg: #F8F3EA;
  --no: #D30005;      --no-bg: #FBEFEF;

  --r-pill: 999px;
  --r-chip: 24px;
  --r-card: 20px;
  --radius: 20px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-banana: 0 8px 24px rgba(255, 225, 53, 0.35);

  --topbar-h: 68px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --page-x: 40px;

  /* 구 팔레트 별칭(JS 인라인 스타일 호환) */
  --blue: var(--ink);
  --blue-dark: var(--ink-press);
  --blue-pale: var(--hairline-soft);
  --blue-bg: var(--cloud);
  --violet: var(--ink);
  --warn: var(--cond);
  --ink-sub: var(--mute);
  --line: var(--hairline-soft);
  --shadow: var(--shadow-sm);

  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  color: var(--ink); background: var(--canvas); overflow: hidden; font-size: 16px; line-height: 1.5;
  word-break: keep-all; overflow-wrap: break-word;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--banana-deep); outline-offset: 2px; }

/* 대문자 라벨 배지 */
.eyebrow, .section-eyebrow, .panel-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--banana-text);
  background: var(--banana-soft); padding: 4px 12px; border-radius: var(--r-pill);
}
.eyebrow.on-dark { color: #19191D; background: var(--banana); font-weight: 800; }
.eyebrow b { font-weight: 800; color: inherit; }

/* ═══ 상단바 ═══ */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--page-x); background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.brand { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 0; }
.brand-mark { display: inline-flex; color: #19191D; }
.brand-mark .mark { width: 32px; height: 32px; display: block; fill: var(--banana); }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-text b { font-size: 22px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); }
.brand-text small { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; color: var(--banana-text); margin-top: 3px; }

.nav { display: flex; gap: 12px; align-items: center; height: 100%; }
.nav-btn {
  position: relative; border: none; background: transparent; cursor: pointer; white-space: nowrap;
  height: 40px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--mute);
  border-radius: var(--r-pill); transition: all .2s var(--ease);
}
.nav-btn:hover { color: var(--ink); background: var(--banana-soft); }
.nav-btn.active { color: var(--ink); background: var(--banana); font-weight: 700; box-shadow: var(--shadow-sm); }

/* ═══ 아이콘 / 마스코트 ═══ */
.ic { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -3px; }
.ic-wrap { display: inline-flex; align-items: center; }
.pet-logo { object-fit: contain; vertical-align: -4px; flex: 0 0 auto; }
.pet-logo.xs { width: 17px; height: 17px; }
.pet-logo.sm { width: 20px; height: 20px; }
.pet-logo.md { width: 34px; height: 34px; }
.pet-logo.lg { width: 34px; height: 34px; }
.ai-chip {
  background: var(--banana); color: var(--ink); font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill);
}

/* ═══ 버튼 ═══ */
.btn {
  border: none; cursor: pointer; border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
  height: 48px; padding: 0 28px; background: var(--banana); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { background: var(--banana-deep); box-shadow: var(--shadow-banana); }
.btn:active { transform: scale(.96); opacity: .9; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--banana); color: var(--ink); }
.btn-primary:hover { background: var(--banana-deep); }
.btn-ghost { background: var(--cloud); color: var(--ink); border: 1px solid var(--hairline-soft); }
.btn-ghost:hover { background: var(--cloud-deep); }
.btn-on-image { background: var(--banana); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-banana); }
.btn-on-image:hover { background: var(--banana-deep); }
.btn-block { width: 100%; height: 48px; font-size: 16px; margin-top: 16px; }

/* 데모 모드 반품 토스트 */
.demo-banner {
  position: fixed; top: auto; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 880; width: max-content; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; padding: 12px 24px; font-size: 13.5px;
  border-radius: var(--r-pill); display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
}
.demo-banner b { font-weight: 700; }
.demo-banner .ic { width: 15px; height: 15px; }

/* ═══ 페이지 ═══ */
.page { position: fixed; inset: var(--topbar-h) 0 0 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#pageMap { overflow: hidden; }
.hidden { display: none !important; }

/* ═══ 홈 — 나노바나나 히어로 ═══ */
.hero {
  position: relative; min-height: 430px; display: flex; align-items: center; overflow: hidden;
  background: #FFFDF0; border-bottom: 1px solid var(--hairline-soft);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; opacity: 0.88;
}
/* 나노 바나나 에어리얼 수퍼 그래디언트 - 밝은 야외 스크림 */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 249, 210, 0.82) 48%, rgba(255, 225, 53, 0.35) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 48px var(--page-x); }
.hero-title {
  font-size: clamp(38px, 5.2vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em;
  color: var(--ink); margin-top: 14px;
}
.hero-lead { color: #3A3A42; font-size: 17.5px; font-weight: 500; margin-top: 14px; max-width: 520px; line-height: 1.5; }

/* AI 검색 바 */
.ai-bar {
  display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--banana); border-radius: var(--r-pill); padding: 8px 8px 8px 24px;
  max-width: 720px; width: 100%; margin: 28px auto 0; box-shadow: var(--shadow-banana);
  transition: all .2s var(--ease);
}
.ai-bar:focus-within { box-shadow: 0 0 0 4px var(--banana-glow), var(--shadow-lg); }
.ai-bar-icon { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ai-bar-icon .pet-logo { width: 24px; height: 24px; }
.ai-bar input {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 17px; height: 54px;
  background: transparent; color: var(--ink); font-weight: 500;
}
.ai-bar input::placeholder { color: var(--stone); }
.ai-bar-btn {
  border: none; cursor: pointer; background: var(--banana); color: var(--ink); height: 54px; padding: 0 36px;
  border-radius: var(--r-pill); font-size: 16px; font-weight: 800; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: transform .12s var(--ease), background .2s var(--ease);
}
.ai-bar-btn:hover { background: var(--banana-deep); }
.ai-bar-btn:active { transform: scale(.96); }
.ai-bar-btn:disabled { opacity: .5; cursor: default; }
.ai-bar-sm { margin: 0; border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.ai-bar-sm input, .ai-bar-sm .ai-bar-btn { height: 44px; }
.ai-bar-sm .ai-bar-btn { padding: 0 22px; }

/* 예시 칩 */
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.ex-chip {
  border: 1px solid rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.88); color: var(--ink); cursor: pointer;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all .2s var(--ease);
}
.ex-chip:hover { background: var(--banana); border-color: var(--banana); color: var(--ink); transform: translateY(-1px); }
.ex-chip:active { transform: scale(.96); }
.ex-chip.chip-reset { border-style: dashed; background: var(--cloud); }

/* 가이드 스트립 */
.guide-strip {
  position: relative; z-index: 3; max-width: 1440px; margin: -28px auto 0;
  display: flex; align-items: center; gap: 18px;
  background: var(--canvas); border: 1px solid rgba(255, 225, 53, 0.5);
  border-radius: var(--r-card); box-shadow: var(--shadow-md);
  padding: 18px 28px; margin-left: var(--page-x); margin-right: var(--page-x);
}
.guide-mascot { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.guide-say { font-size: 16.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.guide-say b { font-weight: 800; color: var(--ink); background: var(--banana-soft); padding: 2px 6px; border-radius: 6px; }

/* ═══ 섹션 ═══ */
.section { max-width: 1440px; margin: 0 auto; padding: 48px var(--page-x) 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 2.8vw, 36px); }
.section.duo { padding-top: 40px; }
.section-eyebrow { flex-basis: 100%; margin-bottom: 6px; }
.section-sub { margin-left: auto; font-size: 15px; color: var(--mute); }
.section-sub b { color: var(--ink); font-weight: 700; }
.section:last-child { padding-bottom: 80px; }
.foot-note { margin-top: 36px; font-size: 12.5px; letter-spacing: .04em; color: var(--stone); }

/* 2단 패널 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  position: relative; background: var(--canvas); border: 1px solid var(--hairline-soft);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  padding: 20px; display: flex; flex-direction: column; transition: box-shadow .2s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-md); }
.panel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel-head b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; flex-basis: 100%; margin-top: 4px; }
.panel-mascot { position: absolute; top: 16px; right: 20px; width: 36px; height: 36px; object-fit: contain; }
.panel-body { padding-top: 12px; flex: 1; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-btns { display: flex; gap: 8px; margin-top: 14px; }
.panel-btns .btn { flex: 1; }

/* 상식 카드 본문 */
.tip-label {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-pill); background: var(--banana-soft); color: var(--banana-text);
}
.tone-blue, .tone-violet { background: var(--banana-soft); color: var(--banana-text); }
.tone-green  { background: var(--ok-bg); color: var(--ok); }
.tone-red    { background: var(--no-bg); color: var(--no); }
.tone-amber  { background: var(--cond-bg); color: var(--cond); }
.tip-title { font-size: 17px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; line-height: 1.35; }
.tip-text { font-size: 14px; color: var(--mute); line-height: 1.6; margin-top: 6px; }

/* 내 정보 요약 */
.info-row { display: flex; gap: 12px; font-size: 15px; padding: 6px 0; }
.info-row .ir-k { flex: 0 0 72px; color: var(--stone); font-size: 13px; padding-top: 2px; }
.info-row .ir-v { flex: 1; min-width: 0; line-height: 1.5; }
.info-row .ir-v b { font-weight: 700; }
.info-sep { height: 1px; background: var(--hairline-soft); margin: 14px 0; }
.info-empty { font-size: 15px; line-height: 1.6; }
.info-empty span { color: var(--stone); font-size: 13.5px; }
.info-hint { font-size: 13.5px; color: var(--stone); line-height: 1.6; margin-top: 6px; }
.info-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.info-stat .is-n { font-size: 36px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.info-stat .is-t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.info-stat .is-t small { display: block; font-weight: 400; color: var(--mute); font-size: 12.5px; }

/* ═══ 카테고리 타일 ═══ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; background: transparent; }
.cat-btn {
  background: var(--canvas); border: 1.5px solid var(--hairline); border-radius: var(--r-card);
  cursor: pointer; text-align: left; padding: 32px 24px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease);
}
.cat-btn:hover {
  background: #FFFDF0; border-color: var(--banana);
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(255, 225, 53, 0.4);
}
.cat-btn:hover .cat-total { color: var(--ink); }
.cat-btn:hover .cat-real { background: var(--banana); color: var(--ink); }
.cat-btn:hover .cat-real img { filter: none; }
.cat-btn:active { transform: scale(.98); }
.cat-ic { display: inline-flex; color: var(--ink); margin-bottom: 16px; }
.cat-ic .ic { width: 44px; height: 44px; }
.cat-name { font-size: 18px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.cat-total { font-size: 14px; color: var(--mute); transition: color .2s var(--ease); }
.cat-real {
  margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--banana-soft);
  border-radius: var(--r-pill); padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px;
}
.cat-real img { width: 13px; height: 13px; object-fit: contain; }

/* ═══ 깔끔한 흰색 라이트 퀴즈 밴드 ═══ */
.band {
  position: relative; margin-top: 64px; min-height: 230px; display: flex; align-items: center;
  overflow: hidden; background: #FFFFFF; border-radius: var(--r-card);
  border: 1px solid var(--hairline-soft); box-shadow: var(--shadow-md);
}
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.45) 100%);
}
.band-copy { position: relative; z-index: 2; max-width: 1440px; width: 100%; margin: 0 auto; padding: 32px var(--page-x); color: var(--ink); }

/* 밴드 머리: QUIZ 뱃지 + 마스코트 + "오늘의 반려동물 상식" */
.band-top { display: flex; align-items: center; gap: 10px; }
.band-top .eyebrow { flex-basis: auto; margin: 0; }
.band-mascot { width: 26px; height: 26px; object-fit: contain; margin-left: 4px; }
.band-cap { font-size: 13px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* 상식 한 줄 — [라벨] 제목 — 본문. 글자는 작게, 폭이 모자라면 자연스럽게 접힌다
   (잘라내지 않는다: 상식은 끝까지 읽혀야 의미가 있다) */
.band-tip {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 12px; animation: fade .35s var(--ease);
}
.band-tip .tip-label { flex: none; }
.band-tip .bt-title {
  font-size: 16px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.4;
}
.band-tip .bt-text { font-size: 14px; color: #4A4A52; line-height: 1.5; font-weight: 500; }

.band-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.band-actions .btn { margin-top: 0; }

@media (max-width: 720px) {
  .band-copy { padding: 24px var(--page-x); }
  .band-tip .bt-title { font-size: 15px; }
  .band-tip .bt-text { font-size: 13.5px; }
}

/* ═══ 출처 ═══ */
.src-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: transparent; }
.src-item {
  background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--r-card);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm);
}
.src-item i { font-style: normal; font-size: 32px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.src-item b { font-size: 15px; font-weight: 700; margin-top: 10px; }
.src-item span { font-size: 13.5px; color: var(--mute); line-height: 1.5; }

/* ═══ 내 반려동물 정보 ═══ */
.pet-form-card {
  background: var(--cloud); border: 1px solid var(--hairline-soft); border-radius: var(--r-card);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.pet-form-card.flash { animation: cardFlash 1.2s var(--ease); }
@keyframes cardFlash { 0%,100% { box-shadow: none; } 35% { box-shadow: 0 0 0 3px var(--banana-deep); } }
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--banana);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.pf-head-txt { flex: 1; min-width: 0; }
.pf-head-txt h2 { font-size: clamp(18px, 2vw, 22px); }
.pf-head-txt p { font-size: 14px; color: var(--mute); margin-top: 2px; }
.pf-state {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; border-radius: var(--r-pill);
  padding: 8px 16px; background: var(--canvas); color: var(--mute); border: 1px solid var(--hairline);
}
.pf-state.on { background: var(--banana); color: var(--ink); border-color: var(--banana); }

.breed-ai { background: var(--canvas); border-radius: 16px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--hairline-soft); }
.breed-ai > label { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.breed-row { display: flex; gap: 8px; margin-top: 10px; }
.breed-row input {
  flex: 1; min-width: 0; height: 44px; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 0 20px; font-size: 15px; background: var(--canvas); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.breed-row input:focus { border-color: var(--banana-deep); box-shadow: 0 0 0 4px var(--banana-glow); }
.breed-row .btn { height: 48px; }
.breed-result { margin-top: 16px; font-size: 15px; line-height: 1.6; background: var(--cloud); border-radius: 12px; padding: 16px; }
.breed-result b { font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-grid label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-grid input, .form-grid select {
  width: 100%; min-width: 0; max-width: 100%; height: 44px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 0 18px;
  font-size: 15px; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--ink);
  background: var(--canvas); outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--banana-deep); box-shadow: 0 0 0 4px var(--banana-glow); }
.gear-set {
  margin-top: 14px; background: var(--canvas); border-radius: 16px; border: 1px solid var(--hairline-soft); padding: 14px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
.gear-legend { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-right: auto; display: inline-flex; align-items: center; gap: 8px; }
.gear-legend .ic { width: 16px; height: 16px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; white-space: nowrap; font-weight: 500; }
.chk input { accent-color: var(--ink); width: 17px; height: 17px; }

/* ═══ 목록 ═══ */
.result-head {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft); padding: 20px var(--page-x);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.result-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.result-title h2 { font-size: 28px; }
.result-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-tools select, .result-tools input[type="search"] {
  height: 40px; border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 0 16px;
  font-size: 14px; background: var(--canvas); color: var(--ink); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.result-tools select:focus, .result-tools input[type="search"]:focus { border-color: var(--banana-deep); box-shadow: 0 0 0 3px var(--banana-glow); }
.result-tools input[type="search"] { width: 190px; }
.count-info { font-size: 14px; color: var(--mute); }
.count-info b { color: var(--ink); font-weight: 700; }
.count-info .cnt-ok { color: var(--ok); font-weight: 700; margin-left: 6px; }
.count-info .cnt-no { color: var(--no); font-weight: 700; }

.place-list {
  padding: 32px var(--page-x) 80px; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-content: start;
}
.place-card {
  border: 1px solid var(--hairline-soft); border-radius: var(--r-card); padding: 16px; cursor: pointer;
  background: var(--canvas); text-align: left; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--hairline); }
.pc-row { display: flex; flex-direction: column; gap: 0; }
.pc-thumb {
  width: 100%; height: 180px; object-fit: cover; background: var(--cloud); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 44px; color: var(--stone);
  transition: opacity .2s var(--ease);
}
.place-card:hover .pc-thumb { opacity: .92; }
.pc-main { padding-top: 14px; min-width: 0; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pc-title { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.pc-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pc-rate:empty { display: none; }
.pc-addr { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.pc-addr .ic { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.pc-rules { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-why { margin-top: 12px; font-size: 13.5px; color: var(--charcoal); background: var(--cloud); border-radius: 10px; padding: 12px 14px; line-height: 1.55; }
.place-card.selected .pc-thumb { outline: 3px solid var(--banana-deep); outline-offset: -3px; }
.place-card.ai-pick .pc-thumb { outline: 3px solid var(--banana-deep); outline-offset: -3px; }
#loadMoreBtn { grid-column: 1 / -1; justify-self: center; }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--mute); font-size: 15px; padding: 80px 16px; line-height: 1.7; }

/* ═══ 배지 ═══ */
.badge svg.ic { width: 13px; height: 13px; margin-right: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap;
  background: var(--canvas); border: 1px solid var(--hairline); color: var(--ink);
}
.badge-ok   { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.badge-cond { color: var(--cond); border-color: var(--cond); background: var(--cond-bg); }
.badge-no   { color: var(--no); border-color: var(--no); background: var(--no-bg); }
.badge-unknown { color: var(--mute); border-color: var(--hairline); }
.badge-rule { background: var(--cloud); border-color: transparent; color: var(--charcoal); font-weight: 500; }
.badge-verify { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 800; }

/* ═══ 지도 ═══ */
.map-shell { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; }
.map-source-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 500;
  background: var(--canvas); border-radius: var(--r-pill); padding: 7px 16px; font-size: 12px; color: var(--mute);
  box-shadow: var(--shadow-sm); border: 1px solid var(--hairline-soft);
}
.map-legend {
  position: absolute; left: 20px; top: 84px; z-index: 500;
  display: flex; gap: 16px; background: var(--canvas); border-radius: var(--r-pill); padding: 10px 20px; font-size: 13px; flex-wrap: wrap;
  box-shadow: var(--shadow-md); border: 1px solid var(--hairline-soft);
}
.map-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.map-bar {
  position: absolute; left: 20px; right: 20px; top: 20px; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--canvas); border-radius: var(--r-card); padding: 14px 20px; font-size: 19px; font-weight: 800; letter-spacing: -.03em;
  box-shadow: var(--shadow-md); border: 1px solid var(--hairline-soft);
}

/* ═══ 상세 패널 ═══ */
.detail-panel {
  position: fixed; top: var(--topbar-h); right: 0; bottom: 0; width: 480px; max-width: 94vw;
  background: var(--canvas); border-left: 1px solid var(--hairline-soft); box-shadow: var(--shadow-lg);
  overflow-y: auto; z-index: 890; padding: 0 0 40px;
}
.detail-close {
  position: absolute; top: 16px; right: 16px; border: none; background: var(--canvas);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; z-index: 3; box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease);
}
.detail-close:hover { background: var(--cloud); }
.dt-img { width: 100%; height: 260px; object-fit: cover; background: var(--cloud); display: block; }
.dt-title { font-size: 28px; font-weight: 800; letter-spacing: -.04em; margin: 24px 28px 0; line-height: 1.2; }
.dt-addr { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; color: var(--mute); margin: 12px 28px 0; line-height: 1.55; }
.dt-addr .ic { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; }
.dt-tel { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 700; text-decoration: underline; }
.dt-src { font-size: 12px; color: var(--stone); margin: 12px 28px 0; }
.dt-route-top { margin: 22px 28px 0; }
.dt-naver { margin: 22px 28px 0; border-top: 1px solid var(--hairline-soft); padding-top: 20px; }
.dtn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dtn-revs { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.dtn-rev { display: flex; gap: 8px; align-items: flex-start; background: var(--cloud); border-radius: 12px; padding: 13px 15px; font-size: 13.5px; line-height: 1.6; color: var(--charcoal); }
.dtn-rev .ic-quote { flex: 0 0 13px; width: 13px; height: 13px; opacity: .3; margin-top: 4px; }
.dtn-r { display: inline-block; margin-left: 6px; font-weight: 800; white-space: nowrap; }
.dt-verdict { margin: 22px 28px 0; padding: 20px; font-size: 15px; background: var(--cloud); border-radius: 16px; }
.dt-verdict.v-ok   { background: var(--ok-bg); }
.dt-verdict.v-cond { background: var(--cond-bg); }
.dt-verdict.v-no   { background: var(--no-bg); }
.dt-verdict b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.dt-verdict ul { margin: 10px 0 0 18px; font-size: 14px; line-height: 1.7; }
.dt-sec { margin: 34px 28px 0; }
.dt-sec h3 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dt-sec h3 .ic { width: 15px; height: 15px; }
.rule-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--hairline-soft); border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline-soft); }
.rule-item { display: flex; gap: 12px; background: var(--canvas); padding: 13px 15px; font-size: 14px; line-height: 1.5; }
.rule-item .ri-k { font-weight: 700; white-space: nowrap; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline-soft); border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline-soft); }
.info-item { background: var(--canvas); padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; }
.info-item .ii-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.info-item .ii-v { font-size: 14.5px; font-weight: 600; }
.checklist { display: flex; flex-direction: column; gap: 9px; }
.checklist label { font-size: 15px; display: flex; gap: 9px; align-items: center; }
.nearby-list { display: flex; flex-direction: column; gap: 8px; }
.nearby-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: 12px; padding: 14px 15px; font-size: 14.5px; transition: background .2s var(--ease); }
.nearby-card:hover { background: var(--cloud); }
.nearby-card .nb-name { font-weight: 700; display: flex; align-items: center; gap: 7px; }
.nearby-card .nb-name .ic { width: 15px; height: 15px; }
.nearby-card .nb-dist { color: var(--mute); font-size: 12.5px; margin-top: 3px; font-weight: 400; }
.route-btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.route-btn .ic { width: 16px; height: 16px; }
.route-btn {
  flex: 1; min-width: 130px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; font-size: 14px; font-weight: 600; border-radius: var(--r-pill);
  padding: 14px 12px; border: 1px solid var(--hairline); color: var(--ink); background: var(--canvas);
  transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
/* 국내에서 실제로 경로가 나오는 카카오맵이 기본 버튼 (구글은 한국 내 경로검색 미지원) */
.route-btn.kakao { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 700; }
.route-btn.google { background: var(--cloud); border-color: transparent; color: var(--ink); }
.route-btn:hover { background: var(--cloud-deep); }
.route-btn.kakao:hover { background: var(--banana-deep); }
.route-btn:active { transform: scale(.97); }

/* 좌표 검수에서 걸린 곳 — 왜 이름·주소 검색으로 안내되는지 알려 준다 */
.geo-warn {
  display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0;
  padding: 10px 12px; border-radius: 14px; background: var(--cloud);
  color: var(--ink-sub); font-size: 12.5px; line-height: 1.5;
}
.geo-warn .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ═══ AI 대화 모달 ═══ */
.ai-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ai-card {
  position: relative; background: var(--canvas); border-radius: 28px; width: 640px; max-width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 40px 32px 28px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline-soft); animation: fade .3s var(--ease);
}
.ai-close {
  position: absolute; top: 18px; right: 18px; border: none; background: var(--cloud);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s var(--ease);
}
.ai-close:hover { background: var(--cloud-deep); }
.ai-stage { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
.ai-mascot { width: 76px; height: 76px; object-fit: contain; flex: 0 0 auto; animation: bob 4s ease-in-out infinite; }
.ai-mascot.thinking { animation: bob 1.1s ease-in-out infinite; }
.ai-bubble { flex: 1; min-width: 0; background: var(--banana-soft); border-radius: 18px; padding: 18px 20px; font-size: 16px; line-height: 1.6; animation: fade .25s var(--ease); }
.ai-bubble b { font-weight: 800; }
.ai-result { margin: 28px 0 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-result:empty { display: none; }
.ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); margin-top: 20px; flex-wrap: wrap; }
.ai-reset { border: 1px solid var(--hairline); background: var(--canvas); cursor: pointer; color: var(--ink); border-radius: var(--r-pill); padding: 9px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ai-reset:hover { background: var(--cloud); }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; background: var(--banana-soft); color: var(--banana-text); border-radius: var(--r-pill); padding: 6px 14px; }
.ai-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

/* 추천 카드 */
.ai-pick-card { border: 1px solid var(--hairline-soft); border-radius: 16px; background: var(--canvas); padding: 20px; cursor: pointer; text-align: left; transition: background .2s var(--ease); }
.ai-pick-card:hover { background: var(--cloud); }
.pk-head { display: flex; align-items: center; gap: 12px; }
.pk-n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--banana); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; }
.pk-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-why { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--charcoal); border-left: 3px solid var(--banana-deep); padding-left: 14px; }
.pk-why .ic-quote { flex: 0 0 13px; width: 13px; height: 13px; opacity: .3; margin-top: 4px; }
.pk-addr { display: flex; gap: 6px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.pk-addr .ic { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; }
.pk-live { margin-top: 14px; }
.pk-live-load, .pk-live-none { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.pk-live-none .ic { width: 15px; height: 15px; flex: 0 0 15px; }
.pk-live-row { display: flex; gap: 16px; align-items: flex-start; }
.pk-live-main { flex: 1; min-width: 0; }
.pk-thumb { flex: 0 0 92px; width: 92px; height: 92px; object-fit: cover; background: var(--cloud); border-radius: 12px; }
.pk-rate { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rt { display: inline-flex; align-items: baseline; gap: 5px; font-size: 26px; font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.rt .ic-star { width: 16px; height: 16px; align-self: center; }
.rc { font-size: 13px; color: var(--mute); }
.rcat { font-size: 12px; color: var(--mute); }
.rtel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); text-decoration: underline; font-weight: 600; }
.rtel .ic { width: 13px; height: 13px; }
.pk-review { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--charcoal); background: var(--cloud); border-radius: 10px; padding: 13px 15px; }
.pk-review .ic-quote { flex: 0 0 13px; width: 13px; height: 13px; opacity: .3; margin-top: 4px; }
.pk-naver { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; }
.pk-btns, .pc-btns { display: flex; gap: 8px; margin-top: 18px; }
.pk-btn, .pc-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--canvas);
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), transform .12s var(--ease);
}
.pk-btn:hover, .pc-btn:hover { background: var(--cloud); }
.pk-btn:active, .pc-btn:active { transform: scale(.96); }
.pk-btn.primary, .pc-btn.primary { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 700; }
.pk-btn.primary:hover, .pc-btn.primary:hover { background: var(--banana-deep); color: var(--ink); }
.pk-btn .ic, .pc-btn .ic { width: 16px; height: 16px; }
.ai-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ai-actions .btn { flex: 1; }
.ai-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--hairline-soft); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ 반려동물 팁 ═══ */
.tips-hero { position: relative; min-height: 260px; display: flex; align-items: flex-end; overflow: hidden; background: #FFFDF0; border-bottom: 1px solid var(--hairline-soft); }
.tips-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.tips-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,249,210,0.85) 55%, rgba(255,225,53,0.3) 100%); }
.tips-hero-copy { position: relative; z-index: 2; max-width: 1000px; width: 100%; margin: 0 auto; padding: 48px var(--page-x); color: var(--ink); }
.tips-hero-copy h2 { font-size: clamp(28px, 3.8vw, 46px); margin-top: 10px; color: var(--ink); }
.tips-hero-copy p { font-size: 16px; color: #4A4A52; margin-top: 10px; max-width: 520px; line-height: 1.6; }
.tips-hero-copy p b { color: var(--ink); font-weight: 700; }
.tips-mascot { position: absolute; z-index: 2; right: 6%; bottom: 0; width: 140px; height: 140px; object-fit: contain; }

.tips-wrap { max-width: 1000px; margin: 0 auto; padding: 36px var(--page-x) 96px; }
.quiz-score { background: var(--cloud); border-radius: var(--r-card); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border: 1px solid var(--hairline-soft); }
.quiz-score .qs-main { display: flex; align-items: baseline; }
.quiz-score .qs-n { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.quiz-score .qs-d { font-size: 17px; font-weight: 700; color: var(--mute); margin-left: 4px; }
.quiz-score small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.qs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--hairline);
  background: var(--canvas); color: var(--ink); font-size: 13.5px; font-weight: 600;
  transition: background .2s var(--ease), transform .12s var(--ease);
}
.qs-btn:hover { background: var(--cloud-deep); }
.qs-btn:active { transform: scale(.96); }
.qs-btn .ic { width: 14px; height: 14px; }
.qs-btns { display: flex; gap: 8px; margin-left: auto; }
.qs-btn.primary { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 700; }
.qs-btn.primary:hover { background: var(--banana-deep); }
.qs-btn.danger { background: var(--canvas); border-color: var(--no); color: var(--no); }
.qs-btn.danger:hover { background: var(--no-bg); }
.qs-confirm { font-size: 14px; line-height: 1.5; }
.qs-confirm b { font-weight: 800; }
.qs-cbtns { display: flex; gap: 8px; margin-left: auto; }

.quiz-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; }
.quiz-cat {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--canvas); border-radius: var(--r-pill);
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: all .2s var(--ease);
}
.quiz-cat:hover { background: var(--banana-soft); border-color: var(--banana); }
.quiz-cat:active { transform: scale(.96); }
.quiz-cat.on { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); }
.quiz-cat > span:first-child { display: none; }
.quiz-cat em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); margin-left: 3px; }
.quiz-cat.on em { color: #554000; }

.quiz-card { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--r-card); padding: 36px; box-shadow: var(--shadow-sm); animation: fade .25s var(--ease); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-badge { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--banana-text); background: var(--banana-soft); padding: 4px 12px; border-radius: var(--r-pill); }
.quiz-prog { font-size: 13px; font-weight: 700; color: var(--ink); }
.quiz-q { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.35; margin-top: 20px; letter-spacing: -.035em; color: var(--ink); }
.quiz-ox { display: flex; gap: 12px; margin-top: 28px; }
.ox-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 68px; border-radius: var(--r-pill); border: 2px solid var(--hairline); background: var(--canvas);
  font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: all .2s var(--ease);
}
.ox-btn span { font-size: 22px; font-weight: 800; }
.ox-btn:hover:not(:disabled) { background: var(--banana); border-color: var(--banana); color: var(--ink); }
.ox-btn:hover:not(:disabled) span { color: var(--ink); }
.ox-btn:active:not(:disabled) { transform: scale(.98); }
.ox-btn:disabled { cursor: default; opacity: .4; }
.ox-btn.correct { opacity: 1; border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.ox-btn.correct span { color: var(--ok); }
.ox-btn.wrong { opacity: 1; border-color: var(--no); color: var(--no); background: var(--no-bg); }
.ox-btn.wrong span { color: var(--no); }

.quiz-why { margin-top: 24px; background: var(--cloud); border-radius: 16px; padding: 22px; animation: fade .25s var(--ease); }
.qw-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qw-head.ok { color: var(--ok); }
.qw-head.no { color: var(--no); }
.qw-head .ic { width: 16px; height: 16px; }
.qw-head .qw-ans { margin-left: auto; color: var(--mute); }
.quiz-why p { font-size: 15.5px; line-height: 1.65; color: var(--ink); margin-top: 12px; }
.quiz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  margin-top: 20px; height: 48px; padding: 0 28px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--canvas); font-size: 15px; font-weight: 700; color: var(--ink);
  transition: background .2s var(--ease), transform .12s var(--ease);
}
.quiz-btn:active { transform: scale(.96); }
.quiz-btn.primary { background: var(--banana); border-color: var(--banana); color: var(--ink); }
.quiz-btn.primary:hover { background: var(--banana-deep); }
.quiz-btn .ic { width: 16px; height: 16px; }

.quiz-done { text-align: center; }
.quiz-done-mascot { width: 96px; height: 96px; object-fit: contain; animation: bob 4s ease-in-out infinite; }
.quiz-done-t { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 14px; }
.quiz-done-s { font-size: clamp(52px, 8vw, 96px); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-top: 10px; color: var(--ink); }
.quiz-done-w { font-size: 16px; color: var(--mute); margin-top: 16px; line-height: 1.6; }
.quiz-done-n { font-size: 13px; color: var(--stone); margin-top: 10px; }

.tips-list-head { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 20px; }
.tips-list-head h3 { font-size: 26px; }
.tips-list-head span { font-size: 14px; color: var(--mute); }
.tips-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; background: transparent; }
.tip-item { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tip-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tips-note { font-size: 13px; color: var(--stone); margin-top: 36px; line-height: 1.7; }

/* SNS 공유 */
.share-box { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--hairline-soft); }
.share-panel { position: relative; margin-top: 24px; padding: 12px 28px 28px; background: var(--canvas); border-radius: var(--r-card); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow-md); animation: fade .25s var(--ease); }
.share-panel .share-box { margin-top: 0; padding-top: 24px; border-top: 0; }
.share-panel-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer;
}
.share-panel-close:hover { background: var(--cloud); color: var(--ink); }
.share-panel-close .ic { width: 17px; height: 17px; }
.share-t { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.share-t .ic { width: 16px; height: 16px; }
.share-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.sh-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 92px; height: 84px; border-radius: var(--r-chip); cursor: pointer;
  border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink);
  font-size: 12px; font-weight: 600;
  transition: all .2s var(--ease);
}
.sh-btn svg, .sh-btn .ic { width: 22px; height: 22px; }
.sh-btn:hover { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 700; transform: translateY(-2px); }
.sh-btn:active { transform: scale(.96); }
.share-msg { display: none; }
.share-msg.on { display: block; margin-top: 20px; font-size: 14.5px; line-height: 1.65; background: var(--cloud); border-radius: 12px; padding: 16px 18px; color: var(--ink); animation: fade .25s var(--ease); }
.share-msg.on.ok { background: var(--ok-bg); color: var(--ok); }
.share-msg.on.no { background: var(--no-bg); color: var(--no); }
.share-msg b { color: inherit; font-weight: 700; }
.share-ta { display: block; width: 100%; margin-top: 12px; resize: vertical; border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 13.5px; line-height: 1.6; color: var(--ink); background: var(--canvas); }

/* ═══ 상단 도구 — 지역 버튼 · 언어 전환 ═══ */
.top-tools { display: flex; align-items: center; gap: 8px; }
.region-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 13px;
  border: 1.5px solid var(--hairline); background: var(--canvas); color: var(--ink);
  border-radius: var(--r-pill); cursor: pointer; font-size: 14px; font-weight: 700;
  transition: all .2s var(--ease); white-space: nowrap;
}
.region-btn:hover { border-color: var(--banana); background: var(--banana-soft); }
.region-btn .ic { width: 15px; height: 15px; }
.region-btn b { font-weight: 800; letter-spacing: -.02em; }
.rb-caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--mute); margin-top: 4px; }
.lang-btn {
  height: 40px; padding: 0 14px; border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--canvas); color: var(--ink);
  font-size: 13px; font-weight: 800; letter-spacing: .02em; transition: all .2s var(--ease);
}
.lang-btn:hover { background: var(--ink); color: #fff; }

.region-pop {
  position: fixed; top: calc(var(--topbar-h) + 8px); right: var(--page-x); z-index: 950;
  width: min(420px, calc(100vw - 32px)); background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 16px 18px 18px; animation: fade .18s var(--ease);
}
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rp-head b { font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.rp-close {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent;
  color: var(--mute); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.rp-close:hover { background: var(--cloud); color: var(--ink); }
.rp-close .ic { width: 16px; height: 16px; }
.rp-grid { display: flex; flex-wrap: wrap; gap: 7px; }

/* ═══ 지역 칩 (홈 레일 · 팝오버 공용) ═══ */
.area-rail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--cloud); border: 1px solid var(--hairline-soft);
  border-radius: var(--r-card); padding: 16px 18px;
}
.area-rail-label {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); margin-right: 4px;
}
.area-chip {
  border: 1.5px solid var(--hairline); background: var(--canvas); color: var(--charcoal);
  height: 38px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  font-size: 14px; font-weight: 700; transition: all .18s var(--ease); white-space: nowrap;
}
.area-chip:hover { border-color: var(--banana); background: var(--banana-soft); color: var(--ink); transform: translateY(-1px); }
.area-chip.on { background: var(--banana); border-color: var(--banana); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-sm); }
.region-quick .section-sub { margin-left: 0; }

/* ═══ 🔥 맨 아래 핫플레이스 파노라마 ═══ */
.hot-band {
  margin-top: 72px; padding: 44px 0 40px; background: var(--cloud);
  border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
}
.hot-head {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--page-x);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.hot-head .section-eyebrow { flex-basis: 100%; margin-bottom: 8px; }
.hot-title {
  font-size: clamp(26px, 3vw, 40px); display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; position: relative;
}
.hot-pick {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--canvas); border: 2px solid var(--ink); color: var(--ink);
  border-radius: var(--r-pill); padding: 4px 18px 5px;
  font-size: inherit; font-weight: 800; letter-spacing: -.035em; font-family: inherit;
  transition: all .18s var(--ease);
}
.hot-pick:hover { background: var(--banana); border-color: var(--banana); }
.hot-caret { width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor; margin-top: 6px; }
.hot-cat-pop {
  position: absolute; top: 100%; left: 0; z-index: 60; margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 7px; width: min(460px, calc(100vw - 40px));
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 14px;
}
.hot-sub { font-size: 14.5px; color: var(--mute); flex-basis: 100%; margin-top: 4px; }
.hot-refresh { margin-left: auto; }

/* 파노라마가 지지직거리지 않게 하는 세 가지
 *  ① mask-image 는 매 프레임 다시 래스터라이즈돼 글자가 떨린다 → 배경색 그라데이션 덮개로 교체
 *  ② 트랙에 좌우 padding 이 있으면 translateX(-50%) 가 한 벌 폭과 어긋나 한 바퀴마다 툭 튄다
 *     (퍼센트는 padding 을 포함한 border-box 기준) → 좌우 padding 제거, 가장자리는 덮개가 처리
 *  ③ translate3d + will-change 로 트랙을 독립 레이어에 올려 합성만으로 흐르게 한다 */
.hot-rail { position: relative; margin-top: 26px; overflow: hidden; }
.hot-rail::before, .hot-rail::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(28px, 6vw, 90px);
  z-index: 2; pointer-events: none;
}
.hot-rail::before { left: 0; background: linear-gradient(90deg, var(--cloud), rgba(0,0,0,0)); }
.hot-rail::after { right: 0; background: linear-gradient(270deg, var(--cloud), rgba(0,0,0,0)); }
.hot-track {
  display: flex; gap: 18px; width: max-content; padding: 4px 0;
  animation: hotPan 60s linear infinite;
  will-change: transform; backface-visibility: hidden;
}
.hot-rail:hover .hot-track { animation-play-state: paused; }
@keyframes hotPan {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

.hot-card {
  flex: 0 0 auto; width: 268px; text-align: left; cursor: pointer; padding: 0;
  background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); overflow: hidden; font-family: inherit;
  display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hc-photo { position: relative; display: block; height: 158px; background: var(--cloud-deep); }
.hc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-rank {
  position: absolute; left: 12px; top: 12px; min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--banana); color: var(--ink); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.hc-body { display: block; padding: 14px 16px 16px; }
.hc-title { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.025em; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hc-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.hc-rate .ic-star { width: 15px; height: 15px; color: var(--banana-deep); }
.hc-rc { font-size: 12.5px; color: var(--mute); }
.hc-addr { display: block; margin-top: 6px; font-size: 12.5px; color: var(--stone);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-empty { padding: 46px var(--page-x); text-align: center; color: var(--mute); font-size: 15px; }
.hot-loading { position: absolute; right: var(--page-x); top: -22px; }
.hot-hint { max-width: 1440px; margin: 18px auto 0; padding: 0 var(--page-x); font-size: 12.5px; color: var(--stone); }
.hot-band + .foot-note { max-width: 1440px; margin: 28px auto 60px; padding: 0 var(--page-x); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  /* 파노라마는 자동으로 흐르지 않게 하고 손으로 넘기게 둔다
   * (손으로 넘기면 가장자리 덮개도 같이 밀려나므로 아예 감춘다) */
  .hot-rail { overflow-x: auto; }
  .hot-rail::before, .hot-rail::after { display: none; }
  .hot-track { animation: none !important; padding: 4px var(--page-x); will-change: auto; }
}

/* ═══ 반응형 ═══ */
@media (max-width: 1180px) {
  :root { --page-x: 28px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 380px; }
}
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .src-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-list { grid-template-columns: 1fr; }
  .tips-mascot { width: 110px; height: 110px; right: 3%; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 58px; --page-x: 18px; }
  body { font-size: 15.5px; }
  /* 상단바가 두 줄로 접히므로 높이를 JS가 재서 --topbar-h 에 넣는다(app.js syncTopbarHeight) */
  .topbar { padding: 0 var(--page-x) 8px; gap: 10px; flex-wrap: wrap; height: auto; min-height: 58px; }
  .top-tools { gap: 6px; }
  .region-btn, .lang-btn { height: 34px; font-size: 12.5px; padding: 0 10px; }
  #profileBtn { height: 34px; padding: 0 12px; font-size: 12.5px; }
  #profileBtn .pet-logo { width: 16px; height: 16px; }
  .region-pop { right: 12px; left: 12px; width: auto; }
  .area-rail { padding: 14px; gap: 6px; }
  .area-chip { height: 34px; padding: 0 12px; font-size: 13px; }
  .hot-band { margin-top: 48px; padding: 32px 0 28px; }
  .hot-card { width: 214px; }
  .hc-photo { height: 124px; }
  .hot-title { gap: 8px; font-size: 24px; }
  .hot-pick { padding: 3px 12px 4px; }
  .hot-refresh { margin-left: 0; }
  .page { inset: var(--topbar-h) 0 0 0; }
  .detail-panel { top: var(--topbar-h); width: 100%; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 19px; }
  .nav { order: 3; width: 100%; gap: 4px; justify-content: space-between; height: 38px; }
  .nav-btn { flex: 1; font-size: 13px; padding: 0 8px; }

  .hero { min-height: 360px; }
  .hero-inner { padding: 36px var(--page-x) 32px; }
  .hero-lead { font-size: 15.5px; margin-top: 12px; }
  .ai-bar { margin-top: 20px; padding-left: 16px; }
  .ai-bar input, .ai-bar-btn { height: 44px; font-size: 14.5px; }
  .ai-bar-btn { padding: 0 18px; }
  .ex-chip { padding: 7px 12px; font-size: 12.5px; }

  .guide-strip { margin-top: -20px; padding: 14px 16px; gap: 12px; }
  .guide-mascot { width: 44px; height: 44px; }
  .guide-say { font-size: 14.5px; }

  .section { padding: 40px var(--page-x) 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-btn { padding: 18px 14px; }
  .band { margin-top: 48px; min-height: 200px; }
  .band-copy { padding: 32px var(--page-x); }
  .pet-form-card { padding: 22px 16px; }
  /* minmax(0,1fr) 필수 — 그냥 1fr 이면 최소너비가 min-content 라서 카드가 안 줄고
     열이 화면 밖으로 밀려난다(412px에서 560px까지 넘쳐 두 번째 열이 잘렸음) */
  .place-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 20px var(--page-x) 56px; }
  .pc-thumb { height: 140px; }
  .pc-title { font-size: 14.5px; }
  .result-head { padding: 16px var(--page-x); }
  .result-title h2 { font-size: 22px; }
  .result-tools input[type="search"] { width: 120px; }
  .map-legend { top: 76px; left: 12px; font-size: 11.5px; gap: 10px; padding: 8px 12px; }
  .map-bar { left: 12px; right: 12px; top: 12px; font-size: 16px; padding: 12px 14px; }

  .tips-hero { min-height: 220px; }
  .tips-mascot { width: 80px; height: 80px; right: -4px; opacity: .9; }
  .tips-wrap { padding: 24px var(--page-x) 64px; }
  .quiz-score { padding: 16px; }
  .qs-btns { margin-left: 0; width: 100%; }
  .qs-btns .qs-btn { flex: 1; }
  .quiz-card { padding: 20px 16px; }
  .ox-btn { height: 58px; font-size: 15px; }
  .ai-card { padding: 24px 18px 18px; }
  .ai-stage { gap: 12px; }
  .ai-mascot { width: 52px; height: 52px; }
  .dt-title { font-size: 22px; margin: 18px 18px 0; }
  .dt-addr, .dt-src, .dt-route-top, .dt-naver, .dt-verdict, .dt-sec { margin-left: 18px; margin-right: 18px; }
}
