/* 한국어판(/ko) 화면: 휴대폰 먼저, 한지 바탕 + 오방색. 한 가지 길(생일 → 무료 결과 → 신년운세)만 보이게 */
:root {
  --paper: #FBF7EF; --paper2: #F4EDE0; --card: #FFFFFF; --ink: #1D1A20; --ink2: #3A3540; --muted: #6E6672; --line: #E8DFD0;
  --red: #D9412B; --red2: #B8321E; --blue: #2B4C9B; --green: #2E8B6E; --yellow: #F2B632; --night: #15131A;
  --serif: 'Gowun Batang', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', sans-serif;
  --brush: 'Nanum Brush Script', 'Gowun Batang', cursive;
  --r: 16px; --shadow: 0 10px 30px -18px rgba(40, 24, 10, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ko { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
@media (min-width: 560px) { body.ko { background: radial-gradient(1200px 600px at 50% -10%, #F7E9D3 0%, var(--paper2) 60%) fixed; } }
.ko a { color: inherit; }
:where(.ko) button, :where(.ko) select, :where(.ko) input { font: inherit; color: inherit; }
.ko [hidden] { display: none !important; }
.app { max-width: 480px; margin: 0 auto; background: var(--paper); min-height: 100vh; position: relative; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(40, 24, 10, .35); } }
.saek { height: 5px; background: linear-gradient(90deg, var(--blue) 0 20%, var(--red) 20% 40%, var(--yellow) 40% 60%, #F4F1EA 60% 80%, var(--green) 80% 100%); }

/* 머리 */
.kt { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 4px; }
.kbrand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 18px/1 var(--serif); letter-spacing: -.01em; }
.kbrand .seal { width: 26px; height: 26px; border-radius: 7px; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--serif); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.kmine { font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }

/* 첫 화면 */
.hero { padding: 6px 0 8px; }
.marquee { position: relative; overflow: hidden; height: 104px; margin: 4px 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 8px; width: max-content; animation: drift 46s linear infinite; padding-left: 8px; }
.marquee img { width: 66px; height: 99px; object-fit: cover; border-radius: 12px; background: #E9DFCF; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .6); }
.marquee img:nth-child(odd) { transform: translateY(5px); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
.hero h1 { margin: 0 16px; font: 700 31px/1.28 var(--serif); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--red); background: linear-gradient(transparent 62%, rgba(242, 182, 50, .38) 62%); }
.hero .sub { margin: 8px 16px 14px; color: var(--ink2); font-size: 15.5px; }

/* 생일 입력 */
.bform { margin: 0 12px; padding: 14px 14px 12px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper2); border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg.need { box-shadow: 0 0 0 2px var(--red); }
.ymd { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
.tm { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: center; margin-top: 8px; }
.tm .lab, .place .lab { font-size: 13.5px; color: var(--muted); padding-right: 2px; white-space: nowrap; }
.tm .lab small { font-size: 12px; }
.place { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: center; margin-top: 8px; }
.bform select { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #FFFCF7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236E6672' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 0 24px 0 10px; font-size: 16px; -webkit-appearance: none; appearance: none; }
.bform select:disabled { opacity: .5; }
.bform select.need { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.calnote { margin-top: 6px; font-size: 13.5px; color: var(--blue); }
.err { min-height: 0; margin: 8px 2px 0; color: var(--red2); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.cta { position: relative; overflow: hidden; display: block; width: 100%; margin-top: 12px; border: 0; border-radius: 14px; background: var(--red); color: #fff; font: 700 17.5px/1 var(--sans); min-height: 56px; cursor: pointer; box-shadow: 0 10px 20px -12px rgba(185, 50, 30, .9); }
.cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .cta::after { animation: none; display: none; } }
.cta:active { transform: translateY(1px); }
.cta[disabled] { background: #9C9499; box-shadow: none; cursor: default; }
.cta[disabled]::after { display: none; }
.fine { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* 아래쪽 안내 */
.sec { margin: 26px 16px 0; }
.sec h2 { font: 700 21px/1.35 var(--serif); margin: 0 0 12px; letter-spacing: -.01em; }
.steps { display: grid; gap: 8px; }
.steps div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 0 0 1px var(--line); }
.steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 15px/1 var(--serif); }
.steps div:nth-child(1) b { background: var(--blue); } .steps div:nth-child(2) b { background: var(--green); } .steps div:nth-child(3) b { background: var(--red); }
.steps span { font-size: 15px; } .steps span strong { display: block; font-size: 15.5px; }
.cast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cast figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 2/3; background: #E9DFCF; }
.cast img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 3px 4px; font-size: 11px; line-height: 1.2; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.faq details { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 0 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 13px; color: var(--ink2); font-size: 15px; }
.again { display: block; margin: 18px auto 0; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 14.5px; cursor: pointer; }

/* 무료 결과 */
.rtop { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 0; font-size: 14px; color: var(--muted); }
.rtop button { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.ccard { position: relative; margin: 8px 12px 0; border-radius: 22px; overflow: hidden; background: var(--night); color: #fff; box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .8); }
.ccard .pic { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.ccard .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; animation: reveal 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.ccard .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(21, 19, 26, .6) 72%, var(--night) 100%); }
@keyframes reveal { from { transform: scale(1.09); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.ccard .meta { position: relative; margin-top: -118px; padding: 0 18px 18px; z-index: 1; animation: up .9s .25s both; }
@keyframes up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ccard .pic img, .ccard .meta { animation: none; } }
.ccard .kick { font-size: 13px; letter-spacing: .04em; color: #F6D9A8; }
.ccard .cname { display: block; font: 400 50px/1.05 var(--brush); margin: 2px 0 4px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.ccard .dm { font-size: 15px; color: #EDE6F0; }
.ccard .line { margin-top: 8px; font: 400 16px/1.5 var(--serif); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12.5px; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #F3EEF4; }

.card { margin: 14px 12px 0; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: 0 0 0 1px var(--line); }
.card h2, .card h3 { margin: 0 0 10px; font: 700 19px/1.35 var(--serif); letter-spacing: -.01em; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.note { font-size: 13px; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.pillars .col { display: grid; gap: 4px; }
.pillars .lab { font-size: 12.5px; color: var(--muted); }
.pillars .god { font-size: 12px; color: var(--ink2); min-height: 18px; }
.pillars .tile { border-radius: 12px; padding: 6px 0 5px; display: grid; justify-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pillars .tile b { font: 700 25px/1.1 var(--serif); }
.pillars .tile small { font-size: 12px; opacity: .9; }
.pillars .col.me .lab { color: var(--red); font-weight: 700; }
.pillars .col.me .tile:first-of-type { box-shadow: 0 0 0 2px var(--ink); }
.pillars .unk { border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; display: grid; place-items: center; min-height: 128px; padding: 4px; }
.els { display: grid; gap: 7px; margin-top: 4px; }
.els .row { display: grid; grid-template-columns: 52px 1fr 40px; gap: 8px; align-items: center; font-size: 14px; }
.els .bar { height: 10px; background: var(--paper2); border-radius: 99px; overflow: hidden; }
.els .bar i { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow 1s .2s both; }
@keyframes grow { from { transform: scaleX(0); } }
.els .pct { text-align: right; color: var(--ink2); font-variant-numeric: tabular-nums; }
.read p { font-size: 16px; line-height: 1.8; }

/* 2027 미리보기 */
.y27 { margin: 18px 12px 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.y27 .band { position: relative; padding: 18px 16px 16px; color: #fff; background: radial-gradient(140% 120% at 100% 0%, #F2B632 0%, #E0452B 42%, #8E2C48 100%); }
.y27 .band .big { position: absolute; right: 12px; top: 6px; font: 700 64px/1 var(--serif); opacity: .22; letter-spacing: -.04em; }
.y27 .band small { font-size: 13px; opacity: .92; }
.y27 .band h2 { margin: 2px 0 0; font: 700 23px/1.3 var(--serif); }
.y27 .ch { padding: 16px; border-top: 1px solid var(--line); }
.y27 .ch:first-of-type { border-top: 0; }
.y27 .chh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.y27 .no { font: 700 12.5px/1 var(--sans); color: var(--red); letter-spacing: .02em; white-space: nowrap; }
.y27 .free { font-size: 11.5px; font-weight: 700; color: var(--green); background: #E3F2EC; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.y27 h3 { margin: 0; font: 700 18px/1.35 var(--serif); }
.y27 .ch p { margin: 0 0 10px; line-height: 1.8; }
.locked { padding: 6px 16px 16px; }
.lk { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--line); }
.lk .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--paper2); display: grid; place-items: center; }
.lk .ic svg { width: 14px; height: 14px; }
.lk b { display: block; font: 700 16px/1.35 var(--serif); }
.lk span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.lk .ghost { display: grid; gap: 5px; margin-top: 8px; }
.lk .ghost i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #EFE7DA, #F6F0E6); }
.lk .ghost i:nth-child(2) { width: 82%; } .lk .ghost i:nth-child(3) { width: 64%; }

/* 결제 화면 (상품 3개) */
.pay { margin: 18px 12px 0; padding: 18px 14px 16px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 2px var(--ink), var(--shadow); scroll-margin-top: 12px; }
.pay h2 { margin: 0 0 4px; font: 700 21px/1.35 var(--serif); }
.pay .lead { margin: 0 0 12px; color: var(--ink2); font-size: 15px; }
.pp { display: block; position: relative; border: 1.5px solid var(--line); border-radius: 15px; padding: 13px 13px 12px 44px; margin-bottom: 9px; cursor: pointer; background: #FFFDF9; }
.pp input { position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.pp .nm { display: block; font-weight: 700; font-size: 16px; line-height: 1.35; padding-right: 50px; }
.pp .pr { display: block; font: 700 22px/1.2 var(--sans); margin-top: 3px; letter-spacing: -.01em; }
.pp .sh { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pp:not(.sel) ul { display: none; }
.pp ul { margin: 8px 0 0; padding: 0 0 0 16px; font-size: 14px; color: var(--ink2); }
.pp ul li { margin: 2px 0; }
.pp .tag { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 99px; }
.pp:has(input:checked) { border-color: var(--red); background: #FFF6F2; box-shadow: 0 0 0 1px var(--red); }
.pp.sel { border-color: var(--red); background: #FFF6F2; box-shadow: 0 0 0 1px var(--red); }
.pp.feat .pr { font-size: 26px; color: var(--red2); }
.honest { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: var(--paper); font-size: 13.5px; color: var(--ink2); }
.honest ul { margin: 0; padding-left: 16px; }
.honest li { margin: 3px 0; }
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; margin: 12px 0 0; font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.agree.need { color: var(--red2); }
.paystate { margin-top: 10px; padding: 12px; border-radius: 12px; background: #FFF3D9; color: #6B4B00; font-size: 14.5px; }
.paystate b { display: block; margin-bottom: 2px; }

/* 아래 고정 버튼 */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(251, 247, 239, 0), rgba(251, 247, 239, .96) 30%); }
.sticky .cta { max-width: 456px; margin: 0 auto; }
.sticky .cta small { font-weight: 500; opacity: .9; margin-left: 6px; }
.v-result { padding-bottom: 96px; }

/* 결제창 (아래에서 올라오는 판) */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 22, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet .box { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); animation: rise .28s ease-out; }
@keyframes rise { from { transform: translateY(30px); opacity: .4; } }
.sheet .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet .bar b { font: 700 18px/1.3 var(--serif); }
.sheet .x { border: 0; background: var(--paper2); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: none; }
.sheet .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 15px; }
.sheet .sum strong { font-size: 19px; white-space: nowrap; }
.sheet .testpill { display: inline-block; margin: 8px 0 0; font-size: 12px; font-weight: 700; color: #6B4B00; background: #FFE9B0; padding: 3px 8px; border-radius: 99px; }
#tp-methods, #tp-agree { margin: 4px -6px 0; min-height: 10px; }

/* 결제 뒤 · 유료 풀이 */
.status { margin: 40px 16px; text-align: center; }
.status .spin { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status h2 { font: 700 21px/1.4 var(--serif); margin: 0 0 6px; }
.status p { color: var(--ink2); margin: 0 0 14px; }
.btn2 { display: inline-block; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 18px; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px; }
.rhead { margin: 10px 12px 0; padding: 16px; border-radius: 20px; color: #fff; background: radial-gradient(140% 120% at 100% 0%, #F2B632 0%, #E0452B 45%, #8E2C48 100%); display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.rhead img { width: 74px; height: 100px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.rhead small { font-size: 12.5px; opacity: .92; }
.rhead h1 { margin: 2px 0 4px; font: 700 20px/1.35 var(--serif); }
.rhead .made { font-size: 12.5px; opacity: .9; }
.disc { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.toc { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 0; padding: 0 12px 4px; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; font-size: 13px; padding: 6px 10px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; white-space: nowrap; }
.chap { margin: 14px 12px 0; background: #fff; border-radius: var(--r); padding: 18px 16px; box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 10px; }
.chap .no { font: 700 12.5px/1 var(--sans); color: var(--red); letter-spacing: .02em; }
.chap h2 { margin: 4px 0 12px; font: 700 21px/1.35 var(--serif); }
.chap p { margin: 0 0 12px; line-height: 1.85; }
.chap .tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #EAF4EF; color: #1F5A45; font-size: 15px; }
.chap .tip b { margin-right: 4px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.mcell { border-radius: 14px; padding: 11px 11px 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mcell .mh { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.mcell .mh b { font: 700 17px/1.2 var(--serif); }
.mcell .mh span { font-size: 12px; color: var(--muted); }
.mcell .rg { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mcell .kw { margin-top: 6px; font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.mcell .ln { margin-top: 4px; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.mcell.good { background: #EAF4EF; box-shadow: inset 0 0 0 1.5px var(--green); }
.mcell.gentle { background: #F1EEF8; box-shadow: inset 0 0 0 1px #C9C0E2; }
.mk { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-top: 6px; }
.mk.good, .mdet .mh .mk.good { background: var(--green); color: #fff; } .mk.gentle, .mdet .mh .mk.gentle { background: #7B6DB0; color: #fff; }
.mdet { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.mdet:first-of-type { border-top: 0; padding-top: 4px; }
.mdet .mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-bottom: 6px; }
.mdet .mh b { font: 700 18px/1.2 var(--serif); }
.mdet .mh span { font-size: 13px; color: var(--muted); }
.mdet .kws { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.mdet .kws i { font-style: normal; font-size: 12.5px; padding: 3px 8px; border-radius: 99px; background: var(--paper2); }
.mdet .mtip { font-size: 14px; color: #1F5A45; }
.luck { display: grid; gap: 8px; }
.luck .lr { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: var(--paper); }
.luck .lr.now { background: #FFF3E6; box-shadow: inset 0 0 0 1.5px var(--red); }
.luck .lr b { font: 700 18px/1.2 var(--serif); }
.luck .lr small { display: block; font-size: 12px; color: var(--muted); }
.luck .lr .nowtag { display: inline-block; margin-top: 4px; font: 700 11px/1 var(--sans); color: #fff; background: var(--red); padding: 3px 7px; border-radius: 99px; }
.luck .lr p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.story { background: #FFFBF3; box-shadow: 0 0 0 1px #EBDCC2; }
.story p { font-family: var(--serif); font-size: 16.5px; line-height: 1.95; }
.story .por { float: right; width: 92px; height: 128px; object-fit: cover; border-radius: 12px; margin: 0 0 8px 12px; shape-outside: margin-box; }
.closing ul { margin: 6px 0 0; padding-left: 18px; }
.closing li { margin: 6px 0; }
.gform { margin-top: 10px; }
.gscore { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gscore .ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 700 22px/1 var(--sans); background: conic-gradient(var(--red) calc(var(--s) * 1%), var(--paper2) 0); position: relative; flex: none; }
.gscore .ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.gscore .ring span { position: relative; }
.gscore b { display: block; font: 700 18px/1.3 var(--serif); }
.gscore small { color: var(--muted); font-size: 12.5px; }
.ractions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 12px 0; }

/* 아래쪽 (약관·사업자 정보) */
.kfoot { margin: 32px 0 0; padding: 18px 16px 28px; border-top: 1px solid var(--line); background: var(--paper2); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.kfoot .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; font-size: 13.5px; }
.kfoot .links a { text-decoration: none; color: var(--ink2); }
.kfoot .links a.b { font-weight: 700; color: var(--ink); }
.kfoot .biz { margin: 0; }
.kfoot .biz b { font-weight: 400; }
.kfoot .biz span::after { content: ' · '; }
.kfoot .biz span:last-child::after { content: ''; }
.kfoot p { margin: 8px 0 0; }

/* 약관 문서 */
.doc { margin: 8px 16px 0; }
.doc h1 { font: 700 25px/1.35 var(--serif); margin: 10px 0 6px; }
.doc .upd { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.doc h2 { font: 700 18px/1.4 var(--serif); margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; line-height: 1.8; color: var(--ink2); }
.doc ul, .doc ol { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper2); white-space: nowrap; }
.doc .box { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); }

@media print {
  .saek, .kt, .sticky, .toc, .ractions, .kfoot, .gform, #v-land, #v-result { display: none !important; }
  .app { box-shadow: none; max-width: none; }
  .chap, .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid-page; }
  body.ko { background: #fff; }
}
