/* 얼굴에 적힌 팔자 · 웹 앱 (HTML) */
:root {
  --ink: #0f1b3d;
  --ink-2: #3b4766;
  --muted: #6b7690;
  --line: #e6ebf4;
  --bg: #f3f6fc;
  --card: #ffffff;
  --blue: #3d6cf5;
  --violet: #7b61ff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(30, 52, 120, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 500px at 15% 0%, #e3ebff, transparent 70%), var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

/* ── 웹 레이아웃 (웹사이트 상단 메뉴·바닥글 + 넓은 본문) ── */
body { background: linear-gradient(180deg, #e8efff 0, var(--bg) 420px) no-repeat, var(--bg); }

.app-tabs-wrap { background: #fff; border-bottom: 1px solid var(--line); }
.app-tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 10px 0; }
.app-tabs a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.app-tabs a:hover { background: #f1f5ff; text-decoration: none; }
.app-tabs a.on { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }

.page-head { display: flex; align-items: center; gap: 14px; padding: 30px 0 12px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.8px; }
.page-head h1:empty { display: none; }
.back-link { border: 0; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow); }
.back-link[hidden] { display: none; }

.view { padding-bottom: 96px; min-height: 50vh; }

.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.narrow.wide-ish { max-width: 860px; }
.layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.layout-result { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.layout-result .aside { position: sticky; top: 90px; }
.mainc { min-width: 0; }
.side-info { text-align: center; }
.side-info img { width: 180px; height: auto; filter: drop-shadow(0 18px 24px rgba(40, 60, 140, 0.18)); }

@media (max-width: 960px) {
  .layout-2, .grid-2, .layout-result { grid-template-columns: 1fr; }
  .layout-result .aside { position: static; }
  /* 모바일에서는 입력 칸을 먼저, 안내 그림은 작게 */
  .layout-2 > .col-b { order: -1; }
  .side-info img { width: 110px; }
  .page-head { padding-top: 22px; }
}

/* ── 공통 요소 ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.card.pad { padding: 24px 22px; }
.card.center { text-align: center; }
.card-title { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head .card-title { margin: 0; }
.card-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--blue); text-transform: uppercase; }
.h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; letter-spacing: -0.6px; }
.muted { color: var(--muted); margin: 0 0 12px; font-size: 14.5px; }
.pre { white-space: pre-line; }
.list-title { margin: 26px 4px 10px; font-size: 15px; font-weight: 800; color: var(--ink-2); }
/* 입력칸 바로 아래 버튼, 버튼 바로 아래 안내 사이 간격 (랭킹 방 만들기·참여 등) */
.input + .btn { margin-top: 14px; }
.btn + .notice { margin-top: 14px; }
.notice { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; background: #eef3ff; color: var(--ink-2); font-size: 13px; text-align: center; }
.disclaimer { margin: 22px 6px 0; font-size: 12px; color: var(--muted); }
.badge, .pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800;
  color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 12%, white);
}
.badge { margin-bottom: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px;
  border-radius: 14px; border: 0;
  font-size: 15.5px; font-weight: 800; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 10px 24px rgba(61, 108, 245, 0.28); }
.btn.ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.row-btns.stack { flex-direction: column; }

.form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.field-label { margin-top: 6px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.input {
  width: 100%; min-height: 50px; padding: 0 16px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
}
.input:focus { outline: 2px solid #b9c9ff; border-color: transparent; }
.input.select { text-align: left; cursor: pointer; }
.input:disabled { background: #f4f6fa; color: #9aa3b8; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; white-space: nowrap; cursor: pointer;
}
.chip.on, .chip:has(input:checked) { border-color: var(--blue); background: #eef3ff; color: var(--blue); font-weight: 800; }
.chip input { display: none; }

/* ── 홈 ── */
.hello {
  position: relative; overflow: hidden;
  padding: 26px 22px; margin: 6px 0 4px;
  border-radius: 24px; color: #fff;
  background: radial-gradient(260px 180px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 70%), linear-gradient(135deg, #5b84ff, #7b61ff);
  box-shadow: 0 18px 40px rgba(61, 108, 245, 0.3);
}
.hello h1 { margin: 6px 0 8px; font-size: 26px; line-height: 1.3; letter-spacing: -0.6px; }
.hello-date { margin: 0; font-size: 13px; opacity: 0.85; }
.hello-msg { margin: 0 0 4px; font-size: 15px; opacity: 0.95; }
.hello .btn { margin-top: 14px; background: #fff; color: var(--blue); box-shadow: none; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hello.wide { padding: 40px 44px; border-radius: 28px; }
.hello.wide h1 { font-size: clamp(26px, 3vw, 38px); }
.hello.wide .hello-msg { font-size: 17px; max-width: 720px; }
.svc {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: 20px; color: var(--ink);
  background: linear-gradient(160deg, #fff, var(--tint));
  border: 1px solid #fff; box-shadow: var(--shadow);
}
.svc { min-height: 190px; padding: 24px; }
.svc.big { min-height: 190px; }
.svc.blue { --tint: #e6eeff; --c: #3d6cf5; }
.svc.amber { --tint: #fff2dc; --c: #f59e0b; }
.svc.violet { --tint: #eee9ff; --c: #7b61ff; }
.svc.pink { --tint: #ffe9ee; --c: #e0667e; }
.svc.green { --tint: #e3f8ee; --c: #10b981; }
.svc-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--c, var(--blue)); }
.svc-icon svg { width: 23px; height: 23px; }
.svc-text b { display: block; font-size: 19px; letter-spacing: -0.4px; }
.svc-text small { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.svc:hover { text-decoration: none; transform: translateY(-3px); transition: transform 0.2s ease; }
.done-tag { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--c); }
.guide-link {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 16px 18px; border-radius: 18px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
}
.guide-link .svc-icon { background: #0f1b3d; width: 40px; height: 40px; }
.guide-link b { display: block; }
.guide-link small { color: var(--muted); font-size: 13px; }
.guide-link > span:nth-child(2) { flex: 1; }
.chev { margin-left: auto; font-size: 22px; color: #a6afc3; }

/* ── 로그인 ── */
.login { text-align: center; padding: 36px 8px 8px; }
.login-logo { border-radius: 20px; box-shadow: var(--shadow); }
.login h1 { margin: 18px 0 6px; font-size: 26px; letter-spacing: -0.6px; }
.btn.google { width: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink); margin-top: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.legal { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ── 설정 ── */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.profile-card img { border-radius: 14px; }
.profile-card div { flex: 1; min-width: 0; }
.profile-card b { display: block; font-size: 17px; }
.profile-card small { color: var(--muted); }
.card.list { padding: 4px 0; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 20px; border: 0; background: none; color: var(--ink); font-size: 15.5px; text-align: left; cursor: pointer;
}
.list-item + .list-item { border-top: 1px solid #f0f3f8; }
.check { }
.list-item .check { color: var(--blue); font-weight: 800; }
.link-danger { display: block; margin: 18px auto 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }

/* ── 사진 ── */
.photo-slot {
  display: grid; place-items: center;
  aspect-ratio: 4 / 5; margin-bottom: 12px; overflow: hidden;
  border-radius: 18px; border: 2px dashed #cfd9f0; background: #f6f8fd; color: var(--muted); font-size: 14px;
}
.photo-slot.small { aspect-ratio: 1; max-width: 280px; margin: 6px auto 12px; }
.col-b .photo-slot { max-width: 380px; margin-left: auto; margin-right: auto; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.picker label.btn { cursor: pointer; }
.intro { display: flex; align-items: center; gap: 16px; }
.intro-img { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; }
.intro h2 { margin: 0; font-size: 20px; }
.intro .muted { margin: 2px 0 0; }
.steps-list { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.steps-list li { margin-bottom: 6px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10, 18, 45, 0.5); animation: fade 0.15s ease; overscroll-behavior: contain; touch-action: pan-y; }
.modal-body, .city-list { overscroll-behavior: contain; }
.modal-card { width: min(400px, 100%); padding: 26px 22px 20px; border-radius: 22px; background: #fff; text-align: center; }
.modal-card h3 { margin: 0 0 10px; font-size: 19px; }
.modal-body { color: var(--ink-2); font-size: 14.5px; text-align: left; max-height: 50vh; overflow: auto; }
.modal-btns { display: flex; gap: 10px; margin-top: 18px; }
.modal-btns .btn { flex: 1; }
.modal-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e8f0fe; color: var(--blue); }
.modal-icon svg { width: 26px; height: 26px; }
/* 카메라: 화면 높이 안에 맞추고, 촬영·닫기 버튼은 항상 보이게 한다 (세로 영상이 길어도 버튼이 아래로 밀리지 않게) */
.modal.cam { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.cam-card {
  position: relative; display: flex; flex-direction: column;
  width: min(440px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  padding: 14px; border-radius: 22px; background: #0f1b3d;
}
.cam-view { position: relative; flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; overflow: hidden; border-radius: 14px; }
.cam-card video { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; transform: scaleX(-1); background: #000; }
.cam-card .modal-btns { flex: none; }
.cam-guide { position: absolute; left: 50%; top: 46%; height: 62%; max-width: 70%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 2px dashed rgba(255, 255, 255, 0.75); border-radius: 50%; pointer-events: none; }
.cam-hint { flex: none; margin: 10px 0 0; color: #fff; text-align: center; font-size: 14px; }
.modal.sheet { align-items: end; padding: 0; }
.sheet-card { width: min(560px, 100%); max-height: 86vh; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; border-radius: 24px 24px 0 0; background: #fff; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { margin: 0; }
.city-list { overflow-y: auto; min-height: 200px; }
.city { display: flex; justify-content: space-between; width: 100%; padding: 13px 6px; border: 0; border-bottom: 1px solid #f0f3f8; background: none; text-align: left; cursor: pointer; font-size: 15px; }
.city small { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 34px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: #0f1b3d; color: #fff; font-size: 14px; transition: all 0.25s ease; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 로딩 / 오류 ── */
.state-box { padding: 72px 10px; text-align: center; }
.state-title { margin: 22px 0 4px; font-size: 17px; font-weight: 800; }
.state-sub { margin: 0; color: var(--muted); font-size: 14px; }
.state-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; font-weight: 900; }
.state-icon.err { background: #fde8e8; color: #e14b4b; }
.orb { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.orb span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9c9ff 45%, #7b61ff); filter: blur(1px); animation: pulse 2.4s ease-in-out infinite; }
.orb span:nth-child(2) { inset: 14px; opacity: 0.7; animation-delay: -0.8s; }
.orb span:nth-child(3) { inset: 30px; opacity: 0.6; animation-delay: -1.6s; }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── 결과 ── */
.hero-result { display: flex; align-items: center; gap: 18px; }
.hero-score { flex: 1; min-width: 0; }
.big-score b { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; }
.big-score small { color: var(--muted); font-weight: 700; }
.split-stat { display: flex; gap: 16px; margin-top: 12px; }
.split-stat small { display: block; font-size: 12px; color: var(--muted); }
.split-stat b { font-size: 20px; }
.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-bar { transition: stroke-dashoffset 1.8s cubic-bezier(0.45, 0, 0.25, 1); filter: drop-shadow(0 6px 10px rgba(61, 108, 245, 0.2)); }
.ring-bar.go { stroke-dashoffset: var(--to); }
.ring-inner { position: absolute; inset: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; }
.ring-inner img { width: 100%; height: 100%; object-fit: cover; }
.ring-inner b { font-size: 34px; font-weight: 900; line-height: 1; color: var(--ink); }
.ring-inner small { font-size: 12px; color: var(--muted); }

.rich { color: var(--ink-2); font-size: 15px; }
.rich p { margin: 0 0 10px; }
.rich b { color: var(--ink); }

.bars { margin: 6px 0 14px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13.5px; }
.bar-label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 2s cubic-bezier(0.45, 0, 0.25, 1); }
.bar-fill.go { width: var(--w); }
.bar-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.cols { display: flex; justify-content: space-around; gap: 8px; margin: 8px 0 18px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.col-val { font-weight: 800; }
.col-track { position: relative; width: 34px; height: 120px; border-radius: 12px; background: #eef2f8; overflow: hidden; }
.col-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 12px; background: linear-gradient(180deg, #9db6ff, #3d6cf5); transition: height 1.8s cubic-bezier(0.45, 0, 0.25, 1); }
.col.best .col-fill { background: linear-gradient(180deg, #b3a6ff, #7b61ff); }
.col-fill.go { height: var(--h); }
.col-label { font-size: 13px; font-weight: 700; text-align: center; }
.col-sub { font-size: 11.5px; color: var(--muted); }

.radar-wrap { display: flex; justify-content: center; }
.radar-label { font-size: 12.5px; font-weight: 700; fill: var(--ink-2); }
.radar-val { font-size: 11px; fill: var(--muted); }
.radar-shape { transform-origin: center; transform: scale(0.05); transition: transform 1.8s cubic-bezier(0.45, 0, 0.25, 1); transform-box: view-box; }
.radar-shape.go { transform: scale(1); }
.curve { display: block; }
.curve { max-width: 760px; }
.curve-axis { font-size: 13px; fill: var(--muted); }
.curve-tag { font-size: 13px; font-weight: 800; }
.curve-tag.good { fill: #10b981; }
.curve-tag.now { fill: var(--violet); }

.card.luck { background: linear-gradient(135deg, #f3efff, #eaf2ff); }
.card.advice { background: linear-gradient(135deg, #fffaf0, #fff3df); }
.card.insight { background: linear-gradient(135deg, #eef3ff, #f6f0ff); }
.lucky { display: flex; gap: 12px; margin-top: 8px; }
.lucky span { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.8); }
.lucky small { display: block; font-size: 12px; color: var(--muted); }
.info-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-strip small { display: block; font-size: 12px; color: var(--muted); }
.info-strip b { font-size: 14.5px; }
details.card summary, details.period summary { list-style: none; cursor: pointer; font-weight: 800; }
details summary::-webkit-details-marker { display: none; }
details.text-card summary { display: flex; justify-content: space-between; font-size: 16px; }
details.text-card summary::after { content: '+'; color: var(--blue); }
details.text-card[open] summary { margin-bottom: 10px; }
details.text-card[open] summary::after { content: '−'; }
details.period { border-top: 1px solid #f0f3f8; padding: 12px 0; }
details.period summary { display: flex; align-items: center; gap: 10px; }
details.period summary b { flex: 1; }
details.period .rich { margin-top: 10px; }
.caution { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: #fff4e5; color: #8a5300; font-size: 14px; }
.advice { font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, white); color: var(--ink); font-size: 13px; font-weight: 800; text-align: center; }
.cat-dot { width: 32px; height: 32px; border-radius: 12px; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.tips { margin: 0; padding-left: 20px; color: var(--ink-2); }
.need { display: block; margin-bottom: 10px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.need b { display: block; }
.need small { color: var(--muted); }
.need.done { border-color: #a7e3c6; background: #f1fbf6; }

/* 동물상 */
.animal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.animal-head h3 { margin: 0; font-size: 22px; color: var(--c); }
.animal-head small { color: var(--muted); }
.animal-img { border-radius: 18px; background: color-mix(in srgb, var(--c, #3d6cf5) 10%, white); }
.kws { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kw { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.ratio { display: flex; height: 28px; margin-bottom: 12px; border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 800; color: #fff; }
.ratio span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.traits { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.animal-mini { display: flex; gap: 12px; margin-top: 10px; padding: 12px; border-radius: 14px; background: #f6f8fd; }
.animal-mini small { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.animal-mini p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.animal-top3 { display: flex; gap: 10px; }
.animal-top3 span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; background: #f6f8fd; font-size: 13px; font-weight: 700; }

/* 궁합 */
.match-head { text-align: center; }
.pair { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.pair figure { margin: 0; width: 84px; }
.pair img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.pair figcaption { margin-top: 4px; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px; border-radius: 14px; background: #f6f8fd; }
.owner-row small { display: block; color: var(--muted); }

body:not(.ready) .view { opacity: 0.6; }
.list-title { margin-top: 32px; font-size: 18px; color: var(--ink); }
.login { padding-top: 12px; }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .hello.wide { padding: 28px 24px; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .app-tabs a { padding: 8px 12px; font-size: 14px; }
}
