:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #14161a;
  --ink: #eef1f4;
  --muted: #9aa3af;
  --line: #262a31;
  --accent: #4ade80;
  --accent-soft: #12291c;
  --miss: #3a3f47;
  --chart-line: #f87171;
  --badge-bg: #15803d;
  --badge-ink: #ffffff;
  --badge-soft-bg: #262a31;
  --badge-soft-ink: #c3c9d2;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  background: #000;
  border-bottom: 1px solid var(--line);
  color: #fff;
  padding: 20px 0 16px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo span { color: #4ade80; }

.tagline {
  margin: 6px 0 0;
  font-size: 15px;
  color: #d1d5db;
}

.board-date {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.freshness {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #9ca3af;
}

.filters {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.filter-btn {
  appearance: none;
  border: 1px solid #374151;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* Board */

main { padding: 16px 0 8px; }

.sport-heading {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 18px 2px 8px;
}

.sport-heading:first-child { margin-top: 4px; }

.row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.row-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.row-main:active { background: #1e2126; }

.player { min-width: 0; }

.player-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.market {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.market b {
  color: var(--ink);
  font-weight: 700;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  white-space: nowrap;
}

.badge.soft {
  background: var(--badge-soft-bg);
  color: var(--badge-soft-ink);
}

.payout {
  text-align: right;
}

.payout-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.payout-label {
  font-size: 11px;
  color: var(--muted);
}

.hitrate {
  text-align: right;
  min-width: 44px;
}

.hitrate-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hitrate-label {
  font-size: 11px;
  color: var(--muted);
}

/* Detail panel */

.detail { display: none; border-top: 1px solid var(--line); padding: 14px; }

.row.open .detail { display: block; }

.detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.detail-head b { color: var(--ink); }

.chart { position: relative; height: 150px; margin: 26px 4px 0; }

.chart-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--chart-line);
}

.chart-line-label {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--chart-line);
  background: var(--card);
  padding: 0 2px;
}

.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 0;
}

.bar-value {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bar {
  border-radius: 5px 5px 0 0;
  background: var(--accent);
  min-height: 3px;
}

.bar.miss { background: var(--miss); }

.bar-axis {
  display: flex;
  gap: 10px;
  margin: 6px 4px 0;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.bar-axis span {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.chart-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.no-log {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.empty-note {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 32px 0;
}

/* Signup */

.signup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin: 20px 0 8px;
  text-align: center;
}

.signup h2 {
  margin: 0;
  font-size: 18px;
}

.signup p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 6px 0 0;
}

.embeddable-buttondown-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.embeddable-buttondown-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  color: var(--ink);
}

.embeddable-buttondown-form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.embeddable-buttondown-form button {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--badge-bg);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.signup p.signup-note {
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer */

footer { padding: 8px 0 32px; }

.attribution {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 12px 0 0;
}

.attribution a { color: var(--muted); }

.flag-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 6px 0 0;
}

.disclaimer {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 6px 0 0;
}
