/* ==============================================================
   Greenjacket Booking — proposal v2 · "Clubhouse Nights"
   Full-bleed cinematic front end. Same engine underneath:
   every JS hook (#booking-form, #sport-list, #facility-list,
   #golf-drawer, #slot-list, #booking-date, #selection-panel,
   #form-status, #submit-button, #success-view, #success-summary,
   #booking-progress, #new-booking-button) is preserved.
   ============================================================== */

/* ---- Fonts ---- */
@font-face { font-family:"Hilogen"; src:url("fonts/Hilogen-Regular.otf") format("opentype"); font-weight:400; font-display:swap; }
@font-face { font-family:"Hilogen Sans"; src:url("fonts/Hilogen-Sans.otf") format("opentype"); font-weight:400 900; font-display:swap; }
@font-face { font-family:"HK Grotesk"; src:url("fonts/HKGrotesk-Regular.otf") format("opentype"); font-weight:400; font-display:swap; }
@font-face { font-family:"HK Grotesk"; src:url("fonts/HKGrotesk-Medium.otf") format("opentype"); font-weight:500; font-display:swap; }
@font-face { font-family:"HK Grotesk"; src:url("fonts/HKGrotesk-SemiBold.otf") format("opentype"); font-weight:600; font-display:swap; }
@font-face { font-family:"HK Grotesk"; src:url("fonts/HKGrotesk-Bold.otf") format("opentype"); font-weight:700; font-display:swap; }
@font-face { font-family:"HK Grotesk"; src:url("fonts/HKGrotesk-Black.otf") format("opentype"); font-weight:900; font-display:swap; }

:root {
  --reserve:#253c1d; --reserve-800:#1d3116; --reserve-900:#141f0e; --reserve-950:#0d1409;
  --fairway:#4e6342; --fairway-300:#8ba07c;
  --slate:#678096;
  --linen:#ecead5; --linen-050:#faf9f2; --linen-100:#f3f1e5; --linen-300:#dcd9bf; --linen-400:#c3bfa2;
  /* Accent = brand Slate, kept under the --ember* names so every existing
     rule picks it up. Base = solid fills (cream text sits on top);
     -400/-300 = lighter tints for accent TEXT, which must stay legible on
     the sage background. Matches public/admin/admin.css and the main site. */
  --ember:#4e6c88; --ember-400:#a9c2d1; --ember-300:#cddee8;
  --slate-600:#55708a;
  --ink:#1c1e17; --ink-600:#4a4e42; --ink-500:#6b6f62;
  --danger:#e08563;

  --script:"Hilogen","Brush Script MT",cursive;
  --display:"Hilogen Sans","HK Grotesk",sans-serif;
  --sans:"HK Grotesk",ui-sans-serif,system-ui,sans-serif;

  --line:rgba(236,234,213,.16);
  --ease:cubic-bezier(.16,1,.3,1);
  --shell:1240px;
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  margin:0;
  font-family:var(--sans);
  color:var(--linen);
  background:var(--fairway);
  background-image:
    radial-gradient(1400px 700px at 50% -200px, rgba(139,160,124,.30), transparent 70%),
    radial-gradient(1000px 650px at 100% 40%, rgba(20,31,14,.42), transparent 70%);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html { overflow-x:clip; }

a { color:var(--ember-300); }
a:hover { color:var(--linen); }

img { max-width:100%; }
button { font:inherit; }

/* accessible focus — slate ring per brand */
:focus-visible { outline:2px solid var(--slate); outline-offset:2px; border-radius:4px; }
.sport-panel:focus-visible, .facility-card:focus-visible, .slot-card:focus-visible,
.date-chip:focus-visible, .confirm-btn:focus-visible { outline-offset:3px; border-radius:inherit; }

/* ==================== TOP BAR ==================== */
.topbar {
  position:fixed; inset:0 0 auto 0; z-index:40;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:16px 32px;
  background:linear-gradient(rgba(13,20,9,.85), rgba(13,20,9,0));
  pointer-events:none;
  transition:background .3s var(--ease), padding .3s var(--ease);
}
.topbar.scrolled {
  background:rgba(13,20,9,.82);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:12px 32px;
  border-bottom:1px solid var(--line);
}
.topbar > * { pointer-events:auto; }
.topbar-mark { height:24px; display:block; }
.topbar-steps { display:flex; gap:22px; }
.step-dot {
  font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:rgba(236,234,213,.42); transition:color .3s var(--ease);
}
.step-dot.on { color:var(--ember-300); }
.topbar-est { font-size:10.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:rgba(236,234,213,.42); }

/* ==================== HERO ==================== */
.hero {
  position:relative;
  padding:130px 32px 10px;
}
.hero-inner { max-width:var(--shell); margin:0 auto; width:100%; position:relative; z-index:2; }
.hero-eyebrow {
  margin:0 0 20px; font-size:12px; font-weight:700; letter-spacing:.24em; text-transform:uppercase;
  color:var(--ember-300);
  display:flex; align-items:center; gap:12px;
}
.hero-eyebrow::before { content:""; width:34px; height:2px; background:var(--ember); border-radius:2px; }
.hero-title { margin:0 0 26px; line-height:.86; letter-spacing:.01em; text-wrap:balance; }
.hero-line-1 {
  font-family:var(--display); font-weight:900;
  font-size:clamp(48px, 8vw, 104px);
  color:var(--linen-100);
}
.hero-line-2 {
  display:inline-block;
  font-family:var(--script); font-weight:400;
  font-size:clamp(42px, 6.5vw, 86px);
  color:var(--ember-400);
  transform:rotate(-2.5deg);
  padding:0 .1em .12em;
  margin-left:.12em;
}
.hero-lede { max-width:460px; margin:0; font-size:17px; color:rgba(236,234,213,.75); text-wrap:pretty; }

/* Shown only to a member the Worker recognises: their details are already
   in the form below, and their hours are one tap away. Quiet on purpose —
   it is a note, not a banner. */
/* Padded like the hero it sits under, not like the acts below it, so the
   line starts where the lede above it starts. */
.signed-in {
  max-width:var(--shell); margin:18px auto 0; padding:0 32px;
  font-size:13px; color:rgba(236,234,213,.62);
}
.signed-in a { color:var(--ember-300); text-decoration:none; border-bottom:1px solid rgba(205,222,232,.4); }
.signed-in a:hover { color:var(--linen); }

/* ==================== ACTS (sections) ==================== */
.act { max-width:var(--shell); margin:0 auto; padding:96px 40px 36px; }
.act-head { position:relative; margin-bottom:44px; }
.act-num {
  position:absolute; top:-48px; left:-8px; z-index:0;
  font-family:var(--display); font-weight:900;
  font-size:clamp(96px, 12vw, 160px); line-height:1;
  color:transparent;
  -webkit-text-stroke:1.5px rgba(236,234,213,.13);
  pointer-events:none; user-select:none;
}
.act-title {
  position:relative; z-index:1; margin:0;
  font-family:var(--display); font-weight:900;
  font-size:clamp(30px, 3.6vw, 46px); line-height:1.05;
  color:var(--linen-100);
}
.act-title em {
  font-family:var(--script); font-style:normal; font-weight:400;
  font-size:1.12em; color:var(--ember-400);
}

/* ---- sequential gating (presentation only) ---- */
.act.locked { opacity:.35; filter:saturate(.6); pointer-events:none; user-select:none; transition:opacity .45s var(--ease), filter .45s var(--ease); }
.act { transition:opacity .45s var(--ease), filter .45s var(--ease); }
.act .act-lock-note {
  display:none; margin:14px 0 0;
  font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(236,234,213,.5);
}
.act.locked .act-lock-note { display:block; }

/* reveal on scroll */
.act-head, .sport-split, .sheet, .details-card { opacity:0; transform:translateY(34px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.revealed .act-head, .revealed .sport-split, .revealed .sheet, .revealed .details-card { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .act-head, .sport-split, .sheet, .details-card { opacity:1; transform:none; transition:none; }
}

/* ==================== 01 · SPORT SPLIT ==================== */
.sport-split { display:flex; gap:18px; min-height:min(380px, 50vh); }
.sport-panel {
  position:relative; flex:1; overflow:hidden; cursor:pointer;
  display:flex; align-items:flex-end;
  border:1px solid var(--line); border-radius:26px;
  padding:0; background:var(--reserve-800); color:var(--linen-100);
  text-align:left;
  transition:flex .55s var(--ease), border-color .3s, box-shadow .3s;
}
.sport-panel:hover { flex:1.45; }
.sport-panel.selected { flex:1.45; border-color:var(--ember-400); box-shadow:0 0 0 1px var(--ember-400), 0 30px 80px rgba(0,0,0,.45); }
.sport-photo {
  position:absolute; inset:0;
  background-position:center; background-size:cover;
  transform:scale(1.06);
  transition:transform 1s var(--ease), filter .5s var(--ease);
  filter:saturate(.9);
}
.sport-panel.golf .sport-photo { background-image:url("https://greenjacket.ph/renders/PRIVATE%20BAY%201.webp"); }
.sport-panel.pickleball .sport-photo { background-image:url("https://greenjacket.ph/renders/PICKLEBALL%201.webp"); }
/* branded fallback when the photo CDN is unreachable */
.sport-panel.no-photo .sport-photo {
  background-image:linear-gradient(165deg, var(--fairway) 0%, var(--reserve-800) 55%, var(--reserve-900) 100%);
  transform:none;
}
.sport-panel.no-photo.golf .sport-photo::after,
.sport-panel.no-photo.pickleball .sport-photo::after {
  content:""; position:absolute; inset:0;
  background-position:right 6% bottom -8%; background-repeat:no-repeat; background-size:min(52%, 320px);
  opacity:.9;
}
.sport-panel.no-photo.golf .sport-photo::after { background-image:url("assets/bear-golf.png"); }
.sport-panel.no-photo.pickleball .sport-photo::after { background-image:url("assets/bear-pickleball.png"); }
.sport-panel:hover .sport-photo, .sport-panel.selected .sport-photo { transform:scale(1.0); filter:saturate(1.05); }
.sport-scrim {
  position:absolute; inset:0;
  background:linear-gradient(200deg, rgba(13,20,9,.05) 30%, rgba(13,20,9,.88) 92%);
}
.sport-body { position:relative; z-index:1; padding:40px 42px 36px; display:grid; gap:10px; }
.sport-kicker { font-size:11px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--ember-300); }
.sport-name {
  font-family:var(--script); font-weight:400; line-height:1;
  font-size:clamp(26px, 3.2vw, 44px);
  color:var(--linen-100);
  overflow-wrap:break-word; text-wrap:balance;
}
.sport-check {
  position:absolute; z-index:2; top:22px; right:22px;
  padding:9px 16px; border-radius:999px;
  background:var(--ember); color:var(--linen-100);
  font-size:11.5px; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  opacity:0; transform:translateY(-8px) rotate(3deg);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.sport-panel.selected .sport-check { opacity:1; transform:none; }

/* ---- golf drawer / facility strip ---- */
.golf-drawer {
  max-height:0; overflow:hidden; opacity:0; pointer-events:none;
  transition:max-height .5s var(--ease), opacity .35s var(--ease), margin-top .4s var(--ease);
}
.golf-drawer.open { max-height:1400px; margin-top:22px; opacity:1; pointer-events:auto; }
.drawer-label {
  margin:0 0 14px; font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  color:rgba(236,234,213,.55);
  display:flex; align-items:center; gap:12px;
}
.drawer-label::after { content:""; flex:1; height:1px; background:var(--line); }
.facility-strip {
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.facility-card {
  position:relative; overflow:hidden; cursor:pointer; height:172px;
  border:1px solid var(--line); border-radius:18px;
  padding:0; background:var(--reserve-800); color:var(--linen-100); text-align:left;
  transition:transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.facility-card:hover:not(:disabled) { transform:translateY(-4px); border-color:rgba(236,234,213,.4); }
.facility-card.selected { border-color:var(--ember-400); box-shadow:0 0 0 1px var(--ember-400), 0 18px 44px rgba(0,0,0,.4); }
.facility-card .facility-photo {
  position:relative; display:block; height:100%; overflow:hidden;
  background:linear-gradient(160deg, var(--fairway) 0%, var(--reserve-800) 100%);
}
.facility-card .facility-photo::before {
  content:""; position:absolute; inset:0;
  background:url("assets/emblem-linen.png") center / 58px no-repeat;
  opacity:.28;
}
.facility-card .facility-photo::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(13,20,9,.78), transparent 55%);
}
.facility-card img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  filter:saturate(.92);
}
.facility-card.no-photo img { display:none; }
.facility-card.selected img { filter:saturate(1.05); }
.facility-cap {
  position:absolute; z-index:1; left:14px; bottom:12px;
  font-family:var(--sans); font-size:10.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--linen-100);
}
.facility-unavail {
  position:absolute; z-index:1; left:14px; bottom:12px;
  font-family:var(--sans); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--linen-100);
}
.facility-card:disabled { cursor:not-allowed; opacity:.45; filter:grayscale(.6); }
.facility-flag {
  position:absolute; top:12px; left:12px;
  padding:4px 12px 6px; border-radius:999px;
  background:rgba(13,20,9,.72); backdrop-filter:blur(4px);
  font-family:var(--script); font-weight:400; font-size:15px;
  color:var(--ember-300);
}
.facility-card.selected .facility-flag { background:var(--ember); color:var(--linen-100); }

/* ==================== 02 · TEE SHEET ==================== */
.sheet {
  --sheet-pad:clamp(20px, 3vw, 34px);
  border:1px solid var(--line); border-radius:26px;
  background:linear-gradient(180deg, rgba(37,60,29,.55), rgba(20,31,14,.55));
  padding:var(--sheet-pad);
  overflow:hidden; min-width:0;
}
.sheet-datebar { display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.date-rail {
  display:flex; gap:8px; overflow-x:auto; flex:1; min-width:0; max-width:100%; padding-bottom:6px;
  scrollbar-width:thin; scrollbar-color:var(--fairway) transparent;
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.date-rail::-webkit-scrollbar { height:5px; }
.date-rail::-webkit-scrollbar-thumb { background:rgba(122,144,102,.5); border-radius:99px; }
.date-rail::-webkit-scrollbar-track { background:transparent; }
.date-chip {
  flex:none; display:grid; justify-items:center; gap:1px; scroll-snap-align:start;
  min-width:74px; padding:12px 14px 11px;
  border:1px solid var(--line); border-radius:14px;
  background:transparent; color:var(--linen); cursor:pointer;
  transition:border-color .2s, background .2s, transform .15s var(--ease);
}
.date-chip:hover { border-color:rgba(236,234,213,.45); }
.date-chip:active { transform:scale(.96); }
.date-chip.selected { background:var(--linen); color:var(--reserve-900); border-color:var(--linen); }
.date-chip .dow { font-size:10.5px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; opacity:.6; }
.date-chip .dom { font-family:var(--display); font-weight:900; font-size:24px; line-height:1.1; }
.date-chip .mon { font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; opacity:.6; }
.date-native { display:grid; gap:6px; flex:none; }
.date-native span { font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:rgba(236,234,213,.5); }
.date-native input {
  border:1px solid var(--line); border-radius:12px;
  background:rgba(13,20,9,.4); color:var(--linen);
  padding:11px 14px; font:inherit; font-weight:600;
  color-scheme:dark;
}
.date-native input:focus { outline:none; border-color:var(--slate); box-shadow:0 0 0 3px rgba(103,128,150,.3); }
/* desktop: sit the picker's bottom on the chip baseline (top-anchored, scrollbar-independent) */
@media (min-width: 901px) { .date-native input { padding-block:17px; } }

.sheet-context {
  margin:22px 0 18px; padding-top:18px;
  border-top:1px dashed rgba(236,234,213,.2);
  font-size:15px; color:rgba(236,234,213,.72);
}
.sheet-context b { color:var(--linen-100); font-weight:800; }

.time-board { display:grid; gap:18px; }
.timeline-intro { display:flex; align-items:baseline; justify-content:space-between; gap:18px; color:rgba(236,234,213,.88); font-size:13px; }
.timeline-intro b { color:var(--linen-100); font-size:12px; letter-spacing:.08em; white-space:nowrap; }
/* The day is far wider than a phone, so this scrolls sideways: contain the
   overscroll so a swipe can't trigger back-navigation or rubber-band the
   page, keep iOS momentum, and let times settle instead of drifting. */
.timeline {
  width:100%; min-width:0; max-width:100%; overflow-x:auto; padding:12px 2px 0;
  scrollbar-color:rgba(236,234,213,.35) transparent;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
}
.timeline-track {
  position:relative; display:grid; grid-template-columns:repeat(var(--segments, 28), 112px); width:max-content;
  overflow:hidden; border:1px solid var(--line); border-radius:14px; background:rgba(13,20,9,.38);
}
.time-segment {
  min-height:78px; display:grid; align-content:center; justify-items:start; gap:5px; padding:12px;
  scroll-snap-align:start;
  margin:0; border:0; border-right:1px solid rgba(236,234,213,.1);
  background:rgba(127,176,105,.22); color:var(--linen-100); cursor:pointer; text-align:left;
  transition:background .18s var(--ease), box-shadow .18s var(--ease);
}
.time-segment:last-child { border-right:0; }
.time-segment:hover:not(:disabled) { background:rgba(127,176,105,.48); }
.time-segment:focus-visible { position:relative; z-index:1; outline-offset:-3px; }
.time-segment-time { display:block; font-family:var(--display); font-size:17px; font-weight:900; letter-spacing:.02em; white-space:nowrap; }
.time-segment small { display:block; min-height:11px; color:var(--linen-300); font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.time-segment.selected { background:rgba(236,234,213,.32); box-shadow:inset 0 -3px 0 var(--ember); }
.time-segment.selected small { color:var(--linen-100); }
.time-segment.selected-start { background:var(--linen); color:var(--reserve-900); box-shadow:inset 0 -4px 0 var(--ember); }
.time-segment.selected-start small { color:var(--ember); }
/* A solid cap on the last selected cell so the booking reads as one block with
   a definite end — the job the drag handle used to do, without the dragging. */
.time-segment.selected-end { box-shadow:inset 0 -3px 0 var(--ember), inset -3px 0 0 var(--ember); }
.time-segment.selected-start.selected-end { box-shadow:inset 0 -4px 0 var(--ember), inset -3px 0 0 var(--ember); }
.time-segment.booked, .time-segment.unavailable {
  cursor:not-allowed; background:repeating-linear-gradient(-45deg, rgba(13,20,9,.78) 0 8px, rgba(13,20,9,.42) 8px 16px);
}
.time-segment:disabled:not(.selected) { opacity:.68; }
/* Strike through only times that are actually taken. A free-but-unbookable
   gap (.too-short) stays un-struck so it doesn't read as a reservation. */
.time-segment:disabled:not(.selected):not(.too-short) .time-segment-time { text-decoration:line-through; text-decoration-color:var(--danger); text-decoration-thickness:2px; }
.time-segment.booked small, .time-segment.unavailable small { color:var(--danger); }
.time-segment.too-short small { color:rgba(236,234,213,.82); font-style:italic; }
/* The next cells you can grow into: dashed edge invites the tap. */
.time-segment.extendable { background:rgba(127,176,105,.3); box-shadow:inset 2px 0 0 var(--ember-400); }
.time-segment.extendable small { color:var(--ember-300); font-weight:800; }
.time-segment.extendable:hover:not(:disabled) { background:rgba(127,176,105,.52); }
/* The boundary box's printed time IS the booking's end — its caption
   borrows the selection's linen tone (not the ordinary "Extend" ember)
   so "Ends here" reads as part of the selection story, without filling
   the box itself: its own half hour is not yet booked. */
.time-segment.end-boundary.extendable small { color:var(--linen-100); }
.timeline-hint { margin:7px 0 0; color:rgba(236,234,213,.86); font-size:11.5px; font-weight:700; }
.time-selection {
  display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:12px; align-items:stretch;
  padding:14px; border:1px solid rgba(236,234,213,.14); border-radius:16px; background:rgba(13,20,9,.3);
}
.time-selection > div { display:grid; gap:5px; align-content:center; min-width:0; }
.time-selection span { color:rgba(236,234,213,.5); font-size:10px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.time-selection b { color:var(--linen-100); font-family:var(--display); font-size:18px; letter-spacing:.02em; }
.time-selection:not(.selected) { opacity:.62; }
/* Reads as the same line it replaced — the chevron and the 44px target are
   the only hints that it opens the phone's own time list. */
.time-pick {
  appearance:none; -webkit-appearance:none;
  width:100%; min-height:44px; margin:-8px 0; padding:0 22px 0 0;
  border:0; background:transparent; cursor:pointer;
  color:var(--linen-100); font-family:var(--display); font-size:18px; letter-spacing:.02em;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23ecead5' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 2px center; background-size:12px 8px;
}
.time-pick:focus-visible { outline:2px solid var(--ember-400); outline-offset:2px; border-radius:6px; }
/* The list itself is drawn by the OS, which ignores the page's palette — set
   a readable pair explicitly so options are not dark-on-dark. */
.time-pick option { color:#12200c; background:var(--linen-050); }
.duration-control p { display:flex; align-items:center; gap:10px; margin:0; }
.duration-control b { min-width:95px; font-family:inherit; font-size:13px; text-align:center; }
.duration-control button {
  /* 44px is the touch-target floor — these are the primary way to set a
     booking's length on a phone. */
  width:44px; height:44px; border:1px solid rgba(236,234,213,.28); border-radius:50%;
  color:var(--linen-100); background:rgba(236,234,213,.08); font:inherit; font-size:19px; line-height:1; cursor:pointer;
}
.duration-control button:hover:not(:disabled) { background:rgba(236,234,213,.18); }
.duration-control button:disabled { cursor:not-allowed; opacity:.35; }
.slot-empty { display:grid; justify-items:center; gap:10px; padding:36px 20px; color:rgba(236,234,213,.55); text-align:center; }
.slot-empty img { width:110px; opacity:.9; }
.slot-loading { display:grid; gap:14px; }
.slot-loading-label { font-size:13px; font-weight:700; color:rgba(236,234,213,.7); }
.timeline-skeleton { height:80px; border:1px solid rgba(236,234,213,.1); border-radius:14px; background:linear-gradient(90deg, rgba(236,234,213,.04), rgba(236,234,213,.13), rgba(236,234,213,.04)); background-size:200% 100%; animation:slot-pulse 1.15s ease-in-out infinite; }
@keyframes slot-pulse { from { background-position:100% 0; } to { background-position:-100% 0; } }
.slot-error button {
  min-height:44px; border:1px solid rgba(236,234,213,.24); border-radius:12px;
  padding:10px 18px; color:var(--linen-100); background:rgba(236,234,213,.08); cursor:pointer; font-weight:800;
}
.slot-error button:hover { border-color:rgba(236,234,213,.5); background:rgba(236,234,213,.12); }
@media (prefers-reduced-motion: reduce) { .timeline-skeleton { animation:none; } }

/* ==================== 03 · DETAILS ==================== */
.act-details { padding-bottom:170px; }
.details-card {
  position:relative; overflow:hidden;
  border:1px solid var(--line); border-radius:26px;
  background:linear-gradient(180deg, rgba(37,60,29,.55), rgba(20,31,14,.55));
  color:var(--linen);
  padding:clamp(26px, 4vw, 46px);
}
.details-crest {
  position:absolute; right:-60px; bottom:-70px; width:280px;
  opacity:.06; pointer-events:none;
}
.details-grid { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:20px 18px; }
.field { display:grid; gap:8px; }
.field.wide { grid-column:span 2; }
.field > span { font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:rgba(236,234,213,.75); }
.field > span em { margin-left:8px; font-size:10px; font-style:normal; color:var(--ember-300); letter-spacing:.1em; }
.field input, .field textarea { font-size:16px; }
.field input, .field textarea {
  width:100%; font:inherit; color:var(--linen-100);
  border:1px solid var(--line); border-radius:13px;
  background:rgba(13,20,9,.4); padding:13px 15px;
  transition:border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color:rgba(236,234,213,.38); }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--slate); box-shadow:0 0 0 3px rgba(103,128,150,.3); }
.field textarea { resize:vertical; }

/* ==================== STICKY SUMMARY BAR ==================== */
.summary-bar {
  position:fixed; z-index:50; left:50%; bottom:18px;
  transform:translate(-50%, 130%);
  width:min(1020px, calc(100vw - 28px));
  display:flex; align-items:center; gap:18px;
  border:1px solid rgba(236,234,213,.22); border-radius:20px;
  padding:12px 14px 12px 22px;
  background:rgba(13,20,9,.9); backdrop-filter:blur(14px);
  box-shadow:0 24px 70px rgba(0,0,0,.5);
  transition:transform .5s var(--ease);
}
.summary-bar.show { transform:translate(-50%, 0); }
.summary-slots { display:flex; gap:24px; flex:1; min-width:0; }
.summary-piece { display:grid; gap:0; min-width:0; }
.summary-piece i { font-style:normal; font-size:10px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color:rgba(236,234,213,.55); }
.summary-piece b { font-family:var(--display); font-weight:900; font-size:16px; color:var(--linen-100); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.summary-piece.filled b { color:var(--ember-300); }
.status { margin:0; font-size:13px; color:rgba(236,234,213,.6); flex:none; max-width:240px; }
.status:empty { display:none; }
.status.error { color:var(--danger); font-weight:700; }
.confirm-btn {
  flex:none; border:0; border-radius:14px; cursor:pointer;
  padding:15px 26px;
  font-weight:800; font-size:15.5px; letter-spacing:.02em;
  color:var(--linen-100); background:var(--ember);
  transition:background .2s, transform .15s var(--ease), opacity .2s;
}
.confirm-btn:hover:not(:disabled) { background:var(--slate-600); }
.confirm-btn:active:not(:disabled) { transform:scale(.97); }
.confirm-btn:disabled { cursor:not-allowed; opacity:.4; }

/* ==================== SUCCESS TICKET ==================== */
.success-stage { min-height:100vh; display:grid; place-items:center; padding:110px 24px 80px; }
.success-stage[hidden] { display:none; }
.ticket {
  position:relative; width:min(640px, 100%);
  animation:ticket-in .7s var(--ease) both;
}
@keyframes ticket-in { from { opacity:0; transform:translateY(44px) rotate(-1deg); } to { opacity:1; transform:none; } }
.ticket-top {
  background:var(--reserve); color:var(--linen);
  border-radius:26px 26px 0 0;
  padding:clamp(28px, 5vw, 46px) clamp(26px, 5vw, 46px) 30px;
  text-align:center;
}
.ticket-lockup { height:54px; margin:0 auto 22px; display:block; }
.ticket-confirmed {
  margin:0 0 10px; font-size:11.5px; font-weight:800; letter-spacing:.24em; text-transform:uppercase;
  color:var(--ember-300);
}
.ticket-headline {
  margin:0; font-family:var(--display); font-weight:900; line-height:.95;
  font-size:clamp(34px, 6vw, 52px); color:var(--linen-100);
}
.ticket-headline em { font-family:var(--script); font-style:normal; font-weight:400; font-size:1.1em; color:var(--ember-400); }
.ticket-perf {
  height:0; border-top:2px dashed rgba(20,31,14,.35);
  background:var(--linen-050); position:relative;
}
.ticket-perf::before, .ticket-perf::after {
  content:""; position:absolute; top:-13px; width:26px; height:26px; border-radius:50%;
  background:var(--reserve-900);
}
.ticket-perf::before { left:-13px; }
.ticket-perf::after { right:-13px; }
.ticket-body {
  background:var(--linen-050); color:var(--ink);
  border-radius:0 0 26px 26px;
  padding:clamp(24px, 4vw, 38px);
}
.success-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.summary-item { border:1px solid var(--linen-300); border-radius:13px; padding:12px 14px; background:#fff; }
.summary-item.wide { grid-column:span 2; }
/* ---- the payment block on a held reservation ----
   Borrows the summary card's border, radius and white ground so it reads as
   another panel of the same ticket rather than a warning bolted on. The
   amount and the deadline are the two lines a guest acts on, so they are the
   only ones set in the ticket's display face. */
.ticket-payment {
  margin-top:10px; padding:16px 18px;
  border:1.5px solid var(--reserve); border-radius:13px; background:#fff;
}
.ticket-payment p { margin:0 0 8px; font-size:13.5px; color:var(--ink-500); }
.ticket-payment .pay-due { font-family:var(--display); font-size:17px; color:var(--reserve); }
.ticket-payment .pay-due strong, .ticket-payment .pay-by strong { color:var(--reserve); font-weight:900; }
/* Three rows read like a receipt, label left and value right, hairlines
   instead of a tinted panel: the card already frames them, and the amount and
   the deadline above are what a guest acts on. Every value is nowrap, so the
   longest of them clears 375px on one line; where a row cannot, it stacks the
   value under its label rather than break it. The number keeps the monospace
   face because it is the one string on the page a guest retypes into a
   banking app, and that is where a 0 becomes an O. */
.pay-bank { margin:14px 0; }
.pay-row {
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:12px;
  padding:9px 0; border-top:1px solid var(--linen-300);
}
.pay-row:first-child { border-top:0; padding-top:0; }
.pay-row:last-child { padding-bottom:0; }
.pay-row span { flex:0 0 auto; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--fairway); }
.pay-row b { flex:0 1 auto; min-width:0; font-size:14px; font-weight:700; color:var(--ink); white-space:nowrap; text-align:right; }
.pay-row .pay-number { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:15px; letter-spacing:.04em; font-variant-numeric:tabular-nums; cursor:pointer; }
.ticket-payment .pay-then { margin-bottom:0; }
/* The member's one line: what is paying for this and how much of it. The
   same panel, in the club's own green rather than the reserve red — nothing
   here is owed, and a red box would read as a bill. */
.ticket-payment .pay-credits {
  margin-bottom:0; font-family:var(--display); font-size:15px; color:var(--fairway);
}
.ticket-payment.on-credits { border-color:var(--fairway-300); }

.ticket-calendar { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
/* No links, no gap above the note. */
.ticket-calendar:empty { display:none; }
.calendar-btn {
  display:block; text-align:center; text-decoration:none;
  border:1.5px solid var(--reserve); border-radius:14px; padding:13px 16px;
  font-weight:800; font-size:14.5px; letter-spacing:.02em;
  color:var(--reserve); background:#fff;
  transition:background .2s, color .2s;
}
/* Outlined, so "Book another slot" stays the one solid button on the card. */
.calendar-btn:hover { background:var(--reserve); color:var(--linen-100); }
.summary-label { display:block; margin-bottom:3px; font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--fairway); }
.summary-value { display:block; font-weight:800; color:var(--reserve); word-break:break-word; }
.summary-item.code .summary-value { font-family:var(--display); font-weight:900; font-size:22px; letter-spacing:.06em; }
.ticket-note { margin:18px 0 20px; font-size:13.5px; color:var(--ink-500); text-align:center; }
.ticket-again { width:100%; background:var(--reserve); }
.ticket-again:hover:not(:disabled) { background:var(--reserve-800); }
/* ==================== FOOTER ==================== */
.foot {
  display:grid; justify-items:center; gap:14px;
  padding:30px 24px 46px;
  border-top:1px solid var(--line);
  font-size:11px; font-weight:700; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(236,234,213,.4);
}
.foot img { height:44px; opacity:.55; }

/* ==================== PROGRESS TOAST ==================== */
.booking-progress {
  position:fixed; z-index:60; left:50%; bottom:24px; transform:translateX(-50%);
  max-width:calc(100vw - 24px);
  display:grid; grid-template-columns:minmax(90px, 180px) auto; gap:14px; align-items:center;
  border:1px solid rgba(236,234,213,.28); border-radius:999px;
  padding:14px 22px;
  color:var(--linen-100); background:rgba(13,20,9,.94); backdrop-filter:blur(12px);
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.booking-progress[hidden] { display:none; }
.booking-progress-track { height:7px; border-radius:999px; background:rgba(236,234,213,.18); overflow:hidden; }
.booking-progress-bar { width:42%; height:100%; border-radius:inherit; background:var(--ember-400); animation:booking-progress 1.1s ease-in-out infinite; }
.booking-progress span { font-size:13px; font-weight:700; white-space:nowrap; }
@keyframes booking-progress { from { transform:translateX(-110%); } to { transform:translateX(250%); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .topbar { padding:14px 18px; }
  .topbar-steps, .topbar-est { display:none; }
  .hero { padding:104px 20px 6px; }
  .signed-in { padding:0 20px; }
  .act { padding:64px 20px 24px; }
  .act-num { top:-38px; font-size:clamp(80px, 22vw, 110px); }
  .act-head { margin-bottom:30px; }
  .sport-split { flex-direction:column; min-height:0; }
  .sport-panel { min-height:190px; flex:none !important; }
  .sport-name { font-size:clamp(22px, 7vw, 34px); }
  .sport-body { padding:26px 24px 24px; }
  .summary-slots { display:none; }
  .status { max-width:none; flex:1; font-size:12px; }
  .summary-bar {
    width:calc(100vw - 20px);
    bottom:calc(10px + env(safe-area-inset-bottom));
    border-radius:16px;
    padding:10px;
    gap:10px;
  }
  .confirm-btn { flex:1; padding:15px 18px; white-space:nowrap; }
  #booking-main { padding-bottom:110px; }
  .facility-strip { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .facility-card { height:132px; }
  .sheet { border-radius:20px; }
  .time-board { gap:14px; }
  .time-selection { grid-template-columns:1fr; gap:14px; }
  .details-grid { grid-template-columns:1fr; }
  .sheet-datebar { flex-direction:column; align-items:stretch; flex-wrap:nowrap; }
  .date-rail {
    flex:none; width:auto;
    margin:0 calc(-1 * var(--sheet-pad));
    padding-left:var(--sheet-pad); padding-right:var(--sheet-pad);
    scroll-padding-inline:var(--sheet-pad);
  }
  .date-native { width:100%; min-width:0; }
  .date-native input { width:100%; }
  .timeline-intro { align-items:flex-start; flex-direction:column; gap:4px; }
  .date-chip { min-width:64px; padding:10px 12px 9px; }
  .field.wide { grid-column:auto; }
  .success-summary { grid-template-columns:1fr; }
  .ticket-calendar { grid-template-columns:1fr; }
  .summary-item.wide { grid-column:auto; }
  .act-details { padding-bottom:150px; }
}

/* ==================== EMBED MODE ====================
   ?embed=1 (see public/app.js) marks this page as loaded inside another
   site's iframe — the host page already has its own header and hero, so
   ours would just be a redundant second homepage inside the modal. */
body.embed .topbar,
body.embed .hero,
body.embed .foot { display:none; }
body.embed .act-game { padding-top:32px; }

/* Honour a reduced-motion preference everywhere, not just on the few reveals
   that were listed by hand — this file has transitions on cards, the summary
   bar, buttons and the timeline. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
