:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --surface: #141a1f;
  --surface-strong: #1a2229;
  --line: #2a343c;
  --line-soft: #202a31;
  --text: #f4f7f8;
  --muted: #9eabb4;
  --green: #43c486;
  --green-soft: #102a20;
  --blue: #62a8ff;
  --amber: #eab75d;
  --red: #ef7c75;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #07140e;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 760;
  cursor: pointer;
}

button:hover {
  background: #58d39a;
}

.hidden {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.muted,
.history-note,
footer {
  color: var(--muted);
}

.access-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.access-actions a {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.access-actions .account-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--green);
  color: #07140e;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.notice,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  padding: 13px;
}

.notice.ok {
  border-color: #265d45;
  color: #a7e8c8;
}

.notice.error {
  border-color: #703d3a;
  color: #ffc0bb;
}

.content {
  display: grid;
  gap: 56px;
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 24px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.state-label,
.result-state {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.state-upcoming,
.state-won {
  border-color: #2f7454;
  background: var(--green-soft);
  color: #a7e8c8;
}

.state-in-progress,
.state-push {
  border-color: #7c6437;
  color: #f5d69b;
}

.state-lost {
  border-color: #743f3b;
  color: #ffc0bb;
}

.week-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-item {
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
}

.bets-list {
  display: grid;
  gap: 10px;
}

.bet-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.bet-card.locked-bet {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  border-style: dashed;
}

.locked-title {
  font-size: 16px;
  font-weight: 800;
}

.locked-copy {
  color: var(--muted);
  font-size: 13px;
}

.access-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.access-panel h3 {
  font-size: 18px;
}

.access-panel p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.access-actions {
  margin-top: 14px;
}

#verification-message {
  min-height: 20px;
}

.bet-topline,
.bet-heading,
.price-line,
.probability-row,
.history-row,
.history-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kickoff {
  color: var(--muted);
  font-size: 12px;
}

.bet-heading {
  align-items: flex-start;
  margin-top: 12px;
}

.bet-heading h3 {
  font-size: 18px;
}

.matchup {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.market {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.price-line {
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.selection {
  font-size: 19px;
  font-weight: 820;
}

.book-price {
  text-align: right;
}

.odds {
  display: block;
  font-size: 20px;
  font-weight: 850;
}

.sportsbook {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.probability-row {
  align-items: stretch;
  margin-top: 12px;
}

.probability-item {
  flex: 1;
}

.probability-item span {
  display: block;
}

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

.probability-value {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 800;
}

.edge-value {
  color: var(--green);
}

.projection,
.odds-time {
  margin-top: 10px;
  color: #cbd4da;
  font-size: 13px;
}

.odds-time {
  color: var(--muted);
  font-size: 12px;
}

.history-list {
  border-top: 1px solid var(--line);
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.performance-stat {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.performance-label,
.performance-value {
  display: block;
}

.performance-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.performance-value {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.market-heading {
  margin-top: 22px;
  margin-bottom: 8px;
}

.market-heading h3 {
  font-size: 16px;
}

.market-list {
  border-top: 1px solid var(--line);
}

.market-row {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.market-name {
  font-weight: 800;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-stats .history-stat strong,
.market-stats .history-stat span {
  text-align: left;
}

.performance-notes,
.empty-market {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.performance-notes p + p {
  margin-top: 4px;
}

.methodology-disclosure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.methodology-disclosure p + p {
  margin-top: 7px;
}

.history-row {
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.history-week {
  font-weight: 800;
}

.history-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.history-stats {
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
}

.history-stat strong {
  display: block;
  text-align: right;
}

.history-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.history-note {
  margin-top: 12px;
  font-size: 12px;
}

.history-units-note {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

footer {
  width: min(1120px, 100%);
  margin: 20px auto 0;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

@media (min-width: 700px) {
  main {
    padding: 28px 24px;
  }

  .week-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bets-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .market-row {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
    align-items: center;
  }

  .market-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .market-stats .history-stat strong,
  .market-stats .history-stat span {
    text-align: right;
  }
}

@media (min-width: 1040px) {
  .bets-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
