/* ---------- 친구 도감 ---------- */
#v-friends { max-width: 560px; margin: 0 auto; padding: 78px 14px 60px; }
#v-friends .lead { margin: 0 2px 14px; font-size: 13.5px; line-height: 1.55; color: var(--brown); word-break: keep-all; }
#v-friends .listHead { margin-bottom: 6px; }
.finder {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 10px 12px; font-size: 14px; font-weight: 800;
}
.finder label { flex: 1; }
.finder select, .apForm select {
  font: inherit; font-weight: 700; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 8px; background: var(--cream);
}
.finderOut {
  margin-top: 8px; background: var(--cream); border: 2.5px dashed var(--ink); border-radius: 14px; padding: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.finderOut p { margin: 0; flex: 1 1 180px; font-size: 14.5px; line-height: 1.5; word-break: keep-all; }
.finderOut .btn { height: 40px; font-size: 14px; }
.finderOut .dogNote { flex-basis: 100%; font-size: 12.5px; color: var(--brown); }

.no { font-family: "Black Han Sans", sans-serif; font-size: 12px; letter-spacing: .04em; color: var(--dkgold); }
.mb { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 7px; background: var(--ink); color: #fff; }
.mb.q { background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 0 6px; }
.wanted {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--dkgold); background: var(--cream);
  border: 1.5px dashed var(--dkgold); border-radius: 7px; padding: 1px 7px;
}

.hero {
  display: flex; gap: 12px; width: 100%; margin: 14px 0 4px; padding: 10px; text-align: left; cursor: pointer;
  background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 20px;
}
.heroPh { flex: none; width: 112px; height: 150px; border-radius: 14px; overflow: hidden; }
.heroPh img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.heroTx { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.hero .no { color: var(--gold); }
.hero .nm { font-family: "Black Han Sans", sans-serif; font-size: 28px; line-height: 1.1; }
.hero .ln { font-size: 13.5px; line-height: 1.45; color: #f3e6c4; word-break: keep-all; }
.hero .bm { font-family: Pretendard, sans-serif; font-size: 12.5px; font-weight: 800; padding: 2px 8px; border-radius: 7px; vertical-align: 5px; }
.hero .heroMb { align-self: flex-start; margin-top: 4px; background: var(--gold); color: var(--ink); }
.hero .wanted { align-self: flex-start; margin-top: 4px; background: transparent; color: var(--gold); border-color: var(--gold); }

.sec { display: flex; align-items: baseline; gap: 6px; margin: 26px 2px 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sec span { font-size: 13px; font-weight: 700; color: var(--brown); }
.secLead { margin: -4px 2px 10px; font-size: 13px; color: var(--brown); }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid.dogs { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.fcard {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; cursor: pointer;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 0 0 11px; overflow: hidden;
  transform: rotate(var(--tilt, 0deg)); transition: transform .15s;
}
.fcard:active { transform: rotate(0deg) scale(.98); }
.fcard .ph {
  position: relative; display: block; width: 100%; height: 200px; border-bottom: 2.5px solid var(--ink); overflow: hidden; margin-bottom: 5px;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.6px); background-size: 12px 12px;
}
.fcard .ph img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.fcard .no { position: absolute; left: 9px; top: 8px; background: rgba(255, 255, 255, .85); padding: 1px 6px; border-radius: 6px; }
.fcard .mb { position: absolute; right: 8px; top: 8px; }
.fcard .nm, .fcard .kind, .fcard .wanted, .fcard .ln { margin: 0 10px; }
.fcard .nm { font-family: "Black Han Sans", sans-serif; font-size: 19px; line-height: 1.15; }
.fcard .kind { font-size: 11.5px; font-weight: 700; color: var(--dkgold); }
.fcard .ln { font-size: 12px; line-height: 1.45; color: var(--brown); word-break: keep-all; }
.fcard.dog .ph { height: auto; aspect-ratio: 1; }
.fcard.dog .nm { font-size: 16px; }
.fcard.dog .ln { display: none; }
.fcard.dog .no { font-size: 10px; }
.fcard.dog .mb { font-size: 10.5px; padding: 1px 6px; }

.applyBox { margin-top: 26px; padding: 16px; background: var(--ink); color: #fff; border-radius: 20px; }
.applyBox h2 { margin: 0 0 4px; font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 24px; color: var(--gold); }
.applyBox p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #f3e6c4; word-break: keep-all; }
.applyBox .btn.ink { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.byTag { display: inline-block; margin: 0 10px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--ink); border-radius: 7px; padding: 1px 7px; }
.prof .byTag { margin: 0; font-family: Pretendard, sans-serif; }
.fanEmpty {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 22px 12px; cursor: pointer;
  background: rgba(255, 255, 255, .35); border: 2.5px dashed var(--ink); border-radius: 16px; color: var(--ink);
}
.fanEmpty b { font-size: 16px; }
.fanEmpty span { font-size: 13px; font-weight: 700; color: var(--brown); }
.applyBox.applyTop { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 12px 12px 16px; border-radius: 18px; }
.applyBox.applyTop .applyTx { flex: 1; min-width: 0; }
.applyBox.applyTop h2 { font-size: 20px; margin: 0 0 2px; }
.applyBox.applyTop p { margin: 0; font-size: 12.5px; }
.applyBox.applyTop .btn { flex: none; height: 44px; padding: 0 16px; font-size: 15px; }

/* 친구 상세 창 */
.fsheetIn { width: min(100%, 440px); max-height: 92dvh; padding: 0; gap: 0; }
#fsheetBody { padding: 0 0 16px; }
.fd > *:not(.fdPh) { margin-left: 16px; margin-right: 16px; }
.fdPh {
  position: relative; height: 320px; border-bottom: 3px solid var(--ink); overflow: hidden; border-radius: 19px 19px 0 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2.1px); background-size: 16px 16px;
}
.fdPh img { position: absolute; inset: 12px 0 0; width: 100%; height: calc(100% - 12px); object-fit: contain; object-position: center bottom; display: block; }
.fdPh .no { position: absolute; left: 14px; top: 14px; background: #fff; border: 2px solid var(--ink); padding: 1px 8px; border-radius: 8px; font-size: 13px; }
.fd.main .fdPh { background: var(--gold); }
.fd.dog .fdPh { height: 260px; }
.fd.dog .fdPh img { object-fit: cover; object-position: center; inset: 0; height: 100%; }
.fdHead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.fdHead h2 { margin: 0; font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 30px; line-height: 1.1; }
.fdHead .kind { font-size: 12.5px; font-weight: 700; color: var(--dkgold); }
.fdLine { margin-top: 8px; margin-bottom: 6px; font-size: 18px; font-weight: 800; line-height: 1.45; word-break: keep-all; }
.fdAbout { margin-top: 0; margin-bottom: 4px; font-size: 14px; line-height: 1.6; color: #2c220e; word-break: keep-all; }
.fdEps { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; margin-bottom: 4px; font-size: 13px; }
.fdEps b { font-size: 12.5px; color: var(--dkgold); }
.fdEps .ep { display: block; padding: 9px 12px; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; }
.fdBox { margin-top: 16px; margin-bottom: 4px; padding: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; }
.fdBox h3 { margin: 0 0 2px; font-size: 16.5px; font-weight: 800; }
.fdBox .sub, .fd > .sub { margin-top: 0; margin-bottom: 10px; font-size: 12.5px; line-height: 1.5; color: var(--brown); word-break: keep-all; }
.fdBox .sub { margin-left: 0; margin-right: 0; }
.fd > .btn.wide { width: calc(100% - 32px); margin-top: 14px; }

.nlist { list-style: none; margin: 4px 0 0; padding: 0; }
.nlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1.5px solid #eee3c4; }
.nlist li:first-child { border-top: 0; }
.nlist .nn { font-size: 16px; font-weight: 800; }
.nlist .none { font-size: 13px; color: var(--brown); }
.nlist .like { margin-left: auto; flex-direction: row; gap: 4px; min-width: 0; padding: 4px 6px; }
.nlist .like svg { width: 22px; height: 22px; }

.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vgrid button {
  padding: 8px 0; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream);
  font-size: 13px; font-weight: 800; cursor: pointer;
}
.vgrid button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vres { margin-top: 12px; }
.vbar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.vbar b { width: 44px; }
.vbar .track { flex: 1; height: 12px; background: #f1e7cc; border-radius: 6px; overflow: hidden; }
.vbar .track i { display: block; height: 100%; background: var(--gold); border-right: 2px solid var(--ink); }
.vbar.mine .track i { background: var(--green); }
.vbar .pct { width: 38px; text-align: right; font-weight: 800; }
.vres .sub { margin-top: 6px; }

/* 친구 신청서 */
.fd.apply { padding-top: 22px; }
.fd.apply h2 { margin-top: 0; margin-bottom: 6px; padding-right: 48px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.apForm { display: flex; flex-direction: column; gap: 6px; }
.apForm label { font-size: 13.5px; font-weight: 800; margin-top: 6px; }
.apForm label span { font-weight: 500; color: var(--brown); }
.apForm textarea, .apForm input[type=text] {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px;
}
.apForm textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.apForm .cnt { align-self: flex-end; font-size: 11.5px; color: var(--brown); margin-top: -2px; }
.apForm .chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 13px; line-height: 1.5; word-break: keep-all; }
.apForm .chk input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.apForm .btn { margin-top: 4px; }

/* 프로필: 이름 · MBTI · 특징 · 한마디 */
.prof { margin: 14px 16px 0; padding: 0; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; overflow: hidden; }
.prof .pr { display: grid; grid-template-columns: 64px 1fr; border-top: 1.5px solid #eee3c4; }
.prof .pr:first-child { border-top: 0; }
.prof dt { padding: 11px 0 11px 12px; font-size: 12.5px; font-weight: 800; color: var(--dkgold); }
.prof dd { margin: 0; padding: 10px 12px 10px 0; font-size: 15px; line-height: 1.55; word-break: keep-all; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.prof .pr:first-child dd { font-family: "Black Han Sans", sans-serif; font-size: 24px; line-height: 1.2; }
.prof .pr:first-child dd .kind, .prof .pr:first-child dd .wanted { font-family: Pretendard, sans-serif; }
.prof dd .mb { font-size: 13px; }
.prof .qt { font-weight: 800; font-size: 16px; }

/* 신청서: 사진 */
.apForm .hint2 { margin: -2px 0 2px; font-size: 12px; line-height: 1.5; color: var(--brown); word-break: keep-all; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.pthumb, .padd { position: relative; width: 86px; height: 108px; border-radius: 12px; border: 2.5px solid var(--ink); overflow: hidden; flex: none; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb .px { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; }
.padd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; border-style: dashed; cursor: pointer; }
.padd b { font-size: 26px; line-height: 1; }
.padd span { font-size: 12px; font-weight: 700; color: var(--brown); }
