/* 묘책 칼럼 — 묘책 키컬러(민트 #00FDAA × 검정 #0A0A0A). 밤에 핸드폰으로 혼자 읽는 사람을 위한 화면 */
:root {
  --ink: #0A0A0A;        /* 묘책 검정 */
  --mint: #00FDAA;       /* 묘책 민트 — 채움색으로만 */
  --mint-text: #00865A;  /* 흰 바탕 위 민트 글자 (읽힘 대비 확보) */
  --mint-pale: #E3FFF4;  /* 옅은 민트 판 */
  --paper: #FFFFFF;
  --ground: #F2F2F0;     /* 바깥 바탕 · 구분 띠 */
  --bubble: #F1F1EE;     /* 받은 메시지 말풍선 */
  --line: #E4E4E1;
  --soft: #707070;
  --night: #121212;      /* 표지 */
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --col: 600px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word;
}
body.has-float { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mint-text); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--col); margin: 0 auto; padding-inline: 20px; }

/* 말투 — html[data-tone] 에 따라 한쪽만 보여요 */
html[data-tone="formal"] .t-casual, html[data-tone="casual"] .t-formal { display: none; }

/* 시안 띠 */
.preview-bar { background: var(--mint); color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 16px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; text-align: center; }
.tone-switch { display: inline-flex; align-items: center; gap: 4px; }
.tone-switch button { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.tone-switch button[aria-pressed="true"] { background: var(--ink); color: var(--mint); }

/* 읽은 만큼 차는 줄 */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }

/* ── 머리 ── */
.site-head { background: var(--ink); color: #fff; }
.head-row, .cats { max-width: var(--col); margin: 0 auto; padding-inline: 20px; }
.head-row { display: flex; align-items: center; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand img { height: 24px; width: auto; }
.brand span { font-size: 15px; font-weight: 600; color: #BDBDBD; }
.cats { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
.cats::-webkit-scrollbar { display: none; }
.cats a { color: #8C8C8C; text-decoration: none; white-space: nowrap; padding: 10px 0 12px; border-bottom: 2px solid transparent; }
.cats a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom-color: var(--mint); }

/* ── 칼럼 한 장 ── */
.column { max-width: var(--col); margin: 0 auto; background: var(--paper); }
.gate { margin: 0; background: #FFF4D6; border-bottom: 1px solid #F1D48A; padding: 10px 20px; font-size: 14px; line-height: 1.6; color: #5A3E00; }
.gate summary { cursor: pointer; font-weight: 700; }
.gate ul { margin: 8px 0 4px; padding-left: 18px; }

/* 표지 */
.cover {
  background: var(--night); color: #fff; padding: 34px 20px 28px; position: relative; overflow: hidden;
  background-image: radial-gradient(120% 70% at 100% 0%, rgba(0, 253, 170, .16), transparent 60%);
}
.cover-cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--mint); text-decoration: none; border: 1.5px solid var(--mint); padding: 1px 10px; border-radius: 999px; margin-bottom: 14px; }
.cover-title { margin: 0; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.cover-sub { margin: 8px 0 0; font-size: 17px; color: #BDBDBD; }
.cover-say { margin-top: 26px; display: flex; gap: 10px; align-items: flex-end; }
.cover-say img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px; box-shadow: 0 0 0 2px var(--mint); }
.cover-say p { margin: 0; background: #262626; border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: 15px; line-height: 1.55; min-width: 0; }
.say-name { display: block; font-size: 12px; font-weight: 700; color: var(--mint); margin-bottom: 2px; }

/* 짧은 답 */
.answer { padding: 26px 20px 20px; border-bottom: 10px solid var(--ground); }
.answer-h { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--mint-text); }
.answer-body { margin: 0 0 18px; font-size: 19px; line-height: 1.55; font-weight: 700; letter-spacing: -0.01em; }
.meta { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--soft); align-items: center; }
.share-btn { border: 0; background: var(--mint-pale); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.share-btn.big { padding: 12px 22px; font-size: 16px; background: var(--ink); color: var(--mint); }

/* 붙어 다니는 메뉴 */
.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; text-decoration: none; color: #6A6A6A; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--ground); }
.tabs a.on { background: var(--ink); color: var(--mint); }

/* 블록 공통 */
.sheet { padding-bottom: 20px; }
.block { padding: 34px 20px 6px; scroll-margin-top: 64px; }
.block + .block { border-top: 1px solid var(--line); margin-top: 28px; }
.sec-h { margin: 0 0 6px; font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.sec-sub { margin: 0 0 16px; font-size: 15px; color: var(--soft); }
.sec-h + .msgs, .sec-h + .flow, .sec-h + .ready, .sec-h + .writer, .sec-h + .seg, .sec-h + .faq, .sec-h + .empty-box { margin-top: 16px; }

/* 💬 메시지 모양 고민 */
.msgs { display: grid; gap: 14px; }
.msg { margin: 0; max-width: 88%; }
.msg:nth-child(even) { margin-left: auto; }
.msg blockquote { margin: 0; background: var(--bubble); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 16px; line-height: 1.6; }
.msg:nth-child(even) blockquote { border-radius: 20px 20px 6px 20px; }
.msg figcaption { margin: 5px 8px 0; font-size: 12px; color: var(--soft); }
.msg:nth-child(even) figcaption { text-align: right; }
.msg figcaption a { color: var(--soft); text-underline-offset: 2px; }

/* 🔍 내 상황 고르기 */
.picks { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 13px 16px; font-size: 16px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.pick:hover { border-color: var(--ink); }
.pick[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pick-ico { font-size: 22px; line-height: 1; }
.pick-hint { margin: 12px 0 0; font-size: 14px; color: var(--soft); text-align: center; }
.pick-panel { margin-top: 12px; background: var(--mint-pale); border-radius: 14px; padding: 16px 18px; font-size: 16px; }
.pick-panel p { margin: 0 0 10px; }
.pick-go { font-weight: 700; color: var(--mint-text); text-decoration: none; }

/* 본문 */
.prose { font-size: 17px; line-height: 1.65; }  /* 행간 줄임 (2026-10-04 사장님 요청) */
.prose h2 { font-size: 21px; line-height: 1.45; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 12px; scroll-margin-top: 64px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.35em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--mint-text); }
.prose strong { font-weight: 700; background: linear-gradient(transparent 60%, rgba(0, 253, 170, .38) 60%); }

/* 묘화 말풍선 (본문 속) */
.say { display: flex; gap: 10px; align-items: flex-end; margin: 26px 0; }
.say-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; box-shadow: 0 0 0 2px var(--mint); }
.say-text { margin: 0 !important; background: var(--ink); color: #fff; border-radius: 18px 18px 18px 4px; padding: 10px 15px; font-size: 15px; line-height: 1.6; min-width: 0; }

.pending { display: inline-block; font-size: 13px; font-weight: 700; color: #7A4A00; background: #FFEDC2; border-radius: 4px; padding: 1px 7px; line-height: 1.6; font-style: normal; }

/* 🌙 사주로 보면 */
.saju { margin: 32px 0; }
.saju-h { margin: 0 0 12px !important; font-size: 21px; }
.saju-pending { border: 2px dashed var(--line); border-radius: 14px; padding: 16px 18px; color: var(--soft); font-size: 15px; }
.saju-pending p { margin: 0 0 6px; }
.saju-box { border: 1.5px solid var(--mint, #00FDAA); border-radius: 14px; padding: 16px 18px; font-size: 16px; line-height: 1.7; background: rgba(0,253,170,.06); }
.saju-box p { margin: 0 0 6px; }
.saju-box p:last-child { margin: 0; }

/* 연결 상품 상자 (본문 안) — 승인된 모양 그대로 */
.product { display: grid; grid-template-columns: 34% 1fr; gap: 16px; align-items: center; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px; margin: 32px 0; }
.product-img { width: 100%; height: auto; border-radius: 10px; }
.product-body { min-width: 0; }
.product-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--mint); }
.product-name { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; }
.product-edition { margin: 2px 0 0; font-size: 13px; color: #BDBDBD; }
.product-hook { margin: 10px 0 14px; font-size: 14px; line-height: 1.55; color: #E2E2E2; }
.product-btn { display: block; text-align: center; text-decoration: none; background: var(--mint); color: var(--ink); font-weight: 800; font-size: 15px; border-radius: 10px; padding: 12px 10px; }
.pending-line { margin: 12px 0 0; text-align: center; }

/* 📑 결과지 목차 — 답하는 장만 펼치고 나머지는 접어요 */
.toc { margin: 16px 0 0; display: grid; gap: 8px; }
.toc-item { background: var(--ground); border-radius: 14px; }
.toc-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 20px; gap: 10px; align-items: start; padding: 13px 14px; }
.toc-item summary::-webkit-details-marker { display: none; }
.toc-item summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); margin-top: 7px; justify-self: end; transition: transform .2s; }
.toc-item[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.toc-no { font-weight: 800; font-size: 15px; color: var(--soft); padding-top: 1px; }
.toc-title { font-weight: 800; font-size: 16px; line-height: 1.4; min-width: 0; }
.toc-body { padding: 0 14px 14px 76px; }
.toc-gives { margin: 0; padding-left: 16px; font-size: 14px; color: #444; display: grid; gap: 3px; }
.toc-gives li::marker { color: var(--mint-text); }
.toc-item.is-hit { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--mint); }
.toc-item.is-hit .toc-no { color: var(--mint); }
.toc-item.is-hit summary::after { border-color: var(--mint); }
.toc-item.is-hit .toc-gives { color: #E2E2E2; }
.toc-item.is-hit .toc-gives li::marker { color: var(--mint); }
.toc-flag { display: block; width: max-content; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.toc-lock { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--mint); }
.toc-rest { margin: 8px 0 0; }
.toc-rest > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 1.5px dashed #CFCFCB; border-radius: 14px; font-weight: 700; font-size: 15px; color: #333; }
.toc-rest > summary::-webkit-details-marker { display: none; }
.toc-rest > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); margin: -3px 0 0 2px; transition: transform .2s; }
.toc-rest[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.toc-rest-n { font-weight: 600; font-size: 13px; color: var(--soft); }
.toc-rest[open] > summary { border-style: solid; margin-bottom: 0; }
.toc-note { margin: 14px 0 10px; font-size: 14px; color: var(--soft); }
.toc-btn { display: block; text-align: center; text-decoration: none; background: var(--mint); color: var(--ink); font-weight: 800; font-size: 16px; border-radius: 12px; padding: 14px 12px; }
.reel { margin-top: 12px; display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--ground); border-radius: 14px; padding: 12px 14px; }
.reel-play { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.reel-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid var(--mint); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.reel-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--soft); min-width: 0; }
.reel-text strong { color: var(--ink); font-size: 16px; }
.reel-text .pending { align-self: flex-start; }

/* 🧭 이렇게 진행돼요 */
.flow { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 46px; width: 2px; background: repeating-linear-gradient(var(--mint) 0 6px, transparent 6px 11px); }
.flow li { display: flex; gap: 14px; align-items: flex-start; padding: 4px 0 12px; position: relative; }
.flow-ico { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 20px; }
.flow-step { margin: 2px 0 2px; font-weight: 800; font-size: 16px; }
.flow-text { margin: 0; font-size: 15px; color: #444; }

/* ⭐ 후기 */
.empty-box { margin: 0; border: 2px dashed var(--line); border-radius: 14px; padding: 16px 18px; color: var(--soft); font-size: 15px; }
.review { margin: 0; flex: 0 0 78%; background: var(--ground); border-radius: 14px; padding: 16px; }
.review blockquote { margin: 0 0 8px; }
.review figcaption { font-size: 13px; color: var(--soft); }

/* ❓ 질문 두 묶음 */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--ground); border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font-size: 14px; font-weight: 700; color: var(--soft); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 16px 32px 16px 0; font-weight: 700; font-size: 16px; }
.faq summary::before { content: "Q"; color: var(--mint-text); font-weight: 800; margin-right: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq-a { padding: 0 0 18px 22px; color: #333; font-size: 15px; }

/* 👀 같이 궁금해한 것 */
.rail-h { margin: 18px 0 10px; font-size: 15px; font-weight: 800; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 64%; scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile-art { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; margin-bottom: 8px; }
/* 함께 보면 좋은 사주 — 상품 썸네일이 세로형(640×970~1120)이라 세로 비율 칸으로, 잘리지 않게 */
/* 함께 보면 좋은 사주 — 한 장씩 크게, 썸네일을 흐린 배경 위에 (2026-10-04) */
.sec-count { font-size: 16px; font-weight: 700; color: var(--soft); }
/* 위 칩 줄 — "옆에 더 있다"를 먼저 보여 주는 자리 */
.deck-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -20px 12px; padding: 10px 20px 2px; scroll-padding-inline: 20px; }
.deck-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 84px; padding: 9px 14px 10px; border: 0; border-radius: 12px; background: #E3E3E3; color: var(--ink); cursor: pointer; font-family: inherit; position: relative; }
.chip small { font-size: 12px; font-weight: 600; color: #555; line-height: 1.3; }
.chip b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; white-space: nowrap; }
.chip i { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 1px 6px; }
.chip.on { background: var(--ink); color: #fff; }
.chip.on small { color: #BDBDBD; }
.deck { position: relative; margin-inline: -20px; }
.deck-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 20px; scroll-padding-inline: 20px; }  /* 다음 카드 끝이 오른쪽에 살짝 보이게 */
.deck-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 calc(100% - 64px); scroll-snap-align: start; border-radius: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 24px 28px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--ink); min-width: 0; }
.slide-bg { position: absolute; inset: -40px; z-index: -1; background: var(--art, none) center / cover no-repeat, var(--ink); filter: blur(28px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.slide-top { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.slide-art-wrap { position: relative; width: 58%; max-width: 230px; display: block; }
.slide-art { width: 100%; aspect-ratio: 4 / 7; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.7); display: block; }
.slide-art-soon { width: 58%; max-width: 230px; aspect-ratio: 4 / 7; border-radius: 12px; }
/* 썸네일 위 글자 — 사진에 글자가 없는 상품만 (유리 썸네일 모양을 따라 만듦) */
.art-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 8px 12px; border-radius: 0 0 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 0; background: linear-gradient(to top, rgba(20,16,22,.88) 0%, rgba(20,16,22,.55) 55%, transparent 100%); color: #fff; }
.art-text small { align-self: flex-start; margin-left: 10%; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 0 6px var(--glow), 0 2px 4px rgba(0,0,0,.6); }
.art-text b { font-size: 38px; font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; color: #fff; text-shadow: 0 0 2px var(--glow), 0 0 3px var(--glow), 0 0 8px var(--glow), 0 0 16px var(--glow), 0 0 24px var(--glow); }
.art-text i { margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.slide-art-soon { display: grid; place-items: center; align-content: center; gap: 6px; background: #1E1E1E; border: 1.5px dashed #555; color: #AAA; }
.slide-art-soon b { font-size: 26px; line-height: 1.05; letter-spacing: .04em; color: var(--mint); }
.slide-art-soon i { font-style: normal; font-size: 13px; }
.slide-flag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--mint); border-radius: 999px; padding: 3px 10px; }
.slide-name { margin-top: 14px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.slide-sub { font-size: 14px; color: #DDD; line-height: 1.5; max-width: 300px; text-wrap: balance; }
.slide-btn { margin-top: 12px; background: var(--mint); color: var(--ink); font-weight: 800; font-size: 15px; border-radius: 999px; padding: 11px 20px; }
.is-soon .slide-btn { background: #3A3A3A; color: #DDD; }
.slide .pending { margin-top: 6px; }
.deck-prev { position: absolute; left: 26px; top: 46%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); display: grid; place-items: center; padding-bottom: 3px; z-index: 2; }
.deck-next { z-index: 2; position: absolute; right: 26px; top: 46%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); display: grid; place-items: center; padding-bottom: 3px; }
.deck-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.deck-dots i { width: 6px; height: 6px; border-radius: 50%; background: #CFCFCF; }
.deck-dots i.on { background: var(--ink); width: 18px; border-radius: 3px; }
.tile-q { background: var(--ink); position: relative; overflow: hidden; display: block; background-image: radial-gradient(circle at 100% 100%, rgba(0,253,170,.22) 0 30%, transparent 31%); }
.tile-q b { position: absolute; left: 16px; top: 8px; color: var(--mint); font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.tile-q i { position: absolute; left: 16px; bottom: 14px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--mint); border-radius: 999px; padding: 2px 10px; }
.is-soon .tile-q i { background: #3A3A3A; color: #D0D0D0; }
.tile-name { background: var(--mint); color: var(--ink); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 22px; padding: 12px; letter-spacing: -0.02em; background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,.55) 0 18%, transparent 19%); }
.tile-cat { font-size: 12px; color: var(--soft); }
.tile-title { font-size: 16px; font-weight: 800; line-height: 1.45; }
.tile-sub { font-size: 13px; color: var(--soft); line-height: 1.5; }
.tile-tag { font-size: 13px; font-weight: 800; color: var(--mint-text); }
.tile-tag.soon { color: #9A9A9A; }
.tile .pending { align-self: flex-start; margin-top: 2px; }

.tags { list-style: none; margin: 30px 20px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--soft); }
.share-end { margin: 26px 20px 8px; background: var(--mint-pale); border-radius: 18px; padding: 22px 18px; text-align: center; }
.share-end p { margin: 0 0 12px; font-size: 15px; }

/* 떠 있는 버튼 */
.float { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transform: translateY(120%); transition: transform .28s ease; }
.float[data-show="true"] { transform: none; }
.float-in { pointer-events: auto; max-width: 576px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 20px; padding: 10px 10px 10px 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.55); }
.float-in img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; box-shadow: 0 0 0 2px var(--mint); }
.float-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.float-text span { display: block; font-size: 12px; color: var(--mint); font-weight: 700; }
.float-go { flex: 0 0 auto; background: var(--mint); color: var(--ink); font-weight: 800; font-size: 15px; border-radius: 14px; padding: 12px 14px; }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 14px; padding: 8px 16px; border-radius: 999px; z-index: 30; margin: 0; }

/* 꼬리 */
.site-foot { background: var(--ground); color: var(--soft); font-size: 13px; line-height: 1.7; padding: 28px 0 32px; }
.site-foot .wrap > p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }
.foot-links a { color: #444; }
.foot-copy { color: #9A9A9A; }
.foot-legal { font-weight: 500; }
.foot-legal b { font-weight: 700; color: #222; }
.foot-biz { color: #8A8A8A; font-size: 12px; line-height: 1.6; word-break: keep-all; }

/* 첫 화면 · 분류 화면 */
.page { max-width: var(--col); margin: 0 auto; background: var(--paper); }
.page-head { padding: 32px 20px 20px; }
.page-head h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.page-head p { margin: 0; color: var(--soft); }
.page > .prose { padding: 0 20px 40px; }
.home-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 28px; }
.home-cat { display: block; padding: 16px; background: var(--ground); border-radius: 12px; text-decoration: none; }
.home-cat-name { display: block; font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.home-cat-intro { display: block; font-size: 13px; line-height: 1.55; color: var(--soft); }
.list { padding: 0 20px 48px; }
.list h2 { font-size: 20px; font-weight: 800; color: var(--mint-text); margin: 0 0 4px; }
.col-list { list-style: none; margin: 0; padding: 0; }
.col-list li { border-bottom: 1px solid var(--line); }
.col-list a { display: block; padding: 16px 0; text-decoration: none; }
.col-list-cat { display: block; font-size: 12px; color: var(--mint-text); font-weight: 800; }
.col-list-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.45; }
.col-list-sum { display: block; font-size: 14px; color: var(--soft); margin-top: 4px; }
.empty { color: var(--soft); padding: 16px 0; }
