/* ─────────────────────────────────────────
   품몽 POOMMONG — 디자인 원칙
   · 굵고 힘 있는 고딕(Pretendard) + 영문 포인트는 이탤릭 세리프(Instrument Serif)
   · 크림 바탕 + 살구색 포인트 + 파스텔 블록으로 생동감
   · 실제 데이터(그래프·숫자)를 장식처럼 활용
   ───────────────────────────────────────── */
:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #161412;
  --ink-2: #4c4640;
  --muted: #8d857c;
  --line: #ebe5dc;
  --accent: #ff6a3d;
  --accent-ink: #ffffff;
  --accent-soft: #ffe3d8;
  --butter: #ffeaa6;
  --sage: #dbe7cf;
  --sky: #d8e6f6;
  --blush: #fadcd5;
  --lilac: #e6defa;
  --sand: #efe4d2;
  --good: #3f7a3a;
  --good-soft: #e1f0d8;
  --warn: #a86b12;
  --warn-soft: #fff0cc;
  --bad: #c2412d;
  --bad-soft: #fde1da;
  --sans: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --radius: 22px;
  --tabbar-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --card: #1c1a18;
    --ink: #f3eee7;
    --ink-2: #cfc7bd;
    --muted: #978e84;
    --line: #2c2825;
    --accent: #ff7a50;
    --accent-ink: #1a0f0a;
    --accent-soft: #3a2219;
    --butter: #3a331d;
    --sage: #24301f;
    --sky: #1e2a38;
    --blush: #3a2421;
    --lilac: #2a2438;
    --sand: #2e2820;
    --good: #9fd38f;
    --good-soft: #1f2e1b;
    --warn: #f0be62;
    --warn-soft: #33290f;
    --bad: #ff9a85;
    --bad-soft: #3b1f19;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.6; letter-spacing: -0.015em;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }
a { color: inherit; }
b { font-weight: 700; }
i { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── 흐르는 띠 배너 ── */
.ticker { background: var(--ink); color: var(--bg); overflow: hidden; white-space: nowrap; font-size: 12.5px; font-weight: 600; height: 34px; }
.ticker-track { position: relative; height: 100%; }
.ticker-track a {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(100%); transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .55s;
}
.ticker-track a::before { content: "✳"; color: var(--accent); }
.ticker-track a.on { opacity: 1; transform: translateY(0); }
.ticker-track a.out { opacity: 0; transform: translateY(-100%); }
.ticker-track a:hover { color: var(--accent); }
@media (max-width: 480px) { .ticker { font-size: 11.5px; } }

/* ── 머리글 ── */
.masthead { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -0.06em; }
.wordmark span { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 21px; letter-spacing: 0; color: var(--accent); }
/* 로고: 영어 poommong이 주인공, 한글 품몽은 옆에 작게 */
/* 확정 로고와 같은 모양: 강아지 + poom(검정)mong(주황) 기울인 세리프, 한글 품몽은 작게 */
.wordmark { align-items: center; gap: 7px; }
.wordmark .wm-mark { width: 40px; height: 25px; flex: none; }
/* 로고 글씨체(Instrument Serif)는 굵기가 하나뿐이라, 같은 색 외곽선을 둘러 획을 두껍게 */
.wordmark .wm-en { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 33px; line-height: 1; letter-spacing: 0; color: inherit; -webkit-text-stroke: 1.3px currentColor; paint-order: stroke fill; }
.wordmark .wm-en em { font-style: italic; color: var(--accent); }
.wordmark .wm-ko { font-family: inherit; font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: -0.02em; color: var(--muted); margin-left: 1px; align-self: center; }
.colophon .wordmark .wm-ko { color: inherit; opacity: .6; }
@media (max-width: 480px) { .wordmark .wm-en { font-size: 27px; } .wordmark .wm-mark { width: 34px; height: 21px; } }
.topnav { display: flex; gap: 6px; }
.beta { align-self: center; margin-left: 6px; font-family: var(--sans); font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 6px; padding: 1px 5px; }
.colophon-note + .colophon-note { margin-top: 0 !important; }
.colophon-note a { color: inherit; }
.topnav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.topnav a:hover { background: var(--card); }
.topnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* 드롭다운 메뉴 (컴퓨터) */
.topnav { align-items: center; }
.nav-item { position: relative; }
.caret { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: translateY(1px) rotate(225deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; z-index: 20;
  background: var(--card); border-radius: 22px; padding: 14px; min-width: 420px;
  box-shadow: 0 24px 60px -24px rgba(22,20,18,.35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mk { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #161412; font-weight: 700; font-size: 14px; transition: transform .15s; }
.mk:hover { transform: translateX(2px); }
.mk span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mk-need { font-style: normal; font-size: 11.5px; font-weight: 500; color: rgba(22, 20, 18, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk svg { width: 22px; height: 22px; fill: none; stroke: #161412; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mk small { font-family: var(--display); font-style: italic; font-size: 16px; font-weight: 400; }
.mega-brands { min-width: 560px; left: auto; right: -40px; translate: 0 0; padding: 0; overflow: hidden; }
.mb { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.mb-cats { list-style: none; margin: 0; padding: 10px 8px; background: var(--bg); }
.mb-cats button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px;
  border: 0; background: none; padding: 9px 12px; border-radius: 12px; cursor: pointer;
  font: 600 14px var(--sans); color: var(--ink-2); text-align: left;
}
.mb-cats button small { color: var(--muted); font-weight: 500; font-size: 12px; }
.mb-cats button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 800; }
.mb-cats button[aria-pressed="true"] small { color: var(--accent); }
.mb-brands { padding: 10px 12px; }
.mb-brands .mega-list { grid-template-columns: repeat(2, 1fr); max-height: 300px; }
.drawer-brand-cats { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.drawer-brand-cats::-webkit-scrollbar { display: none; }
.drawer-brand-cats .chip { white-space: nowrap; }
.nav-item .mega:not(:hover) { pointer-events: none; }
.nav-item:hover .mega, .nav-item:focus-within .mega { pointer-events: auto; }
.mega { display: block; }
@media (max-width: 720px) { .mega { display: none; } }
.mega-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; max-height: 340px; overflow-y: auto; }
.mega-list a, .drawer-brands a { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.mega-list a:hover, .drawer-brands a:hover { background: var(--bg); }
.mega-list small, .drawer-brands small { color: var(--muted); font-weight: 500; }
.mega-all { display: inline-block; margin: 10px 10px 2px; }

/* 휴대폰: 전체 메뉴 버튼 + 펼침 판 */
.menu-btn { display: none; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drawer { position: fixed; inset: 86px 0 0 0; z-index: 9; background: var(--bg); overflow-y: auto; padding-bottom: calc(var(--tabbar-h) + 24px); animation: pageIn .25s ease both; }
.drawer-title { margin: 22px 0 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.drawer-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.drawer-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 8px; }
body.no-scroll { overflow: hidden; }
@media (max-width: 720px) { .menu-btn { display: inline-flex; } }

/* 휴대폰: 아래쪽 탭바 */
.tabbar { display: none; }
@media (max-width: 720px) {
  .topnav { display: none; }
  .masthead-inner { height: 54px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { fill: var(--accent-soft); stroke: var(--ink); }
}

/* ── 공통 ── */
.pill { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .pill { color: var(--accent); } }
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kicker i { color: var(--accent); font-size: 1.15em; }
.page-head { padding-top: 40px; padding-bottom: 24px; }
.page-title { margin: 0; font-weight: 800; font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.045em; line-height: 1.2; }
.page-title .count { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); margin-left: 4px; }
.page-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.section { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.more-link { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.more-link::after { content: " →"; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.source { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 15px 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 700 15px var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: scale(.98); }
.btn-block { display: flex; width: 100%; margin-top: 24px; padding: 18px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); margin-top: 20px; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ── 홈: 히어로 ── */
.hero { position: relative; padding-top: 44px; padding-bottom: 36px; }
.hero-title { margin: 0; font-weight: 800; font-size: clamp(40px, 8.4vw, 76px); line-height: 1.12; letter-spacing: -0.055em; }
.hero-title em {
  font-style: normal; color: var(--accent); position: relative; white-space: nowrap;
}
.hero-title em::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: 0.06em; height: 0.16em;
  background: var(--accent); opacity: .22; border-radius: 99px; transform: rotate(-2deg);
}
.hero-sub { margin: 22px 0 0; max-width: 32em; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.hero-sub b { color: var(--ink); }
@media (max-width: 520px) { .hero-sub br { display: none; } }

.quick {
  display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 460px;
  background: var(--card); border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: 0 0 0 1.5px var(--ink);
}
.quick-field { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.quick-field span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.quick-field input {
  width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 800 26px var(--sans); letter-spacing: -0.03em; padding: 6px 0;
  -moz-appearance: textfield; appearance: textfield;
}
.quick-field input::placeholder { color: var(--line); }
.quick-field em { font-style: normal; font-size: 13px; color: var(--muted); }
.quick-btn { flex: none; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--sans); padding: 14px 20px; cursor: pointer; transition: transform .15s; }
.quick-btn:active { transform: scale(.97); }
.quick-hint { margin: 12px 0 0 6px; font-size: 13px; color: var(--muted); }
.quick-hint a { color: var(--ink-2); font-weight: 600; }

/* 첫 화면 사진 */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 36px; align-items: center; }
@media (min-width: 861px) { .hero-title { font-size: clamp(40px, 5vw, 64px); } }
.hero-text { min-width: 0; }
.hero-photo { position: relative; margin: 0; height: min(78vh, 600px); border-radius: 32px; overflow: hidden; background: var(--sand); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transform: scale(1.04); animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,.28), transparent); pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-overlay > * { pointer-events: auto; }
.hero-overlay .hv-pill { left: 20px; bottom: 44px; right: auto; text-decoration: none; color: var(--ink); animation: pillIn .6s .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pillIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-overlay .sticker { position: absolute; right: 18px; left: auto; top: 18px; width: 108px; height: 108px; font-size: 11.5px; }
.hero-overlay .sticker b { font-size: 24px; }
.photo-credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 11px; color: rgba(255,255,255,.85); }
.photo-credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } }
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 28px; }
  .hero-text { display: contents; }
  .pill { order: 0; align-self: flex-start; }
  .hero-title { order: 1; }
  .hero-photo { order: 2; margin: 24px -20px 0; height: 62vh; min-height: 380px; max-height: 520px; border-radius: 0; }
  .hero-sub { order: 3; }
  .quick { order: 4; }
  .quick-hint { order: 5; }
  .hero-overlay .hv-pill { left: 16px; bottom: 36px; }
  .hero-overlay .sticker { right: 14px; top: 14px; width: 92px; height: 92px; font-size: 10.5px; }
}
@media (max-width: 480px) { .hero-photo { margin-left: -18px; margin-right: -18px; } }

.hero-visual { position: relative; height: 420px; }
.hv-card {
  position: absolute; width: 210px; aspect-ratio: 4 / 5; border-radius: 22px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px; color: #161412;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -18px rgba(22,20,18,.35);
}
.hv-card .cover-word { margin-top: auto; }
.hv-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.hv-foot p { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-foot b { white-space: nowrap; }
.hv-0 { left: 18%; top: 34px; z-index: 3; transform: rotate(-4deg); animation: floatA 7s ease-in-out infinite; }
.hv-1 { left: 46%; top: 8px; z-index: 2; transform: rotate(7deg); animation: floatB 8s ease-in-out infinite; }
.hv-2 { left: 2%; top: 120px; z-index: 1; transform: rotate(-13deg); animation: floatB 9s ease-in-out infinite reverse; }
@keyframes floatA { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes floatB { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
.hv-2 { animation-name: none; }
.hv-pill {
  position: absolute; left: 34%; bottom: 18px; z-index: 4; display: grid; gap: 2px;
  background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: 0 16px 36px -16px rgba(22,20,18,.35);
}
.hv-pill small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hv-pill b { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.hv-pill span { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.hero-visual .sticker { position: absolute; left: 0; right: auto; top: 0; z-index: 5; width: 104px; height: 104px; font-size: 11.5px; }
.hero-visual .sticker b { font-size: 24px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 330px; margin-top: 8px; }
  .hv-card { width: 168px; }
  .hv-0 { left: 26%; top: 30px; } .hv-1 { left: 52%; top: 6px; } .hv-2 { left: 2%; top: 70px; }
  .hv-card .cover-word.cw-l { font-size: 48px; } .hv-card .cover-word.cw-m { font-size: 36px; } .hv-card .cover-word.cw-s { font-size: 28px; }
  .hv-pill { left: auto; right: 6%; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .hv-card { animation: none !important; } }

.sticker {
  position: absolute; right: 24px; top: 44px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--butter); display: grid; place-items: center; text-align: center;
  transform: rotate(10deg); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink);
  animation: wobble 6s ease-in-out infinite;
}
.sticker b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 30px; color: var(--accent); }
@keyframes wobble { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
@media (max-width: 720px) { .sticker { width: 96px; height: 96px; font-size: 11px; top: 30px; right: 16px; } .sticker b { font-size: 24px; } }
@media (max-width: 420px) { .sticker { top: 22px; right: 12px; width: 84px; height: 84px; } }
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }

/* ── 홈: 같은 M, 다른 품 ── */
.chart-card { margin-top: 28px; }
.card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card-head h2 { margin: 0; font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.chart-big { margin: 0; font-weight: 800; font-size: clamp(34px, 7vw, 52px); letter-spacing: -0.05em; line-height: 1; color: var(--accent); white-space: nowrap; }
.chart-big small { font-size: .38em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.card-sub { margin: 10px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.card-sub b { color: var(--accent); }
.mbars { position: relative; display: grid; gap: 7px; }
.mbar { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; font-size: 13px; }
.mbar-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar-track { position: relative; height: 22px; background: var(--bg); border-radius: 999px; }
.mbar-fill {
  position: absolute; top: 0; bottom: 0; border-radius: 999px; min-width: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap;
  transform-origin: left; animation: grow .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.mbar-dogline { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--accent); border-radius: 2px; pointer-events: none; }
.mbar-dogtag { position: absolute; top: -26px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mbar-axis { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 11px; color: var(--muted); }
.mbar-axis div { display: flex; justify-content: space-between; }
@media (max-width: 480px) { .mbar, .mbar-axis { grid-template-columns: 70px 1fr; } }

/* ── 홈: 카테고리 ── */
.dog-actions .linkbtn + .linkbtn { margin-top: -2px; }
.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; padding: 18px;
  border-radius: var(--radius); text-decoration: none; transition: transform .2s ease;
}
.cat:hover { transform: translateY(-3px); }
.cat-name { font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.cat-count { font-family: var(--display); font-style: italic; font-size: 34px; line-height: 1; }
.cat-count small { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 600; margin-left: 2px; color: var(--ink-2); }
@media (max-width: 720px) { .cat-row { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 96px; } }

/* ── 브랜드 카드 (가로로 넘기기) ── */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(24px, calc((100vw - 980px) / 2 + 24px)) 12px;
  scroll-padding-inline: max(24px, calc((100vw - 980px) / 2 + 24px));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

/* ── 홈: 품몽에 담긴 브랜드 (이름만 천천히 흐름, 두 줄 반대 방향) ── */
.brand-marquee { display: grid; gap: 10px; overflow: hidden; padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bm-row { overflow: hidden; }
.bm-track { display: flex; gap: 10px; width: max-content; animation: bm-move 95s linear infinite; }
.bm-row.rev .bm-track { animation-direction: reverse; animation-duration: 110s; }
.brand-marquee:hover .bm-track { animation-play-state: paused; }
@keyframes bm-move { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
.bm-item { display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--line, rgba(22, 20, 18, .08)); text-decoration: none; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
.bm-item i { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1; letter-spacing: -0.01em; }
.bm-item small { font-size: 12px; font-weight: 600; color: var(--muted); }
.bm-item b { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.bm-item:hover { background: var(--ink); color: var(--bg); }
.bm-item.bm-logo { align-items: center; padding: 10px 20px; }
.bm-item.bm-logo img { height: 28px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.bm-item.bm-logo:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.bm-item.bm-logo { background: #fff; }
.bm-item.bm-logo.dark, .bm-item.bm-logo.dark:hover { background: #2a2522; color: #f1e6d6; }
.bm-item.bm-logo.dark small { color: #f1e6d6; opacity: .7; }
.bm-item.bm-logo.broken small { font-size: 16px; font-weight: 800; color: var(--ink); }
.bm-item:hover small { color: inherit; opacity: .7; }
@media (max-width: 480px) { .bm-item { padding: 11px 17px; } .bm-item i { font-size: 20px; } }
.bcard { scroll-snap-align: start; text-decoration: none; display: block; }
.cover {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
  transition: transform .25s ease;
}
/* 허락받은 브랜드: 실제 상품 사진을 깔고, 태그·사이즈만 위에 */
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cover.has-photo .cover-top, .cover.has-photo .cover-sizes { position: relative; z-index: 1; }
.cover.has-photo .cover-word { visibility: hidden; }
.cover.has-photo .cover-sizes span { background: rgba(255,255,255,.85); border-color: transparent; }
/* 사이즈 찾기 목록: 사진이 있으면 왼쪽에 작게 */
.item-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.item-main > div { min-width: 0; }
/* 사이즈 찾기 목록: 사진은 오른쪽 칸(사이즈 배지 자리)에 */
.item-photo-r { position: relative; width: 200px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--bg); justify-self: end; }
.item-photo-r img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-size { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.92); color: #161412; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.photo-size b { font-weight: 800; }
@media (max-width: 720px) { .item-photo-r { width: 150px; } }
@media (max-width: 480px) { .item-photo-r { width: 128px; border-radius: 16px; } }
/* 사진이 있으면 버튼 줄은 왼쪽 칸에만 두고, 사진이 오른쪽에 길게 서 있게 */
.item:has(.item-photo-r) .item-photo-r { grid-row: 1 / span 3; grid-column: 2; align-self: start; }
.item:has(.item-photo-r) > :not(.item-photo-r) { grid-column: 1; }
.bcard:hover .cover { transform: translateY(-4px) rotate(-.6deg); }
.cover-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 11px; font-weight: 700; }
.cover-tag { background: rgba(255,255,255,.7); color: #161412; padding: 3px 9px; border-radius: 999px; }
.cover-word { font-family: var(--display); font-style: italic; line-height: .92; letter-spacing: -0.02em; color: rgba(22,20,18,.9); overflow-wrap: anywhere; }
.cover-word.cw-l { font-size: 64px; }
.cover-word.cw-m { font-size: 46px; }
.cover-word.cw-s { font-size: 36px; }
.cover-word.cw-ko { font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 30px; letter-spacing: -0.05em; word-break: keep-all; overflow-wrap: normal; }
.cover-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.cover-sizes span { font-size: 11px; font-weight: 700; color: #161412; border: 1.5px solid rgba(22,20,18,.75); border-radius: 999px; padding: 1px 7px; }
/* 상품명이 주인공, 브랜드는 위에 작게 (29CM·W컨셉 카드 방식) */
.bcard-name { margin: 12px 2px 0; font-weight: 600; font-size: 12.5px; color: var(--muted); letter-spacing: -0.01em; }
.bcard-product { margin: 3px 2px 0; font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-price { margin: 4px 2px 0; font-size: 14px; font-weight: 800; }
.bcard-price del { font-weight: 500; color: var(--muted); font-size: 12px; margin-right: 2px; }
.lowtag { font-size: 10.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 999px; vertical-align: 1px; }
.bcard-sellers { margin: 3px 2px 0; font-size: 12px; color: var(--ink-2); }
.bcard-sellers b { color: var(--accent); }

/* 카드 색 (브랜드마다 하나씩) */
.c-butter { background: #ffe9a3; } .c-sage { background: #d6e6c6; } .c-sky { background: #cfe1f6; }
.c-blush { background: #f9d6ce; } .c-lilac { background: #e2d8fa; } .c-sand { background: #eddcc3; }
.c-apricot { background: #ffc8b3; } .c-mint { background: #c9ebe0; }

/* ── 홈: 이렇게 골라요 ── */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how li { border-radius: var(--radius); padding: 22px; }
.how-1 { background: var(--sage); } .how-2 { background: var(--sky); } .how-3 { background: var(--blush); }
.how-no { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1; }
.how h3 { margin: 18px 0 6px; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; }
.how p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } }

/* ── 사이즈 찾기 ── */
.dog-picker { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; background: var(--card); color: var(--ink); border-radius: 999px; padding: 9px 16px;
  font: 600 14px var(--sans); cursor: pointer; transition: background .15s, transform .15s;
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter-chips { margin: 0 0 16px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips .chip { white-space: nowrap; }

.form-card { padding: 26px; }
.name-field { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.name-field span { font-size: 13px; font-weight: 700; color: var(--muted); flex: none; }
.name-field input { flex: 1; min-width: 0; border: 0; background: var(--bg); color: var(--ink); font: 700 17px var(--sans); padding: 12px 16px; border-radius: 14px; }
.measure-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 10px; }
@media (max-width: 600px) { .measure-grid { grid-template-columns: 1fr; } }
.m-weight { background: var(--butter); } .m-length { background: var(--lilac); } .m-height { background: var(--blush); }
label.m-waist { background: var(--sand); }

.couple-dog { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; font-size: 14px; }
.couple-dog b { font-weight: 800; }
.human-box { grid-column: 1 / -1; margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--bg); }
.human-box .hb-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.hb-title span { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.hb-note { margin: 8px 2px 0; font-size: 11.5px; font-weight: 400; line-height: 1.6; color: var(--muted); opacity: .85; }
.hb-note.stock { grid-column: 1 / -1; margin-top: 8px; }
.couple-sizes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.couple-sizes .human-box { grid-column: auto; margin-top: 0; min-width: 0; }
@media (max-width: 720px) { .couple-sizes { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.detail-grid .sellers { margin-bottom: 0; }
.dg-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.human-box .chart-wrap { background: var(--card); }
/* AI 착용샷 */
.tryon-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 999px; font: 700 13.5px var(--sans); color: var(--ink); background: linear-gradient(135deg, var(--lilac), var(--sky)); }
.tryon-btn i { font-family: var(--sans); font-style: normal; font-size: 10.5px; font-weight: 900; background: var(--ink); color: var(--bg); padding: 2px 6px; border-radius: 6px; letter-spacing: .04em; }
.tryon { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 0; border-radius: 26px; padding: 22px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.tryon::backdrop { background: rgba(22,20,18,.45); backdrop-filter: blur(3px); }
.tryon-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tryon-head h2 { margin: 0; font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.tryon-product { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.tryon-close { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.tryon-label { margin: 18px 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.tryon-breeds .chip { background: var(--bg); }
.tryon-breeds .chip[aria-pressed="true"] { background: var(--ink); }
.tryon-stage { margin-top: 16px; }
.tryon-figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; }
.tryon-figure img { display: block; width: 100%; height: auto; }
.ai-badge { position: absolute; left: 12px; top: 12px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(22,20,18,.72); padding: 5px 10px; border-radius: 999px; }
.tryon-empty { text-align: center; padding: 34px 18px; border-radius: 20px; background: linear-gradient(135deg, var(--lilac), var(--sky) 60%, var(--blush)); color: #161412; }
.tryon-empty .empty-title { margin: 0 0 6px; font-weight: 800; font-size: 18px; }
.tryon-empty p { margin: 0 0 6px; font-size: 14px; line-height: 1.65; }
.tryon-count { font-size: 12px !important; opacity: .7; }
.tryon-fine { margin: 14px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
/* 핏 미리보기 */
.fit-svg { width: 100%; height: auto; display: block; background: linear-gradient(180deg, #fbf3ea, #f6ece0); border-radius: 20px; }
.fit-garment path { transition: d .35s ease; }
.fit-msg { margin: 12px 2px 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.fit-msg b { color: var(--accent); }
.fit-lines { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fit-lines li { font-size: 13px; background: var(--bg); padding: 9px 12px; border-radius: 12px; color: var(--ink-2); }
.fit-lines li b { color: var(--ink); }
.fit-edit { margin-top: 10px; }
.fit-edit summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.fit-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.fit-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fit-form input { width: 110px; padding: 10px 12px; border: 1.5px solid var(--line, rgba(22,20,18,.15)); border-radius: 12px; font: 600 15px var(--sans); background: var(--card); color: var(--ink); }
.fit-apply { padding: 11px 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 14px var(--sans); cursor: pointer; }
.buy-alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.price-split { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.price-split b { color: var(--ink); }
.sortbar { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 14px; }
.sort { border: 0; background: none; padding: 4px 0; font: 600 13.5px var(--sans); color: var(--muted); cursor: pointer; }
.sort[aria-pressed="true"] { color: var(--ink); }
.sort[aria-pressed="true"]::before { content: "✓ "; color: var(--accent); }
.fit li.info { background: var(--bg); color: var(--ink-2); }
.rule-list { padding-left: 18px; margin: 12px 0 0; color: var(--ink-2); line-height: 1.8; }
.rule-list li { margin-bottom: 6px; }
.rule-list b { color: var(--ink); margin-right: 4px; }
#aboutRules { color: var(--ink-2); line-height: 1.8; }
.hint-note { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

/* 판매처 비교 */
.seller-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }
.seller-hint b { color: var(--accent); }
.sellers { margin-bottom: 14px; }
.sellers-title { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.sellers-title span { font-weight: 600; color: var(--muted); margin-left: 4px; }
.sellers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sellers a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--bg); text-decoration: none; transition: background .15s;
}
.sellers a:hover { background: var(--accent-soft); }
.s-market { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.s-low { font-style: normal; font-family: var(--sans); font-size: 11px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 1px 7px; border-radius: 999px; }
.s-price { text-align: right; font-size: 14px; white-space: nowrap; }
.s-price del { color: var(--muted); font-size: 12px; margin-right: 6px; }
.s-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* 치수 재는 위치 그림 */
.diagram { margin: 4px 0 14px; padding: 12px 8px 10px; background: var(--card); border-radius: 16px; }
.diagram svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; height: auto; }
.diagram .dog * { fill: var(--bg); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram .dog .nose { fill: var(--ink); }
.diagram .m * { fill: none; stroke-width: 3; stroke-linecap: round; }
.diagram .m text { stroke: none; font: 700 12px var(--sans); text-anchor: middle; }
.diagram .m.off { opacity: .16; }
.diagram .m-neck * { stroke: #3d74c9; } .diagram .m-neck text { fill: #3d74c9; }
.diagram .m-chest * { stroke: #ff6a3d; } .diagram .m-chest text { fill: #ff6a3d; }
.diagram .m-waist * { stroke: #c4831a; } .diagram .m-waist text { fill: #c4831a; }
.diagram .m-back * { stroke: #3f8a3a; } .diagram .m-back text { fill: #3f8a3a; }
.diagram .m-length * { stroke: #7653c9; } .diagram .m-length text { fill: #7653c9; }
.diagram .m ellipse { stroke-dasharray: 5 4; }
.diagram figcaption { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
#editDiagram .diagram { background: var(--bg); }
.m-how { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.group-title { margin: 22px 0 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.group-title:first-child { margin-top: 0; }
.m-field { display: block; border-radius: 18px; padding: 14px 16px 10px; transition: box-shadow .2s; }
.m-chest { background: var(--accent-soft); } .m-neck { background: var(--sky); } .m-back { background: var(--sage); }
.m-field:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.m-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.req { font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 4px; }
.m-input { display: flex; align-items: baseline; gap: 6px; }
.m-input input {
  width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 2px 0;
  font: 800 40px/1.15 var(--sans); letter-spacing: -0.04em;
  -moz-appearance: textfield; appearance: textfield;
}
.m-input input::-webkit-outer-spin-button, .m-input input::-webkit-inner-spin-button, .quick-field input::-webkit-outer-spin-button, .quick-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m-input input::placeholder { color: rgba(22,20,18,.18); }
.m-input em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input:focus { outline: none; }
.form-error { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--bad); }

.howto { margin: 18px 0 0; background: var(--bg); border-radius: 14px; padding: 0 16px; }
.howto summary { cursor: pointer; padding: 13px 0; font-size: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; color: var(--muted); }
.howto[open] summary::after { content: "–"; }
.howto ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.howto li { margin-bottom: 4px; }
.howto li b { margin-right: 6px; color: var(--ink); }
.howto p { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }

.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink); margin: 0; display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

#resultSection { scroll-margin-top: 70px; }
.result-head { margin-bottom: 16px; }
.result-head h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 4.6vw, 32px); letter-spacing: -0.045em; }
.result-summary { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.result-summary b { color: var(--accent); }

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--card); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rank { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--muted); line-height: 1; }
.verdict { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.v-good { background: var(--good-soft); color: var(--good); }
.v-warn { background: var(--warn-soft); color: var(--warn); }
.v-bad { background: var(--bad-soft); color: var(--bad); }
.brand { margin: 0; font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: -0.01em; line-height: 1.4; }
.product { margin: 3px 0 0; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.35; }
.meta { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.meta span { font-weight: 500; color: var(--muted); margin-left: 6px; }
.size-badge {
  align-self: start; min-width: 76px; height: 76px; padding: 0 12px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.size-badge small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.size-badge strong { font-weight: 800; font-size: 26px; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
.fit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.fit li { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.fit li.warn { background: var(--warn-soft); color: var(--warn); }
.fit li.bad { background: var(--bad-soft); color: var(--bad); }
.notice { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 12px; }
.links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.buy { display: inline-flex; align-items: center; text-decoration: none; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 700; padding: 10px 16px; border-radius: 999px; }
.buy::after { content: "→"; margin-left: 6px; }
.buy:hover { background: var(--accent); color: var(--accent-ink); }
.more { flex-basis: 100%; }
.more summary { display: inline-flex; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-radius: 999px; background: var(--bg); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; margin-left: 6px; }
.more[open] summary::after { content: "–"; }
.links .more { flex-basis: auto; }
.more-body { margin-top: 12px; }
.source-line { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.chart-wrap { overflow-x: auto; background: var(--bg); border-radius: 14px; padding: 6px 10px; }
.chart { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.chart caption { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 0; }
.chart th { font-weight: 600; color: var(--muted); text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.chart td { text-align: center; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.chart tr:last-child td { border-bottom: 0; }
.chart tr.pick td { font-weight: 800; color: var(--accent); }
.advice-text { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.fineprint { margin: 20px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.empty { padding: 28px 4px; color: var(--muted); font-size: 14px; }

/* ── 브랜드 화면 ── */
.search { display: block; margin-bottom: 12px; }
.search input { width: 100%; border: 0; background: var(--card); color: var(--ink); font: 600 16px var(--sans); padding: 15px 20px; border-radius: 999px; -webkit-appearance: none; }
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search input:focus { box-shadow: 0 0 0 2px var(--ink); }
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.bg-item details { height: 100%; }
.bg-item summary { list-style: none; cursor: pointer; }
.bg-item summary::-webkit-details-marker { display: none; }
.bg-item .cover { aspect-ratio: 1 / 1; }
.bg-item .cover-word.cw-l { font-size: 56px; }
.bg-item .cover-word.cw-m { font-size: 40px; }
.bg-item .cover-word.cw-s { font-size: 30px; }
.bg-item[open], .bg-item:has(details[open]) { grid-column: 1 / -1; }
.bg-item:has(details[open]) .cover { aspect-ratio: auto; min-height: 140px; }
.bg-body { background: var(--card); border-radius: var(--radius); padding: 18px; margin-top: 10px; }
@media (max-width: 480px) {
  .bg-item .cover-word.cw-l { font-size: 44px; }
  .bg-item .cover-word.cw-m { font-size: 32px; }
  .bg-item .cover-word.cw-s { font-size: 25px; }
  .bcard-product { font-size: 14.5px; }
}

/* ── 우리 아이 ── */
.dog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dog-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 18px 20px; }
.dog-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #161412; }
.dog-name { margin: 0; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.dog-measure { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dog-measure span { font-size: 12px; font-weight: 600; background: var(--bg); padding: 3px 8px; border-radius: 999px; }
.dog-date { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.dog-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dog-actions .buy { padding: 9px 14px; font-size: 13px; }
.linkbtn { border: 0; background: none; padding: 0; font: 600 12.5px var(--sans); color: var(--muted); cursor: pointer; }
.empty-card { text-align: center; padding: 36px 20px; color: var(--ink-2); }
.empty-title { margin: 0 0 4px; font-weight: 800; font-size: 18px; color: var(--ink); }
.empty-card p { margin: 0; }

/* ── 품몽에 대하여 ── */
.prose { max-width: 680px; }
.prose .lead { font-size: 20px; font-weight: 600; line-height: 1.7; letter-spacing: -0.03em; margin: 0 0 32px; }
.prose h2 { font-weight: 800; font-size: 20px; letter-spacing: -0.04em; margin: 36px 0 12px; }
.prose p { color: var(--ink-2); line-height: 1.8; }
.rules { padding-left: 20px; color: var(--ink-2); line-height: 1.8; }
.rules li { margin-bottom: 10px; }
.rules b { color: var(--ink); }

/* ── 바닥글 ── */
.colophon { margin-top: 80px; padding: 36px 0 44px; background: var(--ink); color: var(--bg); font-size: 12.5px; }
.colophon-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.colophon .wordmark { color: var(--bg); }
.colophon-links { display: flex; gap: 18px; }
.colophon-links a { text-decoration: none; font-weight: 600; opacity: .85; }
.colophon-note { grid-column: 1 / -1; margin: 6px 0 0; opacity: .6; line-height: 1.7; }
.colophon-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 4px; font-size: 13px; }
.colophon-contact b { margin-right: 8px; font-weight: 700; opacity: .6; }
.colophon-contact a { color: inherit; text-decoration: none; opacity: .9; }
.colophon-copy { grid-column: 1 / -1; margin: 14px 0 0; font-size: 11.5px; opacity: .4; letter-spacing: .02em; }

/* ── 카테고리 타일 ── */
.section.first { padding-top: 40px; }
.kind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .kind-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 420px) { .kind-grid { gap: 6px; } }
.kind {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 118px;
  border-radius: var(--radius); text-decoration: none; color: #161412; transition: transform .2s ease;
}
.kind:hover { transform: translateY(-3px); }
.kind-icon svg { width: 30px; height: 30px; fill: none; stroke: #161412; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kind-name { margin-top: auto; font-weight: 800; font-size: 16px; letter-spacing: -0.04em; }
.kind-desc { font-size: 12.5px; color: rgba(22,20,18,.65); }
.kind-count { position: absolute; top: 14px; right: 14px; font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1; }
.kind-count small { font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 700; margin-left: 1px; }
.kind.soon { opacity: .62; }
.kind.soon .kind-count small { background: rgba(255,255,255,.7); padding: 3px 7px; border-radius: 999px; }
@media (max-width: 720px) {
  .kind-grid:not(.kind-grid-lg) .kind { min-height: 92px; padding: 12px 8px; align-items: center; text-align: center; }
  .kind-grid:not(.kind-grid-lg) .kind-name { font-size: 13px; margin-top: 6px; }
  .kind-grid:not(.kind-grid-lg) .kind-count { display: none; }
  .kind-grid:not(.kind-grid-lg) .kind-icon svg { width: 28px; height: 28px; }
}
.kind-grid-lg { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 721px) { .kind-grid-lg { grid-template-columns: repeat(3, 1fr); } }
.kind-grid-lg .kind { min-height: 160px; padding: 20px; }
.kind-grid-lg .kind-name { font-size: 20px; }

.back-link { display: inline-block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link::before { content: "← "; }
.cat-hero { display: flex; align-items: center; gap: 16px; }
.cat-icon { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; }
.cat-icon svg { width: 34px; height: 34px; fill: none; stroke: #161412; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.v-none { background: var(--bg); color: var(--muted); }
.badge-word { font-size: 24px !important; }
.breed-tag { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg); padding: 2px 8px; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
.name-field + .name-field { margin-top: -6px; }
.active-tag { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
.chart.spec th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.chart.spec td { text-align: right; font-weight: 700; }

/* 화면 전환·등장 */
@media (prefers-reduced-motion: no-preference) {
  .page:not([hidden]) { animation: pageIn .35s ease both; }
  @keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .item { animation: pop .45s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
}
.fit-sub { color: var(--muted); font-size: 12px; }
/* 핏 미리보기: 견종 사진 + AI 착용 */
.tryon-breed-chips { margin-bottom: 4px; }
.tryon-photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.tryon-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tryon-photo.empty { flex-direction: column; gap: 6px; text-align: center; padding: 20px; background: linear-gradient(135deg, #fbf3ea, #f4ece2); color: var(--ink-2); }
.tryon-photo.empty .empty-title { margin: 0; font-weight: 800; font-size: 16px; color: var(--ink); }
.tryon-photo.empty p { margin: 0; font-size: 13px; }
.tryon-photo .ai-badge { position: absolute; left: 10px; top: auto; bottom: 10px; height: auto; line-height: 1.3; background: rgba(22,20,18,.78); color: #fff; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.tryon-photo .ai-badge.plain { background: rgba(255,255,255,.9); color: var(--ink-2); }
.tryon-make { margin-top: 12px; width: 100%; padding: 13px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 800 14.5px var(--sans); cursor: pointer; }
.tryon-make:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.tryon-why { margin: 8px 4px 0; font-size: 12.5px; color: var(--muted); text-align: center; min-height: 1em; }
.fit-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, rgba(22,20,18,.08)); }
.tryon-btn.soon { cursor: default; opacity: .55; filter: saturate(.6); }
.tryon-btn.soon small { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 2px; }
/* 첫 화면 사진 위 '브랜드별 맞춤 사이즈' 카드 (실제 데이터) */
.hero-overlay .hv-card2 { position: absolute; left: 18px; bottom: 40px; width: min(300px, calc(100% - 36px)); pointer-events: auto; text-decoration: none; color: var(--ink);
  background: rgba(255,253,250,.94); backdrop-filter: blur(6px); border-radius: 20px; padding: 14px 14px 8px; box-shadow: 0 18px 40px -18px rgba(59,42,34,.45); animation: pillIn .6s .4s cubic-bezier(.2,.8,.2,1) both; }
.hv2-title { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: -0.03em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hv2-title i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.hv2-title small { flex-basis: 100%; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.hv-card2 ul { list-style: none; margin: 0; padding: 0; }
.hv-card2 li { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(59,42,34,.08); font-size: 13px; }
.hv-card2 li img, .hv2-dot { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; }
.hv-card2 li b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-card2 li em { font-style: normal; font-weight: 800; color: var(--accent); background: #ffe6dc; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; }
.hv-card2 li span { font-size: 12px; color: var(--ink-2); }
.photo-credit { opacity: .7; }
@media (max-width: 860px) { .hero-overlay .hv-card2 { left: 14px; bottom: 30px; width: min(280px, calc(100% - 28px)); } }
/* 카드는 사진의 빈 벽(왼쪽 위)에 두어 강아지·옷을 가리지 않게 */
.hero-overlay .hv-card2 { top: 18px; bottom: auto; left: 18px; width: min(215px, calc(100% - 140px)); padding: 12px 12px 6px; border-radius: 18px; }
.hv2-title { font-size: 13px; }
.hv-card2 li { grid-template-columns: 28px 1fr auto; gap: 7px; padding: 6px 0; font-size: 12.5px; }
.hv-card2 li img, .hv2-dot { width: 28px; height: 28px; border-radius: 8px; }
.hv-card2 li > span:last-child { display: none; }
.hv-card2 li .hv2-dot { display: block; }
.hero-photo img { object-position: 68% 30%; }
@media (max-width: 860px) { .hero-overlay .hv-card2 { top: 14px; bottom: auto; left: 14px; width: min(220px, calc(100% - 28px)); } }
/* ── 첫 화면: 글과 사진이 한 장면처럼 이어지게 ── */
.hero-band { background: linear-gradient(100deg, var(--bg) 30%, #f3e8de 72%, #ecdccf 100%); overflow: hidden; }
.hero-band .hero { padding-top: 36px; padding-bottom: 36px; }
.hero-band .hero-photo { border-radius: 0; background: transparent; height: min(80vh, 640px); margin-right: -40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 34%); }
.hero-band .hero-photo::after { display: none; }
.hero-band .hero-photo img { object-position: 60% 40%; transform: none; animation: none; }
.hero-band .hero-text { position: relative; z-index: 3; }
.hero-band .hero-overlay .sticker, .hero-band .hero-overlay .hv-card2 { display: none; }
.hv-tag { position: absolute; right: 64px; top: 22px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,253,250,.86); backdrop-filter: blur(6px); font-size: 13px; color: var(--ink-2); letter-spacing: -0.02em; box-shadow: 0 10px 24px -14px rgba(59,42,34,.4); animation: pillIn .6s .4s cubic-bezier(.2,.8,.2,1) both; }
.hv-tag b { color: var(--ink); font-weight: 800; }
.hero-band .photo-credit { right: 52px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-band { background: var(--bg); } }
@media (max-width: 860px) {
  .hero-band { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 30%, #f3e8de 100%); }
  .hero-band .hero-photo { margin-right: -20px; height: 64vh; min-height: 400px; max-height: 560px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 88%, transparent 100%); }
  .hv-tag { right: auto; left: 50%; transform: translateX(-50%); top: auto; bottom: 40px; white-space: nowrap; font-size: 12.5px; animation: none; }
  .hero-band .photo-credit { right: 16px; }
}
@media (max-width: 480px) { .hero-band .hero-photo { margin-right: -18px; } }
/* 사진 위·아래 경계도 부드럽게 (왼쪽 페이드와 겹쳐 적용) */
@media (min-width: 861px) {
  .hero-band .hero-photo {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 34%), linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 34%), linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
    mask-composite: intersect;
  }
}
/* ── 첫 화면 v3: 사진을 화면 오른쪽 끝까지 깔고 테두리가 안 보이게 ── */
.hero-key b { font-weight: 800; }
@media (min-width: 861px) {
  .hero-band { position: relative; background: var(--bg); }
  .hero-band .hero { position: static; display: block; min-height: min(80vh, 640px); padding-top: 64px; padding-bottom: 64px; }
  .hero-band .hero-text { position: relative; z-index: 3; max-width: 46%; }
  .hero-band .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: auto; margin: 0; border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%), linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%), linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
    mask-composite: intersect; }
  .hero-band .hero-photo img { object-position: 55% 38%; }
}
/* 넓은 화면에서도 사진이 과하게 확대되지 않게: 사진 칸 너비를 사진 비율(약 4:5)에 맞춰 제한하고, 글 영역 쪽으로 붙임 */
@media (min-width: 861px) {
  .hero-band .hero-photo { width: min(60%, 760px); right: max(0px, calc(50% - 700px));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 16%, #000 38%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 16%, #000 38%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%); }
  .hero-band .hero-photo img { object-position: 50% 45%; }
}
@media (min-width: 861px) { .hero-band .hero-photo { width: min(54%, 580px); right: max(0px, calc(50% - 680px)); } .hero-band .hero-photo img { object-position: 50% 62%; } }
@media (min-width: 861px) { .hero-band .hero { min-height: min(86vh, 720px); display: flex; flex-direction: column; justify-content: center; } .hero-band .hero-photo img { object-position: 50% 30%; } }
@media (min-width: 861px) { .hero-band .hero { align-items: flex-start; } }
