/* 토큰은 DESIGN.md 와 1:1 대응. 강조색은 --accent 하나만 쓴다. */
:root {
  --bg: #FBF8F4; --surface: #FFFFFF; --text: #221C18; --muted: #74695F; --line: #ECE4DA;
  --accent: #E0533A; --accent-ink: #C0402A; --accent-soft: #FDEDE8; --on-accent: #FFFFFF; --chip: #F3EDE6;
  --r-card: 16px; --r-btn: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120F; --surface: #1F1B18; --text: #F2EDE8; --muted: #A89D93; --line: #332D28;
    --accent: #FF8A70; --accent-ink: #FF9C86; --accent-soft: #3A231C; --on-accent: #1B0F0B; --chip: #2A2420;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: 1.75rem; line-height: 1.3; margin: 8px 0; }
h2 { font-size: 1.22rem; line-height: 1.4; margin: 40px 0 14px; }
.lead { color: var(--muted); margin: 4px 0 16px; }
.count { color: var(--muted); font-weight: 500; font-size: .78em; letter-spacing: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin: 20px 0 8px; }
.crumbs a { color: var(--muted); }
.sort-note, .hint { color: var(--muted); font-size: .88rem; margin: 12px 0; }

/* header */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { font-weight: 800; font-size: 1.12rem; text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.logo-dot { width: 12px; height: 12px; border-radius: 99px; background: var(--accent); display: inline-block; }
.top-nav { display: flex; gap: 16px; font-size: .95rem; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 40px 0 8px; }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: .9rem; margin: 0 0 8px; }
.hero h1 { font-size: 2.2rem; line-height: 1.28; }
.hl { color: var(--accent-ink); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--on-accent);
  padding: 13px 20px; border-radius: var(--r-btn); font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  text-decoration: none; min-height: 48px; }
.btn:hover { filter: brightness(.96); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.wide { width: 100%; }

/* section head */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head a { color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* stage tiles: 가로로 넘겨 보는 타임라인 */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 10px;
  overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tile { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.tile:hover { border-color: var(--accent); }
.tile .emoji { font-size: 1.9rem; line-height: 1.2; margin-bottom: 6px; }
.tile strong { font-size: .98rem; line-height: 1.35; }
.tile small { color: var(--muted); }

/* cards: 금액 → 이름 → 요약 → 마감·기관 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 18px; text-decoration: none; min-height: 150px; }
.card:hover { border-color: var(--accent); }
.amt { color: var(--accent-ink); font-weight: 800; font-size: 1.35rem; line-height: 1.2; margin: 0 0 6px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.amt.xl { font-size: 2.4rem; display: block; margin: 2px 0 0; }
.card h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 6px; }
.card .sum { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 12px; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.where { color: var(--muted); font-size: .8rem; }
.badge { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.badge.hot { background: var(--accent-soft); color: var(--accent-ink); }
.badge.closed { text-decoration: line-through; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { background: var(--chip); padding: 8px 14px; border-radius: 99px; font-size: .92rem; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--text); color: var(--bg); }
.chip.on small { color: inherit; opacity: .7; }
.chip.sm { padding: 4px 10px; font-size: .82rem; }

/* panel / checklist */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px 20px; margin-top: 16px; }
.panel h2 { margin-top: 18px; }
.stage-head { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.emoji.big { font-size: 3rem; line-height: 1; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: c; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.checklist strong { font-size: 1rem; line-height: 1.4; }
.ck-meta { color: var(--muted); font-size: .86rem; }
.ck-meta em { color: var(--accent-ink); font-style: normal; font-weight: 700; }
.ck { position: relative; flex: 0 0 auto; margin-top: 1px; }
.ck input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.ck .box { display: block; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--bg); }
.ck input:checked + .box { background: var(--accent); border-color: var(--accent); }
.ck input:checked + .box::after { content: ""; display: block; width: 7px; height: 13px; margin: 3px 0 0 8px;
  border: solid var(--on-accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ck input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
li.done strong { text-decoration: line-through; color: var(--muted); }
.share { margin: 8px 0 4px; }

/* service detail */
.svc { margin-top: 4px; }
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.svc h1 { margin-top: 12px; font-size: 1.9rem; }
.keybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; margin: 20px 0 8px; }
.k-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.k-none { display: block; font-size: 1.15rem; margin-top: 4px; }
.k-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.k-facts dt { font-size: .82rem; color: var(--muted); }
.k-facts dd { margin: 2px 0 0; font-weight: 600; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cta .btn { flex: 1 1 200px; }
.blk { padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.blk h2 { font-size: 1.12rem; margin: 22px 0 10px; }
.blk.muted { color: var(--muted); font-size: .94rem; }
.txt .li { display: inline-block; }
.meta { color: var(--muted); font-size: .82rem; margin-top: 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }

/* finder */
.finder { display: flex; flex-direction: column; gap: 14px; }
.finder fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px 18px; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px; }
.finder legend { font-weight: 800; padding: 0 4px; float: left; width: 100%; margin-bottom: 4px; }
.finder legend small { color: var(--muted); font-weight: 500; }
.finder select { font: inherit; padding: 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--bg); color: var(--text); flex: 1 1 200px; min-height: 48px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 10px 14px; border-radius: 99px; background: var(--chip); font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.pill input:checked + span { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
#more { margin: 16px 0; }

.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 28px 0; }
.pager a { font-weight: 700; text-decoration: none; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.events a { font-weight: 600; }
.ad { margin: 28px 0; min-height: 100px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: .92rem; z-index: 10; }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: .84rem; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.5rem; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 1.72rem; }
  .svc h1 { font-size: 1.5rem; }
  .amt.xl { font-size: 2rem; }
  .top-nav { gap: 12px; font-size: .9rem; }
  .hero-cta .btn { flex: 1 1 140px; }
}

/* 3D 아이콘 (Fluent Emoji 3D, MIT) */
.ico3d { display: inline-block; vertical-align: middle; object-fit: contain; flex: 0 0 auto; }
.ih { display: flex; align-items: center; gap: 10px; }
.tile .ico3d { margin-bottom: 8px; }

/* 트렌드 */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tcard { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 18px; text-decoration: none; }
.tcard:hover { border-color: var(--accent); }
.tcard h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 4px; }
.tcard p { color: var(--muted); font-size: .9rem; margin: 0 0 8px; line-height: 1.5; }
.src { font-size: .78rem; color: var(--accent-ink); font-weight: 700; }
.feature { display: flex; gap: 16px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--r-card); padding: 18px 20px; margin: 20px 0; text-decoration: none; }
.feature h2 { margin: 0 0 4px; }
.feature .lead { margin: 0; }
.feature .eyebrow { margin: 0 0 4px; }
.quotes { display: grid; gap: 10px; margin: 16px 0; }
.quote { margin: 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; }
.quote p { margin: 0 0 6px; font-weight: 700; }
.quote a { font-size: .84rem; color: var(--muted); }
.caution { background: var(--chip); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }

/* 순위 */
.rank { list-style: none; padding: 0; margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.rank li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank a { flex: 1; text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.rank .hint { margin: 0; font-size: .82rem; }
.rank .amt { margin: 0; font-size: 1.1rem; font-style: normal; white-space: nowrap; }
.rk { width: 32px; height: 32px; border-radius: 99px; background: var(--chip); display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: 0 0 auto; }
.rk.top { background: var(--accent); color: var(--on-accent); }

/* 밤·주말 소아과 */
.card.clinic { gap: 6px; }
.card-foot.top { margin: 0 0 4px; }
.clinic details { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.clinic summary { cursor: pointer; font-weight: 600; }
.hours { border-collapse: collapse; margin-top: 6px; width: 100%; }
.hours th { text-align: left; font-weight: 600; padding: 2px 10px 2px 0; width: 56px; }
.hours td { padding: 2px 0; font-variant-numeric: tabular-nums; }

/* ===== v3 UI: 검색 · 랭킹 · 탭바 · 모션 (DESIGN.md 토큰 그대로) ===== */
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.no-scroll { overflow: hidden; }
.top-in { flex-wrap: nowrap; }
.top-nav { flex: 1; justify-content: center; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); color: var(--muted); border: 1px solid transparent;
  border-radius: 99px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.search-btn:hover { border-color: var(--accent); color: var(--text); }

/* 카드 hover: 살짝 떠오르기 (그림자 대신 이동 + 선 색) */
.card, .tcard, .tile, .feature { transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s; }
@media (hover: hover) { .card:hover, .tcard:hover, .tile:hover, .feature:hover { transform: translateY(-3px); } }
.card:active, .tcard:active, .tile:active, .btn:active, .chip:active { transform: scale(.98); }

/* 히어로 검색 + 통계 */
.hero { padding-top: 32px; }
.eyebrow .pulse, .stats .pulse { margin-right: 4px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); vertical-align: middle;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-search { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin: 20px 0 4px; padding: 16px 18px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px; font: inherit; color: var(--muted); cursor: text; text-align: left; }
.hero-search:hover, .hero-search:focus-visible { border-color: var(--accent); outline: none; }
.hero-search span { font-size: 1.05rem; font-weight: 600; }
.hero-search small { font-weight: 500; opacity: .8; margin-left: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 24px 0 8px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.stats b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.stats .live b { color: var(--accent-ink); }

/* 2단 레이아웃 */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px; }
.split .side h2 { margin-top: 18px; }
.split .side .tiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); overflow: visible; }
.split .feature { margin: 12px 0 0; }
.split .feature h2 { font-size: 1.05rem; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .side .tiles { grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; } }

/* 랭킹 */
.rank-panel { padding-top: 6px; }
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 4px; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--accent); border-radius: 3px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; text-decoration: none; }
.rank-list a:hover strong { color: var(--accent-ink); }
.rk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-body strong { font-size: .98rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-meta { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-meta em { color: var(--accent-ink); font-style: normal; font-weight: 700; }
.bar { display: block; height: 6px; background: var(--chip); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; opacity: .85; }
.rank .bar { max-width: 360px; }
.delta { color: var(--accent-ink); font-weight: 800; font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.views { color: var(--muted); font-weight: 700; font-size: .84rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; line-height: 1.7; }
.rank-panel .hint { margin: 8px 0 0; font-size: .8rem; }

/* 검색 레이어 */
.search-layer { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, #000 40%, transparent); display: flex; justify-content: center; align-items: flex-start; padding: 64px 16px 16px; }
.search-panel { width: 100%; max-width: 640px; max-height: calc(100vh - 96px); overflow: auto; background: var(--surface); border-radius: 20px; padding: 16px; border: 1px solid var(--line); }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; font: inherit; font-size: 1.1rem; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 14px; background: var(--bg); color: var(--text); min-width: 0; }
.search-row input:focus { outline: none; }
.search-x { background: none; border: 0; font: inherit; color: var(--muted); font-weight: 600; cursor: pointer; padding: 0 8px; }
.search-hint { color: var(--muted); font-size: .84rem; font-weight: 600; margin: 14px 0 4px; }
.search-hint .chip { border: 1px solid transparent; font: inherit; font-size: .88rem; cursor: pointer; color: var(--text); }
.search-results { list-style: none; padding: 0; margin: 8px 0 0; }
.search-results li a { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-radius: 12px; text-decoration: none; }
.search-results li a:hover, .search-results li a:focus-visible { background: var(--chip); outline: none; }
.search-results span { color: var(--muted); font-size: .84rem; }
.search-results .none { color: var(--muted); padding: 16px 8px; }

/* 상세: 사회적 증거 + 하단 고정 신청 */
.proof { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.proof b { color: var(--text); font-variant-numeric: tabular-nums; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(110%); }
.sticky-cta.show { transform: none; }
.sc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-info strong { color: var(--accent-ink); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-info span { color: var(--muted); font-size: .8rem; }
.sticky-cta .btn { min-height: 44px; padding: 10px 22px; }

/* 하단 탭바 (모바일) */
.tabbar { display: none; }
@media (max-width: 720px) {
  .top-nav { display: none; }
  .search-btn span { display: none; }
  .search-btn { padding: 10px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--accent-ink); }
  .sticky-cta { display: flex; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .stats b { font-size: 1.35rem; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .card, .tcard, .tile, .feature { transition: none; } }
.search-layer[hidden] { display: none; }

/* 후기 */
.review-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.review-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--bg); }
.review-list a:hover { border-color: var(--accent); }
.review-list strong { line-height: 1.4; }
.rv-desc { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.rv-by { color: var(--muted); font-size: .78rem; }
.src-badge { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--chip); color: var(--muted); }
.src-badge.cafe { background: var(--accent-soft); color: var(--accent-ink); }
.rv-label { font-weight: 700; margin: 14px 0 8px; }
.rv-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.rv-link { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 12px; background: var(--chip); font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid transparent; }
.rv-link:hover { border-color: var(--accent); }
.rv-link::before { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--muted); }
.rv-link.blog::before, .rv-link.cafe::before { background: #03C75A; }
.rv-link.threads::before, .rv-link.x::before { background: var(--text); }
.rv-link.insta::before { background: #E1306C; }
.rv-link.youtube::before { background: #FF0033; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats b { font-size: 1.2rem; } .stats > div { padding: 12px; } }

/* 유튜브 */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vcard { margin: 0; }
.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.vthumb:hover img { transform: scale(1.04); }
.vcard iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; }
.play { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; margin: -21px 0 0 -30px; background: #FF0033; border-radius: 12px; }
.play::after { content: ""; position: absolute; left: 24px; top: 12px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.play.sm { position: relative; left: auto; top: auto; margin: 0; flex: 0 0 auto; width: 48px; height: 34px; }
.play.sm::after { left: 19px; top: 9px; border-width: 8px 0 8px 13px; }
.vcard figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.vcard figcaption a { font-weight: 700; font-size: .92rem; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard figcaption span { color: var(--muted); font-size: .78rem; }
.yt-search { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--bg); }
.yt-search:hover { border-color: #FF0033; }
.yt-search strong { display: block; }
.yt-search small { color: var(--muted); }

/* ===== v4: 따뜻하고 풍성하게 (DESIGN.md v2) ===== */
:root { --peach: #FFE9DF; --butter: #FFF4D6; --mint: #E3F5EC; --sky: #E5F0FC; --lilac: #F0E8FB; }
@media (prefers-color-scheme: dark) { :root { --peach: #3A2620; --butter: #352E1A; --mint: #1D3129; --sky: #1C2838; --lilac: #2A2236; } }
.pastel-0 { background: var(--peach) !important; } .pastel-1 { background: var(--butter) !important; }
.pastel-2 { background: var(--mint) !important; } .pastel-3 { background: var(--sky) !important; }
.pastel-4 { background: var(--lilac) !important; }
.tile, .chcard, .gcard { border-color: transparent; }
@view-transition { navigation: auto; }

/* 히어로: 따뜻한 빛 + 둥실 스티커 */
.hero { position: relative; isolation: isolate; }
.hero-glow { position: absolute; inset: -40px -16px auto; height: 520px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-glow i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-glow i:nth-child(1) { width: 360px; height: 360px; background: var(--peach); left: -60px; top: 20px; }
.hero-glow i:nth-child(2) { width: 300px; height: 300px; background: var(--butter); right: 10%; top: -40px; animation-delay: -6s; }
.hero-glow i:nth-child(3) { width: 260px; height: 260px; background: var(--lilac); right: -40px; top: 220px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-deco .st { position: absolute; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 10px 14px rgba(120, 70, 40, .12)); user-select: none; -webkit-user-drag: none; }
.st img, .st { transition: filter .2s; }
.st-1 { right: 4%; top: 30px; animation: float 7s ease-in-out infinite; }
.st-2 { right: 22%; top: -6px; animation: float 8s ease-in-out infinite -2s; }
.st-3 { right: 15%; top: 170px; animation: float 6s ease-in-out infinite -1s; }
.st-4 { right: 30%; top: 210px; animation: float 9s ease-in-out infinite -3s; }
.st-5 { right: 2%; top: 230px; animation: float 6.5s ease-in-out infinite -4s; }
.st-6 { right: 36%; top: 40px; opacity: .8; animation: float 11s ease-in-out infinite -5s; }
.st-7 { right: 9%; top: 330px; animation: float 8.5s ease-in-out infinite -2.5s; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -14px; rotate: 4deg; } }
@media (max-width: 1000px) { .st-4, .st-6, .st-7 { display: none; } .st-2 { right: 6%; top: -10px; width: 64px; height: 64px; } .st-1 { width: 84px; height: 84px; top: 110px; right: 2%; opacity: .9; } .st-3 { display: none; } .st-5 { display: none; } }
@media (max-width: 560px) { .hero-deco .st-1 { top: 64px; width: 64px; height: 64px; } .hero-deco .st-2 { top: 0; width: 52px; height: 52px; } .hero h1 { padding-right: 56px; } }

/* 파티클 (하트 터짐) */
.particle { position: fixed; z-index: 60; width: 28px; height: 28px; pointer-events: none; left: 0; top: 0; }

/* 카드 틸트 */
.tiltable { transform-style: preserve-3d; will-change: transform; }

/* 타일 아이콘 흔들기 */
@media (hover: hover) { .tile:hover .ico3d, .tcard:hover .ico3d, .feature:hover .ico3d, .gcard:hover .ico3d { animation: wiggle .6s ease-in-out; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; scale: 1; } 30% { rotate: -10deg; scale: 1.12; } 60% { rotate: 8deg; scale: 1.08; } }
.feature.mint { background: var(--mint); border-color: transparent; }

/* 메뉴 버튼 · 메뉴판 */
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--chip); cursor: pointer; margin-left: 8px; flex: 0 0 auto; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text); }
.menu-layer { position: fixed; inset: 0; z-index: 45; background: color-mix(in srgb, #000 35%, transparent); }
.menu-layer[hidden] { display: none; }
.menu-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg); overflow-y: auto; padding: 16px 20px 32px;
  border-radius: 24px 0 0 24px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-x { width: 40px; height: 40px; border: 0; border-radius: 99px; background: var(--chip); font-size: 1rem; cursor: pointer; color: var(--text); }
.menu-deco { position: absolute; right: 18px; top: 64px; opacity: .95; animation: float 7s ease-in-out infinite; pointer-events: none; }
.menu-sec { margin-top: 22px; display: flex; flex-direction: column; }
.menu-sec > p { color: var(--muted); font-size: .8rem; font-weight: 800; margin: 0 0 6px; letter-spacing: .02em; }
.menu-sec > a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.menu-sec > a:hover, .menu-grid a:hover { background: var(--chip); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.menu-grid a { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 12px; font-weight: 700; font-size: .9rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.menu-sec .chips .chip { font-size: .85rem; padding: 6px 12px; }
.menu-foot { color: var(--muted); font-size: .82rem; margin-top: 24px; }
.menu-foot a { color: var(--muted); }

/* 스크롤 진행바 · 맨 위로 */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.to-top { position: fixed; right: 16px; bottom: 24px; z-index: 25; width: 48px; height: 48px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.to-top[hidden] { display: none; }
@media (max-width: 720px) { .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); } .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: .7rem; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; } }
.tabbar button { display: none; }
@media (max-width: 720px) { .tabbar button { display: flex; } .tabbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; } }

/* 버튼 물결 */
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; pointer-events: none; transform: scale(0); }

/* 유튜브 채널 */
.ch-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.ch-chip { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; padding: 14px 6px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.ch-chip img { width: 64px; height: 64px; border-radius: 99px; object-fit: cover; background: var(--chip); }
.ch-chip strong { font-size: .82rem; line-height: 1.3; }
.ch-chip small { color: var(--muted); font-size: .74rem; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.chcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-card); text-decoration: none; border: 1px solid transparent; }
.chcard:hover { border-color: var(--accent); }
.ch-avatar { width: 72px; height: 72px; border-radius: 99px; object-fit: cover; flex: 0 0 auto; background: var(--surface); border: 3px solid var(--surface); }
.ch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: .7rem; vertical-align: 2px; }
.ch-subs { font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.ch-desc { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.ch-go { width: 36px; height: 36px; border-radius: 99px; background: #FF0033; color: #fff; display: grid; place-items: center; font-size: .8rem; flex: 0 0 auto; }

/* 소아과 안내 */
.emergency { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-card); padding: 16px 18px; margin: 16px 0; }
.emergency div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.emergency span { color: var(--muted); font-size: .9rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-card); text-decoration: none; border: 1px solid transparent; }
.gcard:hover { border-color: var(--accent); }
.gcard span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.gcard em { font-style: normal; font-weight: 800; color: var(--accent-ink); margin-top: auto; }
.tips { margin: 0 0 8px; padding-left: 20px; } .tips li { margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .hero-glow i, .hero-deco .st, .menu-deco { animation: none; } }
