:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --surface: #ffffff;
  --line: #e4e8ee;
  --text: #12151b;
  --text-dim: #646d7c;
  --brand: #ff3a44;
  --brand-ink: #ffffff;
  --rocket: #1d6fe0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --r: 14px;
  --head-h: 60px;
}

:root[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-soft: #12151c;
  --surface: #151920;
  --line: #262b35;
  --text: #eef1f6;
  --text-dim: #99a2b2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip:focus {
  position: fixed; z-index: 100; top: 8px; left: 8px;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: 8px;
}

/* ---------- 상단 제휴 고지 바 ---------- */
.disclosure-top {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px; line-height: 1.5;
  text-align: center;
  padding: 8px 16px;
}
.disclosure-top b { color: var(--text); font-weight: 700; }

.disclosure-inline {
  margin: 8px 0 14px;
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
}

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  height: var(--head-h);
  display: flex; align-items: center; gap: 12px;
}

.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand-mark { font-size: 22px; }
.brand b { color: var(--brand); }

.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }

.search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
  fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round;
}

#q {
  width: 100%; height: 42px;
  padding: 0 38px 0 38px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); color: var(--text);
  font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
#q::-webkit-search-cancel-button { display: none; }
#q:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.q-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-dim);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.q-clear:hover { background: var(--line); }

.icon-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer;
  transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--text-dim); }
.theme-ico::after { content: "🌙"; font-size: 17px; }
:root[data-theme="dark"] .theme-ico::after { content: "☀️"; }

/* ---------- 고지 배너 ---------- */
.notice {
  background: #fff4e5; color: #7a4a00;
  border-bottom: 1px solid #ffd9a0;
  font-size: 13px; text-align: center;
  padding: 9px 16px;
}
:root[data-theme="dark"] .notice { background: #2e2103; color: #ffd08a; border-color: #4a3506; }

/* ---------- 필터 ---------- */
.filters {
  position: sticky; top: var(--head-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text-dim);
  font-size: 13px; font-weight: 600; font-family: inherit;
  white-space: nowrap; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip[aria-selected="true"] {
  background: var(--text); border-color: var(--text); color: var(--bg);
}

.filter-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.spacer { flex: 1; }

.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  cursor: pointer; user-select: none;
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-ui {
  width: 36px; height: 20px; border-radius: 999px;
  background: var(--line); position: relative;
  transition: background .18s;
}
.toggle-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .18s;
}
.toggle input:checked + .toggle-ui { background: var(--rocket); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:checked ~ span { color: var(--text); }
.toggle input:focus-visible + .toggle-ui {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rocket) 35%, transparent);
}

#sort {
  height: 34px; padding: 0 30px 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}

/* ---------- 히어로 (베스트 특가) ---------- */
.hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 78%);
  padding-bottom: 6px;
}
.hero-in { padding: 26px 16px 6px; }
.hero-title {
  margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.22;
  font-size: clamp(22px, 4.6vw, 34px);
}
.hero-title b { color: var(--brand); }
.hero-sub {
  margin: 9px 0 0; color: var(--text-dim);
  font-size: clamp(13px, 2vw, 15.5px); line-height: 1.5;
}
.hero-sub b { color: var(--text); font-weight: 700; }

.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 15px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); text-align: left; font-family: inherit;
}
.stat.clickable { cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.stat.clickable:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}
.stat.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.stat-num { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.stat-num.brand { color: var(--brand); }
.stat-num.drop { color: #0aa06e; }
.stat-label { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }

.spotlight-wrap { margin-top: 24px; }
.spotlight-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.spotlight-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.spotlight-hint { font-size: 11.5px; color: var(--text-dim); }
.spotlight {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.spotlight::-webkit-scrollbar { height: 6px; }
.spotlight::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.spot {
  flex: 0 0 auto; width: 188px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.spot:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}
.spot-thumb { position: relative; aspect-ratio: 1; background: var(--bg-soft); }
.spot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.spot-disc { background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 9px; border-radius: 9px; letter-spacing: -.02em; }
.spot-drop { background: #0aa06e; color: #fff; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 7px; box-shadow: 0 2px 8px rgba(10, 160, 110, .4); }
.spot-gold { background: linear-gradient(135deg, #f7b733, #e8890c); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 7px; box-shadow: 0 2px 8px rgba(232, 137, 12, .4); }
.spot-body { padding: 11px 12px 13px; }
.spot-name { margin: 0; font-size: 13px; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spot-price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.spot-now { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.spot-was { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }

@media (max-width: 640px) {
  .spot { width: 150px; }
  .hero-in { padding-top: 20px; }
}

/* ---------- 최근 본 상품 ---------- */
.recent { padding: 18px 0 4px; }

.recent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.recent-title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }

.recent-strip {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: thin;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.recent-strip::-webkit-scrollbar { height: 6px; }
.recent-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.rc {
  flex-shrink: 0; width: 84px;
  text-decoration: none; color: inherit;
  scroll-snap-align: start;
}
.rc img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); display: block;
  transition: border-color .15s;
}
.rc:hover img { border-color: var(--brand); }
.rc-name {
  margin: 5px 0 0; font-size: 11px; line-height: 1.35; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.link-btn {
  border: 0; background: none; padding: 0;
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--text); }

/* ---------- 카운트 ---------- */
.count-row { display: flex; align-items: center; gap: 12px; }
.count {
  flex: 1;
  padding: 18px 0 12px;
  font-size: 13px; color: var(--text-dim); font-weight: 600;
}
.count b { color: var(--text); }

/* ---------- 그리드 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr));
  gap: 14px;
  padding-bottom: 8px;
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  outline: none;
}
.card:active { transform: translateY(-1px); }

.thumb { position: relative; aspect-ratio: 1; background: var(--bg-soft); }
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s ease;
}
.card:hover .thumb img { transform: scale(1.04); }

.badge-discount {
  position: absolute; top: 8px; left: 8px;
  background: var(--brand); color: var(--brand-ink);
  padding: 3px 8px; border-radius: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: -.02em;
}

/* 직전 수집분보다 실제로 내려간 가격에만 붙는다 */
.badge-drop {
  position: absolute; left: 8px; bottom: 8px;
  background: #0aa06e; color: #fff;
  padding: 3px 8px; border-radius: 7px;
  font-size: 11px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(10, 160, 110, .4);
}

.tag-new { color: #0aa06e; background: color-mix(in srgb, #0aa06e 14%, transparent); }

/* 골드박스 = 쿠팡이 직접 고른 오늘의 특가.
   실데이터엔 discountRate가 없어 badge-discount와 겹치지 않으므로 좌상단 공유. */
.badge-gold {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #f7b733, #e8890c);
  color: #fff; font-weight: 800; font-size: 11px;
  padding: 3px 8px; border-radius: 7px;
  box-shadow: 0 2px 8px rgba(232, 137, 12, .4);
}

/* ---------- 카드 액션 (찜 · 공유) ---------- */
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; min-width: 0; }

.card-actions {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; gap: 5px;
  opacity: 0; transform: translateY(-2px);
  transition: opacity .15s, transform .15s;
}
.card-wrap:hover .card-actions,
.card-wrap:focus-within .card-actions { opacity: 1; transform: none; }

.act {
  border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 13px; font-weight: 700; font-family: inherit; line-height: 1;
  padding: 6px 8px; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.act:hover { background: var(--brand); }
.act:active { transform: scale(.9); }
.act-wish.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.act-wish.on:hover { background: #fff; }

/* 토스트 알림 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: #12151b; color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
:root[data-theme="dark"] .toast { background: #2a2f3a; }

/* 재방문 알림 배너 (찜한 상품 가격 내림) */
.wish-alert {
  display: block; width: 100%;
  margin: 18px 0 4px;
  padding: 14px 18px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(100deg, #0aa06e, #0a8a90);
  color: #fff; font-family: inherit;
  font-size: 15px; font-weight: 700; text-align: left;
  box-shadow: 0 6px 18px rgba(10, 160, 110, .3);
  transition: transform .12s;
}
.wish-alert:hover { transform: translateY(-1px); }

/* 찜 카드(스트립) — 최근 본 상품(.rc)에 가격/내림 정보를 더한 형태 */
.wc { flex-shrink: 0; width: 116px; text-decoration: none; color: inherit; scroll-snap-align: start; }
.wc img { width: 116px; height: 116px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); display: block; }
.wc-name { margin: 6px 0 2px; font-size: 11.5px; line-height: 1.3; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6em; }
.wc-price { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.wc-drop { display: block; font-size: 11px; font-weight: 700; color: #0aa06e; margin-top: 1px; }

@media (max-width: 640px) {
  .card-actions { opacity: 1; transform: none; }
  .act { padding: 7px 9px; font-size: 14px; }
}

/* 토스트 알림 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: #12151b; color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
:root[data-theme="dark"] .toast { background: #2a2f3a; }

@media (max-width: 640px) {
  .share-btn { opacity: 1; transform: none; padding: 6px 10px; }
}

.body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.name {
  margin: 0;
  font-size: 13.5px; line-height: 1.4; font-weight: 500;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.tags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 19px; }
.tag {
  font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px;
  background: var(--bg-soft); color: var(--text-dim);
}
.tag-rocket { color: var(--rocket); background: color-mix(in srgb, var(--rocket) 12%, transparent); }

.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.price { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.base { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }

/* 가격 인하 근거 (이전가 · 인하액/인하율) */
.drop-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 2px; }
.drop-prev { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }
.drop-amt { font-size: 12px; font-weight: 800; color: #0aa06e; }
.checked-at { display: block; margin-top: 3px; font-size: 11px; color: var(--text-dim); }

.cta {
  margin-top: 2px;
  font-size: 12px; font-weight: 700; color: var(--brand);
  opacity: 0; transform: translateY(-3px);
  transition: opacity .16s, transform .16s;
}
.card:hover .cta, .card:focus-visible .cta { opacity: 1; transform: none; }

/* 이미 눌러본 상품 표시 */
.card.seen .thumb::after {
  content: "본 상품";
  position: absolute; top: 8px; right: 8px;
  background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px;
}

/* ---------- 스켈레톤 ---------- */
.sk {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.sk-thumb { aspect-ratio: 1; }
.sk-line { height: 11px; border-radius: 5px; margin: 9px 12px; }
.sk-thumb, .sk-line {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- 빈 상태 / 끝 ---------- */
.empty { text-align: center; padding: 72px 16px; }
.empty-emoji { font-size: 44px; margin: 0 0 6px; }
.empty-title { margin: 0 0 18px; color: var(--text-dim); font-size: 15px; }

.btn {
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text);
  padding: 9px 18px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer;
}
.btn:hover { border-color: var(--text-dim); }

.sentinel { height: 1px; }
.end { text-align: center; color: var(--text-dim); font-size: 13px; padding: 28px 0; }

/* ---------- 맨 위로 ---------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); cursor: pointer;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: opacity .2s, transform .2s;
}
.totop[hidden] { display: none; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.totop:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* ---------- 카테고리 페이지 (build-pages.mjs 생성물) ---------- */
.crumb {
  padding: 14px 16px 0;
  font-size: 12.5px; color: var(--text-dim);
}
.crumb a { color: var(--text-dim); text-decoration: none; }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.crumb span[aria-hidden] { opacity: .5; margin: 0 2px; }

.cat-h1 {
  margin: 18px 0 4px;
  font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.03em;
}
.cat-lead { margin: 0 0 18px; font-size: 14px; color: var(--text-dim); }
.cat-lead a { color: var(--brand); font-weight: 600; text-decoration: none; }
.cat-lead a:hover { text-decoration: underline; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px; margin-bottom: 8px;
}
.hub-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.hub-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.hub-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); }
.hub-emoji { font-size: 44px; line-height: 64px; }
.hub-name { font-size: 14px; font-weight: 700; }
.hub-count { font-size: 12px; color: var(--text-dim); }

/* ---------- 푸터 ---------- */
.footer {
  margin-top: 40px; padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.disclosure {
  margin: 0 0 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.footer-sub { margin: 0; font-size: 12px; color: var(--text-dim); }
.footer-nav { margin: 12px 0 0; font-size: 13px; }
.footer-nav a { color: var(--brand); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-links {
  margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 12.5px;
}
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 신뢰 페이지 (info/*) ---------- */
.info { max-width: 760px; padding-top: 8px; padding-bottom: 40px; }
.info h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 20px; }
.info h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.info p { font-size: 15px; line-height: 1.7; color: var(--text); margin: 0 0 12px; }
.info ul { padding-left: 20px; margin: 0 0 14px; }
.info li { font-size: 15px; line-height: 1.7; margin: 4px 0; }
.info strong { font-weight: 700; }
.info a { color: var(--brand); text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info code { background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.info .muted { color: var(--text-dim); font-size: 13.5px; }

@media (max-width: 640px) {
  .brand-text { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
  .cta { display: none; }
  .name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card:hover { transform: none; }
  .card:hover .thumb img { transform: none; }
}
