/* 유료 리포트(/unse/report/) 화면. unse.css 의 회색 토큰을 쓰고, 색은 아래 띠 색(--z-*)으로만 더한다. 인라인 style 속성 없음(CSP).
   띠 색: 십이지 3D 캐릭터(/assets/characters-3d/*.webp)의 털 색에서 뽑았다. 그라데이션 없이 단색 면과 테두리로만 쓴다.
   --z-100 연한 바탕(본문 글자 대비 14:1 이상) / --z-200·300 테두리 / --z-500 캐릭터 색(장식 전용, 글자에 쓰지 않음)
   --z-700 글자·버튼용(흰 바탕 6:1, --z-100 바탕 5.2:1 이상) / --z-b1~b5 달 막대 다섯 단계(높이·너비로도 구분된다)
   기본(.rp)은 2027 정미년 상징인 양. 결과 화면은 report-zodiac.js 가 그 사람 띠의 .rz-* 를 붙인다. */
.rz-rat { --z-100: #f4eff9; --z-200: #e7dcf2; --z-300: #cfb7e5; --z-500: #945fc5; --z-700: #8341c0; --z-b1: #cfb7e5; --z-b2: #af87d4; --z-b3: #945fc5; --z-b4: #764e9c; --z-b5: #5d417b; }
.rz-ox { --z-100: #e9f8f0; --z-200: #cfefdd; --z-300: #9ddfb9; --z-500: #26b864; --z-700: #0d7037; --z-b1: #9ddfb9; --z-b2: #5cca8b; --z-b3: #26b864; --z-b4: #239153; --z-b5: #217245; }
.rz-tiger { --z-100: #fbf1e9; --z-200: #f7e0ce; --z-300: #eec09a; --z-500: #d9731f; --z-700: #9c4c0a; --z-b1: #eec09a; --z-b2: #e39657; --z-b3: #d9731f; --z-b4: #a95d1f; --z-b5: #834c1f; }
.rz-rabbit { --z-100: #faf4f8; --z-200: #f5e6ef; --z-300: #eacddd; --z-500: #d08fb4; --z-700: #aa3578; --z-b1: #eacddd; --z-b2: #dcabc7; --z-b3: #d08fb4; --z-b4: #a3728f; --z-b5: #7e5b71; }
.rz-dragon { --z-100: #e9eff9; --z-200: #cfdcf2; --z-300: #9db7e4; --z-500: #265ec2; --z-700: #265ec2; --z-b1: #9db7e4; --z-b2: #5c86d1; --z-b3: #265ec2; --z-b4: #234e9a; --z-b5: #214079; }
.rz-snake { --z-100: #eaf9f8; --z-200: #d0f1ef; --z-300: #9fe2de; --z-500: #29bfb5; --z-700: #0c6c66; --z-b1: #9fe2de; --z-b2: #5fcfc8; --z-b3: #29bfb5; --z-b4: #259690; --z-b5: #227672; }
.rz-horse { --z-100: #faebec; --z-200: #f3d3d6; --z-300: #e7a5ab; --z-500: #c93744; --z-700: #b52c38; --z-b1: #e7a5ab; --z-b2: #d76973; --z-b3: #c93744; --z-b4: #9d303b; --z-b5: #7a2b34; }
.rz-sheep, .rp { --z-100: #f6f9eb; --z-200: #ecf2d4; --z-300: #d8e4a6; --z-500: #a9c23a; --z-700: #596913; --z-b1: #d8e4a6; --z-b2: #bfd16b; --z-b3: #a9c23a; --z-b4: #859934; --z-b5: #69772e; }
.rz-monkey { --z-100: #f7eeea; --z-200: #edd9d1; --z-300: #dab2a1; --z-500: #ad532e; --z-700: #9f4a27; --z-b1: #dab2a1; --z-b2: #c27e62; --z-b3: #ad532e; --z-b4: #88452b; --z-b5: #6b3a28; }
.rz-rooster { --z-100: #fbf9ea; --z-200: #f7f2d1; --z-300: #eee4a1; --z-500: #d9c22e; --z-700: #6f6004; --z-b1: #eee4a1; --z-b2: #e3d162; --z-b3: #d9c22e; --z-b4: #a9992b; --z-b5: #837728; }
.rz-dog { --z-100: #ecf6f9; --z-200: #d5ebf3; --z-300: #aad5e6; --z-500: #41a2c7; --z-700: #1b6987; --z-b1: #aad5e6; --z-b2: #71b9d5; --z-b3: #41a2c7; --z-b4: #37819d; --z-b5: #2f667c; }
.rz-pig { --z-100: #faf2f7; --z-200: #f5e2ee; --z-300: #eac4db; --z-500: #d07bb0; --z-700: #ae2d7d; --z-b1: #eac4db; --z-b2: #dc9cc4; --z-b3: #d07bb0; --z-b4: #a3638c; --z-b5: #7e506f; }
/* 입력·결제 색(2026-12-01 사용자 지시): 쥐 캐릭터의 보라(--z-700 of .rz-rat). 흰 글자 6.0:1, 연한 바탕(--rp-soft) 위 글자 5.3:1. 누를 때 더 진하게(8.2:1) */
.rp, .rp-sheet { --rp-cta: #8341c0; --rp-cta-press: #6a32a0; --rp-soft: #f4eff9; --rp-line: #cfb7e5; }

/* 머리(소개·가족 소개): 연한 띠 색 면 + 열두 띠 줄 */
.rp-hero { background: var(--z-100); border: 1px solid var(--z-200); border-radius: 20px; padding: 20px 16px 0; margin: 0 0 8px; overflow: hidden; }
.rp-hero .zp-lead { color: var(--g900); }
.rp-strip { display: block; width: calc(100% + 16px); max-width: none; height: auto; margin: 12px -8px 0; aspect-ratio: 2000 / 268; }

.rp-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.rp-points li { padding: 12px 0; border-top: 1px solid var(--z-200); font-size: 16px; color: var(--g800); }
.rp-points li:first-child { border-top: 0; }
.rp-points strong { display: block; font-size: 17px; color: var(--g1000); }

.rp-tiers { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.rp-tiers li { border: 1px solid var(--z-300); border-radius: 12px; padding: 12px 16px; font-size: 16px; color: var(--g800); background: var(--g00); }
.rp-tiers strong { display: flex; justify-content: space-between; font-size: 18px; color: var(--g1000); }
.rp-tiers strong span { color: var(--g1000); }

.rp-form { display: grid; gap: 16px; }
.rp-row { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-row legend, .rp-label { flex: 0 0 100%; padding: 0; font-size: 16px; font-weight: 700; color: var(--g900); margin-bottom: 4px; }
.rp-col { display: block; }
.rp-chip { position: relative; display: inline-flex; }
.rp-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--g400); border-radius: 12px; font-size: 17px; background: var(--g00); }
.rp-chip input:checked + span { border-color: var(--z-700); box-shadow: inset 0 0 0 1px var(--z-700); background: var(--z-100); color: var(--z-700); font-weight: 700; }
.rp-chip input:focus-visible + span { box-shadow: var(--focus-ring); }
.rp-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 16px; color: var(--g800); min-height: 48px; padding: 12px 0; }
.rp-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--z-700); }
.rp-agree { font-size: 15px; line-height: 1.6; }
.rp-ymd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; }
.rp-ymd input[type="text"] { width: 76px; height: 48px; padding: 0 12px; border: 1px solid var(--g400); border-radius: 12px; font: inherit; text-align: center; background: var(--g00); color: var(--g1000); }
.rp-ymd input[name="month"], .rp-ymd input[name="day"], .rp-ymd input[name="hour"], .rp-ymd input[name="minute"] { width: 60px; }
.rp-ymd input:disabled { background: var(--g200); color: var(--g600); }
.rp-ymd .rp-check { margin-left: 8px; padding: 0; align-items: center; }
.rp-form select { height: 48px; padding: 0 12px; border: 1px solid var(--g400); border-radius: 12px; font: inherit; background: var(--g00); color: var(--g1000); min-width: 140px; }
.rp-err { color: var(--danger); background: var(--danger-soft); border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.rp-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--g900); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.rp-btn:active { transform: scale(.98); }
.rp-btn:disabled { background: var(--g500); cursor: default; transform: none; }
.rp-btn--pay, #rpPreviewBtn { background: var(--rp-cta); }
.rp-btn--pay:active, #rpPreviewBtn:active { background: var(--rp-cta-press); }
#rpPreviewBtn:disabled { background: var(--g500); }
.rp-btn--ghost { background: var(--g200); color: var(--g1000); }

.rp-card { background: var(--z-100); border: 1px solid var(--z-200); border-radius: 14px; padding: 16px; margin: 0 0 12px; }
.rp-card::after { content: ""; display: table; clear: both; }
.rp-card-char { float: right; width: 88px; height: 88px; margin: -4px -4px 4px 8px; object-fit: contain; }
.rp-card p { margin: 0 0 8px; font-size: 17px; line-height: 1.7; }
.rp-card .zp-note, .rp-hero .zp-note { color: var(--g800); } /* 띠 색 바탕 위 보조 글자는 한 단계 진하게(5.7:1 이상) */
.rp-sub { font-size: 15px !important; color: var(--g800); }
.rp-keyword { font-size: 22px !important; font-weight: 700; color: var(--g1000); line-height: 1.4 !important; }
.rp-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 72px; margin: 12px 0 4px; }
.rp-bars { clear: both; padding: 8px 8px 0; background: var(--g00); border-radius: 10px; box-sizing: content-box; }
.rp-bars i { display: block; background: var(--z-b3); border-radius: 4px 4px 0 0; }
.rp-bars .lv1 { height: 20%; background: var(--z-b1); } .rp-bars .lv2 { height: 40%; background: var(--z-b2); } .rp-bars .lv3 { height: 60%; background: var(--z-b3); }
.rp-bars .lv4 { height: 80%; background: var(--z-b4); } .rp-bars .lv5 { height: 100%; background: var(--z-b5); }
.rp-tierpick { display: grid; gap: 8px; }
.rp-tierpick label { position: relative; display: block; }
.rp-tierpick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-tierpick .box { position: relative; display: block; border: 1px solid var(--z-300); border-radius: 12px; padding: 12px 16px 12px 52px; font-size: 15px; color: var(--g800); background: var(--g00); }
.rp-tierpick .box::before { content: ""; position: absolute; left: 14px; top: 15px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--g600); background: var(--g00); box-sizing: border-box; }
.rp-tierpick .box b { display: flex; justify-content: space-between; font-size: 18px; color: var(--g1000); }
.rp-tierpick .box b span:last-child { color: var(--z-700); }
.rp-tierpick .box .inc { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--g800); }
.rp-tierpick input:checked + .box { border-color: var(--z-700); box-shadow: inset 0 0 0 1px var(--z-700); background: var(--z-100); }
.rp-tierpick input:checked + .box::before { border: 7px solid var(--z-700); }
.rp-tierpick input:focus-visible + .box { box-shadow: var(--focus-ring); }

/* 기다리는 화면 */
.rp-wait { text-align: center; padding: 48px 0; }
.rp-wait p { margin: 12px 0 0; }
.rp-wait-char { width: 112px; height: 112px; margin: 0 auto 16px; object-fit: contain; }
.rp-spin { width: 40px; height: 40px; margin: 0 auto; border: 4px solid var(--z-200); border-top-color: var(--z-700); border-radius: 50%; animation: rp-spin 1s linear infinite; }
@keyframes rp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rp-spin { animation-duration: 4s; } }

/* 리포트 */
.rv-meta { font-size: 15px; color: var(--text-sub); margin: 0 0 4px; }
.rv-h1 { font-size: 28px; line-height: 1.35; margin: 4px 0 16px; }
/* 결과 머리: 그 사람 띠 캐릭터와 띠 이름(report-zodiac.js 가 .rv-meta·.rv-h1 을 감싼다) */
.rv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
  background: var(--z-100);
  border: 1px solid var(--z-200);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 24px);
  margin: 0 0 16px;
}
.rv-hero-copy { display: grid; gap: 8px; }
.rv-hero .rv-h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rv-hero .rv-meta { color: var(--g800); margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.rv-pillars { display: inline-block; max-width: 100%; }
.rv-hero-fig { display: grid; justify-items: center; gap: 2px; margin: 0; }
.rv-hero-fig img { width: clamp(60px, 13vw, 88px); height: auto; aspect-ratio: 1; object-fit: contain; }
.rv-hero-tag { font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--g800); white-space: nowrap; }
.rv-one { background: var(--z-100); border: 1px solid var(--z-200); border-radius: 14px; padding: 16px; margin: 0 0 16px; }
.rv-one h2 { font-size: 16px; color: var(--z-700); margin: 0 0 8px; }
.rv-one li::marker { color: var(--z-700); font-weight: 700; }
.rv-one ol { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; }
.rv-sec { margin: 0 0 16px; padding: 16px; background: var(--g00); border: 1px solid var(--z-200); border-radius: 14px; }
.rv-sec h2 { font-size: 20px; margin: 0 0 8px; }
.rv-sec p { font-size: 17px; line-height: 1.8; margin: 0 0 8px; white-space: pre-line; }
.rv-why { font-size: 14px; color: var(--g800); margin-top: 8px; }
.rv-why { background: var(--z-100); border-radius: 10px; padding: 0 12px; }
.rv-why[open] { padding-bottom: 12px; }
.rv-why summary { cursor: pointer; color: var(--z-700); font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.rv-why ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.rv-month { border-top: 1px solid var(--z-200); padding: 12px 0; }
.rv-month:first-of-type { border-top: 0; }
.rv-mh { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--z-700); }
.rv-mh span:first-child { min-width: 116px; font-weight: 700; }
.rv-bar { flex: 1; height: 12px; background: var(--g200); border: 1px solid var(--z-200); border-radius: 6px; overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: var(--z-b3); border-radius: 0 6px 6px 0; }
.rv-bar .lv1 { width: 20%; background: var(--z-b1); } .rv-bar .lv2 { width: 40%; background: var(--z-b2); } .rv-bar .lv3 { width: 60%; background: var(--z-b3); } .rv-bar .lv4 { width: 80%; background: var(--z-b4); } .rv-bar .lv5 { width: 100%; background: var(--z-b5); }
.rv-month p { margin: 4px 0 0; }
.rv-act { font-size: 15px !important; color: var(--g900); background: var(--z-100); border-radius: 10px; padding: 8px 12px; margin-top: 8px !important; }
.rv-closing { background: var(--z-100); border-color: var(--z-300); }
.rv-closing p { font-size: 18px; }
.rv-keep { border: 1px solid var(--g400); border-radius: 14px; padding: 16px; margin: 0 0 16px; font-size: 15px; color: var(--g800); }
.rv-keep p { margin: 0 0 8px; }
.rv-keep .mono { display: block; background: var(--g100); border-radius: 8px; padding: 8px; margin: 0 0 8px; font-size: 13px; }
.rv-fine { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.rv-fine p { margin: 0 0 6px; }

/* 가족 신년운세(/unse/report/family/) */
.rp-relpick { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-btn--kakao { background: #fee500; color: #191919; }
.rp-btn--kakao:active { background: #f0d800; }
.rv-keep .rp-btn { margin-top: 8px; }
.rv-keep .mono { word-break: break-all; }
.rv-person { background: var(--z-100); border: 1px solid var(--z-200); border-radius: 12px; padding: 16px; margin: 0 0 12px; }
.rv-person h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 4px; color: var(--z-700); }
.rv-person-char { flex: none; width: 56px; height: 56px; object-fit: contain; }
.rv-person p { margin: 0 0 8px; font-size: 17px; line-height: 1.7; }
.rv-person .rp-sub { font-size: 15px; }
.rv-person .rp-keyword { font-size: 19px; line-height: 1.4; }
.rv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chips li { font-size: 15px; font-weight: 700; color: var(--g900); }
.rv-chips li + li::before { content: "·"; margin: 0 6px 0 0; color: var(--g600); font-weight: 400; }

/* 다시 찾기(조회 비밀번호·이메일)와 내 리포트 찾기(/unse/report/find/) */
.rp-keep { background: var(--z-100); border: 1px solid var(--z-200); border-radius: 14px; padding: 16px; gap: 6px; }
.rp-keep legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--z-700); }
.rp-keep .zp-note { margin: 0 0 10px; color: var(--g800); }
.rp-pin, .rp-email { display: block; width: 100%; max-width: 360px; box-sizing: border-box; height: 52px; padding: 0 14px; border: 1px solid var(--g500); border-radius: 12px; font: inherit; font-size: 18px; background: var(--g00); color: var(--g1000); }
.rp-pin { max-width: 220px; letter-spacing: 6px; text-align: center; }
.rp-pin:focus, .rp-email:focus { outline: 0; border-color: var(--z-700); box-shadow: var(--focus-ring); }
.rp-h1 { font-size: 26px; margin: 8px 0 8px; }
.rp-ok { color: var(--success); background: var(--success-soft); border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.rp-found { margin: 16px 0 0; }
.rp-found h3 { font-size: 18px; margin: 0 0 8px; }
.rp-found ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-found-link { display: grid; gap: 2px; min-height: 48px; padding: 14px 16px; border: 1px solid var(--z-200); border-radius: 12px; background: var(--z-100); color: var(--g1000); text-decoration: none; }
.rp-found-link strong { font-size: 18px; color: var(--z-700); }
.rp-found-link span { font-size: 15px; color: var(--g800); }
.rp-found-link .rp-found-id { font-size: 13px; color: var(--g800); word-break: break-all; }
.rp-found-link:focus-visible { box-shadow: var(--focus-ring); }

/* 리포트 그림(미리 만든 그림, report.images) */
.rv-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin: 8px 0 12px; background: var(--z-100); }
.rv-img--head { margin: 0 0 16px; }
.rv-month .rv-img { margin: 8px 0; }

/* 내 정보 넣기(토스식 한 질문씩): 큰 질문 제목 → 지금 칸이 맨 위, 답한 칸은 아래에 남는다. 밑줄 입력 칸, 아래 고정 버튼. */
.rp-flowsec { margin-top: 8px; }
.rp-flowsec .rp-q { font-size: 26px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--g1000); margin: 8px 0 24px; min-height: 1.4em; }
.rp-q.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .14s ease; }
.rp-q.is-in { animation: rp-q-in .34s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rp-flow { display: flex; flex-direction: column; gap: 28px; }
.rp-f { border: 0; margin: 0; padding: 0; min-width: 0; position: relative; will-change: transform; }
.rp-f-l { display: block; padding: 0; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--g700); transition: color .2s ease; }
.rp-f.is-on .rp-f-l { color: var(--rp-cta); }
.rp-f-in { display: block; width: 100%; box-sizing: border-box; height: 56px; padding: 0 2px; border: 0; border-bottom: 2px solid var(--g400); border-radius: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 600; letter-spacing: .01em; color: var(--g1000); transition: border-color .2s ease; }
.rp-f-in::placeholder { color: var(--g500); font-weight: 500; }
.rp-f-in:focus { outline: 0; border-bottom-color: var(--rp-cta); }
.rp-f-in:focus-visible { box-shadow: none; }
.rp-f-in:disabled { color: var(--g600); border-bottom-style: dashed; }
.rp-f-hint { margin: 8px 0 0; font-size: 14px; color: var(--text-sub); max-height: 3em; overflow: hidden; transition: opacity .2s ease, max-height .25s ease, margin .25s ease; }
.rp-f:not(.is-on) .rp-f-hint { opacity: 0; max-height: 0; margin: 0; }
.rp-f.is-new { animation: rp-f-in .42s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-f-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.rp-f.is-shake { animation: rp-shake .36s ease; }
@keyframes rp-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* 양력·음력, 성별: 회색 바탕 위에 흰 알약이 고른 쪽으로 옮겨 가는 토글 */
.rp-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 14px; padding: 4px; background: var(--g200); border-radius: 12px; }
.rp-seg label { position: relative; display: block; }
.rp-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-seg span { display: flex; align-items: center; justify-content: center; min-width: 76px; min-height: 40px; padding: 0 16px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--g700); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.rp-seg input:checked + span { background: var(--g00); color: var(--g1000); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rp-seg input:focus-visible + span { box-shadow: var(--focus-ring); }
.rp-seg--big { display: grid; width: 100%; margin-top: 4px; }
.rp-seg--big span { min-height: 56px; font-size: 18px; }
.rp-seg--big input:checked + span { color: var(--rp-cta); animation: rp-pop .28s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.02); } 100% { transform: none; } }
.rp-pill { position: relative; display: inline-flex; margin-top: 14px; }
.rp-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--g200); font-size: 15px; font-weight: 600; color: var(--g800); transition: background-color .2s ease, color .2s ease; }
.rp-pill input:checked + span { background: var(--rp-cta); color: #fff; }
.rp-pill input:focus-visible + span { box-shadow: var(--focus-ring); }
.rp-f .rp-check { display: flex; padding: 10px 0 0; min-height: 0; }

/* 아래 고정 버튼: 지금 칸을 다 채우면 진해진다 */
.rp-cta { position: sticky; bottom: 0; z-index: 2; margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--g00); }
.rp-cta .zp-note { margin: 10px 0 0; text-align: center; }
.rp-cta .rp-btn { font-size: 18px; transition: background-color .2s ease, transform .12s ease; }
#rpPreviewBtn.is-off { background: var(--g500); }
#rpPreviewBtn.is-busy { background: var(--g600); }
.rp-flow .rp-err { margin: -8px 0 0; animation: rp-q-in .25s ease; }

main > .rp-strip { width: 100%; margin: 24px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .rp-q.is-in, .rp-f.is-new, .rp-f.is-shake, .rp-seg--big input:checked + span, .rp-result.is-rise, .rp-flow .rp-err, .rp-lock, .rp-ss.is-fwd, .rp-ss.is-back, .rp-sheet-q.is-in { animation: none; }
  .rp-sheet-q.is-out, .rp-sheet-prog i { transition: none; }
  .rp-sheet-panel, .rp-sheet-bg { transition: none; }
  .rp-q.is-out { transition: none; }
}

/* ===== 결과 화면(무료 미리보기): 읽다가 궁금한 곳에서 흐리게 잠기고, 누르면 결제 시트가 올라온다 ===== */
.rp-on-result .rp-strip, .rp-on-result #rpMine { display: none; }
.rp-result.is-rise { animation: rp-res-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-res-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rp-res-hero { border-radius: 20px; padding: 20px 16px; margin: 4px 0 16px; }
.rp-res-hero .rp-card-char { width: 96px; height: 96px; }
.rp-res-h { margin: 4px 0 0; font-size: 26px; line-height: 1.4; letter-spacing: -.02em; color: var(--g1000); outline: 0; }
.rp-res-y { display: block; font-size: 16px; font-weight: 600; color: var(--g800); margin-bottom: 4px; }
.rp-res-sec { margin: 0 0 12px; padding: 20px 16px; background: var(--g00); border: 1px solid var(--z-200); border-radius: 16px; }
.rp-res-sec h3 { font-size: 19px; margin: 0 0 10px; color: var(--g1000); }
.rp-res-sec > p { font-size: 17px; line-height: 1.8; margin: 0 0 8px; color: var(--g900); }
.rp-res-hook { font-weight: 600; }
.rp-bars-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 4px 8px 0; font-size: 11px; color: var(--g700); text-align: center; letter-spacing: -.04em; }

/* 잠긴 글: 앞 문장에 이어 붙어 흐려지고, 가운데에 여는 버튼 */
.rp-lock { position: relative; margin: 4px 0 8px; border-radius: 12px; overflow: hidden; cursor: pointer; }
.rp-lock-txt { filter: blur(5px); user-select: none; pointer-events: none; opacity: .85; }
.rp-lock-txt p { font-size: 17px; line-height: 1.8; margin: 0 0 8px; color: var(--g900); }
.rp-lock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.9) 100%); pointer-events: none; }
.rp-lock-btn { position: absolute; z-index: 1; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--g1000); color: #fff; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .12s ease; }
.rp-lock-btn::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rp-lock-btn:active { transform: translateX(-50%) scale(.97); }
.rp-lock-btn:focus-visible { box-shadow: var(--focus-ring); outline: 0; }
.rp-lock { animation: rp-breathe 2.8s ease-in-out infinite; }
@keyframes rp-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(131,65,192,0); } 50% { box-shadow: 0 0 0 3px rgba(131,65,192,.14); } }

/* 분야 카드: 제목과 한 줄은 보이고 아래 한 줄은 흐리게 */
.rp-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-topic { position: relative; display: grid; gap: 2px; width: 100%; text-align: left; padding: 14px 44px 14px 16px; border: 1px solid var(--z-200); border-radius: 12px; background: var(--z-100); font: inherit; color: var(--g1000); cursor: pointer; transition: transform .12s ease; }
.rp-topic:active { transform: scale(.98); }
.rp-topic:focus-visible { box-shadow: var(--focus-ring); outline: 0; }
.rp-topic b { font-size: 17px; }
.rp-topic span { font-size: 15px; color: var(--g800); }
.rp-topic-blur { font-style: normal; font-size: 15px; color: var(--g900); filter: blur(4px); user-select: none; margin-top: 4px; }
.rp-topic::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--g700); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rp-res-end { background: var(--z-100); border-color: var(--z-300); }
.rp-res-end .rp-btn { margin-top: 12px; background: var(--rp-cta); font-size: 18px; }
.rp-res-end .rp-btn:active { background: var(--rp-cta-press); }
.rp-link { display: block; margin: 12px auto 0; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--g800); text-decoration: underline; cursor: pointer; }

/* 결제 시트 */
.rp-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-sheet { position: fixed; inset: 0; z-index: 50; }
.rp-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .28s ease; }
.rp-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; height: 82vh; height: 82dvh; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); background: var(--g00); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.rp-sheet.is-open .rp-sheet-bg { opacity: 1; }
.rp-sheet.is-open .rp-sheet-panel { transform: none; }
.rp-sheet-grip { width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 2px; background: var(--g400); }
.rp-sheet-x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--g700); cursor: pointer; }
.rp-sheet-open { overflow: hidden; }
.rp-res-h:focus, .rp-res-h:focus-visible { outline: 0; box-shadow: none; }

/* 결제 시트 안의 한 질문씩 */
.rp-sheet-head { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.rp-sheet-back { width: 44px; height: 44px; margin-left: -12px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--g900); cursor: pointer; }
.rp-sheet-prog { flex: 1; height: 4px; border-radius: 2px; background: var(--g200); overflow: hidden; }
.rp-sheet-prog i { display: block; width: 0; height: 100%; background: var(--rp-cta); border-radius: 2px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.rp-sheet-q { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 20px; color: var(--g1000); }
.rp-sheet-q.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .14s ease; }
.rp-sheet-q.is-in { animation: rp-q-in .34s cubic-bezier(.2,.8,.2,1); }
.rp-ssf { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rp-ss { flex: 1; }
.rp-ss.is-fwd { animation: rp-ss-fwd .34s cubic-bezier(.2,.8,.2,1); }
.rp-ss.is-back { animation: rp-ss-back .34s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-ss-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes rp-ss-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.rp-ss-note { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--text-sub); }
.rp-ss .rp-f-in + .rp-ss-note { margin-top: 12px; }
.rp-opts { display: grid; gap: 8px; }
.rp-opt { position: relative; display: block; }
.rp-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-opt span { display: flex; align-items: center; min-height: 56px; padding: 0 18px; border-radius: 14px; background: var(--g100); font-size: 17px; font-weight: 600; color: var(--g900); transition: background-color .18s ease, color .18s ease, transform .12s ease; }
.rp-opt input:active + span { transform: scale(.98); }
.rp-opt input:checked + span { background: var(--rp-soft); color: var(--rp-cta); box-shadow: inset 0 0 0 2px var(--rp-cta); }
.rp-opt input:focus-visible + span { box-shadow: var(--focus-ring); }
.rp-pin2 { letter-spacing: 10px; }
.rp-ssf .rp-err { margin: 12px 0 0; }
.rp-ss-foot { position: sticky; bottom: 0; margin: 16px -20px 0; padding: 12px 20px 0; background: var(--g00); }
.rp-ss-foot .rp-btn { font-size: 18px; background: var(--rp-cta); transition: background-color .2s ease, transform .12s ease; }
.rp-ss-foot .rp-btn:active { background: var(--rp-cta-press); }
#rpSheetNext.is-off { background: var(--g500); }
.rp-ss-foot .zp-note { margin: 10px 0 0; text-align: center; }
.rp-ss .rp-tierpick { margin-bottom: 16px; }
.rp-ss #rpMethodRow { margin-bottom: 8px; }
.rp-ss-foot .rp-btn:disabled { background: var(--g500); }
.rp-sheet-q:focus { outline: 0; }
.rp-ss-foot .rp-agree { display: flex; padding: 0 0 10px; min-height: 0; font-size: 14px; }
/* 시트 안 고르기는 모두 같은 파랑(띠 색은 결과 화면에서만) */
.rp-sheet .rp-tierpick .box { border-color: var(--g400); }
.rp-sheet .rp-tierpick .box b span:last-child { color: var(--g1000); }
.rp-sheet .rp-tierpick input:checked + .box { border-color: var(--rp-cta); box-shadow: inset 0 0 0 1px var(--rp-cta); background: var(--rp-soft); }
.rp-sheet .rp-tierpick input:checked + .box::before { border-color: var(--rp-cta); }
.rp-sheet .rp-tierpick input:checked + .box b span:last-child { color: var(--rp-cta); }
.rp-sheet .rp-chip input:checked + span { border-color: var(--rp-cta); box-shadow: inset 0 0 0 1px var(--rp-cta); background: var(--rp-soft); color: var(--rp-cta); }
.rp-sheet .rp-check input { accent-color: var(--rp-cta); }
.rp-sheet-q:focus-visible { outline: 0; box-shadow: none; }
.rp-sheet-panel { height: 90vh; height: 90dvh; }
.rp-sheet .rp-tierpick { gap: 6px; }
.rp-sheet .rp-tierpick .box { padding: 10px 14px 10px 48px; }
.rp-sheet .rp-tierpick .box::before { top: 12px; left: 12px; }
.rp-sheet .rp-chip span { min-height: 44px; }

/* ===== 공유 선물 ===== */
.rp-gift-banner { margin: 0 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--rp-soft); border: 1px solid var(--rp-line); font-size: 15px; line-height: 1.6; color: var(--g900); animation: rp-q-in .4s cubic-bezier(.2,.8,.2,1); }
.rp-gift-banner b { display: block; font-size: 16px; color: var(--rp-cta); margin-bottom: 2px; }
.rp-gift-one { margin: 8px 0; }
.rp-gift-one h4 { font-size: 16px; color: var(--z-700); margin: 0 0 8px; }
.rp-gift-month { margin: 8px 0; padding: 14px 16px; border-radius: 12px; background: var(--z-100); border: 1px solid var(--z-200); }
.rp-gift-mh { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--z-700); }
.rp-gift-month p { font-size: 17px; line-height: 1.8; margin: 0 0 8px; color: var(--g900); }
.rp-gift-one.is-open, .rp-gift-month.is-open { animation: rp-unlock .6s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-unlock { 0% { opacity: 0; filter: blur(6px); transform: translateY(6px); } 100% { opacity: 1; filter: none; transform: none; } }
.rp-lock-btn--inline { position: static; transform: none; margin: 8px 0 0; }
.rp-lock-btn--inline:active { transform: scale(.97); }
.rp-lock-btn--inline:focus-visible { box-shadow: var(--focus-ring); }

.rp-share-sec { background: var(--rp-soft); border-color: var(--rp-line); }
.rp-share-sec h3 { color: var(--rp-cta); }
.rp-share-sec .rp-btn { margin-top: 8px; font-size: 18px; }

/* 공유 시트: 높이는 내용만큼 */
.rp-sheet--share .rp-sheet-panel { height: auto; max-height: 90vh; max-height: 90dvh; }
.rp-sheet-prog--none { visibility: hidden; }
.rp-share-card { position: relative; margin: 0 0 14px; padding: 18px 16px 14px; border-radius: 18px; animation: rp-card-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rp-card-in { 0% { opacity: 0; transform: scale(.94) rotate(-1.5deg); } 60% { transform: scale(1.01) rotate(.3deg); } 100% { opacity: 1; transform: none; } }
.rp-share-card .rp-card-char { width: 80px; height: 80px; }
.rp-share-y { margin: 0 !important; font-size: 15px !important; font-weight: 600; color: var(--g800); }
.rp-share-k { margin: 2px 0 10px !important; font-size: 22px !important; font-weight: 700; line-height: 1.4 !important; color: var(--g1000); }
.rp-bars--mini { height: 44px; margin: 0 0 8px; }
.rp-share-from { margin: 0 !important; font-size: 13px !important; color: var(--g800); text-align: right; }
.rp-share-gets { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.rp-share-gets li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--g900); }
.rp-share-gets b { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px; border-radius: 13px; background: var(--rp-soft); color: var(--rp-cta); font-size: 13px; }
.rp-sheet--share .rp-btn + .rp-btn { margin-top: 8px; }
.rp-sheet--share .rp-err { margin-top: 10px; word-break: break-all; }
.rp-share-note { margin: 12px 0 0; text-align: center; }
.rp-snack { z-index: 60; }
.rp-snack.is-in { animation: rp-q-in .3s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .rp-gift-banner, .rp-gift-one.is-open, .rp-gift-month.is-open, .rp-share-card, .rp-snack.is-in { animation: none; }
}
/* 출시 기념 무료: 정가에 줄을 긋고 '무료' */
.rp-free-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--rp-soft); color: var(--rp-cta); font-size: 15px; font-weight: 700; line-height: 1.5; }
.rp-tierpick .box b .is-free { color: var(--rp-cta) !important; }
.rp-tierpick .box b .is-free del { color: var(--g700); font-weight: 500; font-size: 15px; margin-right: 2px; }

/* ===== 태블릿·데스크톱(768px 이상, 2026-12-01) =====
   /unse/report/ 와 /unse/report/view/ 는 /unse/unse-desktop.css 를 함께 읽어 흰 판(가운데 960px)이 된다. 여기서는 그 판 안쪽 배치만 정한다.
   가족·찾기 화면(unse-desktop.css 를 읽지 않는 곳)에 닿지 않도록 이 두 화면에만 있는 id 로 고른다. */
@media (min-width: 768px) {
  #rpEntry, #rpResult, #rvReport, #rvWait, #rvMsg, .rp-view > .zp-crumb { max-width: 640px; margin-left: auto; margin-right: auto; }
  #rpEntry .rp-hero { padding: 28px 28px 24px; }
  #rpEntry .rp-cta { position: static; padding-bottom: 0; }
  #rpResult .rp-res-sec { padding: 24px; }
}
@media (min-width: 1024px) {
  /* 입력: 왼쪽 소개(양띠 해 캐릭터), 오른쪽 한 질문씩 입력 */
  #rpEntry { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  #rpEntry > .rp-hero { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 96px; margin: 0; padding: 32px 32px 0; }
  #rpEntry > .rp-hero .zp-h1 { font-size: 32px; }
  #rpEntry > .rp-hero::after { content: ""; display: block; height: 240px; margin: 12px 0 0; background: url("/assets/characters-3d/sheep.webp") 50% 100% / contain no-repeat; }
  #rpEntry > .rp-gift-banner, #rpEntry > .rp-flowsec { grid-column: 2; }
  #rpEntry > .rp-flowsec { margin-top: 0; }
  /* 결과 미리보기: 왼쪽에 올해 한마디 카드를 붙여 두고 오른쪽에 풀이 */
  #rpResult:not([hidden]) { max-width: none; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  #rpResult > .rp-res-hero { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 96px; margin: 4px 0 0; }
  #rpResult > .rp-res-sec { grid-column: 2; }
  /* 결제·공유 시트: 바닥 시트 대신 가운데 창 */
  body:has(#rpEntry) .rp-sheet-panel { top: 50%; bottom: auto; height: auto; max-height: min(780px, 88vh); border-radius: 24px; padding-bottom: 24px; opacity: 0; transform: translateY(calc(-50% + 32px)); transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
  body:has(#rpEntry) .rp-sheet.is-open .rp-sheet-panel { opacity: 1; transform: translateY(-50%); }
  body:has(#rpEntry) .rp-sheet-grip { display: none; }
}
