:root {
  color-scheme: dark;
  --ink: #f7f3ea;
  --muted: #b9b4ab;
  --line: rgba(255, 255, 255, .12);
  --panel: #20252b;
  --panel-soft: #2a3037;
  --page: #161a1f;
  --accent: #f39b39;
  --accent-strong: #f7c45a;
  --green: #4aa67c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 50% -10%, #2a3139 0, var(--page) 52%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.7;
}
.analysis-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 40px 0 72px; }
.analysis-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.analysis-brand { color: var(--accent-strong); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.analysis-header h1 { margin: 5px 0 0; font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.2; }
.analysis-header p { max-width: 560px; margin: 8px 0 0; color: var(--muted); }
.analysis-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.analysis-nav a, .analysis-archive a { color: var(--accent-strong); text-underline-offset: 3px; }
.analysis-card { margin: 18px 0; padding: clamp(20px, 4vw, 32px); background: color-mix(in srgb, var(--panel) 94%, var(--accent)); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.analysis-card h2 { margin: 0 0 14px; font-size: 1.2rem; }
.analysis-card h3 { margin: 28px 0 8px; color: var(--accent-strong); font-size: 1rem; }
.analysis-intro { color: var(--muted); }
.analysis-balls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.analysis-ball { display: inline-grid; place-items: center; width: 48px; height: 48px; color: #fff; background: #6f7a83; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.16); font-weight: 800; font-size: 1.05rem; }
.analysis-ball:nth-child(5n+1) { background: #e9ad32; color: #292319; }
.analysis-ball:nth-child(5n+2) { background: #4b87c1; }
.analysis-ball:nth-child(5n+3) { background: #d45752; }
.analysis-ball:nth-child(5n+4) { background: #6f7a83; }
.analysis-ball:nth-child(5n+5) { background: #46936a; }
.analysis-ball.bonus { width: 42px; height: 42px; background: #8b9094; }
.analysis-plus { color: var(--muted); font-weight: 800; }
.analysis-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.analysis-metric { padding: 15px 16px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 14px; }
.analysis-metric span { display: block; color: var(--muted); font-size: .8rem; }
.analysis-metric strong { display: block; margin-top: 4px; color: var(--accent-strong); font-size: 1.05rem; }
.analysis-table-wrap { overflow-x: auto; }
.analysis-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.analysis-table th, .analysis-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.analysis-table th { color: var(--accent-strong); font-size: .82rem; }
.analysis-table tr:last-child td { border-bottom: 0; }
.analysis-callout { padding: 14px 16px; border-left: 4px solid var(--accent); background: rgba(243, 155, 57, .08); color: var(--muted); }
.analysis-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.analysis-archive-item { padding: 14px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 14px; }
.analysis-archive-item strong { display: block; color: var(--accent-strong); }
.analysis-footer { margin-top: 28px; color: var(--muted); font-size: .82rem; }
@media (max-width: 680px) {
  .analysis-shell { width: min(100% - 24px, 980px); padding-top: 24px; }
  .analysis-header { align-items: start; flex-direction: column; }
  .analysis-nav { justify-content: start; }
  .analysis-metrics, .analysis-archive { grid-template-columns: 1fr; }
  .analysis-ball { width: 42px; height: 42px; }
}
