* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --track: #eeede8;
  --border: rgba(11, 11, 11, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --track: #2c2c2a;
    --border: rgba(255, 255, 255, 0.08);
  }
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 40px 18px;
}

.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

.head {
  margin-bottom: 24px;
}

.title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.sub {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------- 차트 (가로 막대) ---------- */

.chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.row .label {
  width: 84px;
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .track {
  position: relative;
  flex: 1;
  height: 18px;
  background: var(--track);
  border-radius: 9px;
  overflow: hidden;
}

.row .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0 8px 8px 0;
  min-width: 4px;
}

.dot.ink,
.fill.ink {
  background: var(--text-primary);
}

.row .value {
  width: 34px;
  flex-shrink: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ---------- 크레딧 ---------- */

.credit {
  margin-top: 28px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 360px) {
  .row .label { width: 68px; font-size: 12.5px; }
}
