/* ---------- 결과 화면: 옆으로 넘기는 카드 여섯 장 ----------
   카드 틀(바탕 그림, 넘길 때 깊이감, 장마다 들어오는 차례)은 내손내운 결과 화면(content/insaeng/result.css)에서 옮겼습니다.
   밝은 미색 한지 화면입니다: 글은 먹색, 주 단추는 다홍. 색·글꼴·로고·단추·손 그림과 선은 theme.css에 있어 여기서 다시 정하지 않습니다. */

.r-body { overflow: hidden; overscroll-behavior: none; }
.r-body .app {
  --turn: 0.55s;   /* 한 장 넘기는 시간 */
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  font-family: var(--font-ui);
}

/* ---------- 위: 장 막대와 글씨 로고 ---------- */

.r-top {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  padding-top: max(10px, env(safe-area-inset-top));
  pointer-events: none;
}
.bars { display: flex; gap: 5px; padding: 4px 18px 0; }
.bars i { position: relative; flex: 1; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(43, 29, 18, 0.14); }
.bars i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--turn) var(--ease-out); }
.bars i.on::after { transform: none; }
/* 로고만 눌려 홈페이지로 갑니다(머리 줄은 카드 넘기기를 막지 않게 눌리지 않음) */
.r-brand { display: flex; width: fit-content; align-items: center; gap: 4px; padding: 11px 20px 0; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.r-brand .logo { height: 20px; }

/* 카드 글을 서버에서 받지 못했을 때, 다른 브라우저로 돌아와 결제를 확인하지 못했을 때 한 줄 */
.r-fail { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; margin: 0; padding: 0 32px; text-align: center; color: var(--ink-2); font: 700 16px/1.6 var(--font-ui); word-break: keep-all; }
.r-fail > p { margin: 0; }
.r-fail > .cta { width: min(100%, 240px); margin-top: 20px; }   /* 결제를 확인하지 못했을 때 다시 확인 단추 */

/* ---------- 카드 여섯 장을 옆으로 나란히 ---------- */

/* 손가락이나 마우스로 넘기므로 글씨·그림이 잡히거나 길게 눌러 그림 메뉴가 뜨지 않게 합니다 */
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.track { display: flex; height: 100%; transition: transform var(--turn) var(--ease-out); will-change: transform; }
/* 끄는 동안은 손가락을 바로 따라가고, still은 움직이지 않고 건너뜁니다(주소로 바로 열 때) */
.stage.dragging .track, .stage.dragging .card::before, .stage.dragging .card::after,
.stage.still .track, .stage.still .card::before, .stage.still .card::after, .stage.still .bars i::after { transition: none; }

.card {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(max(10px, env(safe-area-inset-top)) + 54px) 0 calc(max(10px, env(safe-area-inset-bottom)) + 40px);
  background: var(--paper);
  overflow: hidden;
  /* 덩어리 사이 간격: 높이 641px 휴대폰에서 16px쯤, 긴 휴대폰에서 22px까지 */
  --gap: clamp(12px, 2.5vh, 22px);
  --gap: clamp(12px, 2.5svh, 22px);
  /* 이 장의 운 색(굵은 글·칸). 글자로 쓸 때는 먹 쪽으로 눌러 읽기 쉽게 합니다 */
  --tone: var(--red);
  --tone-ink: color-mix(in srgb, var(--tone) 72%, var(--ink));
}
.c-meet { --tone: var(--c-style); }
.c-charm { --tone: var(--c-charm); }
.c-next { --tone: var(--c-next); }

/* 바탕 한지와 위아래 옅은 한지 막. --off는 지금 보는 장에서 몇 장 떨어졌는지(result.js): 그림은 카드보다 느리게 움직여 깊이감이 나고,
   보는 동안에는 아주 천천히 다가옵니다 */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245, 238, 227, 0.55) 0%, rgba(245, 238, 227, 0) 24%, rgba(245, 238, 227, 0) 72%, rgba(245, 238, 227, 0.45) 100%),
    var(--bg, none) center / cover no-repeat;
  translate: calc(var(--off, 0) * -38%) 0;
  scale: 1.06;
  transition: translate var(--turn) var(--ease-out);
  animation: drift 28s ease-in-out infinite alternate paused;
  pointer-events: none;
}
.card.current::before { animation-play-state: running; }
@keyframes drift { from { scale: 1.06; } to { scale: 1.13; } }
/* 떠나는 장은 한지 색으로 바랩니다(--shade, 보는 장은 0) */
.card::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: var(--paper);
  opacity: var(--shade, 0);
  transition: opacity var(--turn) var(--ease-out);
  pointer-events: none;
}

.card > * { position: relative; }
/* 긴 휴대폰: 그림이 다 커진 뒤 남는 자리는 글 덩어리 위아래로 나눕니다 */
.card > :first-child { margin-top: auto; }
.card > .copy { margin-bottom: auto; }

/* ---------- 큰 제목·글 ----------
   1~4장 맨 아래 캐릭터 말풍선을 빼고(사용자 결정 2026-10-27) 그 자리만큼 머리말·큰 제목·#칩·글·칸을 키웠습니다 */

.title { flex: none; margin: 0 20px; text-align: center; font: 700 28px/1.28 var(--font-title); color: var(--ink); letter-spacing: -0.5px; word-break: keep-all; text-wrap: balance; }
.card > .title { align-self: center; max-width: 300px; }
.c-cert > .title { font-size: 25px; }   /* 5장 제목은 1~4장을 키우기 전 크기 그대로(감정서 그림 자리) */
/* 2~4장 큰 제목은 그 장의 색 */
.c-meet .title, .c-charm .title, .c-next .title { color: var(--tone-ink); }

.type-head { flex: none; position: relative; text-align: center; }
.kick { margin: 0 20px; font-size: 15.5px; font-weight: 800; letter-spacing: 0.2px; color: var(--ink-2); }
.type-head .title { margin-top: 6px; }

/* 글은 한 왼쪽 끝에서 시작하고(읽기 쉽게) 덩어리는 카드 가운데에 둡니다(result.js fitCopy가 가장 긴 줄에 폭을 맞춤) */
.copy { flex: none; align-self: center; display: grid; gap: 14px; margin: var(--gap) 22px 0; text-align: left; }
.copy p { margin: 0; font-size: 17px; line-height: 1.62; font-weight: 500; color: var(--ink); word-break: keep-all; text-wrap: balance; }
.copy span { display: block; }
.copy b { color: var(--tone-ink); font-weight: 800; }


/* ---------- 손 그림(모양과 선 색은 theme.css) ---------- */

.card > .art { margin-top: var(--gap); }
/* 1장 손 그림도 남는 높이를 채우게, 폭이 허락하는 데까지(카드 폭에서 양옆 18px) 커집니다 */
.c-type > .art { max-height: calc((min(100vw, 480px) - 36px) * 4 / 3); }
/* 2·3장에서 이 장의 선을 가까이 보여 주는 창. 글 문단이 없으므로(사용자 결정 2026-10-27) 1장 손 그림처럼 제목·칸을 놓고 남는 높이를
   이 창이 채웁니다. 폭은 카드 폭에 맞추고, 높이는 폭의 4/3(1장 손 그림의 세로 비율)까지 늘어납니다. 창 속 확대는 놓인 창 크기로 셉니다(common.js handArt) */
.card > .art.lens { align-self: stretch; margin-inline: 18px; aspect-ratio: auto; max-height: calc((min(100vw, 480px) - 36px) * 4 / 3); }

/* ---------- 1장: 연애 유형 공개 ---------- */

.type-head .nowrap { white-space: nowrap; }
.c-type .type-head .title { font-size: 30px; }
.stamp { display: inline-block; width: auto; height: 34px; margin-left: 6px; vertical-align: -4px; transform: rotate(-12deg); opacity: 0.92; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 12px 20px 0; padding: 0; list-style: none; }
.keys li { padding: 5px 13px; border-radius: 999px; background: var(--red-soft); border: 1px solid rgba(179, 38, 46, 0.3); color: var(--red-2); font-size: 14.5px; font-weight: 800; }

/* 1장 넘김 안내(손 그림 아래): 장식 없는 글씨가 한 글자씩 뒤집힙니다(세 번 뒤 멈춤). 긴 휴대폰에서는 남는 자리
   가운데 쪽으로 올리고, 짧은 휴대폰에서는 맨 아래에 둡니다 */
.reveal { padding-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 16px); }
.reveal > .swipe-cta { margin-top: auto; top: calc(-1 * clamp(0px, (100vh - 700px) / 3, 40px)); }
.swipe-cta {
  flex: none; align-self: center;
  margin: 0; padding: 8px 18px; border: 0; background: none; cursor: pointer;
  font: 700 17px/1.2 var(--font-title); letter-spacing: -0.3px; color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
}
.swipe-cta .flip { display: inline-flex; perspective: 300px; }
.swipe-cta .flip span { display: inline-block; }
.swipe-cta .flip .sp { width: 0.28em; }

/* ---------- 2~4장: 작은 머리말과 큰 제목, 선 창, 칸(내손내운 결과 3·4장과 같은 칸) ---------- */

.c-meet .type-head .title, .c-charm .type-head .title { font-size: 28px; }
/* 아래 .wed는 기존 감정서/이전 카드용 스타일을 보존한 것입니다. 새 무료 3장에는 결혼 칸을 그리지 않습니다. */
.wed { flex: none; display: flex; flex-direction: column; align-items: center; margin: calc(var(--gap) - 4px) 18px 0; padding: 11px 16px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 86%, var(--tone)); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); text-align: center; }
.wed small { font-size: 13.5px; font-weight: 800; color: var(--tone-ink); }
.wed b { margin-top: 3px; font: 700 24px/1.25 var(--font-title); letter-spacing: -0.3px; color: var(--tone-ink); word-break: keep-all; }
/* 아래 .lucks는 이전 매력 카드 스타일 보존용입니다. 새 2장은 .sx-rib 안에 좋은 운 막대 하나만 둡니다. */
.lucks { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: calc(var(--gap) - 4px) 18px 0; }
.lucks .side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 10px 11px; border-radius: 14px; background: var(--card); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); text-align: center; }
.lucks small { font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.lucks b { margin-top: 3px; font: 700 24px/1.2 var(--font-title); letter-spacing: -0.3px; color: var(--ink-2); }
.lucks .best { background: var(--tone); border-color: var(--tone); box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 28%, transparent); }
.lucks .best small { color: rgba(255, 255, 255, 0.86); }
.lucks .best b { color: #fff; }
/* 아래 .points는 이전 매력 카드 스타일 보존용입니다. 새 2장은 .sx-rib에서 뜻만 보여 줍니다. */
.points { flex: none; align-self: center; display: grid; gap: 8px; margin: 12px 18px 0; }
.points .panel-h { margin: 0; text-align: center; font-size: 13.5px; font-weight: 800; color: var(--tone-ink); }
.points ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); word-break: keep-all; }
.points li b { flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, var(--tone)); color: var(--tone-ink); font-size: 13.5px; font-weight: 800; }
/* 매력운·애정운이 둘 다 보통이면 순위 칸 대신 이 칸이 그 자리에 옵니다: 이 장의 색을 옅게 깐 칸에 선 이름표, 그 아래 뜻을 큰 글씨로 */
.points.lead { align-self: stretch; gap: 10px; margin: calc(var(--gap) - 4px) 18px 0; padding: 13px 16px 15px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 86%, var(--tone)); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); }
.points.lead ul { gap: 10px; }
.points.lead li { flex-direction: column; gap: 4px; text-align: center; }
.points.lead li b { background: var(--card); }
.points.lead li span { font: 700 23px/1.3 var(--font-title); letter-spacing: -0.3px; color: var(--tone-ink); text-wrap: balance; }
/* 4장 남은 날 도장: 이 장의 색 테두리 두 겹 안에 큰 글씨(D-45). 이미 연애 기운이 들었으면 '바로 지금' 두 줄.
   1~3장 그림처럼 다른 덩어리를 놓고 남는 자리(.dday-room)를 도장이 채웁니다: 그 자리에 드는 가장 큰 원(340px까지, 테두리 몫 24px을 뺌).
   글씨는 도장에 견줌. 자리 크기를 재지 못하는 옛 브라우저는 화면 높이를 따릅니다(150~240px) */
.dday-room { flex: 1 1 0; min-height: 150px; align-self: stretch; display: grid; place-items: center; margin: var(--gap) 18px 0; container-type: size; }
.c-next .type-head + .dday-room { margin-top: 22px; }
.dday { --dd: clamp(140px, 27vh, 240px); --dd: clamp(140px, 27svh, 240px); display: grid; place-items: center; width: var(--dd); height: var(--dd);
  border-radius: 50%; background: var(--card);
  box-shadow: 0 0 0 3px var(--tone), 0 0 0 9px var(--card), 0 0 0 10.5px color-mix(in srgb, var(--tone) 55%, transparent), var(--shadow); }
.dday .title { margin: 0; font-size: calc(var(--dd) * 0.27); line-height: 1.1; letter-spacing: -1px; color: var(--tone-ink); }
.dday.long .title { font-size: calc(var(--dd) * 0.22); }
.dday.now .title { max-width: 3em; font-size: calc(var(--dd) * 0.24); }
/* 이전 흐림 값 스타일 보존용. 새 4장은 실제 값을 보내지 않고 자물쇠·빈 막대만 그립니다. */
.blind { display: inline-block; filter: blur(4.5px); user-select: none; -webkit-user-select: none; }
.dday .blind { filter: blur(0.16em); }   /* 도장 속 큰 글자는 글씨 크기에 맞춰 더 흐리게 */
.dday-sub { flex: none; margin: 20px 24px 0; text-align: center; font-size: 17px; font-weight: 800; color: var(--ink-2); word-break: keep-all; }
.dday-date { flex: none; align-self: center; margin: 12px 18px 0; padding: 9px 18px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, var(--tone)); color: var(--tone-ink); font: 800 17px/1.35 var(--font-ui); text-align: center; word-break: keep-all; }
@supports (width: 1cqh) { .dday { --dd: min(100cqh - 24px, 100cqw - 24px, 340px); } }
/* 칸 안 조각은 칸이 들어온 뒤 하나씩 */
.live .lucks .side:first-child { animation: rise 0.55s var(--ease-out) var(--t) both; }
.live .lucks .side:last-child { animation: rise 0.55s var(--ease-out) calc(var(--t) + 260ms) both; }
.c-meet.live .keys li { animation: pop 0.3s calc(var(--t) + 200ms + var(--i) * 0.08s) both; }
.live .points li { animation: rise 0.45s var(--ease-out) calc(var(--t) + 140ms + var(--i) * 0.2s) both; }
/* 도장은 자리(.dday-room)가 들어온 뒤 두 번 숨 쉬듯 커졌다 돌아옵니다 */
.live .dday-room.rv-pic > .dday { animation: ring 2.4s ease-in-out calc(var(--t) + 900ms) 2; }
@keyframes ring { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }

/* ---------- 각 장 아래 다음 장으로 이끄는 한 줄 ---------- */

.next {
  position: absolute; left: 0; right: 0;
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 10px);
  margin: 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}
.next .nudge { display: inline-block; font-style: normal; }
.current .next .nudge { animation: nudge 1.3s var(--ease-in-out) calc(var(--t, 0ms) + 1200ms) 3; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }

/* ---------- 5장: 연애손금 감정서 ---------- */

/* 화면에도 공유 그림(감정서 1080 × 1920) 한 장을 그대로 보여 줍니다 */
.card-thumb { position: relative; flex: none; aspect-ratio: 1080 / 1920; }
.card-thumb img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; opacity: 0; transition: opacity 0.4s ease; -webkit-touch-callout: default; }
.card-thumb.ready img { opacity: 1; }
/* 감정서 칸은 남는 자리만큼 커지되 그림이 다 커진 크기(폭 411px)까지만. 긴 휴대폰에서 남는 자리는 제목 위와 단추 아래로 나눕니다 */
.cert { flex: 1 1 0; min-height: 0; max-height: calc(min(100vw - 36px, 411px) * 1920 / 1080); display: flex; align-items: center; justify-content: center; margin: var(--gap) 18px 0; }
.cert .card-thumb { height: 100%; max-height: 560px; max-width: 100%; }
.btns { display: grid; gap: 6px; }
.btns button { height: 40px; border-radius: 10px; border: 0; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: transform 0.18s var(--ease-out), filter 0.18s ease; }
.btns button:active { transform: scale(0.97); filter: brightness(0.94); }
.btns .a { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(179, 38, 46, 0.24); }
.btns .b { background: var(--card); border: 1px solid rgba(43, 29, 18, 0.22); color: var(--ink); }
.c-cert > .btns { flex: none; align-self: center; grid-template-columns: 1.5fr 1fr; gap: 8px; width: calc(100% - 36px); max-width: 330px; margin-top: var(--gap); margin-bottom: auto; }
.c-cert > .btns button { height: 48px; border-radius: 12px; font-size: 15px; }
.c-cert > .btns > :only-child { grid-column: 1 / -1; }   /* 인스타 앱 안에서는 저장 단추 하나만 있어 줄 전체를 씁니다. */
/* 저장 단추 줄 아래 카톡으로 공유하기(site/kakao-share.js, 2026-10-26): 저장 단추 줄과 같은 너비로 붙이고, 그 아래 빈칸은 이 단추가 맡습니다. */
.c-cert > .btns:has(+ .kshare) { margin-bottom: 0; }
.c-cert > .kshare { max-width: 330px; margin: 8px 0 auto; }

/* 5장 감정서는 칸에 드는 가장 큰 크기로(폭 411px까지). 처음 볼 때 떠오르며 인장이 쾅 찍히는 움직임은 site/cert-frame.js가 붙입니다. */
@supports (width: 1cqw) {
  .cert { container-type: size; }
  .cert .card-thumb { width: min(100cqw, 100cqh * 1080 / 1920, 411px); height: auto; max-height: none; }
}
/* ---------- 6장: 결제(내손내운 결과 6장과 같은 틀) ----------
   질문 여섯을 두 칸씩 세 줄에 두고(고른 칸은 다홍) 그 아래 작은 대화: 고른 질문과 흐리게 가린 캐릭터 답 위 자물쇠. 맨 아래 흰 결제 판에
   값 비교·값 단추·환불 안내·사업자 정보 */
.c-pay { padding-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 4px); }
.c-pay > .title { font-size: 28px; max-width: none; }
/* 제목은 두 단: 윗줄 작게, 아랫줄 크게. 이름은 강조색, **…** 낱말에는 3,900원과 같은 노란 형광펜(result.js payTitle, 인생손금 결과 6장과 같음) */
.c-pay > .title { line-height: 1.25; }
.c-pay > .title .tl1 { display: block; font-size: 0.8em; }
.c-pay > .title .tl2 { display: block; margin-top: 2px; font-size: 1.2em; }
.c-pay > .title .nm { color: var(--red); }
.c-pay > .title .hl { position: relative; z-index: 0; }
.c-pay > .title .hl::before { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 0.15em; height: 42%; border-radius: 6px 3px 7px 4px; background: var(--me, #fde68a); transform: rotate(-2deg) skewX(-14deg); }
.qs { flex: none; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: var(--gap) 18px 0; }
.qs button { min-height: 50px; padding: 10px; border-radius: 14px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font: 800 13px/1.35 var(--font-ui); text-align: left; word-break: keep-all; cursor: pointer; box-shadow: 0 2px 6px rgba(74, 46, 24, 0.06); -webkit-tap-highlight-color: transparent; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s var(--ease-out); }
.qs button::before { content: "Q"; margin-right: 5px; font: 700 14px var(--font-title); color: var(--red); }
.qs button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.qs button[aria-pressed="true"]::before { color: #ffd6cf; }
.qs button:active { transform: scale(0.97); }
.live .qs button { animation: rise 0.5s var(--ease-out) calc(var(--t, 0ms) + var(--i) * 70ms) both; }
.ans { flex: none; display: flex; flex-direction: column; gap: 9px; margin: 14px 18px 0; padding: 14px 12px 12px; border-radius: 18px; background: rgba(255, 250, 243, 0.62); border: 1px solid var(--rule); }
.ans .q { align-self: flex-end; max-width: 80%; margin: 0; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--red); color: #fff; font: 800 14px/1.35 var(--font-ui); word-break: keep-all; animation: msg-in 0.35s var(--ease-out) both; }
.ans .a { align-self: flex-start; display: flex; align-items: flex-end; gap: 7px; max-width: 94%; animation: msg-in 0.35s var(--ease-out) 0.1s both; }
/* 프로필: 대화 화면의 캐릭터 얼굴(talk.css .chat .t-face)과 같은 자르기 */
.ans .av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2) 50% 6% / auto 240% no-repeat; border: 1.5px solid var(--gold); }
.ans .b { display: grid; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); font: 700 13.5px/1.5 var(--font-ui); word-break: keep-all; overflow: hidden; transform-origin: 0 100%; }
.ans .tx, .ans .lkw { grid-area: 1 / 1; }   /* 자물쇠가 흐린 답 위에 얹히고 말풍선은 둘 가운데 넓은 쪽에 맞춥니다 */
.ans .tx { filter: blur(4.5px); }
.ans .lkw { display: grid; place-items: center; color: var(--red-2); }
.ans .lkw span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 250, 243, 0.96); box-shadow: 0 2px 8px rgba(74, 46, 24, 0.18); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ans .lkw svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ans .dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.ans .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: hop 1.1s ease-in-out infinite; }
.ans .dots i:nth-child(2) { animation-delay: 0.15s; }
.ans .dots i:nth-child(3) { animation-delay: 0.3s; }
.ans .cnt { align-self: center; margin: 2px 0 0; font-size: 12px; font-weight: 800; color: var(--ink-2); }
/* 답이 오면 쓰는 중 말풍선이 꼬리에서부터 답 크기로 커지고(result.js pickQuestion) 흐린 답이 더 흐린 데서 나온 뒤 자물쇠가 뜹니다 */
.ans .b.grown .tx { animation: unblur 0.35s var(--ease-out) both; }
.ans .b.grown .lkw span { animation: lock-in 0.3s var(--ease-out) 0.12s both; }
/* 반쯤 가린 답: 글은 보이고 [[ ]] 자리만 가림. 가린 자리는 글자 수(--n)만큼 너비, 진한 바탕과 짙은 글자를 함께 흐려 '가린 글'로 보이게(글은 ○만) */
.ans .tx.half { filter: none; }
.ans .tx.half .hx { display: inline-block; min-width: calc(var(--n, 2) * 1em); padding: 0 2px; margin: 0 1px; border-radius: 6px;
  background: rgba(74, 46, 24, 0.26); color: var(--ink); font-weight: 900; text-align: center; line-height: 1.3; filter: blur(3px); }
.ans .tx.half ~ .lkw { grid-area: 2 / 1; justify-items: start; margin-top: 7px; }
.ans .b.grown .tx.half { animation: fade-in 0.35s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes hop { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes unblur { from { opacity: 0; filter: blur(12px); } }
@keyframes lock-in { from { opacity: 0; transform: scale(0.94); } }
/* 장 아래 흰 결제 판(result.js paySheet): 값 비교·결제 단추·환불 안내·사업자 줄을 한 판에 모아 위의 질문·대화와 나눕니다(인생손금 결과 6장과
   같음, 사용자 2026-10-31). 판은 장 바닥(아래 여백 자리)까지 내려가 닿고, 남는 높이는 제목 위와 판 위에 반씩 둡니다. */
.c-pay > .ans { margin-bottom: 10px; }
.c-pay > .pay-sheet { flex: none; display: flex; flex-direction: column; margin-top: auto; margin-bottom: calc(-1 * (max(10px, env(safe-area-inset-bottom)) + 4px)); padding: 16px 18px calc(max(10px, env(safe-area-inset-bottom)) + 4px); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -10px 24px -16px rgba(60, 40, 20, 0.3); }
@media (max-height: 720px) { .c-pay > .ans { margin-bottom: 4px; } .c-pay > .pay-sheet { padding-top: 8px; } }
@media (max-height: 680px) { .c-pay > .pay-sheet { padding-top: 6px; } }
@media (max-height: 600px) { .c-pay > .pay-sheet { padding-top: 5px; } }
/* 결제 전 값 비교: 오프라인 칸(연한 회색, 값에 강조색 줄)과 내손내운 칸(흰 바탕·강조색 테두리, 3,900원에 노란 형광펜) 사이에 강조색 붓 화살표 */
.c-pay .pay-sheet > .price-compare { --pv: 7px; --fs: 12.5px; --p1: 16px; --p2: 25px; position: relative; flex: none; display: flex; align-items: center; gap: 26px; font: 400 var(--fs)/1.3 var(--font-ui); word-break: keep-all; }
.c-pay .price-row { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: var(--pv) 6px; border-radius: 14px; color: var(--ink); text-align: center; }
.c-pay .price-row span { white-space: nowrap; }
.c-pay .price-row span:first-child { font-weight: 700; }
.c-pay .price-row span:last-child { position: relative; font-size: var(--p1); font-weight: 800; line-height: 1.2; }
.c-pay .price-row.own span:first-child { font-weight: 800; }
.c-pay .price-row.own span:last-child { font-size: var(--p2); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.c-pay .pay-sheet > .price-compare + .cta { margin-top: 12px; }
.c-pay .price-row:not(.own) { background: color-mix(in srgb, var(--ink) 8%, var(--paper)); }
.c-pay .price-row:not(.own) span:last-child { color: color-mix(in srgb, var(--ink) 75%, var(--paper)); text-decoration-line: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2.5px; }
.c-pay .price-row.own { z-index: 1; border: 2.5px solid var(--red); background: #fff; }
.c-pay .price-row.own span:last-child { color: var(--red); font-family: var(--font-title); font-weight: 700; }
.c-pay .price-row.own span:last-child::before { content: ''; position: absolute; z-index: -1; left: -7px; right: -7px; bottom: 1px; height: 52%; border-radius: 6px 3px 7px 4px; background: var(--me, #fde68a); transform: rotate(-2deg) skewX(-14deg); }
.c-pay .price-row.own::before { content: ''; position: absolute; top: 50%; left: -28px; width: 26px; height: 19px; margin-top: -10px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2020%27%3E%3Cpath%20d%3D%27M1%2010.8C7%209.6%2012%208.9%2017.5%208.6L15.8%203.2%2027%2010.2%2015.8%2017%2017.5%2012C12%2012.2%207%2012.6%201%2012.8z%27%20fill%3D%27black%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2020%27%3E%3Cpath%20d%3D%27M1%2010.8C7%209.6%2012%208.9%2017.5%208.6L15.8%203.2%2027%2010.2%2015.8%2017%2017.5%2012C12%2012.2%207%2012.6%201%2012.8z%27%20fill%3D%27black%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
@media (max-height: 720px) { .c-pay .pay-sheet > .price-compare { --pv: 6px; --fs: 12px; --p1: 15px; --p2: 22px; } .c-pay .pay-sheet > .price-compare + .cta { margin-top: 7px; } }
@media (max-height: 600px) { .c-pay .pay-sheet > .price-compare { --pv: 4px; --p2: 19px; } .c-pay .pay-sheet > .price-compare + .cta { margin-top: 6px; } }
@media (max-width: 359px) { .c-pay .pay-sheet > .price-compare { --fs: 12px; --p1: 14px; } }
.c-pay .pay-sheet > .cta { flex: none; margin-top: 0; }
.c-pay .pay-sheet > .cta:disabled { opacity: 0.7; }
.c-pay .cta.shine::after { animation-play-state: paused; }
.c-pay.current .cta.shine::after { animation-play-state: running; }
/* 결제 단추 움직임: 숨 쉬듯 커졌다 작아지고 붉은 빛 고리가 퍼지며 빛이 자주 지나갑니다(지인 피드백 '결제 단추가 잘 안 보임', 사용자 2026-10-24 G안).
   보고 있는 장에서만 움직이고, 결제창을 여는 동안은 멈춥니다. */
.c-pay .pay-sheet > .cta[data-act="pay"] { animation: pay-pulse 1.6s ease-in-out infinite, pay-ring 1.6s ease-out infinite; }
.c-pay .pay-sheet > .cta[data-act="pay"]::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); animation: pay-sheen 3.2s ease-in-out 0.4s infinite; }
.c-pay:not(.current) .pay-sheet > .cta[data-act="pay"], .c-pay:not(.current) .pay-sheet > .cta[data-act="pay"]::after, .c-pay .pay-sheet > .cta[data-act="pay"]:disabled, .c-pay .pay-sheet > .cta[data-act="pay"]:disabled::after { animation-play-state: paused; }
@keyframes pay-pulse { 50% { scale: 1.04; } }
@keyframes pay-ring { from { box-shadow: 0 6px 16px rgba(179, 38, 46, 0.28), 0 0 0 0 rgba(179, 38, 46, 0.55); } to { box-shadow: 0 6px 16px rgba(179, 38, 46, 0.28), 0 0 0 14px rgba(179, 38, 46, 0); } }
@keyframes pay-sheen { 0% { translate: -120% 0; } 30%, 100% { translate: 120% 0; } }
/* 값 단추 아래: 환불 안내 한 줄(환불 규정 링크) */
.pay-note { flex: none; margin: 8px 0 0; text-align: center; color: var(--ink-2); font-size: 12px; word-break: keep-all; }
.pay-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* 맨 아래 사업자 정보(작은 글씨) */
.c-pay .pay-sheet > .biz { flex: none; margin: 8px 0 0; text-align: center; color: var(--ink-3); font-size: 9.5px; line-height: 1.4; word-break: keep-all; }
.c-pay .pay-sheet > .biz span { white-space: nowrap; }   /* 항목 하나는 중간에서 줄이 바뀌지 않음(070-8098-/8971) */

/* 알림 한 줄(결제를 확인하지 못했을 때 등). 결제 단추 바로 위에 뜹니다(result.js toast) */
.r-toast {
  position: absolute; z-index: 9; left: 50%; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 64px);
  transform: translate(-50%, 12px); max-width: calc(100% - 40px); padding: 10px 16px; border-radius: 999px;
  background: rgba(43, 29, 18, 0.92); color: #fff;
  font-size: 14px; font-weight: 700; text-align: center; word-break: keep-all;
  box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.r-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 결제 장 안내 줄 ---------- */

.end-sub { flex: none; margin: 8px 24px 0; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink-2); word-break: keep-all; }
.c-pay .end-sub .cnt-k { color: var(--red); font-weight: 800; }   /* 6장 안내 줄의 큰 기회 수 */

/* ---------- 감정서 크게 보기(길게 눌러 저장) ---------- */

.viewer {
  position: absolute; z-index: 8; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(max(10px, env(safe-area-inset-top)) + 50px) 20px calc(max(10px, env(safe-area-inset-bottom)) + 14px);
  background: rgba(245, 238, 227, 0.97);
  opacity: 0; transition: opacity 0.26s ease;
}
.viewer.open { opacity: 1; }
.viewer:not(.open) { pointer-events: none; }
.viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 50px); border-radius: 6px; box-shadow: var(--shadow); transform: translateY(18px) scale(0.94); transition: transform 0.5s var(--ease-out); -webkit-user-select: none; user-select: none; -webkit-touch-callout: default; }
.viewer.open img { transform: none; }
.viewer-note { flex: none; margin: 0; font: 700 14px var(--font-ui); color: var(--ink); text-align: center; }
.viewer-x { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 2px); right: 12px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 29, 18, 0.08); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.viewer-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 장마다 처음 볼 때 한 번 들어오는 움직임(.live) ----------
   1장은 따로(손바닥에 빛이 지나가며 선이 그려진 뒤 연애 유형이 도장처럼 찍힘). 다른 장은 읽는 차례대로 들어옵니다
   (result.js가 덩어리마다 시작 시각 --t를 줌): 큰 제목이 흐림에서 떠오르고, 창이 이 장의 선 쪽으로 다가가며 선이 그려지고,
   칸, 글이 한 줄씩, 마지막에 캐릭터가 튀어나와 말합니다. 선 그리기(draw)와 창 다가가기(push-in)는 theme.css에 있습니다. */
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes title-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
@keyframes pic-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes stamp-title { 0% { opacity: 0; transform: scale(1.6); filter: blur(6px); } 60% { opacity: 1; transform: scale(0.96); filter: blur(0); } 100% { transform: scale(1); } }
@keyframes scan { 0% { opacity: 0; background-position: 0 100%; } 15%, 80% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
@keyframes flip-letter {
  0% { transform: rotateY(0); color: var(--ink-2); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  12% { color: var(--red); }
  24%, 100% { transform: rotateY(-360deg); color: var(--ink-2); }
}
@keyframes stamp-seal { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 70% { opacity: 1; transform: rotate(-12deg) scale(0.92); } 100% { opacity: 0.92; transform: rotate(-12deg) scale(1); } }

/* 아직 안 본 장은 들어올 차례를 기다립니다(끌 때 가장자리에서만 보임) */
.card:not(.live) .rv { opacity: 0; }
.live .rv-title { animation: title-in 0.75s var(--ease-out) var(--t) both; }
.live .rv-pic { animation: pic-in 0.85s var(--ease-out) var(--t) both; }
.live .rv-line, .live .rv-box { animation: rise 0.6s var(--ease-out) var(--t) both; }
.live .rv-group { animation: fade-in 1ms var(--t) both; }
.live .rv-fade { animation: fade-in 0.6s ease var(--t) both; }

/* 창이 손 전체에서 이 장의 선 쪽으로 다가가고, 자리 잡으면 이 장의 선이 그려집니다 */
.live .art.lens .art-z { animation: push-in 1.3s var(--ease-out) calc(var(--t, 0ms) + 80ms) both; }
.live:not(.reveal) .art.draw .l-gold path, .live:not(.reveal) .art.draw .l-pink path { animation: draw 1s var(--ease-in-out) calc(var(--t, 0ms) + 360ms) both; }

/* 1장: 손바닥에 빛 띠가 지나가는 동안(손이 있는 곳만) 읽은 선이 그려지고, 유형 이름이 도장처럼 찍힙니다 */
.reveal .art.draw .art-in::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 232, 170, 0.6) 50%, transparent 60%) 0 100% / 100% 250% no-repeat;
  -webkit-mask: url(assets/hand-art.webp) center / 100% 100% no-repeat; mask: url(assets/hand-art.webp) center / 100% 100% no-repeat;
}
.reveal .art.draw .art-in.mirror::after { -webkit-mask-image: url(assets/hand-art-r.webp); mask-image: url(assets/hand-art-r.webp); }
.reveal.live .art.draw .art-in::after { animation: scan 0.8s ease-in-out both; }
.reveal.live .art.draw .art-in path { animation: draw 0.7s 0.25s var(--ease-in-out) both; }
.reveal.live .type-head .kick { animation: fade-in 0.35s 0.95s both; }
.reveal.live .type-head .title { animation: stamp-title 0.45s 1.05s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.reveal.live .type-head .stamp { animation: stamp-seal 0.35s 1.35s ease-out both; }
.reveal.live .type-head .keys li { animation: pop 0.3s calc(1.45s + var(--i) * 0.08s) both; }
.reveal.live > .swipe-cta { animation: fade-in 0.5s 1.75s both; }
.reveal.live .swipe-cta .flip span { animation: flip-letter 2.6s calc(2.5s + var(--i) * 0.055s) 3 both; }

/* 짧은 휴대폰(예: 아이폰 SE): 글씨와 칸을 조금 줄여 손 그림 자리를 남깁니다 */
@media (max-height: 720px) {
  .kick { font-size: 14.5px; }
  .title { font-size: 25px; }
  .c-cert > .title { font-size: 22px; }
  .c-type .type-head .title { font-size: 27px; }
  .copy { gap: 10px; }
  .copy p { font-size: 15.5px; line-height: 1.55; }
  .keys { margin-top: 9px; }
  .keys li { padding: 4px 12px; font-size: 14px; }
  .swipe-cta { padding: 6px 16px; font-size: 16px; }
  .c-meet .type-head .title, .c-charm .type-head .title { font-size: 25px; }
  .c-meet .copy p { font-size: 15px; }
  .wed { padding: 8px 14px 9px; }
  .wed b { font-size: 21px; }
  .lucks b { font-size: 21px; }
  .points li { font-size: 15px; }
  .points.lead li span { font-size: 20px; }
  .dday-sub { margin-top: 16px; font-size: 16px; }
  .dday-date { font-size: 16px; }
  /* 글이 긴 손은 선 창이 먼저 줄어 글이 카드 아래로 잘리지 않게 합니다 */
  .card > .art.lens { min-height: 64px; }
  .dday-room { min-height: 120px; }
}
/* 아주 짧은 화면(예: 사파리 안의 아이폰 SE): 간격을 더 줄여 모든 장이 들어가게 합니다 */
@media (max-height: 600px) {
  .card { --gap: 9px; }
  .kick { font-size: 14px; }
  .title, .c-meet .type-head .title, .c-charm .type-head .title { font-size: 23px; }
  .keys { margin-top: 7px; }
  .keys li { padding: 3px 11px; font-size: 13.5px; }
  .wed { padding: 6px 12px 7px; }
  .wed b, .lucks b { font-size: 20px; }
  .lucks .side { padding: 7px 10px 8px; }
  .points { gap: 6px; margin-top: 8px; }
  .points li { font-size: 14.5px; }
  .copy { gap: 6px; }
  .copy p, .c-meet .copy p { font-size: 15px; line-height: 1.5; }
  /* 아주 짧은 화면에서는 선 창이 남는 자리만큼만 보입니다(글이 먼저) */
  .card > .art.lens { min-height: 0; }
  .dday-sub { margin-top: 12px; font-size: 15px; }
  .dday-date { margin-top: 8px; font-size: 15px; }
}

/* 6장(결제)이 짧은 휴대폰에서도 맨 아래 사업자 줄까지 들어가게 제목·질문 칸·대화 칸을 줄입니다(내손내운 결과 6장과 같음) */
@media (max-height: 720px) {
  .c-pay > .title { font-size: 24px; }
  .c-pay .ans .cnt { display: none; }
  .c-pay .pay-sheet > .biz { margin-top: 6px; font-size: 9px; }
}
@media (max-height: 680px) {
  .qs { gap: 6px; }
  .qs button { min-height: 40px; padding: 7px 8px; font-size: 12.5px; }
  .ans { gap: 6px; margin-top: 10px; padding: 10px; }
  .ans .q { padding: 8px 12px; font-size: 13px; }
  .ans .b { padding: 8px 12px; font-size: 12.5px; }
}
@media (max-height: 600px) {
  .c-pay > .title { font-size: 22px; }
  .c-pay .end-sub { margin-top: 4px; font-size: 13px; }
  .c-pay .pay-sheet > .cta { height: 44px; }
  .pay-note { margin-top: 6px; }
}

/* 그래도 결제 전 6장이 넘치면(짧은 휴대폰·두 줄 질문) result.js fitPay가 덜 아까운 것부터 한 단계씩 줄입니다(뒤 단계는 앞 단계와 함께 붙음,
   신년손금 6장과 같은 방식, 2026-10-26). 1 짧은 휴대폰 크기(위 720·680과 같은 값), 2 대화 칸의 내 질문 말풍선
   (위 질문 칸에 이미 빨갛게 보임), 3 글씨·간격·단추 더 작게, 4 캐릭터 얼굴(말풍선을 넓혀 줄 수를 줄임), 5 제목 아래 안내 */
.c-pay.fit1 > .title { font-size: 24px; }
.c-pay.fit1 .ans .cnt { display: none; }
.c-pay.fit1 .pay-sheet > .biz { margin-top: 6px; font-size: 9px; }
.c-pay.fit1 .qs { gap: 6px; }
.c-pay.fit1 .qs button { min-height: 40px; padding: 7px 8px; font-size: 12.5px; }
.c-pay.fit1 .ans { gap: 6px; margin-top: 10px; padding: 10px; }
.c-pay.fit1 .ans .q { padding: 8px 12px; font-size: 13px; }
.c-pay.fit1 .ans .b { padding: 8px 12px; font-size: 12.5px; }
.c-pay.fit2 .ans .q { display: none; }
.c-pay.fit3 > .title { font-size: 21px; }
.c-pay.fit3 .qs { gap: 5px; }
.c-pay.fit3 .qs button { min-height: 36px; padding: 6px 8px; font-size: 12px; }
.c-pay.fit3 .ans { gap: 5px; margin-top: 8px; padding: 8px; }
.c-pay.fit3 .ans .b { padding: 7px 10px; }
.c-pay.fit3 .pay-sheet > .cta { height: 44px; }
.c-pay.fit3 .pay-note { margin-top: 5px; }
.c-pay.fit3 .pay-sheet > .biz { margin-top: 4px; }
.c-pay.fit4 .ans .av { display: none; }
.c-pay.fit4 .ans .a { max-width: 100%; }
.c-pay.fit5 .end-sub { display: none; }



/* ---------- 2026-11 확정 시안: 2장 매력 · 3장 인연 · 4장 잠금 ---------- */
/* 새 카드의 긴 한국어 라벨이 flex/grid의 min-content 폭으로 393px 밖을 밀지 않게 합니다. */
.sx-rib, .sx-top, .sx-prof, .sx-who, .sx-row, .s-box, .s-lk3 > div, .qs button { min-width: 0; box-sizing: border-box; }
.sx-who ul, .sx-who li, .sx-row span, .sx-top li span { min-width: 0; }
.sx-row b { flex: none; }
.s-box small, .s-lk3 small { width: 100%; min-width: 0; box-sizing: border-box; }


.c-charm, .c-meet { justify-content: space-between; row-gap: var(--gap); }
.c-charm > *, .c-meet > * { margin-top: 0 !important; }
.c-charm > .title, .c-meet > .title { margin: 0 20px; max-width: none; font-size: 28px; line-height: 1.25; color: var(--ink); }
.c-charm > .title .tl1, .c-meet > .title .tl1 { display: block; font-size: .8em; }
.c-charm > .title .tl2, .c-meet > .title .tl2 { display: block; margin-top: 2px; font-size: 1.2em; }
.c-charm > .title .nm, .c-meet > .title .nm { color: var(--red); }
.c-charm > .title .hl, .c-meet > .title .hl { position: relative; z-index: 0; }
.c-charm > .title .hl::before, .c-meet > .title .hl::before { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .15em; height: 42%; border-radius: 6px 3px 7px 4px; background: #fde68a; transform: rotate(-2deg) skewX(-14deg); }
.c-charm { --tone: var(--red); }
.c-meet { --tone: var(--c-style); }
.c-charm > .art.lens, .c-meet > .art.lens { flex: 1 1 0; min-height: 120px; max-height: 290px; }
.sx-lbl { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--red); font: 800 13px/1.2 var(--font-ui); white-space: nowrap; border: 1px solid var(--rule); box-shadow: 0 2px 8px rgba(74,46,24,.16); }
.sx-rib { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 18px; padding: 11px 16px 12px; border-radius: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 2px 6px rgba(74,46,24,.06); text-align: center; }
.sx-rib b { font: 700 19px/1.3 var(--font-title); letter-spacing: -.3px; word-break: keep-all; text-wrap: balance; color: var(--ink); }
.sx-rib .sx-bar { align-self: stretch; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--rule); }
.sx-rib .sx-bar small { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.sx-rib .sx-bar .tr { position: relative; height: 8px; border-radius: 99px; background: color-mix(in srgb,var(--ink) 8%,var(--paper)); overflow: hidden; }
.sx-rib .sx-bar .tr i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--red); }
.sx-rib .sx-bar em { font: 700 16px/1 var(--font-title); font-style: normal; color: var(--red); }
.sx-top, .sx-prof { flex: none; margin: 0 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 2px 6px rgba(74,46,24,.06); }
.sx-top { padding: 13px 16px 14px; }
.sx-top p { margin: 0 0 10px; text-align: center; font: 700 16px/1.2 var(--font-title); color: var(--ink); letter-spacing: -.2px; }
.sx-top p em { font-style: normal; color: var(--red); }
.sx-top ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sx-top li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); word-break: keep-all; }
.sx-top li i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 13px/1 var(--font-title); font-style: normal; background: var(--red-soft); color: var(--red); }
.sx-top li:first-child i { background: var(--red); color: #fff; }
.sx-prof { padding: 14px 15px 6px; border-radius: 18px; }
.sx-who { display: flex; align-items: center; gap: 13px; padding-bottom: 12px; border-bottom: 1px solid rgba(74,46,24,.09); }
.sx-ava { position: relative; flex: none; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 40%,#f6d9d4,#e9bfb8); box-shadow: 0 0 0 3px #fff,0 0 0 4.5px color-mix(in srgb,var(--tone) 45%,transparent); overflow: visible; }
.sx-ava .sil { position: absolute; left: 19px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(98,72,63,.5); filter: blur(1.6px); }
.sx-ava .sil::after { content:''; position:absolute; left:-10px; top:24px; width:44px; height:25px; border-radius:50% 50% 42% 42%; background:rgba(98,72,63,.5); }
.sx-ava .badge { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(74,46,24,.25); }
.sx-ava .badge svg { width:14px;height:14px;color:var(--gold); }
.sx-who ul { margin:0;padding:0;list-style:none;display:grid;gap:6px; }
.sx-who li { display:flex;align-items:flex-start;gap:7px;font-size:15px;font-weight:700;line-height:1.35;color:var(--ink);word-break:keep-all; }
.sx-who li::before { content:''; flex:none; width:6px;height:6px;margin-top:.5em;border-radius:50%;background:var(--tone); }
.sx-row { display:flex;align-items:center;gap:9px;padding:10px 2px; }
.sx-row + .sx-row { border-top:1px dashed rgba(74,46,24,.12); }
.sx-row > svg { flex:none;width:19px;height:19px;color:var(--tone-ink); }
.sx-row span { flex:1;font-size:15px;font-weight:800;color:var(--ink-2); }
.sx-row b { display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:var(--gold-soft); }
.sx-row b svg { width:14px;height:14px;color:var(--gold); }
.sx-row b i { display:block;width:52px;height:11px;border-radius:4px;background:#e6d4ad; }

.c-next { --gd:#8f6a1e; --rose-d:#b4383c; }
.c-next .s-title { flex:none;align-self:center;margin:0 20px;text-align:center;font:700 28px/1.3 var(--font-title);color:var(--ink);letter-spacing:-.5px; }
.c-next .dday-room { flex:1 1 0;min-height:125px;margin:var(--gap) 18px 0; }
.c-next .dday { --dd:clamp(120px,27svh,240px);background:#fff;box-shadow:0 0 0 3px var(--gold),0 0 0 9px #fff,0 0 0 10.5px color-mix(in srgb,var(--gold) 55%,transparent),var(--shadow); }
@supports (width:1cqh) { .c-next .dday { --dd:min(100cqh - 24px,100cqw - 24px,300px); } }
.c-next .dd-num { margin:0;font:700 calc(var(--dd) * .25)/1.1 var(--font-title);letter-spacing:-1px;color:var(--ink); }
.lk { display:inline-block;flex:none;width:1em;height:1em;vertical-align:-.14em;color:var(--gd,var(--gold)); }
.c-next .ddlk { display:inline-grid;place-items:center;width:.95em;height:.95em;margin-left:.1em;vertical-align:-.1em; }
.c-next .ddlk .lk { width:100%;height:100%;vertical-align:0;color:var(--gold); }
.c-next .s-sub { flex:none;margin:18px 24px 0;text-align:center;font-size:17px;font-weight:800;color:var(--ink-2);word-break:keep-all; }
.c-next .s-date { flex:none;align-self:center;display:inline-flex;align-items:center;gap:.32em;margin:10px 18px 0;padding:9px 18px;border-radius:999px;background:var(--gold-soft);color:var(--gd);font:800 17px/1.35 var(--font-ui);white-space:nowrap; }
.bar { display:inline-block;height:.78em;border-radius:.2em;background:#e6d4ad;vertical-align:-.06em; }
.bar.b4 { width:2.3em; }.bar.b2 { width:1.25em; }
.s-years { flex:none;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:calc(var(--gap) + 2px) 18px 0; }
.s-years.n1 { grid-template-columns:1fr; }
.s-box { display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(74,46,24,.07);text-align:center; }
.s-box small { font-size:12.5px;font-weight:800;word-break:keep-all; }
.s-box b { display:inline-flex;align-items:center;gap:.18em;font:700 20px/1.25 var(--font-title);letter-spacing:-.3px; }
.s-box b .lk { display:block;width:.78em;height:.78em;vertical-align:0;color:inherit; }
.s-box.love { color:var(--rose-d);border:1px solid rgba(194,59,59,.3); }.s-box.love .bar { background:#f5d9d6; }
.s-box.mar { color:var(--gd);border:1px solid rgba(183,134,44,.42); }.s-box.mar .bar { background:#efe0bf; }

@media (max-height:720px) {
  .sx-rib { padding:8px 14px 9px; }.sx-rib b { font-size:18px; }.sx-rib .sx-bar { margin-top:6px;padding-top:7px; }
  .sx-top { padding:10px 14px 11px; }.sx-top p { margin-bottom:7px; }.sx-top ol { gap:6px; }.sx-top li { font-size:15px; }
  .sx-prof { padding:11px 14px 4px; }.sx-who { padding-bottom:9px; }.sx-row { padding:7px 2px; }
}


/* 6장 안내 줄 자리에 4장에서 잠근 값 */
.s-lk3 { flex:none;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 18px 0; }
.s-lk3.n2 { grid-template-columns:repeat(2,1fr); }.s-lk3.n1 { grid-template-columns:1fr; }
.s-lk3 > div { display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;padding:8px 4px 9px;border-radius:12px;background:rgba(255,255,255,.92);border:1px solid rgba(183,134,44,.42);text-align:center; }
.s-lk3 small { flex:1;display:grid;place-items:center;font-size:11.5px;font-weight:800;line-height:1.25;color:var(--ink-2);word-break:keep-all;text-wrap:balance; }
.s-lk3 b { display:inline-flex;align-items:center;gap:.1em;font:700 19px/1.2 var(--font-title);letter-spacing:-.3px;color:var(--ink); }
.s-lk3 b .lk { display:block;width:.82em;height:.82em;color:var(--gold); }
.c-pay.fit3 .s-lk3 { margin-top:6px;gap:5px; }.c-pay.fit3 .s-lk3 > div { padding:3px 3px 4px;gap:1px;border-radius:10px; }
.c-pay.fit3 .s-lk3 small { font-size:10.5px;line-height:1.15; }.c-pay.fit3 .s-lk3 b { font-size:16px;line-height:1.1; }
.c-pay.fit5 .s-lk3 { margin-top:3px; }.c-pay.fit5 .s-lk3 > div { padding:2px; }.c-pay.fit5 .s-lk3 small { font-size:9.5px; }
.c-pay.fit6 > .title { font-size:19px; }.c-pay.fit6 .qs button { min-height:32px;padding:4px 6px;font-size:11.5px; }
.c-pay.fit6 .ans { margin-top:5px;padding:6px; }.c-pay.fit6 .ans .b { padding:5px 8px;font-size:11.5px; }
.c-pay.fit6 .pay-sheet { padding-top:3px; }.c-pay.fit6 .pay-sheet > .price-compare { --pv:3px;--fs:11px;--p1:13px;--p2:18px; }
.c-pay.fit6 .pay-sheet > .price-compare + .cta { margin-top:4px; }.c-pay.fit6 .pay-note { margin-top:3px;font-size:10px; }
.c-pay.fit6 .pay-sheet > .biz { margin-top:2px;font-size:8.5px;line-height:1.25; }

@media (max-height: 590px) {
  .c-pay > .title { font-size: 19px; }
  .c-pay .s-lk3 { margin-top: 3px; gap: 4px; }
  .c-pay .s-lk3 > div { padding: 2px; }
  .c-pay .s-lk3 small { font-size: 9.5px; line-height: 1.1; }
  .c-pay .s-lk3 b { font-size: 15px; }
  .c-pay .qs { margin-top: 4px; gap: 4px; }
  .c-pay .qs button { min-height: 32px; padding: 4px 6px; font-size: 11.5px; }
  .c-pay .ans { margin-top: 5px; padding: 6px; }
  .c-pay .ans .b { padding: 5px 8px; font-size: 11.5px; }
  .c-pay .pay-sheet { padding-top: 3px; }
  .c-pay .pay-sheet > .price-compare { --pv: 3px; --fs: 11px; --p1: 13px; --p2: 18px; }
  .c-pay .pay-sheet > .price-compare + .cta { margin-top: 4px; }
  .c-pay .pay-note { margin-top: 3px; font-size: 10px; }
  .c-pay .pay-sheet > .biz { margin-top: 2px; font-size: 8.5px; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .track, .bars i::after, .card::before, .card::after, .viewer, .viewer img, .r-toast { transition: none !important; }
  .card::before { animation: none !important; }
  .live, .live *, .live *::after, .current *, .current *::after { animation: none !important; }
}
