/* 윈도우고 리포트 스킨 — 데이터 대시보드. 기본 어두운 화면, 밝은 화면 전환 지원 */
:root, [data-theme="dark"] {
	--bg: #0a0f1c;
	--surface: #0f172a;
	--surface-2: #18233d;
	--ink: #e8edf7;
	--ink-2: #a7b2c8;
	--ink-3: #7b87a1;
	--line: #1f2b47;
	--brand: #38bdf8;
	--brand-ink: #03131f;
	--brand-soft: rgba(56, 189, 248, .10);
	--accent: #fb7185;
	--ok: #4ade80;
	--lime: #a3e635;
	--card-red: #fb7185;
	--glow: 0 0 0 1px rgba(56,189,248,.25), 0 10px 40px rgba(56,189,248,.12);
	--shadow-lg: 0 16px 48px rgba(0, 0, 0, .45);
	--footer-bg: #060a14;
	--font-num: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--radius: 10px;
	--radius-lg: 14px;
	color-scheme: dark;
}
[data-theme="light"] {
	--bg: #f6f8fc;
	--surface: #ffffff;
	--surface-2: #eaf0f8;
	--ink: #0b1220;
	--ink-2: #3b4a64;
	--ink-3: #66738c;
	--line: #dbe3ef;
	--brand: #0369a1;
	--brand-ink: #ffffff;
	--brand-soft: #e0f2fe;
	--accent: #e11d48;
	--ok: #15803d;
	--lime: #65a30d;
	--card-red: #c62828;
	--glow: 0 0 0 1px rgba(3,105,161,.18), 0 10px 30px rgba(3,105,161,.10);
	--shadow-lg: 0 12px 36px rgba(11, 18, 32, .12);
	--footer-bg: #0b1220;
	color-scheme: light;
}
body { background: var(--bg); }
.topbar { background: #050912; color: #8fa0bf; border-bottom: 1px solid var(--line); }
[data-theme="light"] .topbar { background: #0b1220; }
.site-header { background: color-mix(in srgb, var(--bg) 85%, transparent); }
.brand-mark { color: var(--brand); }
.brand-name { font-weight: 800; letter-spacing: -0.02em; }
.gnav-list a:hover { background: var(--surface-2); }
.icon-btn:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-brand { box-shadow: 0 6px 20px rgba(56,189,248,.25); }
.eyebrow { font-family: var(--font-num); font-weight: 700; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.card { background: var(--surface); }
.card:hover { box-shadow: var(--glow); }
.card-meta, .article-meta { font-family: var(--font-num); font-size: 12.5px; }
.page-head { background: var(--surface) radial-gradient(circle at 85% -20%, rgba(56,189,248,.16), transparent 50%); }
.summary-box { background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--brand); }
.summary-box li::marker { color: var(--brand); }
.prose h2 { padding-top: .2em; }
.prose h2::before { content: "## "; font-family: var(--font-num); font-size: .7em; color: var(--brand); vertical-align: .15em; }
.prose thead th { font-family: var(--font-num); font-size: 12.5px; letter-spacing: .02em; }
.table-wrap { background: var(--surface); }
.stats > div { background: var(--surface); box-shadow: inset 0 2px 0 var(--brand); }
.checks li { background: var(--surface); }
.faq summary::after { border-color: var(--ink-3); }
.pc { background: var(--surface); border-color: var(--line); }
.related { background: var(--surface); }
.section-alt { background: var(--surface); }
.site-footer { border-top: 1px solid var(--line); }
.tags a { background: var(--surface-2); }

/* 첫 화면 머리 */
.wh { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #060a14; color: #e8edf7; }
.wh-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% center; opacity: .55; }
.wh::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
	linear-gradient(90deg, #060a14 22%, rgba(6,10,20,.75) 55%, rgba(6,10,20,.35)),
	linear-gradient(rgba(56,189,248,.06) 1px, transparent 1px) 0 0 / 100% 40px,
	linear-gradient(90deg, rgba(56,189,248,.06) 1px, transparent 1px) 0 0 / 40px 100%; }
.wh-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.wh .eyebrow { color: #7dd3fc; }
.wh-title { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.2; letter-spacing: -0.035em; color: #fff; }
.wh-title em { font-style: normal; color: #38bdf8; background: linear-gradient(transparent 62%, rgba(56,189,248,.22) 62%); }
.wh-lead { margin-top: 22px; font-size: 18px; color: #b6c2d9; max-width: 560px; line-height: 1.75; }
.wh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wh .btn-brand { background: #38bdf8; color: #03131f; }
.wh .btn-ghost { color: #e8edf7; border-color: rgba(255,255,255,.22); }
.wh .btn-ghost:hover { border-color: #38bdf8; color: #38bdf8; }
.panel { background: rgba(10, 16, 30, .82); border: 1px solid rgba(56,189,248,.22); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; color: #7b87a1; }
.panel-dots { display: inline-flex; gap: 5px; }
.panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: #24324f; }
.panel-dots i:first-child { background: #fb7185; } .panel-dots i:nth-child(2) { background: #fbbf24; } .panel-dots i:nth-child(3) { background: #4ade80; }
.panel-live { margin-left: auto; color: #4ade80; }
.panel-kpis { display: grid; grid-template-columns: 1fr 1fr; }
.panel-kpis > div { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.panel-kpis > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.07); }
.k-label { display: block; font-size: 12px; color: #8fa0bf; }
.panel-kpis strong { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.panel-kpis small { font-size: 15px; color: #38bdf8; margin-left: 2px; }
.k-sub { font-family: var(--font-num); font-size: 11px; color: #5f6e8c; }
.panel-chart { padding: 14px 18px 18px; }
.panel-sub { font-size: 12px; color: #8fa0bf; margin-bottom: 10px; }
.pc-row { display: grid; grid-template-columns: 112px 1fr 64px; gap: 10px; align-items: center; font-size: 12px; padding: 4px 0; color: #b6c2d9; }
.pc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-bar { height: 6px; border-radius: 3px; background: #18233d; overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.pc-val { font-family: var(--font-num); text-align: right; color: #e8edf7; }
@media (max-width: 960px) {
	.wh-in { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 64px; gap: 40px; }
	.wh::before { background: linear-gradient(180deg, rgba(6,10,20,.6), #060a14 60%); }
}
@media (max-width: 480px) { .panel-kpis strong { font-size: 24px; } .pc-row { grid-template-columns: 92px 1fr 58px; } }

/* 플랫폼 보드 */
.pf { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pf:hover { color: inherit; box-shadow: var(--glow); transform: translateY(-2px); border-color: transparent; }
.pf-top { display: flex; align-items: center; justify-content: space-between; }
.pf-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c, #3b82f6); }
.pf-op { font-family: var(--font-num); font-size: 11.5px; color: var(--ink-3); }
.pf-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pf-line { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.pf-games { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-games i { font-style: normal; font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.pf-dev { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--font-num); font-size: 12px; color: var(--ink-3); }

/* 하우스 엣지 보드 */
.edge-board { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.eb-row { display: grid; grid-template-columns: 48px minmax(150px, 1.1fr) 2fr 92px minmax(250px, 1fr); gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.eb-row:last-child { border-bottom: 0; }
.eb-rank { font-family: var(--font-num); font-size: 13px; color: var(--ink-3); }
.eb-name { font-weight: 700; }
.eb-track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.eb-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.eb-row:last-child .eb-track i { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.eb-val { font-family: var(--font-num); font-weight: 800; text-align: right; }
.eb-loss { font-family: var(--font-num); font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.edge-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
@media (max-width: 860px) {
	.eb-row { grid-template-columns: 34px minmax(0, 1fr) 80px; gap: 6px 12px; padding: 14px 16px; }
	.eb-track { grid-column: 2 / 4; grid-row: 2; }
	.eb-loss { grid-column: 2 / 4; grid-row: 3; text-align: left; }
}

/* 계산기 카드 */
.tcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.18), transparent 70%); }
.tcard:hover { color: inherit; box-shadow: var(--glow); transform: translateY(-2px); }
.tcard-no { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.tcard-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tcard-name { font-size: 20px; font-weight: 800; }
.tcard-desc { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.tcard-go { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; color: var(--brand); }

/* 리서치 원칙 */
.method { border-top: 1px solid var(--line); }
.m-item { padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.m-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--brand); margin-bottom: 14px; }
.m-item h3 { font-size: 18px; margin-bottom: 8px; }
.m-item p { color: var(--ink-2); font-size: 15px; }

/* 계산기 (tools.js) */
.tool { margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--glow); }
.tool-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tool-badge { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.tool-name { font-weight: 800; font-size: 16px; }
.tool-body { display: grid; grid-template-columns: minmax(0, 340px) 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-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-field > span, .tool-field legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.tool input[type="number"], .tool input[type="text"], .tool select { width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-family: var(--font-num); font-size: 15px; }
.tool input:focus, .tool select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.seg { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; cursor: pointer; font-size: 14px; }
.seg:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.seg input { accent-color: var(--brand); }
.tool-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-presets button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: var(--ink-2); }
.tool-presets button:hover { border-color: var(--brand); color: var(--brand); }
.tool-help { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.tool-help code { font-family: var(--font-num); }
.tool-run { width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpis > div { padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.kpis strong { display: block; font-family: var(--font-num); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.kpis strong.pos { color: var(--ok); } .kpis strong.neg { color: var(--accent); }
.kpis span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.kpis > div:first-child strong { color: var(--brand); }
.verdict { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.verdict b { color: var(--ink); font-family: var(--font-num); }
.tool .table-wrap { margin: 0; max-height: 360px; overflow: auto; background: var(--bg); }
.tool .tbl th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font-num); font-size: 12px; }
.tool .tbl td { font-size: 14px; padding: 8px 12px; }
.tool .tbl tr.hl td { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.eq-hands { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-3); }
.eq-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.eq-bar span { display: block; width: 0; transition: width .2s; }
.eq-bar .a { background: #38bdf8; } .eq-bar .t { background: #64748b; } .eq-bar .b { background: #fb7185; }
