/* =========================================================================
 * LottoLie (로또라이) - 화이트톤 미니멀 테마
 * 설계 원칙: 절제된 색·넉넉한 여백·부드러운 그림자·명확한 위계·섬세한 인터랙션
 * (웜 화이트 배경 / 소프트 오렌지 브랜드 / 그린→오렌지 파스텔 / 그라데이션 없음)
 * ========================================================================= */
:root {
  /* 표면·경계 (웜 뉴트럴) */
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f6f1ea;
  --border: #efe6db;
  --border-strong: #e3d6c7;
  /* 텍스트 (웜 다크) */
  --text: #2b231d;
  --text-2: #5d5147;
  --muted: #8b7d6f;
  --faint: #b3a596;
  /* 브랜드 (소프트 오렌지) */
  --brand: #e5946a;
  --brand-strong: #cf7645;
  --brand-soft: #fbe9dc;
  --gold: #cf923f;
  --gold-soft: #f8edd7;
  --danger: #d97a5f;
  --shadow-brand: rgba(207, 118, 69, 0.26);
  /* 형태 */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.07), 0 2px 4px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }

/* ---------- 헤더 / 네비 ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { max-width: 1080px; margin: 0 auto; padding: 14px 24px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo { font-size: 1.4rem; font-weight: 750; letter-spacing: -0.03em; color: var(--text); }
.brand .logo b { color: var(--brand); font-weight: 750; }
.brand .kr { color: var(--muted); font-size: 0.85rem; }
.slogan { color: var(--muted); font-size: 0.82rem; margin-left: auto; }
nav.tabs { width: 100%; display: flex; gap: 2px; margin-top: 8px; flex-wrap: wrap; }
nav.tabs button {
  position: relative;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.16s var(--ease);
}
nav.tabs button:hover { color: var(--text); }
nav.tabs button.active { color: var(--brand); }
nav.tabs button.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
}

/* ---------- 레이아웃 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 96px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise 0.35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 분석 메뉴 내부 서브탭 */
.subtabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.subtabs button {
  position: relative;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.16s var(--ease);
}
.subtabs button:hover { color: var(--text); }
.subtabs button.active { color: var(--text); }
.subtabs button.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--brand); border-radius: 2px 2px 0 0;
}
.subpanel { display: none; }
.subpanel.active { display: block; animation: rise 0.3s var(--ease); }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1rem; }
.card .big { font-size: 1.9rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.card .sub { color: var(--muted); font-size: 0.8rem; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.1rem; }
.badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 550;
}
.badge.type-number { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.badge.type-combo { color: var(--gold); background: var(--gold-soft); border-color: transparent; }

/* ---------- 히어로 ---------- */
.hero {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  margin-bottom: 24px;
}
.hero h2 { font-size: 1.75rem; letter-spacing: -0.03em; }
.hero p { color: var(--text-2); max-width: 620px; margin: 0; }

/* ---------- 대시보드(홈) ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-title { font-size: 1.5rem; margin: 0 0 2px; }
.dash-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-latest { display: flex; flex-direction: column; justify-content: center; }
.dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.tile .t-label { font-size: 0.76rem; color: var(--muted); }
.tile .t-val { font-size: 1.45rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-top: 3px; line-height: 1.2; }
.tile .t-sub { font-size: 0.72rem; color: var(--faint); margin-top: 2px; }
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 0.98rem; }
.dash-reco { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.dash-reco:last-child { border-bottom: none; }
.dash-reco .rank { font-weight: 750; color: var(--gold); min-width: 26px; font-size: 0.9rem; }
.dash-reco .score-badge { margin-left: auto; background: var(--brand-soft); color: var(--brand-strong); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 0.78rem; }

/* 컬럼(세로 막대) 차트 */
.col-chart { display: flex; gap: 6px; align-items: flex-end; height: 150px; padding-top: 8px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.col-bar { width: 62%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s var(--ease); }
.col-v { font-size: 0.6rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- 로또 공 ---------- */
.balls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ball {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.92rem;
  color: #1c1200;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}
.ball.sm { width: 30px; height: 30px; font-size: 0.8rem; }
/* 파스텔 그린→오렌지 순차 팔레트 (구간이 올라갈수록 초록→오렌지로 부드럽게 전환).
   채도·명도를 맞춘 파스텔, 글자색은 같은 계열의 진한 톤(토널) */
.ball.c1 { background: #b7d6a6; color: #3f5630; }
.ball.c2 { background: #d2dd9f; color: #565626; }
.ball.c3 { background: #f0d79f; color: #6b521f; }
.ball.c4 { background: #f2c39b; color: #6d4423; }
.ball.c5 { background: #eeab8f; color: #6d3a20; }
.ball.plus { background: transparent; color: var(--faint); box-shadow: none; border: none; font-weight: 400; }
.ball.dim { opacity: 0.32; }

/* ---------- 컨트롤(버튼/토글/슬라이더) ---------- */
button.btn {
  font-size: 0.9rem; font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: background 0.16s var(--ease), transform 0.08s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
button.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
button.btn:active { transform: translateY(1px); }
button.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px var(--shadow-brand); }
button.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
button.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
button.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
button.btn.mini { padding: 6px 12px; font-size: 0.76rem; border-radius: var(--radius-xs); }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.control-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; color: var(--muted); font-weight: 550; }
select, input[type="text"], input[type="number"] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
select:focus, input[type="text"]:focus, input[type="number"]:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input[type="range"] { accent-color: var(--brand); width: 140px; }

/* 토글 스위치 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background 0.2s var(--ease); }
.switch .slider::before {
  content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease);
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------- 규칙 패널 ---------- */
.rule-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.rule-cat header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rule-cat header h4 { margin: 0; font-size: 0.95rem; }
.rule-cat .cat-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.group-result-wrap { margin: 8px 0 4px; }
.group-result {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.78rem;
}
.group-result.muted { color: var(--faint); }
.group-meta { color: var(--muted); line-height: 1.45; }
.group-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.group-line > span {
  color: var(--faint);
  min-width: 86px;
}
.group-line em {
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
}
.rule { display: grid; grid-template-columns: auto 1fr minmax(220px, auto); align-items: start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.rule .rule-name { font-size: 0.86rem; color: var(--text-2); }
.rule .rule-name small { display: block; color: var(--faint); font-size: 0.72rem; }
.rule-result { margin-top: 8px; }
.rule-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  color: var(--muted);
  font-size: 0.72rem;
  max-width: 100%;
}
.rule-preview > span {
  color: var(--faint);
  flex: 0 0 auto;
  white-space: nowrap;
}
.rule-preview .balls, .group-line .balls { flex: 0 0 auto; flex-wrap: nowrap; }
.rule-preview em {
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
  flex: 0 0 auto;
}
.selected-rule-preview { margin-top: 14px; }
.all-number-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.ranked-ball {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.ranked-ball em {
  min-width: 18px;
  color: var(--faint);
  font-style: normal;
  font-size: 0.68rem;
  text-align: right;
}
.ranked-ball b {
  min-width: 24px;
  color: var(--brand);
  font-size: 0.68rem;
  text-align: right;
}
.rule .weight { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.rule .weight .weight-caption {
  color: var(--faint);
  font-size: 0.72rem;
  white-space: nowrap;
}
.rule .weight .wval { width: 20px; text-align: right; color: var(--brand); font-weight: 700; font-size: 0.82rem; }
.rule .weight .wtext {
  min-width: 62px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

/* ---------- 추천 결과(구형 인라인) ---------- */
.reco { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.reco .rank { font-weight: 800; color: var(--gold); width: 26px; font-size: 1.1rem; }
.reco .score-badge { margin-left: auto; background: var(--brand-soft); border: 1px solid transparent; color: var(--brand); border-radius: 999px; padding: 5px 12px; font-weight: 700; }
.reasons { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.chip { font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-weight: 550; }

/* ---------- 빈도 차트 ---------- */
.chart { display: grid; grid-template-columns: repeat(45, 1fr); gap: 3px; align-items: end; height: 120px; }
.chart .bar { background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: opacity 0.15s var(--ease); }
.chart .bar:hover { opacity: 0.7; }
.chart .bar span { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 0.5rem; color: var(--faint); }

/* ---------- 번호 선택 그리드 ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; max-width: 460px; }
.pick-grid .pick {
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
  font-weight: 650; cursor: pointer; font-size: 0.85rem;
  transition: all 0.14s var(--ease);
}
.pick-grid .pick:hover { border-color: var(--brand); color: var(--brand); }
.pick-grid .pick.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 6px var(--shadow-brand); }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
th { background: var(--surface-2); color: var(--muted); font-weight: 600; position: sticky; top: 0; font-size: 0.8rem; }
tbody tr { transition: background 0.12s var(--ease); }
tbody tr:hover td { background: #fafbfc; }
tr.latest td { background: var(--brand-soft); }

.saved-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.saved-item .rank-tag { padding: 4px 11px; border-radius: 999px; font-weight: 650; font-size: 0.78rem; border: 1px solid transparent; }
.rank-tag.win { background: var(--gold-soft); color: #96610f; }
.rank-tag.none { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

.disclaimer { margin-top: 48px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-size: 0.8rem; text-align: center; background: var(--surface); }
.empty { color: var(--faint); text-align: center; padding: 32px 0; font-size: 0.9rem; }
.hl { color: var(--gold); font-weight: 700; }
.notice { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 0.84rem; margin-bottom: 16px; line-height: 1.55; }
.notice.warn { background: var(--gold-soft); border: 1px solid #f0dcae; color: #8a5a12; }
.caveat { color: var(--faint); font-size: 0.74rem; margin-top: 6px; font-style: italic; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 0.85em; color: var(--brand-strong); }

/* ---------- 추천 개수 버튼 ---------- */
.count-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.count-btns button {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
  font-weight: 600; cursor: pointer; font-size: 0.85rem;
  transition: all 0.14s var(--ease);
}
.count-btns button:hover { border-color: var(--brand); color: var(--brand); }
.count-btns button.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 6px var(--shadow-brand); }

/* ---------- 개별 분석 블록 ---------- */
.analysis-block { margin-bottom: 16px; }
.ab-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ab-head h3 { margin: 0; }
.ab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-grid .sub, .card .sub { margin-bottom: 6px; }
.metric-note {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.45;
}
.metric-note span::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: 1px;
}
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: var(--muted); }
.stat-row b { color: var(--text); text-align: right; font-weight: 600; }

/* 미니 막대 (분포/전환율) */
.mini-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mb { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; }
.mb-l { color: var(--muted); font-size: 0.8rem; }
.mb-v { font-size: 0.8rem; font-weight: 700; color: var(--brand); min-width: 42px; text-align: right; }
.mb-track { background: var(--surface-2); border-radius: 999px; height: 8px; overflow: hidden; }
.mb-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.5s var(--ease); }

/* ---------- 번호별 종합 점수 그리드 ---------- */
.score-grid { display: grid; grid-template-columns: repeat(45, 1fr); gap: 3px; align-items: end; height: 110px; margin: 12px 0 18px; }
.score-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.score-cell .sc-bar { width: 78%; background: var(--brand); border-radius: 4px 4px 0 0; transition: height 0.5s var(--ease); }
.score-cell span { position: absolute; bottom: -15px; font-size: 0.5rem; color: var(--faint); }

/* ---------- 추천 카드 (상세형) ---------- */
.reco-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.reco-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.reco-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reco-top .rank { font-weight: 750; color: var(--gold); font-size: 1rem; min-width: 34px; }
.reco-top .score-badge { margin-left: auto; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 5px 13px; font-weight: 700; font-size: 0.85rem; }
.reco-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; font-size: 0.8rem; color: var(--muted); }
.reco-stats b { color: var(--text); font-weight: 650; }
.mono.pos { color: var(--brand); }
.mono.neg { color: var(--danger); }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .rule-panel { grid-template-columns: 1fr; }
  .ab-grid { grid-template-columns: 1fr 1fr; }
  .dash-top, .dash-grid-2 { grid-template-columns: 1fr; }
  .slogan { display: none; }
  .hero { padding: 30px 24px; }
  .hero h2 { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  main { padding: 24px 18px 80px; }
  .header-inner { padding: 12px 18px 0; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .ab-grid { grid-template-columns: 1fr; }
  .chart, .score-grid { height: 80px; }
  .pick-grid { grid-template-columns: repeat(7, 1fr); }
  nav.tabs, .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.tabs::-webkit-scrollbar, .subtabs::-webkit-scrollbar { display: none; }
  nav.tabs button, .subtabs button { flex: 0 0 auto; white-space: nowrap; }
  .ball { width: 34px; height: 34px; }
  .mb { grid-template-columns: 56px 1fr auto; }
  .rule { grid-template-columns: auto 1fr; align-items: start; }
  .rule .weight { grid-column: 2; flex-wrap: wrap; }
  .rule .weight input[type="range"] { flex: 1 1 120px; }
}
