/* ------------------------------------------------------------------
   Home page look. A slate header carries everything you choose with: the
   day, the filters, the language and the app. Skoutti stands on its left
   edge as the link home, the header ending just above its feet. Below it
   the slot table keeps the plain look of head.html on a near-white page.
   Scoped to body.home: the court directories, venue pages, analytics,
   status and privacy pages carry it too (page.html), with pages.css for
   what they have instead of the day picker and the slot table.
   Colour and surface tokens live in :root (site.css). */
.home {
    /* Skoutti's size and how far its feet step out of the header. */
    --mascot-w: 230px;
    --mascot-h: 252px;
    --mascot-overhang: 24px;
    --header-pad-top: 50px;
    --header-pad-bottom: 40px;
    --pico-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-family: var(--pico-font-family);
    background: var(--page);
}

/* Header: full width slate; its inner box is the page container, so the
   controls line up with the table below. */
.home .site-header {
    position: relative;
    z-index: 3;
    /* Pico pads a body > header; the inner box sets the spacing here. */
    padding: 0;
    background: linear-gradient(135deg, var(--slate-top), var(--slate-bottom));
    color: var(--day-text);
}
.home .site-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding-top: var(--header-pad-top);
    padding-bottom: var(--header-pad-bottom);
}
/* Skoutti is the home link. Its negative margins let it rise into the top
   padding and step out of the bottom edge without making the header taller;
   it paints above the page below. */
/* Skoutti comes as AVIF with the PNG as fallback. The <picture> around each
   image takes no box of its own, so the img rules below size it as before. */
.home picture {
    display: contents;
}
.home .header-mascot {
    position: relative;
    z-index: 4;
    flex: none;
    align-self: flex-end;
    width: var(--mascot-w);
    margin: -40px 0 calc(-1 * (var(--header-pad-bottom) + var(--mascot-overhang)));
    line-height: 0;
    border-radius: 24px;
}
.home .header-mascot img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 8px rgba(11, 15, 20, 0.16));
    transition: transform 0.2s ease;
}
.home .header-mascot:hover img {
    transform: translateY(-3px) rotate(-1.5deg);
}
.home .header-controls {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.home .header-actions {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 10px;
}

/* The footer's wordmark, small at the left end of the row with the app
   and the language pushed right, and the sport's slogan under it in the
   footer's grey. It links home but looks the same in every state: no
   hover, no visited colour. */
.home .header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    margin-right: auto;
    line-height: 1.2;
}
.home .header-brand,
.home .header-brand:hover,
.home .header-brand:visited,
.home .header-brand:active,
.home .header-brand:focus {
    text-decoration: none;
    background: none;
    transition: none;
}
.home .header-brand .footer-logo {
    font-size: 17px;
}
.home .header-tagline {
    color: #aeb8c4;
    font-size: 11px;
    letter-spacing: 0.01em;
}

/* The app button: the accent green, lit from the top, dark green type.
   On wide desktop a second micro-line advertises iPhone & iPad without
   widening the top row, matching the two-line brand mark beside it. */
.home .app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 17px 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: var(--accent-emboss);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px -6px var(--accent-glow);
    transition: filter 0.15s, transform 0.1s;
}
@media (min-width: 1024px) {
    .home .app-btn:has(.app-btn-sub) {
        padding: 5px 16px 5px 13px;
    }
}
.home .app-btn svg {
    flex: none;
}
.home .app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    line-height: 1.15;
}
.home .app-btn-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.88;
}
.home .app-btn:hover {
    color: var(--accent-ink);
    filter: brightness(1.07);
}
.home .app-btn:active {
    transform: translateY(1px);
}

/* The link to the other section: a recessed glass pill beside the app
   button, while the wordmark stays on the left. */
.home .header-sections {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(11, 15, 20, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.home .header-sections a {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--glass-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.home .header-sections a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
/* The section's icon, set 6px from its name. */
.home .header-sections .section-icon {
    flex: none;
    margin-right: 6px;
}
.home .header-sections .section-beta {
    display: inline-block;
    position: relative;
    top: -0.35em;
    margin-left: 4px;
    padding: 2px 5px;
    border: 1px solid #b9dfc1;
    border-radius: 999px;
    background: #e5f4e9;
    color: #176536;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

/* Below 1024px Pico narrows the container to 700px, Skoutti scales down a
   step, and the app button switches to its short label so the top row stays
   on one line. */
.home .app-btn-short {
    display: none;
}
@media (max-width: 1023px) {
    .home {
        --mascot-w: 170px;
    }
    .home .app-btn-long,
    .home .app-btn-sub {
        display: none;
    }
    .home .app-btn-short {
        display: inline;
    }
    .home .header-sections a span.section-icon,
    .home .header-sections a .section-beta,
    .home .lang-switch svg {
        display: none;
    }
    .home .header-sections a {
        padding: 5px 10px;
    }
    .home .header-actions {
        gap: 8px;
    }
}

/* Language: a recessed FI/EN segment with the current one lit. */
.home .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 3px 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(11, 15, 20, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
    color: var(--glass-text);
}
.home .lang-switch svg {
    margin-right: 4px;
}
.home .lang-switch a {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--glass-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
}
.home .lang-switch a:hover {
    color: #fff;
}
.home .lang-switch a[aria-current] {
    background: #fff;
    color: var(--navy-ink);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Day picker: a recessed glass track like the filters', days in soft light
   figures, weekend names in muted gold, the picked day a green key.
   The weekday over the date keeps fifteen days to one row; a narrower
   window scrolls the track. */
/* The track spans the row from the wordmark to the language switch; the
   days keep their size and any room left over stays empty at the end
   (Pico spreads a nav's items with space-between). */
.home .day-picker {
    position: relative;
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    gap: 3px;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--glass-track);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.home .day-picker.fade-start,
.home .day-picker.fade-end {
    --fade-start: 0px;
    --fade-end: 0px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
}
.home .day-picker.fade-start {
    --fade-start: 28px;
}
.home .day-picker.fade-end {
    --fade-end: 28px;
}
.home .day-picker::-webkit-scrollbar {
    display: none;
}
.home .day-picker .day {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    min-width: 52px;
    padding: 6px 9px;
    border-radius: 10px;
    color: var(--day-date);
    line-height: 1.15;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}
.home .day-picker .day-name {
    color: var(--day-name);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.home .day-picker .day-date {
    font-size: 13px;
    font-weight: 600;
}
.home .day-picker .day-weekend .day-name {
    color: var(--weekend);
}
/* The picked day is lit from below: a short glowing green line under it,
   its light rising faintly into the day, and white figures; a weekend
   keeps a name colour of its own there too. Without the script the
   picked day carries the light itself. The sticky bar's picked day is
   lit the same way. */
.home .day-picker:not(.has-lamp) .day:hover {
    background: rgba(255, 255, 255, 0.08);
}
.home .day-picker:not(.has-lamp) .day-active,
.home .day-picker:not(.has-lamp) .day-active:hover,
.home .day-lamp,
.home .sticky-day-active,
.home .sticky-day-active:hover {
    background: var(--lit-spill);
}
.home .day-picker:not(.has-lamp) .day-active::after,
.home .day-lamp::after,
.home .sticky-day-active::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--accent-top);
    box-shadow: 0 0 6px 1px var(--accent-glow), 0 0 14px 2px rgba(110, 180, 55, 0.3);
    pointer-events: none;
}
.home .day-picker:not(.has-lamp) .day-active,
.home .day-picker:not(.has-lamp) .day-active:hover {
    color: #fff;
}
.home .day-picker:not(.has-lamp) .day-active .day-name {
    color: var(--lit-name);
}
.home .day-picker:not(.has-lamp) .day-active.day-weekend .day-name {
    color: var(--lit-weekend);
}
/* With it the light is one lamp that glides to the day under the pointer
   and back to the picked day when the pointer leaves; the day it sits
   over takes the white figures. */
.home .day-lamp {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 10px;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.32s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.home .day-picker:not(.has-lamp) .day-lamp {
    display: none;
}
.home .day-picker .day.lamp-lit {
    color: #fff;
}
.home .day-picker .day.lamp-lit .day-name {
    color: var(--lit-name);
}
.home .day-picker .day.lamp-lit.day-weekend .day-name {
    color: var(--lit-weekend);
}

/* Filters: the day picker's language one step quieter. Tracks are faint
   glass on the slate; the picked option is a white key. */
.home .site-header .content-toolbar {
    position: static;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* Pico spreads a nav's items across its width; these sit side by side. */
.home .toolbar-filters {
    justify-content: flex-start;
    gap: 8px;
}
.home .court-toggle {
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}
.home .toggle-opt,
.home .court-toggle button.toggle-opt {
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--glass-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.home .toggle-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.home .toggle-active,
.home .toggle-active:hover,
.home .court-toggle button.toggle-opt.toggle-active {
    background: #fff;
    color: var(--navy-ink);
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* Main: near-white, with room for Skoutti's feet above the table. */
.home main.container {
    padding-top: 52px;
}
.home #clubs-combined thead th {
    color: #304438;
}
.home .scout-ok {
    margin-top: 0;
}
/* What the page is, for a first-time visitor: one quiet line under the
   header, lined up with its controls beside Skoutti's feet. It rises into
   the room the main area keeps for the feet, so a single line takes no
   height from the table. */
.home .home-intro {
    margin: -32px 0 13px calc(var(--mascot-w) + 48px);
    color: var(--color-note);
    font-size: 13px;
    line-height: 1.45;
}
.home .home-intro b {
    font-weight: 600;
}
/* A shared link opens the page at its start time: the row clears the sticky
   bar and glows once in the accent green. */
.home #clubs-combined tbody tr {
    scroll-margin-top: 72px;
}
.home #clubs-combined tbody tr:target td {
    animation: row-target 2.4s ease-out 0.3s both;
}
@keyframes row-target {
    from { background-color: rgba(168, 221, 94, 0.3); }
    to { background-color: transparent; }
}
/* The legend under the table: an example chip and what each part of it
   says, then the freed time and the rush-hour lights where the page has
   them, in the small print of the notes below it. */
.home .chip-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
}
.home .legend-item {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.home .legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-accent-bg);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.home .legend-chip-price {
    margin-left: 1px;
    color: var(--color-price);
    font-variant-numeric: tabular-nums;
}
.home .chip-legend .slot-hit-badge {
    margin: 0;
}
.home .legend-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
/* A shared link's picks, on top for the friend it was sent to: a white
   card tinted in Skoutti's green at the top, Skoutti tilted at its corner,
   each time with its venues, and a close link back to the default view.
   A free one is the booking button's green, one tap from its venue card;
   one gone is a grey dashed pill, crossed out. */
.home .picks {
    margin: 0 0 24px;
    padding: 18px 20px 14px;
    background: linear-gradient(180deg, #f2faea 0%, #ffffff 78px);
    border: 1px solid rgba(124, 192, 67, 0.45);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 28px -18px rgba(11, 15, 20, 0.45);
}
.home .picks.picks-gone {
    background: linear-gradient(180deg, #f3f5f8 0%, #ffffff 78px);
    border-color: var(--hairline);
}
.home .picks-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.home .picks-head img {
    flex: none;
    width: 46px;
    height: auto;
    transform: rotate(-6deg);
    filter: drop-shadow(0 3px 5px rgba(11, 15, 20, 0.14));
}
.home .picks-head-text {
    flex: 1;
    min-width: 0;
}
.home .picks-title {
    margin: 0;
    color: var(--navy-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.home .picks-summary {
    margin: 3px 0 0;
    color: var(--color-note);
    font-size: 13px;
    font-weight: 500;
}
.home .picks-close {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -2px -4px 0 0;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-note);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.home .picks-close:hover {
    background: #fff;
    border-color: rgba(32, 38, 46, 0.24);
    color: var(--navy-ink);
}
.home .picks-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home .picks-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}
.home .picks-row:first-child {
    padding-top: 2px;
    border-top: 0;
}
.home .picks-row:last-child {
    padding-bottom: 2px;
}
.home .picks-time {
    flex: none;
    /* A floor, not a width: the clock never wraps at its colon, and a
       wider font (iOS, larger text) widens the column instead. */
    min-width: 50px;
    white-space: nowrap;
    color: var(--navy-ink);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.home .picks-venues {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.home .pick-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-shadow: var(--accent-emboss);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -5px var(--accent-glow);
    transition: filter 0.15s, transform 0.1s;
}
.home a.pick-chip:hover {
    color: var(--accent-ink);
    filter: brightness(1.06);
}
.home a.pick-chip:active {
    transform: translateY(1px);
}
.home .pick-chip-price {
    font-weight: 600;
    opacity: 0.8;
    font-variant-numeric: tabular-nums;
}
.home .pick-chip.is-taken,
.home .pick-chip.is-unknown {
    border: 1px dashed #c9d0d6;
    background: #f4f6f8;
    color: #7c8790;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
}
.home .pick-chip.is-taken .pick-chip-name {
    text-decoration: line-through;
}
.home .pick-chip-state {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.home .picks-hint {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--hairline);
    color: var(--color-note);
    font-size: 12.5px;
}
/* The picks in the table: ringed in the accent green. */
.home button.club-entry.club-entry-shared {
    outline: 2px solid var(--accent-bottom);
    outline-offset: 1px;
}
/* Picking slots to share: a picked chip goes the deep forest green, the
   app's picked slot, with its figures in white. */
.home button.club-entry.is-picked,
.home button.club-entry.is-picked:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.home .club-entry.is-picked .club-entry-label {
    color: #fff;
}
.home .club-entry.is-picked .club-entry-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.home .club-entry.is-picked .club-entry-price {
    color: rgba(255, 255, 255, 0.85);
}
.home .prices-hidden .legend-price,
.home .prices-hidden .legend-chip-price,
.home .prime-lights-hidden .legend-fresh {
    display: none;
}
/* Venue chips as on the live page, with a touch more air and a softer
   corner. */
.home button.club-entry {
    padding: 4px 9px;
    border-radius: 7px;
    gap: 5px;
}
.home .club-entry-label {
    font-weight: 500;
}
.home .stale-venues-note {
    border-radius: 12px;
}
/* Data freshness under the filters: the venues with free slots, each a
   small glowing orb and its short name, in one recessed track in the order
   of the slot rows. The orbs breathe slowly out of step with each other in
   the mascot's colours: its green for data under 3 minutes old, its racket's
   blue under 7, its feet's orange after that (freshnessLimits in
   server/freshness.go). The age shows in Pico's tooltip on hover or focus.
   Pico styles role="group" as a full-width button group of growing
   children, so the track's width, margin and shadow and the chips' flex are
   reset here. */
.home .freshness {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: var(--glass-track);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    line-height: 1.2;
}
.home .fresh-chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    border-bottom: 0;
    color: var(--glass-text);
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    transition: background-color 0.15s, color 0.15s;
}
.home .fresh-chip:hover,
.home .fresh-chip:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--day-text);
}
.home .fresh-chip:focus {
    outline: none;
}
.home .fresh-chip:focus-visible {
    box-shadow: var(--ring);
}
.home .fresh-chip[data-tooltip]::before {
    font-weight: 500;
}
.home .fresh-age {
    display: none;
}
/* Beside Skoutti the row hangs in the header's bottom padding, grown by
   20px to give it air above and below, instead of taking a row with the
   controls' 16px gaps. Skoutti stands on the header's lower edge and goes
   down by those 20px only. Short of room for the names, the row keeps the
   orbs only and the tooltip names the venue. */
@media (min-width: 769px) {
    .home .site-header.has-freshness {
        --header-pad-bottom: 60px;
    }
    .home .header-controls {
        position: relative;
    }
    .home .freshness {
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
    }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .home .fresh-name {
        display: none;
    }
    .home .fresh-chip {
        padding: 5px;
    }
}
/* Pico centres a tooltip on its chip, so a chip near the right edge would
   push its tooltip, hidden or not, past the screen and scroll the page
   sideways. Short of room, the tooltip centres under the whole row, which
   is positioned and so holds it. */
@media (max-width: 1100px) {
    .home .fresh-chip[data-tooltip] {
        position: static;
    }
}
.home .fresh-orb {
    --orb: #8ed43a;
    --orb-glow: rgba(142, 212, 58, 0.75);
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), transparent 55%), var(--orb);
    animation: fresh-breathe 4.2s ease-in-out infinite;
}
/* The same light on a prime-time chip and in the venue card: smaller, still,
   and ringed, since the freshest green is the chip's own green. Before the
   level rules below, which set its colour. */
.home .chip-orb {
    --orb: #8ed43a;
    flex: none;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orb);
    box-shadow: 0 0 0 1px rgba(20, 33, 61, 0.45);
}
/* Switched off with the Tuoreus toggle. The venue card keeps its light: it
   is not a prime-time one. */
.home .prime-lights-hidden .club-entry .chip-orb {
    display: none;
}
.home .club-popover-courts .chip-orb {
    margin: 0 2px 1px 0;
    vertical-align: middle;
}
.home .fresh-l1 { --orb: #20a9cb; --orb-glow: rgba(32, 169, 203, 0.75); }
.home .fresh-l2 { --orb: #fbb832; --orb-glow: rgba(251, 184, 50, 0.75); animation-duration: 3.2s; }
/* Spread the phases so the orbs never pulse in step. */
.home .fresh-chip:nth-child(3n+2) .fresh-orb { animation-delay: -1.4s; }
.home .fresh-chip:nth-child(3n+3) .fresh-orb { animation-delay: -2.8s; }
.home .fresh-chip:nth-child(4n+1) .fresh-orb { animation-delay: -0.7s; }
.home .fresh-chip:nth-child(5n) .fresh-orb { animation-delay: -3.5s; }
@keyframes fresh-breathe {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.85);
        box-shadow: 0 0 0 0 var(--orb-glow);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 7px 2px var(--orb-glow);
    }
}
.home .empty-slots-state {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
}
/* Placed by hand: left to auto-placement, the image took the second
   column and pushed the texts into the first. */
.home .empty-slots-state img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 70px;
    height: auto;
    transform: rotate(-6deg);
}
.home .empty-slots-title,
.home .empty-slots-hint {
    grid-column: 2;
}
.home .empty-slots-title {
    font-size: 16px;
    font-weight: 700;
}
.home #hidden-clubs-panel {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
}

/* Venue card: the header's slate on top with Skoutti perched on it, the
   booking links in the app button's green. */
.home .club-popover-backdrop {
    background: rgba(20, 24, 30, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.home .club-popover-card {
    overflow: visible;
    border-radius: 18px;
    box-shadow: 0 30px 60px -12px rgba(11, 15, 20, 0.5);
    animation: home-pop 0.18s ease-out;
}
/* Perched on the header's top edge: its feet overlap the header, so it has
   to paint above it. */
.home .club-popover-mascot {
    position: absolute;
    z-index: 2;
    top: -42px;
    right: 56px;
    width: 64px;
    height: auto;
    transform: rotate(8deg);
    filter: drop-shadow(0 4px 6px rgba(11, 15, 20, 0.35));
    pointer-events: none;
}
.home .club-popover-header {
    padding: 18px 18px 14px;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, var(--slate-top), var(--slate-bottom));
}
.home .club-popover-header h3 {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}
.home .club-popover-close {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
}
.home .club-popover-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.home .club-popover-body {
    padding: 16px 18px;
    font-size: 14px;
}
.home .club-popover-links {
    gap: 8px;
}
.home .club-popover-links .link,
.home .club-popover-links .link:first-child {
    display: block;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-shadow: var(--accent-emboss);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 8px -4px var(--accent-glow);
    transition: filter 0.15s, transform 0.1s;
}
/* Coaching links after the booking ones are the secondary choice. */
.home .club-popover-links .link[data-link-type="adult"],
.home .club-popover-links .link[data-link-type="junior"] {
    border-color: var(--hairline);
    background: #fff;
    color: var(--navy-ink);
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(11, 15, 20, 0.08);
}
.home .club-popover-links .link:hover {
    filter: brightness(1.05);
}
.home .club-popover-links .link:active {
    transform: translateY(1px);
}
.home .club-popover-footer {
    border-top: 1px solid var(--hairline);
    border-radius: 0 0 18px 18px;
    background: #f5f7f9;
}
.home .club-popover-action {
    margin: 0;
    width: auto;
    border: 1px solid var(--hairline);
    background: #fff;
    color: var(--navy-ink);
    font-weight: 600;
}
/* Share on the left of the footer, hide on the right: the same white pill,
   with WhatsApp's own green on its mark. */
.home .club-popover-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    text-decoration: none;
}
.home .club-popover-share svg {
    flex: none;
    color: #25d366;
}
.home .club-popover-share:hover {
    border-color: rgba(37, 211, 102, 0.45);
    background: #f1fbf4;
    color: var(--navy-ink);
}
@keyframes home-pop {
    from { transform: translateY(8px) scale(0.97); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Share bar: the header's slate at the foot of the window while slots are
   picked, slid up like the sticky bar slides down. What is picked on the
   left, cancel and the green send button on the right. The page gets room
   under its last rows. */
.home .share-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(135deg, var(--slate-top), var(--slate-bottom));
    color: var(--day-text);
    box-shadow: 0 -10px 28px -14px rgba(11, 15, 20, 0.6);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0s linear 0.24s;
}
.home .share-bar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform 0.24s ease;
}
.home.is-picking {
    padding-bottom: 84px;
}
.home .share-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.home .share-bar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.home .share-bar-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.home .share-bar-summary {
    overflow: hidden;
    color: var(--glass-text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.home .share-bar-cancel {
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    line-height: 1;
}
.home .share-bar-cancel:hover {
    background: rgba(255, 255, 255, 0.16);
}
.home .share-bar-send {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-shadow: var(--accent-emboss);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px -6px var(--accent-glow);
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s, opacity 0.15s;
}
.home .share-bar-send:hover {
    color: var(--accent-ink);
    filter: brightness(1.07);
}
.home .share-bar-send:active {
    transform: translateY(1px);
}
.home .share-bar-send[aria-disabled="true"] {
    opacity: 0.45;
    box-shadow: none;
    pointer-events: none;
}

/* Footer: the header's slate closing the page, the brand beside the link
   columns and the credit under a hairline. */
.home .site-footer {
    margin: 48px 0 0;
    padding: 56px 0 32px;
    border: 0;
    background: linear-gradient(135deg, #2a313b, #171b21);
    color: #aeb8c4;
    font-size: 14px;
}
.home .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 88px;
}
.home .footer-brand {
    max-width: 260px;
}
.home .footer-brand p {
    margin: 10px 0 0;
    color: #aeb8c4;
    font-size: 13px;
    line-height: 1.5;
}
.home .footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.home .footer-logo span {
    color: var(--link-light);
    font-weight: 700;
}
.home .footer-cols {
    gap: 24px 88px;
}
.home .site-footer .footer-col li {
    padding: 4px 0;
}
.home .footer-title {
    margin-bottom: 8px;
    color: var(--day-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}
.home .site-footer a {
    color: var(--day-text);
    font-weight: 500;
}
.home .site-footer a:hover {
    color: #fff;
}
.home .footer-credit {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aeb8c4;
    font-size: 13px;
}
.home .site-footer .footer-credit a {
    color: #fff;
    font-weight: 600;
}

/* Keyboard focus: one green ring for every control on the page. */
.home a:focus-visible,
.home button:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* Sticky bar: a slim strip of the header's slate pinned to the top, hidden
   above the window until the script shows it. Days read on one line, the
   picked one the header's green key; the duration uses the filter tracks. */
.home .sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(135deg, var(--slate-top), var(--slate-bottom));
    color: var(--day-text);
    box-shadow: 0 8px 20px -10px rgba(11, 15, 20, 0.55);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
}
.home .sticky-bar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform 0.22s ease;
}
.home .sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.home .sticky-bar-mascot {
    flex: none;
    width: 30px;
    line-height: 0;
}
.home .sticky-bar-mascot img {
    width: 100%;
    height: auto;
}
.home .sticky-days {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 3px;
    margin: 0;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--glass-track);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.home .sticky-days::-webkit-scrollbar {
    display: none;
}
.home .sticky-day {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex: none;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--day-date);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.home .sticky-day .day-name {
    color: var(--day-name);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.home .sticky-day.day-weekend .day-name {
    color: var(--weekend);
}
.home .sticky-day:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.home .sticky-day-active,
.home .sticky-day-active:hover {
    position: relative;
    color: #fff;
}
.home .sticky-day-active .day-name {
    color: var(--lit-name);
}
.home .sticky-day-active.day-weekend .day-name {
    color: var(--lit-weekend);
}
.home .sticky-duration {
    flex: none;
}

/* The way to the radar (radar.html): last in the filter row, its dial icon
   with a lime blip and a beta tag, never a white key since it is no filter. */
.home .radar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.home .radar-link-icon {
    flex: none;
}
.home .radar-link-beta {
    padding: 2px 5px;
    border: 1px solid rgba(168, 221, 94, 0.45);
    border-radius: 999px;
    color: var(--lit-name);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}
/* Room for the light's glow on the phone's radar key. */
.home .court-toggle-radar {
    overflow: visible;
}

/* Until the radar is first opened (RadarFound), a short lime light runs
   round the rim of the phone's radar key with a soft glow under it: the radar's own
   sweep, as on the app's radar key (Skoutti's CirclingLight), one lap in
   2.4 s. Two rings masked out of a turning conic gradient, the wider one
   blurred. With reduced motion it stands still as a lit rim. */
@property --radar-light-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
.home .radar-light {
    position: relative;
}
.home .radar-light::before,
.home .radar-light::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.8px;
    border-radius: inherit;
    background: conic-gradient(from var(--radar-light-angle),
        transparent 0 55%, rgba(168, 221, 94, 0.9) 88%, #fff 97%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: radar-light-sweep 2.4s linear infinite;
}
.home .radar-light::after {
    padding: 4px;
    filter: blur(4px);
}
@keyframes radar-light-sweep {
    to {
        --radar-light-angle: 360deg;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home .radar-light::before,
    .home .radar-light::after {
        animation: none;
        background: rgba(168, 221, 94, 0.85);
    }
    .home .radar-light::before {
        padding: 1.5px;
    }
    .home .radar-light::after {
        opacity: 0.7;
    }
}

/* Labelled filter options drop their emoji on a wide screen, where the
   word is there anyway. The phone hides the word instead and keeps the
   icon, and the filter summary reads the icon either way. */
@media (min-width: 769px) {
    .home .court-toggle-radar {
        display: none;
    }
    .home .toolbar-filters .toggle-icon:has(+ .toggle-label) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home .club-popover-card {
        animation: none;
    }
    .home .header-mascot img {
        transition: none;
    }
    .home .sticky-bar,
    .home .sticky-bar.is-shown,
    .home .share-bar,
    .home .share-bar.is-shown {
        transition: none;
    }
    .home .fresh-orb {
        animation: none;
        opacity: 0.9;
    }
    .home #clubs-combined tbody tr:target td {
        animation: none;
    }
}

/* Phone: Skoutti shrinks into the corner of the first row, the day picker
   gets the full width and the filters fold behind one button. The header
   sticks pulled up by its first row, so the day picker and the filter
   button stay at the top while the list scrolls. */
@media (max-width: 768px) {
    /* Measured height of the header's first row, the part that scrolls away. */
    .home {
        --header-row-1: 48px;
    }
    .home .site-header {
        position: sticky;
        top: calc(-1 * var(--header-row-1));
    }
    .home .site-header-inner {
        position: relative;
        display: block;
        padding-top: 8px;
        padding-bottom: 10px;
    }
    .home .header-mascot {
        position: absolute;
        top: 4px;
        left: var(--pico-spacing, 16px);
        width: 36px;
        margin: 0;
    }
    .home .header-mascot img {
        filter: none;
    }
    .home .sticky-bar {
        display: none;
    }
    .home .header-controls {
        align-items: stretch;
        gap: 8px;
    }
    .home .header-actions {
        order: 1;
        justify-content: flex-end;
        gap: 8px;
        min-height: 34px;
    }
    .home .site-header .content-toolbar {
        order: 2;
        padding-top: 6px;
    }
    .home .app-btn {
        padding: 6px 13px 6px 11px;
    }
    /* No room beside the buttons; Skoutti is the home link here. */
    .home .header-brand {
        display: none;
    }
    /* Only the way to the other section, right of Skoutti, with its icon
       and without the beta tag: with both, the row is wider than a 375px
       phone and slides under Skoutti. The section shrinks before it can. */
    .home .header-sections {
        min-width: 0;
        margin-left: 44px;
        padding: 2px;
    }
    .home .header-sections a {
        overflow: hidden;
        padding: 5px 11px;
        text-overflow: ellipsis;
    }
    .home .header-sections a span.section-icon {
        display: inline;
        margin-right: 5px;
    }
    .home .header-sections a .section-beta {
        display: none;
    }
    .home .app-btn {
        white-space: nowrap;
    }
    .home .lang-switch a {
        padding: 4px 9px;
    }
    .home .day-picker {
        order: 3;
        margin: 0 calc(-1 * var(--pico-spacing, 16px));
        padding: 4px var(--pico-spacing, 16px);
        gap: 6px;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .home .day-picker .day {
        flex-direction: row;
        align-items: baseline;
        gap: 5px;
        min-width: 0;
        padding: 6px 11px;
        background: var(--glass-track);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 999px;
    }
    .home .day-picker .day-active {
        background: var(--lit-spill), var(--glass-track);
    }
    /* Freshness orbs removed on a phone: saves vertical space in the sticky header. */
    .home .freshness {
        display: none;
    }
    /* Mobile slot sizing: comfortable touch targets & readable typography */
    .home button.club-entry {
        padding: 4px 8px;
        font-size: 13px;
        line-height: 1.35;
        gap: 4px;
        border-radius: 6px;
    }
    .home .clubs-cell {
        gap: 5px;
    }
    .home .club-entry-price {
        font-size: 11px;
    }
    .home .club-entry-count {
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        font-size: 10px;
        line-height: 16px;
    }
    .home .filter-toggle {
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: var(--day-text);
        font-weight: 600;
    }
    .home .filter-toggle:hover,
    .home .filter-toggle[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.24);
    }
    .home .filter-toggle-summary {
        color: var(--day-text);
    }
    .home .filter-toggle-chevron {
        color: var(--day-text);
    }
    /* The filter button and the radar key side by side; the opened filters
       take the next row. */
    .home .site-header .content-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .home .site-header .content-toolbar .filter-toggle {
        flex: 1;
        width: auto;
        min-width: 0;
    }
    .home .court-toggle-radar {
        flex: none;
    }
    .home .toolbar-filters {
        gap: 6px;
        margin-top: 0;
    }
    .home .toolbar-filters .court-toggle .toggle-opt {
        padding: 6px 4px;
    }
    .home main.container {
        padding-top: 16px;
    }
    /* Full width over the table, and on the first page load only: on later
       ones it would just push the slots down. */
    .home .home-intro {
        margin: 0 0 12px;
    }
    .home .home-intro:not(.is-first) {
        display: none;
    }
    .home .picks {
        margin-bottom: 18px;
        padding: 14px 14px 12px;
    }
    .home .picks-time {
        min-width: 44px;
    }
    .home .share-bar-inner {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .home .share-bar-send {
        padding: 10px 16px 10px 13px;
    }
    /* Clear of the sticky header: what is left of it once its first row
       has scrolled away. */
    .home #clubs-combined tbody tr {
        scroll-margin-top: 132px;
    }
    .home .site-footer {
        margin-top: 32px;
        padding: 36px 0 24px;
    }
    .home .footer-top,
    .home .footer-cols {
        gap: 24px 40px;
    }
}
@media (max-width: 380px) {
    .home .header-sections a span.section-icon {
        display: none;
    }
}
