/* data.genkaku.app — same visual language as the homepage:
   warm near-black, white at graded opacities, hairline rules, real radii,
   Newsreader display over an Inter body, antialiased throughout. */

:root {
  --bg: #0c0a09;
  --pop: #17140f;
  --text: rgba(255, 255, 255, 0.92);
  --dim: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.02);
  --steel: #80a0c1;
  --live: rgba(52, 211, 153, 0.9);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* display face: replaces the retired pixel serif everywhere it was used */
.pixel-serif {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Numerals share the display face so headline figures and body copy read as
   one voice; tabular figures keep the live cards from twitching as they tick.
   px() in app.js still wraps the "$" — it just inherits now. */
.pxnum {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dollar { font-family: inherit; }

/* logo 0: same treatment as the homepage wordmark — oversized glyph, normal
   weight. Newsreader's lining figures sit taller than the old pixel zero, so
   the scale and lift are smaller than they were. */
.logo-o {
  font-size: 1.32em;
  font-weight: normal;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
  margin-top: -0.12em;
}

a { color: var(--text); }
a:hover { color: #fff; }

/* header */
header {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
#hero-pixels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.75;
}
.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px 44px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name {
  font-size: 30px;
  color: #fff;
  text-decoration: none;
}
.brand-sub { color: var(--dim); font-size: 15px; }
.hero-stat { margin-top: 30px; }
.hero-num {
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.1;
  color: #fff;
}
.hero-label {
  margin-top: 10px;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* layout */
main { max-width: 1200px; margin: 0 auto; padding: 0 20px 72px; }
section { margin-top: 52px; }
.section-title {
  font-size: 24px;
  color: #fff;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* stat cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 18px;
}
/* 26px, not the display face's more natural 30: the widest live value
    ($GENKAKU price, 10 glyphs) has to sit on one line in the narrowest column. */
.card .v {
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  word-break: break-all;
}
.card .v small { font-size: 15px; color: var(--dim); }
.card .k {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.card .k .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--live);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3 } 50% { opacity: 1 } }

/* chart panels */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 18px 12px;
  min-width: 0;
}
.panel.wide { grid-column: 1 / -1; }
.panel-title {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: lowercase;
}
.panel-title .note { color: var(--faint); margin-left: 8px; }
.legend { margin-left: 10px; color: var(--faint); }
.legend .sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin: 0 4px 0 8px;
}
/* swatch inks match the series the canvas draws — see SHADES in app.js */
.sw.t-max { background: rgba(255, 255, 255, 0.95); }
.sw.t-pro { background: rgba(255, 255, 255, 0.55); }
.sw.t-image { background: rgba(255, 255, 255, 0.28); }
canvas[data-chart] {
  display: block;
  width: 100%;
  height: 190px;
}

/* burn log */
#burn-log { margin-top: 12px; }
#burn-list .row {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
}
#burn-list .row .amt { color: var(--text); min-width: 150px; }
#burn-list .row .usd { color: var(--dim); min-width: 80px; }
#burn-list .row .date { color: var(--faint); min-width: 90px; }
#burn-list .row a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 160, 193, 0.35);
}
#burn-list .row a:hover { border-bottom-color: var(--steel); }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--faint);
  font-size: 12px;
}
footer .sep { margin: 0 10px; color: rgba(255, 255, 255, 0.16); }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* tooltip */
#tooltip {
  position: fixed;
  display: none;
  pointer-events: none;
  background: var(--pop);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  z-index: 10;
  white-space: pre;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  /* narrower columns, so the same longest value needs a smaller size to hold one line */
  .card .v { font-size: 22px; }
  .card .v small { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .card .k .dot { animation: none; }
}
