:root {
  --bg: #f6f2ea;
  --card: #ffffff;
  --ink: #1b1a17;
  --ink2: #3d3a35;
  --muted: #6b665e;
  --line: #e4ddd1;
  --empty: #dcd3c4;
  --accent: #f2483b;
  --accent-dark: #c9352a;
  --accent-soft: #ffe3df;
  --radius: 16px;
  --tabbar-h: 68px;
  --maxw: 480px;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: #ebe5da;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px #ddd5c8, 0 10px 40px rgba(60, 40, 20, .08);
}
#view { padding: 4px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); outline: none; }

/* 상단 */
.topbar {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px;
  background: rgba(246, 242, 234, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.logo { display: grid; grid-template-columns: 11px 11px; gap: 2px; }
.logo i { width: 11px; height: 11px; border-radius: 2.5px; background: var(--empty); display: block; }
.logo i.on { background: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* 하단 탭 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); z-index: 950;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fffdf9; border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: #8a847a; font-size: 12px; font-weight: 700;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--ink); }
.tabbar .tab-add .plus {
  width: 46px; height: 28px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(242, 72, 59, .35);
}
.tabbar .tab-add .plus svg { width: 22px; height: 22px; }
.tabbar .tab-add { color: var(--ink); }

/* 공통 */
h1 { font-size: 24px; line-height: 1.3; margin: 10px 0 6px; letter-spacing: -0.5px; }
h2 { font-size: 19px; margin: 22px 0 10px; letter-spacing: -0.3px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:disabled { background: #e9b7b2; border-color: #e9b7b2; cursor: not-allowed; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip .dot { width: 10px; height: 10px; border-radius: 3px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .cnt { font-weight: 800; color: var(--accent); }
.chip.on .cnt { color: #ffb4a8; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 13px; font-weight: 800; color: #fff; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 15px; }
.stars .off { color: #d9d2c5; }

/* 지도 화면 */
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.map-head .who { font-size: 15px; font-weight: 700; color: var(--ink2); }
.big-num { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.big-num small { font-size: 17px; font-weight: 800; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.progress { height: 10px; border-radius: 99px; background: var(--empty); overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; min-width: 4px; }
.stat-line { display: flex; gap: 14px; font-size: 14.5px; color: var(--ink2); font-weight: 600; }
.stat-line b { color: var(--ink); font-weight: 800; }

.nemo-wrap {
  position: relative; margin: 12px -16px 0; height: calc(min(100vw, var(--maxw)) * 0.94 + 64px); max-height: 72vh; min-height: 340px;
  background: var(--bg); touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nemo-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.nemo-wrap canvas:active { cursor: grabbing; }
.map-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-ctrl button {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff;
  font-size: 22px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.map-ctrl button svg { width: 20px; height: 20px; }
.legend { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font-size: 12.5px; font-weight: 700; color: var(--ink2); display: flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.map-hint { position: absolute; left: 12px; top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; pointer-events: none; }

.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.thumbs a { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--empty); display: block; text-decoration: none; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .noimg { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 13px; font-weight: 800; color: #fff; line-height: 1.3; }
.thumbs .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumbs .lk { position: absolute; right: 6px; top: 5px; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

/* 피드 카드 */
.feed { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.post { overflow: hidden; }
.post-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; flex: none; text-decoration: none; }
.post-top .name { font-weight: 800; font-size: 15.5px; text-decoration: none; }
.post-top .meta { font-size: 13px; color: var(--muted); }
.gallery { position: relative; background: #ece6db; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; display: block; }
.gallery .count { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.nophoto { position: relative; aspect-ratio: 16 / 7; background: var(--bg); overflow: hidden; }
.nophoto canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.np-label {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 11px;
  background: #fff; font-weight: 900; font-size: 16px; letter-spacing: -0.3px; box-shadow: 0 2px 10px rgba(40, 30, 20, .12);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-label i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.post-body { padding: 12px 14px 14px; }
.post-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 15px;
}
.like-btn svg { width: 22px; height: 22px; }
.like-btn.on { color: var(--accent); border-color: #ffc9c2; background: var(--accent-soft); }
.like-btn.pop svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.place { font-size: 18px; font-weight: 900; letter-spacing: -0.3px; margin: 2px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place a { text-decoration: none; }
.where { font-size: 14px; color: var(--ink2); font-weight: 600; }
.memo { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; color: var(--ink); }

/* 폼 */
.field { margin: 14px 0; }
.field > label, .field > .label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 7px; }
.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #d8d0c2; background: #fff; font-size: 16px; outline: none;
}
textarea.input { height: 100px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 26, 23, .08); }
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; }
.results { margin-top: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.results button { display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.results button:last-child { border-bottom: 0; }
.results button:hover { background: #faf7f2; }
.results .t { font-weight: 800; font-size: 15.5px; }
.results .s { font-size: 13.5px; color: var(--muted); }
.pick-map { height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 10px; z-index: 0; }
.picked { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.picked.ok { color: #1f7a4d; }
.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-pick button { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.cat-pick button i { width: 12px; height: 12px; border-radius: 3px; }
.cat-pick button.on { border: 2px solid var(--ink); }
.photo-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-pick .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--empty); }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 15px; line-height: 24px; padding: 0; }
.photo-pick label.add { aspect-ratio: 1; border-radius: 10px; border: 2px dashed #cfc6b7; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; background: #fff; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { border: 0; background: none; font-size: 32px; line-height: 1; padding: 0 2px; color: #d9d2c5; }
.star-pick button.on { color: #f5a623; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #ece6db; border-radius: 12px; padding: 4px; }
.seg.seg3 { grid-template-columns: repeat(3, 1fr); }
.select {
  height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 34px 0 14px;
  font-weight: 800; font-size: 14.5px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231b1a17' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
/* 소셜 로그인 버튼 */
.social { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.sbtn {
  position: relative; height: 54px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16.5px; text-decoration: none; border: 1px solid transparent;
}
.sbtn .sicon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; }
.sbtn .sicon svg { width: 22px; height: 22px; }
.sbtn.kakao { background: #fee500; color: rgba(0, 0, 0, .85); }
.sbtn.naver { background: #03c75a; color: #fff; }
.sbtn.google { background: #fff; color: #1f1f1f; border-color: #d6d2cb; }
.sbtn.apple { background: #000; color: #fff; }
.sbtn.off { opacity: .5; }
.sbtn .soon { position: absolute; right: 14px; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .1); }
.sbtn.naver .soon, .sbtn.apple .soon { background: rgba(255, 255, 255, .25); }
.logo.big { display: inline-grid; grid-template-columns: 22px 22px; gap: 4px; margin-bottom: 8px; }
.logo.big i { width: 22px; height: 22px; border-radius: 5px; }
.dev-link { display: block; text-align: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pw-login { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.pw-login summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; list-style: none; }
.pw-login summary::-webkit-details-marker { display: none; }
.pw-login .auth { padding-top: 10px; }
/* 상세: 카카오맵·네이버지도 연결 */
.ext-title { margin: 16px 2px 8px; font-size: 14.5px; font-weight: 800; color: var(--ink2); }
.ext-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.btn.ext { padding: 0 8px; font-size: 15px; }
.btn.ext .ic svg { width: 18px; height: 18px; }
.btn.ext.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.btn.ext.naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.err { color: #c62828; font-weight: 700; font-size: 14.5px; margin: 8px 0; min-height: 1em; }

/* 로그인 */
.auth { padding-top: 12px; }
.hero { text-align: center; padding: 18px 4px 6px; }
.hero h1 { font-size: 26px; }
.hero p { color: var(--ink2); font-size: 16px; margin: 6px 0 0; }

/* 랭킹 */
.rank-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; }
.rank-item .no { width: 28px; text-align: center; font-weight: 900; font-size: 18px; color: var(--muted); }
.rank-item.top .no { color: var(--accent); }
.rank-item .nm { font-weight: 800; font-size: 16px; }
.rank-item .sub { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rank-item .cells { margin-left: auto; text-align: right; font-weight: 900; font-size: 20px; }
.rank-item .cells small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }

/* 바텀시트 */
.sheet { position: fixed; inset: 0; z-index: 2000; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 15, 10, .35); animation: fade .2s; }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--maxw);
  max-height: 78vh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  animation: up .22s ease;
}
.sheet-grip { width: 42px; height: 5px; border-radius: 9px; background: #cfc6b7; margin: 4px auto 10px; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.sheet h3 { margin: 4px 0 2px; font-size: 19px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px; text-decoration: none; }
.mini img, .mini .noimg { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; }
.mini .noimg { display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; }
.mini .t { font-weight: 800; font-size: 15.5px; }
.mini .s { font-size: 13px; color: var(--muted); font-weight: 600; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 18px; border-radius: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 3000; max-width: calc(min(var(--maxw), 100vw) - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty-box { text-align: center; padding: 34px 16px; color: var(--muted); font-weight: 700; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); font-weight: 700; }
.more { margin: 16px 0; }
.detail-map { height: 200px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; z-index: 0; }
.leaflet-container { font: inherit; }
.pin { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }

/* 약관 링크 · 가입 동의 · 탈퇴 */
.legal-foot { margin: 28px 0 6px; text-align: center; font-size: 14px; color: var(--ink2); line-height: 1.9; }
.legal-foot a { color: var(--ink2); text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.55; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.agree a { color: var(--accent-dark); }
.me-links { display: flex; flex-direction: column; margin-top: 24px; overflow: hidden; }
.me-links a { padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.me-links a:last-child { border-bottom: 0; }
.btn.danger { background: #d93a2f; border-color: #d93a2f; color: #fff; }
.btn.danger:disabled { opacity: .45; cursor: not-allowed; }
.danger-text { color: #b3261e; }

/* 공유 */
.btn.kakao-share { background: #fee500; border-color: #fee500; color: rgba(0, 0, 0, .85); }
.btn.kakao-share .ic svg { width: 20px; height: 20px; }
.share-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.share-list .btn { height: 52px; font-size: 16px; }
.link-btn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ink2); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 사진으로 한번에 채우기 */
.imp-lead { font-size: 16px; color: var(--ink); margin: 4px 0 8px; line-height: 1.6; }
.imp-notes { margin: 0 0 16px; padding-left: 1.2em; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
.imp-pick { height: 56px; font-size: 17px; }
.imp-status { margin: 12px 0; font-weight: 800; color: var(--ink2); }
.imp-sum { padding: 14px 16px; font-size: 15px; font-weight: 600; line-height: 1.65; color: var(--ink); }
.imp-sum b { font-weight: 900; }
.imp-list { display: flex; flex-direction: column; gap: 12px; }
.imp-card { padding: 12px 14px; transition: opacity .15s; }
.imp-card.off { opacity: .55; }
.imp-top { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; cursor: pointer; flex-wrap: wrap; }
.imp-top input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; flex: none; }
.imp-top .sub { font-weight: 600; color: var(--muted); font-size: 14px; }
.imp-thumbs { display: flex; gap: 6px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.imp-thumbs img, .imp-thumbs .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: var(--empty); }
.imp-label { font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; line-height: 1.5; }
.imp-place .select, .imp-place .input { width: 100%; }
.imp-place .input { margin-top: 6px; }
.imp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.imp-cats button { height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); cursor: pointer; }
.imp-cats button i { width: 10px; height: 10px; border-radius: 3px; }
.imp-cats button.on { border: 2px solid var(--ink); }
.imp-foot { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 6px); background: var(--bg); padding: 12px 0 6px; margin-top: 12px; border-top: 1px solid var(--line); z-index: 5; }
.imp-cta { margin-top: 10px; }
.imp-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 6px 0 4px; background: var(--accent-soft); border: 1px solid #ffc9c2; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.45; }
.imp-banner b { font-size: 15.5px; }
.imp-banner .ic svg { width: 26px; height: 26px; color: var(--accent-dark); }
.imp-banner .arr { margin-left: auto; font-size: 26px; color: var(--accent-dark); font-weight: 700; }

/* =========================================================
   디자인 v2 (2026-10): 더 크고 진한 글씨, 부드러운 카드, 또렷한 버튼
   ========================================================= */
:root {
  --bg: #f7f3ec;
  --ink: #15130f;
  --ink2: #2e2a24;
  --muted: #5a554c;
  --line: #e5ddcf;
  --empty: #ddd4c4;
  --radius: 18px;
  --maxw: 520px;
  --tabbar-h: 70px;
  --shadow-1: 0 1px 2px rgba(45, 32, 18, .05), 0 6px 18px rgba(45, 32, 18, .06);
  --shadow-2: 0 2px 6px rgba(45, 32, 18, .08), 0 14px 34px rgba(45, 32, 18, .12);
  background: #ece5d9;
}
body { font-size: 17px; line-height: 1.55; letter-spacing: -0.15px; }
/* 큰 화면: 옆 여백에 은은한 네모 무늬 */
@media (min-width: 640px) {
  :root { background-color: #ebe3d6; background-image: linear-gradient(#e4dbcc 1px, transparent 1px), linear-gradient(90deg, #e4dbcc 1px, transparent 1px); background-size: 22px 22px; }
}
#app { box-shadow: 0 0 0 1px #ddd3c3, 0 20px 60px rgba(60, 40, 20, .10); }
#view { padding: 2px 18px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.6px; margin: 12px 0 6px; }
h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.4px; margin: 26px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.lead { font-size: 16.5px; color: var(--ink2); margin: 0 0 10px; line-height: 1.6; }

/* 상단 바 */
.topbar { height: 60px; padding: 0 18px; background: rgba(247, 243, 236, .9); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(45, 32, 18, .05); }
.brand { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.logo { grid-template-columns: 12px 12px; }
.logo i { width: 12px; height: 12px; border-radius: 3px; }

/* 하단 탭 */
.tabbar { background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(45, 32, 18, .05); }
.tabbar a { font-size: 12.5px; font-weight: 800; color: #7d776c; gap: 4px; position: relative; }
.tabbar a svg { width: 25px; height: 25px; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active:not(.tab-add)::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); transform: translateX(-50%); }
.tabbar .tab-add .plus { width: 52px; height: 34px; border-radius: 12px; box-shadow: 0 6px 16px rgba(242, 72, 59, .38); transition: transform .15s; }
.tabbar .tab-add:active .plus { transform: scale(.94); }

/* 버튼 */
.btn { height: 50px; padding: 0 20px; border-radius: 14px; font-size: 16.5px; font-weight: 800; border-color: #ddd4c5; transition: transform .12s, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, a:focus-visible { outline: 3px solid rgba(242, 72, 59, .45); outline-offset: 2px; }
.btn.primary { box-shadow: 0 6px 16px rgba(242, 72, 59, .26); }
.btn.primary:hover:not(:disabled) { background: #e83e31; }
.btn.primary:disabled { background: #ecc0bb; border-color: #ecc0bb; box-shadow: none; }
.btn.dark { box-shadow: 0 6px 16px rgba(21, 19, 15, .18); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 15px; border-radius: 11px; }
.btn.lg { height: 58px; font-size: 18px; border-radius: 16px; }
.btn svg, .btn .ic svg { width: 20px; height: 20px; }

/* 카드·칩·입력 */
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-1); }
.chip { height: 40px; padding: 0 15px; font-size: 15px; font-weight: 800; border-color: #ddd4c5; }
.chip .dot { width: 11px; height: 11px; }
.badge { height: 26px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.stars { font-size: 16px; }
.input, textarea.input { height: 54px; border-radius: 14px; font-size: 17px; padding: 0 16px; border-color: #d6ccbc; }
textarea.input { height: 110px; padding: 14px 16px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21, 19, 15, .08); }
.field { margin: 18px 0; }
.field > label, .field > .label { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.field .hint { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.select { height: 40px; font-size: 15px; }
.seg { border-radius: 14px; padding: 4px; background: #ebe4d8; }
.seg button { height: 44px; font-size: 16px; border-radius: 11px; }
.err { font-size: 15px; }
.stat-line { font-size: 15.5px; gap: 16px; flex-wrap: wrap; }

/* 지도 */
.nemo-wrap { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); background: #f9f6f0; height: calc(min(100vw - 36px, var(--maxw) - 36px) * 0.98 + 40px); }
.map-ctrl button { width: 44px; height: 44px; border-radius: 13px; }
.legend { border-radius: 11px; font-size: 13px; padding: 7px 10px; }
.map-hint { font-size: 13.5px; color: var(--ink2); background: rgba(255, 255, 255, .85); padding: 3px 9px; border-radius: 8px; top: 10px; }

/* 목록·피드 */
.thumbs { gap: 6px; }
.thumbs a { border-radius: 12px; }
.thumbs .cap { font-size: 12.5px; }
.feed { gap: 18px; }
.post { border-radius: 20px; }
.post-top { padding: 14px 16px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.post-top .name { font-size: 16.5px; }
.post-top .meta { font-size: 13.5px; }
.post-body { padding: 14px 16px 16px; }
.place { font-size: 20px; letter-spacing: -0.4px; }
.where { font-size: 15px; }
.memo { font-size: 16.5px; line-height: 1.6; }
.like-btn { height: 42px; border-radius: 12px; font-size: 16px; }

/* 시트·토스트 */
.sheet-panel { border-radius: 24px 24px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 84vh; box-shadow: 0 -10px 40px rgba(20, 15, 10, .18); }
.sheet h3 { font-size: 21px; font-weight: 900; }
.mini .t { font-size: 16.5px; }
.mini .s { font-size: 14px; }
.toast { font-size: 16px; padding: 14px 20px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* 로딩 자리 (반짝이는 회색 상자) */
.skel { position: relative; overflow: hidden; background: #ebe4d8; border-radius: 14px; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { height: 360px; margin-top: 18px; border-radius: 20px; }
.skel-line { height: 18px; margin: 10px 0; }

/* 빈 화면 */
.empty-box { padding: 34px 16px; text-align: center; color: var(--ink2); font-weight: 700; font-size: 16px; line-height: 1.6; }
.empty-art { display: inline-grid; grid-template-columns: repeat(3, 16px); gap: 4px; margin-bottom: 12px; }
.empty-art i { width: 16px; height: 16px; border-radius: 4px; background: var(--empty); }
.empty-art i.on { background: var(--accent); }

/* 내 지도: 요약 카드 */
.home-hero { padding: 18px 18px 16px; margin-top: 8px; }
.hh-top { display: flex; align-items: center; gap: 12px; }
.hh-who { min-width: 0; flex: 1; }
.home-hero .who { font-size: 16px; font-weight: 800; color: var(--ink2); }
.home-hero .bio { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pct-badge { flex: none; font-size: 13.5px; font-weight: 900; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 10px; border-radius: 99px; }
.home-hero .big-num { font-size: 46px; margin-top: 8px; letter-spacing: -1.5px; }
.home-hero .big-num small { font-size: 18px; color: var(--muted); }
.home-hero .progress { height: 12px; margin: 12px 0 14px; }
.hh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hh-stats > div { background: #faf7f1; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.hh-stats b { display: block; font-size: 21px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.2; }
.hh-stats span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.hh-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.hh-cta .btn { padding: 0 10px; }
.first-guide { padding: 16px 18px; margin-top: 12px; font-size: 15.5px; line-height: 1.6; }
.first-guide b { font-weight: 900; }
.first-guide ol { margin: 8px 0 0; padding-left: 1.3em; }
.first-guide li { margin: 4px 0; }
.share-row .btn { font-size: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 28px; }
.sec-head h2 { margin: 0 0 10px; }
.sec-right { font-size: 15px; font-weight: 800; color: var(--muted); }

/* 지역별 정복 현황 */
.region-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.region-board .rg { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 6px 9px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); cursor: pointer; }
.region-board .rg.on { color: var(--ink); border-color: #f1b3ab; background: #fff7f5; }
.region-board .nm { font-size: 14.5px; font-weight: 900; color: inherit; }
.region-board .ct { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.region-board .ct b { color: var(--accent-dark); font-weight: 900; font-size: 13.5px; }
.region-board .rg:not(.on) .ct b { color: var(--muted); }
.region-board .bar { width: 100%; height: 5px; border-radius: 9px; background: #eee7db; overflow: hidden; margin-top: 3px; }
.region-board .bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }

/* 둘러보기 */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sort-bar { display: flex; gap: 4px; background: #ebe4d8; border-radius: 14px; padding: 4px; flex: 1; }
.sort-btn { flex: 1; height: 42px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; font-size: 15.5px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.sort-btn .ic svg { width: 17px; height: 17px; }
.sort-btn.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.feed-bar .select { height: 50px; border-radius: 14px; flex: none; }
.feed-hint { font-size: 14px; color: var(--muted); font-weight: 600; margin: 8px 2px 0; }

/* 기록하기 (단계별) */
.new-form .step { margin-top: 22px; }
.step-title { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 900; letter-spacing: -0.4px; margin-bottom: 10px; }
.step-title .no { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 900; display: grid; place-items: center; flex: none; }
.step-title .opt { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.photo-pick { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-pick .ph { border-radius: 12px; }
.photo-pick label.add { border-radius: 12px; font-size: 14px; color: var(--ink2); border-color: #cbbfab; }
.photo-pick label.add .plus { font-size: 26px; font-weight: 700; line-height: 1; color: var(--accent); }
.photo-pick .ph button { width: 28px; height: 28px; font-size: 17px; line-height: 28px; }
.hint { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-top: 8px; line-height: 1.5; }
.suggest { margin-top: 10px; padding: 12px; border-color: #f1b3ab; background: #fffaf8; }
.sg-title { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 15.5px; margin-bottom: 6px; }
.sg-title .ic svg { width: 18px; height: 18px; color: var(--accent); }
.sg-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.sg-item:hover { border-color: var(--ink); }
.sg-item .t { font-weight: 900; font-size: 16px; }
.sg-item .s { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pick-map { height: 240px; border-radius: 16px; }
.picked { font-size: 15px; line-height: 1.45; }
.results { border-radius: 14px; box-shadow: var(--shadow-1); }
.results button { padding: 12px 16px; }
.results .t { font-size: 16px; }
.results .s { font-size: 14px; }
.cat-pick button { height: 50px; border-radius: 14px; font-size: 16px; }
.star-pick button { font-size: 36px; }
.submit-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 6px); z-index: 20; margin-top: 18px; padding: 16px 0 6px; background: linear-gradient(rgba(247, 243, 236, 0), var(--bg) 28%); }
.need { font-size: 14.5px; font-weight: 800; color: var(--accent-dark); text-align: center; min-height: 0; margin-bottom: 6px; }
.need:empty { display: none; }
.submit-bar .err:empty { display: none; }

/* 상세: 내 기록 고치기 */
.owner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.owner-row .danger-text { color: #b3261e; }
.detail-map { height: 220px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; box-shadow: var(--shadow-1); }
.ext-title { font-size: 15.5px; margin: 18px 2px 8px; }
.ext-row .btn { height: 48px; }
/* 뒤로 버튼 */
.topbar { gap: 4px; justify-content: flex-start; }
.topbar .topbar-right { margin-left: auto; }
.back-btn { width: 40px; height: 40px; margin-left: -8px; border: 0; background: transparent; border-radius: 12px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.back-btn svg { width: 24px; height: 24px; }
.back-btn:hover { background: rgba(0, 0, 0, .05); }

/* 첫 화면 (로그인 전) */
.land-hero { text-align: center; padding: 18px 2px 4px; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 900; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; letter-spacing: 0; }
.land-hero h1 { font-size: 31px; line-height: 1.28; letter-spacing: -1px; margin: 12px 0 10px; }
.land-hero p { font-size: 17px; color: var(--ink2); line-height: 1.65; margin: 0; font-weight: 600; }
.land-map { margin: 18px auto 6px; width: 100%; max-width: 360px; aspect-ratio: 131 / 123; }
.demo-map { width: 100%; height: 100%; display: block; }
.land-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 14px; }
.land-note { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 10px; }
.land-steps { margin-top: 26px; }
.land-steps h2 { margin-bottom: 12px; }
.land-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-top: 10px; }
.land-step .no { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 900; font-size: 17px; display: grid; place-items: center; flex: none; box-shadow: 0 4px 10px rgba(242, 72, 59, .3); }
.land-step b { font-size: 17px; font-weight: 900; letter-spacing: -0.3px; }
.land-step p { margin: 4px 0 0; font-size: 15.5px; color: var(--ink2); line-height: 1.55; }
.land-bottom { margin-top: 22px; }
/* 로그인 */
.hero h1 { font-size: 27px; letter-spacing: -0.8px; }
.hero p { font-size: 17px; }
.sbtn { height: 56px; border-radius: 15px; font-size: 17px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.trust { list-style: none; padding: 0; margin: 18px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.trust li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 700; color: var(--ink2); }
.trust li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 4px; background: #1f9d74; box-shadow: inset 0 0 0 3px #d6f2e7; }

/* 랭킹 */
.my-rank { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 6px 0 4px; text-decoration: none; border-color: #f1b3ab; background: #fff8f6; }
.my-rank .nm { font-weight: 900; font-size: 16.5px; }
.my-rank .sub { font-size: 14px; color: var(--muted); font-weight: 700; }
.my-rank .rk { font-size: 24px; font-weight: 900; color: var(--accent-dark); letter-spacing: -0.5px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 18px 0 8px; }
.pod { display: flex; flex-direction: column; align-items: center; text-decoration: none; position: relative; text-align: center; min-width: 0; }
.pod .avatar { border: 3px solid #fff; box-shadow: var(--shadow-1); }
.pod .medal { position: absolute; top: -8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); margin-left: 44px; }
.pod .nm { font-weight: 900; font-size: 15.5px; margin-top: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .cells { font-weight: 900; font-size: 18px; color: var(--accent-dark); }
.pod .block { width: 100%; margin-top: 6px; border-radius: 12px 12px 4px 4px; background: linear-gradient(#f9d7d2, #f3c1ba); }
.pod.p1 .block { height: 64px; background: linear-gradient(#ffd0c9, #f6a79c); }
.pod.p2 .block { height: 44px; }
.pod.p3 .block { height: 30px; }
.rank-item { padding: 12px 16px; }
.rank-item.me { border-color: #f1b3ab; background: #fff8f6; }
.rank-item .nm { font-size: 16.5px; }
.rank-item .sub { font-size: 14px; }
/* MY */
.me-card { padding: 18px; margin-top: 8px; }
.me-name { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.me-sub { font-size: 14.5px; color: var(--muted); font-weight: 700; }
.me-bio { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.menu { margin-top: 14px; overflow: hidden; padding: 4px 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-bottom: 1px solid #f0eae0; background: none; text-decoration: none; color: var(--ink); font-size: 16.5px; font-weight: 800; text-align: left; cursor: pointer; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: #faf7f2; }
.menu-item .ic { width: 22px; display: inline-flex; justify-content: center; color: var(--ink2); }
.menu-item .ic svg { width: 21px; height: 21px; }
.menu-item .lb { flex: 1; }
.menu-item .sub { font-size: 14px; color: var(--muted); font-weight: 700; }
.menu-item > .ic:last-child { color: #b3aa9b; width: 18px; }
.menu-item > .ic:last-child svg { width: 18px; height: 18px; }
.menu-item.danger-text { color: #b3261e; }
.install-steps { margin: 8px 0 0; padding-left: 1.3em; font-size: 16.5px; line-height: 1.8; }

/* 함께 지도 */
.crew-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 14px; text-decoration: none; color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.crew-cta b { font-size: 16px; font-weight: 900; }
.crew-cta > .ic svg { width: 28px; height: 28px; color: var(--accent); }
.crew-cta .arr { margin-left: auto; font-size: 26px; color: var(--muted); font-weight: 700; }
.av-stack { display: flex; align-items: center; flex: none; }
.av-stack .avatar { border: 2px solid #fff; margin-left: -9px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.av-stack .avatar:first-child { margin-left: 0; }
.av-more { margin-left: -9px; border-radius: 12px; background: #ebe4d8; border: 2px solid #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 900; color: var(--ink2); }
.crew-name { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.25; word-break: break-all; }
.crew-make { padding: 16px; margin-top: 8px; }
.crew-make .label { font-weight: 900; margin-bottom: 8px; }
.crew-list { display: flex; flex-direction: column; gap: 8px; }
.crew-item { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; text-decoration: none; color: var(--ink); }
.crew-item .nm { font-size: 17px; font-weight: 900; }
.crew-item .sub { font-size: 14px; color: var(--muted); font-weight: 700; }
.crew-item > .ic svg { width: 18px; height: 18px; color: #b3aa9b; }
.join-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.join-msg { font-weight: 900; font-size: 16.5px; margin-bottom: 10px; }

/* 포스터 */
.poster-frame { margin: 14px auto 6px; padding: 14px; background: #fff; border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 18px 40px rgba(45, 32, 18, .18); max-width: 420px; border: 10px solid #2b2620; }
.poster-canvas { width: 100%; height: auto; display: block; aspect-ratio: 1240 / 1754; }

/* 배지 */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px 10px; border-radius: 14px; border: 1px dashed #d6ccbc; background: #faf7f1; text-align: center; }
.bdg.on { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.bdg .e { display: grid; grid-template-columns: 13px 13px; gap: 3px; }
.bdg .e i { width: 13px; height: 13px; border-radius: 3.5px; display: block; }
.bdg .l { font-size: 14px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.bdg:not(.on) .l { color: var(--muted); }
.bdg .p { font-size: 12.5px; font-weight: 800; color: var(--accent-dark); }
/* 신고·차단 */
.safety-row { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.safety-row .link-btn { margin: 0; font-size: 14.5px; color: var(--muted); }
.reason-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.reason { height: 50px; border-radius: 13px; border: 1px solid var(--line); background: #fff; font-size: 16px; font-weight: 800; text-align: left; padding: 0 16px; cursor: pointer; color: var(--ink); }
.reason.on { border: 2px solid #b3261e; background: #fff5f4; }
/* 둘러보기 검색 */
.feed-search { margin-top: 10px; height: 50px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%235a554c' stroke-width='2.2'/%3E%3Cpath d='M20 20l-4-4' stroke='%235a554c' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center / 20px; padding-left: 44px; }

/* 한글 줄바꿈: 단어 중간에서 끊지 않기 */
body { word-break: keep-all; overflow-wrap: anywhere; }
.hero p { line-height: 1.6; }

/* 알림 */
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.bell:hover { background: rgba(0, 0, 0, .05); }
.bell .ic svg { width: 24px; height: 24px; }
.bell-dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg); }
.note-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.note.new { border-color: #f1b3ab; background: #fff8f6; }
.note-t { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.5; }
.note-t b { font-weight: 900; }
.note-t .s { font-size: 13.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.note img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
/* 사진 크게 보기 */
.pv { position: fixed; inset: 0; z-index: 4000; background: rgba(10, 8, 6, .94); display: grid; place-items: center; animation: fade .18s; }
.pv img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.pv-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 40px; border-radius: 12px; cursor: pointer; }
.pv-nav.l { left: 8px; } .pv-nav.r { right: 8px; }
.pv-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: 15px; background: rgba(0, 0, 0, .4); padding: 4px 12px; border-radius: 99px; }
.pv-count:empty { display: none; }
.gallery img { cursor: zoom-in; }
