@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #07090c;
  --line: #eef2ea;
  --ink: #12141a;
  --paper: #f4f5f1;
  --mute: #5e646f;
  --hair: #d4d7d0;
  --ball: #d2ff1a;
  --signal: #1f4bff;
  --cage: #00d7c2;
  --danger: #d12c32;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --ui: 'Titillium Web', 'Trebuchet MS', 'Avenir Next', ui-sans-serif, sans-serif;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: url('/assets/cursor-ball.svg') 16 16, auto;
  }
  a,
  button,
  .button,
  .text-button,
  label,
  summary,
  [role='button'],
  [data-action],
  input[type='submit'],
  input[type='button'],
  select {
    cursor: url('/assets/cursor-ball.svg') 16 16, pointer;
  }
  input:not([type='submit']):not([type='button']):not([type='checkbox']):not([type='radio']),
  textarea {
    cursor: text;
  }
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
::selection { background: var(--ball); color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.header :focus-visible, .scoreboard :focus-visible { outline-color: var(--ball); }
input, select { caret-color: var(--signal); }

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 30;
  background: var(--ball);
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 700;
}
.skip:focus { top: 10px; }

.header {
  background: var(--night);
  color: var(--line);
}
.header-inner {
  max-width: 1440px;
  min-height: 72px;
  padding: 0 40px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand span { color: var(--ball); }
.header nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 28px;
  flex: 1;
}
.header nav a {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #eef2ea99;
  position: relative;
  white-space: nowrap;
}
.header nav a[aria-current='page'] { color: var(--line); }
.header nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ball);
}
.header nav a:hover { color: var(--line); }
#account { margin-left: auto; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--ball);
  color: var(--ink);
  border: 1px solid var(--ball);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.button:hover { background: #e2ff63; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.small { min-height: 36px; padding: 8px 14px; font-size: 12px; }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #b8bdb6;
}
.button.secondary:hover {
  background: var(--ink);
  color: var(--line);
  border-color: var(--ink);
}
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.header .button {
  background: var(--ball);
  border-color: var(--ball);
  color: var(--ink);
}
.text-button {
  border: 0;
  background: none;
  color: inherit;
  padding: 4px 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page { max-width: 1360px; margin: 0 auto; padding: 8px 40px 72px; }
.explore-page { max-width: none; padding: 0 0 72px; }

.scoreboard {
  background: var(--night);
  color: var(--line);
  padding: 28px 40px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.scoreboard::before {
  content: '';
  position: absolute;
  inset: 12% 8% auto 8%;
  height: 76%;
  border: 2px solid #eef2ea22;
  pointer-events: none;
}
.scoreboard-clock span,
.scoreboard-clock small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eef2ea9e;
}
.scoreboard-clock strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.86;
  color: var(--ball);
  font-variant-numeric: tabular-nums;
}
.sport-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.sport-switch > span {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: var(--ball);
  line-height: 1;
}
.sport-word {
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  border: 0;
  padding: 0 0 8px;
  background: none;
  color: #eef2ea66;
  position: relative;
}
.sport-word.selected { color: var(--line); }
.sport-word.selected[data-sport='padel'] { color: var(--cage); }
.sport-word.selected[data-sport='tennis'] { color: var(--ball); }
.sport-word::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.sport-word.selected::after,
.sport-word:hover::after { transform: scaleX(1); }

.search-bar {
  display: grid;
  gap: 10px;
  min-width: 240px;
  position: relative;
  z-index: 1;
}
.search-bar label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eef2ea9e;
}
.search-bar input,
.search-bar select {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2ea55;
  border-radius: 0;
  padding: 8px 0;
  font-size: 15px;
  color: var(--line);
  background: transparent;
  font-weight: 600;
}
.search-bar .button { min-height: 44px; }

.explore-body {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 40px 0;
}
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
.day-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 4px;
  border-radius: 2px;
  color: var(--mute);
  font-size: 11px;
}
.day-button strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.day-button.selected {
  background: var(--ink);
  color: var(--ball);
}
.day-button.selected strong { color: var(--ball); }
.day-button:hover:not(.selected) { border-color: var(--ink); }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0 18px;
}
.results-header h2 { font-size: 18px; font-weight: 700; margin: 0; }
.results-header > span { font-size: 12px; color: var(--mute); }

.club-results { display: grid; gap: 0; }
.club-result {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.club-poster {
  background: var(--night);
  color: var(--line);
  min-height: 210px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.club-poster:hover { text-decoration: none; }
.poster-city {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.poster-sport {
  font-family: var(--display);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.78;
  display: block;
}
.poster-caption { font-size: 10px; letter-spacing: 0.08em; font-weight: 700; }
.poster-navigli { background: #10182e; color: var(--cage); }
.poster-aranci { background: var(--ball); color: var(--ink); }
.poster-dora { background: var(--signal); color: var(--line); }

.result-heading { display: flex; justify-content: space-between; gap: 16px; }
.city {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.result-heading h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
.result-price { flex-shrink: 0; text-align: right; }
.result-price small { font-size: 10px; display: block; color: var(--mute); margin-bottom: 4px; }
.result-price strong { font-size: 20px; }
.result-description {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.55;
  margin: 12px 0 18px;
  max-width: 70ch;
}
.availability-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
}
.availability-title a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.quick-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.quick-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid #1f4bff44;
  border-radius: 2px;
  background: #fff;
  color: var(--signal);
  padding: 8px 2px;
  font-variant-numeric: tabular-nums;
}
.quick-slot strong { font-family: var(--display); font-size: 22px; font-weight: 700; }
.quick-slot span { font-size: 10px; }
.quick-slot:hover {
  background: var(--ball);
  color: var(--ink);
  border-color: var(--ball);
  text-decoration: none;
}

footer {
  max-width: 1360px;
  margin: auto;
  padding: 28px 40px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--mute);
}
.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-right: auto;
}
.footer-brand span { color: var(--signal); }
.demo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--ball);
  margin-right: 6px;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 28px 0 16px;
}
.lead {
  max-width: 70ch;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.back {
  display: inline-block;
  margin: 28px 0 16px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.club-detail-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 16px;
}
.detail-poster {
  padding: 28px;
  min-height: 240px;
  background: var(--night);
  color: var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.detail-poster span { font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; }
.detail-poster strong {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.85;
  font-weight: 700;
}
.amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.amenities span { background: #fff; padding: 7px 10px; font-size: 12px; border: 1px solid var(--hair); }
.section-head { margin: 28px 0 16px; }
.section-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin: 0; font-size: 13px; color: var(--mute); }
.toolbar { display: flex; align-items: end; gap: 16px; margin: 20px 0 28px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; }
.field input, .field select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #b8bdb6;
  border-radius: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}
.field small { font-size: 11px; font-weight: 400; color: var(--mute); line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.court-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.court-row h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.muted { color: var(--mute); font-size: 12px; line-height: 1.55; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  border: 1px solid #1f4bff44;
  border-radius: 2px;
  padding: 12px 16px;
  background: #fff;
  color: var(--signal);
  min-width: 92px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slot span { display: block; font-size: 10px; font-weight: 400; margin-top: 6px; }
.slot:hover:not(:disabled) {
  background: var(--ball);
  color: var(--ink);
  border-color: var(--ball);
}
.slot:disabled {
  background: transparent;
  color: var(--mute);
  border-color: var(--hair);
  opacity: .7;
}
.note {
  padding: 16px 18px;
  margin: 24px 0;
  background: #fff;
  border: 1px solid var(--hair);
  color: var(--mute);
  font-size: 12px;
  line-height: 1.6;
}
.error {
  background: #fdecee;
  color: #94272b;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 2px;
}
.error:empty { display: none; }
.loading, .empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--mute);
  line-height: 1.6;
}
.empty h1, .empty h2 { color: var(--ink); }
.empty .button { margin-top: 14px; }

.booking-list, .match-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.booking-card, .match-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
}
.booking-date { flex: 0 0 120px; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.booking-date strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  color: var(--signal);
  margin-bottom: 4px;
}
.booking-info { flex: 1; min-width: 0; }
.booking-info h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; }
.booking-info p { font-size: 13px; color: var(--mute); line-height: 1.5; margin: 6px 0; }
.booking-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.status-label {
  display: inline-block;
  font-size: 11px;
  color: var(--ink);
  background: var(--ball);
  padding: 6px 8px;
  margin-top: 4px;
  font-weight: 700;
}
.cancelled { opacity: .6; }
.players { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; color: var(--mute); font-size: 11px; }
.player-ball {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  width: 28px;
  background: var(--ink);
  color: var(--ball);
  font-size: 11px;
  font-weight: 700;
}
.match-action { flex: 0 0 200px; text-align: right; }
.match-action strong { display: block; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.match-action .button { margin-top: 16px; min-width: 150px; }

.manager-stats {
  display: flex;
  gap: 48px;
  padding: 20px 0;
  margin: 20px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hair);
}
.manager-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  color: var(--signal);
}
.manager-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.panel h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-top: 28px; }
.price-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.price-form .field { flex: 1; }
.price-form [data-error]:not(:empty) { flex-basis: 100%; }
.compact-list { list-style: none; padding: 0; margin: 0; }
.compact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  font-size: 13px;
}
.compact-list p { margin: 4px 0 0; }
.profile { max-width: 520px; }
.stack { display: grid; gap: 18px; }
.inner { padding: 0 40px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--night);
  color: var(--line);
  padding: 14px 22px;
  border-radius: 2px;
  max-width: 90vw;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 10px 32px #07090c40;
}
dialog {
  color: var(--ink);
  background: #fff;
  border: 0;
  border-top: 6px solid var(--ball);
  border-radius: 8px;
  padding: 32px;
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 18px 60px #07090c40;
}
dialog::backdrop { background: #07090ccc; }
.close-button {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 28px;
  background: transparent;
  color: var(--mute);
  border: 0;
}
.dialog-title {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 12px;
}
.dialog-subtitle { color: var(--mute); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.dialog-brand { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 18px; }
.auth-toggle { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 13px; text-align: center; }
.password-wrap { display: flex; position: relative; }
.password-wrap input { padding-right: 78px; }
.password-wrap button {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  padding: 2px;
}
.summary { margin: 20px 0; }
.summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.summary dt { color: var(--mute); }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary .total { font-size: 18px; }
.full { width: 100%; }
.privacy-copy p { font-size: 13px; color: var(--mute); line-height: 1.7; }

@media (max-width: 1100px) {
  .header-inner, .scoreboard, .explore-body, .inner, footer { padding-left: 24px; padding-right: 24px; }
  .scoreboard { grid-template-columns: 1fr; gap: 20px; }
  .club-result { grid-template-columns: 128px minmax(0, 1fr); }
  .quick-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .header-inner {
    padding: 16px 16px 0;
    flex-wrap: wrap;
    gap: 0;
    min-height: 108px;
  }
  .header nav {
    order: 3;
    flex: auto;
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    min-height: 48px;
  }
  .scoreboard, .explore-body, .inner, footer { padding-left: 16px; padding-right: 16px; }
  .club-detail-top, .court-row, .manager-grid { grid-template-columns: 1fr; }
  .booking-card, .match-card { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 520px) {
  .sport-word { font-size: clamp(40px, 14vw, 64px); }
  .scoreboard-clock strong { font-size: 64px; }
  .club-result { grid-template-columns: 72px minmax(0, 1fr); }
  .poster-sport { font-size: 42px; }
  .result-description, .availability-title a { display: none; }
  .quick-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-title { font-size: 40px; }
  .cta, .button.full { width: 100%; }
  footer { flex-wrap: wrap; }
  .footer-brand { width: 100%; }
  .booking-card, .match-card { display: block; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  button, a {
    transition: background-color .16s cubic-bezier(0.2, 0.8, 0.2, 1),
      color .16s cubic-bezier(0.2, 0.8, 0.2, 1),
      border-color .16s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sport-word::after { transition: transform .16s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .quick-slot, .slot { transition: background-color .16s cubic-bezier(0.2, 0.8, 0.2, 1), color .16s cubic-bezier(0.2, 0.8, 0.2, 1), border-color .16s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
