/* The web app (/app): the phone app's court:scout tab on a wide screen. Its looks
   follow the approved mockup: map full bleed; search, list and location on the
   left; the sheets on the right; the floating tab bar over every sheet. */
:root{
  --label3:#8A90AE;--sep:rgba(11,16,48,.10);--strong:rgba(11,16,48,.22);--fill1:rgba(11,16,48,.06);
  --bg:#F2F0EA;--ink:#0B1030;--ink2:#4A5070;--muted:#8A90AE;--brand:#1F5FF2;--brand2:#42A2FD;
  --sheet:#F4F5FB;--tonal:rgba(31,95,242,.12);--green:#12B76A;--purple:#5B2CF0;--red:#E5484D;--badge:#FF3B30;
  --line:rgba(11,16,48,.08);--label:rgba(60,60,67,.60);
  --sheet-w:min(620px,calc(100% - 24px));
  --ease:cubic-bezier(.32,.72,0,1);
  --top:calc(var(--nav-h) + env(safe-area-inset-top,0px));--gutter:clamp(16px,4vw,40px);
  --display:'Inter Tight',Inter,-apple-system,BlinkMacSystemFont,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);overflow:hidden}
body{color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
button{font-family:inherit;-webkit-tap-highlight-color:transparent;color:inherit}
input::placeholder{color:var(--muted)}
[hidden]{display:none!important}
.noscript{position:fixed;inset:auto 16px 16px;padding:14px;border-radius:14px;background:#fff}
.app{position:fixed;inset:var(--top) 0 0 0;overflow:hidden}
.map{position:absolute;inset:0;background:var(--bg)}
.map.off::after{content:'The map could not load in this browser.';position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);color:var(--ink2);font-size:14px}
.maplibregl-ctrl-bottom-left{bottom:8px}
.me{width:34px;height:34px;border-radius:50%;border:3px solid #fff;box-shadow:0 1.5px 5px rgba(0,0,0,.35);background:linear-gradient(135deg,var(--brand2),var(--brand))}


/* ---------- MapSearch ---------- */
/* Courts | Lessons, under the search bar: the same switch on both maps, Courts in blue (lessons.css: Lessons in teal). */
.switch{display:flex;width:max-content;padding:3px;border-radius:999px;background:#fff;box-shadow:0 3px 8px rgba(11,16,48,.10)}
.switch a{height:32px;padding:0 16px;border-radius:999px;display:flex;align-items:center;font-size:14px;font-weight:600;color:var(--ink2);text-decoration:none}
.switch a:hover{color:var(--ink)}
.switch a[aria-current="page"]{background:linear-gradient(135deg,var(--brand2),var(--brand));color:#fff}
.search{position:absolute;top:14px;left:0;width:min(460px,100%);padding:0 16px;z-index:5;display:flex;flex-direction:column;gap:8px}
.search-row{display:flex;gap:10px;align-items:center}
.search-bar{flex:1;min-width:0;height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:0 3px 8px rgba(11,16,48,.10)}
.search-bar input{border:0;outline:0;background:transparent;font-size:15px;color:var(--ink);width:100%;min-width:0;font-family:inherit;-webkit-appearance:none;appearance:none}
.round{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(11,16,48,.10);display:flex;align-items:center;justify-content:center;color:var(--brand);cursor:pointer;padding:0;transition:transform .12s}
.round:active{transform:scale(.92)}
.round.busy{opacity:.55}
.round.on{background:var(--brand);color:#fff}
.hits{background:#fff;border-radius:16px;box-shadow:0 4px 10px rgba(11,16,48,.10);overflow-y:auto;max-height:min(60vh,420px)}
.hits .cap,.hits .none{padding:12px 16px;font-size:13px;color:var(--ink2);margin:0}
.hits .cap{font-size:12px;color:var(--muted);padding-bottom:4px}

/* ---------- rows, tiles, buttons ---------- */
.row{position:relative;display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit;padding:10px 16px}
.row+.row::before{content:'';position:absolute;left:16px;right:16px;top:0;height:1px;background:var(--line)}
.row:hover,.row.on{background:rgba(11,16,48,.03)}
.row .two{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.row .two b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .two small{font-size:12px;font-weight:500;color:var(--muted)}
.pill{height:22px;padding:0 8px;border-radius:999px;background:var(--tonal);color:var(--brand);font-size:12px;font-weight:600;display:flex;align-items:center;flex:none}
.tile{flex:1;min-width:0;height:64px;border:0;border-radius:26px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;color:var(--brand);transition:transform .12s;text-decoration:none}
.tile:active{transform:scale(.94)}
.tile span{font-size:12px;font-weight:600;color:var(--ink)}
.tile.red{color:var(--red)}
.tile[aria-disabled="true"]{opacity:.45;pointer-events:none}
.ghost{width:44px;height:44px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--muted);cursor:pointer;padding:0;position:relative;border-radius:22px;flex:none}
.ghost:hover{background:rgba(11,16,48,.04)}
.ghost.on{color:var(--brand)}
.ghost .dot{position:absolute;top:6px;right:5px;min-width:16px;height:16px;border-radius:8px;background:var(--brand);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #EEEDFF}
.cta{height:52px;border:0;border-radius:999px;background:linear-gradient(90deg,var(--brand2),var(--brand));color:#fff;font-size:17px;font-weight:600;cursor:pointer;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;flex:none}
.tonal{height:32px;border:0;border-radius:999px;background:var(--tonal);color:var(--brand);font-size:13px;font-weight:600;padding:0 12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;text-decoration:none}
.tonal.big{height:44px;font-size:15px;width:100%}
.link{border:0;background:transparent;color:var(--brand);font-size:13px;font-weight:600;cursor:pointer;padding:8px;text-decoration:none;align-self:center}
.icon-box{width:40px;height:40px;border-radius:8px;background:var(--tonal);display:flex;align-items:center;justify-content:center;flex:none;color:var(--brand);border:0;padding:0}
button.icon-box{cursor:pointer}

/* ---------- sheets ---------- */
.sheet{position:absolute;right:12px;bottom:0;width:var(--sheet-w);background:var(--sheet);border-radius:28px 28px 0 0;box-shadow:0 -6px 40px rgba(11,16,48,.16);display:flex;flex-direction:column;overflow:hidden;transition:transform .5s var(--ease)}
.sheet.away{transform:translateY(105%)}
.grab{position:absolute;top:0;left:50%;transform:translateX(-50%);width:120px;height:20px;border:0;background:transparent;cursor:pointer;padding:0;z-index:3}
.grab::after{content:'';position:absolute;left:42px;top:6px;width:36px;height:5px;border-radius:3px;background:rgba(60,60,67,.30)}
.head{display:flex;align-items:center;gap:12px;padding:22px 20px 10px}
.head .two{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.head h1,.head h2{margin:0;font-family:'Inter Tight',Inter,sans-serif;font-weight:800;font-size:20px;line-height:1.2}
.head p{margin:0;font-size:13px;color:var(--ink2)}
.x-btn{position:absolute;top:22px;right:16px;z-index:4;width:30px;height:30px;border:0;border-radius:50%;padding:0;display:grid;place-items:center;background:rgba(118,118,128,.14);color:var(--ink2);cursor:pointer}
.x-btn svg{width:15px;height:15px}
.x-btn:hover{background:rgba(118,118,128,.22)}
.x-btn.inline{position:static;flex:none;margin:0 8px 0 2px}
/* The grid's own Basket: a phone's, where the tabs give way to the grid (720px below). */
.sheet>.head{padding-right:56px}
.scroll{overflow-y:auto;scrollbar-width:none;flex:1;min-height:0}
.scroll::-webkit-scrollbar{display:none}
.body{padding:6px 16px 110px;display:flex;flex-direction:column;gap:6px}
.label{font-size:15px;font-weight:600;color:var(--label);padding:4px 16px 0;display:flex}
.label span:first-child{flex:1}
.label+.card{margin-top:0}
.card{background:#fff;border-radius:26px;overflow:hidden}
.fact{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:12px 16px}
.fact+.fact::before{content:'';position:absolute;left:44px;right:16px;top:0;height:1px;background:var(--sep)}
.fact svg{flex:none;width:18px;height:18px;color:var(--ink2)}
.fact span{flex:1;font-size:15px;font-weight:400;color:var(--ink)}
.fact b{font-size:15px;font-weight:600;color:var(--ink);text-align:right}
.fact b.none{color:var(--label3)}
.body .search-bar{flex:none;height:44px;box-shadow:none}
.note{font-size:12px;font-weight:500;color:var(--muted);padding:6px 16px 14px;text-align:center}
.note.left{text-align:left;padding:0 16px}
.scrim{position:absolute;inset:0;z-index:18;background:rgba(11,16,48,.22);transition:opacity .4s;opacity:0;pointer-events:none}
.scrim.on{opacity:1;pointer-events:auto}

.list-sheet{height:calc(100% - 48px);z-index:20}
/* Under the grid sheet: the grid, low or up, stays on top; the venue's foot clears the low grid. */
.venue-sheet{height:calc(100% - 48px);z-index:9}
.venue-sheet .body{padding-bottom:176px}
.venue-sheet.half{transform:translateY(calc(100% - 50vh))}
/* An area's or the UK's page: its venues or areas, under a venue's sheet and the grid. */
.area-sheet{height:calc(100% - 40px);z-index:8}
.area-sheet .body{padding-bottom:176px}
.area-sheet.half{transform:translateY(calc(100% - 50vh))}
.area-sheet .label{margin:0;padding-top:12px;align-items:baseline}
.area-sheet .label small{font-size:13px;font-weight:500;color:var(--muted)}
.area-sheet .group-note{padding-top:10px}
.area-sheet .group-note a{color:var(--brand)}
.area-sheet .back-btn{text-decoration:none}
.area-sheet .back-btn:hover{filter:brightness(.96)}
.area-sheet .area-find{margin:2px 0 4px;background:#fff}
.area-sheet .body.finding>:not(.area-find):not(#area-hits){display:none}
.area-sheet #area-hits{display:flex;flex-direction:column;gap:6px}
a.row{text-decoration:none}
.basket-sheet{height:min(72vh,640px);z-index:30}
.get-sheet{height:min(64vh,520px);z-index:31}
.get-sheet.tall{height:calc(100% - 48px)}
.notice.more h3{background:linear-gradient(90deg,var(--brand2),var(--purple));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- the grid's sheet ---------- */
.grid-sheet{height:calc(100% - 40px);z-index:10}
.grid-sheet::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,#EFEAFF,#EAEEFF 50%,#E6F0FF);pointer-events:none}
.grid-sheet.low{transform:translateY(calc(100% - 156px))}
.peek{position:absolute;left:0;right:0;top:12px;height:60px;border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:0 22px 0 18px;cursor:pointer;z-index:2;transition:opacity .35s}
.peek .two{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
.peek b{font-family:'Inter Tight',Inter,sans-serif;font-weight:700;font-size:18px;letter-spacing:-.27px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.peek small{font-size:13px;color:var(--ink2)}
.grid-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;transition:opacity .35s}
.grid-sheet.low .grid-body,.grid-sheet:not(.low) .peek{opacity:0;pointer-events:none}
.grid-sheet:not(.low) .grid-body{opacity:1}
.mini{display:flex;align-items:center;gap:12px;height:44px;padding:4px 8px 0 18px;margin-top:14px;flex:none}
.title-btn{flex:1;min-width:0;border:0;background:transparent;display:flex;align-items:center;padding:0;cursor:pointer;color:var(--ink);text-align:left}
.title-btn b{font-family:'Inter Tight',Inter,sans-serif;font-weight:700;font-size:18px;letter-spacing:-.27px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.info-btn{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:transparent;color:var(--brand);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.info-btn:hover,.info-btn:focus-visible{background:var(--fill1);outline:0}

/* The heads: a chip a day (the week) or a chip a court (a day), over the card. */
.heads{position:relative;flex:none;padding:10px 16px 10px 75px;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.heads.has-bar{padding-bottom:24px}
.chips{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:0 6px}
.chip,.dc{height:52px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;position:relative;border:0;padding:0;background:var(--tonal);color:var(--brand);font-family:inherit}
.chip{cursor:pointer;transition:transform .18s}
.chip small,.dc small,.corner small{font-size:8.5px;font-weight:600;letter-spacing:.02em;line-height:10px;text-transform:uppercase;opacity:.75}
.chip small:nth-of-type(2),.dc small:nth-of-type(2),.corner small:nth-of-type(2){font-weight:500;text-transform:none}
.chip b,.dc b,.corner b{font-size:12px;font-weight:600;letter-spacing:-.02em;line-height:13px}
.chip.today,.dc.today{background:var(--brand);color:#fff}
.chip.open,.dc.open{background:var(--tonal);color:var(--brand)}
.chip.next,.dc.next{background:#fff;box-shadow:inset 0 0 0 1.5px var(--brand);color:var(--brand)}
.chip.later,.dc.later{background:transparent;box-shadow:inset 0 0 0 1px var(--strong);color:var(--label3)}
/* The strip's days before today and past the two weeks: greyed, not to tap. */
.chip.gone,.chip.off{background:transparent;box-shadow:inset 0 0 0 1px var(--strong);color:var(--label3);opacity:.5;cursor:default}
.chip.pop{animation:pop .18s ease-out}
@keyframes pop{50%{transform:scale(.9)}100%{transform:scale(1.04)}}
/* The strip: weeks Monday to Sunday up to two weeks from today, a week to a swipe; the calendar
   in the corner, under the venue square and as wide (.mini: 18px in, 40 wide). Its days stand
   over the table's columns: the calendar takes the times' room (10 + 8 + 40 + 17 = 16 + 59), the
   room on the right the week's card's (.card-x.wk). The strip clips what it holds: room round
   the days for the picked day's ring, and the calendar drops by as much to stay in line. */
.heads.cweek{display:flex;align-items:flex-start;padding:0 24px 4px 10px;touch-action:auto}
.cweek .cal-btn{flex:none;margin:20px 17px 0 8px;width:40px;height:52px;border:0;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--strong);color:var(--ink);display:grid;place-items:center;padding:0;cursor:pointer}
/* Phones (the web app at 720px and under): no calendar; the strip keeps the times' room. */
@media (max-width:720px){.cweek .cal-btn,.ccal{display:none}.heads.cweek{padding-left:75px}}
.cweek .cal-btn:hover,.cweek .cal-btn.on{box-shadow:inset 0 0 0 1.5px var(--brand);color:var(--brand)}
.cweek .wk-strip{flex:1;min-width:0;padding:6px 0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.cweek .wk-strip::-webkit-scrollbar{display:none}
.cweek .wk-page{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:0 6px;box-sizing:border-box;align-items:start}
/* Every day keeps 14px clear above it; the picked day grows up into it. */
.cweek .dcol{display:flex;flex-direction:column;min-width:0;padding-top:14px}
.cweek .dcol.on{padding-top:0}
.cweek .dcol.on .chip{height:66px}
.cweek .chip{transition:transform .12s ease-out}
.cweek .chip:active{transform:scale(.92)}
/* Another day picked: today steps back to a tint, a thin ring still marking it. */
.cweek .chip.today.dim{background:var(--tonal);color:var(--brand);box-shadow:inset 0 0 0 1px rgba(31,95,242,.45)}
.cweek .chip.on{background:#0B1F8C;color:#fff;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #0B1F8C}
/* A tap: the date gives a little, and the day picked springs up into its height;
   let go, it settles back down, the spring run backwards. */
.cweek .dcol.pop{animation:dayRise .34s cubic-bezier(.2,.9,.25,1) both}
.cweek .dcol.pop .chip{animation:dayGrow .34s cubic-bezier(.2,.9,.25,1) both}
.cweek .dcol.unpop{animation:dayFall .3s cubic-bezier(.2,.9,.25,1) both}
.cweek .dcol.unpop .chip{animation:dayShrink .3s cubic-bezier(.2,.9,.25,1) both}
@keyframes dayRise{from{padding-top:14px}}
@keyframes dayGrow{0%{height:52px;transform:scale(.92)}60%{transform:scale(1.06)}100%{height:66px;transform:none}}
@keyframes dayFall{from{padding-top:0}}
@keyframes dayShrink{0%{height:66px;transform:none}45%{transform:scale(.94)}100%{height:52px;transform:none}}
.card-x.wk{margin-right:24px}

/* The calendar: a sheet floating beside the grid (over its top where there's no room); the
   month, the two weeks from today to tap, the days on sale dotted, today ringed. */
.ccal{position:absolute;z-index:11;top:40px;right:calc(var(--sheet-w) + 24px);width:300px;max-height:calc(100% - 140px);overflow-y:auto;box-sizing:border-box;background:#fff;border-radius:22px;padding:12px 12px 10px;box-shadow:0 12px 40px rgba(11,16,48,.18),0 0 0 .5px rgba(11,16,48,.08);animation:calIn .18s ease-out}
.ccal[hidden]{display:none}
@media (max-width:1000px){.ccal{right:24px;top:100px;width:min(320px,calc(100% - 48px))}}
@keyframes calIn{from{opacity:0;transform:translateY(-6px)}}
.ccal .fs-head{display:flex;align-items:center;gap:8px;height:34px;margin-bottom:6px;padding-left:4px}
.ccal .fs-head b{flex:1;font-family:var(--display);font-size:18px;font-weight:700}
.ccal .x-btn{position:static}
.ccal .cal-top{display:flex;align-items:center;justify-content:space-between;padding:0 2px 8px}
.ccal .cal-top b{font-family:var(--display);font-size:16px;font-weight:700}
.ccal .cal-arrow{width:32px;height:32px;border:0;border-radius:50%;background:var(--tonal);color:var(--brand);display:grid;place-items:center;cursor:pointer;padding:0}
.ccal .cal-arrow:disabled{opacity:.3;cursor:default}
.ccal .cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.ccal .cal-wd span{text-align:center;font-size:11px;font-weight:600;color:var(--muted);padding-bottom:4px}
.ccal .cd{height:40px;margin:1px;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;padding:0;cursor:pointer;font-family:inherit;color:var(--ink)}
.ccal .cd b{font-size:14px;font-weight:600;line-height:17px;color:inherit}
.ccal .cd small{display:none}
.ccal .cd:hover:not(:disabled){box-shadow:inset 0 0 0 1.5px var(--brand)}
.ccal .cd.sale{background:var(--tonal);color:var(--brand)}
.ccal .cd.off{color:var(--label3);cursor:default}
.ccal .cd.today{background:var(--brand);color:#fff}
.ccal .cd.on{background:#0B1F8C;color:#fff;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #0B1F8C}
.ccal .cal-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px 0;font-size:12px;color:var(--ink2)}
.ccal .cal-foot .tonal{height:30px;padding:0 14px}

/* A day's courts: back to the week in the corner, over the times. */
.corner.back{top:10px;height:52px;background:var(--tonal);color:var(--brand)}
/* A phone's day: its date in the corner, as the strip's picked chip. */
.corner.date{top:6px;height:60px;background:#0B1F8C;color:#fff;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #0B1F8C}
.corner{position:absolute;left:22px;top:2px;width:42px;height:60px;border:0;border-radius:10px;background:var(--brand);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;cursor:pointer;font-family:inherit;z-index:2}
.court-strip{overflow:hidden;min-height:52px}
.courts-in{display:flex;gap:5px;padding:0 6px;width:max-content;will-change:transform}
.court{position:relative;flex:none;width:var(--cw);height:52px;border:0;border-radius:8px;padding:0 3px;cursor:pointer;font-family:inherit;background:var(--tonal);color:var(--brand)}
.court small{position:absolute;left:0;right:0;top:5px;font-size:8.5px;font-weight:600;letter-spacing:.02em;line-height:10px;opacity:.75}
.court b{position:absolute;left:3px;right:3px;top:16px;font-size:12px;font-weight:600;letter-spacing:-.02em;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.court .ic{position:absolute;left:0;right:0;top:29.5px;display:flex;justify-content:center;gap:2.5px}
.court em{position:absolute;left:3px;right:3px;top:29px;font-style:normal;font-size:8.5px;font-weight:500;line-height:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.court.later{background:transparent;box-shadow:inset 0 0 0 1px var(--strong);color:var(--label3)}
.court.off{background:var(--label3);color:#fff}
.bar-x{position:absolute;top:76px;left:81px;right:22px;height:3px;border-radius:2px;background:var(--tonal);overflow:hidden}
.bar-x i{display:block;height:100%;border-radius:2px;background:var(--brand)}
.tip{position:absolute;top:79px;left:50%;transform:translateX(-50%);height:30px;padding:0 12px;border-radius:10px;background:rgba(11,31,140,.94);color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;white-space:nowrap;z-index:6;pointer-events:none}
.tip i{position:absolute;top:-6px;width:0;height:0;margin-left:-3.5px;border:3.5px solid transparent;border-top:0;border-bottom:6px solid rgba(11,31,140,.94)}

/* The card: an hour a row, the times down the side. */
.room{flex:1;min-height:0;display:flex;flex-direction:column}
/* Week <-> courts: out one way, in from the other (toView). */
.view-out .grid-body>:not(.mini):not(.cweek){transition:opacity .14s ease-in,transform .14s ease-in;opacity:0}
.view-out.to-day .grid-body>:not(.mini):not(.cweek){transform:translateX(-20px)}
.view-out.to-week .grid-body>:not(.mini):not(.cweek){transform:translateX(20px)}
.view-in.to-day .grid-body>:not(.mini):not(.cweek){animation:view-r .32s cubic-bezier(.2,.9,.25,1) both}
.view-in.to-week .grid-body>:not(.mini):not(.cweek){animation:view-l .32s cubic-bezier(.2,.9,.25,1) both}
@keyframes view-r{from{opacity:0;transform:translateX(28px)}}
@keyframes view-l{from{opacity:0;transform:translateX(-28px)}}
.card-x{position:relative;margin:0 16px;background:#fff;border-radius:14px;overflow:hidden;flex:0 1 auto;min-height:0;display:flex;flex-direction:column}
.card-x::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px 3px rgba(11,16,48,.08),inset 0 0 0 .5px rgba(11,16,48,.06);pointer-events:none;z-index:3}
.table{flex:1;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}
.table::-webkit-scrollbar{display:none}
.r{position:relative;display:flex;align-items:center;height:var(--pitch,45px);width:max-content;min-width:100%}
.r+.r::before{content:'';position:absolute;left:8px;right:8px;top:0;height:1px;background:var(--sep)}
.lead{position:sticky;left:0;z-index:1;display:flex;align-items:center;align-self:stretch;background:#fff;flex:none}
.t{width:54px;text-align:center;font-size:13px;font-weight:400;letter-spacing:-.02em;color:var(--ink)}
.bar{width:5px;height:var(--bar,30px);border-radius:3px;background:var(--strong);flex:none}
.bar.any{background:var(--green)}
.bar.mine{background:var(--brand)}
.bar.al{background:#FF9F0A}
.cells{flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:0 6px}
.wide .cells{display:flex;flex:none}
.wide .cell{width:var(--cw);flex:none}
.cell{width:100%;height:var(--cell,32px);border-radius:8px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;font-family:inherit;border:0;background:transparent;cursor:default;overflow:hidden;white-space:nowrap}
.cell.none{border:1px dashed rgba(11,16,48,.10)}
.cell.gone{border:0}
.cell.later{border:1px dashed var(--strong)}
.cell.taken{background:var(--fill1);color:rgba(11,16,48,.40)}
.cell.free{background:#fff;border:1px solid var(--strong);color:#8E8E93;cursor:pointer}
.cell.free:hover{border-color:var(--brand)}
.cell.picked{position:relative;overflow:visible;background:var(--brand);border:1px solid var(--brand);color:#fff;cursor:pointer}
/* A booking of back-to-back hours on one court, one block as the app's: square where the
   hours meet, the gap between rows filled, one card at the middle. */
.cell.picked.ju{border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 calc(var(--cell,32px) - var(--pitch,45px)) 0 0 var(--brand)}
.cell.picked.jd{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:0 calc(var(--pitch,45px) - var(--cell,32px)) 0 0 var(--brand)}
.cell.picked.ju.jd{box-shadow:0 calc(var(--cell,32px) - var(--pitch,45px)) 0 0 var(--brand),0 calc(var(--pitch,45px) - var(--cell,32px)) 0 0 var(--brand)}
/* An alert, as the app's: amber, a bell at the middle of its block. A taken hour or a day
   not on sale yet takes one; a free hour an alert waits for is coral. */
.cell.taken[data-act],.cell.later[data-act]{cursor:pointer}
.cell.taken[data-act]:hover,.cell.later[data-act]:hover{box-shadow:inset 0 0 0 1px #FF9F0A}
.cell.alert{position:relative;overflow:visible;background:linear-gradient(135deg,#FF9F0A,#F57C00);border:0;color:#fff;cursor:pointer}
.cell.alert:hover{box-shadow:none}
.cell.alert.ju{border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 calc(var(--cell,32px) - var(--pitch,45px)) 0 0 #F98D05}
.cell.alert.jd{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:0 calc(var(--pitch,45px) - var(--cell,32px)) 0 0 #F98D05}
.cell.alert.ju.jd{box-shadow:0 calc(var(--cell,32px) - var(--pitch,45px)) 0 0 #F98D05,0 calc(var(--pitch,45px) - var(--cell,32px)) 0 0 #F98D05}
.cell.hit{background:linear-gradient(135deg,#FF7247,#F2412C);border:0;color:#fff;cursor:pointer}
.cell.has-g{z-index:1}
.cell .g{display:flex;pointer-events:none}
.cell .g.half{transform:translateY(calc(var(--pitch,45px) / 2))}
/* The press, as the app's: in to 0.9 in 120ms, and back when the finger lifts. */
.cell[data-act]{transition:transform .12s cubic-bezier(.25,.1,.25,1)}
/* A block while it settles: one shape, drawn over its hidden cells. */
.blk{position:absolute;z-index:1;pointer-events:none;background:var(--brand);color:#fff}
.blk i{position:absolute;left:50%;display:flex;transform:translate(-50%,-50%)}
.blk.al{background:linear-gradient(135deg,#FF9F0A,#F57C00)}
.blk.gl{background:none}
.cell.down{transform:scale(.9)}
.cell.split{position:relative;overflow:visible;background:transparent;border:0}
.cell.split>.cell.part{position:absolute;top:0;height:100%}
.all-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 24px;gap:8px}
.all-empty .all-pin{color:var(--brand);display:flex}
.all-empty .all-pin svg{width:76px;height:76px}
.all-empty h3{margin:8px 0 0;font-size:20px;font-weight:700}
.all-empty p{margin:0 0 12px;font-size:15px;color:var(--ink2);max-width:300px}
.cell.wait{background:linear-gradient(90deg,rgba(11,16,48,.04),rgba(11,16,48,.08),rgba(11,16,48,.04));background-size:200% 100%;animation:wait 1.2s linear infinite}
@keyframes wait{to{background-position:-200% 0}}
.sale{flex:none;text-align:center;font-size:12px;font-weight:500;color:var(--ink2);padding:12px 16px 96px}
.sale b{color:var(--ink);font-weight:600}
.notice{margin:8px 16px;background:#fff;border-radius:26px;padding:22px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.notice h3{margin:0;font-family:'Inter Tight',Inter,sans-serif;font-weight:700;font-size:17px}
.notice p{margin:0;font-size:13px;color:var(--ink2);max-width:440px}
.notice .cta{max-width:420px}
.cta.line{background:#fff;color:var(--brand);box-shadow:inset 0 0 0 2px var(--brand)}

/* ---------- the venue's sheet ---------- */
.tiles{display:flex;gap:8px}
.rules-group{display:flex;flex-direction:column;gap:6px}
.rules{padding:12px;display:flex;flex-direction:column;gap:6px}
.ahead{margin:0;font-size:12px;font-weight:500;color:var(--ink2)}
.ahead b{color:var(--ink);font-weight:600}
.group-note{font-size:12px;font-weight:500;color:var(--label3);padding:0 16px}
.venue-more{display:flex;flex-direction:column;gap:12px}
.venue-sheet .group-note a{color:var(--brand)}
.strip{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;align-items:start}
.month-l{grid-row:1;height:16px;font-size:10px;font-weight:600;color:var(--brand);white-space:nowrap}
.dc{height:56px;padding:7px 0;gap:1px}
.dc i{width:5px;height:5px;border-radius:50%;margin-top:3px;background:transparent;flex:none}
.dc.next i{background:var(--brand)}
.dc.fold{background:var(--tonal) repeating-linear-gradient(45deg,transparent 0 3px,var(--sep) 3px 4px);color:var(--brand)}
.dc.fold b{font-size:11px}
.sale-t{margin-top:4px;text-align:center;font-size:9px;font-weight:600;color:var(--brand);font-variant-numeric:tabular-nums}

/* ---------- basket and the hand-off ---------- */
.day-group .label{padding:10px 4px 6px}
.item{position:relative;display:flex;align-items:center;gap:12px;padding:10px 14px}
.item+.item::before{content:'';position:absolute;left:58px;right:14px;top:0;height:1px;background:var(--sep)}
.item .state{width:32px;height:32px;border-radius:8px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.item .two{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.item .two b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .two small{font-size:13px;font-weight:400;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drop{width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--ink2);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.drop:hover{background:rgba(11,16,48,.04)}
.book-all{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.basket-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px;color:var(--label3)}
.basket-empty b{font-size:15px;font-weight:600;color:var(--ink2)}
.alerts-empty{padding:28px 24px;text-align:center;color:#FF9F0A}
.alerts-empty span{font-size:13px;color:var(--ink2);max-width:300px}
.item .state.al{background:linear-gradient(135deg,#FF9F0A,#F57C00)}
.item .state.hit{background:linear-gradient(135deg,#FF7247,#F2412C)}
.item-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.item-open .two small{color:var(--ink2)}
.card.mail{padding:16px;display:flex;flex-direction:column;gap:10px}
.card.mail p{margin:0;font-size:14px;color:var(--ink2)}
.card.mail b{font-size:15px;font-weight:600}
.card.mail strong{color:var(--ink);font-weight:600;word-break:break-all}
.card.mail small{font-size:12px;color:var(--muted);line-height:1.45}
.card.mail small a{color:var(--brand)}
.card.mail .mail-field{flex:none;background:var(--fill1);box-shadow:none}
.card.mail .tonal{align-self:flex-start}
.card.mail .mail-on{display:flex;align-items:center;gap:8px;color:#F57C00}
.card.mail .err{color:#D93025;font-weight:600;min-height:0}
.card.mail .err:empty{display:none}
.code-row{display:flex;gap:8px;flex-wrap:wrap}
.code-row .tonal:disabled{opacity:.55;cursor:default}
/* The code: six boxes drawn from one field, so a phone's autofill fills them all. */
.code-boxes{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:8px;max-width:330px}
.code-boxes i{height:52px;border-radius:12px;background:var(--fill1);display:flex;align-items:center;justify-content:center;font-style:normal;font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);box-shadow:inset 0 0 0 1px transparent}
.code-boxes i.at{box-shadow:inset 0 0 0 2px var(--brand)}
.code-boxes.bad i{box-shadow:inset 0 0 0 1px #D93025}
/* Drawn by the boxes, but a real field to the phone: not see-through (iPhone offers a code from Mail only to a field it can see), no length limit (a pasted "482 913" is 7 long; app.js keeps 6 digits). */
.code-boxes input{position:absolute;inset:0;width:100%;height:100%;opacity:1;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;background:transparent;border:0;outline:0;padding:0;font-size:16px;cursor:text;letter-spacing:0}
.code-boxes input::selection{background:transparent}
.code-boxes input:-webkit-autofill{-webkit-text-fill-color:transparent;transition:background-color 99999s}
.hand{background:#fff;border-radius:26px;padding:20px 20px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.hand h3{margin:0;font-family:'Inter Tight',Inter,sans-serif;font-weight:700;font-size:17px}
.hand p{margin:0;font-size:13px;color:var(--ink2);max-width:440px}
.empty{padding:24px 16px;text-align:center;font-size:15px;color:var(--ink2)}
.stores{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.stores .soon{text-align:center;font-size:13px;color:var(--ink2);padding:4px 0}

/* ---------- tab bar, basket button, toast ---------- */
.tabs{position:absolute;right:28px;bottom:12px;width:min(588px,calc(100% - 56px));height:60px;border-radius:30px;background:rgba(255,255,255,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 6px 24px rgba(11,16,48,.14);display:flex;z-index:40}
.tab{flex:1;height:100%;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;padding:0;color:rgba(60,60,67,.62)}
.tab{position:relative}
.tab span{font-size:11px;font-weight:500}
.tab .badge{top:5px;right:auto;left:calc(50% + 4px);font-size:11px;font-weight:700}
.tab .badge[hidden]{display:none}
.badge.pop{animation:badge-pop .4s cubic-bezier(.3,.7,.4,1)}
@keyframes badge-pop{40%{transform:scale(1.45)}}
.tab.on{color:var(--purple)}
.tab.on span{font-weight:700}
.tab img{width:30px;height:30px;margin:-3px 0;border-radius:50%}
.badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:11px;background:var(--badge);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.toast{position:absolute;z-index:50;right:calc(var(--sheet-w) / 2 + 12px);bottom:96px;transform:translate(50%,8px);background:rgba(11,16,48,.92);color:#fff;border-radius:12px;padding:11px 16px;font-size:13px;font-weight:500;max-width:calc(100% - 32px);transition:opacity .25s,transform .25s;pointer-events:none;opacity:0}
.toast.on{opacity:1;transform:translate(50%,0)}

/* ---------- the venue menu: a bloom out of the tab's mascot (Menus.swift) ---------- */
@property --y{syntax:'<length>';inherits:true;initial-value:26px}
@property --h{syntax:'<length>';inherits:true;initial-value:13px}
.bloom{position:absolute;inset:0;z-index:45}
.bloom-scrim{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:0;transition:opacity .28s}
.bloom.on .bloom-scrim{opacity:1}
.bloom-panel{position:absolute;inset:0;pointer-events:none;clip-path:circle(30px at var(--cx) var(--cy));opacity:0;transition:clip-path .34s cubic-bezier(.3,0,.15,1),opacity .2s}
.bloom.on .bloom-panel{clip-path:circle(var(--far) at var(--cx) var(--cy));opacity:1}
.bloom-svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 10px 13px rgba(176,38,245,.34))}
.bloom-body{position:absolute;width:276px;overflow:auto;scrollbar-width:none;pointer-events:auto}
.bloom-body::-webkit-scrollbar{display:none}
.bloom-face{position:absolute;left:var(--cx);top:var(--cy);width:60px;height:60px;margin:-30px 0 0 -30px;border:0;border-radius:50%;background:transparent;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;pointer-events:auto}
.bloom-face img{width:30px;height:30px;filter:brightness(0) invert(1)}
.vwrap{position:relative;margin:0 0 9px 2px}
.vgroup{background:#fff;border-radius:22px;overflow:hidden;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1C1 5.85 8 7.15 8 13S1 20.15 1 26H0Z'/%3E%3C/svg%3E") -1px calc(var(--y) - var(--h)) / 8px calc(var(--h) * 2) no-repeat,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1C1 5.85 8 7.15 8 13S1 20.15 1 26H0Z'/%3E%3C/svg%3E") -1px calc(var(--y) - var(--h)) / 8px calc(var(--h) * 2) no-repeat,linear-gradient(#000,#000);mask-composite:exclude}
/* --y and --h move on .vwrap alone; the notch and the dot read the same value each frame. */
.vwrap{transition:--y .3s cubic-bezier(.3,0,.15,1)}
.vwrap.hop{animation:notch .3s}
@keyframes notch{40%{--h:19px}}
.mdot{position:absolute;left:-2px;top:calc(var(--y) - 3.5px);width:7px;height:7px;border-radius:50%;background:#7CC2FF}
.vwrap.hop .mdot{animation:hop .3s}
@keyframes hop{35%{transform:scale(.7,1.7)}78%{transform:scale(1.18,.84)}}
.mrow{position:relative;width:100%;height:52px;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:8px 14px 8px 10px;cursor:pointer;text-align:left;font-family:inherit;color:var(--ink)}
.mrow+.mrow::before{content:'';position:absolute;left:52px;right:14px;top:0;height:1px;background:var(--sep)}
.mrow:hover,.mrow:focus-visible{background:rgba(11,16,48,.03);outline:0}
.mtile{width:32px;height:32px;border-radius:8px;background:var(--tonal);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:none}
.mrow.on .mtile{background:linear-gradient(135deg,var(--brand2),var(--brand));color:#fff}
.mrow .two{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mrow b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mrow small{font-size:13px;font-weight:400;color:var(--label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bloom.on .mrow{animation:rise .46s cubic-bezier(.2,.9,.25,1) both,fade .26s ease-out both;animation-delay:calc(var(--k) * 50ms)}
@keyframes rise{from{transform:translateY(60px)}}
@keyframes fade{from{opacity:0}}

/* A phone: the sheets take the width; the wordmark gives way to the sheets. */
@media (max-width:720px){
  .app.grid-up .search{opacity:0;pointer-events:none;transition:opacity .2s}
  :root{--sheet-w:100%}
  .sheet{right:0}
  .tabs{right:16px;width:calc(100% - 32px)}
  .venue-sheet.half{transform:translateY(calc(100% - 46vh))}
  .area-sheet.half{transform:translateY(calc(100% - 46vh))}
  /* Closed, the grid goes all the way down: no peek sticks out over the map. A venue's Book
     (or its pin) brings it back. Hidden once it is down, so its buttons can't be tabbed to. */
  .grid-sheet.low{transform:translateY(105%);visibility:hidden;transition:transform .5s var(--ease),visibility 0s .5s}
  /* Up, the grid takes the screen under the top bar, the tabs floating over its foot: the
     sale line sits just over them, and the rows end above it. */
  .grid-sheet{height:calc(100% - 8px)}
  .mini{margin-top:8px}
  .grid-sheet .sale{padding:8px 16px 78px}
}
@media (prefers-reduced-motion:reduce){
  .sheet,.peek,.grid-body,.toast,.scrim{transition:none}
  .cell[data-act]{transition:none}
  .cell.down{transform:none}
  .cell.wait,.chip.pop,.badge.pop,.bloom.on .mrow,.vwrap.hop,.vwrap.hop .mdot{animation:none}
  .bloom-scrim,.bloom-panel,.vwrap,.chip{transition:none}
  .ccal,.cweek .dcol.pop,.cweek .dcol.pop .chip,.cweek .dcol.unpop,.cweek .dcol.unpop .chip{animation:none}
}
.card.mail .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.mail-news{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--ink2);cursor:pointer;line-height:1.4}
.mail-news input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--brand)}
.card.mail .cta:disabled{opacity:.6;cursor:default}
.human{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:60}
.human:empty{display:none}

