:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --ink: #15201d;
  --muted: #60716c;
  --line: #d9d4ca;
  --panel: #ffffff;
  --accent: #0b6b57;
  --accent-2: #b8333a;
  --gold: #b8892e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(11, 107, 87, 0.09), transparent 38%),
    linear-gradient(225deg, rgba(184, 51, 58, 0.08), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 32px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.subhead {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.tool {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(21, 32, 29, 0.08);
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
button {
  height: 44px;
  border-radius: 7px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  padding: 0 12px;
}

button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #095846;
}

button.secondary {
  background: #273632;
}

button.secondary:hover {
  background: #1d2926;
}

.result {
  margin-top: 18px;
  padding: 18px;
  min-height: 170px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.match-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}

.match-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.venue {
  color: var(--muted);
  font-size: 14px;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  font-weight: 800;
  text-transform: capitalize;
}

.track {
  height: 16px;
  background: #ece8df;
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.draw .fill {
  background: var(--gold);
}

.away .fill {
  background: var(--accent-2);
}

.pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.xg {
  margin: 16px 0 0;
  color: var(--muted);
}

.odds-panel {
  margin-top: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.odds-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.odds-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.meta,
.match-meta {
  color: var(--muted);
}

.meta {
  margin: 10px 0 16px;
}

.odds-list {
  display: grid;
  gap: 12px;
}

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

.odds-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.odds-title h3 {
  margin: 4px 0 0;
  font-size: 19px;
  letter-spacing: 0;
}

.match-num,
.single {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.single {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.match-meta {
  margin: 10px 0 0;
  line-height: 1.45;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.odds-outcome {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.odds-outcome strong {
  font-size: 16px;
}

.odds-outcome span,
.odds-outcome em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.odds-outcome b {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ece8df;
  color: var(--ink);
  font-size: 12px;
}

.odds-outcome.good b {
  background: rgba(11, 107, 87, 0.12);
  color: var(--accent);
}

.odds-outcome.watch b {
  background: rgba(184, 137, 46, 0.18);
  color: #805d16;
}

.odds-outcome.bad b {
  background: rgba(184, 51, 58, 0.12);
  color: var(--accent-2);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 960px);
    padding-top: 32px;
  }

  .tool {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .odds-head,
  .odds-title {
    display: grid;
  }

  .odds-grid {
    grid-template-columns: 1fr;
  }

  .match-title,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-row {
    gap: 6px;
  }

  .pct {
    text-align: left;
  }
}
