:root {
  --bg: #0b0e11;
  --panel: #1e2329;
  --line: #2b3139;
  --text: #eaecef;
  --muted: #848e9c;
  --yellow: #fcd535;
  --green: #0ecb81;
  --red: #f6465d;
  font-family: Inter, "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #181a20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand i {
  width: 18px;
  height: 18px;
  background: var(--yellow);
  display: inline-block;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.nav-item {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.status {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.status.live { color: var(--green); }
.status.bad { color: var(--red); }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 650;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.board {
  background: transparent;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

th:first-child, td:first-child { text-align: left; }

td {
  text-align: right;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(43, 49, 57, 0.7);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

tr:hover td { background: rgba(255, 255, 255, 0.03); }

.pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b3139;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
}

.quote { color: var(--muted); font-weight: 500; margin-left: 4px; }

.up { color: var(--green); }
.down { color: var(--red); }

.chg {
  display: inline-block;
  min-width: 84px;
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
  color: #0b0e11;
  font-weight: 650;
}

.chg.up { background: var(--green); }
.chg.down { background: var(--red); color: #fff; }

.spark {
  width: 110px;
  height: 36px;
  display: block;
  margin-left: auto;
}

@media (max-width: 800px) {
  .hide-sm { display: none; }
  h1 { font-size: 22px; }
  .topbar { gap: 14px; padding: 0 14px; }
}
