/* 사이트 공통 스타일 + 모션.
   모션 원칙(apple-design): 누르는 즉시 반응 · 스프링 · 끊어도 현재 값에서 이어짐 · 모션 줄이기 존중 */

/* 색 변수를 '색'으로 등록해 두면 애니메이션 때 값 사이가 부드럽게 섞인다 (등록 안 하면 뚝뚝 바뀜) */
@property --accent        { syntax: "<color>";    inherits: true; initial-value: #c99b57; }
@property --on-accent     { syntax: "<color>";    inherits: true; initial-value: #241a10; }
@property --accent-ink    { syntax: "<color>";    inherits: true; initial-value: #e8c586; }
@property --accent-tint   { syntax: "<color>";    inherits: true; initial-value: rgba(201, 155, 87, 0.16); }
@property --accent-rgb    { syntax: "<number>#";  inherits: true; initial-value: 201, 155, 87; }
@property --accent-shadow { syntax: "<number>#";  inherits: true; initial-value: 122, 88, 32; }
@property --bg            { syntax: "<color>";    inherits: true; initial-value: #120e08; }

:root {
  /* 스프링 = 감쇠 1.0 / response 0.4 (튕김 없음, 기본) */
  --spring-smooth-dur: 0.56s;
  --spring-smooth: linear(0, 0.0254, 0.0868, 0.1674, 0.2559, 0.3452, 0.4308, 0.51, 0.5816, 0.6452, 0.7009, 0.7491, 0.7905, 0.8257, 0.8555, 0.8806, 0.9016, 0.9191, 0.9336, 0.9456, 0.9556, 0.9638, 0.9705, 0.976, 0.9805, 0.9842, 0.9872, 0.9896, 0.9916, 0.9932, 0.9945, 0.9956, 0.9965, 0.9971, 0.9977, 0.9982, 1);
  /* 스프링 = 감쇠 0.8 / response 0.35 (살짝 튕김 — 손동작 뒤에 오는 반응에만) */
  --spring-bouncy-dur: 0.46s;
  --spring-bouncy: linear(0, 0.0233, 0.0822, 0.1633, 0.2562, 0.3531, 0.4487, 0.539, 0.6218, 0.6958, 0.7604, 0.8156, 0.862, 0.9001, 0.931, 0.9554, 0.9742, 0.9884, 0.9987, 1.0059, 1.0107, 1.0135, 1.0149, 1.0152, 1.0147, 1.0137, 1.0125, 1.011, 1.0096, 1.0081, 1.0068, 1.0055, 1.0044, 1.0035, 1.0027, 1.002, 1);
  interpolate-size: allow-keywords;
  /* 포인트색 = 풀이서 표지의 금색 */
  --accent: #c99b57; --on-accent: #241a10; --accent-ink: #a9772a;
  /* 구분선: 베이지 배경 위에서 연하게 보이는 갈색 헤어라인 */
  --hairline: rgba(255, 255, 255, 0.10);
  --accent-rgb: 201, 155, 87; --accent-tint: #eadfc6; --accent-shadow: 122, 88, 32;
}

/* 로그인하고 '내 정보'로 결제한 풀이가 있으면 그 풀이의 필요한 기운 색이 포인트색이 된다 (<body data-accent=…>).
   색은 app/accent.py 와 같아야 한다. 글자색(--on-accent)은 포인트색 위에서 읽히도록 어둡게. */
body[data-accent=wood]  { --accent: #86b07c; --accent-rgb: 134, 176, 124; --on-accent: #16240f; --accent-ink: #b4d6aa; --accent-tint: rgba(134, 176, 124, 0.16); --accent-shadow: 52, 92, 48; }
body[data-accent=fire]  { --accent: #e08a5e; --accent-rgb: 224, 138, 94;  --on-accent: #2a1208; --accent-ink: #f4b490; --accent-tint: rgba(224, 138, 94, 0.16); --accent-shadow: 140, 62, 28; }
body[data-accent=earth] { --accent: #c99b57; --accent-rgb: 201, 155, 87;  --on-accent: #241a10; --accent-ink: #e8c586; --accent-tint: rgba(201, 155, 87, 0.16); --accent-shadow: 122, 88, 32; }
body[data-accent=metal] { --accent: #9ea4ab; --accent-rgb: 158, 164, 171; --on-accent: #1c1f23; --accent-ink: #d2d7dc; --accent-tint: rgba(158, 164, 171, 0.16); --accent-shadow: 70, 78, 88; }
body[data-accent=love]  { --accent: #ff7eb0; --accent-rgb: 255, 126, 176; --on-accent: #2a0d1a; --accent-ink: #ffb3d1; --accent-tint: rgba(255, 126, 176, 0.16); --accent-shadow: 150, 40, 90; }   /* 연애운 (핑크) */
body[data-accent=reunion] { --accent: #a98bff; --accent-rgb: 169, 139, 255; --on-accent: #150d2a; --accent-ink: #cdbcff; --accent-tint: rgba(169, 139, 255, 0.16); --accent-shadow: 70, 40, 140; }   /* 재회운 (보라) */
body[data-accent=wealth] { --accent: #f3c64f; --accent-rgb: 243, 198, 79; --on-accent: #2a1d05; --accent-ink: #ffe08a; --accent-tint: rgba(243, 198, 79, 0.16); --accent-shadow: 140, 100, 20; }   /* 재물운 (금빛) */
body[data-accent=newyear] { --accent: #e8c586; --accent-rgb: 232, 197, 134; --on-accent: #2a1d05; --accent-ink: #f3d58e; --accent-tint: rgba(232, 197, 134, 0.16); --accent-shadow: 120, 90, 40; }   /* 신년운세 (남색 밤하늘의 금색) */
body[data-accent=water] { --accent: #7d9cc0; --accent-rgb: 125, 156, 192; --on-accent: #0f1a2a; --accent-ink: #acc8e8; --accent-tint: rgba(125, 156, 192, 0.16); --accent-shadow: 40, 70, 110; }

/* 배경색도 같은 계열로 은은하게 (html 에 두어 body·스크롤 끝 배경이 함께 바뀜. 기본값 --bg 는 report.css) */
html:has(body[data-accent=wood])  { --bg: #08110c; }
html:has(body[data-accent=fire])  { --bg: #150a07; }
html:has(body[data-accent=earth]) { --bg: #120e08; }
html:has(body[data-accent=metal]) { --bg: #0c0f12; }
html:has(body[data-accent=water]) { --bg: #070d18; }
html:has(body[data-accent=love])  { --bg: #170c17; }   /* 연애운: 어두운 자두색 우주 */
html:has(body[data-accent=reunion]) { --bg: #0e0919; }   /* 재회운: 어두운 보랏빛 우주 */
html:has(body[data-accent=wealth]) { --bg: #130e06; }   /* 재물운: 어두운 금빛 우주 */
html:has(body[data-accent=newyear]) { --bg: #0b0e1c; }   /* 신년운세: 남색 밤하늘 */
html, body { transition: background-color 0.35s ease; }

/* 내 색이 아직 없을 때(로그아웃·결제 전): 포인트색과 배경색이 함께 오행 상생 순서로 천천히 순환한다.
   목 → 화 → 토 → 금 → 수 → 목. '동작 줄이기'를 켠 기기에서는 순환 없이 금색·베이지 고정. */
@media (prefers-reduced-motion: no-preference) {
  html:has(body[data-accent=cycle]) { animation: accent-cycle 20s linear infinite; }  /* html 에 거는 이유: html·body 배경이 같은 --bg 를 씀 */
  html:has(body[data-accent=cycle]), html:has(body[data-accent=cycle]) body { transition: none; }  /* 매 프레임 바뀌는 값을 transition 이 뒤쫓지 않게 */
}
@keyframes accent-cycle {
  0%, 5% { --accent: #86b07c; --accent-rgb: 134, 176, 124; --on-accent: #16240f; --accent-ink: #b4d6aa; --accent-tint: rgba(134, 176, 124, 0.16); --accent-shadow: 52, 92, 48; --bg: #08110c; }
  20%, 25% { --accent: #e08a5e; --accent-rgb: 224, 138, 94; --on-accent: #2a1208; --accent-ink: #f4b490; --accent-tint: rgba(224, 138, 94, 0.16); --accent-shadow: 140, 62, 28; --bg: #150a07; }
  40%, 45% { --accent: #c99b57; --accent-rgb: 201, 155, 87; --on-accent: #241a10; --accent-ink: #e8c586; --accent-tint: rgba(201, 155, 87, 0.16); --accent-shadow: 122, 88, 32; --bg: #120e08; }
  60%, 65% { --accent: #9ea4ab; --accent-rgb: 158, 164, 171; --on-accent: #1c1f23; --accent-ink: #d2d7dc; --accent-tint: rgba(158, 164, 171, 0.16); --accent-shadow: 70, 78, 88; --bg: #0c0f12; }
  80%, 85% { --accent: #7d9cc0; --accent-rgb: 125, 156, 192; --on-accent: #0f1a2a; --accent-ink: #acc8e8; --accent-tint: rgba(125, 156, 192, 0.16); --accent-shadow: 40, 70, 110; --bg: #070d18; }
  100% { --accent: #86b07c; --accent-rgb: 134, 176, 124; --on-accent: #16240f; --accent-ink: #b4d6aa; --accent-tint: rgba(134, 176, 124, 0.16); --accent-shadow: 52, 92, 48; --bg: #08110c; }
}

html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label { touch-action: manipulation; }

/* ── 페이지 이동: 이전 화면은 살짝 물러나고, 새 화면이 스프링으로 떠오름 ── */
@view-transition { navigation: auto; }
/* 화면 전체(배경 포함)는 흐려지지 않고 그대로 바뀜 — 움직임은 아래 .rise 항목들만. (전체를 흐리면 배경이 같이 번쩍임) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ── 등장: 항목이 차례로 스프링으로 올라옴 (--i 로 순서 지정) ── */
.rise { animation: rise var(--spring-smooth-dur) var(--spring-smooth) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

/* ── 누르기: 누르는 순간 즉시 줄어들고, 놓으면 스프링으로 복귀 (진행 중이어도 현재 값에서 이어짐) ── */
.press { transition: transform var(--spring-smooth-dur) var(--spring-smooth); user-select: none; -webkit-touch-callout: none; }
.press:active { transform: scale(0.97); transition-duration: 90ms; transition-timing-function: ease-out; }

/* ── 본문 ── */
body.site { width: auto; max-width: 430px; margin: 0 auto; padding: 56px 20px 72px; font-size: 16px; line-height: 24px; }
/* 큰 글자는 자간을 조임 */
.site h1 em { font-style: normal; color: var(--accent-ink); }
.site h1 { font-size: 32px; font-weight: 400; line-height: 40px; letter-spacing: -0.02em; }
.site .lede { margin: 12px 0 32px; color: var(--ink-3); }
.site h2.sec { margin: 48px 0 8px; font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; }

/* ── 서비스 카드 (예시 사이트의 카드 그리드 구조 참고, 디자인은 자체) ── */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }   /* 상품 카드는 세로로 쌓는다 */
.svc { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 20px; border-radius: 24px; background: var(--accent-tint); overflow: hidden; }
.svc.wide { grid-column: 1 / -1; }
.svc b { display: block; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.svc p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.svc .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc .go { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.svc .go svg { width: 20px; height: 20px; }
/* 오행 다섯 점 — 카드 안 장식. 차례로 튕기며 나타남 */
.dots { display: flex; gap: 8px; margin-bottom: 24px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; animation: pop var(--spring-bouncy-dur) var(--spring-bouncy) both; animation-delay: calc(0.25s + var(--d) * 70ms); }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }

/* ── 자주 묻는 질문 (접힐 때도 스프링) ── */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }   /* 맨 마지막 질문 아래에는 줄을 두지 않는다 */
.faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 60px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 24px; height: 24px; margin-right: -5px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 24px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 24px no-repeat; transition: transform var(--spring-bouncy-dur) var(--spring-bouncy); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--spring-smooth-dur) var(--spring-smooth), content-visibility var(--spring-smooth-dur) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .a { padding-bottom: 20px; font-size: 15px; line-height: 24px; color: var(--ink-3); }

/* ── 푸터 ── */
.foot-biz { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--ink-4); }
.foot-biz b { display: block; margin-bottom: 4px; color: var(--ink-3); font-size: 14px; line-height: 20px; }

/* ── 입력 폼 ── */
.fld { display: block; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--ink-2); font-weight: 600; }
.site input[type=text], .site input[type=date], .site input[type=time] { display: block; width: 100%; height: 52px; margin-top: 8px; padding: 0 16px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 160ms, box-shadow 160ms; }
.site input::-webkit-datetime-edit { padding: 0; }
.site input::-webkit-calendar-picker-indicator { margin: 0; opacity: 0.55; }
.site input:focus-visible { outline: none; border-color: #222; box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.12); }
.chk { display: flex; gap: 12px; margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--ink-2); align-items: flex-start; }
.chk input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #b9b0a3; border-radius: 6px; background: #fff center / 14px no-repeat; cursor: pointer; transition: background-color 160ms, border-color 160ms, transform var(--spring-smooth-dur) var(--spring-smooth); }
.chk input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241a10' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.chk input:active { transform: scale(0.92); transition-duration: 90ms; }
.chk input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.18); }
.err { margin-top: 20px; padding: 12px 16px; background: #f6dcd6; color: #8a2f1f; border-radius: 14px; font-size: 14px; line-height: 20px; animation: rise var(--spring-smooth-dur) var(--spring-smooth) both; }

/* ── 반투명 하단 바 (소재: 내용이 아래로 스크롤되어 비침) ── */
body.has-bar { padding-bottom: 120px; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); pointer-events: none; }
.cta-bar > * { max-width: 390px; margin: 0 auto; pointer-events: auto; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; padding: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; border: 0; border-radius: 14px; cursor: pointer; box-shadow: 0 10px 28px rgba(var(--accent-shadow), 0.30), 0 2px 6px rgba(var(--accent-shadow), 0.18); }

/* ── 결제 요약 / 개발용 안내 ── */
.sum { border-top: 1px solid var(--line); }
.sum div { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
.sum span:first-child { color: var(--ink-3); }
/* 결제 화면의 영수증: 주문 내용과 금액을 한 상자에, 절취선처럼 점선으로 나눈다 */
.receipt { margin-top: 24px; padding: 20px 20px 18px; border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 20px; background: var(--glass); font-variant-numeric: tabular-nums; }
.receipt h2 { margin: 0; font-size: 17px; line-height: 24px; text-align: center; letter-spacing: 0.04em; }
.rc-lede { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-3); text-align: center; }
.rc-rows { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.28); }
.rc-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; font-size: 14.5px; line-height: 22px; }
.rc-rows dt { flex: none; color: var(--ink-3); }
.rc-rows dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.rc-off dd { color: var(--accent-ink); }
.rc-rows .rc-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); align-items: center; }
.rc-rows .rc-total:first-child { margin-top: 0; padding-top: 6px; border-top: 0; }
.rc-total dt { color: var(--ink); font-weight: 600; }
.rc-total dd { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--accent-ink); }
/* 동의 없이 결제를 눌렀을 때: 어디를 체크해야 하는지 */
.chk { scroll-margin-block: 100px; }
.chk.need input { border-color: #ff8f7a; box-shadow: 0 0 0 4px rgba(255, 120, 96, 0.3); }
.chk-need { margin: 8px 0 0 32px; font-size: 13.5px; line-height: 20px; font-weight: 600; color: #ffa08c; }
.dev { margin-top: 24px; padding: 12px 16px; background: #fff3c4; border-radius: 14px; font-size: 13px; line-height: 20px; color: #6b5200; }

/* ── 접근성: 모션 줄이기 = 움직임을 없애고 부드러운 페이드로 ── */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .rise, .err, .dots i { animation: fade 200ms ease both; animation-delay: 0s; }
  .seg::before { transition: none; }
  .press:active { transform: none; }
  .faq details::details-content { transition: none; }
  .faq summary::after { transition: none; }
}
@keyframes fade { from { opacity: 0; } }

/* ── 세그먼트 토글: 활성 칸(금색)이 스프링으로 미끄러짐. 높이 52 = 입력칸과 같은 규격 ── */
fieldset.grp { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }   /* legend는 위 여백이 먹지 않아 fieldset에 준다 */
fieldset.grp legend { padding: 0; }
.seg { --n: 2; --pos: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); height: 52px; margin-top: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 10px; background: var(--accent); opacity: 0; transform: translateX(calc(var(--pos) * 100%)); transition: transform var(--spring-smooth-dur) var(--spring-smooth), opacity 160ms; }
.seg:has(input:checked)::before { opacity: 1; }
.seg:has(label:nth-child(2) input:checked) { --pos: 1; }
.seg:has(label:nth-child(3) input:checked) { --pos: 2; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color 160ms; }
.seg label:has(input:checked) { color: var(--on-accent); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.18); }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }

/* ── 선택칸 (년·월·일, 시·분): 입력칸과 같은 높이·글자 시작선, 쉐브론은 FAQ와 같은 선 굵기 ── */
.row2, .row3 { display: grid; gap: 8px; margin-top: 8px; }   /* 세그먼트와 같은 방식: 컨테이너가 라벨과 8px 띄움 */
.row2 select, .row3 select { margin-top: 0; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1.3fr 1fr 1fr; }
.site select { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 52px; margin-top: 8px; padding: 0 36px 0 16px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 13px center / 20px no-repeat; cursor: pointer; transition: border-color 160ms, box-shadow 160ms, opacity 160ms; }
.site select:invalid { color: var(--ink-4); }
.site select:focus-visible { outline: none; border-color: #222; box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.12); }
.site select:disabled { opacity: 0.7; cursor: default; }

/* ── 이전 버튼: 화살표 + '이전'. 화살표의 그려진 왼쪽 끝이 본문 왼쪽선(20px)과 같음 ── */
.back-gap { height: 68px; }   /* 이전 알약(고정)이 있던 자리를 비워 두어 아래 내용이 올라오지 않게 */
body.has-back { padding-top: 16px; }

/* ── 로그인 · 내 풀이 ── */
.topnav { display: flex; justify-content: space-between; height: 44px; margin: -48px 0 16px; }   /* 소개 화면의 로고(위 8px·높이 44px)와 같은 높이 — 홈으로 넘어가도 헤더가 내려와 보이지 않게. 아래 내용 자리는 그대로(-8px/+8px) */
.topnav .navlinks { display: flex; }
.topnav a.brand { padding: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.topnav a { display: flex; align-items: center; height: 44px; padding: 0 0 0 16px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.sso { display: grid; gap: 12px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.sso-btn svg { flex: none; width: 20px; height: 20px; }
.sso-btn.kakao { background: #fee500; color: rgba(0, 0, 0, 0.85); }   /* 카카오·네이버 브랜드 색 */
.kakao-btn, .naver-btn { display: block; }
.kakao-btn img, .naver-btn img { display: block; width: 100%; height: auto; }          /* 카카오·네이버 공식 로그인 버튼 이미지: 비율은 그대로 두고 폭만 맞춘다 */
@property --insta-angle { syntax: "<angle>"; inherits: false; initial-value: 90deg; }
.sso-btn.insta { --insta-angle: 90deg; background: linear-gradient(var(--insta-angle), #f09433 0px, #e6683c 70px, #dc2743 140px, #cc2366 210px, #bc1888 280px); color: #fff; }   /* 인스타그램 브랜드 색. var() 에 대체값(, 90deg)을 붙이면 애니메이션 각도가 무시되므로 기본 각도는 위처럼 따로 선언한다 */
@media (prefers-reduced-motion: no-preference) { .sso-btn.insta { animation: insta-spin 8s linear infinite; } }
@keyframes insta-spin { to { --insta-angle: 450deg; } }                                          /* 그라데이션의 방향이 한 바퀴(90deg → 450deg) 돈다: 한 방향으로 쓸려 가지 않아 이어 붙는 경계가 보이지 않는다 */
.sso.sns { margin-top: 40px; }                                                                                                  /* 홈 '자주 묻는 질문' 위 SNS 버튼 */
.review-login { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 14px; border: 1px dashed var(--line); border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }

.mylist { border-top: 1px solid var(--hairline); }
.myitem { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--hairline); }
.myitem > a:first-child { display: block; flex: 1; min-width: 0; padding: 16px 0; }
.myitem b { display: block; font-weight: 600; line-height: 24px; }
.myitem span { display: block; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.myitem .pdf { flex: none; display: grid; place-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 18px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.myitem form { display: flex; flex: none; }
.myitem .del { background: #c4412f; border-color: #c4412f; color: #fff; }
.empty { padding: 32px 0; text-align: center; color: var(--ink-3); }
.empty a { display: inline-block; margin-top: 8px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 5px; }   /* 주변 글자와 같은 색 */
.acct { display: flex; gap: 12px; margin-top: 48px; }
.acct form { display: flex; flex: 1; }
.ghost { flex: 1; height: 52px; font: inherit; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.ghost.danger { background: #c4412f; border-color: #c4412f; color: #fff; }
a.ghost { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.hint { color: var(--ink-3); font-size: 14px; line-height: 20px; }

/* ── 개발용 색 미리보기 (가짜 로그인 모드에서만 표시) ── */
.devpick { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 50; display: flex; gap: 6px; padding: 6px 8px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 18px; box-shadow: 0 2px 12px rgba(60, 45, 25, 0.16); }
.devpick button { width: 22px; height: 22px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14); font: inherit; font-size: 12px; line-height: 18px; color: var(--ink-3); cursor: pointer; }
.devpick button.reset { background: #fff; }
.devpick button.on { box-shadow: 0 0 0 2px #241a10; }

/* ── 인트로 (스크롤 스토리) ──
   장면이 보이는 순서대로 body[data-accent] 가 바뀌어 배경·포인트색이 목→화→토→금→수로 따라온다. */
/* 장면들은 문서가 아니라 화면에 고정된 상자(.story)가 스크롤한다.
   폰 주소창이 접히고 펴져도 문서 높이가 변하지 않아서 섹션 높이가 화면과 어긋나거나 맞춤 지점이 밀리지 않는다. */
html:has(.story) { overscroll-behavior: none; }
body.intro-page { padding: 0; overflow: hidden; }
.story { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.story::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .story { scroll-behavior: auto; } }
.scene { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; min-height: 100%; max-width: 430px; margin: 0 auto; padding: calc(72px + env(safe-area-inset-top, 0px)) 20px calc(72px + env(safe-area-inset-bottom, 0px)); scroll-snap-align: start; scroll-snap-stop: always; }
.scene .no { margin-bottom: 16px; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 0.02em; color: var(--accent-ink); }
.scene h2 { font-size: 34px; font-weight: 400; line-height: 44px; letter-spacing: -0.02em; }
.scene p { margin-top: 20px; font-size: 17px; line-height: 28px; color: var(--ink-3); }
.scene p.note { font-size: 13px; line-height: 20px; color: var(--ink-4); }
.scene .btn { margin-top: 32px; }
.scroll-hint { margin-top: 40px; font-size: 13px; line-height: 20px; color: var(--ink-4); }
.skip { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); right: 20px; z-index: 40; display: flex; align-items: center; height: 44px; padding: 0 0 0 16px; font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* 다섯 기운 막대: 장면 2는 치우침, 장면 3은 비어 있는 土 자리가 점선이었다가 색으로 채워짐 */
.elbars { display: flex; align-items: flex-end; gap: 12px; height: 176px; margin-top: 32px; }
.el { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.el i { display: block; width: 100%; height: var(--h); border-radius: 12px; background: var(--c); }
.el b { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink-3); }
/* 장면 3: 비어 있는 土 자리를 강조 — 채우지 않고 비워 둔 채, 줄무늬 바탕의 점선 칸이 숨 쉬듯 빛나고 이름표가 붙는다. 나머지 막대는 흐리게 */
.elbars.is-gap .el:not(.gap) i { opacity: 0.4; }
.elbars.is-gap .el:not(.gap) b { opacity: 0.55; }
.el.gap i { box-sizing: border-box; height: 50%; border: 2px dashed var(--accent-ink); background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.16) 0 8px, transparent 8px 16px); }
html.io-on .el.gap i { height: 10%; }
.el .tag { display: block; padding: 3px 8px; border-radius: 10px; background: var(--accent-ink); color: #fff; font-size: 12px; font-style: normal; font-weight: 600; line-height: 18px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .scene.on .el.gap i { animation: gap-rise 5.2s cubic-bezier(0.4, 0, 0.3, 1) infinite, gap-pulse 2.4s ease-in-out infinite; }
}
/* 빈자리: 줄어 있는 상태(10%)에서 천천히 50%까지 늘어나고(4.4초), 잠깐 머문 뒤 처음(10%)으로 돌아가 다시 늘어난다. 늘었다 줄었다가 아님 */
@keyframes gap-rise { 0% { height: 10%; } 85% { height: 50%; } 100% { height: 50%; } }
@keyframes gap-pulse { 0%, 100% { border-color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } 50% { border-color: var(--accent); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0.24); } }
/* 다섯 기운 막대(장면 2): 높이는 인트로 스크립트가 무작위 목표로 바꾸고, 여기서는 스프링으로 살짝 튕기며 자리 잡게만 한다 */
.elbars.is-live .el i { transition: height 1.1s var(--spring-bouncy); }
@media (prefers-reduced-motion: reduce) { .elbars.is-live .el i { transition: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 20px; background: #fff; font-size: 14px; font-weight: 600; }
.chips i { width: 18px; height: 18px; border-radius: 50%; }

/* 보이는 순서대로 떠오름. 스크립트가 없거나 '동작 줄이기'면 처음부터 다 보임 */
html.io-on .scene [data-reveal] { opacity: 0; transform: translateY(18px); }
html.io-on .scene.on [data-reveal] { opacity: 1; transform: none; transition: opacity 0.5s ease-out, transform var(--spring-smooth-dur) var(--spring-smooth); transition-delay: calc(var(--i, 0) * 90ms); }

/* ── 관리자 (대시보드) ── 막대는 한 가지 색, 두께 24px 이하, 데이터 끝만 4px 둥글게, 격자는 가장 옅은 실선 */
body.site.admin-page { max-width: 960px; padding-top: 32px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; }
.adm-head h1 { font-size: 28px; line-height: 36px; }
.adm-link { height: 44px; padding: 0 0 0 16px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.adm-filter { display: flex; gap: 8px; margin: 16px 0 8px; }
.adm-filter a { display: flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.adm-filter a[aria-current="page"] { background: var(--accent-ink); color: #fff; }
.dp-view { flex-wrap: wrap; margin: 4px 0 12px; }
.dp-view a, .dp-view-off { height: 32px; padding: 0 14px; font-size: 13px; }
.dp-view-off { display: flex; align-items: center; border-radius: 16px; border: 1px solid var(--line); color: var(--ink-4); font-weight: 600; opacity: 0.5; cursor: not-allowed; }
.dp-view a, .dp-view-off { white-space: nowrap; }
.adm-note { margin: 0 0 20px; font-size: 13px; line-height: 20px; color: var(--ink-4); }
.adm-empty { margin: 0 0 20px; padding: 16px; border-radius: 14px; background: #fff; font-size: 14px; color: var(--ink-3); text-align: center; }
.adm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 640px) { .adm-tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: #fff; }
.tile span { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.tile b { font-size: 26px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }   /* 숫자는 줄바꿈 금지 */
.adm-tiles.rates { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
.tile { min-width: 0; }
.tile small { font-size: 12px; line-height: 16px; color: var(--ink-4); }
.adm-card { margin-bottom: 20px; padding: 20px; border-radius: 20px; background: #fff; }
.adm-card h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.adm-card h3 { margin: 20px 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-3); }
.adm-sub { margin: 4px 0 16px; font-size: 13px; line-height: 20px; color: var(--ink-4); }
.ps-box { margin: 0 0 14px; border: 1px solid rgba(var(--ps-tone), .55); border-radius: 14px; overflow: hidden; }
.ps-box-before { --ps-tone: 143, 170, 255; }
.ps-box-during { --ps-tone: 255, 190, 92; }
.ps-box h3 em { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ps-window { display: inline-block; margin: 2px 0; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; font-size: 12px; line-height: 18px; color: var(--ink-2); }
.ps-box h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 14px; background: rgba(var(--ps-tone), .28); font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.ps-sum { margin: 0; padding: 0; list-style: none; }
.ps-sum li { padding: 10px 14px; font-size: 13px; line-height: 20px; }
.ps-sum li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ps-sum li.ps-bad { background: rgba(255, 90, 70, 0.12); color: #ffb3a6; }
.ps-tag.ps-bad { border-color: rgba(255, 111, 90, 0.7); background: rgba(255, 90, 70, 0.14); color: #ffb3a6; }
.ps-sum li div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ps-sum li small { display: block; color: var(--ink-4); }
.ps-sum li small.ps-who { margin-top: 2px; color: var(--ink-2); font-weight: 600; }
.ps-tag { display: inline-block; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; font-size: 12.5px; line-height: 20px; }
.ps-listhead { margin: 28px 0 12px; padding-top: 20px; border-top: 3px solid rgba(255, 255, 255, 0.3); font-size: 15px; line-height: 22px; color: var(--ink); }
.ps-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ps-list > li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.055); font-size: 13.5px; line-height: 21px; }
.ps-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.ps-head small { margin-left: auto; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.ps-guest { padding: 0 8px; border: 1px solid rgba(var(--accent-rgb), .6); border-radius: 999px; background: rgba(var(--accent-rgb), .18); font-size: 12px; font-weight: 600; line-height: 18px; color: var(--accent-ink); }
.ps-member { padding: 0 8px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; color: var(--ink-2); }
.ps-trail { margin: 8px 0 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.ps-trail li small { color: var(--ink-4); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ps-trail li.bad { color: #ffb3a6; }
.ps-trail li small i { font-style: normal; opacity: .75; }
.ps-more summary { cursor: pointer; min-height: 32px; line-height: 32px; color: var(--accent-ink); }
.ps-more ul { margin: 0; padding: 0; list-style: none; }
.ps-trail code { font-size: 12px; }
.ps-from { display: block; margin-top: 6px; color: var(--ink-4); }
.ps-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.ps-pager a, .ps-pager span { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink-2); }
.ps-pager span { opacity: 0.35; }

.tr { display: grid; align-items: center; gap: 12px; min-height: 40px; }
.tl { font-size: 14px; color: var(--ink-2); }
.tb { display: block; }
.tv { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.tv b { font-weight: 600; }
.tv small { font-size: 12px; color: var(--ink-4); }
.col:hover i, .col:focus-visible i, .tr:hover .tb i, .tr:focus-visible .tb i { filter: brightness(1.15); }
.col:focus-visible, .tr:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; border-radius: 4px; }
/* 이탈 위치: 한 줄 = 앞 단계 → 다음 단계. 막대는 넘어간 사람(강조색)과 빠진 사람(붉은색). 가장 많이 빠지는 줄은 배경을 깐다 */
.adm-h2-note { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }

.chart { margin: 0 0 20px; }
.chart figcaption { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.plot { display: flex; gap: 8px; }
.yaxis { display: flex; flex: none; flex-direction: column; justify-content: space-between; min-width: 48px; font-size: 11px; line-height: 12px; color: var(--ink-4); text-align: right; font-variant-numeric: tabular-nums; }
.cols { position: relative; display: flex; flex: 1; align-items: flex-end; gap: 2px; height: 120px; background:
  linear-gradient(var(--hairline), var(--hairline)) top / 100% 1px no-repeat,
  linear-gradient(var(--hairline), var(--hairline)) center / 100% 1px no-repeat,
  linear-gradient(var(--hairline), var(--hairline)) bottom / 100% 1px no-repeat; }
.col { position: relative; display: flex; flex: 1; align-items: flex-end; max-width: 24px; height: 100%; }
.col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--accent-ink); }
.xaxis { display: flex; justify-content: space-between; margin: 4px 0 0 56px; font-size: 11px; color: var(--ink-4); }
/* 일별 추이: 칸이 폭을 똑같이 나눠 갖고(7일이면 7등분), 막대는 칸 가운데에 서며, 칸마다 밑에 날짜 라벨이 붙는다 */
.plot.days { margin-bottom: 18px; }
.cols.days .col { max-width: none; justify-content: center; }
.cols.days .col i { max-width: 36px; }
.col .dlab { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 12px; color: var(--ink-4); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .col .dlab { font-size: 9px; letter-spacing: -0.3px; } }   /* 폰 폭에서 7칸의 날짜 라벨이 서로 닿지 않게 */

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 32px; }
.tg h3 { margin-top: 12px; }
.tr { grid-template-columns: 96px 1fr 84px; min-height: 32px; }
.tb { height: 8px; border-radius: 4px; background: rgba(var(--accent-rgb), 0.2); }
.tb i { display: block; height: 8px; border-radius: 4px; background: var(--accent-ink); }

.adm-table summary { font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.adm-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-table th, .adm-table td { padding: 6px 8px; border-bottom: 1px solid var(--hairline); text-align: right; }
.adm-table th:first-child, .adm-table td:first-child { text-align: left; }
.adm-table th { font-weight: 600; color: var(--ink-3); }
#tip { position: fixed; z-index: 100; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: #241a10; color: #fff; font-size: 12px; line-height: 18px; pointer-events: none; }
#tip[hidden] { display: none; }
@media (max-width: 520px) { .tr { grid-template-columns: 80px 1fr 72px; } }


.adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
table.pay { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; white-space: nowrap; }
table.pay th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
table.pay td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
table.pay .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }

.pay-search { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.pay-search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.pay-search button { height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 500; }
.pay-search a { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.adm-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 18px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; touch-action: manipulation; }
.adm-tabs button[aria-selected="true"] { background: var(--accent-ink); color: #fff; }
.pay-more { margin-top: 12px; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--accent-tint, #f3f3f3); color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.pay-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 520px) { .pay-filters { grid-template-columns: repeat(2, 1fr); } }
.pay-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; color: var(--ink-3); min-width: 0; }
.pay-filters select { height: 40px; padding: 0 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: inherit; min-width: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.pager button { height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--accent-tint, #f3f3f3); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.pager button:disabled { opacity: .4; cursor: default; }

.gone { display: inline-block; padding: 0 8px; border-radius: 10px; background: rgba(0,0,0,.07); font-size: 12px; line-height: 20px; color: var(--ink-3); }
.col.hr { max-width: none; }

.pay-search select { flex: none; width: 104px; height: 44px; padding: 0 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: inherit; }
.pay-statusrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-reset { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: rgba(0,0,0,.06); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; touch-action: manipulation; }

#panel-dash, #panel-pay, #panel-log, #panel-wipe { padding-top: 16px; }   /* 알약 메뉴와 첫 카드 사이 여백 */

.me-edit { margin-top: 20px; }   /* 내 정보 안내/요약 아래 등록·수정 버튼 위 여백 */

.need-unknown { margin-top: 12px; text-align: center; }

.need-known { margin-top: 12px; text-align: center; }
.need-known b { color: var(--accent-ink); }
.need-known span { display: inline-block; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--ink-4); }

.badge-default { display: block; width: fit-content; margin: 0 0 4px; padding: 0 8px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); font-size: 12px; font-style: normal; font-weight: 600; line-height: 20px; }

/* 버튼(기본으로·PDF·삭제)은 제목 아래 한 줄에, 오른쪽 끝으로 나란히 */
.myitem { flex-wrap: wrap; row-gap: 0; padding-bottom: 14px; }
.myitem > a:first-child { flex: 1 1 100%; padding-bottom: 10px; }
.myitem > :nth-child(2) { margin-left: auto; }


/* ═══════════════════════════════════════════════════════════════════════════
   우주와 빛 — 사이트 전체를 밤하늘로. 오행은 각자의 색으로 빛나는 빛 덩어리.
   (풀이서·PDF 는 그대로. 이 아래는 사이트 화면의 색과 질감만 바꾼다.)
   별은 코드로 그린 점, 성운은 포인트색(내 기운의 색)이 번진 빛. 움직임은 아주 느리고, '동작 줄이기'면 멈춘다.
   ═══════════════════════════════════════════════════════════════════════════ */
html { color-scheme: dark; }
body.site {
  --ink: #f2effa; --ink-2: #d9d5e6; --ink-3: #b0abc4; --ink-4: #868299;
  --line: rgba(255, 255, 255, 0.16); --glass: rgba(255, 255, 255, 0.065); --glass-2: rgba(255, 255, 255, 0.11);
  background: transparent; color: var(--ink);
}
body.site ::selection { background: rgba(var(--accent-rgb), 0.35); }

/* 멀리 있는 흐린 별 */
body.site::before, body.web::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.0px 1.0px at 235px 290px, rgba(255,255,255,0.62) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 235px 264px, rgba(255,255,255,0.42) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 266px 247px, rgba(255,255,255,0.63) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 52px 232px, rgba(255,255,255,0.38) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 359px 328px, rgba(255,255,255,0.69) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 235px 338px, rgba(255,255,255,0.58) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 323px 11px, rgba(255,255,255,0.37) 45%, transparent 100%),
    radial-gradient(1.1px 1.1px at 22px 101px, rgba(255,255,255,0.56) 45%, transparent 100%),
    radial-gradient(0.9px 0.9px at 241px 171px, rgba(255,255,255,0.64) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 269px 123px, rgba(255,255,255,0.52) 45%, transparent 100%),
    radial-gradient(0.9px 0.9px at 343px 47px, rgba(255,255,255,0.45) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 286px 46px, rgba(255,255,255,0.46) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 121px 266px, rgba(255,255,255,0.37) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 59px 209px, rgba(255,255,255,0.45) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 38px 12px, rgba(255,255,255,0.35) 45%, transparent 100%),
    radial-gradient(0.9px 0.9px at 111px 30px, rgba(255,255,255,0.69) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 207px 218px, rgba(255,255,255,0.57) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 349px 142px, rgba(255,255,255,0.46) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 11px 213px, rgba(255,255,255,0.39) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 130px 365px, rgba(255,255,255,0.37) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 253px 94px, rgba(255,255,255,0.42) 45%, transparent 100%),
    radial-gradient(1.1px 1.1px at 264px 101px, rgba(255,255,255,0.62) 45%, transparent 100%),
    radial-gradient(0.9px 0.9px at 218px 333px, rgba(255,255,255,0.49) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 112px 4px, rgba(255,255,255,0.69) 45%, transparent 100%),
    radial-gradient(1.1px 1.1px at 307px 159px, rgba(255,255,255,0.36) 45%, transparent 100%),
    radial-gradient(1.1px 1.1px at 99px 205px, rgba(255,255,255,0.56) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 300px 89px, rgba(255,255,255,0.39) 45%, transparent 100%),
    radial-gradient(0.9px 0.9px at 392px 546px, rgba(255,255,255,0.52) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 277px 459px, rgba(255,255,255,0.49) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 29px 112px, rgba(255,255,255,0.51) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 435px 24px, rgba(255,255,255,0.52) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 371px 62px, rgba(255,255,255,0.31) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 381px 180px, rgba(255,255,255,0.59) 45%, transparent 100%),
    radial-gradient(1.1px 1.1px at 375px 583px, rgba(255,255,255,0.41) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 589px 292px, rgba(255,255,255,0.39) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 91px 489px, rgba(255,255,255,0.44) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 462px 171px, rgba(255,255,255,0.35) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 335px 536px, rgba(255,255,255,0.33) 45%, transparent 100%),
    radial-gradient(0.7px 0.7px at 104px 440px, rgba(255,255,255,0.38) 45%, transparent 100%),
    radial-gradient(1.1px 1.1px at 590px 291px, rgba(255,255,255,0.4) 45%, transparent 100%),
    radial-gradient(1.0px 1.0px at 382px 299px, rgba(255,255,255,0.57) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 469px 566px, rgba(255,255,255,0.34) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 126px 508px, rgba(255,255,255,0.46) 45%, transparent 100%),
    radial-gradient(0.8px 0.8px at 106px 396px, rgba(255,255,255,0.59) 45%, transparent 100%),
    radial-gradient(0.9px 0.9px at 61px 430px, rgba(255,255,255,0.35) 45%, transparent 100%),
    radial-gradient(1.2px 1.2px at 235px 17px, rgba(255,255,255,0.54) 45%, transparent 100%);
  background-size: 380px 380px, 610px 610px; }
/* 가까이 있는 밝은 별: 숨 쉬듯 천천히 깜빡임 */
html::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 353px 315px, rgba(255,255,255,0.89) 45%, transparent 100%),
    radial-gradient(1.7px 1.7px at 435px 386px, rgba(255,255,255,0.85) 45%, transparent 100%),
    radial-gradient(1.4px 1.4px at 327px 193px, rgba(255,255,255,0.94) 45%, transparent 100%),
    radial-gradient(1.5px 1.5px at 353px 237px, rgba(255,255,255,0.78) 45%, transparent 100%),
    radial-gradient(1.4px 1.4px at 197px 380px, rgba(255,255,255,0.74) 45%, transparent 100%),
    radial-gradient(1.7px 1.7px at 413px 466px, rgba(255,255,255,0.73) 45%, transparent 100%),
    radial-gradient(1.3px 1.3px at 42px 282px, rgba(255,255,255,0.81) 45%, transparent 100%),
    radial-gradient(1.7px 1.7px at 364px 225px, rgba(255,255,255,0.87) 45%, transparent 100%),
    radial-gradient(1.5px 1.5px at 331px 365px, rgba(255,255,255,0.71) 45%, transparent 100%),
    radial-gradient(1.2px 1.2px at 273px 321px, rgba(255,255,255,0.83) 45%, transparent 100%),
    radial-gradient(1.6px 1.6px at 8px 7px, rgba(255,255,255,0.97) 45%, transparent 100%),
    radial-gradient(1.5px 1.5px at 39px 366px, rgba(255,255,255,0.71) 45%, transparent 100%),
    radial-gradient(1.6px 1.6px at 253px 518px, rgba(255,255,255,0.77) 45%, transparent 100%),
    radial-gradient(1.4px 1.4px at 240px 569px, rgba(255,255,255,0.96) 45%, transparent 100%),
    radial-gradient(1.8px 1.8px at 565px 478px, rgba(255,255,255,0.86) 45%, transparent 100%),
    radial-gradient(1.7px 1.7px at 648px 354px, rgba(255,255,255,0.81) 45%, transparent 100%),
    radial-gradient(1.8px 1.8px at 288px 417px, rgba(255,255,255,0.7) 45%, transparent 100%),
    radial-gradient(1.6px 1.6px at 120px 33px, rgba(255,255,255,0.71) 45%, transparent 100%),
    radial-gradient(1.5px 1.5px at 696px 185px, rgba(255,255,255,0.79) 45%, transparent 100%),
    radial-gradient(1.4px 1.4px at 463px 668px, rgba(255,255,255,0.93) 45%, transparent 100%),
    radial-gradient(1.6px 1.6px at 452px 176px, rgba(255,255,255,0.97) 45%, transparent 100%);
  background-size: 470px 470px, 730px 730px; }
/* 성운: 포인트색이 번져 있고 저 멀리 보라·푸른 빛이 섞인다 */
body.site::after, body.web::after { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 14%, rgba(var(--accent-rgb), 0.36), transparent 72%),
    radial-gradient(44% 34% at 88% 62%, rgba(112, 92, 210, 0.30), transparent 72%),
    radial-gradient(40% 28% at 46% 104%, rgba(54, 118, 214, 0.26), transparent 72%),
    radial-gradient(30% 22% at 70% 8%, rgba(var(--accent-rgb), 0.16), transparent 72%);
  filter: blur(26px); will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  html::after { animation: star-breathe 9s ease-in-out infinite alternate; }
  body.site::before, body.web::before { animation: star-breathe 14s ease-in-out -4s infinite alternate; }
  body.site::after, body.web::after { animation: nebula-drift 70s ease-in-out infinite alternate; }
}
@keyframes star-breathe { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes nebula-drift { from { transform: translate3d(-2%, -1.5%, 0) scale(1); } to { transform: translate3d(2.5%, 2%, 0) scale(1.08); } }

/* 글자: 포인트색 제목에는 은은한 빛 */
.site h1 em, .need-known b { text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.5); }

/* 유리 패널 (카드·타일·입력칸) */
.svc { background: linear-gradient(160deg, var(--glass-2), var(--glass)); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.svc::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 92% 0%, rgba(var(--accent-rgb), 0.30), transparent 70%); }
.svc > * { position: relative; }
.svc .go { box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.65); }
.tile, .adm-card, .adm-empty, .adm-filter a, .adm-tabs button, .chips li, .myitem .pdf, .ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); }
.tile, .adm-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.adm-filter a[aria-current="page"], .adm-tabs button[aria-selected="true"] { background: rgba(var(--accent-rgb), 0.22); border-color: rgba(var(--accent-rgb), 0.55); color: var(--accent-ink); }
.pay-more, .pager button { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-ink); }
.pay-reset { background: var(--glass-2); }
.gone { background: var(--glass-2); }
.ghost.danger, .myitem .del { background: #b33a2a; border-color: #b33a2a; color: #fff; }

/* 입력칸 */
.site input[type=text], .site input[type=date], .site input[type=time], .site select, .pay-search input, .pay-search select, .pay-filters select, .seg { background-color: var(--glass); border-color: var(--line); color: var(--ink); }
.site select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0abc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 20px; }
/* 관리자 필터·검색 칸: 위쪽 background 줄임말이 반복·크기를 지워서 화살표가 타일처럼 여러 개 보였다 → 반복 금지 + 화살표 자리 확보 */
.pay-filters select, .pay-search select { padding-right: 32px; background-position: right 10px center; background-size: 18px; }
.site select option { background: #14121f; color: var(--ink); }
.site input:focus-visible, .site select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.28), 0 0 18px rgba(var(--accent-rgb), 0.25); }
.chk input { background-color: var(--glass); border-color: rgba(255, 255, 255, 0.4); }
.chk input:checked { background-color: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55); }
.chk input:focus-visible, .seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35); }
.seg::before { box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.5); }
.site input::-webkit-calendar-picker-indicator { filter: invert(0.85); }

/* 버튼: 빛을 내뿜는다 */
.btn { box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.65), 0 6px 20px rgba(0, 0, 0, 0.35); }
.cta-bar { background: linear-gradient(to top, rgba(8, 9, 15, 0.82) 40%, transparent); }
.err { background: rgba(214, 84, 62, 0.18); color: #ffb9ab; border: 1px solid rgba(214, 84, 62, 0.45); }
.dev { background: rgba(255, 205, 80, 0.12); color: #efd283; border: 1px solid rgba(255, 205, 80, 0.3); }
.devpick { background: rgba(20, 18, 31, 0.78); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.devpick button { border-color: rgba(255, 255, 255, 0.85); }
.devpick button.reset { background: #14121f; color: var(--ink-2); }
.devpick button.on { box-shadow: 0 0 0 2px #fff; }

/* 오행의 행성: 5개 점 = 목성·화성·토성·금성·수성 (모양은 report.css 의 .pl 규칙), 막대 = 빛기둥 */
.dots i.pl { position: relative; flex: none; width: 24px; height: 24px; background: center / contain no-repeat; }
/* 사진은 /static/planets/ (CSS 변수 안의 상대 주소는 이 파일 기준으로 읽혀 길을 잃으므로 절대 주소로) */
.dots i.pl.wood { background-image: url(/static/planets/wood-s.webp); }
.dots i.pl.fire { background-image: url(/static/planets/fire-s.webp); }
.dots i.pl.earth { background-image: url(/static/planets/earth-s.webp); }
.dots i.pl.metal { background-image: url(/static/planets/metal-s.webp); }
.dots i.pl.water { background-image: url(/static/planets/water-s.webp); }
.dots i.pl.earth { width: 50px; height: 20px; }   /* 토성은 고리까지 */
@media (prefers-reduced-motion: no-preference) {
  .dots i { animation: pop var(--spring-bouncy-dur) var(--spring-bouncy) both, orb-glow 4.6s ease-in-out infinite alternate; animation-delay: calc(0.25s + var(--d) * 70ms), calc(1s + var(--d) * 0.55s); }
}
@keyframes orb-glow { from { filter: brightness(0.92); } to { filter: brightness(1.22); } }
/* 종합 사주 카드의 별 줄: 오행 다섯 색의 별 — 하트처럼 둥글게, 차례로 반짝 (움직임은 svg 에, i 는 등장·반짝임 애니메이션이 쓴다) */
.dots i.sta { flex: none; width: 27px; height: 27px; border-radius: 0; color: var(--c); }
.dots i.sta svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 7px var(--c)); }
@media (prefers-reduced-motion: no-preference) {
  .dots i.sta svg { animation: sta-twinkle 2.8s ease-in-out calc(1s + var(--d) * 0.2s) infinite; }
}
@keyframes sta-twinkle { 0%, 40%, 100% { transform: scale(1) rotate(0deg); } 12% { transform: scale(1.22) rotate(-8deg); } 24% { transform: scale(0.95) rotate(4deg); } 30% { transform: scale(1.12) rotate(0deg); } }
/* 도트 메이트 카드: 둥근 모서리 대신 도트(계단) 모서리. 바깥 모양을 계단으로 깎고(clip-path), 안쪽 유리 면(::after)도 같은 계단으로 깎아 3px 테두리가 따라가게 한다 */
.svc.pixel { border: 0; border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: none; backdrop-filter: none; isolation: isolate;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 4px 8px, 4px 4px, 8px 4px); }
.svc.pixel::after { content: ""; position: absolute; inset: 3px; z-index: -1; pointer-events: none; background: linear-gradient(160deg, #2b3345, #1b2130);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 4px 8px, 4px 4px, 8px 4px); }
.svc.pixel::before { border-radius: 0; }
/* 무료 이벤트 상품(내 매력의 캐릭터): 큰 카드 대신 도트 테두리의 얇은 한 줄 */
.svc.charm-row { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 18px; }
.charm-row .pix { flex: none; width: 30px; height: 27px; color: var(--accent-ink, #e8c586); }      /* 몸 색 = 강조색(배경 따라 변함). 색 값이 안 풀리는 브라우저에서도 검게 되지 않게 글자색(currentColor)으로 받는다 */
.charm-row b { font-size: 16px; line-height: 22px; letter-spacing: -0.02em; word-break: keep-all; text-wrap: balance; }      /* 이름이 긴 무료 이벤트(100년 전, 나의 직업)도 한 줄에 들어오게 */
/* '무료' 라벨: 도트 글꼴(갈무리, 무·료 두 글자일 때만 내려받는다) + 계단식 모서리(카드 테두리와 같은 도트 결) */
@font-face { font-family: "GalmuriFree"; font-weight: 700; font-display: swap; src: url("/fonts/Galmuri11-Bold.woff2") format("woff2"); unicode-range: U+BB34, U+B8CC; }
.svc-badge { flex: none; padding: 1px 9px; border-radius: 99px; background: #ffd35e; color: #1b2130; font-size: 11.5px; line-height: 18px; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 0 10px rgba(255, 211, 94, 0.4); }
.svc b:has(.svc-badge), .pd-kicker:has(.svc-badge) { display: flex; align-items: center; gap: 8px; }   /* 이름 글자와 라벨의 세로 가운데를 맞춘다 */
.charm-free { position: relative; flex: none; padding: 3px 10px 2px; font-family: "GalmuriFree", sans-serif; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.04em; color: #1b2130; background: #ffd35e;
  clip-path: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px)); }
.charm-row .go { flex: none; margin-left: auto; width: 32px; height: 32px; }
.charm-row .go svg { width: 16px; height: 16px; }
/* 친구 공유 상자(입력 화면): 남은 횟수 + 링크 복사·공유하기 */
.charm-share { margin: 0 0 16px; padding: 14px 16px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.charm-share-left { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-1, inherit); }
.charm-share-sub { margin: 4px 0 10px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.charm-share-btns { display: flex; justify-content: center; gap: 8px; }
.charm-share-btn { flex: 1; max-width: 160px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.charm-share-msg { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-3); }      /* 글이 나올 때만 보이고(hidden), 그때 상자가 길어진다 */
/* 재물운 카드의 도트 동전: 슈퍼마리오 동전처럼 폭이 뚝뚝 좁아졌다 넓어지며 돈다 */
.pxc { flex: none; width: 19px; height: 26px; overflow: visible; }
.pxc .px-o { fill: #b8741a; } .pxc .px-y { fill: #ffcf3a; } .pxc .px-h { fill: #fff2a8; }
.dots:has(.pxc) { align-items: center; gap: 12px; }
.dots i.spk.sq { border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pxc { animation: pxc-spin 0.9s steps(1, end) calc(1s + var(--d) * 0.22s) infinite, pxc-shine 1.4s ease-in-out calc(1s + var(--d) * 0.28s) infinite alternate; }
}
@keyframes pxc-shine { from { filter: brightness(1) drop-shadow(0 0 2px rgba(255, 205, 60, 0.4)); } to { filter: brightness(1.4) drop-shadow(0 0 10px rgba(255, 215, 70, 1)); } }
@keyframes pxc-spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(0.58); } 50% { transform: scaleX(0.17); } 75% { transform: scaleX(0.58); } }
/* 신년운세 카드의 태양: 빛살이 천천히 돌고 속이 숨 쉬듯 밝아진다 */
.dots i.sun { flex: none; width: 52px; height: 52px; border-radius: 0; }
.dots i.sun svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.7)); }
.dots i.sun .rays { stroke: #ffd27a; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.dots i.sun .core { fill: #ffb347; }
@media (prefers-reduced-motion: no-preference) {
  .dots i.sun .rays { animation: sun-spin 16s linear infinite; }
  .dots i.sun .core { animation: sun-pulse 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-pulse { from { transform: scale(0.92); fill: #ffb347; } to { transform: scale(1.08); fill: #ffd27a; } }
.svc.love { --accent: #ff7eb0; --on-accent: #2a0d1a; }   /* 카드의 화살표 버튼도 핑크 */
.svc.reunion { --accent: #a98bff; --on-accent: #150d2a; }   /* 재회운: 버튼도 결과 화면과 같은 보라 */
.svc.wealth { --accent: #f3c64f; --on-accent: #2a1d05; }   /* 재물운: 버튼도 결과 화면과 같은 금빛 */
.svc.sun .go { --accent: #ffb347; --accent-rgb: 255, 179, 71; }   /* 신년운세: 버튼과 버튼의 빛 번짐도 태양과 같은 주황 */
/* 연애운·재회운·재물운: 아이콘 줄을 카드 끝까지 펼친다 */
.svc.love .dots, .svc.reunion .dots, .svc.wealth .dots { justify-content: space-between; }
.svc.love .dots { gap: 4px; }   /* 하트 8개가 좁은 폰(360px)에서도 한 줄에 들어가도록 */
/* 재회운: 두 큰 하트 사이에서 작은 하트들이 왼쪽부터 차례로 반짝이며 마음이 전달되는 느낌 */
.dots i.hrt.sm { width: 12px; height: 12px; }
.svc.reunion .dots { align-items: center; }   /* 큰 하트와 작은 하트의 세로 가운데 줄을 맞춘다 */
@media (prefers-reduced-motion: no-preference) {
  .svc.reunion .dots i.hrt.sm svg { animation: hrt-pass 2.4s ease-in-out calc(1s + var(--d) * 0.2s) infinite; }
}
@keyframes hrt-pass { 0%, 45%, 100% { opacity: 0.5; transform: scale(0.85); } 12% { opacity: 1; transform: scale(1.35); } 26% { opacity: 0.7; transform: scale(1); } }
/* 연애운·재회운·재물운 카드: 각자 빛깔(--accent-rgb)의 테두리와 은은한 빛 */
.svc.love, .svc.reunion, .svc.wealth, .svc.sun { border-color: rgba(var(--accent-rgb), 0.55); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 22px rgba(var(--accent-rgb), 0.18), inset 0 0 0 1px rgba(var(--accent-rgb), 0.12); }
/* 연애운·재회운 카드의 하트 줄 */
.dots i.hrt { flex: none; width: 26px; height: 26px; border-radius: 0; color: var(--c); }
.dots i.hrt svg { display: block; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.6)); }   /* 빛 번짐은 svg 에 — i 의 filter 는 반짝임 애니메이션이 쓴다 */
.dots i.spk { flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: #e9e1ff; box-shadow: 0 0 10px 2px rgba(var(--accent-rgb), 0.8); }
.dots i.spk.sm { width: 4px; height: 4px; opacity: 0.7; }
/* 움직임은 i 가 아니라 svg·반짝이 점에 건다 (i 는 등장·반짝임 애니메이션이 이미 쓴다) */
@media (prefers-reduced-motion: no-preference) {
  .svc.love .dots i.hrt svg { animation: hrt-beat 2.6s ease-in-out calc(1s + var(--d) * 0.16s) infinite; }            /* 연애운: 왼쪽부터 차례로 두근 */
  .svc.reunion .dots i.hrt:nth-child(1) svg { animation: hrt-near-l 3.2s ease-in-out 1s infinite; }                    /* 재회운: 두 하트가 다가갔다 돌아옴 */
  .svc.reunion .dots i.hrt:last-child svg { animation: hrt-near-r 3.2s ease-in-out 1s infinite; }
  .svc.reunion .dots i.spk { animation: spk-twinkle 2.4s ease-in-out calc(1s + var(--d) * 0.5s) infinite; }
}
@keyframes hrt-beat { 0%, 38%, 100% { transform: scale(1); } 10% { transform: scale(1.22); } 22% { transform: scale(0.96); } 28% { transform: scale(1.12); } }
@keyframes hrt-near-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px) scale(1.1); } }
@keyframes hrt-near-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-14px) scale(1.1); } }
@keyframes spk-twinkle { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 50% { transform: scale(1.5); opacity: 1; } }
.el i { background: linear-gradient(to top, color-mix(in srgb, var(--c) 92%, transparent), color-mix(in srgb, var(--c) 38%, transparent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.el.gap i { box-shadow: none; background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.16) 0 8px, transparent 8px 16px); }
.el .tag { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6); }
@keyframes gap-pulse { 0%, 100% { border-color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } 50% { border-color: var(--accent); box-shadow: 0 0 22px 4px rgba(var(--accent-rgb), 0.4); } }
.chips i { box-shadow: 0 0 10px var(--c); }

/* 표(관리자) */
table.pay th { border-bottom-color: var(--line); }
table.pay td { border-bottom-color: var(--hairline); }
table.pay tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
table.pay .share { padding-left: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-sbar { display: inline-block; width: 56px; height: 6px; margin-right: 8px; border-radius: 3px; background: rgba(128, 128, 128, 0.2); vertical-align: middle; overflow: hidden; }
.adm-sbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.col i, .tb i { background: var(--accent); }
.tb { background: rgba(255, 255, 255, 0.08); }
#tip { background: #fff; color: #14121f; }


/* ═══ 풀이서 웹 화면(결과 페이지)도 같은 밤하늘로. PDF 는 이 파일을 안 불러서 그대로 밝은 종이 ═══ */
html:has(body.web) { background: var(--bg, #0b0c14); color-scheme: dark; }
body.web {
  background: transparent; box-shadow: none;
  --t1: #f2effa; --t1b: #e4e0f0; --t2: #cbc7dc; --t2b: #bcb8cf; --t3: #a29db8; --t4: #8b869f; --t5: #5f5b75;
  --hair: rgba(255, 255, 255, 0.12); --panel: rgba(255, 255, 255, 0.06); --track: rgba(255, 255, 255, 0.16);
  --tile: rgba(255, 255, 255, 0.07); --tile-earth: rgba(242, 196, 107, 0.16);
  --tag-good: #b2e0a9; --tag-good-bg: rgba(143, 209, 138, 0.18); --tag-warn: #ffbaa4; --tag-warn-bg: rgba(255, 143, 99, 0.18);
  --wood: #8fd18a; --fire: #ff8f63; --earth: #f2c46b; --metal: #e3e9f0; --water: #6fb2ff;
  color: var(--t1);
}
body.web section.page.ch { background: transparent; }
body.web section.page.ch + section.page.ch { border-top: 1px solid var(--hair); }
body.web .b-callout { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
body.web .b-callout.pad16::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
body.web .b-swatch { box-shadow: 0 0 34px color-mix(in srgb, var(--sw) 55%, transparent); }
body.web .b-bars .bar .fill { box-shadow: 0 0 16px color-mix(in srgb, currentColor 0%, transparent); }
body.web .b-bars .bar .fill.bg-w { box-shadow: 0 0 16px rgba(143, 209, 138, 0.6); }
body.web .b-bars .bar .fill.bg-f { box-shadow: 0 0 16px rgba(255, 143, 99, 0.6); }
body.web .b-bars .bar .fill.bg-e { box-shadow: 0 0 16px rgba(242, 196, 107, 0.6); }
body.web .b-bars .bar .fill.bg-m { box-shadow: 0 0 16px rgba(227, 233, 240, 0.5); }
body.web .b-bars .bar .fill.bg-s { box-shadow: 0 0 16px rgba(111, 178, 255, 0.6); }
body.web .b-pillars .han { text-shadow: 0 0 14px currentColor; }
body.web .b-lead, body.web .ch-title { text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.35); }
body.web .dock::before { background: linear-gradient(to top, rgba(8, 9, 15, 0.85), transparent); }
/* 부록 글자 타일(천간 열 글자 등): 설명이 두 줄로 넘어가는 칸(‘큰 나무’, ‘들판의 화초’)이 다음 줄 타일에 겹쳐 가려지지 않게, 높이는 최소값만 두고 내용만큼 늘어난다. 관리자 .tile 규칙과 섞이지 않게 풀이서 안에서만 정함 */
body.web .b-tiles { align-items: stretch; }
body.web .b-tiles .tile { height: auto; min-height: 90.5px; padding: 12px 2px 10px; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--tile); }
body.web .b-tiles .tile.earth { background: var(--tile-earth); }
body.web .b-tiles .tile span { font-size: 12px; line-height: 18px; color: var(--t3); text-align: center; }
body.web .b-tiles .tile b { font-size: 26px; line-height: 34px; font-weight: 400; color: var(--t1); }

.el b small { display: block; font-size: 11px; font-weight: 400; line-height: 14px; color: var(--ink-4); }
.chips small { margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--ink-4); }

/* 웹: 표지 자체 배경(별·성운)은 없애고 사이트 밤하늘이 그대로 보이게 한다. PDF 는 이 파일을 안 불러서 어두운 표지 배경이 그대로 */  /* 표지 자체 배경 없음 */
body.web section.page.cover { background: transparent; }
body.web .space .stars { display: none; }

/* 웹: 오행 색 글자에 아주 약한 후광 */
body.web .c-w, body.web .c-f, body.web .c-e, body.web .c-m, body.web .c-s { text-shadow: 0 0 10px color-mix(in srgb, currentColor 38%, transparent); }
body.web { --gz-mid: rgba(var(--accent-rgb), 0.85); }
body.web .g-pin { box-shadow: 0 0 12px rgba(255, 255, 255, 0.55); border-color: #14121f; }

/* 한자+(한글)은 한 줄로 길어지므로, 그 덩어리 전체를 막대 가운데 축에 맞춘다. 행성 이름도 같은 축 */
.el b { display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.el b .hj { display: block; text-align: center; }
.el b .ko { margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* 웹: 시기 별빛 지도의 색과 빛 */
body.web .b-tonemap { --tm-good: #ffe08a; --tm-mid: #8f9ab3; --tm-warn: #ffa94d; --tm-heat: #ff6b5e; --tm-press: #b8404f; }
body.web .tone-good .tm-bar i { box-shadow: 0 0 16px rgba(255, 224, 138, 0.65); }
body.web .tone-warn .tm-bar i, body.web .tone-heat .tm-bar i { box-shadow: 0 0 10px rgba(255, 140, 90, 0.35); }
body.web .tm-star { text-shadow: 0 0 10px rgba(255, 224, 138, 0.8); }

body.web .b-cyc { --cy-yong: #ffe08a; --cy-hee: #8fd18a; --cy-gi: #ff6b5e; --cy-none: #5b5f73; }
body.web .cyc.yong .cr, body.web .cyc.hee .cr, body.web .cyc.gi .cr { color: #14121f; }
body.web .cyc.yong .cr { box-shadow: 0 0 12px rgba(255, 224, 138, 0.5); }

body.web .kind { --kd-good: #8fd18a; --kd-both: #ffe08a; --kd-care: #ff6b5e; --kd-plain: #5b5f73; color: #14121f; }
body.web .kind.k-plain { color: #e4e0f0; }

/* 준비중인 상품: 눌러지지 않고, 흐리게 + '준비중' 표시 */
.svc.soon { cursor: default; }
.svc.soon b, .svc.soon p, .svc.soon .meta > span:first-child { opacity: 0.6; }      /* 글자만 흐리게 — 도트 캐릭터는 또렷하게 */
.badge-soon { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* 도트 캐릭터 (도트 메이트 에디션 카드): 9x8 칸 그림을 칸 그대로 또렷하게. 다섯 마리 = 오행 색 */
.pixrow { align-items: flex-end; gap: 10px; }
.pix { width: 36px; height: 32px; overflow: visible; animation: pop var(--spring-bouncy-dur) var(--spring-bouncy) both; animation-delay: calc(0.25s + var(--d) * 70ms); }
.pix .px-b { fill: var(--c); } .pix .px-d { fill: #14121f; } .pix .px-h { fill: #fff; opacity: 0.75; } .pix .px-c { fill: #ff9db8; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) { .pix { animation: pop var(--spring-bouncy-dur) var(--spring-bouncy) both, pix-hop 2.8s steps(2, jump-none) calc(1s + var(--d) * 0.35s) infinite; } }
@keyframes pix-hop { 0%, 80% { transform: translateY(0); } 90%, 100% { transform: translateY(-3px); } }

/* 별똥별: 아주 가끔 하늘을 가로질러 사라진다 (서로 다른 주기라 불규칙하게 보임). 글자 뒤에서 지나가고, '동작 줄이기'면 나오지 않는다 */
.meteors { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.meteor { position: absolute; display: none; left: var(--x); top: var(--y); width: 150px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95)); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.85)); }
.meteor.m1 { --x: 8%; --y: 12%; --r: 32deg; --t: 13s; --dl: 2s; }
.meteor.m2 { --x: 82%; --y: 6%; --r: 148deg; --t: 17s; --dl: 6s; }
.meteor.m3 { --x: 40%; --y: 3%; --r: 38deg; --t: 19s; --dl: 11s; }
.meteor.m4 { --x: 68%; --y: 22%; --r: 142deg; --t: 23s; --dl: 4s; }
.meteor.m5 { --x: 20%; --y: 34%; --r: 28deg; --t: 29s; --dl: 15s; }
@media (prefers-reduced-motion: no-preference) {
  .meteor { display: block; animation: meteor var(--t) linear var(--dl) infinite; }
}
@keyframes meteor {
  0%   { opacity: 0; transform: rotate(var(--r)) translateX(0); }
  2%   { opacity: 1; }
  7%   { opacity: 0; transform: rotate(var(--r)) translateX(600px); }
  100% { opacity: 0; transform: rotate(var(--r)) translateX(600px); }
}

/* ── 홈 후기 띠: 두 줄이 서로 반대로 천천히 흘러간다. 마우스·손가락을 올리면 멈춘다 ── */
.reviews { margin-top: 8px; }
.rv-demo { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); font-size: 13px; line-height: 20px; color: var(--ink-3); }
.rv-marquee { display: grid; gap: 12px; margin: 0 -20px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-row { overflow: hidden; }
.rv-track { display: flex; gap: 12px; width: max-content; padding: 0 6px; }
.rv-card { flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; width: 250px; min-height: 132px; margin: 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); }
.rv-stars { display: flex; align-items: center; gap: 0; font-size: 13px; line-height: 16px; letter-spacing: 1px; color: #ffe08a; }
.rv-stars .off { color: rgba(255, 255, 255, 0.18); }
.rv-tag { margin-left: 8px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--line); font-style: normal; font-size: 11px; line-height: 16px; letter-spacing: 0; color: var(--ink-3); }
.rv-card blockquote { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card figcaption { font-size: 12px; line-height: 16px; color: var(--ink-4); }
@keyframes rv-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .rv-track { animation: rv-flow 110s linear infinite; }
  .rv-row.rev .rv-track { animation-direction: reverse; animation-duration: 130s; }
  .rv-marquee:hover .rv-track, .rv-marquee:active .rv-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .rv-row { overflow-x: auto; } .rv-track { width: max-content; } .rv-card[aria-hidden="true"] { display: none; } }

.foot-biz .credit { display: block; margin-top: 10px; font-size: 12px; line-height: 18px; color: var(--ink-4); }

/* 표지 행성 돌리기 안내: 처음 한 번만 잠깐 나타났다 사라진다 */
.p3d-hint { position: absolute; left: 50%; top: 268px; transform: translateX(-50%); z-index: 3; padding: 4px 12px; border-radius: 999px; background: rgba(8, 9, 15, 0.62); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; font-size: 12px; line-height: 18px; white-space: nowrap; pointer-events: none; animation: p3d-hint 7s ease both; }
@keyframes p3d-hint { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .p3d-hint { animation: none; } }
.pl.planet.on3d:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 4px; border-radius: 50%; }
body.web .pl.planet.on3d { pointer-events: auto; }          /* 표지의 .space 는 클릭을 통과시키지만, 큰 행성만은 끌어서 돌릴 수 있게 받는다 */
body.web .b-traits .trait div span.kind { color: #14121f; }
body.web .b-traits .trait div span.kind.k-plain { color: #e4e0f0; }

/* ── 약관·방침 ── */
.legal { padding-bottom: 8px; }
.legal h2 { margin: 32px 0 8px; font-size: 16px; line-height: 24px; color: var(--ink); }
.legal p, .legal li { font-size: 14px; line-height: 23px; color: var(--ink-3); }
.legal p { margin: 8px 0; }
.legal ol, .legal ul { margin: 8px 0; padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.legal-table th, .legal-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.legal-links { display: flex; gap: 16px; margin-top: 12px; }
.legal-links a { color: var(--ink-3); text-decoration: none; }
.legal-links b { display: inline; margin: 0; font-size: inherit; color: var(--ink-2); }

/* 토스 결제위젯(결제 화면): 위 동의 문구와 떨어뜨리고, 네모난 흰 상자의 모서리를 다른 카드처럼 둥글게 */
#payment-method, #agreement { margin-top: 18px; border-radius: 20px; overflow: hidden; }
#payment-method { margin-bottom: 8px; scroll-margin-top: 90px; transition: box-shadow 0.25s ease; }   /* 위 여백: 할인 시간 알림에 가리지 않게 */
#payment-method.need { box-shadow: 0 0 0 1px #ff6f5a, 0 0 18px 4px rgba(255, 90, 70, 0.65), 0 0 44px 10px rgba(255, 90, 70, 0.28); }

/* 소개 5번 장면: 물음표 행성 — 진짜 3D(intro.html 의 스크립트)가 올라가면 .on3d 로 CSS 행성을 숨긴다. 3D 를 못 쓰면 이 둥근 행성이 그대로 보인다 */
.mystery { position: relative; width: 156px; height: 156px; margin: 24px auto 0; }
.mystery .orb { position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #9a93d8 0%, #51499a 38%, #1f1b4a 72%, #0c0b24 100%); box-shadow: inset -10px -12px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(140, 130, 255, 0.4); }
.mystery .q { font-size: 54px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, 0.92); text-shadow: 0 0 14px rgba(200, 190, 255, 0.95); }
.mystery.on3d .orb { display: none; }


/* 홈 카드 가격: 할인 전 가격(취소선) + 30% 표시 + 할인가 */
.svc .meta .was { margin-right: 6px; font-size: 13px; font-weight: 400; color: var(--ink-4); }
.svc .meta .off { margin-right: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent-ink); }

/* 할인 카운트다운 배너: 색 고르기 막대처럼 위쪽 가운데에 뜨는 유리 알약(윗줄 로고·메뉴 바로 아래 — 폭이 있어서 같은 줄에는 겹친다). 닫으면(.min) 시간만 남고, 끝나면(.exp) 눌러서 다시 시작하는 버튼이 된다 */
.devpick { display: none !important; }   /* 개발용 색 고르기 막대는 가려 둔다(코드는 그대로 — 다시 보려면 이 줄만 지우면 된다) */

/* 홈 카드 가격 위의 작은 "최대 할인 적용" 표시 */
.svc .meta > span:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

/* 서비스 상세(안내) 페이지 /p/<상품>: 하단에는 결과 화면과 같은 .dock 버튼이 늘 떠 있다 */
.pd { padding-bottom: 120px; }
.pd-hero { margin-top: 60px; }
.pd-art { align-items: center; margin-bottom: 18px; }   /* 크기가 다른 하트·동전이 한 줄에서 가운데 높이로 나란히 서게 */
.pd-kicker { margin-bottom: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink); }
.pd-hero h1 { margin: 0; }
.pd-price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 22px; font-variant-numeric: tabular-nums; }
.pd-price .was { margin-right: 6px; font-size: 14px; color: var(--ink-4); }
.pd-price .off { margin-right: 6px; font-style: normal; font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.pd-price b { font-size: 26px; font-weight: 700; color: var(--ink); }
.pd-sec { margin-top: 44px; }
.pd-sec h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 30px; letter-spacing: -0.01em; color: var(--ink); }
.pd-sub { margin: 6px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-3); }
.pd-asks, .pd-chaps, .pd-steps { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pd-asks { gap: 12px; }
.pd-asks li { position: relative; padding: 0 0 0 28px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.pd-asks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.pd-chaps { gap: 0; }
.pd-chaps li { display: flex; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; color: var(--ink-2); }
.pd-chaps li:last-child { border-bottom: 0; }
.pd-chaps li:has(.pd-hot) { margin: 4px 0; padding: 12px 14px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 14px; background: rgba(var(--accent-rgb), 0.12); color: var(--ink); font-weight: 600; }
.pd-chaps li:has(+ li .pd-hot) { border-bottom-color: transparent; }
.pd-hot { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(var(--accent-rgb), 0.9); color: #1b130a; font-style: normal; font-size: 11px; font-weight: 700; line-height: 17px; vertical-align: 1px; }
.pd-chaps i { flex: none; font-style: normal; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.pd-steps li { display: flex; gap: 14px; align-items: flex-start; }
.pd-steps i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.22); font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.pd-steps b { display: block; font-size: 16px; line-height: 28px; color: var(--ink); }
.pd-steps p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-3); }
.pd-notes { margin-top: 36px; }
.pd-notes p { margin: 0 0 8px; font-size: 13px; line-height: 20px; color: var(--ink-4); }

/* 소개 페이지: 아래로 내리라는 작은 화살표(맨 아래 고정). 마지막 장면에서는 사라지고, '동작 줄이기'면 가만히 있는다 */
.scroll-cue { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 36px; height: 36px; margin-left: -18px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); pointer-events: none; transition: opacity 0.4s ease; }
.scroll-cue svg { width: 20px; height: 20px; }
body.at-end .scroll-cue { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-bob 1.6s ease-in-out infinite; }
  .scroll-cue::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); animation: cue-ring 1.6s ease-out infinite; }
}
@keyframes cue-bob { 0%, 100% { transform: translateY(-3px); opacity: 0.6; } 50% { transform: translateY(3px); opacity: 1; } }
@keyframes cue-ring { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

/* 상세페이지 하트 줄의 움직임: 홈 카드의 .svc.love / .svc.reunion 안에서만 걸려 있던 규칙을 상세페이지(.pd-love / .pd-reunion)에도 같게 */
@media (prefers-reduced-motion: no-preference) {
  .pd-love.dots i.hrt svg { animation: hrt-beat 2.6s ease-in-out calc(1s + var(--d) * 0.16s) infinite; }
  .pd-reunion.dots i.hrt.sm svg { animation: hrt-pass 2.4s ease-in-out calc(1s + var(--d) * 0.2s) infinite; }
  .pd-reunion.dots i.hrt:nth-child(1) svg { animation: hrt-near-l 3.2s ease-in-out 1s infinite; }
  .pd-reunion.dots i.hrt:last-child svg { animation: hrt-near-r 3.2s ease-in-out 1s infinite; }
}

/* 소개 로고·건너뛰기를 넓은 화면에서도 본문 칸(폭 390px 가운데)의 양 끝에 맞춘다 — 좁은 폰에서는 원래 자리 */
.intro-brand { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: max(20px, calc(50% - 195px)); z-index: 40; display: flex; align-items: center; height: 44px; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }   /* 소개 왼쪽 위 로고(누르면 홈) — 건너뛰기와 같은 높이, 본문 칸 왼쪽 끝 */
.intro-page .skip { right: max(20px, calc(50% - 195px)); }

/* 상세페이지 '맛보기': 가상 인물의 풀이서 첫 장면. 샘플이라는 표시를 맨 위에 크게 두고, 글은 끝으로 갈수록 흐려지며 '이어집니다'로 마무리 */
.pd-sample { position: relative; margin-top: 16px; padding: 18px 18px 22px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 20px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.04)); overflow: hidden; }
.pd-sample-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.pd-sample-who b { flex: none; padding: 2px 9px; border-radius: 99px; background: rgba(var(--accent-rgb), 0.9); color: #1b130a; font-size: 12px; font-weight: 700; }
.pd-sample-ch { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--ink); }
.pd-sample-ch i { flex: none; font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.pd-sample-lead { margin: 12px 0 0; font-size: 15px; line-height: 25px; font-weight: 600; color: var(--ink-2); }
.pd-sample-text { margin: 10px 0 0; max-height: 96px; font-size: 14px; line-height: 24px; color: var(--ink-3); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.pd-sample-more { margin-top: 6px; text-align: center; font-size: 12px; line-height: 18px; color: var(--accent-ink); letter-spacing: 0.02em; }
.pd-sample-note { margin: 10px 2px 0; font-size: 12px; line-height: 18px; color: var(--ink-4); }


/* 재물운 상세페이지 새 구성(page.story): 공감 체크리스트 · 반전 · 4가지 좌표 · 풀이서 화면 · 마무리 */
.pd-checks li { padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.045); font-size: 15.5px; line-height: 24px; color: var(--ink); }
.pd-checks li::before { left: 17px; top: 20px; }
.pd-bridge { margin: 26px 0 0; text-align: center; font-size: 17px; line-height: 28px; color: var(--ink-2); }
.pd-bridge b { color: var(--accent-ink); font-weight: 800; }
.pd-story h2, .pd-coords-h { text-align: center; }
.pd-story h2 em, .pd-sec h2 em { font-style: normal; color: var(--accent-ink); }
.pd-body { margin-top: 22px; }
.pd-body p { margin: 16px 0 0; font-size: 15.5px; line-height: 27px; color: var(--ink-2); }
.pd-body p:first-child { margin-top: 0; }
.pd-body p.big { font-size: 17px; font-weight: 700; color: var(--ink); }
.pd-body .hl { color: var(--accent-ink); font-weight: 700; }
.pd-sec:has(.pd-coords) h2, .pd-sec:has(.pd-rail) h2, .pd-sec:has(.pd-facts) h2, .pd-sec:has(.pd-fit) h2, .pd-sec:has(.pd-pills2) h2, .pd-sec:has(.pd-reveal) h2 { text-align: center; }
.pd-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pd-flow-c { position: relative; padding: 14px 10px 12px; border: 1px solid rgba(var(--accent-rgb), 0.3); border-radius: 18px; background: rgba(var(--accent-rgb), 0.06); text-align: center; }
.pd-flow-c svg { display: block; width: 100%; max-width: 130px; height: auto; margin: 0 auto; overflow: visible; }
.pd-flow-c b { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--accent-ink); }
.pd-flow-c span { margin-left: 5px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pd-flow .pd-ch { fill: none; stroke: rgba(var(--accent-rgb), 0.45); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 6; }
.pd-flow .dr { fill: var(--accent-ink); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.9)); }
.pd-flow .cal rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(var(--accent-rgb), 0.28); stroke-width: 1; }
.pd-flow .cal text { fill: var(--ink-4); font-size: 9px; font-weight: 600; }
.pd-flow .cal { animation: pd-cal 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * 0.18s); }
.pd-flow .cal.nb rect { fill: rgba(var(--accent-rgb), 0.16); stroke: rgba(var(--accent-rgb), 0.5); }
.pd-flow .cal.nb text { fill: var(--ink-3); }
.pd-flow .cal.on { animation: none; }
.pd-flow .cal.on rect { fill: var(--accent); stroke: var(--accent-ink); filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.9)); animation: pd-glow 2.4s ease-in-out infinite alternate; }
.pd-flow .cal.on text { fill: var(--on-accent); font-weight: 800; }
@keyframes pd-cal { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes pd-glow { from { filter: drop-shadow(0 0 2px rgba(var(--accent-rgb), 0.5)); } to { filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 1)); } }
@media (prefers-reduced-motion: reduce) { .pd-flow .cal, .pd-flow .cal.on rect { animation: none; } .pd-flow .dr { display: none; } }
.pd-flow .orb { fill: none; stroke: rgba(var(--accent-rgb), 0.4); stroke-width: 1.5; stroke-dasharray: 3 5; }
.pd-flow .hrt-big { fill: var(--accent); filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.8)); }
.pd-flow .hrt-sm { fill: var(--accent-ink); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.9)); }
.pd-flow .th { fill: none; stroke: rgba(var(--accent-rgb), 0.5); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 6; }
.pd-flow .xd { fill: var(--accent-ink); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.9)); }
.pd-flow .xb { fill: rgba(255, 255, 255, 0.9); }
@media (prefers-reduced-motion: reduce) { .pd-flow .xd { display: none; } }
.pd-punch { margin-top: 28px; text-align: center; }
.pd-punch p { margin: 16px 0 0; font-size: 22px; font-weight: 800; line-height: 33px; letter-spacing: -0.01em; color: var(--ink); }
.pd-punch p em { font-style: normal; color: var(--accent-ink); }
.pd-punch p.mid { font-size: 17px; font-weight: 600; line-height: 27px; color: var(--ink-2); }
.pd-pills { display: grid; gap: 10px; margin: 26px 0 4px; }
.pd-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; }
.pd-keys span { padding: 3px 13px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 999px; background: rgba(var(--accent-rgb), 0.09); font-size: 13.5px; line-height: 22px; color: var(--accent-ink); }
.pd-pills div { padding: 12px 20px; border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: 999px; background: rgba(var(--accent-rgb), 0.08); text-align: center; font-size: 15.5px; font-weight: 700; color: var(--accent-ink); }
.pd-pills div:has(> b) { border-radius: 18px; }
.pd-pills div > b { display: block; margin-bottom: 2px; font-size: 16.5px; color: var(--accent-ink); }
.pd-tag { display: block; margin-bottom: 12px; text-align: center; font-size: 12.5px; letter-spacing: 0.2em; color: var(--accent-ink); }
.pd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.pd-facts div { padding: 16px 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.045); text-align: center; }
.pd-facts b { display: block; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--accent); }
.pd-facts span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 18px; color: var(--ink-2); }
.pd-bridge2 { margin: 56px 0 0; text-align: center; font-size: 16px; line-height: 27px; font-weight: 700; color: var(--accent-ink); }
.pd-hook-h { margin-top: 26px; }
.pd-mid { margin: 14px 0 0; text-align: center; font-size: 16px; line-height: 26px; font-weight: 600; color: var(--ink-2); }
.pd-preview { max-width: 320px; margin: 26px auto 0; border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(var(--accent-rgb), 0.15); }
.pd-preview img { display: block; width: 100%; height: auto; }
.pd-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.pd-grades div { padding: 14px 14px 16px; border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: 16px; background: rgba(var(--accent-rgb), 0.07); }
.pd-grades b { display: block; font-size: 16px; line-height: 24px; color: var(--accent-ink); }
.pd-grades small { display: block; margin: 1px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pd-grades span { font-size: 13.5px; line-height: 21px; color: var(--ink-2); }
.pd-when-h { margin: 56px 0 0; text-align: center; font-size: 22px; line-height: 32px; font-weight: 800; color: var(--ink); }
.pd-when-h em { font-style: normal; color: var(--accent-ink); }
.pd-tiles { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pd-tiles li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.045); }
.pd-tiles i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-style: normal; font-weight: 800; }
.pd-tiles b { display: block; font-size: 15.5px; line-height: 24px; color: var(--accent-ink); }
.pd-tiles span { font-size: 14px; line-height: 21px; color: var(--ink-2); }
.pd-tiles em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.pd-foot { margin: 18px 0 0; text-align: center; font-size: 13.5px; line-height: 21px; color: var(--ink-3); }
.pd-fit { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pd-fit li { padding: 13px 18px; border: 1px solid rgba(var(--accent-rgb), 0.28); border-radius: 14px; background: rgba(var(--accent-rgb), 0.08); font-size: 15px; line-height: 23px; color: var(--ink); }
.pd-fit li::before { content: "✓"; margin-right: 10px; font-weight: 800; color: var(--accent-ink); }
.pd-intro-h { font-size: 28px; line-height: 40px; font-weight: 800; }
.pd-reveal { margin-top: 34px; padding: 24px 18px; border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: 20px; background: rgba(var(--accent-rgb), 0.08); text-align: center; font-size: 16.5px; line-height: 29px; font-weight: 700; color: var(--ink); }
.pd-reveal em { font-style: normal; color: var(--accent-ink); }
.pd-pills2 { display: grid; gap: 12px; margin: 26px 0 4px; }
.pd-pills2 div { padding: 16px 18px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 18px; background: rgba(var(--accent-rgb), 0.09); font-size: 16px; line-height: 25px; font-weight: 700; color: var(--ink); }
.pd-pills2 b { display: block; margin-bottom: 2px; font-size: 18px; color: var(--accent); }
.pd-pills2 span { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.pd-coords-foot { margin-top: 40px; }
.pd-tiles2 { display: grid; gap: 10px; margin-top: 20px; }
.pd-tiles2 div { padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.045); }
.pd-tiles2 b { display: block; font-size: 15.5px; line-height: 24px; color: var(--accent-ink); }
.pd-tiles2 span { font-size: 14px; line-height: 21px; color: var(--ink-2); }
.pd-coords { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pd-coords li { display: flex; gap: 14px; padding: 16px 16px; border: 1px solid rgba(var(--accent-rgb), 0.38); border-radius: 18px; background: rgba(var(--accent-rgb), 0.07); }
.pd-coords i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 14px; font-weight: 800; }
.pd-coords b { display: block; margin-bottom: 3px; font-size: 16px; line-height: 24px; color: var(--accent-ink); }
.pd-coords span { font-size: 14px; line-height: 22px; color: var(--ink-3); }
.pd-sub-c, .pd-note-c { text-align: center; }
.pd-rail { display: flex; gap: 12px; margin: 16px -20px 0; padding: 4px 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.pd-rail::-webkit-scrollbar { display: none; }
.pd-rail figure { flex: none; width: min(70%, 260px); margin: 0; scroll-snap-align: center; }
.pd-shot { display: block; border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.pd-rail img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.pd-rail img { -webkit-user-drag: none; user-select: none; }
@media (pointer: fine) {   /* 마우스(PC): 스크롤바를 보이고, 끌어서 넘길 수 있게 */
  .pd-rail { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), 0.5) transparent; cursor: grab; }
  .pd-rail::-webkit-scrollbar { display: block; height: 6px; }
  .pd-rail::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(var(--accent-rgb), 0.5); }
  .pd-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
}
.pd-rail figcaption { margin-top: 8px; text-align: center; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.pd-toc { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.045); }
.pd-toc summary { padding: 14px 18px; list-style: none; cursor: pointer; text-align: center; font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.pd-toc summary::-webkit-details-marker { display: none; }
.pd-toc summary::after { content: " ▾"; }
.pd-toc[open] summary { border-bottom: 1px solid var(--line); }
.pd-toc[open] summary::after { content: " ▴"; }
.pd-toc .pd-chaps { margin: 0; padding: 4px 14px 8px; }
.pd-sp .pd-sec { margin-top: 76px; }   /* 새 구성(재물운)은 섹션 사이를 더 넓게 */
.pd-closing { position: relative; text-align: center; }
.pd-sp .pd-notes { text-align: center; }
.pd-closing::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 100vw; max-width: 720px; transform: translateX(-50%); z-index: -1; background: radial-gradient(70% 70% at 50% 55%, rgba(var(--accent-rgb), 0.06), transparent 62%); pointer-events: none; }
.pd-closing-star { display: block; width: 30px; height: 30px; margin: 0 auto 34px; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.85)); }
.pd-closing-star i { display: block; width: 100%; height: 100%; background: var(--accent-ink); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: pd-twinkle 2.2s ease-in-out infinite; }
@keyframes pd-twinkle { 0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1.12) rotate(18deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pd-closing-star i { animation: none; } }
.pd-closing p { margin: 0; font-size: 21px; font-weight: 700; line-height: 33px; color: var(--ink); }
.pd-closing p.s { margin-top: 30px; font-size: 16px; font-weight: 600; line-height: 27px; color: var(--ink-2); }
/* 비회원 결제(2026-11-27): 로그인 전 정보 입력 화면 하단은 버튼 둘. '로그인하고 결제' 위에 말풍선이 떠 있다 */
.cta-two { display: flex; gap: 8px; }
.cta-two .btn-guest { flex: none; width: 116px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }   /* 결과 화면의 홈 버튼(report.css .home)과 같은 유리 모양 */
.cta-two .btn-wrap { position: relative; flex: 1; display: flex; }
.btn-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 99px; background: #fff; color: #1b130a; font-size: 12px; font-weight: 700; line-height: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; animation: btn-float 2.4s ease-in-out infinite; }
.btn-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes btn-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .btn-tip { animation: none; } }
body.has-bar.has-two { padding-bottom: 170px; }
.load-saved { margin: -4px 0 14px; font-size: 13px; }
.load-saved a { color: var(--accent-ink); }
.guest-warn { margin: 24px 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 176, 140, .55); background: rgba(255, 143, 99, .14); font-size: 13px; line-height: 20px; color: var(--ink-2); }
.pd-volume { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .12); font-size: 13px; font-weight: 600; line-height: 20px; color: var(--ink-2); }
/* 상단 할인 안내 한 줄 */
.promo { position: fixed; left: 50%; top: calc(54px + env(safe-area-inset-top, 0px)); z-index: 45; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 32px); padding: 5px 6px 5px 12px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 18px; background: rgba(20, 18, 31, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.promo[hidden] { display: none; }
.promo .x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--ink-3); font: inherit; font-size: 10px; line-height: 20px; cursor: pointer; }
.promo .msg-min { display: none; }
.promo.min { padding: 5px 12px; }
.promo.min .msg, .promo.min .x { display: none; }
.promo.min .msg-min { display: inline; }
.promo .msg em, .promo .msg-min em { font-style: normal; font-weight: 800; color: var(--accent-ink); text-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
@media (prefers-reduced-motion: no-preference) { .promo .msg em, .promo .msg-min em { animation: accent-cycle 10s linear infinite; } }   /* 상품 색이 정해진 화면에서도 이 글자는 오행 색을 돌며 바뀐다 */
/* 결제 화면의 할인 강조: 결제 버튼 위 말풍선 + 영수증의 할인 줄·결제 금액 */
.deal-wrap { position: relative; }
.deal-tip { background: var(--accent-ink); color: #17110a; font-size: 13px; }
.deal-tip::after { border-top-color: var(--accent-ink); }
.rc-no { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; user-select: all; }
.rc-list s { color: var(--ink-4); }
.rc-rows .rc-off { align-items: center; margin: 6px -8px 0; padding: 10px 12px; border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 12px; background: rgba(var(--accent-rgb), .16); }
.rc-rows .rc-off dt { color: var(--ink); font-weight: 600; }
.rc-rows .rc-off dt b { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--accent-ink); color: #17110a; font-size: 12px; font-weight: 800; line-height: 18px; }
.rc-rows .rc-off dd { font-size: 19px; font-weight: 800; }
.rc-rows .rc-total dd { font-size: 28px; line-height: 36px; font-weight: 800; text-shadow: 0 0 18px rgba(var(--accent-rgb), .55); }
/* 상세 페이지의 구매 버튼도 오행 순환색을 따라간다: report.css 의 .dl 은 --accent-rgb 를 쓰는데 이 값은 순환 중에 바뀌지 않아, 순환 화면에서는 --accent 로 칠한다 */
body.product-page[data-accent=cycle] .dock .dl { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 65%, transparent), 0 10px 28px rgba(0, 0, 0, .34), 0 2px 6px rgba(0, 0, 0, .22); }
body.has-back:has(#promo:not([hidden])) .back-gap { margin-bottom: 26px; }   /* 상단 안내 한 줄이 화면 제목을 가리지 않게 */
/* 관리자 '손님이 어디서 그만뒀을까?' 계단형 목록 */
.dp-top { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(224, 115, 91, .55); border-radius: 14px; background: rgba(224, 115, 91, .14); }
.dp-top span { font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.dp-top span i { font-style: normal; color: #ff9d85; }
.dp-top b { font-size: 16px; line-height: 24px; color: var(--ink); }
.dp-top small { font-size: 13px; line-height: 18px; color: #ffb3a6; font-variant-numeric: tabular-nums; }
.dp-ladder { margin: 0; padding: 0; list-style: none; }
.dp-step-row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.dp-name { font-size: 15.5px; font-weight: 600; line-height: 24px; color: var(--ink); }
.dp-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
.dp-step-row b { font-size: 16px; line-height: 24px; color: var(--ink); }
.dp-step-row small { min-width: 40px; text-align: right; font-size: 12.5px; color: var(--ink-4); }
.dp-track { display: block; height: 6px; margin: 4px 0 0 17px; overflow: hidden; border-radius: 3px; background: rgba(128, 128, 128, .18); }
.dp-fill { display: block; height: 100%; min-width: 2px; background: var(--accent); }
.dp-gap { margin: 2px 0 6px 3px; padding-left: 14px; border-left: 2px dashed var(--line); }
.dp-gap summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 8px; list-style: none; cursor: pointer; border-radius: 10px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dp-gap summary::-webkit-details-marker { display: none; }
.dp-gap.worst summary { background: rgba(224, 115, 91, .14); color: #ffb3a6; font-weight: 600; }
.dp-gap summary em { margin-left: 6px; font-style: normal; font-weight: 700; color: #ff9d85; }
.dp-info { font-style: normal; font-size: 15px; color: var(--ink-4); }
.dp-gap p { margin: 2px 8px 8px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dp-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-4); }
.dp-how { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dp-how summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.dp-how p { margin: 0 0 8px; }
.dp-how summary { list-style: none; gap: 6px; }
.dp-how summary::-webkit-details-marker { display: none; }
.dp-how summary::before { content: '▸'; color: var(--ink-4); }
.dp-how[open] summary::before { content: '▾'; }
