:root {
  --bg: #0d0f10;
  --surface: #171a1d;
  --soft: #202429;
  --text: #f4f1e8;
  --muted: #9aa39b;
  --muted-strong: #c5cabf;
  --line: #30363a;
  --line-strong: #596269;
  --green: #2fd17a;
  --green-dark: #9ff2c3;
  --amber: #f2b84b;
  --amber-dark: #ffd789;
  --blue: #66a7ff;
  --blue-dark: #bcd8ff;
  --shadow: 0 18px 44px #0000005c;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #2fd17a24, transparent 300px),
    radial-gradient(circle at top right, #66a7ff1c, transparent 320px),
    linear-gradient(180deg, #ffffff09, #fff0 320px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
}

main {
  width: min(1280px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

button,
select,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #316bd842;
  outline-offset: 2px;
}

.dashboard-header {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 24px;
  padding: 18px 0 22px;
}

.eyebrow,
.progress-box span,
.stat-tile span,
.fight-meta,
.fight-metrics small,
.side-heading,
label span,
footer {
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(38px, 7vw, 86px);
  line-height: .95;
}

.dashboard-header p {
  color: var(--muted);
  font-size: 15px;
}

.progress-box,
.stat-tile,
.fight-card,
.loading {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.progress-box {
  padding: 16px;
}

.progress-box strong,
.stat-tile strong {
  color: var(--text);
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
}

.progress-box small,
.stat-tile small {
  color: var(--muted);
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0;
}

label {
  display: grid;
  gap: 8px;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.stat-tile {
  min-height: 104px;
  padding: 16px;
}

.fight-list {
  display: grid;
  gap: 14px;
}

.fight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 18px;
}

.fight-card.pick {
  border-left: 5px solid var(--green);
}

.fight-card.pass {
  border-left: 5px solid var(--amber);
}

.fight-card.watch {
  border-left: 5px solid var(--blue);
}

.fight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fight-meta span {
  background: var(--soft);
  border-radius: 999px;
  padding: 4px 8px;
}

.fighters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}

.fighters h2 {
  color: var(--text);
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.fighters h2:last-child {
  text-align: right;
}

.fighters span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.recommendation-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.recommendation-line p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.pill {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.pill.pick {
  color: var(--green-dark);
  background: #2fd17a29;
}

.pill.pass {
  color: var(--amber-dark);
  background: #f2b84b29;
}

.pill.watch {
  color: var(--blue-dark);
  background: #66a7ff29;
}

.fight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.fight-metrics div,
.fight-side,
.analysis-panel section {
  background: var(--soft);
  border-radius: 8px;
}

.fight-metrics div {
  padding: 10px;
}

.fight-metrics strong {
  color: var(--text);
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.25;
}

.fight-side {
  padding: 12px;
}

.side-heading {
  margin-bottom: 10px;
}

.odds-table {
  display: grid;
  gap: 7px;
}

.odds-row {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px 66px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 9px;
}

.odds-row span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

.odds-row b {
  color: var(--text);
  text-align: right;
  font-size: 14px;
}

.empty-odds {
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.4;
}

details {
  grid-column: 1 / -1;
}

summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.analysis-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

.analysis-panel section {
  border: 1px solid var(--line);
  padding: 14px;
}

.analysis-panel h3 {
  color: var(--text);
  margin: 0 0 8px;
  font-size: 15px;
}

.analysis-panel p {
  color: var(--muted-strong);
  white-space: pre-wrap;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.sources {
  grid-column: 1 / -1;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-list a {
  border: 1px solid var(--line);
  min-height: 30px;
  color: var(--blue-dark);
  background: var(--surface);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 22px;
  padding-top: 18px;
}

.loading {
  margin-top: 28px;
  padding: 24px;
  color: var(--muted-strong);
}

@media (width <= 980px) {
  main {
    width: min(100% - 20px, 720px);
    padding-top: 16px;
  }

  .dashboard-header,
  .controls,
  .fight-card {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .analysis-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  .stats-grid,
  .analysis-panel,
  .fight-metrics,
  .fighters {
    grid-template-columns: 1fr;
  }

  .fighters h2,
  .fighters h2:last-child {
    text-align: left;
  }

  .dashboard-header h1 {
    font-size: 42px;
  }
}
