:root {
  --bg: #0b1512;
  --bg-soft: #101e19;
  --card: #14251e;
  --card-hover: #193027;
  --line: rgba(224, 244, 232, 0.11);
  --text: #f3f7ef;
  --muted: #9caea5;
  --accent: #c9f269;
  --accent-dark: #1b2b13;
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(108, 151, 60, 0.11), transparent 28rem),
    var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 21, 18, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 38px;
}

.brand-mark::before {
  position: absolute;
  left: 7px;
  bottom: 4px;
  width: 19px;
  height: 28px;
  border-bottom: 6px solid var(--accent);
  border-left: 6px solid var(--accent);
  border-radius: 0 0 0 9px;
  content: "";
  transform: rotate(-12deg);
}

.brand-mark span {
  position: absolute;
  top: 1px;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-name {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}

.brand-name > span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--accent-dark);
  background: var(--accent);
}

.button-primary:hover {
  background: #d7fb84;
}

.button-outline,
.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.button-outline:hover,
.button-ghost:hover {
  border-color: rgba(201, 242, 105, 0.5);
  background: rgba(201, 242, 105, 0.05);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
}

.demo-banner {
  padding: 10px 0;
  color: #e3edbd;
  border-bottom: 1px solid rgba(201, 242, 105, 0.15);
  background: rgba(201, 242, 105, 0.07);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.hero {
  overflow: hidden;
  padding: 84px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(201, 242, 105, 0.09);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 760;
  letter-spacing: -5px;
  line-height: 0.94;
}

h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  gap: 0;
  margin: 48px 0 0;
}

.hero-facts > div {
  min-width: 132px;
  padding-right: 28px;
}

.hero-facts > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin-bottom: 6px;
  font-size: 21px;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.court-visual {
  position: relative;
  min-height: 470px;
}

.court-lines {
  position: absolute;
  inset: 0 0 50px 35px;
  overflow: hidden;
  border: 2px solid rgba(201, 242, 105, 0.26);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(201, 242, 105, 0.1), transparent 60%),
    #14261d;
  transform: rotate(5deg);
}

.court-lines::before,
.court-lines::after {
  position: absolute;
  content: "";
}

.court-lines::before {
  inset: 45px 36px;
  border: 1px solid rgba(230, 255, 208, 0.26);
}

.court-lines::after {
  top: 45px;
  bottom: 45px;
  left: 50%;
  border-left: 1px solid rgba(230, 255, 208, 0.26);
}

.court-net {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  background: repeating-linear-gradient(to bottom, rgba(11, 21, 18, 0.35) 0 3px, transparent 3px 7px);
  transform: translateX(-50%);
}

.court-ball {
  position: absolute;
  top: 68px;
  right: 74px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 45px rgba(201, 242, 105, 0.25);
}

.live-card {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 0;
  padding: 28px 30px 22px;
  border: 1px solid rgba(224, 244, 232, 0.14);
  border-radius: 24px;
  background: rgba(15, 29, 23, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.live-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.live-number {
  margin-top: 12px;
  color: var(--accent);
  font-size: 72px;
  font-weight: 750;
  letter-spacing: -4px;
  line-height: 1;
}

.live-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.live-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-bottom span:last-child {
  color: var(--accent);
}

.schedule-section {
  padding: 90px 0;
  color: #142018;
  background: #f0f3ec;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading h2,
.feature-card h2,
.final-cta h2 {
  margin: 9px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.08;
}

.section-heading > p {
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.65;
}

.schedule-section .section-kicker {
  color: #587d2c;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(20, 32, 24, 0.14);
  border-radius: 50%;
  color: #142018;
  background: transparent;
  font-size: 26px;
}

.icon-button:hover {
  background: #e4e9de;
}

.icon-button.is-loading span {
  animation: rotate 800ms linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.filter-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(20, 32, 24, 0.12);
}

.date-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-button {
  min-width: 76px;
  padding: 12px 15px;
  border: 1px solid rgba(20, 32, 24, 0.12);
  border-radius: 13px;
  color: #405047;
  background: transparent;
  text-align: left;
}

.date-button-day,
.date-button-date {
  display: block;
}

.date-button-day {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 700;
}

.date-button-date {
  color: #78857d;
  font-size: 11px;
}

.date-button.is-active {
  border-color: #173324;
  color: var(--text);
  background: #173324;
}

.date-button.is-active .date-button-date {
  color: #adbbb2;
}

.club-filter {
  display: grid;
  flex: 0 0 235px;
  gap: 7px;
  color: #6e7c74;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.club-filter select {
  width: 100%;
  min-height: 54px;
  padding: 0 38px 0 15px;
  border: 1px solid rgba(20, 32, 24, 0.14);
  border-radius: 13px;
  color: #142018;
  background: #f0f3ec;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 2px 18px;
}

.results-meta strong {
  font-size: 17px;
}

.results-meta div > span {
  margin-left: 12px;
  color: #718078;
  font-size: 13px;
}

.updated-at {
  color: #718078;
  font-size: 12px;
}

.slots-list {
  display: grid;
  gap: 10px;
  min-height: 150px;
}

.slot-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 140px 160px;
  align-items: center;
  gap: 24px;
  padding: 21px 22px;
  border: 1px solid rgba(20, 32, 24, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.46);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.slot-card:hover {
  border-color: rgba(68, 100, 41, 0.32);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.slot-time strong,
.slot-price strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.7px;
}

.slot-time span,
.slot-price span {
  display: block;
  margin-top: 4px;
  color: #718078;
  font-size: 11px;
}

.slot-main h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.slot-main p {
  margin-bottom: 0;
  color: #718078;
  font-size: 13px;
}

.slot-book,
.slot-book-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.slot-book {
  color: var(--accent-dark);
  background: var(--accent);
}

.slot-book:hover {
  background: #d7fb84;
}

.slot-book-disabled {
  color: #718078;
  background: #e0e5db;
  cursor: default;
}

.load-more {
  justify-self: center;
  margin-top: 15px;
  color: #142018;
  border-color: rgba(20, 32, 24, 0.18);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed rgba(20, 32, 24, 0.18);
  border-radius: 17px;
  color: #536158;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #142018;
  font-size: 19px;
}

.empty-state p {
  margin-bottom: 22px;
}

.empty-state .button {
  color: #142018;
  border-color: rgba(20, 32, 24, 0.18);
}

.skeleton-card {
  height: 90px;
  border-radius: 17px;
  background: linear-gradient(100deg, #e5e9e0 25%, #eef1ea 45%, #e5e9e0 65%);
  background-size: 300% 100%;
  animation: skeleton 1.4s ease infinite;
}

@keyframes skeleton {
  to { background-position-x: -150%; }
}

.clubs-section {
  padding: 100px 0;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.club-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: background 160ms ease, transform 160ms ease;
}

.club-card:hover {
  background: var(--card-hover);
  transform: translateY(-3px);
}

.club-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

.club-mark {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent-dark);
  background: var(--accent);
  font-size: 20px;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 9px;
}

.club-card h3 {
  margin-bottom: 9px;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.club-address {
  min-height: 38px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.club-contact {
  margin: -12px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.club-website {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
}

.club-card.is-inactive {
  background: rgba(20, 37, 30, 0.65);
}

.club-card.is-inactive .club-mark {
  color: var(--muted);
  background: #2a3a32;
}

.club-select-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.club-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.club-price {
  color: var(--accent);
  font-weight: 700;
}

.club-courts {
  color: var(--muted);
}

.club-select-button {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.club-select-button:hover {
  border-color: rgba(201, 242, 105, 0.4);
  color: var(--accent);
}

.feature-section {
  padding: 0 0 100px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 55px 60px;
  border-radius: 28px;
  color: var(--accent-dark);
  background: var(--accent);
}

.feature-card .section-kicker {
  color: #536f27;
}

.feature-card h2 {
  margin-top: 12px;
}

.feature-card > p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.65;
}

.how-section {
  padding: 10px 0 100px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-grid li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: 35px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.steps-grid h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.steps-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.rules-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-top: 55px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.rules-note strong {
  color: var(--accent);
}

.rules-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.final-cta {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer {
  padding: 36px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-inner .brand-name {
  color: var(--text);
  font-size: 20px;
}

.footer-inner .brand-mark {
  transform: scale(0.8);
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid {
    gap: 35px;
  }

  .hero-facts > div {
    min-width: 0;
    padding-right: 18px;
  }

  .hero-facts > div + div {
    padding-left: 18px;
  }

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .club-filter {
    flex-basis: auto;
    max-width: 320px;
  }

  .slot-card {
    grid-template-columns: 80px minmax(0, 1fr) 120px;
    gap: 18px;
  }

  .slot-book,
  .slot-book-disabled {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .clubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 66px;
    gap: 15px;
  }

  .main-nav {
    display: none;
  }

  .header-inner > .button {
    margin-left: auto;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero {
    padding: 54px 0 65px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(52px, 16vw, 76px);
    letter-spacing: -3px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-facts {
    justify-content: space-between;
    gap: 16px;
  }

  .hero-facts > div {
    flex: 1;
    padding: 0;
  }

  .hero-facts > div + div {
    padding-left: 16px;
  }

  .hero-facts dt {
    font-size: 18px;
  }

  .court-visual {
    min-height: 410px;
  }

  .court-lines {
    left: 20px;
  }

  .schedule-section,
  .clubs-section {
    padding: 70px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .schedule-heading {
    align-items: center;
    flex-direction: row;
  }

  .date-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .date-button {
    min-width: 0;
    padding: 10px;
  }

  .results-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .results-meta div > span {
    display: block;
    margin: 5px 0 0;
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 28px;
  }

  .feature-section {
    padding-bottom: 70px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-number {
    margin-bottom: 20px;
  }

  .rules-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner > .button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-facts dd {
    font-size: 10px;
  }

  .slot-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }

  .slot-price {
    grid-column: 1;
  }

  .slot-book,
  .slot-book-disabled {
    grid-column: 2;
    justify-self: stretch;
  }

  .slot-price strong {
    font-size: 17px;
  }

  .slot-main p {
    line-height: 1.5;
  }

  .clubs-grid {
    grid-template-columns: 1fr;
  }

  .date-filter {
    grid-template-columns: repeat(3, 1fr);
  }

  .club-filter {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.time-filter { margin: 16px 0; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .button, .date-button, .icon-button, .slot-card a {
    transition: scale .14s ease, background-color .18s, color .18s, transform .18s;
  }
  :is(.button, .date-button, .icon-button, .slot-card a):active { scale: .96; }
  @keyframes arrive {
    from { opacity: .55; translate: 0 7px; }
    to { opacity: 1; translate: 0 0; }
  }
  section:target > div, .slot-card, .empty-state { animation: arrive .23s ease-out; }
}
.club-card summary { cursor: pointer; padding: 8px 0; }
