/* 등산하는 고양이 사이트 — 앱과 같은 종이·크레용 톤 (field-test/src/ui.tsx의 T와 같은 색) */
:root {
  --ink: #2f2d2a;
  --sub: #55514b;
  --muted: #7a766d;
  --faint: rgba(47, 45, 42, 0.14);
  --accent: #8a5a44;
  --seal: #b8452f;
  --ok: #4e8a6a;
  --bad: #c0564f;
  --paper: #fbf8f2;
  --card: #fffdf8;
  --wash: rgba(47, 45, 42, 0.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* 위쪽 줄 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--faint);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.2px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.lang-top { flex: none; padding: 5px 9px; border: 1px solid var(--faint); border-radius: 999px; background: none; color: var(--sub); font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.lang-top:hover { background: var(--wash); color: var(--ink); }
.nav a { color: var(--sub); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--wash); color: var(--ink); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* 홍보: 첫 화면 */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.6px; margin: 0 0 10px; }
h1 { font-weight: 300; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.18; letter-spacing: -1px; margin: 0 0 18px; }
h2 { font-weight: 300; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; letter-spacing: -0.6px; margin: 0 0 14px; }
h3 { font-weight: 500; font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--sub); font-size: 17px; font-weight: 300; margin: 0 0 26px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.ghost { background: var(--wash); color: var(--ink); }
.btn.seal { background: var(--seal); color: #fff; }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* 엽서 같은 장면 */
.postcard {
  border-radius: 22px; overflow: hidden; background: var(--card);
  box-shadow: 0 18px 40px rgba(47, 45, 42, 0.14), 0 2px 6px rgba(47, 45, 42, 0.06);
  aspect-ratio: 3 / 4;
}
.postcard img { width: 100%; height: 100%; object-fit: cover; }
.postcard.pvc { aspect-ratio: 53.98 / 85.6; max-width: 300px; margin-inline: auto; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; }
.story.flip .story-text { order: 2; }
.story-text p { color: var(--sub); font-weight: 300; font-size: 17px; margin: 0; }
.story-card { max-width: 400px; justify-self: center; width: 100%; }

/* 천천히 나타나기 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.band { background: #f3ede1; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); padding: 64px 0; margin-top: 40px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.tile { background: var(--card); border: 1px solid var(--faint); border-radius: 18px; padding: 20px; }
.tile p { color: var(--sub); font-size: 15px; margin: 0 0 14px; font-weight: 300; }

footer { color: var(--muted); font-size: 12px; padding: 40px 0 56px; line-height: 1.8; }
footer a { color: var(--muted); }
footer .biz { margin-top: 12px; font-size: 11.5px; line-height: 1.7; }

/* 공지·요청 */
.page-head { padding: 48px 0 12px; }
.page-head p { color: var(--sub); font-weight: 300; margin: 0; }
.page-head p.kicker { margin: 0 0 10px; color: var(--accent); font-weight: 600; } /* 위 규칙이 작은 제목을 덮지 않게 */
.list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 40px; }
.item { background: var(--card); border: 1px solid var(--faint); border-radius: 18px; padding: 18px 20px; }
.item .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item .body { color: var(--sub); white-space: pre-wrap; margin: 8px 0 0; font-weight: 300; }
.item .reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f6efe4; color: var(--ink); font-size: 14px; white-space: pre-wrap; }
.item .reply b { color: var(--accent); font-weight: 600; display: block; font-size: 12px; margin-bottom: 2px; }
.pin { color: var(--seal); font-weight: 600; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--wash); color: var(--sub); }
.badge.new { background: rgba(138, 90, 68, 0.12); color: var(--accent); }
.badge.doing { background: rgba(78, 138, 106, 0.14); color: var(--ok); }
.badge.done { background: var(--ok); color: #fff; }
.badge.no { background: rgba(192, 86, 79, 0.12); color: var(--bad); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vote { border: 1px solid var(--faint); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.vote.on { border-color: var(--seal); color: var(--seal); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.tab { border: 0; background: var(--wash); color: var(--sub); font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tab.on { background: var(--ink); color: var(--paper); }
/* 의견 남기기: 요청하기와 문제 알리기를 오간다 */
.page-switch { margin-top: 24px; }
.page-switch a { text-decoration: none; }
.page-switch + .page-head { padding-top: 22px; }

/* 폼 */
form.card { background: var(--card); border: 1px solid var(--faint); border-radius: 20px; padding: 22px; margin-top: 22px; }
label { display: block; font-size: 13px; color: var(--sub); margin: 14px 0 6px; }
input[type='text'], input[type='email'], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--faint); border-radius: 12px; padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(138, 90, 68, 0.35); border-color: transparent; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sub); margin-top: 12px; }
.check input { margin-top: 4px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }
.gpx-preview { margin-top: 10px; border-radius: 12px; background: #f3ede1; }
.msg { margin-top: 12px; font-size: 14px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

/* 관리자 */
.admin-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px 0 0; }
.admin-item textarea { min-height: 70px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.inline select { width: auto; }
.email { font-size: 13px; color: var(--accent); }

@media (max-width: 820px) {
  .hero, .story { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 40px; }
  .story { padding: 36px 0; }
  .story.flip .story-text { order: 0; }
  .story-card { max-width: 340px; }
  .cards3 { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; font-size: 13px; }
}

/* 스토리보드: 산행 하루를 장면 순서대로 */
.board { position: relative; }
.board::before {
  content: ''; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 0;
  border-left: 2px dashed rgba(138, 90, 68, 0.22);
}
.scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.scene.flip .scene-text { order: 2; }
.scene-no {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0.3px; color: var(--accent); margin-bottom: 8px;
}
.scene-no b {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--seal); color: #fff; font-size: 12px; font-weight: 600;
}
.scene-text p { color: var(--sub); font-weight: 300; font-size: 16.5px; margin: 0 0 12px; }
.feats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.feats li { font-size: 14.5px; color: var(--ink); padding-left: 20px; position: relative; }
.feats li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); opacity: 0.75; }
.tip {
  margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f3ede1; border: 1px dashed rgba(138, 90, 68, 0.35);
  font-size: 14px; color: var(--sub);
}
.tip.print-shop { margin-top: 10px; }
.tip.print-shop ol { margin: 8px 0 12px 18px; padding: 0; }
.tip.print-shop li { margin: 2px 0; }
.tip.print-shop .btn { margin-bottom: 6px; }
.tip.print-shop .fine { display: block; font-size: 12px; opacity: 0.75; }
.tip b { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 3px; letter-spacing: 0.2px; }
.scene-card { position: relative; max-width: 380px; width: 100%; justify-self: center; }
/* 장면 위에 앱이 실제로 띄우는 알림·말풍선 */
.chip {
  position: absolute; left: -18px; right: 24px; bottom: 26px;
  background: rgba(255, 253, 248, 0.94); border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(47, 45, 42, 0.18);
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45;
}
.chip img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.chip b { display: block; font-size: 13px; }
.chip span { color: var(--sub); }
.chip.at-top { top: 22px; bottom: auto; left: 24px; right: -18px; }
@media (max-width: 820px) {
  .board::before { display: none; }
  .scene { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .scene.flip .scene-text { order: 0; }
  .chip { left: 10px; right: 10px; }
  .chip.at-top { left: 10px; right: 10px; }
}

/* 좁은 화면에서 칸이 글 길이만큼 늘어나 화면 밖으로 넘치지 않게 */
.hero > *, .scene > *, .story > * { min-width: 0; }
@media (max-width: 820px) {
  .hero, .scene, .story { grid-template-columns: minmax(0, 1fr); }
  .nav a.wide { display: none; }
  .top { padding: 10px 16px; }
  .wrap, .narrow { padding: 0 16px; }
}

/* 휴대폰 폭: 브랜드와 메뉴를 한 줄에 (접히면 위쪽 줄이 두 배로 두꺼워진다) */
@media (max-width: 480px) {
  .top { gap: 8px; }
  .brand { flex: none; gap: 7px; font-size: 15px; white-space: nowrap; }
  .brand img { width: 26px; height: 26px; }
  .nav { flex-wrap: nowrap; gap: 0; white-space: nowrap; }
  .nav a { padding: 6px 7px; }
  form.card { padding: 18px; }
}
@media (max-width: 380px) {
  .top { gap: 4px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand img { width: 24px; height: 24px; }
  .nav a { padding: 6px 5px; font-size: 12.5px; }
}
/* 영어 메뉴는 글자가 길다: 폰에서는 로고만 두고 메뉴와 언어 전환에 자리를 준다 */
@media (max-width: 600px) {
  html[lang='en'] .brand { font-size: 0; gap: 0; }
}
@media (max-width: 340px) {
  .top { padding: 10px 10px; }
  .brand { font-size: 13px; gap: 5px; }
  .brand img { width: 22px; height: 22px; }
  .nav a { padding: 5px 3px; font-size: 12px; }
  .lang-top { padding: 4px 6px; font-size: 11.5px; }
}

/* 바닥글 위아래 여백: .wrap · .narrow 의 padding(0 20px)이 덮어쓰지 않게 */
footer.wrap, footer.narrow { padding-top: 28px; padding-bottom: 40px; margin-top: 36px; border-top: 1px solid var(--faint); }

/* hidden 속성은 언제나 숨긴다 (.btn 등의 display 가 덮어쓰지 않게) */
[hidden] { display: none !important; }

/* ───── 첫 화면: 크레용 능선 배경 + 휴대폰 세 대 (2026-11-01) ───── */
.hero-wide {
  position: relative; overflow: hidden;
  background: url('../img/hero-ridge.webp') center 62% / cover no-repeat;
  min-height: min(860px, 100vh);
  display: flex; align-items: center;
}
.hero-wide::before {
  /* 글이 읽히도록 왼쪽은 종이빛, 아래는 페이지 색으로 스며든다 */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 248, 242, 0.94) 0%, rgba(251, 248, 242, 0.78) 34%, rgba(251, 248, 242, 0.18) 62%, rgba(251, 248, 242, 0) 78%),
    linear-gradient(180deg, rgba(251, 248, 242, 0) 70%, var(--paper) 100%);
}
.hero-wide .wrap { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 72px; }

/* 휴대폰 */
.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 9px;
  background: #1f1d1b; box-shadow: 0 30px 60px rgba(47, 45, 42, 0.32), 0 6px 14px rgba(47, 45, 42, 0.16);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #ddd; }
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 72px; height: 20px; border-radius: 12px; background: #111; }
.phone .ui { position: absolute; inset: 0; padding: 46px 16px 14px; display: flex; flex-direction: column; color: var(--ink); }
.phone .ui.night { color: #fbf8f2; }
.phone .ui .k { font-size: 10px; opacity: 0.8; }
.phone .ui .t { font-size: 21px; font-weight: 300; line-height: 1.22; margin: 4px 0 6px; letter-spacing: -0.4px; }
.phone .ui .l { font-size: 10px; opacity: 0.8; line-height: 1.45; }
.phone .bar {
  margin-top: auto; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: space-around;
  background: rgba(255, 253, 248, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.phone .bar i { width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid rgba(47, 45, 42, 0.55); }
.phone .bar b { width: 34px; height: 34px; border-radius: 50%; background: var(--seal); }
.phone.p1 { left: 4%; top: 70px; transform: rotate(-7deg); z-index: 1; }
.phone.p2 { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; width: 268px; }
.phone.p3 { right: 4%; top: 80px; transform: rotate(7deg); z-index: 2; }
.phones-note { position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; font-size: 12px; color: var(--sub); }

@media (max-width: 980px) {
  .phone { width: 200px; } .phone.p2 { width: 214px; }
  .phones { height: 500px; }
}
@media (max-width: 820px) {
  .hero-wide { min-height: 0; background-position: 70% center; }
  .hero-wide::before { background: linear-gradient(180deg, rgba(251, 248, 242, 0.9) 0%, rgba(251, 248, 242, 0.55) 45%, rgba(251, 248, 242, 0.2) 70%, var(--paper) 100%); }
  .hero-wide .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 56px; }
  .phones { height: 430px; }
  .phone { width: 160px; border-radius: 28px; padding: 7px; } .phone .screen { border-radius: 22px; }
  .phone.p2 { width: 176px; }
  .phone .ui { padding: 34px 11px 10px; } .phone .ui .t { font-size: 16px; } .phone .bar { height: 38px; }
  .phone.p1 { left: -2%; top: 50px; } .phone.p3 { right: -2%; top: 58px; }
}

/* ───── 자랑하기: 꾸미기 · 정상 카드 (2026-11-01) ───── */
@font-face { font-family: 'Stone-Brush'; src: url('../fonts/Stone-Brush.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Stone-Block'; src: url('../fonts/Stone-Block.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Stone-Cursive'; src: url('../fonts/Stone-Cursive.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Stone-Myeongjo'; src: url('../fonts/Stone-Myeongjo.ttf') format('truetype'); font-display: swap; }
.show { padding-top: 72px; padding-bottom: 24px; } /* 좌우는 .wrap 여백을 그대로 */
.show-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.show-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 0; }
.show-row.flip > :first-child { order: 2; }
.show-row p { color: var(--sub); font-weight: 300; font-size: 16.5px; margin: 0 0 12px; }
.wardrobe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wardrobe figure { margin: 0; background: var(--card); border: 1px solid var(--faint); border-radius: 18px; padding: 14px 10px 10px; text-align: center; }
.wardrobe img { height: 170px; width: auto; margin: 0 auto; object-fit: contain; }
.wardrobe figcaption { font-size: 12px; color: var(--sub); margin-top: 6px; }
.swatches-demo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.swatches-demo figure { margin: 0; background: #f3ede1; border-radius: 14px; padding: 8px; text-align: center; }
.swatches-demo img { height: 86px; width: 100%; object-fit: contain; }
.swatches-demo span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--faint); margin-top: 4px; }

/* 정상 카드 (앱 CardMaker와 같은 꼴: 장면 + 정상석 글자 + 이름표 + 스탬프 + 앱 이름 띠) */
.cards-fan { position: relative; height: 530px; }
.hcard { position: absolute; width: 270px; background: #fffdf8; border-radius: 6px; box-shadow: 0 22px 44px rgba(47, 45, 42, 0.22), 0 3px 8px rgba(47, 45, 42, 0.1); overflow: hidden; }
.hcard .hscene { position: relative; aspect-ratio: 320 / 368; }
.hcard .hscene > img.bg { width: 100%; height: 100%; object-fit: cover; }
.hcard .engrave { position: absolute; display: flex; align-items: center; justify-content: center; gap: 2px; text-align: center; line-height: 1; }
.hcard .engrave .v { writing-mode: vertical-rl; letter-spacing: 1px; }
.hcard .hlabel { position: absolute; left: 12px; top: 10px; right: 90px; color: #2f2d2a; text-shadow: 0 1px 2px rgba(255, 253, 248, 0.85); }
.hcard .hlabel .d { font-size: 9.5px; opacity: 0.8; }
.hcard .hlabel b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; margin: 1px 0; }
.hcard .hlabel .s { font-size: 9.5px; }
.hcard .hlabel em { display: block; font-style: normal; font-size: 10px; margin-top: 4px; line-height: 1.35; }
.hcard .halo { position: absolute; right: 9px; bottom: 7px; width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 252, 246, 0.6); }
.hcard .hstamp { position: absolute; right: 13px; bottom: 11px; width: 58px; height: 58px; background: #a8321f; transform: rotate(-12deg);
  -webkit-mask: url('../img/stamp.png') center / contain no-repeat; mask: url('../img/stamp.png') center / contain no-repeat; }
.hcard .hfoot { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 9.5px; color: var(--sub); border-top: 1px solid var(--faint); }
.hcard .hfoot b { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.hcard .hfoot img { width: 13px; height: 13px; border-radius: 3px; }
.hcard.c1 { left: 0; top: 40px; transform: rotate(-6deg); z-index: 1; }
.hcard.c2 { left: 50%; top: 0; transform: translateX(-50%) rotate(1deg); z-index: 3; }
.hcard.c3 { right: 0; top: 50px; transform: rotate(7deg); z-index: 2; }

@media (max-width: 820px) {
  .show-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .show-row.flip > :first-child { order: 0; }
  .wardrobe img { height: 120px; }
  .cards-fan { height: 410px; }
  .hcard { width: 200px; }
  .hcard .hlabel b { font-size: 13px; }
  .hcard.c1 { left: 0; } .hcard.c3 { right: 0; } /* 화면 밖으로 빼면 페이지 전체가 옆으로 밀린다 */
}
.hcard .hscene { container-type: inline-size; }
/* 휴대폰 아래 설명이 가리지 않게 */
.phones { height: 640px; }
.phones-note { bottom: -28px; z-index: 5; }
@media (max-width: 980px) { .phones { height: 540px; } }
@media (max-width: 820px) { .phones { height: 440px; } .phones-note { bottom: -36px; } }

/* 우리 고양이들 · 넓힌 옷장 · 색 바꾸기 줄 */
.cats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 28px; }
.catcard { background: var(--card); border: 1px solid var(--faint); border-radius: 20px; padding: 18px 14px 14px; text-align: center; }
.catcard > img { height: 190px; width: auto; margin: 0 auto; object-fit: contain; }
.catcard h3 { margin: 10px 0 0; font-size: 17px; }
.catcard p { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.poses { display: flex; justify-content: center; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--faint); }
.poses img { height: 44px; width: 44px; object-fit: contain; }
.wardrobe.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wardrobe.six img { height: 150px; }
.colorline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.colorline figure { margin: 0; background: #f3ede1; border-radius: 14px; padding: 8px 6px; text-align: center; }
.colorline img { height: 92px; width: 100%; object-fit: contain; }
.colorline span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--faint); margin-top: 4px; }
@media (max-width: 820px) {
  .cats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catcard > img { height: 140px; }
  .poses img { height: 34px; width: 34px; }
  .colorline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wardrobe.six img { height: 110px; }
}

/* 첫 화면 휴대폰 다시 (2026-11-01 사용자: 겹치지 않게, 프레임은 덜 눈에 띄게, 안드로이드도) */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; height: auto; padding: 10px 0 44px; }
.phone, .phone.p1, .phone.p2, .phone.p3 {
  position: relative; left: auto; right: auto; top: auto; transform: none;
  width: 31%; max-width: 205px; padding: 4px; border-radius: 30px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 30px rgba(47, 45, 42, 0.14), 0 0 0 1px rgba(47, 45, 42, 0.06);
}
.phone.p1, .phone.p3 { margin-top: 36px; }
.phone .screen { border-radius: 26px; }
.phone .island { width: 8px; height: 8px; border-radius: 50%; top: 9px; background: rgba(20, 18, 16, 0.75); }
.phone .ui { padding: 34px 12px 12px; }
.phone .ui .t { font-size: 17px; }
.phone .bar { height: 40px; }
.phone .bar i { width: 15px; height: 15px; }
.phone .bar b { width: 28px; height: 28px; }
.phones-note { position: static; margin: 14px 0 0; flex-basis: 100%; }
.phones { flex-wrap: wrap; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 14px; background: rgba(47, 45, 42, 0.88); color: #fbf8f2; text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 10px; opacity: 0.75; line-height: 1.2; }
.store b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
@media (max-width: 820px) {
  .phones { gap: 10px; padding-bottom: 20px; }
  .phone, .phone.p1, .phone.p2, .phone.p3 { width: 31%; border-radius: 20px; padding: 3px; }
  .phone .screen { border-radius: 17px; }
  .phone.p1, .phone.p3 { margin-top: 22px; }
  .phone .ui { padding: 24px 7px 7px; } .phone .ui .t { font-size: 11px; } .phone .ui .k, .phone .ui .l { font-size: 7px; }
  .phone .bar { height: 26px; } .phone .bar i { width: 10px; height: 10px; } .phone .bar b { width: 18px; height: 18px; }
}
/* 넓은 화면에서도 세 대가 한 줄에 (간격을 빼고 3등분) */
.phone, .phone.p1, .phone.p2, .phone.p3 { flex: 0 0 calc((100% - 36px) / 3); width: auto; }
@media (max-width: 820px) { .phone, .phone.p1, .phone.p2, .phone.p3 { flex-basis: calc((100% - 20px) / 3); } }
.phones-note { color: var(--ink); text-shadow: 0 1px 3px rgba(251, 248, 242, 0.95), 0 0 8px rgba(251, 248, 242, 0.9); }
/* 휴대폰 화면 크게 (아래 메뉴 바 모형은 뺐다) */
.hero-wide .wrap { max-width: 1240px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: 40px; }
.phone, .phone.p1, .phone.p2, .phone.p3 { max-width: 250px; }
.phones { gap: 20px; }
.phone, .phone.p1, .phone.p2, .phone.p3 { flex-basis: calc((100% - 40px) / 3); }
.phone.p1, .phone.p3 { margin-top: 44px; }
.phone .ui .t { font-size: 19px; }
@media (max-width: 820px) {
  .hero-wide .wrap { grid-template-columns: minmax(0, 1fr); }
  .phones { gap: 10px; }
  .phone, .phone.p1, .phone.p2, .phone.p3 { flex-basis: calc((100% - 20px) / 3); }
  .phone.p1, .phone.p3 { margin-top: 22px; }
  .phone .ui .t { font-size: 12px; }
}
/* 휴대폰 프레임은 투명하게, 화면에 옅은 그림자만 (2026-11-01 사용자) */
.phone, .phone.p1, .phone.p2, .phone.p3 { background: transparent; padding: 0; box-shadow: none; }
.phone .screen { border-radius: 26px; box-shadow: 0 18px 36px rgba(47, 45, 42, 0.16), 0 3px 8px rgba(47, 45, 42, 0.08); }
.phone .island { display: none; }
@media (max-width: 820px) { .phone .screen { border-radius: 16px; } }
/* 스토리보드 장면의 정상석 글씨 (정상 카드와 같은 방식) */
.stone-host { position: relative; container-type: inline-size; }
.stone-host .engrave { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; }
.stone-host .engrave .v { writing-mode: vertical-rl; letter-spacing: 1px; }
/* 첫 화면 휴대폰 네 대 (봄 · 여름 · 가을 · 겨울) */
.phone, .phone.p1, .phone.p2, .phone.p3, .phone.p4 { flex: 0 0 calc((100% - 54px) / 4); max-width: 210px; margin-top: 0; }
.phones { gap: 18px; }
.phone.p1, .phone.p3 { margin-top: 40px; }
.phone .ui .t { font-size: 16px; }
@media (max-width: 820px) {
  .phones { gap: 8px; }
  .phone, .phone.p1, .phone.p2, .phone.p3, .phone.p4 { flex-basis: calc((100% - 24px) / 4); }
  .phone.p1, .phone.p3 { margin-top: 18px; }
  .phone .ui { padding: 18px 6px 6px; } .phone .ui .t { font-size: 9.5px; }
}

/* 정상 카드를 앱 CardMaker와 같은 꼴로 (가로 320 기준 비율, 1px = 0.3125cqw) */
.hcard { container-type: inline-size; background: #efe8dc; border-radius: 3px; }
.hcard .hlabel { left: 5.6cqw; top: 5.6cqw; right: 5.6cqw; background: rgba(255, 253, 249, 0.8); border-radius: 4.375cqw; padding: 3.44cqw 4.375cqw; text-shadow: none; }
.hcard .hlabel .d { display: block; font-size: 3.44cqw; color: var(--sub); letter-spacing: 0.31cqw; opacity: 1; font-variant-numeric: tabular-nums; }
.hcard .hlabel b { font-size: 6.56cqw; line-height: 1.29; font-weight: 300; color: var(--ink); margin: 0.6cqw 0 0; }
.hcard .hlabel .s { display: block; font-size: 3.75cqw; color: var(--sub); margin-top: 0.6cqw; }
.hcard .hlabel em { font-size: 3.75cqw; line-height: 1.42; color: var(--sub); font-weight: 300; margin-top: 1.56cqw; }
.hcard .halo { right: 2.5cqw; bottom: 1.9cqw; width: 24.4cqw; height: 24.4cqw; background: rgba(255, 252, 246, 0.62); }
.hcard .hstamp { right: 4.375cqw; bottom: 3.75cqw; width: 20.6cqw; height: 20.6cqw; opacity: 0.96; }
.hcard .hfoot { height: 10cqw; padding: 0 5.6cqw; background: var(--paper); border-top: 0; font-size: 2.97cqw; color: var(--muted); letter-spacing: 0.09cqw; }
.hcard .hfoot b { font-size: 3.6cqw; font-weight: 600; gap: 1.6cqw; letter-spacing: -0.06cqw; }
.hcard .hfoot svg { width: 7.4cqw; height: 5.2cqw; }
.hcard .hfoot img { display: none; }
/* 앱 카드와 같은 무지 PVC 카드 비율 53.98:85.6, 모서리 3.18mm — 폭 320 기준 장면 475.45 + 앱 이름 띠 32 */
.hcard { aspect-ratio: 53.98 / 85.6; border-radius: 5.89% / 3.72%; display: flex; flex-direction: column; }
.hcard .hscene { aspect-ratio: auto; height: 93.69%; flex: none; }
.hcard .hfoot { height: 6.31%; flex: none; }
/* 첫 화면 배경: 여름 산 (2026-11-01 사용자) */
.hero-wide { background-image: url('../img/hero-summer.webp'); background-position: center 70%; }
/* 고르기 버튼 (휴대폰 기본 선택 창 대신 — .chip 은 스토리보드 알림 상자라 다른 이름) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--faint); background: #fff; color: var(--sub); font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.opt.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* 새 공지 표시 */
.nav a.has-new { position: relative; }
.nav a.has-new::after { content: ''; position: absolute; top: 4px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 2px var(--paper); }
.new-notice { display: block; text-align: center; padding: 9px 16px; font-size: 13.5px; color: var(--ink); text-decoration: none; background: #f3ede1; border-bottom: 1px solid var(--faint); }
.new-notice b { font-weight: 600; }
.new-notice:hover { background: #efe6d6; }

/* 첫 화면 글씨: 그림 위에서도 읽히게 위쪽에 종이색을 깔고, 흐린 글자를 진하게 */
.phone .ui { background: linear-gradient(to bottom, rgba(251, 248, 242, 0.88) 0%, rgba(251, 248, 242, 0.72) 30%, rgba(251, 248, 242, 0) 52%); }
.phone .ui .k, .phone .ui .l { opacity: 1; font-weight: 500; }
.phone .ui .t { font-weight: 500; }
@media (max-width: 820px) { .phone .ui { background: linear-gradient(to bottom, rgba(251, 248, 242, 0.9) 0%, rgba(251, 248, 242, 0.78) 44%, rgba(251, 248, 242, 0) 66%); } }
.phones-note {
  flex-basis: auto; width: fit-content; margin: 14px auto 0; padding: 6px 14px; border-radius: 16px;
  background: rgba(255, 253, 248, 0.9); color: var(--ink); font-weight: 500; text-shadow: none;
}

/* 도감: 왼쪽 무대에 고양이를 겹쳐 입히고, 오른쪽에서 고른다 */
.dress { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; margin: 18px 0 40px; }
.dress-left { position: sticky; top: 72px; }
.stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: #e9e2d4; box-shadow: 0 18px 40px rgba(47, 45, 42, 0.14), 0 2px 6px rgba(47, 45, 42, 0.06); }
.layer { position: absolute; max-width: none; opacity: 0; transition: opacity 0.35s ease, left 0.5s ease, top 0.5s ease, width 0.5s ease, height 0.5s ease; pointer-events: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { .layer { transition: opacity 0.2s ease; } }
.layer.in { opacity: 1; }
.stage-tag { position: absolute; z-index: 40; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 253, 248, 0.92); font-size: 12px; font-weight: 500; }
.stage-poses { position: absolute; z-index: 40; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.stage-pose { border: 0; border-radius: 999px; padding: 5px 10px; background: rgba(255, 253, 248, 0.88); color: var(--sub); font: inherit; font-size: 13px; cursor: pointer; }
.stage-pose.on { background: var(--ink); color: var(--paper); }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding-top: 8px; }
.stage-foot .hint { margin: 0; }
.stage-foot .btn { flex: none; }
.stage-foot .btn[hidden] { display: none; }
/* 도감 칸 고르기: 작은 그림 + 글자에 얇은 밑줄만. 네 칸이 한 줄로 늘어서 있어 다른 칸이 있는 줄 알 수 있다 (2026-11-04 사용자) */
.dtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--faint); }
.dtab { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 6px 2px 12px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; transition: color 0.25s ease; }
.dtab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.3s ease; }
.dtab:hover, .dtab.on { color: var(--ink); }
.dtab.on::after { transform: scaleX(1); }
.dtab:focus-visible, .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.dtab-pic { flex: none; display: block; width: 26px; height: 26px; overflow: hidden; border-radius: 50%; opacity: 0.72; transition: opacity 0.25s ease; }
.dtab:hover .dtab-pic, .dtab.on .dtab-pic { opacity: 1; }
.dtab-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.dtab-name { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.dtab-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dnext { display: block; margin: 14px 0 0 auto; padding: 6px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: color 0.2s ease; }
.dnext:hover { color: var(--ink); }
.dnext:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* 테마: 한 세트의 풍경 · 등산길 · 정상석 · 실내를 함께 */
.theme { margin-bottom: 10px; padding: 12px; border: 1px solid var(--faint); border-radius: 16px; background: var(--card); }
.theme.on { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.theme-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tile { display: block; min-width: 0; padding: 0; border: 0; background: none; color: var(--sub); font: inherit; text-align: center; cursor: pointer; }
.tile-art { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #e9e2d4; }
.tile-art img { position: absolute; max-width: none; }
.tile.on .tile-art { box-shadow: 0 0 0 2px var(--seal); }
.tile-name { display: block; margin-top: 4px; font-size: 12px; }
.tile.on .tile-name { color: var(--seal); font-weight: 600; }
/* 정상석 글자 (앱의 Engraving) */
.cut-box { position: absolute; display: flex; justify-content: center; }
.cut-col { display: flex; flex-direction: column; align-items: center; }
.cut { display: block; font-weight: 700; opacity: 0.92; text-align: center; white-space: nowrap; }
#panel > .hint { margin: 14px 0 0; font-size: 13px; }
#panel > .chips { margin-top: 14px; }
.dhead { margin: 22px 0 8px; font-size: 15px; font-weight: 600; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 14px; }
.dhead + .dgrid { margin-top: 0; }
.dgrid.themes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dcard { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px; border: 1px solid var(--faint); border-radius: 16px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.dcard:hover { transform: translateY(-1px); }
.dcard:focus-visible, .stage-pose:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dcard.on { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.dpic { display: block; height: 88px; margin-bottom: 6px; }
.dpic img { width: 100%; height: 100%; object-fit: contain; }
.dcard.wide .dpic { height: 150px; overflow: hidden; border-radius: 10px; }
.dcard.wide .dpic img { object-fit: cover; object-position: center 62%; }
.dname { font-size: 14px; font-weight: 500; line-height: 1.35; }
.ddesc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dstate { font-size: 11px; color: var(--seal); font-weight: 500; }
.badge.paid { background: rgba(184, 69, 47, 0.12); color: var(--seal); font-weight: 500; }
.badge.free { background: rgba(78, 138, 106, 0.14); color: var(--ok); font-weight: 500; }
@media (max-width: 820px) {
  /* 휴대폰: 앱처럼 무대와 메뉴를 위에 붙이고 아이템 목록만 움직인다 (같이 움직이면 고르면서 결과를 볼 수 없다, 2026-11-04 사용자) */
  .dress { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dress-left { display: contents; }
  .stage { position: sticky; top: 62px; z-index: 6; aspect-ratio: 6 / 5; border-radius: 16px; box-shadow: 0 0 0 16px var(--paper); }
  .stage-foot { min-height: 0; padding-top: 24px; } /* 무대의 종이색 테두리(16px)에 가리지 않게 */
  .stage-foot:not(:has(.hint:not(:empty))):not(:has(.btn:not([hidden]))) { display: none; }
  .dtabs { position: sticky; top: calc(62px + var(--stage-h, 290px)); z-index: 7; margin: 0 -16px; padding: 4px 16px 0; background: var(--paper); }
  .dgrid.items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dgrid.items .dcard { padding: 6px; border-radius: 12px; }
  .dgrid.items .dpic { height: 54px; margin-bottom: 3px; }
  .dgrid.items .dname { font-size: 12px; }
  .dgrid.items .dmeta { display: none; }
  .dtab { gap: 4px; padding-bottom: 10px; }
  .dtab-pic { display: none; }
  .dtab-name { font-size: 13.5px; }
  .dtab-count { font-size: 11px; }
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* 도감: 플랜 (사이트에서는 결제하지 않고 안내만). 왼쪽에서 오른쪽으로 갈수록 더해지게 */
.plans { margin-top: 28px; padding: 44px 0 8px; border-top: 1px solid var(--faint); }
.plans-head { max-width: 560px; margin: 0 auto 26px; text-align: center; }
.plans-head h2 { margin-bottom: 8px; }
.plans-head p:last-child { margin: 0; color: var(--sub); font-weight: 300; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--faint); border-radius: 20px; background: var(--card); }
.plan.best { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal), 0 14px 30px rgba(184, 69, 47, 0.1); }
.plan-flag { position: absolute; left: 22px; top: -12px; padding: 3px 11px; border-radius: 999px; background: var(--seal); color: #fff; font-size: 12px; font-weight: 500; }
.plan h3 { margin: 0; font-size: 16px; font-weight: 600; }
.plan-price { margin: 8px 0 2px; color: var(--sub); font-size: 14px; }
.plan-price b { color: var(--ink); font-size: 30px; font-weight: 400; letter-spacing: -0.6px; }
.plan-year { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 500; }
.plan-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--faint); list-style: none; }
.plan-list li { position: relative; padding-left: 22px; color: var(--ink); font-size: 14.5px; }
.plan-list li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan-list li.new { color: var(--accent); font-weight: 500; }
.plan-list li.new::before { border-color: var(--accent); }
.plan-list li.more { padding-left: 0; color: var(--muted); font-size: 13px; }
.plan-list li.more::before { display: none; }
.own-head { margin: 28px 0 10px; font-size: 16px; font-weight: 600; }
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.own { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border: 1px solid var(--faint); border-radius: 18px; background: #f3ede1; }
.own h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.own p { margin: 0; color: var(--sub); font-size: 13px; }
.own-price { flex: none; text-align: right; }
.own-price b { display: block; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.25; }
.own-price span { color: var(--accent); font-size: 12px; font-weight: 500; }
.plans > .hint { margin-top: 14px; }
@media (max-width: 860px) {
  .plan-grid, .own-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-grid { gap: 18px; }
}

/* 레오 이야기: 사진과 글을 번갈아, 앱과 같은 종이 톤으로 */
.leo-hero { margin: 0; overflow: hidden; border-radius: 20px; }
.leo-hero img { width: 100%; height: auto; }
.leo-text h2 { font-size: clamp(24px, 3vw, 30px); }
.leo-text p { margin: 0 0 12px; color: var(--sub); font-size: 17px; font-weight: 300; line-height: 1.8; }
.leo-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 12px; }
.leo-row.flip .leo-text { order: 2; }
.leo-photo { margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 16px 34px rgba(47, 45, 42, 0.14), 0 2px 6px rgba(47, 45, 42, 0.06); }
.leo-photo img { width: 100%; height: auto; }
.leo-wide { margin-top: 56px; padding: 56px 0; background: #f3ede1; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.leo-wide .leo-text { margin-top: 28px; }
.leo blockquote { margin: 22px 0; padding-left: 16px; border-left: 3px solid var(--seal); color: var(--ink); font-size: 24px; font-weight: 300; line-height: 1.45; letter-spacing: -0.3px; }
.leo-end { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 24px; }
/* 정상석 이야기: 앱의 정상 카드 그대로 */
.hcard.leo-card { position: relative; width: 100%; max-width: 340px; justify-self: center; transform: rotate(-2deg); }
/* 마지막 사진: 레오 사진 위로 앱 알림이 뜨는 스토리 한 장 */
.leo-story { position: relative; margin: 0; overflow: hidden; border-radius: 26px; box-shadow: 0 16px 34px rgba(47, 45, 42, 0.16), 0 2px 6px rgba(47, 45, 42, 0.08); }
.leo-story > img { display: block; width: 100%; height: auto; }
.leo-story::before { content: ''; position: absolute; inset: 0 0 auto; height: 42%; background: linear-gradient(rgba(30, 28, 26, 0.34), rgba(30, 28, 26, 0)); }
.leo-story-bars { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; gap: 4px; }
.leo-story-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.42); }
.leo-story-bars i.on { background: #fff; }
.leo-story .chip { left: 12px; right: 12px; top: 28px; bottom: auto; }
.leo-last { color: var(--ink) !important; font-size: 21px !important; line-height: 1.55 !important; }
.leo-end .btns { margin-top: 18px; }
@media (max-width: 640px) {
  .leo-row, .leo-end { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  .leo-row.flip .leo-text { order: 0; }
  .leo-photo { max-width: 300px; justify-self: center; width: 100%; }
  .hcard.leo-card { max-width: 300px; }
  .leo-story { max-width: 320px; justify-self: center; width: 100%; }
  .leo-wide { margin-top: 40px; padding: 40px 0; }
}

/* 언어 고르기 (바닥글 맨 위) */
.lang-pick { display: flex; gap: 4px; margin-bottom: 10px; }
.lang-pick button { border: 0; border-radius: 999px; padding: 4px 11px; background: none; color: var(--sub); font: inherit; font-size: 13px; cursor: pointer; }
.lang-pick button.on { background: var(--wash); color: var(--ink); font-weight: 600; }
.lang-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: #f3ede1; color: var(--ink); font-size: 14px; }
