/* 시치미 안내 페이지 공통 (소개·규칙·공략·자주 묻는 질문·업데이트).
   앱과 같은 톤: 흰 바탕 + 검은 잉크 선 + 코랄 한 방울. 제목만 앱의 굵은 글꼴, 본문은 기기 글꼴(빨리 뜨게). */
@font-face {
  font-family: "Rix";
  src: url("/assets/assets/fonts/RixInooAriDuri_Pro.otf") format("opentype");
  font-display: swap;
}
:root {
  --ink: #141414;
  --soft: #5a5a5a;
  --muted: #8b877e;
  --line: #dddad2;
  --panel: #f2f2f2;
  --coral: #ff5a36;
  --paper: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ── 상단 ── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid var(--ink);
}
.top-in { max-width: 760px; margin: 0 auto; padding-inline: 16px; display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { font-family: "Rix", sans-serif; font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: 0.01em; }
.play {
  margin-left: auto; text-decoration: none; background: var(--ink); color: #fff;
  font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.play:hover { background: #000; }
.tabs { max-width: 760px; margin: 0 auto; padding-inline: 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--soft);
  padding: 10px 4px 11px; margin-right: 12px; border-bottom: 3px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--coral); }

/* ── 본문 ── */
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--coral); letter-spacing: 0.06em; margin: 0 0 6px; }
h1 { font-family: "Rix", sans-serif; font-weight: 400; font-size: clamp(34px, 8vw, 52px); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.lede { font-size: 18px; color: var(--soft); margin: 0 0 8px; max-width: 34em; }
h2 { font-size: 21px; line-height: 1.35; margin: 44px 0 12px; padding-top: 14px; border-top: 2px solid var(--ink); text-wrap: balance; }
h3 { font-size: 17px; margin: 26px 0 6px; }
p { margin: 0 0 14px; max-width: 40em; }
ul, ol { padding-left: 22px; margin: 0 0 16px; max-width: 40em; }
li { margin-bottom: 6px; }
strong { font-weight: 800; }
.note { font-size: 14px; color: var(--muted); }
kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--ink); border-bottom-width: 3px; border-radius: 6px; padding: 1px 6px; background: #fff;
}
.num { font-variant-numeric: tabular-nums; }

/* 버튼 이름을 앱처럼 알약으로 */
.btn { display: inline-block; font-size: 13px; font-weight: 800; line-height: 1; padding: 5px 9px 6px; border-radius: 999px; background: var(--ink); color: #fff; vertical-align: 2px; }
.btn.coral { background: var(--coral); }

/* 한 판 흐름 */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; max-width: none; }
.flow li { margin: 0; background: var(--panel); border-radius: 14px; padding: 12px 12px 10px; }
.flow b { display: block; font-size: 15px; }
.flow span { display: block; font-size: 13px; color: var(--soft); line-height: 1.45; margin-top: 2px; }
.flow li.hot { background: var(--ink); color: #fff; }
.flow li.hot span { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 620px) { .flow { grid-template-columns: 1fr 1fr; } .flow li:last-child { grid-column: 1 / -1; } }

/* 숫자 표 */
.facts { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; font-weight: 700; color: var(--soft); }
.facts td { font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

/* 화면 캡처 */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 22px; background: #fff; }
.shots figcaption { font-size: 13px; color: var(--soft); margin-top: 8px; line-height: 1.5; }
.shots figcaption b { color: var(--ink); }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr 1fr; } }

/* 카드 묶음 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--panel); border-radius: 16px; padding: 16px 18px; }
.card b { display: block; font-size: 16px; margin-bottom: 4px; }
.card p { font-size: 14.5px; color: var(--soft); margin: 0; line-height: 1.6; }

/* 자주 묻는 질문 */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; font-size: 16.5px; padding: 12px 28px 12px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p, details ul { font-size: 15.5px; color: var(--soft); }

/* 업데이트 노트 */
.log { border-left: 2px solid var(--ink); padding-left: 18px; margin: 18px 0; }
.log h3 { margin-top: 0; }
.log time { display: block; font-size: 13px; font-weight: 800; color: var(--coral); margin-bottom: 2px; }

/* 아래로 이어지는 안내 */
.next { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.next a { text-decoration: none; font-weight: 800; font-size: 15px; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 16px; }
.next a.primary { background: var(--ink); color: #fff; }

/* ── 바닥 ── */
footer { border-top: 1px solid var(--line); background: var(--panel); }
.foot { max-width: 760px; margin: 0 auto; padding: 22px 16px 36px; font-size: 13.5px; color: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { text-decoration: none; font-weight: 700; color: var(--ink); }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
