/* 레시피 사이트 공통 스타일 */
:root {
  --bg: #f3f4f1;
  --card: #ffffff;
  --ink: #1d1f1c;
  --ink-2: #3b3e39;
  --ink-soft: #8b8f87;
  --ink-faint: #b1b5ad;
  --accent: #4f9440;
  --accent-tint: #a9e090;
  --line: rgba(50, 60, 50, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, 'Noto Sans KR', BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; }
.wrap { max-width: 480px; margin: 0 auto; padding-bottom: 44px; }

/* 상단 고지 */
.disclosure {
  position: sticky; top: 0; z-index: 10;
  padding: 11px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg);
  border-bottom: 0.5px solid var(--line);
}

.hero { text-align: center; padding: 26px 20px 28px; }
.hero .emoji { font-size: 56px; margin-bottom: 10px; }
.hero h1 { font-size: 26px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.hero p { font-size: 15px; color: var(--ink-soft); }

.label { font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 20px 20px 8px; }

.group { background: var(--card); margin: 0 16px; border-radius: 12px; overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-size: 15px; color: var(--ink-2);
}
.row + .row, .step + .step { border-top: 0.5px solid var(--line); }
.row .ico { font-size: 18px; flex-shrink: 0; }
.row.secret { cursor: pointer; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; font: inherit; text-align: left; }
.row.secret .name { color: var(--accent); font-weight: 600; }
.row.secret .chev { margin-left: auto; color: var(--accent); font-size: 18px; font-weight: 700; }

.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.step .num {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 50%;
  font-size: 12px; font-weight: 600;
}
.step strong { font-weight: 600; color: var(--ink); }
.secret-link {
  color: var(--accent); background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.tips { background: var(--card); margin: 10px 16px 0; border-radius: 12px; padding: 14px 16px; }
.tips .tips-label { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.tips ul { list-style: none; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.tips li::before { content: "· "; color: var(--accent); font-weight: 700; }

.cta { margin: 24px 16px 0; background: var(--ink); border-radius: 14px; padding: 24px 20px; text-align: center; }
.cta h2 { font-family: 'Gaegu', sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.4; }
.cta h2 span { color: var(--accent-tint); }

.btn {
  display: block; width: 100%;
  background: var(--accent); color: #fff; border: 0; border-radius: 12px;
  padding: 15px 0; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn:active { opacity: 0.85; }
.btn:disabled { opacity: 0.7; pointer-events: none; }

.share { margin: 10px 16px 0; background: var(--card); border-radius: 12px; padding: 18px 16px; text-align: center; }
.share h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.share p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.share .btns { display: flex; gap: 8px; justify-content: center; }
.share button {
  background: var(--bg); color: var(--ink-2); border: 0; border-radius: 10px;
  padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.share button.kakao { background: #fee500; color: #3a1d1d; }

.foot { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 20px; line-height: 1.7; padding: 0 20px; }

/* 핵심재료 바텀시트 */
.sheet {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  align-items: flex-end; justify-content: center;
}
.sheet.is-open { display: flex; }
.sheet .panel {
  width: 100%; max-width: 480px; background: var(--card);
  border-radius: 16px 16px 0 0; padding: 0 20px 40px; text-align: center;
  animation: up 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet .grip { width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, 0.2); margin: 10px auto 20px; }

.k-icon { font-size: 40px; margin-bottom: 8px; }
.k-title { font-family: 'Gaegu', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.k-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.6; }
.k-box { background: var(--bg); border-radius: 12px; padding: 16px; margin-bottom: 16px; cursor: pointer; }
.k-box:active { opacity: 0.7; }
.k-box .k-label { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 4px; }
.k-box .k-value { font-family: 'Gaegu', sans-serif; font-size: 26px; font-weight: 700; -webkit-user-select: all; user-select: all; }
.how { text-align: left; background: rgba(120, 120, 128, 0.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.how div { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; color: #555; }
.how b {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.k-note { font-size: 11px; color: var(--ink-faint); margin-top: 10px; }

/* 경유(go) 페이지: 카드 하나를 화면 가운데에 */
body.go { background: #fff; min-height: 100dvh; display: flex; flex-direction: column; }
body.go .disclosure { background: #fff; }
body.go main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
body.go .card {
  width: 100%; max-width: 380px; text-align: center;
  padding: 28px 22px 22px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.06);
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(12px); } to { opacity: 1; transform: none; } }
body.go .k-box { background: #fafafa; border: 1.5px dashed #dbdbdb; }

.toast {
  position: fixed; left: 50%; bottom: 44px; z-index: 2000;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 28, 30, 0.9); color: #fff;
  padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 목록 페이지 */
.list a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.list a + a { border-top: 0.5px solid var(--line); }
.list a .no { margin-left: auto; color: var(--ink-faint); font-size: 13px; }
