:root {
  --gold: #C8932B;
  --gold-light: #E8C56A;
  --gold-dim: #A57518;
  --ink: #1F1B16;
  --ink-soft: #4A413A;
  --ink-mute: #8A8077;
  --cream: #FBF6EC;
  --paper: #F4ECD8;
  --line: rgba(31, 27, 22, 0.08);
  --line-strong: rgba(31, 27, 22, 0.15);
  --accent: #C03A2B;

  /* 카테고리 색 */
  --cat-한식: #D94B3F;
  --cat-일식: #2C5DA0;
  --cat-중식: #D49A1F;
  --cat-양식: #2D8C7D;
  --cat-카페: #8B5E3C;
  --cat-분식: #E66B98;
  --cat-술집: #6B3FA0;
  --cat-동남아: #4A9D5C;
  --cat-치킨: #C76B2B;
  --cat-기타: #6B6B6B;
  --cat-기타양식: #6B6B6B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html {
  /* 모바일 overscroll 영역도 cream으로 채움 */
  background: var(--cream);
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior-y: none;
}

button {
  font: inherit; color: inherit;
  background: none; border: none; cursor: pointer;
}

/* =================== TOP BAR =================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--cream);
  padding: 18px 16px 12px;
  padding-top: max(18px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.title-row {
  display: flex; align-items: center; gap: 8px;
}
.brand-title {
  font-family: 'Jua', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 24px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
  background: none !important; border: none;
  padding: 0; margin: 0;
  cursor: pointer;
  display: inline-flex; align-items: center;
  transition: opacity 80ms;
  -webkit-appearance: none;
  appearance: none;
}
.brand-title:focus { outline: none; }
.brand-title:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.brand-title .brand-landmark {
  margin-right: 8px;
  flex-shrink: 0;
  transform: translateY(-3px);
  filter:
    drop-shadow(0 1.5px 2px rgba(31,27,22,0.35))
    drop-shadow(0 0 0.5px rgba(232,197,106,0.6));
}
.brand-title .brand-divider {
  margin-left: 8px;
  color: var(--gold-dim);
  flex-shrink: 0;
  transform: translateY(-3px);
}
.brand-tag {
  font-size: 11px; color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color 100ms;
}
.brand-tag:hover { color: var(--ink-soft); }
.action-row {
  display: flex; align-items: center; gap: 8px;
}

.entry-pick {
  flex: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 120ms;
}
.entry-pick:active { background: var(--paper); }
.entry-pick .entry-icon { font-size: 14px; }
.entry-pick .entry-name { flex: 1; text-align: left; }
.entry-pick .entry-name .entry-hint {
  color: var(--ink-mute);
  font-weight: 500;
  margin-left: 4px;
}
.entry-pick .entry-arrow { color: var(--ink-mute); font-size: 11px; }

.share-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--gold-light);
  border-radius: 50%;
  transition: transform 120ms;
}
.share-btn:active { transform: scale(0.94); }

.install-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--gold-dim);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transition: transform 120ms, background 120ms;
}
.install-btn:active { transform: scale(0.94); background: var(--paper); }
.install-btn[hidden] { display: none; }

/* =================== MAP =================== */
.map-section {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.map-area {
  width: 100%; aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 25% 40%, rgba(200,147,43,0.06) 0, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(192,58,43,0.04) 0, transparent 50%),
    #f3eedd;
  position: relative;
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--ink-mute);
  pointer-events: none;
  transition: opacity 200ms;
}
.map-placeholder.hidden { opacity: 0; pointer-events: none; }
.map-placeholder .ph-icon { font-size: 36px; }
.map-placeholder .ph-title { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.map-placeholder .ph-note { font-size: 12px; }

/* 지도 위 커스텀 마커 (CustomOverlay) */
.map-marker {
  position: relative;
  cursor: pointer;
  transform: translateY(-4px);
}
.map-marker .mk-pin {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 0 0 1px var(--line);
  transition: transform 140ms;
}
/* 순위 없는 마커 — 더 작게 */
.map-marker.no-rank .mk-pin {
  width: 22px; height: 22px;
}
.map-marker.no-rank .mk-pin .m {
  width: 14px; height: 14px;
}
.map-marker.no-rank::after {
  border-top-width: 6px;
  bottom: -4px;
}
.map-marker:hover .mk-pin { transform: scale(1.1); }
.map-marker .mk-pin .m {
  width: 18px; height: 18px;
}
.map-marker .mk-pin .m::before { content: ''; }
.map-marker .mk-rank {
  position: absolute; top: -2px; right: -2px;
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
/* 핀 꼬리 */
.map-marker::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.legend {
  padding: 12px 16px 16px;
  background: #fff;
}
.legend-title {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.legend-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 8px;
}
.legend-row.legend-trust {
  margin-top: 4px; padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-soft);
}
.legend-trust .trust-key {
  display: inline-flex; align-items: center; gap: 6px;
}

/* =================== MARKER (순수 시각 표시) =================== */
.m {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--mk, #999);
  position: relative;
}
.m[data-cat="한식"] { --mk: var(--cat-한식); }
.m[data-cat="일식"] { --mk: var(--cat-일식); }
.m[data-cat="중식"] { --mk: var(--cat-중식); }
.m[data-cat="양식"] { --mk: var(--cat-양식); }
.m[data-cat="카페"] { --mk: var(--cat-카페); }
.m[data-cat="분식"] { --mk: var(--cat-분식); }
.m[data-cat="술집"] { --mk: var(--cat-술집); }
.m[data-cat="동남아"] { --mk: var(--cat-동남아); }
.m[data-cat="치킨"] { --mk: var(--cat-치킨); }
.m[data-cat="기타"], .m[data-cat="기타양식"] { --mk: var(--cat-기타); }

/* 신뢰도 — 테두리 */
.m.h { box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 3.5px rgba(0,0,0,0.05); }
.m.mid { box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 0 2.5px rgba(0,0,0,0.05); }
.m.low { box-shadow: 0 0 0 1.5px var(--ink-mute), 0 0 0 2.5px rgba(0,0,0,0.05); }

/* 동네 침투도 별 */
.m.penetrate::after {
  content: '⭐';
  position: absolute;
  top: -10px; right: -8px;
  font-size: 11px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Legend item — 마커 + 텍스트 라벨 */
.leg-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
  letter-spacing: -0.01em;
}
.leg-item .m { width: 12px; height: 12px; }

/* Category chip (카드용) */
.cat-chip {
  font-size: 11px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.cat-chip[data-cat="한식"] { color: var(--cat-한식); }
.cat-chip[data-cat="일식"] { color: var(--cat-일식); }
.cat-chip[data-cat="중식"] { color: var(--cat-중식); }
.cat-chip[data-cat="양식"] { color: var(--cat-양식); }
.cat-chip[data-cat="카페"] { color: var(--cat-카페); }
.cat-chip[data-cat="분식"] { color: var(--cat-분식); }
.cat-chip[data-cat="술집"] { color: var(--cat-술집); }
.cat-chip[data-cat="동남아"] { color: var(--cat-동남아); }
.cat-chip[data-cat="치킨"] { color: var(--cat-치킨); }
.cat-chip[data-cat="기타"], .cat-chip[data-cat="기타양식"] { color: var(--cat-기타); }

/* =================== TOP 5 LIST =================== */
.topfive {
  padding: 18px 16px 8px;
}
.section-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.title-district { color: var(--accent); }
.title-suffix { color: var(--ink); }
.section-sub {
  font-size: 13px; color: var(--ink-mute);
  margin-bottom: 14px;
}

.restaurant-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.restaurant-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  transition: background 120ms, transform 120ms;
  cursor: pointer;
}
.restaurant-card:active { background: var(--paper); transform: scale(0.99); }
.restaurant-card .rank {
  font-family: 'Times New Roman', 'Apple SD Gothic Neo', serif;
  font-size: 24px; font-weight: 700;
  color: var(--gold-dim);
  text-align: center;
}
.restaurant-card .body { min-width: 0; }
.restaurant-card .name {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.restaurant-card .meta {
  font-size: 13px; color: var(--ink-soft);
  margin-top: 3px;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.restaurant-card .meta strong { color: var(--ink); font-weight: 700; }
.restaurant-card .badge-side {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-left: 6px;
}
.restaurant-card .star {
  font-size: 14px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
.restaurant-card .marker-mini {
  width: 14px; height: 14px; border-radius: 50%;
}

/* 침투도 ⭐ 작은 가게 — 강조 띠 */
.restaurant-card.penetrate-strong {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(232,197,106,0.08) 0%, #fff 60%);
}

/* 네이티브 AD 카드 — 일반 카드와 유사하지만 subtle 차별화 */
.restaurant-card.ad-card {
  background: linear-gradient(135deg, rgba(200,147,43,0.06) 0%, rgba(232,197,106,0.10) 100%);
  border-color: rgba(200,147,43,0.25);
  cursor: default;
}
.restaurant-card.ad-card .ad-rank {
  font-family: 'Pretendard', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  border: 1px solid var(--line-strong);
  padding: 3px 6px;
  border-radius: 4px;
  width: auto;
  align-self: center;
}
.restaurant-card.ad-card .name {
  color: var(--gold-dim);
  font-weight: 800;
}
.restaurant-card.ad-card .meta {
  color: var(--ink-soft);
}
.restaurant-card.ad-card .ad-cta {
  background: var(--ink);
  color: var(--gold-light);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: transform 100ms;
  align-self: center;
}
.restaurant-card.ad-card .ad-cta:active {
  transform: scale(0.95);
}

/* "동네 단골" 태그 hover/focus 툴팁 */
.penetrate-tag {
  position: relative;
  cursor: help;
  color: var(--gold-dim);
  font-weight: 600;
}
.penetrate-tag::after {
  content: "그 동네 지역구 의원이 자주 가는 식당 (침투도 25%+)";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: 280px;
  white-space: normal;
  width: max-content;
  max-width: min(80vw, 280px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms, transform 160ms;
  transform: translateX(-50%) translateY(4px);
  z-index: 60;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  line-height: 1.4;
  text-align: center;
}
.penetrate-tag::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  transition: opacity 160ms;
}
.penetrate-tag:hover::after,
.penetrate-tag:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.penetrate-tag:hover::before,
.penetrate-tag:focus::before {
  opacity: 1;
}

/* 더보기 버튼 */
.show-more-wrap {
  list-style: none;
  margin-top: 6px;
}
.show-more-btn {
  width: 100%;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 120ms;
}
.show-more-btn:active { background: var(--cream); }
.show-more-btn strong { color: var(--ink); font-weight: 800; }
.show-more-btn .more-arrow {
  font-size: 11px;
  color: var(--ink-mute);
}

/* =================== FOOTER =================== */
.page-footer {
  padding: 20px 16px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  font-size: 11px; color: var(--ink-mute);
  text-align: center;
  line-height: 1.7;
}
.page-footer strong { color: var(--ink-soft); }

/* =================== 금도깨비 앱 배너 (하단 sticky) =================== */
.app-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
  animation: slideUpBanner 240ms cubic-bezier(.16,1,.3,1);
}
.app-banner[hidden] { display: none; }
.ab-icon {
  font-size: 28px; line-height: 1;
  flex-shrink: 0;
}
.ab-body { flex: 1; min-width: 0; line-height: 1.25; }
.ab-brand {
  font-size: 15px; font-weight: 800;
  color: var(--gold-light); letter-spacing: -0.02em;
}
.ab-copy {
  font-size: 12px; color: rgba(255,255,255,0.78);
  margin-top: 2px; letter-spacing: -0.01em;
}
.ab-cta {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700; font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 100ms, background 100ms;
  flex-shrink: 0;
}
.ab-cta:active { transform: scale(0.95); background: var(--gold-light); }
.ab-close {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 100ms;
}
.ab-close:active { background: rgba(255,255,255,0.15); }


/* =================== BOTTOM SHEET =================== */
.sheet {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end;
}
.sheet[hidden] { display: none; }
.sheet-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  animation: fade 160ms ease;
}
.sheet-content {
  position: relative;
  width: 100%; max-width: 600px; margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 16px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  max-height: 80vh; overflow-y: auto;
  animation: slideUp 180ms cubic-bezier(.16, 1, .3, 1);
}
.sheet-grip {
  width: 36px; height: 4px;
  background: var(--line-strong); border-radius: 2px;
  margin: 0 auto 12px;
}
.sheet-title {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.sheet-hint {
  font-size: 12px; color: var(--ink-mute);
  margin-bottom: 16px;
}
.sheet-group { margin-bottom: 18px; }
.sheet-group-title {
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.sheet-group-title .cnt {
  color: var(--ink-soft); font-weight: 600;
  margin-left: 4px;
}
.entry-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.entry-list .entry-btn {
  display: block; width: 100%;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 120ms, border-color 120ms;
}
.entry-list .entry-btn .e-count {
  font-size: 11px; color: var(--ink-mute);
  font-weight: 500; margin-top: 2px;
}
.entry-list .entry-btn:active { background: var(--cream); }
.entry-list .entry-btn.active {
  background: #fff; border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,147,43,0.18);
}

/* 풀이 작은 광역 entry — 살짝만 톤 다운, 클릭 가능 명확 */
.entry-list .entry-btn.sparse .e-count {
  color: var(--ink-mute);
}

/* 전국 버튼 — 단독, full width, 강조 */
.entry-list.nationwide-row {
  grid-template-columns: 1fr;
}
.entry-list .entry-btn.entry-nationwide {
  background: var(--ink);
  color: var(--gold-light);
  padding: 14px 16px;
  font-size: 15px;
}
.entry-list .entry-btn.entry-nationwide.active {
  background: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-light), 0 4px 12px rgba(31,27,22,0.25);
}
.entry-list .entry-btn.entry-nationwide .e-count {
  color: var(--gold-light); opacity: 0.7;
}

/* =================== MODAL (식당 상세) =================== */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
}
.modal[hidden] { display: none; }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal-content {
  position: relative;
  width: calc(100% - 32px); max-width: 480px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px;
  animation: pop 200ms cubic-bezier(.22,.61,.36,1);
}
.modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px;
  font-size: 24px; color: var(--ink-mute);
}
.detail-name {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.detail-cat-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.detail-cat-row .m { width: 12px; height: 12px; }
.detail-cat-row .cat-name {
  font-size: 13px; color: var(--ink-soft);
}
.detail-addr {
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 16px;
}
.detail-penetrate-explain {
  background: rgba(232,197,106,0.12);
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.detail-penetrate-explain strong { color: var(--ink); font-weight: 700; }
.detail-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 16px;
}
.detail-stats .stat {
  background: var(--paper);
  border-radius: 8px;
  padding: 12px;
}
.detail-stats .stat .key {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.detail-stats .stat .val {
  font-size: 22px; font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}
.detail-stats .stat .val.gold { color: var(--gold-dim); }
.detail-link {
  display: block; text-align: center;
  background: var(--ink);
  color: var(--gold-light);
  text-decoration: none;
  border-radius: 8px; padding: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.detail-link:active { background: #2b2520; }

/* iOS install instruction modal */
.modal-content-narrow { max-width: 380px; }
.ios-install {
  text-align: center;
  padding: 8px 4px;
}
.ios-install-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.ios-install h3 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ios-install-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.5;
}
.ios-install-steps {
  list-style: none;
  text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 10px;
}
.ios-install-steps li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  counter-increment: step;
  position: relative;
  padding-left: 28px;
}
.ios-install-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.ios-install-steps strong { color: var(--ink); font-weight: 700; }
.ios-share-icon {
  display: inline-block;
  background: #007AFF;
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  margin: 0 2px;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

/* 설치 완료 toast */
.install-toast {
  position: fixed;
  bottom: 20px;
  left: 16px; right: 16px;
  max-width: 400px; margin: 0 auto;
  background: var(--ink);
  color: #fff;
  padding: 14px 40px 14px 16px;
  border-radius: 10px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
  animation: slideUpToast 280ms cubic-bezier(.16,1,.3,1);
}
.install-toast .toast-title {
  font-size: 14px; font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.install-toast .toast-body {
  font-size: 12.5px; line-height: 1.5;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}
.install-toast .toast-body strong { color: #fff; font-weight: 700; }
.install-toast .toast-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
@keyframes slideUpToast {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 데스크탑 미리보기용 — 모바일 폭 고정 */
@media (min-width: 700px) {
  body { background: #2a2926; padding: 24px 0; }
  body > * { max-width: 420px; margin-left: auto; margin-right: auto; }
  body > main, body > .topbar { background: var(--cream); }
}
