/* Brand colors from the logo: "Match" yellow, "Cam" navy (lighter blue on dark surfaces). */
@import url("../fonts/fonts.css");
:root {
  --navy: #13254E;
  --navy-deep: #0B1736;
  --yellow: #F4B806;
  --cam: #13254E;
  --bg: #ffffff;
  --surface: #F4F6FB;
  --text: #13254E;
  --muted: #4D5873;
  --border: #DCE2EF;
  --link: #1A3A8A;
  --header-bg: #ffffff;
  --nav: #13254E;
  --card-title: #13254E;
  --free-bg: #E3F3EA;
  --free-fg: #1E6B43;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cam: #8FB0FF;
    --bg: #0B1736;
    --surface: #12224A;
    --text: #EEF1F8;
    --muted: #AAB4CE;
    --border: #22305C;
    --link: #F4B806;
    --header-bg: #13254E;
    --nav: rgba(255, 255, 255, 0.82);
    --card-title: #F4B806;
    --free-bg: #123222;
    --free-fg: #7FD3A4;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and wordmark */
.site-header { background: var(--header-bg); border-bottom: 4px solid var(--yellow); }
.site-header .inner, main, footer .inner { max-width: 960px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.wordmark { font: italic 800 30px/1 var(--display); letter-spacing: 0.01em; }
.wordmark .match { color: var(--yellow); }
.wordmark .cam { color: var(--cam); }
nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
nav a { color: var(--nav); text-decoration: none; font-size: 16px; font-weight: 600; padding: 10px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"], nav a:hover { color: var(--text); border-bottom-color: var(--yellow); }
@media (prefers-color-scheme: dark) { nav a[aria-current="page"], nav a:hover { color: #fff; } }

main { padding-top: 32px; padding-bottom: 56px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: 0.005em; }
h1 { font-size: clamp(38px, 7vw, 56px); margin: 0 0 12px; }
h2 { font-size: 32px; margin: 48px 0 8px; }
h3 { font-size: 22px; margin: 22px 0 4px; }
main > h2:first-child { margin-top: 0; }
.meta { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.version { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 2px 10px; margin-right: 8px; }
.lead { font-size: 20px; color: var(--muted); max-width: 62ch; }
p, li { max-width: 72ch; }
.muted { color: var(--muted); margin-top: 0; }
.jump { font-size: 15px; color: var(--muted); }

/* Hero with the scoreboard overlay */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--navy); color: #EEF1F8; border-radius: 20px; padding: 40px 32px; margin: 0 0 8px; }
.hero h1 { color: #fff; }
.hero .lead { color: #C5CEE6; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero .button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.court { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #2B3550 0%, #3A4566 58%, #B98A4E 58%, #A67A42 100%); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.court::before { content: ""; position: absolute; left: 6%; right: 6%; top: 68%; bottom: 8%; border: 2px solid rgba(255, 255, 255, 0.6); transform: perspective(300px) rotateX(18deg); }
.net { position: absolute; left: 4%; right: 4%; top: 46%; height: 12%; border-top: 3px solid rgba(255, 255, 255, 0.85); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 12px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 12px); }
/* Mirrors VolleyballScoreboardRenderer: two team rows at 50% opacity and a dark clock strip, top-left, drawn about 3x larger so it stays legible here. */
.scoreboard { position: absolute; left: 5.3cqw; top: 5.3cqw; width: 42.8cqw; border-radius: 1.4cqw; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.2); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #fff; }
.scoreboard .row { display: flex; align-items: center; height: 7.9cqw; }
.scoreboard .row.home { background: rgba(229, 56, 75, 0.5); }
.scoreboard .row.guest { background: rgba(31, 111, 235, 0.5); border-top: 1px solid rgba(0, 0, 0, 0.2); }
.scoreboard .name { width: 18.4cqw; padding-left: 2.4cqw; font-weight: 700; font-size: 3.15cqw; letter-spacing: 0; }
.scoreboard .set { flex: 0 0 7.9cqw; text-align: center; font-weight: 800; font-size: 3.4cqw; font-variant-numeric: tabular-nums; align-self: stretch; display: flex; align-items: center; justify-content: center; border-left: 1px solid rgba(0, 0, 0, 0.1); }
.scoreboard .set.win span, .scoreboard .set.win { text-decoration: underline; text-decoration-thickness: 0.45cqw; text-underline-offset: 0.5cqw; }
.scoreboard .clock { height: 5.25cqw; display: flex; align-items: center; justify-content: flex-end; padding-right: 2.4cqw; background: rgba(26, 26, 26, 0.7); color: #D3D3D3; font-weight: 700; font-size: 2.5cqw; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 28px 20px; } }

/* Buttons, tags, cards */
.button { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 22px; min-height: 44px; transition: filter 0.2s; }
.button:hover { filter: brightness(0.93); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 4px; padding: 1px 8px; white-space: nowrap; vertical-align: middle; }
.tag.pro { background: var(--yellow); color: var(--navy); }
.tag.free { background: var(--free-bg); color: var(--free-fg); }
.card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--yellow); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin: 20px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; color: var(--card-title); }
.feat { display: flex; flex-direction: column; gap: 4px; }
.feat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.feat p, .feat ul { margin: 0; }
.feat ul { padding-left: 18px; }
.feat.is-pro { border-top-color: var(--navy); }
@media (prefers-color-scheme: dark) { .feat.is-pro { border-top-color: var(--yellow); } }
.platforms { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.platforms span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 7px; }

/* Modes strip and steps */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; }
.mode { border-left: 6px solid var(--yellow); background: var(--surface); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.mode h3 { margin: 0 0 4px; }
.mode p { margin: 0; color: var(--muted); }
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0; }
ol.steps li { counter-increment: step; position: relative; padding: 4px 0 12px 48px; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 800 20px/34px var(--display); text-align: center; }
details.howto { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 12px 0; padding: 0 20px; }
details.howto summary { cursor: pointer; font: 700 24px/1.2 var(--display); padding: 16px 0; min-height: 44px; }
details.howto[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }

/* Consent callout */
.consent { border: 2px solid var(--yellow); border-radius: 14px; padding: 8px 24px 16px; background: var(--surface); margin: 24px 0; }
.consent h2 { margin-top: 16px; }

/* Tables, footer */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
table.compare { min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
td.c, th.c { text-align: center; width: 70px; }
td.yes { color: var(--free-fg); font-weight: 700; }
td.no { color: var(--muted); }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
footer .inner { padding-top: 24px; padding-bottom: 36px; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
