:root {
  --bg: #171516;
  --panel: #211F20;
  --raised: #2A2829;
  --line: #3A3738;
  --line-strong: #6E696B;
  --ink: #FFFFFF;
  --muted: #B3AEB0;
  --lime: #AEFC0E;
  --lime-hover: #C8FF55;
  --danger: #FF9A8A;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; line-height: 1.1; }
.display { font-family: Montserrat, Inter, sans-serif; font-weight: 800; }
a { color: var(--lime); }
a:hover { color: var(--lime-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 1px solid #2E2B2C; position: sticky; top: 0; z-index: 20; background: rgba(23, 21, 22, .96); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 50px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { height: 44px; padding: 0 16px; border-radius: 22px; color: var(--ink); text-decoration: none; display: flex; align-items: center; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--raised); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--bg); font-weight: 700; }
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .brand img { height: 44px; }
  .nav a { padding: 0 12px; font-size: 14px; }
}

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 560px) { .wrap { padding-left: 16px; padding-right: 16px; } }
main.wrap { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.page-title { display: flex; flex-direction: column; gap: 8px; }
.page-title h1 { font-size: clamp(32px, 5vw, 44px); }
.page-title p { margin: 0; font-size: 17px; color: var(--muted); max-width: 720px; }

.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 3 1 560px; }
.col-side { flex: 2 1 340px; }
@media (min-width: 980px) { .col-side.sticky { position: sticky; top: 92px; } }
.panel { background: var(--panel); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 560px) { .panel { padding: 18px; } }
.panel h2 { font-size: 16px; font-weight: 600; }
.panel h2.big { font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* date chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.chip-day { flex: 0 0 64px; height: 66px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; scroll-snap-align: start; }
.chip-day .dow { font-size: 12px; color: var(--muted); }
.chip-day .num { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 20px; }
.chip-day .mon { font-size: 11px; color: var(--muted); }
.chip-day[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.chip-day[aria-pressed="true"] .dow, .chip-day[aria-pressed="true"] .mon { color: var(--bg); font-weight: 600; }

.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 4px; background: var(--bg); border-radius: 14px; padding: 4px; }
.segmented button { height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 500; }
.segmented button[aria-selected="true"] { background: var(--line); font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { height: 58px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; }
.slot .t { font-weight: 700; }
.slot .s { font-size: 11px; color: var(--muted); }
.slot:hover:not(:disabled) { border-color: var(--lime); }
.slot:disabled { cursor: not-allowed; border-color: transparent; background: #2E2B2C; color: #9C9799; }
.slot:disabled .t { font-weight: 500; }
.slot.taken .t { text-decoration: line-through; }
.slot.openplay { background: transparent; border: 1px dashed #4A4648; }
.slot.in-range { background: rgba(174, 252, 14, .16); border-color: var(--lime); }
.slot[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.slot[aria-pressed="true"] .s { color: var(--bg); }

/* summary + forms */
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt, .kv .k { color: var(--muted); }
.kv .v { font-weight: 500; text-align: right; }
.kv .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; align-items: baseline; }
.kv .total .v { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 22px; }
.cash-note { border: 1px solid var(--lime); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.cash-note svg { flex: none; }
.cash-note b { display: block; }
form.stack { display: flex; flex-direction: column; gap: 12px; margin: 0; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.input { height: 48px; border-radius: 12px; border: 1px solid #4A4648; background: var(--bg); padding: 0 14px; font-size: 16px; width: 100%; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
select.input { padding: 0 12px; }
.input::placeholder { color: #8E898B; }
.input:focus { border-color: var(--lime); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lime); flex: none; }
.btn { height: 52px; border-radius: var(--radius); border: 0; background: var(--lime); color: var(--bg); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; text-decoration: none; }
.btn:hover { background: var(--lime-hover); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { height: 44px; font-size: 15px; }
.error { color: var(--danger); font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); text-align: center; }

/* choice cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.card-choice { text-align: left; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 15px 17px; display: flex; flex-direction: column; gap: 4px; }
.card-choice:hover { border-color: var(--line-strong); }
.card-choice[aria-pressed="true"] { border: 2px solid var(--lime); padding: 14px 16px; }
.card-choice .name { font-weight: 700; font-size: 16px; }
.card-choice .price { font-weight: 600; margin-top: 4px; }
.card-choice[aria-pressed="true"] .price { color: var(--lime); }
.coach { flex-direction: row; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--line); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.card-choice[aria-pressed="true"] .avatar { background: var(--lime); color: var(--bg); }

/* home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding: 24px 0 8px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.hero-text h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; }
.hero-text p { margin: 0; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-art { flex: 1 1 380px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 520px; height: auto; display: block; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--raised); color: var(--ink); font-size: 14px; font-weight: 500; width: fit-content; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.offer a { background: var(--panel); border-radius: 20px; padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; border: 1px solid transparent; }
.offer a:hover { border-color: var(--lime); color: var(--ink); }
.offer h3 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 22px; }
.offer .go { color: var(--lime); font-weight: 600; margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--panel); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; counter-increment: step; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 18px; background: var(--lime); color: var(--bg); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.steps b { font-size: 16px; }
.band { background: var(--lime); color: var(--bg); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.band h2 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; }
.band p { margin: 4px 0 0; }
.band .btn { background: var(--bg); color: var(--ink); }
.band .btn:hover { background: #000; color: var(--ink); }
section > h2.section { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; margin-bottom: 14px; }

/* open play */
.board { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.board > * { flex: 1 1 300px; }
.me-card { border: 2px solid var(--lime); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.big-num { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 64px; line-height: 1; color: var(--lime); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.list li { min-height: 44px; border-radius: 12px; background: var(--bg); padding: 8px 14px; display: flex; align-items: center; gap: 12px; }
.list li.me { background: var(--lime); color: var(--bg); font-weight: 700; }
.court-row { background: var(--bg); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }

/* footer */
.site-footer { border-top: 1px solid #2E2B2C; color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* pass pop-up */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .72); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.pass { width: 100%; max-width: 440px; background: var(--panel); border-radius: 22px; overflow: hidden; margin: auto 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.pass-top { background: var(--lime); color: var(--bg); padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-weight: 700; line-height: 1.3; }
.pass-top svg { flex: none; }
.pass-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pass-head img { height: 34px; width: auto; }
.pass h2 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; }
.pass .code-row { display: flex; gap: 16px; align-items: center; }
.pass .qr { background: #fff; border-radius: 12px; padding: 8px; flex: none; width: 124px; height: 124px; display: flex; align-items: center; justify-content: center; }
.pass .qr img, .pass .qr svg { width: 108px; height: 108px; display: block; image-rendering: pixelated; }
.pass .code { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 32px; letter-spacing: .04em; color: var(--lime); line-height: 1; }
.pass .pay { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pass .pay b { font-size: 16px; }
.pass .stamp { font-size: 12px; color: var(--muted); }
