:root {
  --navy: #17412d !important;
  --navy-dark: #071b11 !important;
  --court-blue: #237a49 !important;
  --court-red: #e25b3f !important;
  --court-red-dark: #b83d27 !important;
  --pickle-lime: #f2d64b !important;
  --brand-teal: #35ad68;
  --brand-teal-dark: #176b3a;
  --brand-gold: #f2d64b;
  --brand-ink: #092116;
  --brand-ring: rgba(53, 173, 104, .34);
  --accent: var(--brand-teal-dark) !important;
  --accent-dark: #0f512c !important;
  --ac: 23, 107, 58 !important;
  --cta: #23864d !important;
  --cta-dark: #145f35 !important;
  --glow: rgba(53, 173, 104, .18) !important;
  --lime: #f2d64b !important;
  --lime-rgb: 242, 214, 75 !important;
  --lime-ink: #665500 !important;
  --slot-selected: #e1f5dc !important;
  --slot-selected-dark: #c6ebc0 !important;
  --slot-selected-rgb: 53, 173, 104 !important;
  --bg: #f5f7ef !important;
  --bg2: #ebf1e6 !important;
  --card: #ffffff !important;
  --surface: #ffffff !important;
  --surface2: #edf4e9 !important;
  --input: #eff4eb !important;
  --border: #d5e2d2 !important;
  --text: #173426 !important;
  --muted: #687c6e !important;
}

body.light,
body[data-theme="light"] {
  --bg: #f5f7ef !important;
  --bg2: #ebf1e6 !important;
  --card: #ffffff !important;
  --surface: #ffffff !important;
  --surface2: #edf4e9 !important;
  --input: #eff4eb !important;
  --border: #d5e2d2 !important;
  --text: #173426 !important;
  --muted: #687c6e !important;
}

body.dark,
body[data-theme="dark"] {
  --bg: #07170f !important;
  --bg2: #0a2116 !important;
  --card: #102a1c !important;
  --surface: #102a1c !important;
  --surface2: #153622 !important;
  --border: #2b5038 !important;
  --input: #0b2116 !important;
  --text: #f7faed !important;
  --muted: #a9b9aa !important;
  --accent: #f2d64b !important;
  --accent-dark: #d7b928 !important;
  --ac: 242, 214, 75 !important;
  --lime-ink: #f6df68 !important;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(145deg, var(--brand-teal), var(--navy));
  box-shadow: 0 12px 28px rgba(7, 26, 43, .22), inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 1.16rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .4px;
  line-height: 1;
  isolation: isolate;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 8px 7px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 9px;
}

.brand-mark::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 9px;
  height: 9px;
  border: 2px dotted var(--brand-ink);
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
}

.brand-mark-xl {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  font-size: 2.2rem;
  box-shadow: 0 26px 60px rgba(2, 18, 28, .32), inset 0 1px 0 rgba(255,255,255,.3);
}

.brand-mark-xl::before { inset: 14px 13px; border-radius: 18px; }
.brand-mark-xl::after { right: 10px; bottom: 10px; width: 16px; height: 16px; border-width: 3px; }

.brand-mark.logo-img,
.brand-mark.logo-ic,
.brand-mark.logo {
  padding: 0 !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(145deg, var(--brand-teal), var(--navy)) !important;
  border-color: rgba(23, 107, 58, .28) !important;
  box-shadow: 0 8px 20px rgba(7, 27, 17, .20), inset 0 1px 0 rgba(255,255,255,.25) !important;
}

.brand-mark.logo-img { border-radius: 14px !important; }
.brand-mark.logo-ic,
.brand-mark.logo { border-radius: 24px !important; }

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-ring) !important;
  outline-offset: 3px;
}

::selection { background: rgba(242, 214, 75, .42); color: var(--brand-ink); }

/* Full-screen welcome experience. */
#splashScreen {
  display: flex !important;
  z-index: 20000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(14px, 3vw, 32px) !important;
  overflow: auto !important;
  cursor: default !important;
  overscroll-behavior: contain !important;
  background:
    linear-gradient(105deg, rgba(3, 19, 11, .72) 0%, rgba(5, 30, 17, .50) 46%, rgba(7, 26, 15, .30) 100%),
    url('dforteesspash.jpg') center center / cover no-repeat,
    #071b11 !important;
}

#splashScreen::before,
#splashScreen::after { content: none !important; }

#splashScreen[hidden] { display: none !important; }

.welcome-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: auto;
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 0 14px 4px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.welcome-brand > span:last-child { display: grid; gap: 2px; }
.welcome-brand strong { font-size: .93rem; line-height: 1.2; }
.welcome-brand small { color: rgba(255,255,255,.72); font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.welcome-brand .brand-mark { width: 42px; height: 42px; border-radius: 13px; }

.booking-hero.welcome-hero {
  width: 100%;
  margin: 0;
  border-color: rgba(242, 214, 75, .28);
  background:
    linear-gradient(115deg, rgba(5, 29, 17, .84), rgba(10, 66, 36, .68) 68%, rgba(8, 42, 24, .56));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(5px) saturate(1.10);
}

.welcome-hero .booking-hero-inner {
  min-height: min(500px, calc(100dvh - 125px));
  align-items: center;
}

.welcome-hero h1 { font-size: clamp(3.25rem, 6.4vw, 5.8rem); }
.welcome-hero h1,
.welcome-hero .booking-hero-copy { text-shadow: 0 3px 20px rgba(0, 0, 0, .38); }
.welcome-hero .hero-primary,
.welcome-hero .hero-secondary { cursor: pointer; }

.welcome-contact-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin: -2px 32px 24px auto;
}

.welcome-contact-links,
.welcome-contact-link {
  display: flex;
  align-items: center;
}

.welcome-contact-link > span:last-child { display: grid; gap: 1px; }

.welcome-contact-links { gap: 8px; }

.welcome-contact-link {
  gap: 9px;
  min-height: 44px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  color: #fff;
  text-decoration: none;
  background: rgba(2, 28, 17, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.14);
  backdrop-filter: blur(13px) saturate(1.16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.welcome-contact-link:hover,
.welcome-contact-link:focus-visible {
  border-color: rgba(242,214,75,.48);
  background: rgba(255,255,255,.13);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

.welcome-contact-link:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; }

.welcome-contact-link--call {
  border-color: rgba(242,214,75,.34);
  background: linear-gradient(135deg, rgba(242,214,75,.16), rgba(2,28,17,.60));
}

.welcome-contact-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #f7e578;
  background: rgba(242,214,75,.13);
}

.welcome-contact-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-contact-link:first-child .welcome-contact-icon svg {
  fill: currentColor;
  stroke: none;
}

.welcome-contact-link strong { font-size: .75rem; line-height: 1.2; }
.welcome-contact-link small { color: rgba(255,255,255,.62); font-size: .61rem; line-height: 1.2; }

.nav {
  border-bottom-color: rgba(8, 127, 120, .18) !important;
  background: color-mix(in srgb, var(--card) 88%, transparent) !important;
  box-shadow: 0 14px 36px rgba(7, 26, 43, .07) !important;
  backdrop-filter: blur(18px) saturate(1.2);
}

.logo-name { letter-spacing: .3px !important; }

.booking-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid rgba(242, 214, 75, .22);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.10), transparent 38%),
    radial-gradient(circle at 84% 20%, rgba(242,214,75,.24), transparent 25%),
    radial-gradient(circle at 8% 82%, rgba(53,173,104,.27), transparent 32%),
    linear-gradient(135deg, #071b11, #10452a 72%, #176b3a);
  box-shadow: 0 28px 70px rgba(7, 27, 17, .24);
  color: #fff;
  isolation: isolate;
}

.booking-hero::before,
.booking-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}

.booking-hero::before { width: 360px; height: 360px; right: -96px; top: -160px; }
.booking-hero::after { width: 240px; height: 240px; right: 48px; bottom: -176px; }

.booking-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 36px;
  align-items: end;
  padding: clamp(28px, 5vw, 64px);
}

.booking-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f7e578;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.booking-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: .88;
}

.booking-hero h1 span { color: var(--brand-gold); }

.booking-hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: #d6e3d6;
  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
}

.booking-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero-primary { background: var(--brand-gold); color: var(--brand-ink); box-shadow: 0 12px 28px rgba(247,184,75,.22); }
.hero-secondary { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; }
.hero-primary:hover, .hero-secondary:hover { transform: translateY(-2px); }
.hero-secondary:hover { background: rgba(255,255,255,.14); }

.booking-hero-proof {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(4, 21, 32, .38);
  backdrop-filter: blur(12px);
}

.hero-proof-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; }
.hero-proof-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(242,214,75,.14); color: #f7e578; font-size: 1rem; }
.hero-proof-item .hero-proof-icon {
  display: grid;
  place-items: center;
  margin-top: 0;
  color: #f7e578;
}
.hero-proof-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-proof-item strong { display: block; color: #fff; font-size: .86rem; }
.hero-proof-item div > span { display: block; margin-top: 2px; color: #a9c0ca; font-size: .71rem; line-height: 1.35; }

.cc, .hc, .find-time-entry, .shared-date-entry {
  border-color: rgba(8, 127, 120, .15) !important;
  box-shadow: 0 14px 35px rgba(7, 26, 43, .07) !important;
}

.btn-p {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark)) !important;
  box-shadow: 0 10px 24px rgba(23, 107, 58, .24) !important;
}

.cc-slot-btn.selected:not(.taken):not(.past-slot):not(.open-play):not(.maintenance),
.cc-slot-btn.selected:not(.taken):not(.past-slot):not(.open-play):not(.maintenance) .csl-price,
.slot.sel,
.slot.sel .slot-time,
.slot.sel .slot-end { color: var(--brand-ink) !important; }

.cc-slot-btn.selected:not(.taken):not(.past-slot):not(.open-play):not(.maintenance),
.slot.sel {
  border-color: var(--brand-teal) !important;
  box-shadow: 0 0 0 3px rgba(53, 173, 104, .20), 0 7px 18px rgba(23, 107, 58, .18) !important;
}

.cc-dot.selected {
  border-color: var(--brand-teal) !important;
  background: var(--slot-selected) !important;
  box-shadow: 0 0 0 2px rgba(53, 173, 104, .16) !important;
}

.mobile-book-bar.sel {
  border-top-color: var(--brand-teal) !important;
  box-shadow: 0 -4px 24px rgba(53, 173, 104, .18) !important;
}

.mobile-book-bar.sel .mbbar-sum { color: var(--brand-teal-dark) !important; }

.cc-slot-btn:not(.selected):not(.taken):not(.past-slot):not(.open-play):not(.maintenance) {
  border-color: rgba(53, 173, 104, .42) !important;
  background: linear-gradient(145deg, #123c28, #0b281a) !important;
}

@media (hover: hover) {
  .cc-slot-btn:not(.selected):not(.taken):not(.past-slot):not(.open-play):not(.maintenance):hover {
    border-color: var(--brand-gold) !important;
    background: linear-gradient(145deg, #1a5637, #104126) !important;
    box-shadow: 0 0 0 3px rgba(242, 214, 75, .14) !important;
  }
}

.sec-hd h2,
.logo-name { color: var(--text); }

/* Shared polish for the staff login, host portal, and admin surfaces. */
.card,
.shell {
  border-color: rgba(8, 127, 120, .16) !important;
  border-radius: 26px !important;
  box-shadow: 0 28px 72px rgba(7, 26, 43, .14) !important;
}

.fi,
input,
select,
textarea {
  border-radius: 12px !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fi:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-teal) !important;
  box-shadow: 0 0 0 4px var(--brand-ring) !important;
}

.topnav {
  border-bottom-color: rgba(8, 127, 120, .16) !important;
  background: color-mix(in srgb, var(--surface) 90%, transparent) !important;
  box-shadow: 0 12px 32px rgba(7, 26, 43, .06) !important;
  backdrop-filter: blur(18px) saturate(1.15);
}

.sidebar {
  border-right-color: rgba(8, 127, 120, .14) !important;
  background: color-mix(in srgb, var(--surface) 96%, var(--brand-teal) 4%) !important;
}

.nav-item { border-radius: 11px !important; }
.nav-item.on {
  background: linear-gradient(135deg, rgba(24,182,164,.15), rgba(8,127,120,.08)) !important;
  color: var(--accent) !important;
  box-shadow: inset 3px 0 0 var(--brand-teal);
}

.sc,
.panel {
  border-color: rgba(8, 127, 120, .14) !important;
  box-shadow: 0 14px 36px rgba(7, 26, 43, .055) !important;
}

@media (max-width: 760px) {
  #splashScreen {
    align-items: flex-start !important;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left)) !important;
    background-position: 56% center !important;
  }
  .welcome-brand { margin: 2px 0 10px 2px; }
  .welcome-brand .brand-mark { width: 38px; height: 38px; }
  .welcome-hero .booking-hero-inner { min-height: 0; }
  .booking-hero { width: min(100% - 20px, 1180px); margin-top: 12px; border-radius: 22px; }
  .welcome-hero { width: 100%; margin: 0; }
  .booking-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .booking-hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .booking-hero-proof { grid-template-columns: 1fr 1fr; padding: 12px; }
  .hero-proof-item:last-child { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
  .booking-hero-actions > * { width: 100%; }
}

@media (max-width: 600px) {
  .welcome-shell { width: 100%; }

  .welcome-brand {
    gap: 9px;
    margin-bottom: 9px;
  }

  .welcome-brand > span:last-child { min-width: 0; }
  .welcome-brand strong { font-size: .82rem; }
  .welcome-brand small {
    max-width: min(74vw, 310px);
    overflow: hidden;
    font-size: .6rem;
    letter-spacing: .35px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .booking-hero.welcome-hero {
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(5, 29, 17, .89), rgba(10, 66, 36, .71) 72%, rgba(8, 42, 24, .62));
    backdrop-filter: blur(4px) saturate(1.08);
  }

  .welcome-hero .booking-hero-inner {
    gap: 18px;
    padding: 24px 18px 18px;
  }

  .welcome-hero .booking-hero-eyebrow {
    margin-bottom: 11px;
    padding: 6px 9px;
    font-size: .6rem;
    letter-spacing: .55px;
  }

  .welcome-hero h1 {
    font-size: clamp(2.85rem, 14.5vw, 4rem);
    line-height: .9;
  }

  .welcome-hero .booking-hero-copy {
    margin-top: 14px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .welcome-hero .booking-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .welcome-hero .hero-primary,
  .welcome-hero .hero-secondary {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
  }

  .welcome-hero .booking-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
  }

  .welcome-hero .hero-proof-item,
  .welcome-hero .hero-proof-item:last-child {
    display: flex;
    grid-column: auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    text-align: center;
  }

  .welcome-hero .hero-proof-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 11px;
  }

  .welcome-hero .hero-proof-item strong {
    font-size: .67rem;
    line-height: 1.2;
  }

  .welcome-hero .hero-proof-item div > span { display: none; }

  .welcome-contact-bar {
    width: auto;
    margin: -4px 18px 18px;
  }

  .welcome-contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .welcome-contact-link { justify-content: center; min-width: 0; padding: 7px; }
  .welcome-contact-link small { white-space: nowrap; }

  .cc.active-mobile {
    border-color: rgba(53, 173, 104, .34) !important;
    box-shadow: 0 12px 30px rgba(23, 107, 58, .10) !important;
  }

  .cc-mobile-hd {
    position: relative;
    overflow: hidden;
    padding: 14px 13px !important;
    border-bottom: 1px solid rgba(53, 173, 104, .26) !important;
    background:
      linear-gradient(110deg, rgba(53, 173, 104, .22), rgba(242, 214, 75, .13) 72%, rgba(255,255,255,.70)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.70);
  }

  .cc-mobile-title,
  .cc-mobile-side { position: relative; z-index: 1; }

  .cc-mobile-name {
    color: #126437 !important;
    font-size: .94rem !important;
    letter-spacing: -.1px;
  }

  .cc-mobile-meta {
    color: #5d7464 !important;
    font-weight: 800 !important;
  }

  .cc-mobile-status.av {
    padding: 5px 9px !important;
    border-color: #dfc12f !important;
    background: linear-gradient(135deg, #f7e26c, var(--brand-gold)) !important;
    box-shadow: 0 5px 13px rgba(176, 143, 16, .16);
    color: var(--brand-ink) !important;
  }

  body.dark .cc-mobile-hd {
    background: linear-gradient(110deg, rgba(53, 173, 104, .24), rgba(242, 214, 75, .10), rgba(16, 42, 28, .92)) !important;
  }

  body.dark .cc-mobile-name { color: #f3dc62 !important; }
  body.dark .cc-mobile-meta { color: #b1c2b3 !important; }
}

@media (max-width: 360px), (max-width: 760px) and (max-height: 700px) {
  .welcome-brand { margin-bottom: 7px; }
  .welcome-hero .booking-hero-inner { gap: 14px; padding: 20px 15px 15px; }
  .welcome-hero h1 { font-size: clamp(2.55rem, 13.5vw, 3.2rem); }
  .welcome-hero .booking-hero-copy { font-size: .84rem; }
  .welcome-hero .hero-primary,
  .welcome-hero .hero-secondary { min-height: 48px; }
  .welcome-contact-bar { margin: -4px 15px 12px; }
  .welcome-contact-link { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
