:root {
  color-scheme: light;
  --page: #faf9f5;
  --panel: #ffffff;
  --panel-soft: #f5f4ef;
  --text: #141413;
  --muted: #6e6d66;
  --muted-strong: #454440;
  --line: rgba(20, 20, 19, 0.05);
  --line-strong: rgba(20, 20, 19, 0.05);
  --accent: #d97757;
  --amber: #d97757;
  --surface: #ffffff;
  --surface-strong: #f0efe9;
  --surface-soft: #f5f4ef;
  --team-a: #6a9bcc;
  --team-b: #d97757;
  --draw: #b0aea5;
  --side-a: #6a9bcc;
  --side-b: #d97757;
  --accent-strong: #c15f3c;
  --warning: #a3543f;
  --played: #b0aea5;
  --radius: 10px;
  font-family:
    ui-sans-serif,
    -apple-system,
    "SF Pro Text",
    "PingFang SC",
    "Noto Sans SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-weight: 300;
  background: var(--page);
}

.compliance-banner {
  width: 100%;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: #f0efe9;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

strong,
b {
  font-weight: 400;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--accent-strong);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.home-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
}

.home-hero__copy {
  min-width: 0;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.competition-switcher {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scrollbar-color: var(--played) transparent;
}

.competition-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted-strong);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.competition-tab:hover {
  color: var(--text);
  border-color: rgba(20, 20, 19, 0.18);
  background: rgba(20, 20, 19, 0.03);
}

.competition-tab[aria-current="page"] {
  color: var(--accent-strong);
  border-color: rgba(217, 119, 87, 0.5);
  background: rgba(217, 119, 87, 0.04);
}

.home-kicker {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h2,
h3,
h4 {
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.score-row,
.compare-line,
.legend-item strong,
.track-stat-card strong,
.track-bar-row,
.price-lockup,
.status-pill {
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.home-subtitle {
  max-width: 42rem;
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.65;
}

.pro-entry,
.detail-link,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.pro-entry:hover,
.detail-link:hover,
.checkout-button:hover:not(:disabled) {
  border-color: rgba(20, 20, 19, 0.18);
  background: rgba(20, 20, 19, 0.03);
}

.checkout-button {
  width: 100%;
  margin-top: 14px;
  border-color: transparent;
  color: var(--accent-strong);
  background: transparent;
  cursor: pointer;
}

.checkout-button:hover:not(:disabled) {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: rgba(217, 119, 87, 0.06);
}

.checkout-button:disabled {
  cursor: default;
  color: var(--muted);
  opacity: 1;
}

.schedule-section,
.detail-section,
.track-record-section,
.pro-section {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.round-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.round-group {
  display: grid;
  gap: 10px;
}

.round-title {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.3;
}

.round-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  min-width: 0;
}

.match-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: var(--panel);
}

button.match-card {
  cursor: pointer;
}

button.match-card:hover {
  border-color: rgba(217, 119, 87, 0.5);
  transform: translateY(-1px);
}

button.match-card:active {
  transform: translateY(0);
}

button.match-card:focus-visible,
.competition-tab:focus-visible,
.pro-entry:focus-visible,
.detail-link:focus-visible,
.checkout-button:focus-visible,
.recover-input:focus-visible,
.recover-line a:focus-visible {
  outline: 3px solid rgba(217, 119, 87, 0.28);
  outline-offset: 3px;
}

.match-card.is-selected {
  border-color: rgba(217, 119, 87, 0.5);
  box-shadow: 0 0 0 2px rgba(217, 119, 87, 0.12);
}

.match-card--played,
.match-card--tbd,
.match-card--pending {
  color: var(--muted);
  background: var(--panel-soft);
}

.match-card--played .team-name,
.match-card--tbd .team-name,
.match-card--pending .team-name {
  color: var(--muted-strong);
}

.card-topline,
.detail-meta,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
}

.status-pill--ready {
  color: var(--accent-strong);
  border-color: rgba(217, 119, 87, 0.5);
  background: rgba(217, 119, 87, 0.04);
}

.status-pill--played {
  color: var(--muted-strong);
  border-color: var(--played);
  background: rgba(176, 174, 165, 0.18);
}

.status-pill--pending {
  color: var(--muted-strong);
  border-color: var(--played);
  background: rgba(176, 174, 165, 0.18);
}

.card-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.team-pair + .card-meta {
  margin-top: 12px;
}

.team-pair {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.team-line {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.team-name {
  min-width: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.versus-text {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.flag-strip {
  display: inline-grid;
  grid-template-columns: repeat(var(--flag-count), minmax(0, 1fr));
  width: 46px;
  height: 11px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 19, 0.16);
  border-radius: 999px;
  background: #ffffff;
}

.flag-strip span {
  display: block;
}

.card-note {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.55;
}

.favorite-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.favorite-preview span {
  color: var(--muted);
  font-size: 0.88rem;
}

.favorite-preview strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}

.empty-detail,
.home-error,
.notice-card {
  padding: 22px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.home-error {
  color: var(--warning);
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.notice-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.08rem;
}

.detail-content {
  --side-a: #6a9bcc;
  --side-b: #d97757;
}

.detail-header {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.detail-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-team {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.detail-team:last-child {
  justify-items: end;
  text-align: right;
}

.detail-team strong {
  min-width: 0;
  font-size: 1.65rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-vs {
  color: var(--muted);
  font-weight: 400;
}

.detail-body {
  display: grid;
  gap: 0;
}

.detail-block {
  min-width: 0;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
  border-bottom: 0;
}

.detail-block h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.plain-callout {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.6;
}

.plain-callout strong {
  color: var(--accent-strong);
}

.split-bar,
.three-bar {
  display: flex;
  min-width: 0;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.bar-piece {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 10px;
  color: var(--text);
  font-weight: 400;
  text-shadow: none;
}

.bar-piece--a {
  background: var(--side-a);
}

.bar-piece--b {
  justify-content: flex-end;
  background: var(--side-b);
}

.bar-piece--draw {
  justify-content: center;
  color: var(--text);
  text-shadow: none;
  background: var(--played);
}

.bar-legend,
.market-legend {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.bar-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legend-item {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.legend-item strong {
  display: block;
  color: var(--text);
  font-size: 1.04rem;
}

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

.score-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.score-label {
  color: var(--text);
  font-weight: 400;
}

.score-track,
.compare-track {
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.score-track {
  height: 12px;
}

.score-fill,
.compare-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fill);
}

.score-row--locked {
  color: var(--muted);
}

.score-row--locked .score-label,
.locked-text {
  color: transparent;
  user-select: none;
}

.score-track--locked {
  background: repeating-linear-gradient(135deg, #e8e6dc 0 8px, #f5f4ef 8px 16px);
}

.score-fill--locked {
  background: repeating-linear-gradient(135deg, #b0aea5 0 8px, #e8e6dc 8px 16px);
  opacity: 0.72;
}

.unlock-note {
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.55;
}

.market-note {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.score-list-note {
  margin-top: 10px;
  font-size: 0.85rem;
}

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

.market-box {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.market-box h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.market-box--locked {
  background: linear-gradient(180deg, #ffffff, #f5f4ef);
}

.locked-market {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.locked-market-label,
.locked-market-track,
.locked-market-fill {
  display: block;
  border-radius: 999px;
}

.locked-market-label {
  height: 14px;
  background: #e8e6dc;
}

.locked-market-track {
  height: 12px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #e8e6dc 0 8px, #f5f4ef 8px 16px);
}

.locked-market-fill {
  height: 100%;
  background: repeating-linear-gradient(135deg, #b0aea5 0 8px, #e8e6dc 8px 16px);
  opacity: 0.74;
}

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

.compare-row {
  display: grid;
  gap: 8px;
}

.compare-name {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 400;
}

.compare-pair {
  display: grid;
  gap: 7px;
}

.compare-line {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.compare-track {
  height: 10px;
}

.compare-fill--public {
  background: var(--played);
}

.compare-fill--calculated {
  background: var(--fill);
}

.detail-more {
  padding: 18px 22px 22px;
  background: var(--panel-soft);
}

.detail-more summary {
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 400;
}

.detail-more summary:focus-visible {
  outline: 3px solid rgba(217, 119, 87, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.detail-more .detail-link {
  margin-top: 12px;
}

.track-record-section[hidden] {
  display: none;
}

.track-record-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}

.track-record-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.track-stat-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.track-stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.track-stat-card strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.35;
}

.track-honesty {
  margin: 0;
  padding: 14px 15px;
  border-left: 4px solid var(--warning);
  color: var(--muted-strong);
  background: rgba(163, 84, 63, 0.08);
  line-height: 1.65;
}

.track-bars-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.track-bars-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.track-bars-heading h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.track-bars-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.track-bars-key span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.track-key {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-radius: 999px;
}

.track-key--predicted,
.track-bar-fill--predicted {
  background: var(--accent);
}

.track-key--actual,
.track-bar-fill--actual {
  background: var(--played);
}

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

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

.pricing-card {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}

.pricing-card--pro {
  border-color: var(--line);
  background: rgba(217, 119, 87, 0.04);
}

.pricing-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pricing-card__head strong {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.25;
}

.price-lockup {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.price-original {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: line-through;
}

.pricing-note,
.checkout-status {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.5;
}

.checkout-status {
  min-height: 1.45em;
  margin-top: 10px;
  color: var(--warning);
  font-size: 0.9rem;
}

.checkout-button[hidden],
.checkout-status[hidden],
.price-lockup[hidden],
.member-status[hidden] {
  display: none !important;
}

.member-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  margin-top: 8px;
}

.member-status__text {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 400;
  line-height: 1.55;
}

.member-status__button {
  margin-top: 0;
}

.recover-line {
  margin: 12px 0 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.recover-line a {
  color: var(--accent-strong);
  font-weight: 400;
}

.recover-line a:hover {
  color: var(--accent);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-note + .feature-list {
  margin-top: 8px;
}

.feature-list li {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.home-footer {
  width: min(1120px, calc(100% - 32px));
  margin: -24px auto 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.home-footer a {
  color: var(--muted-strong);
}

.home-footer a:hover {
  color: var(--accent-strong);
}

.terms-shell {
  max-width: 860px;
}

.terms-header {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}

.terms-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.terms-panel h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.terms-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.recover-shell {
  max-width: 760px;
}

.recover-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.recover-panel h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.recover-form {
  display: grid;
  gap: 10px;
}

.recover-form label {
  color: var(--muted-strong);
  font-weight: 400;
}

.recover-input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  background: var(--panel);
}

.recover-form .checkout-button {
  width: fit-content;
  min-width: 160px;
  margin-top: 4px;
}

.recover-message {
  min-height: 1.55em;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.track-bar-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.track-bar-row p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.55;
}

.track-bar-pair {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.track-bar-line {
  display: block;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.track-bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.home-loading {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.home-loading span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8e6dc, #f5f4ef, #e8e6dc);
}

.home-loading span:nth-child(1) {
  width: 78%;
}

.home-loading span:nth-child(2) {
  width: 54%;
}

.home-loading span:nth-child(3) {
  width: 36%;
}

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

  .home-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-hero__actions {
    width: 100%;
  }

  h1 {
    font-size: 28px;
  }

  .home-subtitle {
    font-size: 1rem;
  }

	  .pro-entry,
	  .detail-link,
	  .checkout-button {
	    width: 100%;
	  }

  .detail-teams {
    grid-template-columns: 1fr;
  }

  .detail-team:last-child {
    justify-items: start;
    text-align: left;
  }

  .detail-vs {
    display: none;
  }

  .detail-team strong {
    font-size: 1.42rem;
  }

	  .bar-legend,
	  .market-grid,
	  .pricing-grid,
	  .track-record-cards,
	  .track-bar-row {
	    grid-template-columns: 1fr;
	  }

  .favorite-preview {
    grid-template-columns: 1fr;
  }

  .compare-line {
    grid-template-columns: 88px minmax(0, 1fr) 40px;
  }
}

@media (max-width: 420px) {
  .home-shell {
    width: min(100% - 20px, 1120px);
  }

  .match-card,
  .detail-header,
  .detail-block,
  .detail-more,
  .empty-detail,
  .home-error {
    padding-left: 14px;
    padding-right: 14px;
  }

  .score-row {
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .bar-piece {
    padding: 0 7px;
    font-size: 0.88rem;
  }
}

/* ---- 转化优化:证据卡 / 保障行 / 专业版样例 / 固定购买条 ---- */

.evidence-box {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--panel);
}

.evidence-title {
  margin: 0 0 6px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.evidence-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.evidence-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.evidence-note a {
  color: var(--accent-strong);
}

.assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.assurance-list li {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
}

.assurance-list li::before {
  content: "✓ ";
  color: var(--accent-strong);
}

.assurance-list a {
  color: var(--accent-strong);
}

.pro-sample-section {
  margin-top: 34px;
}

.sample-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}

.sample-header {
  display: grid;
  gap: 8px;
}

.sample-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sample-result {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 400;
}

.sample-matrix-wrap,
.sample-table-wrap {
  overflow-x: auto;
}

.sample-matrix,
.sample-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.sample-matrix caption {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.sample-matrix th,
.sample-matrix td,
.sample-table th,
.sample-table td {
  padding: 5px 8px;
  border: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.sample-matrix td {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sample-table th {
  color: var(--muted-strong);
  font-weight: 400;
  background: var(--surface-soft);
}

.sample-footnote {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-details {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--panel);
}

.sample-details summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
}

.sample-details[open] summary {
  border-bottom: 1px solid var(--line);
}

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

.sample-details .sample-table-wrap,
.sample-details .sample-audit {
  padding: 10px 12px;
}

.sample-audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.sample-audit-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-soft);
}

.sample-audit-item span {
  color: var(--muted);
  font-size: 11.5px;
}

.sample-audit-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.sample-source-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-all;
}

.sample-cta {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.sample-cta-line {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.sticky-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 6px 24px rgba(20, 20, 19, 0.14);
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.sticky-cta__text strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.sticky-cta__text span {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta .checkout-button {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-cta__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

body.has-sticky-cta {
  padding-bottom: 84px;
}

@media (min-width: 761px) {
  .sticky-cta {
    right: 24px;
    left: auto;
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    gap: 10px;
    padding-bottom: 14px;
  }

  .home-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-hero__actions .pro-entry {
    width: auto;
    min-height: 40px;
    padding: 0 6px;
    font-size: 12.5px;
    text-align: center;
    justify-content: center;
  }

  .sample-audit-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-button--primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
  font-weight: 500;
}

.checkout-button--primary:hover:not(:disabled) {
  color: #ffffff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}
