/* 사이트 공통 스타일 + 모션.
   모션 원칙(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=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, 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: var(--on-accent); 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 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); }
.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.45; cursor: default; }

/* ── 이전 버튼: 화살표 + '이전'. 화살표의 그려진 왼쪽 끝이 본문 왼쪽선(20px)과 같음 ── */
.back-btn { display: flex; align-items: center; gap: 2px; width: fit-content; height: 44px; margin-bottom: 24px; padding-right: 16px; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--ink); }
.back-btn svg { flex: none; width: 24px; height: 24px; margin-left: -4px; transform: translateY(-0.5px); }   /* 한글 글자는 줄 안에서 위로 치우쳐 그려져서, 화살표를 맞춰 올림 */
body.has-back { padding-top: 16px; }

/* ── 로그인 · 내 풀이 ── */
.topnav { display: flex; justify-content: flex-end; height: 44px; margin: -40px 0 8px; }
.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); }   /* 카카오·네이버 브랜드 색 */
.sso-btn.naver { background: #03c75a; color: #fff; }
.sso-btn.naver svg { width: 16px; height: 16px; }

.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; }
.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); }

.fr, .tr { display: grid; align-items: center; gap: 12px; min-height: 40px; }
.fr { grid-template-columns: 72px 1fr 132px; }
.fl, .tl { font-size: 14px; color: var(--ink-2); }
.fb, .tb { display: block; }
.fb i { display: block; height: 16px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent-ink); }
.fv, .tv { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.fv b, .tv b { font-weight: 600; }
.fv small, .tv small { font-size: 12px; color: var(--ink-4); }
.fb i.z { min-width: 0; }   /* 0명이면 막대 조각도 그리지 않음 */
.fr:hover .fb i, .fr:focus-visible .fb i, .col:hover i, .col:focus-visible i, .tr:hover .tb i, .tr:focus-visible .tb i { filter: brightness(1.15); }
.fr:focus-visible, .col:focus-visible, .tr:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; border-radius: 4px; }

.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); }
.col em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; font-size: 11px; font-style: normal; line-height: 14px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.xaxis { display: flex; justify-content: space-between; margin: 4px 0 0 56px; font-size: 11px; color: var(--ink-4); }

.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) { .fr { grid-template-columns: 64px 1fr 76px; gap: 8px; } .fv { flex-direction: column; gap: 0; } .fv .pre { display: none; } .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; 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 { 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.50), 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); } }
.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); }
.col i, .fb 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-sum { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 14px; }
.rv-sum b { font-size: 22px; line-height: 28px; color: var(--accent-ink); text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45); }
.rv-sum span { font-size: 13px; color: var(--ink-3); }
.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; } }

/* ── 결과 화면 맨 아래 후기 상자 (웹에서만) ── */
.review-box { width: 350px; margin: 28px auto 112px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, var(--glass-2, rgba(255,255,255,.11)), var(--glass, rgba(255,255,255,.065))); border: 1px solid var(--line, rgba(255,255,255,.16)); color: #f2effa; }
.review-box h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.rv-sub { margin-top: 6px; font-size: 14px; line-height: 21px; color: #b0abc4; }
.rv-err { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(214, 84, 62, 0.18); color: #ffb9ab; font-size: 13px; }
.rv-form { margin-top: 14px; display: grid; gap: 12px; }
.rv-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rv-form legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rv-form input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-form fieldset label { font-size: 34px; line-height: 40px; color: rgba(255, 255, 255, 0.25); cursor: pointer; transition: color 120ms, transform 120ms; }
.rv-form fieldset label:hover, .rv-form fieldset label:hover ~ label, .rv-form input:checked ~ label { color: #ffe08a; text-shadow: 0 0 12px rgba(255, 224, 138, 0.6); }
.rv-form input:focus-visible + label { outline: 2px solid #ffe08a; border-radius: 6px; }
.rv-form textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.065); color: #f2effa; font: inherit; font-size: 16px; line-height: 24px; resize: vertical; }
.rv-form button { height: 52px; border: 0; border-radius: 14px; background: rgb(var(--accent-rgb, 201,155,87)); color: var(--on-accent, #241a10); font: inherit; font-weight: 600; cursor: pointer; }
/* 관리자 후기 목록 */
.rv-item { display: grid; gap: 8px; }
.rv-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.rv-head b { color: #ffe08a; letter-spacing: 1px; } .rv-nick { color: var(--ink-2); } .rv-st { padding: 0 8px; border-radius: 10px; background: var(--glass-2); font-size: 12px; } .rv-date { color: var(--ink-4); font-size: 12px; }
.rv-item.st-pending { border-color: rgba(255, 224, 138, 0.5); } .rv-text { font-size: 15px; line-height: 23px; }
.rv-act { display: flex; gap: 8px; }

.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); }
