/* 나때연감 — 시선 끌기, "그해 신문 1면" (docs/design-direction.md) */
:root {
  --bg: #F2EFE8;
  --bg-2: #E9E5DC;
  --card: #FBFAF6;
  --card-2: #F2EFE8;
  --ink: #222020;
  --ink-2: #47433F;
  --muted: #716C64;
  --line: #DAD4C8;
  --line-2: #C9C2B4;
  --red: #B23A26;
  --red-ink: #FFFFFF;
  --red-soft: #F3E3DE;
  --bar: #CFC8BA;
  --btn: #222020;
  --on-btn: #F2EFE8;
  --sheet-shadow: 0 8px 24px -12px rgba(0, 0, 0, .12);
  --radius: 12px;
  --radius-s: 10px;
  --tap: 48px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312; --bg-2: #22201D; --card: #1D1B19; --card-2: #141312;
    --ink: #EEE9E0; --ink-2: #CFC9BF; --muted: #9A948A; --line: #302D29; --line-2: #403C36;
    --red: #CF7B66; --red-ink: #141312; --red-soft: #33231F; --bar: #45413A; --btn: #EEE9E0; --on-btn: #141312;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141312; --bg-2: #22201D; --card: #1D1B19; --card-2: #141312;
  --ink: #EEE9E0; --ink-2: #CFC9BF; --muted: #9A948A; --line: #302D29; --line-2: #403C36;
  --red: #CF7B66; --red-ink: #141312; --red-soft: #33231F; --bar: #45413A; --btn: #EEE9E0; --on-btn: #141312;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-s); z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }
.serif { font-family: var(--serif); }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark { width: 24px; height: 24px; flex: none; }
.logo small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- hero (지면 머리) ---------- */
.hero { padding: 28px 0 8px; }
.eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; letter-spacing: .02em; }
.hero h1 { font-family: var(--serif); font-size: 28px; line-height: 1.35; letter-spacing: -0.03em; margin: 18px 0 10px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field > span small { font-weight: 500; font-size: 12px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input, .select {
  width: 100%; min-height: var(--tap); padding: 0 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: var(--card-2); font-size: 16px; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23887E6C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus, .select:focus { border-color: var(--red); outline: none; }
.year-input { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 0.02em; text-align: center; min-height: 60px; }
.err { color: var(--red); font-size: 14px; font-weight: 500; min-height: 1.2em; margin: -6px 0 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--red); color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-s); border: 1px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:active { transform: scale(.99); }
.btn-primary { background: var(--btn); color: var(--on-btn); width: 100%; min-height: 52px; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 40px; font-size: 14px; padding: 0 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }

/* ---------- year nav ---------- */
.result { padding-top: 8px; }
.yearnav { position: sticky; top: 56px; z-index: 15; background: var(--bg); margin: 0 -16px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.yearnav-in { display: flex; align-items: center; gap: 8px; }
.yn-btn { flex: none; width: 44px; height: 44px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.yn-btn:disabled { opacity: .35; cursor: default; }
.yn-btn svg { width: 20px; height: 20px; }
.reel { flex: 1; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; padding: 2px; }
.reel::-webkit-scrollbar { display: none; }
.reel button { flex: none; scroll-snap-align: center; min-width: 52px; height: 40px; border-radius: 999px; border: 0; background: transparent; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.reel button.is-mine { color: var(--red); font-weight: 700; }
.reel button[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }

/* ---------- 일력 card (우표 절취선만 장식) ---------- */
.ilryeok { position: relative; margin: 18px 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 4px 4px var(--radius) var(--radius); overflow: hidden; touch-action: pan-y; }
.ilryeok::before { content: ""; display: block; height: 14px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14'%3E%3Cpath fill-rule='evenodd' d='M0 0h18v14H0z M9 3a4 4 0 1 0 0 8a4 4 0 1 0 0-8z'/%3E%3C/svg%3E") 0 0 / 18px 14px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14'%3E%3Cpath fill-rule='evenodd' d='M0 0h18v14H0z M9 3a4 4 0 1 0 0 8a4 4 0 1 0 0-8z'/%3E%3C/svg%3E") 0 0 / 18px 14px repeat-x; }
.il-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.il-year { text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(88px, 28vw, 150px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.il-year.anim { animation: flip .3s ease-out; }
@keyframes flip { from { transform: translateY(-6px); opacity: .2; } to { transform: none; opacity: 1; } }
.il-sub { text-align: center; font-size: 16px; font-weight: 700; color: var(--red); margin: 4px 0 2px; }
.il-who { text-align: center; color: var(--ink-2); font-size: 14px; margin: 0 16px 14px; }
.il-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.il-meta div { padding: 12px 8px; text-align: center; border-right: 1px solid var(--line); min-width: 0; }
.il-meta div:last-child { border-right: 0; }
.il-meta dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.il-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.swipe-hint { text-align: center; font-size: 12px; color: var(--muted); margin: -4px 0 10px; }

/* ---------- section cards (지면 꼭지) ---------- */
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.sec-h h2 { font-family: var(--serif); font-size: 20px; margin: 0; letter-spacing: -0.02em; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sec-h h2 .ico { width: 20px; height: 20px; color: var(--muted); }
.sec-h h2 .tag { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 12px; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 4px; padding: 0 6px; letter-spacing: .06em; line-height: 1.6; }
.sec-h .note { font-size: 12px; color: var(--muted); }
.sec p.desc { margin: -4px 0 12px; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); font-size: 14px; background: var(--card-2); border-radius: var(--radius-s); padding: 12px 14px; margin: 0; }

.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.news li:last-child { border-bottom: 0; }
.news .mo { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; border: 1px solid var(--line); border-radius: 4px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.news .txt { font-weight: 500; }
.news .when { display: inline-block; font-size: 12px; font-weight: 500; padding: 0 6px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; border: 1px solid var(--line-2); color: var(--muted); }
.when.after { color: var(--red); border-color: var(--red); }
.news-group + .news-group { margin-top: 14px; }
.news-group h3 { font-family: var(--serif); font-size: 14px; color: var(--ink-2); margin: 0 0 2px; font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .sec { margin: 0; } }
.grid2 { margin: 14px 0; }
.grid2 > .sec { margin: 0; }
.grid2 > [hidden] { display: none; }

.tape { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tape:last-child { border-bottom: 0; }
.tape-ic { width: 40px; height: 28px; border-radius: 4px; border: 1.5px solid var(--ink-2); position: relative; flex: none; }
.tape-ic::before, .tape-ic::after { content: ""; position: absolute; top: 8px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.tape-ic::before { left: 6px; } .tape-ic::after { right: 6px; }
.tape b { display: block; font-size: 16px; line-height: 1.35; }
.tape span { color: var(--muted); font-size: 14px; }
.ticket { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.ticket .stub { border-right: 1px dashed var(--line-2); color: var(--muted); font-weight: 700; writing-mode: vertical-rl; text-orientation: mixed; padding: 10px 6px; font-size: 12px; letter-spacing: .1em; }
.ticket .body { padding: 12px 14px; min-width: 0; }
.ticket b { font-family: var(--serif); font-size: 20px; display: block; }
.ticket span { color: var(--muted); font-size: 14px; }

/* stats */
.big-stat { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.big-stat small { font-size: 16px; font-weight: 500; color: var(--muted); }
.callout { margin: 10px 0 0; border-left: 2px solid var(--red); color: var(--ink); padding: 4px 0 4px 12px; font-weight: 500; }
.callout b { color: var(--red); font-size: 20px; font-weight: 700; }
.callout.plain { border-left-color: var(--ink); }
.callout.plain b { color: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.kv div { border-bottom: 1px solid var(--line); padding: 10px 4px; }
.kv div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv div:nth-child(even) { padding-left: 12px; }
.kv dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 700; font-size: 16px; }
.chart { margin-top: 14px; }
.chart svg { display: block; width: 100%; height: 96px; }
.chart .axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.src { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* prices */
.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.prices li { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; min-width: 0; }
.prices .pl { font-size: 12px; color: var(--muted); font-weight: 500; }
.prices .pv { font-size: 20px; font-weight: 700; margin-top: 2px; }
.prices .pn { font-size: 12px; color: var(--muted); }
.prices .na .pv { color: var(--muted); font-size: 14px; font-weight: 500; }
.machine { margin-top: 14px; border: 1px solid var(--ink); border-radius: var(--radius); padding: 14px; background: var(--card); }
.machine h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.machine .then-now { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.machine .then-now span { color: var(--red); }
.buy { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.buy li { border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }

.names { display: flex; gap: 10px; flex-wrap: wrap; }
.name-chip { padding: 8px 14px; border-radius: var(--radius-s); font-family: var(--serif); font-weight: 700; font-size: 20px; border: 1px solid var(--line-2); }
.name-chip small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 12px; color: var(--muted); font-weight: 500; margin-right: 4px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.people li { list-style: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; }
.people b { display: block; } .people span { font-size: 12px; color: var(--muted); }
.people { padding: 0; margin: 0; }

/* share */
.share-sec { text-align: center; }
.share-sec canvas { width: 100%; max-width: 300px; aspect-ratio: 1080/1350; border-radius: var(--radius); border: 1px solid var(--line); display: block; margin: 4px auto 14px; background: var(--card-2); }

/* quiz */
.quiz-q { font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.quiz-progress { font-size: 12px; color: var(--muted); font-weight: 500; }
.opts { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.opt { min-height: var(--tap); border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--card); font-weight: 500; cursor: pointer; padding: 8px 10px; text-align: center; }
.opt:hover:not(:disabled) { border-color: var(--ink-2); }
.opt.ok { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 700; }
.opt.no { border-color: var(--red); color: var(--red); text-decoration: line-through; }
.opt:disabled { cursor: default; }
.quiz-fb { min-height: 1.5em; font-weight: 700; margin: 10px 0 0; }
.quiz-done { text-align: center; }
.quiz-done .score { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--red); }

/* compare */
.cmp-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.cmp-table thead th { font-family: var(--serif); font-size: 20px; font-weight: 700; border-bottom-color: var(--ink); }
.cmp-table thead th:first-child, .cmp-table tbody th { font-family: inherit; font-size: 12px; color: var(--muted); font-weight: 500; width: 24%; }
.cmp-table .me { color: var(--red); }
.cmp-sum { margin-top: 12px; }

/* family */
.fam-form { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; }
.fam-list { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; position: relative; }
.fam-list::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.fam-list li { position: relative; padding: 0 0 16px 10px; }
.fam-list li::before { content: ""; position: absolute; left: -16px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--red); }
.fam-list .fy { font-family: var(--serif); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.fam-list .fn { font-weight: 700; margin-left: 6px; }
.fam-list .gap { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.fam-list .fd { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.fam-list .rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; min-height: 32px; padding: 0 4px; }
.fam-list .between { padding: 0 0 14px 10px; font-size: 12px; color: var(--muted); }
.fam-list .between::before { display: none; }

/* next tests */
.block-title { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -0.02em; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }


.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--sheet-shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* doc pages */
.doc h1 { font-family: var(--serif); font-size: 28px; letter-spacing: -0.03em; margin: 28px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.doc h2 { font-family: var(--serif); font-size: 20px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }

@media (min-width: 720px) {
  .hero { padding-top: 44px; }
  .form-card { padding: 20px; }
  .sec { padding: 20px; }
}
@media (max-width: 380px) {
  .fam-form { grid-template-columns: 1fr 92px; }
  .fam-form .btn { grid-column: 1 / -1; }
  .prices { grid-template-columns: 1fr 1fr; }
}


/* ===== v3: 그해 신문 1면 ===== */
.logo { font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.front { border-bottom: 1px solid var(--line); }
.fp { padding-top: 20px; padding-bottom: 20px; }
.fp-mast { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; letter-spacing: 0; }
.fp-yearrow { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; margin: 6px 0 0; }
.fp-year { font-family: var(--serif); font-weight: 900; font-size: 88px; line-height: 1; letter-spacing: -.04em; text-align: center; background: none; border: 0; padding: 6px 0 2px; cursor: pointer; color: var(--ink); border-radius: 8px; }
.fp-year:hover { color: var(--red); }
.fp-year.flip-up { animation: flipUp .32s ease-out; }
.fp-year.flip-down { animation: flipDown .32s ease-out; }
@keyframes flipUp { from { transform: translateY(18%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes flipDown { from { transform: translateY(-18%); opacity: .2; } to { transform: none; opacity: 1; } }
.yn-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.yn-btn:disabled { opacity: .3; cursor: default; }
.yn-btn svg { width: 20px; height: 20px; }
.fp-dateline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: 14px; font-weight: 700; color: var(--red); text-align: center; }
.fp-dateline .dot { color: var(--muted); }
.fp-dateline #ilAge { color: var(--ink-2); font-weight: 500; }
.ex-tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.front .il-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); margin: 0; }
.front .il-meta div { padding: 10px 6px; text-align: center; border-right: 1px solid var(--line-2); }
.front .il-meta div:last-child { border-right: 0; }
.front .il-meta dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.front .il-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.fp-cols { display: grid; grid-template-columns: 1fr; border-bottom: 3px double var(--ink); }
.fp-col { padding: 14px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.fp-col:last-child { border-bottom: 0; }
.fp-kicker { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--red); margin: 0 0 6px; letter-spacing: 0; }
.fp-col .fp-kicker + .fp-list + .fp-kicker, .fp-col .fp-list + .fp-kicker { margin-top: 14px; }
.fp-head { font-family: var(--serif); font-weight: 900; font-size: 22px; line-height: 1.35; letter-spacing: -.03em; margin: 0 0 8px; }
.fp-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.fp-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.fp-list li:first-child { border-top: 0; padding-top: 0; }
.fp-list .mo { display: inline-block; min-width: 34px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fp-list b { font-family: var(--serif); font-weight: 700; }
.fp-prices li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fp-prices .k { color: var(--ink-2); }
.fp-prices .k small { color: var(--muted); font-size: 12px; }
.fp-prices b { font-family: var(--serif); font-weight: 900; font-size: 18px; white-space: nowrap; }
.fp-movie { margin: 0; font-size: 14px; }
.fp-movie b { font-family: var(--serif); font-size: 16px; }
.none { color: var(--muted); font-size: 14px; }
.front .reel { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 0 2px; scrollbar-width: none; }
.front .reel::-webkit-scrollbar { display: none; }
.front .reel button { flex: none; min-width: 52px; height: 36px; border: 0; background: none; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.front .reel button[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
.front .reel button.is-mine { color: var(--red); font-weight: 700; }
.front .reel button.is-mine[aria-current="true"] { color: var(--bg); }
.front .swipe-hint { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.open { padding: 28px 0 8px; }
.open .desc { margin: -4px 0 14px; color: var(--ink-2); font-size: 14px; }
.block-title { font-family: var(--serif); font-weight: 900; }
.result { padding-top: 20px; }


/* 광고: 공용 .jl-ad(../common/ads.css). 해를 넘길 때마다 칸을 새로 그린다. 버튼·입력과 150px 넘게 띄운다 */
.jl-ad { margin: 56px auto; }
.jl-ad.gap-t { margin-top: 150px; }
.jl-ad.gap-b { margin-bottom: 120px; }
.jl-ad.ad-end { margin-bottom: 124px; }

@media (min-width: 720px) {
  .fp-cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .fp-col { border-bottom: 0; padding: 16px 18px; border-left: 1px solid var(--line-2); }
  .fp-col:first-child { border-left: 0; padding-left: 0; }
  .fp-col:last-child { padding-right: 0; }
  .fp-head { font-size: 26px; }
}
@media (min-width: 1000px) {
  .wrap { max-width: 1040px; }
}
[hidden] { display: none !important; }

/* 서비스 안내 글 (정적 HTML, 앱 아래) */
.svc-guide { margin-top: 56px; padding-top: 32px; padding-bottom: 8px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; color: var(--ink); }
.svc-guide > * { max-width: 720px; }
.svc-guide h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 8px; }
.svc-guide h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 32px 0 8px; }
.svc-guide p, .svc-guide ul, .svc-guide ol { margin: 0 0 12px; }
.svc-guide ul, .svc-guide ol { padding-left: 20px; }
.svc-guide li { margin: 4px 0; }
.svc-guide .lead, .svc-guide .note { color: var(--muted); }
.svc-guide .note { font-size: 14px; }
.svc-guide a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.svc-faq details { border-bottom: 1px solid var(--line); }
.svc-faq details:first-child { border-top: 1px solid var(--line); }
.svc-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 500; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.svc-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.svc-faq details p { margin: 0 0 16px; }
