/* 竞彩足球网页端：移动优先，纯本地 CSS，无外链字体/CDN */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: #14181d;
  --text-2: #56606c;
  --muted: #8a929d;
  --line: #e4e8ee;
  --line-strong: #cfd6df;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-weak: #eaf1ff;
  --hit: #d61f1f;
  --cold: #b45309;
  --cold-weak: #fff4e5;
  --high: #7c3aed;
  --high-weak: #f3edff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(16, 24, 40, .05);
  --nav-h: 54px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

h1, h2, h3 { line-height: 1.3; }

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--nav-h);
  padding: 7px 10px;
  padding-top: calc(7px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(16, 24, 40, .04);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav .spacer { flex: 1 1 0; min-width: 2px; }

.nav-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-weak);
  font-weight: 700;
}

.nav-quit { color: var(--muted); }

.nav-algo {
  flex: 0 0 auto;
  padding: 0 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 页面骨架 ---------- */

.main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 14px calc(30px + env(safe-area-inset-bottom));
}

.page-head { margin: 2px 0 12px; }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.page-head h1 {
  margin: 0;
  font-size: clamp(19px, 4.6vw, 25px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.meta-line { margin: 4px 0 0; }

.btn-refresh {
  min-height: 0;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.btn-refresh:hover { background: none; color: #1746b3; }
.btn-refresh:active { transform: none; }
.btn-refresh:disabled {
  background: none;
  color: #9aa1ab;
  text-decoration: none;
  cursor: default;
}

.section-title {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.notice {
  margin: 8px 0;
  padding: 9px 12px;
  border: 1px solid #d9e6ff;
  border-radius: var(--radius-sm);
  background: #f2f7ff;
  color: #1e4fbf;
  font-size: 13px;
}

/* 国外盘异动：红=国内没跟，橙=两边分歧大 */
.fg-alert {
  margin: 0;
  padding: 8px 13px;
  background: #fdecec;
  border-bottom: 1px solid #f6cccc;
  color: #a11313;
  font-size: 13px;
  font-weight: 600;
}

.fg-watch {
  margin: 0;
  padding: 7px 13px;
  background: var(--cold-weak);
  border-bottom: 1px solid #f3dcbd;
  color: var(--cold);
  font-size: 12.5px;
}

.fg-panel { border-color: #f0c9c9; }
.fg-panel h2 { color: #a11313; }

.empty {
  margin: 18px 0;
  padding: 26px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--hit); font-weight: 600; }

/* ---------- 本期推荐 / 高赔：比赛卡 ---------- */

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

.match-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: linear-gradient(180deg, #fbfcfe, #f5f8fc);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.mc-head .num {
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.mc-head .league {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-time {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mc-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  font-size: 17px;
  font-weight: 700;
}

.mc-teams .home { text-align: left; }
.mc-teams .away { text-align: right; }
.mc-teams .vs {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.mk {
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface);
}

.mk:nth-child(5) { grid-column: 1 / -1; }

.mk-title {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.mk-pick {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.mk-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.mk-p {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mk-odds {
  margin-left: auto;
  color: var(--text-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-cov {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.mk-cov.low { color: var(--cold); font-weight: 600; }

.mk-extra {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.mk-extra .hi,
.mk-extra .cold,
.mk-extra .ref {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.7;
  vertical-align: 1px;
}

.mk-extra .hi { background: var(--high-weak); }
.mk-extra .cold { background: var(--cold-weak); }
.mk-extra .ref { background: var(--surface-2); color: var(--text-2); }

/* ---------- 6 球+ 独立线 ---------- */

.six-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 7px 13px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.six-line .six-tag,
.six-line .ref {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.7;
  vertical-align: 1px;
}

.six-line .six-tag {
  background: var(--high-weak);
  color: var(--high);
  font-weight: 600;
}

.six-line .ref { background: var(--surface); color: var(--text-2); }
.six-line .six-pick b { color: var(--high); }
.six-mini { color: var(--text-2); font-size: 12px; }

.mc-foot {
  padding: 8px 13px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  text-align: right;
}

.link-more {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 赔率 / 标签颜色语义 ---------- */

.hi {
  color: var(--high);
  font-weight: 700;
}

.cold {
  color: var(--cold);
  font-weight: 700;
  margin-right: 2px;
}

.odds {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cal { color: var(--muted); }

/* ---------- 串子 ---------- */

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

.parlay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.parlay-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 13px;
  background: linear-gradient(180deg, #fbfcfe, #f5f8fc);
  border-bottom: 1px solid var(--line);
}

.parlay-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}

.parlay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill-odds { background: var(--high-weak); color: var(--high); }
.pill-p { background: var(--accent-weak); color: var(--accent-2); }

.legs {
  margin: 0;
  padding: 4px 13px 10px;
  list-style: none;
}

.legs li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 9px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.legs li:last-child { border-bottom: 0; }

.leg-match { font-weight: 600; }
.leg-pick { color: var(--text-2); }
.leg-odds {
  margin-left: auto;
  color: var(--accent-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.leg-cal { color: var(--muted); }

/* ---------- 串子回顾 ---------- */

.parlay-hit {
  border-color: #f2b8b8;
  box-shadow: 0 0 0 1px #fbe3e3, var(--shadow);
}

.parlay-hit .parlay-title {
  color: var(--hit);
}

.pill-hit { background: var(--hit); color: #fff; }
.pill-wait { background: #eef2f6; color: var(--text-2); }

.legs li.leg-hit,
.legs li.leg-hit .leg-match,
.legs li.leg-hit .leg-pick,
.legs li.leg-hit .leg-odds,
.legs li.leg-hit .leg-mark {
  color: var(--hit);
  font-weight: 700;
}

.legs li.leg-miss .leg-mark {
  color: var(--muted);
  font-weight: 700;
}

/* ---------- 筛选表单 ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filters label {
  display: flex;
  flex: 1 1 132px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.filters select,
.filters input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.filters select:focus,
.filters input:focus,
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .45);
  outline-offset: 1px;
}

.filters button { flex: 0 0 auto; }

.filter-total { align-self: center; padding: 0 2px 4px; }

/* ---------- 通用按钮 ---------- */

button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:hover { background: var(--accent-2); }
button:active { transform: translateY(1px); }

/* ---------- 历史回顾表格 ---------- */

.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.issue {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 12.5px;
}

table.issue th {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

table.issue td {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

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

table.issue tbody tr.group td {
  padding: 9px 10px;
  background: linear-gradient(180deg, #eef4ff, #e7efff);
  border-bottom: 1px solid #d7e3fb;
  color: var(--text);
  font-size: 12.5px;
}

table.issue tbody tr.group strong { font-size: 13.5px; }

table.issue tbody tr.match-result td { background: var(--surface); }

table.issue tbody tr.match-rec td {
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}

table.issue tbody tr.match-rec td.rec-head {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

table.issue td.pick {
  font-variant-numeric: tabular-nums;
}

table.issue tbody tr.match-result a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.rec.hit,
.mark.hit {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--hit);
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.rec.miss,
.mark.miss {
  color: var(--muted);
}

/* 命中整行标红：光一个钩子太不显眼 */
.pick-hit,
.pick-hit .odds {
  color: var(--hit);
  font-weight: 600;
}

/* 博冷标记用蓝色，别跟命中的红色混在一起 */
.cold-bet,
.pick-hit .cold-bet {
  color: #1d4ed8;
  font-weight: 700;
}

/* 博冷真中了就跟整行一起变红 */
.pick-hit .cold-hit {
  color: var(--hit);
}

/* 历史回顾：原始概率 + 校准命中，换行显示在对应推荐下方 */
.pick-cal {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.had-odds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 2px 0 4px;
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.had-odds span {
  white-space: nowrap;
}

/* ---------- 分页 ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 4px;
  font-size: 13px;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.pager-link.disabled {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}

.pager-info { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- 单场详情 ---------- */

.panel {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.score-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.score-line .score {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.settle-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--line);
}

.settle-row {
  display: grid;
  grid-template-columns: 66px 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  background: var(--surface);
  font-size: 13px;
}

.settle-mk { color: var(--text-2); font-weight: 700; }
.settle-res { color: var(--text); font-variant-numeric: tabular-nums; }
.settle-pick { min-width: 0; }

.version { margin-bottom: 10px; }
.version:last-child { margin-bottom: 0; }
.version p { margin: 4px 0; }

.traj-block { margin-bottom: 12px; }
.traj-block:last-child { margin-bottom: 0; }
.traj-block h3 { margin: 0 0 6px; font-size: 14px; }

.trajectory {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.75;
}

.trajectory li { padding: 1px 0; }

/* ---------- 登录 ---------- */

.login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding: 18px 0;
}

.login-card {
  width: 100%;
  max-width: 360px;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 21px;
}

.login-card p { margin: 0 0 14px; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.login-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
}

.login-form button {
  height: 48px;
  font-size: 16px;
}

/* ---------- 平板 / 桌面 ---------- */

@media (min-width: 768px) {
  .main { padding: 20px 22px 40px; }

  .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk:nth-child(5) { grid-column: auto; }

  table.issue { font-size: 12px; }
  table.issue th { padding: 7px 6px; }
  table.issue td { padding: 7px 6px; }
}

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

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

  table.issue { font-size: 12.5px; }
  table.issue th { padding: 8px 8px; }
  table.issue td { padding: 8px 8px; }
}

/* ---------- 手机：历史回顾 表格 → 赛果卡 + 推荐卡 ---------- */

@media (max-width: 767px) {
  .history-scroll { overflow: visible; }

  .filters { gap: 8px; padding: 10px; }
  .filters label { flex: 1 1 calc(50% - 4px); }
  /* iOS 上 16px 以下会触发自动放大，表单统一 16px */
  .filters select,
  .filters input { font-size: 16px; }
  .filters button { flex: 1 1 100%; min-height: 44px; }
  .filter-total { flex: 1 1 100%; padding: 0 2px; }

  table.history {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13.5px;
  }

  table.history thead { display: none; }
  table.history tbody { display: block; }

  table.history tbody tr { display: block; }

  table.history tbody tr.group { margin: 0; }
  table.history tbody tr.group td {
    display: block;
    margin: 16px 0 8px;
    padding: 10px 12px;
    border: 1px solid #d7e3fb;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #eef4ff, #e7efff);
    font-size: 12.5px;
    line-height: 1.6;
  }

  table.history tbody tr.group td strong { font-size: 14px; }

  table.history tbody tr.match-result,
  table.history tbody tr.match-rec {
    display: block;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
  }

  table.history tbody tr.match-result {
    margin-top: 7px;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 0;
  }

  table.history tbody tr.match-rec {
    margin-bottom: 11px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 5px 14px rgba(16, 24, 40, .06);
  }

  table.history tbody tr td,
  table.history tbody tr.match-result td,
  table.history tbody tr.match-rec td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    width: auto;
    padding: 6px 12px;
    border: 0;
    border-bottom: 0;
    background: transparent;
    text-align: right;
    white-space: normal;
  }

  table.history tbody tr td + td {
    border-top: 1px dashed var(--line);
  }

  table.history tbody tr td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
  }

  table.history tbody tr td.rec-head {
    display: block;
    padding: 9px 12px;
    border-top: 0;
    border-bottom: 0;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
  }

  table.history tbody tr td.rec-head::before { content: none; }

  table.history td.pick { white-space: normal; }
  table.history tbody tr.match-result a { white-space: nowrap; }
}

/* ---------- 手机：单场详情 ---------- */

@media (max-width: 640px) {
  .settle-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 9px 11px;
  }

  .settle-mk { grid-column: 1; }
  .settle-res { grid-column: 2; text-align: right; }
  .settle-pick {
    grid-column: 1 / -1;
    padding-top: 5px;
    border-top: 1px dashed var(--line);
  }

  .leg-odds { margin-left: 0; }
  .legs li { gap: 2px 8px; }
}

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