:root {
  --bg: #0c110b;
  --bg-2: #141b12;
  --bg-3: #1a2318;
  --line: #2a3526;
  --text: #e8f2df;
  --muted: #8f9f86;
  --lime: #c8f04a;
  --lime-dim: rgba(200, 240, 74, .14);
  --early: #b6f5a8;
  --building: #ffe08a;
  --late: #ffb199;
  --up: #9ee08a;
  --down: #ff9d8a;
  --bad: #ffb4a8;
  --ok: #c7f0a4;
  --font: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Syne", "Manrope", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(200, 240, 74, .16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 8%, rgba(90, 140, 70, .12), transparent 50%),
    linear-gradient(180deg, #0e140c 0%, var(--bg) 40%, #0a0e09 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(42, 53, 38, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 53, 38, .45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; position: relative; }
.top {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 11, .82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-dim);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--lime-dim); }
  50% { box-shadow: 0 0 0 7px rgba(200, 240, 74, .08); }
}
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); font-weight: 500; }
nav a.is-on { color: var(--text); }
h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
h2 { font-family: var(--display); font-size: 20px; margin: 28px 0 10px; }
.lead, .ago, .empty, .foot { color: var(--muted); }
.hero {
  margin: 36px 0 22px;
  max-width: 42rem;
  animation: fadeUp .55s ease both;
}
.hero-brand {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -.01em;
}
.coin-brand { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero .ago { margin: 12px 0 0; font-size: 13px; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0 0 20px;
  animation: fadeUp .55s ease .06s both;
}
.summary div {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.summary b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.summary span { color: var(--muted); font-size: 12px; }
.panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: rgba(20, 27, 18, .9);
  border: 1px solid var(--line);
  border-radius: 16px;
  animation: fadeUp .55s ease .1s both;
}
.panel-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.panel-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  min-width: 140px;
}
.panel-field.grow { flex: 1 1 180px; }
.panel-score { min-width: 200px; }
.panel-score b { color: var(--lime); font-variant-numeric: tabular-nums; }
.panel-check { margin-bottom: 4px; color: var(--text); font-size: 13px; }
.board-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.count { margin: 0; color: var(--muted); font-size: 13px; }
button, .ghost {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button.is-on, button[type="submit"] { background: var(--lime); color: #13200a; border-color: var(--lime); font-weight: 700; }
.ghost:hover { border-color: var(--lime); color: var(--lime); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 22, 14, .75);
  animation: fadeUp .55s ease .14s both;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(10, 14, 9, .55);
  position: sticky;
  top: 0;
}
tbody tr {
  transition: background .15s ease;
}
tbody tr:hover { background: rgba(200, 240, 74, .05); }
td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.score-cell {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag {
  font-size: 11px;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid #3c4a28;
  border-radius: 999px;
  padding: 1px 7px;
}
.pill { display: inline-block; border-radius: 999px; padding: 2px 8px; background: #243024; font-size: 12px; }
.stage-early { color: var(--early); }
.stage-building { color: var(--building); }
.stage-late { color: var(--late); }
.stage-weak, .stage-quiet { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.score { margin: 0; text-align: right; }
.score b {
  display: block;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.03em;
}
.score span { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stats div {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stats dt { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.stats dd { margin: 6px 0 0; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.factors { padding-left: 18px; }
.factors li { margin: 8px 0; }
.bad, .ok, .wait { border-radius: 12px; padding: 10px 12px; }
.bad { background: #3a221c; color: var(--bad); }
.ok, .wait { background: #24301a; color: var(--ok); }
.stack, .auth form { display: grid; gap: 10px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, select {
  background: #0d110c;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  width: 100%;
}
input[type="range"] {
  padding: 0;
  height: 28px;
  accent-color: var(--lime);
  cursor: pointer;
}
input[type="checkbox"] { width: auto; accent-color: var(--lime); }
fieldset { border: 1px solid var(--line); border-radius: 12px; }
.check { display: flex; align-items: center; gap: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.code { font: 18px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg-2); display: inline-block; padding: 8px 12px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; }
.foot { padding: 28px 0 40px; font-size: 13px; }
.back { margin-top: 22px; }
.card-page .head-row { margin-top: 8px; }
.head-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin: 28px 0 18px; }
.prose { max-width: 44rem; }
.prose p, .prose li { color: #c5d4bb; }
@media (max-width: 900px) {
  .summary { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .head-row, .split { display: grid; grid-template-columns: 1fr; }
  .head-row { align-items: start; }
  thead { display: none; }
  table, tbody, tr, td { display: block; white-space: normal; }
  tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  td { border: 0; padding: 4px 14px; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
  .panel-row { align-items: stretch; }
  .panel-field { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
