@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=IBM+Plex+Sans+KR:wght@400;600;700&display=swap");

:root {
  --bg0: #0a0c10;
  --bg1: #12161e;
  --ink: #f2f0ea;
  --muted: #9aa3b2;
  --line: #2a3140;
  --accent: #c8f135;
  --card: #161b24;
  --radius: 14px;
  --font-display: "Black Han Sans", sans-serif;
  --font-body: "IBM Plex Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(200, 241, 53, 0.12), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 92, 53, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0d1016);
}
a { color: inherit; }
.wrap { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.top > a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.top > a:hover { color: var(--accent); }
.siteMenu { position: relative; }
.siteMenuBtn {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.siteMenu.is-open .siteMenuBtn {
  border-color: rgba(200,241,53,.55);
  background: rgba(200,241,53,.12);
}
.siteMenuPanel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12,16,20,.96);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  z-index: 30;
}
.siteMenuPanel[hidden] { display: none; }
.siteMenuItem {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.siteMenuItem:hover { background: rgba(255,255,255,.06); }
.siteMenuItem[aria-current="page"] { color: var(--accent); }
.brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7.2vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 10px;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.lead { margin: 0 0 16px; color: var(--muted); line-height: 1.55; max-width: 40em; }
.howto {
  margin: 0 0 22px;
  padding: 14px 16px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.howTitle { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.howList { margin: 0; padding: 0 0 8px 1.25em; font-size: 14px; line-height: 1.55; }
.howList li { margin: 0 0 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
input[type="number"] {
  width: 100%;
  background: #0f131a;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
}
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.check { flex-direction: row; align-items: center; color: var(--ink); font-weight: 600; }
.seg { display: flex; gap: 14px; color: var(--ink); }
.seg label { flex-direction: row; align-items: center; color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btnPrimary { background: var(--accent); color: #12160a; border-color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hint, .status { color: var(--muted); font-size: 13px; line-height: 1.5; }
.status { color: var(--accent); min-height: 1.2em; }
.hidden { display: none; }
.h2 { margin: 0 0 12px; font-size: 1.2rem; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #10141c;
}
.pillar b { display: block; font-size: 1.15rem; margin: 4px 0; }
.pillar span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.facts { margin: 14px 0; display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; font-size: 14px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }
.sheetLabel { margin-top: 8px; }
textarea {
  width: 100%;
  min-height: 220px;
  margin-top: 6px;
  background: #0c0f14;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}
