@font-face {
  font-family: Pretendard;
  src: url("./fonts/pretendard-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff5e6;
  --sheet: #fffdf6;
  --ink: #3c2d25;
  --muted: #695548;
  --rule: #e6cdb1;
  --accent: #a4422b;
  --accent-soft: #fbe1ce;
  --leaf: #3e6446;
  --leaf-soft: #eef3dc;
  --tint: #fff0dc;
  --mono: "SFMono-Regular", Consolas, monospace;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 88px, 1152px); margin-inline: auto; }

.skip { position: fixed; z-index: 2; top: 10px; left: 10px; transform: translateY(-170%); padding: 10px 16px; background: var(--ink); color: var(--sheet); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 .91rem var(--mono); letter-spacing: -.06em; white-space: nowrap; }
.brand-accent { color: var(--accent); }
nav { display: flex; gap: clamp(16px, 3vw, 34px); }
nav a, .source-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); font-size: .87rem; font-weight: 680; }
nav a:hover, .source-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.09fr); align-items: center; gap: clamp(24px, 5vw, 64px); margin-top: 24px; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--rule); border-radius: 24px; background: linear-gradient(120deg, var(--sheet) 28%, #ffe9d1); }
.hero-copy { padding-block: 8px; }
.eyebrow, .section-index { display: flex; align-items: center; gap: 9px; color: var(--accent); font: 700 .68rem/1.5 var(--mono); letter-spacing: .12em; }
.eyebrow span { width: 8px; height: 8px; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
h1 { margin: 15px 0 14px; font-size: clamp(3.65rem, 7.5vw, 7.15rem); letter-spacing: -.086em; line-height: .92; font-weight: 870; }
h1 em { color: var(--accent); font-style: normal; }
.intro { max-width: 32ch; color: var(--muted); font-size: clamp(.94rem, 1.5vw, 1.1rem); line-height: 1.67; word-break: keep-all; }
.snapshot { display: inline-flex; align-items: center; gap: 8px; margin-top: 19px; padding: 6px 10px; border: 1px solid #d3dfba; border-radius: 8px; background: var(--leaf-soft); color: var(--leaf); font: 650 .72rem/1.45 var(--mono); }
.snapshot i { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.snapshot.is-stale { border-color: var(--rule); background: var(--accent-soft); color: var(--accent); }
.snapshot.is-stale i { background: var(--accent); }
.hero-figure { display: grid; padding: 12px; border: 1px solid #e4bc94; border-radius: 18px; background: #fff9ee; box-shadow: 0 4px 0 #eacba877; }
.hero-figure .figure-label, .hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font: 700 .64rem/1.5 var(--mono); letter-spacing: .1em; }
.hero-figure .figure-label { padding: 0 3px 8px; }
.hero-figure figcaption { padding: 8px 3px 0; }
.hero-figure figcaption span:last-child { color: var(--accent); letter-spacing: 0; }
.hero-art { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff0ce; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.kpi { padding: 15px 18px 16px; border: 1px solid var(--rule); border-radius: 15px; background: var(--sheet); }
.kpi:nth-child(2) { background: #fff0dc; }
.kpi:nth-child(3) { border-color: #d3dfba; background: var(--leaf-soft); }
.kpi dt { color: var(--muted); font-size: .82rem; font-weight: 720; }
.kpi dd { color: var(--ink); margin: 2px 0; font: 760 clamp(1.85rem, 4vw, 2.65rem)/1.15 Pretendard, sans-serif; letter-spacing: -.072em; font-variant-numeric: tabular-nums; }
.kpi dd small { margin-left: .34em; color: var(--muted); font-size: .38em; letter-spacing: 0; }
.kpi p { color: var(--muted); font-size: .73rem; word-break: keep-all; }
.kpi:nth-child(2) dd { color: var(--accent); }
.kpi:nth-child(3) dd { color: var(--leaf); }

.section { margin-top: 58px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 12px; margin-bottom: 11px; border-bottom: 1px solid var(--rule); }
.section-index::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: #db8c62; }
h2 { margin: 3px 0; font-size: clamp(1.85rem, 4vw, 2.55rem); line-height: 1.2; letter-spacing: -.067em; word-break: keep-all; }
.section-head p:last-child:not(.section-index) { color: var(--muted); font-size: .88rem; }
.segments { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.segments button { min-height: 38px; padding: 5px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .81rem; font-weight: 760; white-space: nowrap; }
.segments button:hover, .floor-controls button:hover, .job-filters button:hover { background: var(--tint); color: var(--ink); }
.segments button[aria-pressed="true"] { background: var(--accent); color: var(--sheet); }

.panel { min-width: 0; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet); box-shadow: 0 2px 0 #e9caa34d; }
.level-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(240px, 1fr); align-items: start; gap: 14px; }
.rank-panel, .coverage, .combat-panel { padding: 19px 20px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h3 { font-size: 1.07rem; letter-spacing: -.035em; word-break: keep-all; }
.badge { padding: 4px 8px; border: 1px solid #efc8ae; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font: 700 .67rem/1.4 var(--mono); white-space: nowrap; }

.level-columns, .bar-list li { display: grid; grid-template-columns: minmax(126px, 1.05fr) minmax(125px, 1.75fr) minmax(70px, .6fr); align-items: center; gap: 12px; }
.level-columns { margin: 15px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .74rem; font-weight: 740; }
.level-columns span:last-child, .delta { text-align: right; }
.bar-list { list-style: none; padding: 0; }
.bar-list li { min-height: 44px; border-bottom: 1px solid #f0e0cd; font-size: .87rem; }
.job-name { font-weight: 740; overflow-wrap: anywhere; }
.bar-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.bar-rail { flex: 1; min-width: 8px; height: 8px; border-radius: 5px; background: #f5e6d5; }
.bar-rail i { display: block; height: 100%; border-radius: inherit; background: #ba6749; }
.bar-list li:first-child .bar-rail i { background: #618454; }
.bar-label, .delta, .numeric { font-variant-numeric: tabular-nums; }
.bar-label { min-width: 6.5em; text-align: right; white-space: nowrap; }
.bar-label span, .delta { color: var(--muted); font-size: .77rem; }
.delta.positive { color: #34533a; }
.delta.negative { color: #923e3b; }
.plain-button, .inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: .85rem; font-weight: 730; }
.plain-button:hover, .inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.coverage { border-color: #d3dfba; background: var(--leaf-soft); }
.coverage .eyebrow { color: var(--leaf); }
.coverage h3 { margin-top: 5px; }
.coverage dl { margin-top: 13px; }
.coverage dl div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #d3dfba; padding: 8px 0; font-size: .82rem; }
.coverage dt { color: var(--muted); }
.coverage dd { font-weight: 740; text-align: right; }
.note { color: var(--muted); font-size: .79rem; line-height: 1.55; word-break: keep-all; }
.coverage .note { margin-top: 7px; }
.combat-tools { align-items: start; }
.combat-tools .note { margin-top: 4px; }
.floor-controls, .job-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.floor-controls { justify-content: flex-end; }
.floor-controls button, .job-filters button { min-height: 38px; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 8px; background: transparent; color: var(--muted); font-size: .77rem; font-weight: 730; }
.floor-controls button[aria-pressed="true"], .job-filters button[aria-pressed="true"] { border-color: #c78662; background: var(--accent-soft); color: var(--accent); }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 10px 9px; text-align: left; border-bottom: 1px solid #f0e0cd; }
thead th { color: var(--muted); font-size: .75rem; background: var(--tint); }
tbody th { font-weight: 740; }
th:not(:first-child), td:not(:first-child) { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #fff5e7; }
.panel-foot { margin-top: 4px; }

.job-filters { margin-top: 11px; }
.job-filters button { min-height: 34px; }

.field-panel { padding: 19px 20px; }
.patch-selector { width: fit-content; flex-wrap: wrap; margin-bottom: 10px; }
.field-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 12px 15px; border: 1px solid var(--rule); border-radius: 12px; background: var(--tint); }
.field-banner h3 { margin-block: 3px; }
.field-banner .inline-link { flex: 0 0 auto; }
.hunt-banner { border-color: #d3dfba; background: var(--leaf-soft); }
.hunt-banner .eyebrow, .hunt-banner .inline-link { color: var(--leaf); }
.field-filters { margin-top: 14px; }
.field-filters button { min-height: 40px; padding-inline: 11px; }
.field-status { margin-block: 13px 7px; font-weight: 700; }
.community-posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.community-post { display: grid; grid-template-columns: 54px minmax(0, 1fr) max-content; align-items: start; gap: 5px 15px; padding: 14px 2px 11px; border-bottom: 1px solid var(--rule); }
.community-post h3, .post-summary { word-break: keep-all; overflow-wrap: anywhere; }
.post-topic, .post-meta time { color: var(--muted); font-size: .77rem; font-weight: 690; }
.post-summary { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.post-meta { display: flex; flex-direction: column; align-items: end; }
.tone { justify-self: start; padding: 3px 8px; border-radius: 8px; background: var(--tint); color: var(--muted); font-size: .77rem; font-weight: 760; }
.tone[data-tone="긍정"] { background: var(--leaf-soft); color: var(--leaf); }
.tone[data-tone="우려"] { background: var(--accent-soft); color: var(--accent); }
.tone[data-tone="제안"] { background: #f5ebdb; color: #684626; }
.field-foot { margin-top: 13px; }
.hunt-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hunt-card { min-width: 0; padding: 13px 14px 11px; border: 1px solid var(--rule); border-radius: 12px; background: #fffaf0; }
.hunt-card-head, .hunt-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; }
.hunt-card-head { flex-wrap: wrap; }
.hunt-card-foot .inline-link { flex: 0 0 auto; }
.hunt-job { border-color: #d3dfba; background: var(--leaf-soft); color: var(--leaf); }
.hunt-meta { margin: 3px 0 8px; }
.hunt-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hunt-metrics div { min-width: 0; padding: 6px 9px; border-radius: 8px; background: var(--leaf-soft); }
.hunt-metrics div:nth-child(2) { background: var(--tint); }
.hunt-metrics dt { color: var(--muted); font-size: .74rem; font-weight: 700; }
.hunt-metrics dd { font-size: 1.18rem; font-weight: 790; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hunt-metrics .metric-missing dd { color: var(--muted); }
.hunt-net { margin-bottom: 3px; color: var(--leaf); font-size: .83rem; font-weight: 740; }
.hunt-detail { padding-bottom: 3px; }
.hunt-lead, .hunt-empty { border: 1px dashed var(--rule); background: var(--sheet); }
.hunt-lead h3 { margin-block: 2px; }
.hunt-empty { grid-column: 1 / -1; padding: 14px; border-radius: 12px; color: var(--muted); }
.hunting-rules { margin-top: 10px; }
.hunting-rules summary { min-height: 40px; width: fit-content; padding-block: 8px; color: var(--leaf); font-size: .9rem; font-weight: 730; cursor: pointer; }
.penalty-table { max-width: 430px; margin-top: 8px; }
.penalty-table th, .penalty-table td { padding-block: 5px; }
.field-sources { display: flex; flex-wrap: wrap; column-gap: 14px; }

.site-footer { margin-top: 51px; border-top: 1px solid var(--rule); background: var(--sheet); }
.footer-inner { padding-block: 20px; display: flex; align-items: start; justify-content: space-between; gap: 12px; color: var(--muted); }
.footer-inner strong { color: var(--accent); font: 700 .73rem var(--mono); }
.footer-inner p { margin-top: 5px; font-size: .77rem; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 14px; }
.error { padding: 16px; border: 1px solid #dba48d; border-radius: 10px; background: var(--accent-soft); }
.empty { display: block; color: var(--muted); padding: 14px 0; font-size: .84rem; }

@media (max-width: 870px) {
  .wrap { width: min(100% - 44px, 1152px); }
  .level-layout { grid-template-columns: minmax(0, 1fr); }
  .coverage dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .hero { gap: 23px; }
  .hero-figure { padding: 11px 13px; }
  nav { column-gap: 14px; }
}

@media (max-width: 610px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 7px; }
  .header-inner nav { order: 3; width: 100%; flex-wrap: wrap; column-gap: 12px; }
  nav a { font-size: .8rem; }
  .source-link { font-size: .8rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 14px; padding: 16px; border-radius: 18px; }
  .hero-copy { padding-block: 0; }
  h1 { font-size: clamp(2.65rem, 10vw, 4.6rem); }
  h1 br { display: none; }
  h1 em::before { content: ''; display: inline-block; width: .15em; }
  .intro { font-size: .91rem; max-width: 38ch; }
  .snapshot { margin-top: 12px; }
  .hero-art { max-height: 210px; }
  .hero-figure .figure-label, .hero-figure figcaption { font-size: .56rem; }
  .kpis { gap: 6px; margin-top: 9px; }
  .kpi { padding: 10px 7px 12px; border-radius: 11px; }
  .kpi dt { font-size: .69rem; }
  .kpi dd { font-size: 1.75rem; }
  .kpi p { font-size: .63rem; }
  .section { margin-top: 34px; }
  .section-head { align-items: start; flex-direction: column; gap: 9px; }
  .segments { flex-wrap: wrap; max-width: 100%; }
  .segments button { min-height: 41px; padding-inline: 8px; }
  .rank-panel, .coverage, .combat-panel { padding: 13px; }
  .level-columns, .bar-list li { grid-template-columns: minmax(68px, .93fr) minmax(106px, 1.35fr) 52px; gap: 6px; }
  .bar-list li { font-size: .78rem; }
  .bar-metric { gap: 4px; }
  .bar-label span, .delta { font-size: .69rem; }
  .coverage dl { grid-template-columns: 1fr; }
  .combat-tools { flex-direction: column; gap: 8px; }
  .floor-controls { justify-content: flex-start; }
  .job-filters button, .floor-controls button { min-height: 42px; }
  .combat-panel table { min-width: 260px; font-size: .77rem; }
  th, td { padding-inline: 6px; }
  .field-panel { padding: 12px; }
  .field-banner { align-items: start; flex-direction: column; gap: 0; padding: 10px 12px 3px; }
  .field-filters button { min-height: 44px; }
  .community-post { grid-template-columns: 1fr; padding: 10px 0 4px; }
  .post-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 4px 12px; }
  .hunt-results { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 345px) {
  .bar-rail { display: none; }
  .level-columns, .bar-list li { grid-template-columns: minmax(66px, 1fr) 89px 49px; }
}
