:root {
  --bg: #0d1117;
  --card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #7c6cf0;
  --accent-hover: #6a5ce0;
  --green: #3fb950;
  --red: #f85149;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c6cf0, #3b2f8f);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand h1 { margin: 0; font-size: 22px; }
.tagline { margin: 0; color: var(--muted); font-size: 13px; }
.status-line { font-size: 11px; color: var(--text); font-weight: 600; }
.banner {
  background: #2b2440;
  border-bottom: 1px solid #7c6cf0;
  color: #cfc8ff;
  padding: 10px 24px;
  font-size: 14px;
  display: flex; align-items: center; gap: 12px;
}
.banner.hidden { display: none; }
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.small-btn { padding: 6px 12px; font-size: 12px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-btn:hover { border-color: var(--accent); color: var(--text); }
/* Brand-colored nav buttons */
.nav-btn.claude { background: #d97757; border-color: #d97757; color: #fff; }
.nav-btn.claude:hover { background: #c66544; border-color: #c66544; color: #fff; }
.nav-btn.solana { background: linear-gradient(135deg, #9945ff, #14f195); border-color: transparent; color: #fff; }
.nav-btn.solana:hover { border-color: #14f195; color: #fff; }
.nav-btn.perps { background: #22c55e; border-color: #22c55e; color: #052e14; }
.nav-btn.perps:hover { background: #16a34a; border-color: #16a34a; color: #052e14; }
.nav-btn.metals { background: #d4af37; border-color: #d4af37; color: #241a02; }
.nav-btn.metals:hover { background: #b8962e; border-color: #b8962e; color: #241a02; }
/* Ag: harvest gradient — green field to golden wheat */
.nav-btn.ag { background: linear-gradient(135deg, #65a30d, #eab308); border-color: transparent; color: #1a2e05; }
.nav-btn.ag:hover { border-color: #eab308; color: #1a2e05; }
/* Clef: Cloudflare orange */
.nav-btn.clef { background: #f6821f; border-color: #f6821f; color: #241203; }
.nav-btn.clef:hover { background: #d9731a; border-color: #d9731a; color: #241203; }
/* Ponies: saddle brown */
.nav-btn.ponies { background: #b45309; border-color: #b45309; color: #fff; }
.nav-btn.ponies:hover { background: #92400e; border-color: #92400e; color: #fff; }
/* Resume: Excel green */
.nav-btn.resume { background: #217346; border-color: #217346; color: #fff; }
.nav-btn.resume:hover { background: #1a5c38; border-color: #1a5c38; color: #fff; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-head h2 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.note { margin: 4px 0; }
.table-wrap { overflow-x: auto; }
table.signals { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 760px; }
table.signals th, table.signals td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
table.signals th:first-child, table.signals td:first-child { text-align: left; }
table.signals th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .grid { padding: 12px; }
  .site-nav { order: 3; width: 100%; }
  table.signals th, table.signals td { padding: 8px 6px; font-size: 13px; }
}

/* Floating coin badges: simple bobbing ticker discs in the margins beside the table */
.farm-float { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.farm-float .spr { position: absolute; transform: translate(-50%, -50%); }
.farm-float .bob { display: inline-block; animation: floaty 6s ease-in-out infinite; }
.farm-float .coin .bob {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,.5);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.farm-float .mascot .bob img { width: 52px; border-radius: 12px; display: block; }
.farm-float .spr.dying .bob { animation: none; filter: grayscale(1); opacity: .45; transform: rotate(28deg) scale(.92); }
.farm-float.mood-upbeat .mascot .bob { animation-duration: 2.6s; }
.farm-float.mood-mopey .mascot .bob { animation-duration: 10s; }
.farm-float.mood-mopey .mascot img { filter: saturate(.6); }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}
main.grid .card { position: relative; z-index: 2; }
