/* 슬롯머신 FYI 스킨 — 매거진. 크림 바탕, 버건디·골드, 큰 활자, 세리프 숫자 */
:root {
	--bg: #fbf8f2;
	--surface: #ffffff;
	--surface-2: #f2ebdf;
	--ink: #1b1412;
	--ink-2: #4e443d;
	--ink-3: #7c7066;
	--line: #e7ddcc;
	--brand: #7a1531;
	--brand-ink: #ffffff;
	--brand-soft: #f7e9ed;
	--accent: #c2410c;
	--gold: #c99000;
	--ok: #2f6f4f;
	--font-num: "Playfair Display", Georgia, serif;
	--radius: 6px;
	--radius-lg: 10px;
	--shadow-lg: 0 18px 44px rgba(27, 20, 18, .14);
	--footer-bg: #1b1412;
	--footer-mark: #c99000;
}
.topbar { display: none; }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 2px solid var(--ink); }
.brand-mark { color: var(--brand); }
.brand-name { font-weight: 900; letter-spacing: -0.03em; font-size: 20px; }
.brand-en { font-family: var(--font-num); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 13px; }
.gnav-list a { font-weight: 700; color: var(--ink); }
.gnav-list a:hover { background: transparent; color: var(--brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.eyebrow { font-family: var(--font-num); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 700; color: var(--brand); }
.sec-title { font-weight: 900; letter-spacing: -0.04em; }
.page-title, .article-title { font-weight: 900; letter-spacing: -0.04em; }
.page-head { background: var(--bg); border-bottom: 2px solid var(--ink); }
.card { border-radius: 0; border: 0; border-top: 3px solid var(--ink); background: transparent; }
.card:hover { box-shadow: none; transform: none; }
.card-media { border-radius: 0; }
.card-body { padding: 16px 0 0; }
.card-title { font-size: 20px; font-weight: 800; }
.card-cat { color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.prose h2 { font-weight: 900; letter-spacing: -0.03em; }
.prose h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--brand); margin-bottom: 14px; }
.summary-box { background: var(--ink); color: #f5efe6; border-radius: 0; }
.summary-box .box-title { color: var(--gold); }
.summary-box li::marker { color: var(--gold); }
.stats strong { font-size: 34px; color: var(--brand); }
.stats > div { background: var(--surface); border-radius: 0; border: 0; border-top: 3px solid var(--brand); }
.callout.note { background: var(--brand-soft); }
.checks li { background: var(--surface); border-radius: 0; }
.related { background: var(--surface-2); }
.section-alt { background: var(--surface-2); }
.btn { border-radius: 2px; }
.btn-brand { background: var(--brand); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--brand); }
.page-numbers { border-radius: 0; }

/* 첫 화면 머리 */
.mh { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; background: #120b0a; overflow: hidden; }
.mh-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mh::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,11,10,.92) 0%, rgba(18,11,10,.7) 45%, rgba(18,11,10,.15) 100%), linear-gradient(0deg, rgba(18,11,10,.8), transparent 45%); }
.mh-in { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 72px; }
.mh-kicker { display: flex; gap: 16px; align-items: center; font-family: var(--font-num); font-style: italic; font-size: 18px; color: #e8c467; margin-bottom: 22px; }
.mh-kicker span + span { font-family: var(--font-body); font-style: normal; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.7); padding-left: 16px; border-left: 1px solid rgba(255,255,255,.3); }
.mh-title { font-size: clamp(38px, 5.4vw, 72px); font-weight: 900; line-height: 1.12; letter-spacing: -0.045em; color: #fff; }
.mh-title em { font-style: normal; color: #e8c467; }
.mh-lead { margin-top: 26px; max-width: 600px; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.82); }
.mh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mh .btn-brand { background: #e8c467; color: #1b1412; }
.mh .btn-brand:hover { color: #1b1412; }
@media (max-width: 760px) { .mh { min-height: 560px; } .mh-in { padding-top: 64px; padding-bottom: 48px; } }

/* 숫자 띠 */
.numbers { background: var(--ink); color: #f5efe6; }
.numbers-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers-in > div { padding: 34px 24px 30px; border-left: 1px solid rgba(255,255,255,.12); }
.numbers-in > div:first-child { border-left: 0; padding-left: 0; }
.numbers strong { display: block; font-family: var(--font-num); font-size: clamp(34px, 4vw, 52px); font-weight: 900; color: #e8c467; line-height: 1; }
.numbers span { display: block; margin-top: 12px; font-size: 14px; color: rgba(245,239,230,.72); line-height: 1.55; }
@media (max-width: 860px) { .numbers-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers-in > div:nth-child(3) { border-left: 0; padding-left: 0; } .numbers-in > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); } }

/* 표지 기사 */
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
.cover-main { display: block; color: inherit; }
.cover-main:hover { color: inherit; }
.cover-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cover-main:hover .cover-img img { transform: scale(1.03); }
.cover-body { display: block; padding-top: 20px; }
.cover-cat { display: block; font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .04em; margin-bottom: 8px; }
.cover-title { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.3; letter-spacing: -0.035em; }
.cover-main:hover .cover-title { color: var(--brand); }
.cover-ex { display: block; margin-top: 12px; color: var(--ink-2); line-height: 1.7; }
.cover-side { display: grid; gap: 0; align-content: start; border-top: 3px solid var(--ink); }
.cover-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; }
.cover-item:hover { color: inherit; }
.cover-item:hover .ci-title { color: var(--brand); }
.ci-no { font-family: var(--font-num); font-size: 34px; font-weight: 900; color: var(--gold); line-height: 1; }
.ci-title { display: block; font-size: 19px; font-weight: 800; line-height: 1.4; }
.ci-ex { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 960px) { .cover-grid { grid-template-columns: minmax(0, 1fr); } }

/* 해부도 */
.anat-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.anat-list { list-style: none; margin: 28px 0 22px; padding: 0; display: grid; gap: 14px; }
.anat-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.anat-list b { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-size: 15px; }
.anat-list strong { display: block; font-size: 16px; }
.anat-list span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.machine { position: relative; max-width: 360px; margin: 0 auto; width: 100%; background: linear-gradient(180deg, #8d1c3c, #5c0f24); border-radius: 26px 26px 14px 14px; padding: 18px 18px 22px; box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255,255,255,.2); }
.m-top { text-align: center; padding: 10px; margin-bottom: 14px; border-radius: 12px; background: #1b1412; font-family: var(--font-num); font-style: italic; color: #e8c467; letter-spacing: .08em; font-size: 14px; }
.m-screen { position: relative; background: #fffaf0; border-radius: 10px; padding: 12px; border: 4px solid #e8c467; }
.m-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-reels i { font-style: normal; display: grid; place-items: center; height: 64px; background: #fff; border-radius: 6px; box-shadow: inset 0 -6px 10px rgba(0,0,0,.06); font-family: var(--font-num); font-weight: 900; font-size: 30px; color: var(--brand); }
.m-line { position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: rgba(201,144,0,.85); transform: translateY(-50%); border-radius: 2px; }
.m-panel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #1b1412; color: #e8c467; font-family: var(--font-num); font-size: 14px; }
.m-btn { width: 54px; height: 26px; border-radius: 13px; background: linear-gradient(#e8c467, #b98400); box-shadow: 0 3px 0 #7a5a00; }
.m-tag { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #1b1412; color: #fff; border: 2px solid #e8c467; display: grid; place-items: center; font-size: 12px; font-weight: 800; font-family: var(--font-body); z-index: 2; }
.m-panel .m-tag { position: static; }
.m-credit { display: inline-flex; align-items: center; gap: 6px; }
.t1 { left: -14px; top: 6px; } .t2 { right: -14px; top: 6px; } .t3 { right: -14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 960px) { .anat-in { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* RTP × 변동성 */
.matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.mx { padding: 28px 28px 30px 0; }
.mx + .mx { padding-left: 28px; border-left: 1px solid var(--line); }
.mx-tag { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 2px; background: var(--surface-2); color: var(--ink-2); }
.mx-high .mx-tag { background: var(--brand); color: #fff; }
.mx-rtp .mx-tag { background: #e8c467; color: var(--ink); }
.mx strong { display: block; margin: 16px 0 10px; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.mx p { color: var(--ink-2); }
@media (max-width: 860px) { .matrix { grid-template-columns: minmax(0, 1fr); } .mx, .mx + .mx { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* 주제 */
.topic { border-top: 3px solid var(--ink); padding-top: 16px; }
.topic-head { display: block; margin-bottom: 12px; color: inherit; }
.topic-head strong { display: block; font-size: 20px; font-weight: 900; }
.topic-head span { font-size: 13.5px; color: var(--ink-3); }
.topic-head:hover strong { color: var(--brand); }
.topic ul { list-style: none; margin: 0; padding: 0; }
.topic li { border-top: 1px solid var(--line); }
.topic li a { display: block; padding: 11px 0; font-size: 15px; font-weight: 600; line-height: 1.5; }

/* 원칙 */
.principles { background: var(--brand); color: #fff; }
.pr-in { display: grid; gap: 32px; justify-items: start; }
.pr-quote { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.5; letter-spacing: -0.03em; max-width: 900px; }
.pr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; border-top: 1px solid rgba(255,255,255,.3); padding-top: 24px; }
.pr-list strong { display: block; color: #e8c467; font-size: 17px; margin-bottom: 6px; }
.pr-list span { color: rgba(255,255,255,.8); font-size: 15px; }
.principles .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.principles .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 760px) { .pr-list { grid-template-columns: minmax(0, 1fr); } }

/* RTP 계산기 */
.tool { margin: 1.6em 0; border: 2px solid var(--ink); background: var(--surface); }
.tool-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; background: var(--ink); color: #f5efe6; }
.tool-badge { font-family: var(--font-num); font-style: italic; color: #e8c467; }
.tool-name { font-weight: 800; }
.tool-body { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.tool-form { padding: 20px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.tool-out { padding: 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 860px) { .tool-body { grid-template-columns: minmax(0, 1fr); } .tool-form { border-right: 0; border-bottom: 1px solid var(--line); } }
.tool-field { display: grid; gap: 6px; }
.tool-field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tool input, .tool select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.tool input:focus, .tool select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tool-help { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpis > div { padding: 14px 16px; border-top: 3px solid var(--brand); background: var(--bg); }
.kpis strong { display: block; font-family: var(--font-num); font-size: 26px; font-weight: 900; }
.kpis span { display: block; font-size: 12.5px; color: var(--ink-3); }
.tool .table-wrap { margin: 0; }
.tool .tbl tr.hl td { background: var(--brand-soft); font-weight: 700; }

/* 표·목차 숫자는 본문 글꼴의 고정폭 숫자 (세리프 숫자는 큰 장식 숫자에만) */
.prose td.num, .prose th.num, .tbl .num, .toc a::before, .tool input { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
