/* ================= Tokens ================= */
:root {
  --green: #0f8a4f;
  --green-dark: #0b6e3f;
  --green-light: #22b573;
  --green-soft: #e8f6ee;
  --ink: #102a1e;
  --text: #3f4f47;
  --muted: #7a8781;
  --line: #e6ebe8;
  --bg: #ffffff;
  --bg-soft: #f6faf8;

  --blue: #2f6fd6;   --blue-soft: #eaf2fe;
  --orange: #f0662b; --orange-soft: #fff0e8;
  --purple: #8a4fd8; --purple-soft: #f3ecfd;
  --pink: #e0334d;   --pink-soft: #fdecef;
  --lime: #9bbf2a;   --lime-soft: #f3f8e2;
  --navy: #1f3a6b;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(16, 42, 30, 0.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Inter", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-green { color: var(--green); }

/* Icons */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }
.ic-xs { width: 13px; height: 13px; }
.ic-green { color: var(--green); }
.ic-muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border: 1.5px solid var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-soft); }
.btn-soft { background: var(--bg-soft); color: var(--green); }
.btn-soft:hover { background: var(--green-soft); }
.link-green { color: var(--green); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.link-green.xs { font-size: 11px; }
.link-green:hover { text-decoration: underline; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }

/* ================= Header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
}
/* The blur sits on a pseudo-element, not on the header itself. A backdrop-filter on the header
   would make it the containing block for position:fixed children, and the mobile menu
   (fixed, full screen) would then be squeezed into the 72px header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.main-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink); padding: 8px 0; }
.nav-link:hover { color: var(--green); }
.nav-menu {
  position: absolute; top: 100%; left: -12px; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; display: none; flex-direction: column;
}
.nav-menu a { padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.nav-menu a:hover { background: var(--green-soft); color: var(--green); }
.nav-item.open .nav-menu { display: flex; }
.nav-link .ic { transition: transform .2s; }
.nav-item.open .nav-link .ic { transform: rotate(180deg); }
.nav-menu-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.nav-mobile-actions { display: none; }
body.nav-open { overflow: hidden; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { display: inline-flex; padding: 6px; border-radius: 8px; color: var(--ink); }
.icon-btn:hover { background: var(--bg-soft); }
.link-login { font-size: 14px; font-weight: 500; color: var(--ink); }
.link-login:hover { color: var(--green); }
.menu-toggle { display: none; }

/* ================= Hero ================= */
.hero {
  background: linear-gradient(180deg, #f7fbf9 0%, #f3f8f5 100%);
  padding: 48px 0 40px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.hero-lead { margin-top: 18px; max-width: 460px; font-size: 16px; color: var(--text); }

.search-bar {
  margin-top: 26px; display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 10px 30px rgba(16, 42, 30, 0.08);
  max-width: 580px;
}
.search-field:first-child { flex: 1.4; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 0; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field select {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink);
  appearance: none; cursor: pointer; padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a1e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 14px;
}
.search-field select:focus { outline: none; }
.search-field:focus-within { background: var(--bg-soft); border-radius: 10px; }

.hero-stats { display: flex; gap: 0; margin-top: 30px; }
.hero-stats li { display: flex; align-items: center; gap: 12px; padding: 0 30px; border-left: 1px solid var(--line); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.2; }
.hero-stats span { font-size: 12px; color: var(--muted); }

/* Orbit visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.orbit { position: relative; width: 380px; height: 380px; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid #d8ece0; }
.ring-1 { inset: 0; }
.ring-2 { inset: 60px; border-style: dashed; border-color: #e1efe7; }
.orbit-center {
  position: absolute; inset: 110px; border-radius: 50%;
  background: radial-gradient(circle, #eaf7f0 0%, #d9f1e3 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 0 0 14px rgba(34, 181, 115, 0.06);
}
.orbit-center img { width: 58px; height: 58px; }
.orbit-center span { font-weight: 800; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }

.bubble {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 42, 30, 0.08);
  animation: float 6s ease-in-out infinite;
}
.bubble .ic { width: 26px; height: 26px; }
.b-badminton { top: -4px; left: 130px; background: var(--green-soft); color: var(--green); }
.b-basketball { top: 10px; right: 40px; background: var(--orange-soft); color: var(--orange); animation-delay: -1s; }
.b-tennis { top: 110px; left: -10px; background: var(--lime-soft); color: var(--lime); animation-delay: -2s; }
.b-football { top: 160px; right: -18px; background: var(--blue-soft); color: var(--blue); border: 2px solid #cfe0fb; animation-delay: -3s; }
.b-yoga { bottom: 40px; left: 40px; background: var(--purple-soft); color: var(--purple); animation-delay: -4s; }
.b-blank { bottom: 10px; right: 110px; background: #dff3e8; animation-delay: -5s; }
.b-blank img { width: 26px; height: 26px; opacity: .55; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.script-note {
  position: absolute; right: -10px; top: 70px;
  font-family: var(--script); font-size: 22px; line-height: 1.05; color: var(--ink);
  transform: rotate(-12deg);
}
.swoosh { width: 100px; height: 16px; display: block; margin-top: 4px; }
.swoosh path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; }

/* ================= Sections ================= */
.section { padding: 44px 0 0; }
.section-last { padding-bottom: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.section-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* City picker */
.city-picker { position: relative; }
.city-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); padding: 6px 10px; border-radius: 8px; }
.city-btn:hover { background: var(--bg-soft); }
.city-menu {
  position: absolute; right: 0; top: 110%; z-index: 10; min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  display: none;
}
.city-menu.open { display: block; }
.city-menu button { width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.city-menu button:hover, .city-menu button.active { background: var(--green-soft); color: var(--green); }

/* Live cards */
.live-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.live-card:hover { border-color: #cde6d8; box-shadow: var(--shadow); }
.live-card div { flex: 1; }
.live-card strong { display: block; font-size: 20px; color: var(--ink); line-height: 1.1; }
.live-card span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.live-card .chev { color: var(--ink); }
.live-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.live-icon .ic { width: 26px; height: 26px; }
.bg-green { background: var(--green-soft); color: var(--green); }
.bg-blue { background: var(--blue-soft); color: var(--navy); }
.bg-orange { background: var(--orange-soft); color: var(--orange); }

/* Feature cards */
.feature-card {
  position: relative; display: flex; flex-direction: column;
  padding: 18px 16px 44px; border-radius: var(--radius); min-height: 190px;
  border: 1px solid transparent; transition: border-color .2s;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin: 12px 0 8px; }
.feature-card p { font-size: 13px; color: var(--text); }
.feature-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.feature-icon .ic { width: 24px; height: 24px; }
.feature-card .go { position: absolute; left: 16px; bottom: 16px; transition: transform .2s; }
.feature-card:hover .go { transform: translateX(4px); }
.tone-green  { background: #f1f9f4; color: var(--green); }  .tone-green:hover  { border-color: #cfe9da; }
.tone-blue   { background: #f1f6fe; color: var(--blue); }   .tone-blue:hover   { border-color: #d5e3fb; }
.tone-orange { background: #fff5ef; color: var(--orange); } .tone-orange:hover { border-color: #fbdccb; }
.tone-purple { background: #f7f2fe; color: var(--purple); } .tone-purple:hover { border-color: #e5d8fa; }
.tone-pink   { background: #fef2f4; color: var(--pink); }   .tone-pink:hover   { border-color: #f9d3da; }

/* Steps */
.steps { display: flex; align-items: center; gap: 20px; }
.step { flex: 1; display: flex; align-items: center; gap: 22px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); max-width: 210px; }
.step-icon {
  position: relative; flex-shrink: 0;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1.5px solid #d8ece0; background: #fff; color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.step-icon .ic { width: 28px; height: 28px; }
.step-icon b {
  position: absolute; top: -8px; right: -10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.step-arrow { color: #c3cfc9; }

/* Sports */
.sports { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.sports a { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); padding: 6px 0; border-radius: 12px; }
.sports a:hover .sport-ic { transform: translateY(-3px); }
.sport-ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.sport-ic .ic { width: 25px; height: 25px; }
.c-green  { background: var(--green-soft); color: var(--green); }
.c-orange { background: var(--orange-soft); color: var(--orange); }
.c-navy   { background: var(--blue-soft); color: var(--navy); }
.c-lime   { background: var(--lime-soft); color: var(--lime); }
.c-blue   { background: var(--blue-soft); color: var(--blue); }
.c-purple { background: var(--purple-soft); color: var(--purple); }
.c-red    { background: var(--pink-soft); color: var(--pink); }
.c-grey   { background: #f1f3f2; color: var(--ink); }

/* Tabs */
.tabs { display: flex; gap: 6px; }
.tab { padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--ink); border-bottom: 2px solid transparent; }
.tab.is-active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.tab:hover { color: var(--green); }

/* Around cards */
.around-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.around-card.is-focus { border-color: #bfe0cd; box-shadow: var(--shadow); }
.around-card > header { display: flex; justify-content: space-between; align-items: center; }
.around-card > header h3 { font-size: 13px; font-weight: 600; }
.around-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.around-card .btn { margin-top: auto; }
.around-card .btn-outline { align-self: flex-start; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.sep { width: 3px; height: 3px; border-radius: 50%; background: #b8c2bd; display: inline-block; }
.star { fill: #f5a623; stroke: #f5a623; }
.price { font-size: 14px; font-weight: 700; color: var(--green); margin: 4px 0 5px; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 600; }

.player { display: flex; gap: 16px; align-items: flex-start; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #f6c8a8, #d9876a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.media-row { display: flex; gap: 14px; align-items: flex-start; }
/* Avatar colour variations */
.av-1 { background: linear-gradient(135deg, #f6c8a8, #d9876a); }
.av-2 { background: linear-gradient(135deg, #9fd8b8, #2f9a64); }
.av-3 { background: linear-gradient(135deg, #a9c6f5, #3f74cf); }
.av-4 { background: linear-gradient(135deg, #cdb3f2, #8a4fd8); }
.av-5 { background: linear-gradient(135deg, #f5b8c3, #d9536a); }
.av-6 { background: linear-gradient(135deg, #d8e59a, #8aaa1f); }

/* Header account link (small round initials + first name). Lives here because the header is on
   every page; it used to be in pages.css, so pages without pages.css (home, sign-up) showed a 64px avatar. */
.acct-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.acct-link:hover { border-color: var(--green); }
.header-actions .acct-link .avatar { width: 30px; height: 30px; font-size: 12px; }
@media (max-width: 960px) { .header-actions .acct-link span:last-child { display: none; } }

.thumb { width: 104px; height: 88px; border-radius: 10px; flex-shrink: 0; position: relative; overflow: hidden; }
.thumb-court {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.55) 48% 52%, transparent 52%),
    linear-gradient(180deg, #7a5a3a 0 35%, #c98c4f 35% 100%);
}
.thumb-game {
  background:
    linear-gradient(180deg, transparent 55%, rgba(255,255,255,.4) 55% 57%, transparent 57%),
    linear-gradient(180deg, #7fb58e 0 40%, #2f8a5c 40% 100%);
}
.thumb-logo { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; opacity: .9; background: #fff; border-radius: 50%; padding: 2px; }

/* Pro band */
.pro-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 36px; align-items: start;
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #eef8f2 0%, #f5fbf7 100%);
}
.band-watermark { position: absolute; right: -30px; top: -30px; width: 160px; opacity: .06; pointer-events: none; }
.pro-intro h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pro-intro p { font-size: 13px; color: var(--text); max-width: 300px; margin-bottom: 20px; }
.pro-col { display: flex; gap: 14px; }
.pro-icon { color: var(--green); padding-top: 2px; }
.pro-icon .ic { width: 28px; height: 28px; }
.pro-col h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.checks .ic { color: var(--green); stroke-width: 2.4; }

/* CTA */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 60px;
  padding: 26px 28px; border-radius: var(--radius-lg); background: #eaf6ef;
}
.cta-band h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cta-band p { font-size: 13px; color: var(--text); }
.cta-art { margin-left: auto; position: relative; width: 220px; height: 90px; }
.cta-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-lines path { fill: none; stroke: var(--green-light); stroke-width: 1.4; opacity: .7; }
.cta-logo { position: absolute; left: 70px; top: 20px; width: 50px; height: 50px; transform: rotate(-15deg); }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.1fr 1.7fr; gap: 24px; }
.footer-brand p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { font-size: 12.5px; color: var(--muted); }
.footer-col a:hover { color: var(--green); }
.footer-news p { font-size: 12.5px; color: var(--muted); }
.news-form { display: flex; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.news-form input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: 13px; }
.news-form input:focus { outline: none; }
.news-form:focus-within { border-color: var(--green); }
.news-form button { background: var(--green); color: #fff; padding: 0 14px; display: flex; align-items: center; }
.news-form button:hover { background: var(--green-dark); }
.news-msg { margin-top: 6px; color: var(--green) !important; font-weight: 600; }

.footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--muted);
}
.footer-links { margin-left: auto; display: flex; gap: 24px; }
.footer-links a:hover { color: var(--green); }
.socials { display: flex; gap: 14px; margin-left: 30px; }
.socials a { color: var(--ink); }
.socials a:hover { color: var(--green); }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .sports { grid-template-columns: repeat(5, 1fr); row-gap: 20px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .pro-band { grid-template-columns: 1fr 1fr; }
  .pro-intro { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .link-login, .header-actions .btn { display: none; }
  .header-inner { justify-content: space-between; }
  .header-inner { gap: 16px; }
  .header-actions { gap: 10px; }
  /* Full-screen panel under the header. Hidden (not just moved) when closed, so its links
     can't be tabbed to and it can't cause sideways scrolling. */
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; transition: transform .25s ease; }
  .main-nav .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-menu { position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 10px 8px; }
  .nav-menu a { padding: 11px 12px; font-size: 15px; }
  .nav-mobile-actions { display: flex; gap: 12px; margin-top: 22px; }
  .nav-mobile-actions .btn { flex: 1; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit { transform: scale(.75); margin: -40px 0; }
  .script-note { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: stretch; }
  .step-arrow { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta-art { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .main-nav { padding-left: 18px; padding-right: 18px; }
  .acct-link span:last-child { display: none; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-stats li { padding: 0 14px; }
  .hero-stats li .ic { display: none; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .sports { grid-template-columns: repeat(4, 1fr); }
  .pro-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-links { margin-left: 0; }
  .socials { margin-left: 0; }
  .tabs { width: 100%; overflow-x: auto; }
  /* on phones, only the selected "Around you" card shows */
  .around .around-card { display: none; }
  .around .around-card.is-focus { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Flash messages (server-side, after a redirect) ---------- */
.flash { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.flash-ok { background: var(--green-soft, #e8f6ef); color: var(--green, #0f8a5f); }
.flash-err { background: #fdecef; color: var(--pink, #d6336c); }
.form-alert { padding: 10px 14px; border-radius: 10px; background: #fdecef; color: var(--pink, #d6336c); font-size: 13.5px; margin-bottom: 14px; }
.form-alert.ok { background: var(--green-soft, #e8f6ef); color: var(--green, #0f8a5f); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- City picker (city-picker.js turns every <select name="city"> into a type-to-search box) ---------- */
.cp-wrap { position: relative; flex: 1; min-width: 0; }
.cp-input { width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }

/* Inside a search bar (home hero, list pages): looks like the plain text next to the icon, no box of its own */
.search-field .cp-input {
  border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: 13px; color: var(--ink);
}
.search-field .cp-input:focus, .search-field .cp-input:focus-visible { outline: none; }
.search-field .cp-input::placeholder { color: var(--muted); }

/* Inside a form field: same look as the other inputs */
.field .cp-input {
  border: 1px solid #d9e1dc; border-radius: 10px; padding: 11px 13px; background: #fff;
  font: inherit; font-size: 14px; color: var(--ink);
}
.field .cp-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* Suggestion list floats over the page, so typing never changes the size of the bar */
.cp-list {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 100%; width: max-content; max-width: min(340px, 90vw); max-height: 320px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 42, 30, 0.12);
}
.cp-list[hidden], .cp-panel[hidden] { display: none; }
.cp-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); }
.cp-item strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-item span { font-size: 12px; color: var(--muted); }
.cp-item:hover, .cp-item.is-active { background: var(--green-soft); }
.cp-group { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cp-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* Header city button: small search panel */
.cp-panel {
  position: absolute; right: 0; top: 110%; z-index: 60; width: 300px; max-width: 90vw; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 42, 30, 0.12);
}
.cp-panel .cp-input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.cp-panel .cp-input:focus { outline: none; border-color: var(--green); }
.cp-panel .cp-list { position: static; max-width: none; width: auto; border: 0; box-shadow: none; padding: 6px 0 0; }

/* Hero sections hide their overflow (for the decoration). Let the city list hang below them,
   but still never scroll sideways. */
@supports (overflow: clip) {
  :is(.hero, .page-hero, .sport-hero, .detail-hero):has(.cp-wrap) { overflow: visible; overflow-x: clip; }
}

/* ---------- Shared small pieces (used on many pages, so they live here and no page needs an extra sheet for them) ---------- */
.hint { font-size: 12px; color: var(--muted); }
.btn-block { width: 100%; }
.f-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.book-empty { font-size: 13px; color: var(--muted); padding: 12px; background: var(--bg-soft); border-radius: 10px; text-align: center; }
.book-note { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.book-note .ic { width: 14px; height: 14px; margin-top: 2px; color: var(--green); flex-shrink: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.sum-row span:first-child { color: var(--text); }
.sum-row strong { color: var(--ink); }
.sum-total { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; }
.sum-total strong { font-size: 18px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; }
.pager-info { font-size: 14px; color: var(--muted); }
.pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-inline form { margin: 0; }
.hub-section { margin-bottom: 36px; }
.help-group { font-size: 16px; margin: 22px 0 10px; }
.help-group:first-child { margin-top: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-grid .feature-card { min-height: 0; padding-bottom: 18px; }
.spots { display: grid; gap: 6px; }
.spots span { font-size: 12px; color: var(--muted); }
.spots-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.spots-bar b { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.spots-bar.hot b { background: var(--orange); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill + .pill { margin-left: 6px; }
@media (max-width: 600px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Phone-only pieces: hidden on desktop, mobile.css shows them ---------- */
.tabbar { display: none; }

/* City picker at the top of the phone/tablet menu */
.nav-city { display: none; }
@media (max-width: 960px) {
  .nav-city { display: grid; gap: 6px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
  .nav-city-label { font-size: 12px; font-weight: 600; color: var(--muted); }
  .nav-city-pick { position: relative; }
  .nav-city-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    font-size: 16px; font-weight: 600; color: var(--ink);
  }
  .nav-city-btn span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-city-btn .ic { color: var(--green); }
  .nav-city-btn[aria-expanded="true"] { border-color: var(--green); }
  .nav-city-btn[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
  /* the search panel opens in place, inside the menu */
  .nav-city .cp-panel { position: static; width: auto; max-width: none; margin-top: 8px; box-shadow: none; }
  .nav-city .cp-panel .cp-input { font-size: 16px; min-height: 46px; }
  .nav-city .cp-list { max-height: 300px; }
}

/* ---------- Status badges (bookings, invites, orders, dashboards) - one set for every page ---------- */
.status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg-soft); color: var(--muted); }
.status-confirmed, .status-accepted, .status-paid, .status-live, .status-scheduled { background: var(--green-soft); color: var(--green-dark); }
.status-pending, .status-pending-payment, .status-reserved, .status-new, .status-no-show { background: var(--orange-soft); color: #b8481a; }
.status-completed, .status-checked { background: var(--blue-soft); color: var(--navy); }
.status-cancelled, .status-declined, .status-failed, .status-refunded { background: var(--pink-soft); color: #b3243a; }
.status-expired, .status-draft { background: #eef1ef; color: var(--muted); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Shown to coach / venue / organiser accounts instead of Book, Join, Register, Invite (tags/playerOnlyNote.tag). */
.book-note-box { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; font-size: 14px; color: var(--text); }
.book-note-box p { margin: 0 0 10px; }
.book-note-box strong { color: var(--ink); }

/* Desktop header: change city (header.jspf). The phone menu has its own city box (.nav-city). */
.header-city { position: relative; }
.header-city-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 190px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.header-city-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-city-btn .ic:first-child { color: var(--green); }
.header-city-btn:hover, .header-city-btn[aria-expanded="true"] { border-color: var(--green); }
.header-city .cp-panel { right: 0; left: auto; }
@media (max-width: 960px) { .header-city { display: none; } }

/* Home "What's happening": city button opens the same search panel */
.home-city .cp-panel { right: 0; left: auto; }

/* ---------- App (PWA): install banner, install button (pwa.js, includes/pwa-banner.jspf) ---------- */
.pwa-banner { display: none; }
.btn[data-pwa-install][hidden], .pwa-ios-hint[hidden], .pwa-banner[hidden] { display: none !important; }
.pwa-ios-hint { margin: 10px 4px 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) {
  /* Floats just above the bottom tab bar (64px + the iPhone home-indicator space) */
  .pwa-banner {
    position: fixed; left: 10px; right: 10px; z-index: 75;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px);
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(16, 42, 30, 0.16);
  }
  .pwa-banner img { flex: none; border-radius: 10px; }
  .pwa-banner p { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
  .pwa-banner .btn { flex: none; }
  .pwa-banner-close { flex: none; border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; padding: 8px; cursor: pointer; }
  /* The tab bar is hidden on booking / checkout pages, so the banner goes too */
  body:has(.mobile-cta) .pwa-banner, body:has(.checkout-wrap) .pwa-banner { display: none; }
}
/* Opened from the home screen: no blue tap flash, no text-selection on buttons, like a native app */
html.is-pwa { -webkit-tap-highlight-color: transparent; }
html.is-pwa .btn, html.is-pwa .tabbar { -webkit-user-select: none; user-select: none; }

/* ---------- Notifications card (tags/pushToggle.tag, js/push.js) ---------- */
.push-card { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.push-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.push-card [hidden] { display: none !important; }
.push-status { margin: 0 0 12px; color: var(--text); }
.push-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.push-card .hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Page hero + breadcrumbs (every page type uses them, so they live here, not in pages.css) ---------- */
.page-hero {
  background: linear-gradient(180deg, #f7fbf9 0%, #f3f8f5 100%);
  padding: 28px 0 30px; position: relative; overflow: hidden;
}
.page-hero .hero-mark { position: absolute; right: -40px; top: -40px; width: 200px; opacity: .06; pointer-events: none; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--green); }
.crumbs .ic { width: 12px; height: 12px; }
.page-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.page-hero .lead { margin-top: 8px; color: var(--text); max-width: 560px; }
.page-hero .search-bar { margin-top: 20px; max-width: 760px; }


/* ---------- Header search box (header.jspf + js/search.js) ---------- */
.header-search { position: relative; }
.srch-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: min(560px, 92vw); padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 42, 30, 0.14); }
.srch-panel[hidden] { display: none; }
.srch-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
.srch-form:focus-within { border-color: var(--green); }
.srch-form .ic { color: var(--muted); flex: none; }
.srch-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 6px 0; }
.srch-form input:focus { outline: none; }
.srch-reply { margin: 12px 4px 4px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.srch-reply[hidden] { display: none; }
.srch-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.srch-list li a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.srch-list li a strong { font-weight: 600; }
.srch-list li.is-active a, .srch-list li a:hover { background: var(--bg-soft); }
.srch-kind { grid-row: span 2; align-self: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green); min-width: 58px; }
.srch-sub { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.srch-hint { margin: 8px 4px 0; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .srch-panel { position: fixed; left: 8px; right: 8px; width: auto; top: calc(env(safe-area-inset-top, 0px) + 64px); }
}

/* ---------- City chooser window (desktop header button with data-city-modal) ---------- */
html.cp-lock { overflow: hidden; }
.cp-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 16px 16px; background: rgba(16, 42, 30, 0.35); }
.cp-overlay[hidden] { display: none; }
.cp-panel.cp-modal-card { position: static; width: min(460px, 100%); max-width: none; max-height: 76vh; overflow-y: auto; padding: 16px; border-radius: 16px; }
.cp-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cp-modal-head strong { font-size: 17px; color: var(--ink); }
.cp-close { border: 0; background: transparent; font-size: 16px; line-height: 1; padding: 8px; cursor: pointer; color: var(--muted); }
.cp-modal-hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.cp-modal-card .cp-input { width: 100%; }
.cp-modal-card .cp-list { max-height: none; }
