:root {
  --bg: #0c0d10;
  --bg-elev: #14161b;
  --bg-elev-2: #1c1f26;
  --ink: #f2eee6;
  --ink-dim: #a8a297;
  --ink-faint: #6e6a62;
  --line: #2a2d34;
  --line-strong: #3d424c;
  --gold: #d7a04b;
  --gold-2: #e8bf7a;
  --gold-soft: rgba(215, 160, 75, 0.14);
  --win: #6fbf8a;
  --win-bg: rgba(111, 191, 138, 0.14);
  --loss: #d07070;
  --loss-bg: rgba(208, 112, 112, 0.14);
  --push: #a8a297;
  --push-bg: rgba(168, 162, 151, 0.12);
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-num: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -80px, rgba(215, 160, 75, 0.07), transparent 60%),
    radial-gradient(800px 400px at 100% 20%, rgba(111, 191, 138, 0.03), transparent 50%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 13, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.logo span { color: var(--gold); }

.tagline {
  color: var(--ink-dim);
  font-size: 0.92rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 12px; }

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.record {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(4.4rem, 16vw, 8.75rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.record-note {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 36em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0 8px;
}

.metric {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
}

.metric-value {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.85rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-value.up { color: var(--win); }
.metric-value.down { color: var(--loss); }

.metric-label {
  margin-top: 8px;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.metric-detail {
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Sections */
section {
  padding: 56px 0 8px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 em { font-style: italic; color: var(--gold-2); }

.section-caption {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 40em;
}

.muted, .fine {
  color: var(--ink-dim);
}

.fine { font-size: 0.92rem; }

/* Chart panel */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 12px;
  box-shadow: var(--shadow);
}

.chart-wrap { overflow: hidden; }

.chart-wrap svg { width: 100%; height: auto; }

.chart-caption {
  color: var(--ink-faint);
  font-size: 0.82rem;
  padding: 4px 8px 8px;
}

/* Daily table */
.daily-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.98rem;
}

.daily-table th,
.daily-table td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.daily-table th:first-child,
.daily-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.daily-table th {
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-table tbody tr:last-child td { border-bottom: 0; }

.pos { color: var(--win); }
.neg { color: var(--loss); }

/* Picks list */
.picks {
  display: grid;
  gap: 8px;
}

.pick {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto auto;
  gap: 8px 16px;
  align-items: baseline;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

.pick.loss { border-color: rgba(208, 112, 112, 0.28); }
.pick.win { border-color: rgba(111, 191, 138, 0.22); }
.pick.pending { border-style: dashed; }
.pick.skipped {
  opacity: 0.62;
  background: transparent;
}

.tip {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.pick-main { min-width: 0; }

.pick-team {
  font-weight: 600;
  font-size: 1.05rem;
}

.line {
  font-family: var(--font-cond);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  margin-left: 0.4em;
}

.juice {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-left: 0.45em;
  font-weight: 500;
}

.pick-opp {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.pick-score {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--ink-dim);
  text-align: right;
}

.pick-result {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-align: right;
  min-width: 3.2rem;
}

.pick-result.W, .badge.W { color: var(--win); }
.pick-result.L, .badge.L { color: var(--loss); }
.pick-result.P, .badge.P { color: var(--push); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.badge.W { background: var(--win-bg); }
.badge.L { background: var(--loss-bg); }
.badge.P { background: var(--push-bg); }
.badge.pending {
  background: var(--gold-soft);
  color: var(--gold-2);
}

/* Strategy */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 24px;
}

.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.step-num {
  font-family: var(--font-cond);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.step p { color: var(--ink-dim); font-size: 0.98rem; }

.callout {
  background: var(--gold-soft);
  border: 1px solid rgba(215, 160, 75, 0.28);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 1.05rem;
}

.callout strong {
  font-weight: 600;
  color: var(--ink);
}

/* Stat cards */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.stat-row:last-of-type { border-bottom: 0; }

.stat-label { color: var(--ink-dim); }

.stat-value {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

/* Tickets */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 14px;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.seg button {
  appearance: none;
  background: transparent;
  color: var(--ink-dim);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--bg-elev-2);
  color: var(--ink);
}

.seg button:hover { color: var(--ink); }

.search {
  flex: 1 1 180px;
  min-width: 160px;
}

.search input {
  width: 100%;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}

.search input::placeholder { color: var(--ink-faint); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table.tickets {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

.tickets th,
.tickets td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tickets tbody tr:last-child td { border-bottom: 0; }

.tickets tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.tickets th {
  text-align: left;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-elev-2);
  position: sticky;
  top: 0;
}

.tickets th button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tickets th button:hover { color: var(--ink); }

.tickets th .arrow { color: var(--gold); }

.tickets td.num, .tickets th.num { text-align: right; font-variant-numeric: tabular-nums; }

.tickets td.mono {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 500;
}

.hidden { display: none !important; }

.table-count {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Footer */
footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

footer p { max-width: 46em; }

/* Mobile cards for tickets are unused on desktop */
.ticket-cards { display: none; }

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }

  .hero { padding-top: 36px; }

  .metrics,
  .steps,
  .split {
    grid-template-columns: 1fr;
  }

  .pick {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "tip result"
      "main result"
      "score score";
  }

  .tip { grid-area: tip; }
  .pick-main { grid-area: main; }
  .pick-result { grid-area: result; align-self: center; }
  .pick-score { grid-area: score; text-align: left; }

  .table-wrap { display: none; }

  .ticket-cards {
    display: grid;
    gap: 8px;
  }

  .ticket-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
  }

  .ticket-card .meta {
    color: var(--ink-faint);
    font-size: 0.8rem;
  }

  .ticket-card .team { font-weight: 600; }

  .daily-table { font-size: 0.9rem; }
  .daily-table th, .daily-table td { padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Alerts signup */
.nav-cta {
  background: var(--gold);
  color: #0c0d10 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--gold-2);
  color: #0c0d10 !important;
}

.alerts-card {
  background: var(--bg-elev);
  border: 1px solid rgba(215, 160, 75, 0.28);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}

.alerts-card .lede {
  margin-bottom: 22px;
}

.alerts-form {
  display: grid;
  gap: 16px;
}

.alerts-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.alerts-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
}

.alerts-form .field input[type="tel"],
.alerts-form .field input[type="email"],
.unsub-form input[type="tel"],
.unsub-form input[type="email"] {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.alerts-form .field input:focus,
.unsub-form input:focus {
  border-color: var(--gold);
  outline: none;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-dim);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.consent-text p { margin: 0 0 0.75em; }
.consent-text p:last-child { margin-bottom: 0; }

.btn-primary {
  appearance: none;
  background: var(--gold);
  color: #0c0d10;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  justify-self: start;
}

.btn-primary:hover { background: var(--gold-2); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.form-status.ok { color: var(--win); }
.form-status.err { color: var(--loss); }

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

/* Legal / unsubscribe pages */
.legal {
  padding: 48px 0 24px;
  max-width: 40em;
}

.legal h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal .kicker { margin-bottom: 18px; }

.legal h2 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-size: 1.25rem;
}

.legal ul {
  margin: 0 0 1em 1.2em;
  color: var(--ink-dim);
}

.legal li { margin: 0 0 0.4em; }

.unsub-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  max-width: 28em;
}

.unsub-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
}

@media (max-width: 800px) {
  .alerts-fields { grid-template-columns: 1fr; }
  .alerts-card { padding: 22px 18px 20px; }
}

/* Text alerts button beside record + modal */
.record-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn-alerts { font-size: 1.05rem; padding: 14px 26px; white-space: nowrap; }
.alerts-dialog { border: none; padding: 0; background: transparent; max-width: 760px; width: calc(100% - 32px); color: inherit; }
.alerts-dialog::backdrop { background: rgba(0,0,0,0.7); }
.alerts-dialog #alerts { margin: 0; padding: 0; }
.alerts-dialog .alerts-card { margin: 0; position: relative; }
.dialog-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: none; border: none; color: #bbb; font-size: 28px; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: #fff; }
@media (max-width: 640px) { .record-row { gap: 16px; } .btn-alerts { width: 100%; } }
.alerts-dialog[open] { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow: auto; }
.record-row { justify-content: space-between; }
.btn-alerts { font-size: 1.45rem; padding: 22px 44px; border-radius: 999px; box-shadow: 0 8px 28px rgba(214,160,70,0.28); }
@media (max-width: 640px) { .btn-alerts { font-size: 1.15rem; padding: 16px 24px; } }
.alerts-buttons { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.btn-email { background: transparent; color: #d6a046; border: 2px solid #d6a046; font-weight: 700; cursor: pointer; }
.btn-email:hover { background: rgba(214,160,70,0.12); }
@media (max-width: 640px) { .alerts-buttons { width: 100%; } }
.btn-email { font-family: inherit; box-shadow: none; }
